Files
Tom Moor bf45e97641 chore: Enforce type import consistency (#10968)
* Update types

* fix circular dep

* type imports

* lint type imports and --fix
2025-12-19 23:07:02 -05:00

32 lines
723 B
TypeScript

import { observable } from "mobx";
import type { IntegrationService } from "@shared/types";
import { 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;