import { VertexFactory } from "./util/vertex.js"; import { Coalesced, EdgeWrapper } from "./util/edges.js"; import { CompanyVertex } from "./companies.js"; import { DivisionVertex } from "./divisions.js"; import { UserVertex } from "./users.js"; //#region src/core/interfaces/vertices/configurations.d.ts type ConfigurationType = 'filter' | 'template' | 'rule'; interface ConfigurationMetadata { active: boolean; version: string; tags: { value: string; type?: string; }[]; } type Base = { domain?: null | EdgeWrapper<'array', Coalesced.Edge | Coalesced.Edge>; type: ConfigurationType; metadata: ConfigurationMetadata; lastModifiedBy?: UserVertex; data?: any; displayName?: string; description?: string; category?: string; enabled?: boolean; }; type ConfigurationVertex = VertexFactory<'configurations', Base>; type ConfigurationFilterVertex = VertexFactory<'configurations', Base & { type: 'filter'; data: any; displayName: string; description?: string; }>; type ConfigurationTemplateVertex = VertexFactory<'configurations', Base & { type: 'template'; data: { layout: any; defaultValues?: any; validation?: any; }; displayName: string; category?: string; }>; type ConfigurationRuleVertex = VertexFactory<'configurations', Base & { type: 'rule'; data: { conditions?: Array; actions?: Array; priority?: number; }; displayName: string; enabled?: boolean; }>; //#endregion export { ConfigurationFilterVertex, ConfigurationRuleVertex, ConfigurationTemplateVertex, ConfigurationVertex }; //# sourceMappingURL=configurations.d.ts.map