@cognigy/rest-api-client
Version:
Cognigy REST-Client
65 lines • 2.24 kB
JavaScript
import { nodeFieldSchema } from "../INodeDescriptorSet";
import { nodeDataSchema } from "../IChartNode";
import { extensionDataSchema } from "../../resources/IExtension";
export const chartExecutableNodeSchema = {
title: "chartExecutableNodeSchema",
type: "object",
additionalProperties: false,
required: ["id", "behavior", "children", "config", "isCognigy", "next", "projectId", "organisationId", "trustedCode", "type"],
properties: {
id: { type: "string", format: "uuid" },
_id: { type: "string", format: "mongo-id" },
behavior: {
type: "object",
properties: {
stopping: { type: "boolean" },
},
},
fields: {
type: "array",
items: { items: nodeFieldSchema },
additionalItems: false
},
children: {
type: "array", items: { type: "string", format: "uuid" },
},
config: { type: "object" },
isCognigy: { type: "boolean" },
isDisabled: { type: "boolean" },
next: {
oneOf: [
{ type: "null" },
{ type: "string", format: "uuid" },
],
},
projectId: {
oneOf: [
{ type: "null" },
{ type: "string", format: "mongo-id" },
],
},
organisationId: {
oneOf: [
{ type: "null" },
{ type: "string", format: "mongo-id" },
],
},
pathToPackageExecutable: { type: "string" },
trustedCode: { type: "boolean" },
type: { type: "string", minLength: 1 },
label: nodeDataSchema.properties.label,
extension: { type: "string" },
extensionStorage: extensionDataSchema.properties.storage,
analyticsLabel: { type: ["string", "null"], format: "analytics-label" },
mock: {
type: "object",
properties: {
isEnabled: { type: "boolean" },
code: { type: "string" },
transpiled: { type: "string" },
hasError: { type: "boolean" },
}
}
},
};
//# sourceMappingURL=IChartExecutableNode.js.map