Files
outline/app/models/Integration.ts

30 lines
526 B
TypeScript

import { observable } from "mobx";
import type {
IntegrationService,
IntegrationSettings,
IntegrationType,
} from "@shared/types";
import Model from "~/models/base/Model";
import Field from "./decorators/Field";
class Integration<T = unknown> extends Model {
static modelName = "Integration";
id: string;
type: IntegrationType;
service: IntegrationService;
collectionId: string;
@Field
@observable
events: string[];
@observable
settings: IntegrationSettings<T>;
}
export default Integration;