UNPKG

@cognigy/rest-api-client

Version:

Cognigy REST-Client

33 lines 1.5 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.profileQuerySchema = exports.profileSchema = exports.profileDataSchema = exports.profileTypes = void 0; /* Custom Modules */ const createQuerySchema_1 = require("../helper/createQuerySchema"); const IEntityMeta_1 = require("./resources/IEntityMeta"); ; ; exports.profileTypes = [ "simulator", "regular" // profiles that are not simulator. In db they will not have a type field for backward compatibility reasons. ]; exports.profileDataSchema = { title: "profileDataSchema", type: "object", additionalProperties: false, properties: { active: { type: "boolean" }, type: { type: "string", enum: [...exports.profileTypes] }, contactIds: { type: "array", items: { type: "string" }, additionalItems: false, minItems: 1 }, contactIdsHash: { type: "string" }, expiresAt: { type: "object" }, profile: {}, }, }; exports.profileSchema = { title: "profileSchema", type: "object", additionalProperties: false, properties: Object.assign(Object.assign(Object.assign({}, exports.profileDataSchema.properties), IEntityMeta_1.entityMetaSchema.properties), { projectReference: { type: "string", format: "mongo-id" }, organisationReference: { type: "string", format: "mongo-id" } }), }; exports.profileQuerySchema = (0, createQuerySchema_1.createQuerySchema)("profileQuerySchema", exports.profileSchema); //# sourceMappingURL=IProfile.js.map