UNPKG

@cognigy/rest-api-client

Version:

Cognigy REST-Client

19 lines 1.06 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.logEntrySchema = exports.logEntryDataSchema = void 0; const TLogLevel_1 = require("./TLogLevel"); const ILoggerStack_1 = require("../../errors/ILoggerStack"); exports.logEntryDataSchema = { title: "logEntryDataSchema", type: "object", additionalProperties: false, properties: Object.assign(Object.assign({}, ILoggerStack_1.loggerStackSchema.properties), { msg: { type: "string" }, timestamp: { type: "object" }, type: { type: "string", enum: [...TLogLevel_1.logLevels] }, meta: { type: "object" } }), }; exports.logEntrySchema = { title: "logEntrySchema", type: "object", additionalProperties: false, required: ["timestamp", "msg", "type"], properties: Object.assign(Object.assign({}, exports.logEntryDataSchema.properties), { _id: { type: "string", format: "mongo-id" }, projectReference: { type: "string", format: "mongo-id" }, organisationReference: { type: "string", format: "mongo-id" } }), }; //# sourceMappingURL=ILogEntry.js.map