UNPKG

@cognigy/rest-api-client

Version:

Cognigy REST-Client

50 lines 2.08 kB
export const chartNodeExcerptSchema = { title: "chartNodeExcerptSchema", type: "object", properties: { _id: { format: "mongo-id" }, referenceId: { type: "string", format: "uuid" }, comment: { type: "string", maxLength: 512 }, commentColor: { type: "string", format: "color" }, preview: { type: "string" }, isDisabled: { type: "boolean" }, isEntryPoint: { type: "boolean" }, label: { type: "string", maxLength: 200 }, analyticsLabel: { type: ["null", "string"], format: "analytics-label" }, type: { type: "string", maxLength: 200 }, extension: { type: "string", format: "package-name" }, localeReference: { type: "string", format: "mongo-id" } }, }; export const chartNodeRelationDataSchema = { title: "chartNodeRelationDataSchema", type: "object", additionalProperties: false, properties: { children: { type: "array", items: { format: "mongo-id" } }, next: { anyOf: [{ format: "mongo-id" }, { type: "null" }] }, node: { format: "mongo-id" }, }, }; export const chartNodeRelationSchema = { title: "chartNodeRelationSchema", type: "object", additionalProperties: false, properties: Object.assign({ _id: { format: "mongo-id" } }, chartNodeRelationDataSchema.properties), }; export const chartDataSchema = { title: "chartDataSchema", type: "object", additionalProperties: false, properties: { nodes: { type: "array", items: chartNodeExcerptSchema }, relations: { type: "array", items: chartNodeRelationSchema }, }, }; export const chartSchema = { title: "chartDataSchema", type: "object", additionalProperties: false, properties: Object.assign(Object.assign({}, chartDataSchema.properties), { _id: { type: "string", format: "mongo-id" }, resourceReference: { type: "string", format: "mongo-id" }, projectReference: { type: "string", format: "mongo-id" }, organisationReference: { type: "string", format: "mongo-id" } }), }; //# sourceMappingURL=IChart.js.map