39 lines
734 B
JavaScript
39 lines
734 B
JavaScript
const WORKFLOW_SCHEMA = {
|
|
properties: {
|
|
type: "workflow",
|
|
pageId: {
|
|
type: "string",
|
|
},
|
|
screenId: {
|
|
type: "string",
|
|
},
|
|
live: {
|
|
type: "boolean",
|
|
},
|
|
uiTree: {
|
|
type: "object",
|
|
},
|
|
definition: {
|
|
type: "object",
|
|
properties: {
|
|
triggers: { type: "array" },
|
|
next: {
|
|
type: "object",
|
|
properties: {
|
|
type: { type: "string" },
|
|
actionId: { type: "string" },
|
|
args: { type: "object" },
|
|
conditions: { type: "array" },
|
|
errorHandling: { type: "object" },
|
|
next: { type: "object" },
|
|
},
|
|
},
|
|
},
|
|
},
|
|
},
|
|
}
|
|
|
|
module.exports = {
|
|
WORKFLOW_SCHEMA,
|
|
}
|