Files
outline/app/models/Integration.ts
Tom Moor 8e4270c321 feat: Add GA integration, support for GA4 (#4626)
* GA integration settings

* trackingId -> measurementId
Hook up script

* Public page GA tracking
Correct layout of settings

* Remove multiple codepaths for loading GA measurementID, add missing db index

* Remove unneccessary changes, tsc

* test
2023-01-01 07:29:08 -08:00

27 lines
482 B
TypeScript

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