cxtms 1.9.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +384 -0
- package/dist/cli.d.ts +6 -0
- package/dist/cli.d.ts.map +1 -0
- package/dist/cli.js +4784 -0
- package/dist/cli.js.map +1 -0
- package/dist/extractUtils.d.ts +11 -0
- package/dist/extractUtils.d.ts.map +1 -0
- package/dist/extractUtils.js +19 -0
- package/dist/extractUtils.js.map +1 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +11 -0
- package/dist/index.js.map +1 -0
- package/dist/types.d.ts +129 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +6 -0
- package/dist/types.js.map +1 -0
- package/dist/utils/schemaLoader.d.ts +17 -0
- package/dist/utils/schemaLoader.d.ts.map +1 -0
- package/dist/utils/schemaLoader.js +134 -0
- package/dist/utils/schemaLoader.js.map +1 -0
- package/dist/validator.d.ts +72 -0
- package/dist/validator.d.ts.map +1 -0
- package/dist/validator.js +432 -0
- package/dist/validator.js.map +1 -0
- package/dist/workflowValidator.d.ts +103 -0
- package/dist/workflowValidator.d.ts.map +1 -0
- package/dist/workflowValidator.js +753 -0
- package/dist/workflowValidator.js.map +1 -0
- package/package.json +51 -0
- package/schemas/actions/all.json +27 -0
- package/schemas/actions/clipboard.json +46 -0
- package/schemas/actions/confirm.json +21 -0
- package/schemas/actions/consoleLog.json +16 -0
- package/schemas/actions/dialog.json +25 -0
- package/schemas/actions/fileDownload.json +16 -0
- package/schemas/actions/forEach.json +31 -0
- package/schemas/actions/if.json +12 -0
- package/schemas/actions/mutation.json +25 -0
- package/schemas/actions/navigate.json +18 -0
- package/schemas/actions/navigateBack.json +22 -0
- package/schemas/actions/navigateBackOrClose.json +21 -0
- package/schemas/actions/notification.json +19 -0
- package/schemas/actions/openBarcodeScanner.json +104 -0
- package/schemas/actions/query.json +32 -0
- package/schemas/actions/refresh.json +13 -0
- package/schemas/actions/resetDirtyState.json +22 -0
- package/schemas/actions/setFields.json +21 -0
- package/schemas/actions/setStore.json +13 -0
- package/schemas/actions/validateForm.json +15 -0
- package/schemas/actions/workflow.json +24 -0
- package/schemas/components/README.md +147 -0
- package/schemas/components/appComponent.json +58 -0
- package/schemas/components/barcodeScanner.json +69 -0
- package/schemas/components/button.json +123 -0
- package/schemas/components/calendar.json +489 -0
- package/schemas/components/card.json +176 -0
- package/schemas/components/collection.json +54 -0
- package/schemas/components/dataGrid.json +119 -0
- package/schemas/components/datasource.json +151 -0
- package/schemas/components/dropdown.json +57 -0
- package/schemas/components/field-collection.json +618 -0
- package/schemas/components/field.json +265 -0
- package/schemas/components/form.json +234 -0
- package/schemas/components/index.json +71 -0
- package/schemas/components/layout.json +69 -0
- package/schemas/components/module.json +167 -0
- package/schemas/components/navDropdown.json +36 -0
- package/schemas/components/navbar.json +78 -0
- package/schemas/components/navbarItem.json +28 -0
- package/schemas/components/navbarLink.json +36 -0
- package/schemas/components/row.json +31 -0
- package/schemas/components/slot.json +30 -0
- package/schemas/components/tab.json +34 -0
- package/schemas/components/tabs.json +35 -0
- package/schemas/components/timeline.json +172 -0
- package/schemas/components/timelineGrid.json +328 -0
- package/schemas/fields/README.md +66 -0
- package/schemas/fields/attachment.json +156 -0
- package/schemas/fields/autocomplete-googleplaces.json +130 -0
- package/schemas/fields/checkbox.json +82 -0
- package/schemas/fields/date.json +88 -0
- package/schemas/fields/datetime.json +75 -0
- package/schemas/fields/email.json +75 -0
- package/schemas/fields/index.json +53 -0
- package/schemas/fields/number.json +91 -0
- package/schemas/fields/password.json +70 -0
- package/schemas/fields/radio.json +94 -0
- package/schemas/fields/rangedatetime.json +56 -0
- package/schemas/fields/select-async.json +334 -0
- package/schemas/fields/select.json +115 -0
- package/schemas/fields/tel.json +79 -0
- package/schemas/fields/text.json +86 -0
- package/schemas/fields/textarea.json +95 -0
- package/schemas/fields/time.json +91 -0
- package/schemas/fields/url.json +74 -0
- package/schemas/schema.graphql +12248 -0
- package/schemas/schemas.json +610 -0
- package/schemas/workflows/activity.json +96 -0
- package/schemas/workflows/common/condition.json +48 -0
- package/schemas/workflows/common/expression.json +76 -0
- package/schemas/workflows/common/mapping.json +173 -0
- package/schemas/workflows/common/step.json +38 -0
- package/schemas/workflows/flow/aggregation.json +44 -0
- package/schemas/workflows/flow/entity.json +129 -0
- package/schemas/workflows/flow/state.json +105 -0
- package/schemas/workflows/flow/transition.json +143 -0
- package/schemas/workflows/input.json +122 -0
- package/schemas/workflows/output.json +61 -0
- package/schemas/workflows/schedule.json +26 -0
- package/schemas/workflows/tasks/accounting-transaction.json +95 -0
- package/schemas/workflows/tasks/action-event.json +65 -0
- package/schemas/workflows/tasks/all.json +152 -0
- package/schemas/workflows/tasks/appmodule.json +56 -0
- package/schemas/workflows/tasks/attachment.json +97 -0
- package/schemas/workflows/tasks/authentication.json +86 -0
- package/schemas/workflows/tasks/caching.json +68 -0
- package/schemas/workflows/tasks/charge.json +92 -0
- package/schemas/workflows/tasks/commodity.json +92 -0
- package/schemas/workflows/tasks/contact-address.json +72 -0
- package/schemas/workflows/tasks/contact-payment-method.json +72 -0
- package/schemas/workflows/tasks/contact.json +82 -0
- package/schemas/workflows/tasks/csv.json +81 -0
- package/schemas/workflows/tasks/document-render.json +105 -0
- package/schemas/workflows/tasks/document-send.json +84 -0
- package/schemas/workflows/tasks/edi.json +157 -0
- package/schemas/workflows/tasks/email-send.json +110 -0
- package/schemas/workflows/tasks/error.json +72 -0
- package/schemas/workflows/tasks/export.json +90 -0
- package/schemas/workflows/tasks/filetransfer.json +102 -0
- package/schemas/workflows/tasks/flow-transition.json +68 -0
- package/schemas/workflows/tasks/foreach.json +69 -0
- package/schemas/workflows/tasks/generic.json +47 -0
- package/schemas/workflows/tasks/graphql.json +78 -0
- package/schemas/workflows/tasks/httpRequest.json +161 -0
- package/schemas/workflows/tasks/import.json +64 -0
- package/schemas/workflows/tasks/inventory.json +67 -0
- package/schemas/workflows/tasks/job.json +88 -0
- package/schemas/workflows/tasks/log.json +73 -0
- package/schemas/workflows/tasks/map.json +58 -0
- package/schemas/workflows/tasks/movement.json +54 -0
- package/schemas/workflows/tasks/note.json +59 -0
- package/schemas/workflows/tasks/number.json +65 -0
- package/schemas/workflows/tasks/order-tracking-event.json +109 -0
- package/schemas/workflows/tasks/order.json +139 -0
- package/schemas/workflows/tasks/payment.json +85 -0
- package/schemas/workflows/tasks/pdf-document.json +60 -0
- package/schemas/workflows/tasks/postal-codes.json +92 -0
- package/schemas/workflows/tasks/resolve-timezone.json +65 -0
- package/schemas/workflows/tasks/setVariable.json +76 -0
- package/schemas/workflows/tasks/switch.json +75 -0
- package/schemas/workflows/tasks/template.json +73 -0
- package/schemas/workflows/tasks/tracking-event.json +137 -0
- package/schemas/workflows/tasks/transmission.json +185 -0
- package/schemas/workflows/tasks/unzip-file.json +68 -0
- package/schemas/workflows/tasks/user.json +70 -0
- package/schemas/workflows/tasks/validation.json +99 -0
- package/schemas/workflows/tasks/while.json +53 -0
- package/schemas/workflows/tasks/workflow-execute.json +82 -0
- package/schemas/workflows/trigger.json +90 -0
- package/schemas/workflows/variable.json +46 -0
- package/schemas/workflows/workflow.json +335 -0
- package/scripts/postinstall.js +291 -0
- package/scripts/setup-vscode.js +80 -0
- package/skills/cxtms-developer/SKILL.md +118 -0
- package/skills/cxtms-developer/ref-cli-auth.md +120 -0
- package/skills/cxtms-developer/ref-entity-accounting.md +180 -0
- package/skills/cxtms-developer/ref-entity-commodity.md +239 -0
- package/skills/cxtms-developer/ref-entity-contact.md +163 -0
- package/skills/cxtms-developer/ref-entity-geography.md +154 -0
- package/skills/cxtms-developer/ref-entity-job.md +77 -0
- package/skills/cxtms-developer/ref-entity-notification.md +85 -0
- package/skills/cxtms-developer/ref-entity-order-sub.md +160 -0
- package/skills/cxtms-developer/ref-entity-order.md +183 -0
- package/skills/cxtms-developer/ref-entity-organization.md +41 -0
- package/skills/cxtms-developer/ref-entity-rate.md +182 -0
- package/skills/cxtms-developer/ref-entity-shared.md +176 -0
- package/skills/cxtms-developer/ref-entity-warehouse.md +115 -0
- package/skills/cxtms-developer/ref-graphql-query.md +309 -0
- package/skills/cxtms-module-builder/SKILL.md +477 -0
- package/skills/cxtms-module-builder/ref-components-data.md +293 -0
- package/skills/cxtms-module-builder/ref-components-display.md +411 -0
- package/skills/cxtms-module-builder/ref-components-forms.md +369 -0
- package/skills/cxtms-module-builder/ref-components-interactive.md +317 -0
- package/skills/cxtms-module-builder/ref-components-layout.md +390 -0
- package/skills/cxtms-module-builder/ref-components-specialized.md +477 -0
- package/skills/cxtms-workflow-builder/SKILL.md +438 -0
- package/skills/cxtms-workflow-builder/ref-accounting.md +66 -0
- package/skills/cxtms-workflow-builder/ref-communication.md +169 -0
- package/skills/cxtms-workflow-builder/ref-entity.md +342 -0
- package/skills/cxtms-workflow-builder/ref-expressions-ncalc.md +128 -0
- package/skills/cxtms-workflow-builder/ref-expressions-template.md +161 -0
- package/skills/cxtms-workflow-builder/ref-filetransfer.md +80 -0
- package/skills/cxtms-workflow-builder/ref-flow.md +210 -0
- package/skills/cxtms-workflow-builder/ref-other.md +157 -0
- package/skills/cxtms-workflow-builder/ref-query.md +105 -0
- package/skills/cxtms-workflow-builder/ref-utilities.md +417 -0
- package/templates/module-configuration.yaml +44 -0
- package/templates/module-form.yaml +152 -0
- package/templates/module-grid.yaml +229 -0
- package/templates/module-select.yaml +139 -0
- package/templates/module.yaml +84 -0
- package/templates/workflow-api-tracking.yaml +189 -0
- package/templates/workflow-basic.yaml +76 -0
- package/templates/workflow-document.yaml +155 -0
- package/templates/workflow-entity-trigger.yaml +90 -0
- package/templates/workflow-ftp-edi.yaml +158 -0
- package/templates/workflow-ftp-tracking.yaml +161 -0
- package/templates/workflow-mcp-tool.yaml +112 -0
- package/templates/workflow-public-api.yaml +135 -0
- package/templates/workflow-scheduled-execute.yaml +75 -0
- package/templates/workflow-scheduled.yaml +125 -0
- package/templates/workflow-utility.yaml +96 -0
- package/templates/workflow-webhook.yaml +128 -0
- package/templates/workflow.yaml +140 -0
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"title": "Flow Transition",
|
|
4
|
+
"description": "Transition definition for Flow workflows. Defines how entities move between states.",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"name": {
|
|
8
|
+
"type": "string",
|
|
9
|
+
"minLength": 1,
|
|
10
|
+
"description": "Unique transition name within the workflow."
|
|
11
|
+
},
|
|
12
|
+
"displayName": {
|
|
13
|
+
"type": "string",
|
|
14
|
+
"description": "Display name for UI presentation."
|
|
15
|
+
},
|
|
16
|
+
"from": {
|
|
17
|
+
"oneOf": [
|
|
18
|
+
{
|
|
19
|
+
"type": "string",
|
|
20
|
+
"description": "Single source state name, or '*' for wildcard (any non-final state)."
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"type": "array",
|
|
24
|
+
"items": {
|
|
25
|
+
"type": "string"
|
|
26
|
+
},
|
|
27
|
+
"description": "Array of source state names. Transition is valid from any of them."
|
|
28
|
+
}
|
|
29
|
+
],
|
|
30
|
+
"description": "Source state(s). Can be a single state, array of states, or '*' wildcard."
|
|
31
|
+
},
|
|
32
|
+
"to": {
|
|
33
|
+
"type": "string",
|
|
34
|
+
"description": "Target state name. Must be a leaf state (no children)."
|
|
35
|
+
},
|
|
36
|
+
"trigger": {
|
|
37
|
+
"type": "string",
|
|
38
|
+
"enum": ["auto", "manual", "event"],
|
|
39
|
+
"description": "Trigger type: 'auto' (condition-based), 'manual' (user-initiated), or 'event' (external event)."
|
|
40
|
+
},
|
|
41
|
+
"eventName": {
|
|
42
|
+
"type": "string",
|
|
43
|
+
"description": "Event name for 'event' trigger type. Required when trigger is 'event'."
|
|
44
|
+
},
|
|
45
|
+
"priority": {
|
|
46
|
+
"type": "integer",
|
|
47
|
+
"description": "Priority for ordering when multiple transitions are valid. Higher numbers = higher priority. Default is 50."
|
|
48
|
+
},
|
|
49
|
+
"conditions": {
|
|
50
|
+
"oneOf": [
|
|
51
|
+
{
|
|
52
|
+
"type": "string",
|
|
53
|
+
"description": "Single condition expression"
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"type": "array",
|
|
57
|
+
"items": {
|
|
58
|
+
"oneOf": [
|
|
59
|
+
{ "type": "string" },
|
|
60
|
+
{
|
|
61
|
+
"type": "object",
|
|
62
|
+
"properties": {
|
|
63
|
+
"expression": { "type": "string" }
|
|
64
|
+
},
|
|
65
|
+
"required": ["expression"]
|
|
66
|
+
}
|
|
67
|
+
]
|
|
68
|
+
},
|
|
69
|
+
"description": "Array of conditions that must all evaluate to true."
|
|
70
|
+
}
|
|
71
|
+
],
|
|
72
|
+
"description": "Conditions for the transition to occur."
|
|
73
|
+
},
|
|
74
|
+
"steps": {
|
|
75
|
+
"type": "array",
|
|
76
|
+
"items": {
|
|
77
|
+
"type": "object",
|
|
78
|
+
"properties": {
|
|
79
|
+
"task": { "type": "string" },
|
|
80
|
+
"name": { "type": "string" },
|
|
81
|
+
"inputs": { "type": "object", "additionalProperties": true },
|
|
82
|
+
"outputs": { "type": "array" },
|
|
83
|
+
"conditions": { "oneOf": [{ "type": "string" }, { "type": "array" }] },
|
|
84
|
+
"continueOnError": { "type": "boolean" }
|
|
85
|
+
},
|
|
86
|
+
"required": ["task"],
|
|
87
|
+
"additionalProperties": true
|
|
88
|
+
},
|
|
89
|
+
"description": "Steps to execute during the transition. Executed after onExit and before onEnter steps."
|
|
90
|
+
}
|
|
91
|
+
},
|
|
92
|
+
"required": ["name", "trigger"],
|
|
93
|
+
"allOf": [
|
|
94
|
+
{
|
|
95
|
+
"if": {
|
|
96
|
+
"properties": {
|
|
97
|
+
"trigger": { "const": "event" }
|
|
98
|
+
},
|
|
99
|
+
"required": ["trigger"]
|
|
100
|
+
},
|
|
101
|
+
"then": {
|
|
102
|
+
"required": ["eventName"]
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
],
|
|
106
|
+
"additionalProperties": false,
|
|
107
|
+
"x-examples": [
|
|
108
|
+
{
|
|
109
|
+
"name": "submit",
|
|
110
|
+
"from": "Draft",
|
|
111
|
+
"to": "Submitted",
|
|
112
|
+
"trigger": "manual"
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
"name": "auto_approve",
|
|
116
|
+
"displayName": "Auto Approve Order",
|
|
117
|
+
"from": "Submitted",
|
|
118
|
+
"to": "Approved",
|
|
119
|
+
"trigger": "auto",
|
|
120
|
+
"priority": 10,
|
|
121
|
+
"conditions": ["Order.TotalAmount < 1000"]
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
"name": "cancel",
|
|
125
|
+
"from": ["Draft", "Submitted", "Approved"],
|
|
126
|
+
"to": "Cancelled",
|
|
127
|
+
"trigger": "manual"
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
"name": "deliver",
|
|
131
|
+
"from": "Shipped",
|
|
132
|
+
"to": "Delivered",
|
|
133
|
+
"trigger": "event",
|
|
134
|
+
"eventName": "DeliveryConfirmed"
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
"name": "force_cancel",
|
|
138
|
+
"from": "*",
|
|
139
|
+
"to": "Cancelled",
|
|
140
|
+
"trigger": "manual"
|
|
141
|
+
}
|
|
142
|
+
]
|
|
143
|
+
}
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"title": "Workflow Input Parameter",
|
|
4
|
+
"description": "Definition of a workflow input parameter. Only 'name', 'type', and 'props' are valid top-level properties. All other settings (required, displayName, description, etc.) belong inside 'props'.",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"name": {
|
|
8
|
+
"type": "string",
|
|
9
|
+
"pattern": "^[a-zA-Z_][a-zA-Z0-9_]*$",
|
|
10
|
+
"description": "Input parameter name (must be valid identifier)"
|
|
11
|
+
},
|
|
12
|
+
"type": {
|
|
13
|
+
"type": "string",
|
|
14
|
+
"description": "Input parameter type (e.g., text, number, integer, boolean, date, datetime, options, object, array, or custom entity types)"
|
|
15
|
+
},
|
|
16
|
+
"props": {
|
|
17
|
+
"type": "object",
|
|
18
|
+
"description": "Input properties and configuration",
|
|
19
|
+
"properties": {
|
|
20
|
+
"displayName": {
|
|
21
|
+
"type": "string",
|
|
22
|
+
"description": "Human-readable display name"
|
|
23
|
+
},
|
|
24
|
+
"description": {
|
|
25
|
+
"type": "string",
|
|
26
|
+
"description": "Description of the input parameter"
|
|
27
|
+
},
|
|
28
|
+
"in": {
|
|
29
|
+
"type": "string",
|
|
30
|
+
"enum": ["path", "query", "header", "body"],
|
|
31
|
+
"description": "Parameter location for PublicApi workflows: path, query, header, or body"
|
|
32
|
+
},
|
|
33
|
+
"format": {
|
|
34
|
+
"type": "string",
|
|
35
|
+
"description": "Parameter format hint for OpenAPI documentation (e.g., 'uuid', 'date-time', 'email', 'int32', 'int64')"
|
|
36
|
+
},
|
|
37
|
+
"required": {
|
|
38
|
+
"type": "boolean",
|
|
39
|
+
"description": "Whether input is required"
|
|
40
|
+
},
|
|
41
|
+
"multiple": {
|
|
42
|
+
"type": "boolean",
|
|
43
|
+
"description": "Whether multiple values are allowed"
|
|
44
|
+
},
|
|
45
|
+
"visible": {
|
|
46
|
+
"type": "boolean",
|
|
47
|
+
"description": "Whether input is visible in UI"
|
|
48
|
+
},
|
|
49
|
+
"defaultValue": {
|
|
50
|
+
"description": "Default value for the input"
|
|
51
|
+
},
|
|
52
|
+
"mapping": {
|
|
53
|
+
"type": "string",
|
|
54
|
+
"description": "Maps to entity property (e.g., 'order.orderId')"
|
|
55
|
+
},
|
|
56
|
+
"filter": {
|
|
57
|
+
"type": "string",
|
|
58
|
+
"description": "Filter expression for entity inputs"
|
|
59
|
+
},
|
|
60
|
+
"default": {
|
|
61
|
+
"description": "Default value for the input (alternative to defaultValue)"
|
|
62
|
+
},
|
|
63
|
+
"itemType": {
|
|
64
|
+
"type": "string",
|
|
65
|
+
"description": "Item type for array inputs (e.g., 'number', 'text')"
|
|
66
|
+
},
|
|
67
|
+
"schema": {
|
|
68
|
+
"description": "Input validation schema. Can be a type assertion (e.g., {type: 'string'}), an object field list (multiline string), or an array field list with types/conditions.",
|
|
69
|
+
"oneOf": [
|
|
70
|
+
{
|
|
71
|
+
"type": "string",
|
|
72
|
+
"description": "Multiline field list describing expected object/array shape"
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
"type": "object",
|
|
76
|
+
"description": "Type assertion or structured schema",
|
|
77
|
+
"properties": {
|
|
78
|
+
"type": {
|
|
79
|
+
"type": "string",
|
|
80
|
+
"description": "Expected type (e.g., 'string', 'number', 'uuid')"
|
|
81
|
+
}
|
|
82
|
+
},
|
|
83
|
+
"additionalProperties": true
|
|
84
|
+
}
|
|
85
|
+
]
|
|
86
|
+
},
|
|
87
|
+
"additionalProperties": {
|
|
88
|
+
"type": "object",
|
|
89
|
+
"description": "DEPRECATED: Use 'visible' and 'mapping' directly on props instead. Legacy nested UI/mapping metadata.",
|
|
90
|
+
"properties": {
|
|
91
|
+
"visible": {
|
|
92
|
+
"type": "boolean",
|
|
93
|
+
"description": "Whether input is visible in UI (deprecated, use props.visible)"
|
|
94
|
+
},
|
|
95
|
+
"mapping": {
|
|
96
|
+
"type": "string",
|
|
97
|
+
"description": "Maps to entity property path (deprecated, use props.mapping)"
|
|
98
|
+
}
|
|
99
|
+
},
|
|
100
|
+
"additionalProperties": true
|
|
101
|
+
},
|
|
102
|
+
"options": {
|
|
103
|
+
"type": "array",
|
|
104
|
+
"description": "Available options for 'options' type",
|
|
105
|
+
"items": {
|
|
106
|
+
"type": "object",
|
|
107
|
+
"properties": {
|
|
108
|
+
"name": {
|
|
109
|
+
"type": "string"
|
|
110
|
+
},
|
|
111
|
+
"value": {}
|
|
112
|
+
},
|
|
113
|
+
"required": ["name", "value"]
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
},
|
|
117
|
+
"additionalProperties": true
|
|
118
|
+
}
|
|
119
|
+
},
|
|
120
|
+
"required": ["name"],
|
|
121
|
+
"additionalProperties": false
|
|
122
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"title": "Workflow Output",
|
|
4
|
+
"description": "Definition of a workflow output",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"name": {
|
|
8
|
+
"type": "string",
|
|
9
|
+
"description": "Output name identifier"
|
|
10
|
+
},
|
|
11
|
+
"mapping": {
|
|
12
|
+
"type": "string",
|
|
13
|
+
"description": "Path to variable value (e.g., 'activityName.stepName.outputVar')"
|
|
14
|
+
},
|
|
15
|
+
"props": {
|
|
16
|
+
"type": "object",
|
|
17
|
+
"description": "Output metadata for PublicApi workflows (OpenAPI response schema)",
|
|
18
|
+
"properties": {
|
|
19
|
+
"type": {
|
|
20
|
+
"type": "string",
|
|
21
|
+
"description": "Response type (e.g., 'object', 'array', 'string', 'integer')"
|
|
22
|
+
},
|
|
23
|
+
"description": {
|
|
24
|
+
"type": "string",
|
|
25
|
+
"description": "Description of the output for OpenAPI documentation"
|
|
26
|
+
},
|
|
27
|
+
"schema": {
|
|
28
|
+
"type": "object",
|
|
29
|
+
"description": "JSON Schema describing the response structure",
|
|
30
|
+
"additionalProperties": true
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
"additionalProperties": true
|
|
34
|
+
},
|
|
35
|
+
"additionalProperties": {
|
|
36
|
+
"type": "object",
|
|
37
|
+
"description": "Additional output configuration",
|
|
38
|
+
"properties": {
|
|
39
|
+
"displayName": {
|
|
40
|
+
"type": "string"
|
|
41
|
+
},
|
|
42
|
+
"description": {
|
|
43
|
+
"type": "string"
|
|
44
|
+
},
|
|
45
|
+
"visible": {
|
|
46
|
+
"type": "boolean"
|
|
47
|
+
},
|
|
48
|
+
"type": {
|
|
49
|
+
"type": "string",
|
|
50
|
+
"enum": ["json", "text"]
|
|
51
|
+
},
|
|
52
|
+
"multiple": {
|
|
53
|
+
"type": "boolean"
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
"additionalProperties": true
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
"required": ["name", "mapping"],
|
|
60
|
+
"additionalProperties": true
|
|
61
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"title": "Workflow Schedule",
|
|
4
|
+
"description": "Definition of a scheduled workflow execution",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"cron": {
|
|
8
|
+
"type": "string",
|
|
9
|
+
"description": "Cron expression for scheduled execution (e.g., '30 0 1-7 * 6')"
|
|
10
|
+
},
|
|
11
|
+
"displayName": {
|
|
12
|
+
"type": "string",
|
|
13
|
+
"description": "Human-readable description of the schedule"
|
|
14
|
+
},
|
|
15
|
+
"enabled": {
|
|
16
|
+
"type": "boolean",
|
|
17
|
+
"description": "Whether the schedule is enabled"
|
|
18
|
+
},
|
|
19
|
+
"timezone": {
|
|
20
|
+
"type": "string",
|
|
21
|
+
"description": "Timezone for the schedule"
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
"required": ["cron"],
|
|
25
|
+
"additionalProperties": true
|
|
26
|
+
}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"title": "Accounting Transaction Tasks",
|
|
4
|
+
"description": "Accounting transaction operations (invoices, bills, payments)",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"task": {
|
|
8
|
+
"type": "string",
|
|
9
|
+
"enum": [
|
|
10
|
+
"AccountingTransaction/Generate@1",
|
|
11
|
+
"AccountingTransaction/Update@1",
|
|
12
|
+
"AccountingTransaction/Delete@1",
|
|
13
|
+
"AccountingTransaction/ApplyCreditToInvoices@1"
|
|
14
|
+
],
|
|
15
|
+
"description": "Task type identifier"
|
|
16
|
+
},
|
|
17
|
+
"name": {
|
|
18
|
+
"type": "string",
|
|
19
|
+
"description": "Step name identifier"
|
|
20
|
+
},
|
|
21
|
+
"description": {
|
|
22
|
+
"type": "string",
|
|
23
|
+
"description": "Step description"
|
|
24
|
+
},
|
|
25
|
+
"conditions": {
|
|
26
|
+
"type": "array",
|
|
27
|
+
"items": {
|
|
28
|
+
"type": "object",
|
|
29
|
+
"properties": {
|
|
30
|
+
"expression": {
|
|
31
|
+
"type": "string"
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
"required": ["expression"]
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
"continueOnError": {
|
|
38
|
+
"type": "boolean"
|
|
39
|
+
},
|
|
40
|
+
"inputs": {
|
|
41
|
+
"type": "object",
|
|
42
|
+
"description": "Accounting transaction inputs",
|
|
43
|
+
"properties": {
|
|
44
|
+
"accountingTransactionId": {
|
|
45
|
+
"type": "string",
|
|
46
|
+
"description": "Transaction ID"
|
|
47
|
+
},
|
|
48
|
+
"type": {
|
|
49
|
+
"type": "string",
|
|
50
|
+
"enum": ["Invoice", "Bill", "CreditMemo", "Payment"],
|
|
51
|
+
"description": "Transaction type"
|
|
52
|
+
},
|
|
53
|
+
"orderId": {
|
|
54
|
+
"type": "string",
|
|
55
|
+
"description": "Associated order ID"
|
|
56
|
+
},
|
|
57
|
+
"jobId": {
|
|
58
|
+
"type": "string",
|
|
59
|
+
"description": "Associated job ID"
|
|
60
|
+
},
|
|
61
|
+
"customerId": {
|
|
62
|
+
"type": "string",
|
|
63
|
+
"description": "Customer contact ID"
|
|
64
|
+
},
|
|
65
|
+
"appendToExistingInvoice": {
|
|
66
|
+
"type": "boolean",
|
|
67
|
+
"description": "Append charges to existing unpaid invoice"
|
|
68
|
+
},
|
|
69
|
+
"entity": {
|
|
70
|
+
"type": "object",
|
|
71
|
+
"description": "Transaction entity data",
|
|
72
|
+
"additionalProperties": true
|
|
73
|
+
}
|
|
74
|
+
},
|
|
75
|
+
"additionalProperties": true
|
|
76
|
+
},
|
|
77
|
+
"outputs": {
|
|
78
|
+
"type": "array",
|
|
79
|
+
"items": {
|
|
80
|
+
"type": "object",
|
|
81
|
+
"properties": {
|
|
82
|
+
"name": {
|
|
83
|
+
"type": "string"
|
|
84
|
+
},
|
|
85
|
+
"mapping": {
|
|
86
|
+
"type": "string"
|
|
87
|
+
}
|
|
88
|
+
},
|
|
89
|
+
"required": ["name", "mapping"]
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
},
|
|
93
|
+
"required": ["task"],
|
|
94
|
+
"additionalProperties": true
|
|
95
|
+
}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"title": "Action Event Tasks",
|
|
4
|
+
"description": "Action event operations (triggers UI notifications or webhooks)",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"task": {
|
|
8
|
+
"type": "string",
|
|
9
|
+
"enum": [
|
|
10
|
+
"ActionEvent/Create"
|
|
11
|
+
],
|
|
12
|
+
"description": "Task type identifier"
|
|
13
|
+
},
|
|
14
|
+
"name": {
|
|
15
|
+
"type": "string",
|
|
16
|
+
"description": "Step name identifier"
|
|
17
|
+
},
|
|
18
|
+
"description": {
|
|
19
|
+
"type": "string",
|
|
20
|
+
"description": "Step description"
|
|
21
|
+
},
|
|
22
|
+
"conditions": {
|
|
23
|
+
"type": "array",
|
|
24
|
+
"items": {
|
|
25
|
+
"type": "object",
|
|
26
|
+
"properties": {
|
|
27
|
+
"expression": { "type": "string" }
|
|
28
|
+
},
|
|
29
|
+
"required": ["expression"]
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
"continueOnError": {
|
|
33
|
+
"type": "boolean"
|
|
34
|
+
},
|
|
35
|
+
"inputs": {
|
|
36
|
+
"type": "object",
|
|
37
|
+
"description": "Action event inputs",
|
|
38
|
+
"properties": {
|
|
39
|
+
"eventName": {
|
|
40
|
+
"type": "string",
|
|
41
|
+
"description": "Event name identifier"
|
|
42
|
+
},
|
|
43
|
+
"data": {
|
|
44
|
+
"type": "object",
|
|
45
|
+
"description": "Event data payload",
|
|
46
|
+
"additionalProperties": true
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
"additionalProperties": true
|
|
50
|
+
},
|
|
51
|
+
"outputs": {
|
|
52
|
+
"type": "array",
|
|
53
|
+
"items": {
|
|
54
|
+
"type": "object",
|
|
55
|
+
"properties": {
|
|
56
|
+
"name": { "type": "string" },
|
|
57
|
+
"mapping": { "type": "string" }
|
|
58
|
+
},
|
|
59
|
+
"required": ["name", "mapping"]
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
"required": ["task"],
|
|
64
|
+
"additionalProperties": true
|
|
65
|
+
}
|
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"title": "All Workflow Tasks",
|
|
4
|
+
"description": "Aggregator schema for all workflow task types. Uses anyOf to allow matching any known task type or falling back to generic task structure.",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"anyOf": [
|
|
7
|
+
{
|
|
8
|
+
"$ref": "accounting-transaction.json"
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
"$ref": "action-event.json"
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"$ref": "appmodule.json"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"$ref": "attachment.json"
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"$ref": "authentication.json"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"$ref": "caching.json"
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"$ref": "charge.json"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"$ref": "commodity.json"
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"$ref": "contact-address.json"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"$ref": "contact-payment-method.json"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"$ref": "contact.json"
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"$ref": "csv.json"
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"$ref": "document-render.json"
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"$ref": "document-send.json"
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"$ref": "edi.json"
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"$ref": "email-send.json"
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"$ref": "error.json"
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"$ref": "export.json"
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"$ref": "filetransfer.json"
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"$ref": "flow-transition.json"
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"$ref": "foreach.json"
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"$ref": "graphql.json"
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"$ref": "httpRequest.json"
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"$ref": "import.json"
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
"$ref": "inventory.json"
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
"$ref": "job.json"
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
"$ref": "log.json"
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
"$ref": "map.json"
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
"$ref": "movement.json"
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
"$ref": "note.json"
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
"$ref": "number.json"
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
"$ref": "order-tracking-event.json"
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
"$ref": "order.json"
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
"$ref": "payment.json"
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
"$ref": "pdf-document.json"
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
"$ref": "postal-codes.json"
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
"$ref": "resolve-timezone.json"
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
"$ref": "setVariable.json"
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
"$ref": "switch.json"
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
"$ref": "template.json"
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
"$ref": "tracking-event.json"
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
"$ref": "transmission.json"
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
"$ref": "unzip-file.json"
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
"$ref": "user.json"
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
"$ref": "validation.json"
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
"$ref": "while.json"
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
"$ref": "workflow-execute.json"
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
"$ref": "generic.json"
|
|
150
|
+
}
|
|
151
|
+
]
|
|
152
|
+
}
|