UNPKG

@cognigy/rest-api-client

Version:

Cognigy REST-Client

67 lines 3.5 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.intentTrainGroupQuerySchema = exports.intentTrainGroupSchema = exports.intentTrainGroupDataSchema = exports.intentTrainGroupInDBDataSchema = void 0; /* Custom modules */ const createQuerySchema_1 = require("../../../helper/createQuerySchema"); const ITrainGroupFeedbackReport_1 = require("./ITrainGroupFeedbackReport"); exports.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" } } } } }; exports.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: ITrainGroupFeedbackReport_1.trainGroupFeedbackReportDataSchema, isTrainingOutOfDate: { type: "boolean" }, lexiconsInServiceMatcher: { type: "boolean" }, nluOptions: { type: "object", additionalProperties: false, properties: { intentModelVersion: { type: "string" } } } } }; exports.intentTrainGroupSchema = { title: "intentTrainGroupSchema", type: "object", additionalProperties: false, properties: Object.assign(Object.assign({}, exports.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 exports.intentTrainGroupQuerySchema = (0, createQuerySchema_1.createQuerySchema)("intentTrainGroupQuerySchema", exports.intentTrainGroupSchema); //# sourceMappingURL=IIntentTrainGroup.js.map