@cognigy/rest-api-client
Version:
Cognigy REST-Client
16 lines • 892 B
JavaScript
import { logLevels } from "./TLogLevel";
import { loggerStackSchema } from "../../errors/ILoggerStack";
export const logEntryDataSchema = {
title: "logEntryDataSchema",
type: "object",
additionalProperties: false,
properties: Object.assign(Object.assign({}, loggerStackSchema.properties), { msg: { type: "string" }, timestamp: { type: "object" }, type: { type: "string", enum: [...logLevels] }, meta: { type: "object" } }),
};
export const logEntrySchema = {
title: "logEntrySchema",
type: "object",
additionalProperties: false,
required: ["timestamp", "msg", "type"],
properties: Object.assign(Object.assign({}, logEntryDataSchema.properties), { _id: { type: "string", format: "mongo-id" }, projectReference: { type: "string", format: "mongo-id" }, organisationReference: { type: "string", format: "mongo-id" } }),
};
//# sourceMappingURL=ILogEntry.js.map