mirror of
https://github.com/outline/outline.git
synced 2026-06-13 11:25:03 +03:00
bf6a56849e
* mention issue works * pr and loading works * error node * tweak mention display * handle multiple creation error * tidy * store unfurl in mention attrs * simplify mention code creation * test fix * base feedback * update node when pos is available * delete local UnfurlsStore * use unfurl from store * Optimize lodash isMatch import statement * fix: Copy/paste of issue mentions fix: Icon alignment fix: Error and loading mentions are unselectable * Switch order in paste menu --------- Co-authored-by: Tom Moor <tom@getoutline.com>
35 lines
693 B
TypeScript
35 lines
693 B
TypeScript
import { observable } from "mobx";
|
|
import {
|
|
IntegrationService,
|
|
type IntegrationSettings,
|
|
type IntegrationType,
|
|
} from "@shared/types";
|
|
import User from "~/models/User";
|
|
import Model from "~/models/base/Model";
|
|
import Field from "~/models/decorators/Field";
|
|
import Relation from "~/models/decorators/Relation";
|
|
|
|
class Integration<T = unknown> extends Model {
|
|
static modelName = "Integration";
|
|
|
|
type: IntegrationType;
|
|
|
|
service: IntegrationService;
|
|
|
|
collectionId: string;
|
|
|
|
userId: string;
|
|
|
|
@Relation(() => User, { onDelete: "cascade" })
|
|
user: User;
|
|
|
|
@Field
|
|
@observable
|
|
events: string[];
|
|
|
|
@observable
|
|
settings: IntegrationSettings<T>;
|
|
}
|
|
|
|
export default Integration;
|