UNPKG

@cognigy/rest-api-client

Version:

Cognigy REST-Client

64 lines 3.22 kB
/* Custom modules */ import { createQuerySchema } from "../../../helper/createQuerySchema"; import { trainGroupFeedbackReportDataSchema } from "./ITrainGroupFeedbackReport"; export const intentTrainGroupInDBDataSchema = { title: "intentTrainGroupInDBDataSchema", type: "object", additionalProperties: false, properties: { _id: { type: "string", format: "mongo-id" }, referenceId: { type: "string", format: "uuid" }, flowReference: { type: "string", format: "mongo-id" }, localeReference: { type: "string", format: "mongo-id" }, projectReference: { type: "string", format: "mongo-id" }, organisationReference: { type: "string", format: "mongo-id" }, lastChanged: { type: "integer", format: "timestamp" }, lastChangedBy: { type: "string", format: "mongo-id" }, lastTrainedAt: { type: ["integer", "null"], format: "timestamp" }, lastTrainedBy: { type: ["string", "null"], format: "mongo-id" }, lastRelevantChangeAt: { type: ["integer", "null"], format: "timestamp" }, lastRelevantChangeBy: { type: ["string", "null"], format: "mongo-id" }, lexiconsInServiceMatcher: { type: "boolean" }, nluOptions: { type: "object", additionalProperties: false, properties: { intentModelVersion: { type: "string" } } } } }; export const intentTrainGroupDataSchema = { title: "intentTrainGroupDataSchema", type: "object", additionalProperties: false, properties: { lastTrainedAt: { type: ["integer", "null"], format: "timestamp" }, lastTrainedBy: { type: ["string", "null"], format: "mongo-id" }, lastRelevantChangeAt: { type: ["integer", "null"], format: "timestamp" }, lastRelevantChangeBy: { type: ["string", "null"], format: "mongo-id" }, feedbackReport: trainGroupFeedbackReportDataSchema, isTrainingOutOfDate: { type: "boolean" }, lexiconsInServiceMatcher: { type: "boolean" }, nluOptions: { type: "object", additionalProperties: false, properties: { intentModelVersion: { type: "string" } } } } }; export const intentTrainGroupSchema = { title: "intentTrainGroupSchema", type: "object", additionalProperties: false, properties: Object.assign(Object.assign({}, intentTrainGroupDataSchema.properties), { _id: { type: "string", format: "mongo-id" }, referenceId: { type: "string", format: "uuid" }, flowReference: { type: "string", format: "mongo-id" }, localeReference: { type: "string", format: "mongo-id" }, projectReference: { type: "string", format: "mongo-id" }, organisationReference: { type: "string", format: "mongo-id" }, lastChanged: { type: "integer", format: "timestamp" }, lastChangedBy: { type: "string", format: "mongo-id" } }) }; // TODO: This doesn't work since it removes the flowReference key from the schema export const intentTrainGroupQuerySchema = createQuerySchema("intentTrainGroupQuerySchema", intentTrainGroupSchema); //# sourceMappingURL=IIntentTrainGroup.js.map