UNPKG

@cognigy/rest-api-client

Version:

Cognigy REST-Client

28 lines 1.85 kB
/* Custom Modules */ import { createQuerySchema } from "../../helper/createQuerySchema"; import { entityMetaSchema } from "./IEntityMeta"; export const flowStateInDBDataSchema = { title: "flowStateInDBDataSchema", type: "object", additionalProperties: false, properties: Object.assign(Object.assign({}, entityMetaSchema.properties), { name: { type: "string", format: "resource-name" }, referenceId: { type: "string", format: "uuid" }, type: { type: "string", enum: ["blacklist", "whitelist"] }, intentReferences: { type: "array", additionalItems: { format: "mongo-id" } }, isDefault: { type: "boolean" }, flowReference: { type: "string", format: "mongo-id" }, projectReference: { type: "string", format: "mongo-id" }, organisationReference: { type: "string", format: "mongo-id" } }), }; export const flowStateDataSchema = { title: "flowStateDataSchema", type: "object", additionalProperties: false, properties: { name: { type: "string", format: "resource-name" }, type: { type: "string", enum: ["blacklist", "whitelist"] }, intentIds: { type: "array", additionalItems: { type: "string", format: "mongo-id" } }, isDefault: { type: "boolean" }, }, }; export const flowStateSchema = { title: "flowStateSchema", type: "object", additionalProperties: false, properties: Object.assign(Object.assign({ _id: { type: "string", format: "mongo-id" }, referenceId: { type: "string", format: "uuid" }, flowReference: { type: "string", format: "mongo-id" }, projectReference: { type: "string", format: "mongo-id" }, organisationReference: { type: "string", format: "mongo-id" } }, entityMetaSchema.properties), flowStateDataSchema.properties), }; export const flowStateQuerySchema = createQuerySchema("flowStateQuerySchema", flowStateSchema); //# sourceMappingURL=IFlowState.js.map