budibase/packages/server/src/schemas/index.js

39 lines
734 B
JavaScript
Raw Normal View History

2020-05-20 18:02:46 +02:00
const WORKFLOW_SCHEMA = {
properties: {
type: "workflow",
pageId: {
2020-05-27 13:51:19 +02:00
type: "string",
2020-05-20 18:02:46 +02:00
},
screenId: {
2020-05-27 13:51:19 +02:00
type: "string",
2020-05-20 18:02:46 +02:00
},
live: {
2020-05-27 13:51:19 +02:00
type: "boolean",
2020-05-20 18:02:46 +02:00
},
uiTree: {
2020-05-27 13:51:19 +02:00
type: "object",
2020-05-20 18:02:46 +02:00
},
definition: {
type: "object",
properties: {
triggers: { type: "array" },
2020-05-27 13:51:19 +02:00
next: {
2020-05-20 18:02:46 +02:00
type: "object",
properties: {
type: { type: "string" },
actionId: { type: "string" },
args: { type: "object" },
conditions: { type: "array" },
errorHandling: { type: "object" },
2020-05-27 13:51:19 +02:00
next: { type: "object" },
},
2020-05-20 18:02:46 +02:00
},
2020-05-27 13:51:19 +02:00
},
},
},
}
2020-05-20 18:02:46 +02:00
module.exports = {
2020-05-27 13:51:19 +02:00
WORKFLOW_SCHEMA,
}