@cognigy/rest-api-client
Version:
Cognigy REST-Client
31 lines • 2.11 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.flowStateQuerySchema = exports.flowStateSchema = exports.flowStateDataSchema = exports.flowStateInDBDataSchema = void 0;
/* Custom Modules */
const createQuerySchema_1 = require("../../helper/createQuerySchema");
const IEntityMeta_1 = require("./IEntityMeta");
exports.flowStateInDBDataSchema = {
title: "flowStateInDBDataSchema",
type: "object",
additionalProperties: false,
properties: Object.assign(Object.assign({}, IEntityMeta_1.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" } }),
};
exports.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" },
},
};
exports.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" } }, IEntityMeta_1.entityMetaSchema.properties), exports.flowStateDataSchema.properties),
};
exports.flowStateQuerySchema = (0, createQuerySchema_1.createQuerySchema)("flowStateQuerySchema", exports.flowStateSchema);
//# sourceMappingURL=IFlowState.js.map