@cognigy/rest-api-client
Version:
Cognigy REST-Client
27 lines • 917 B
JavaScript
/* Interfaces & Types */
import { entityMetaSchema } from "../resources/IEntityMeta";
export const taskDataSchema = {
title: "taskDataSchema",
type: "object",
additionalProperties: false,
properties: {
type: { type: "string" },
data: { type: "object" },
failReason: { type: "string" },
failedAt: { type: "object" },
runAt: { type: "object" },
finishedAt: { type: "object" },
progress: { type: "integer", minimum: 0, maximum: 100 },
status: { type: "string" },
expiresAt: { type: "object" },
consumerTag: { type: "string" },
isHidden: { type: "boolean" },
},
};
export const taskSchema = {
title: "taskSchema",
type: "object",
additionalProperties: false,
properties: Object.assign(Object.assign({}, taskDataSchema.properties), entityMetaSchema.properties),
};
//# sourceMappingURL=ITask.js.map