* 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
27 lines
482 B
TypeScript
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;
|