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,82 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"title": "Contact Tasks",
|
|
4
|
+
"description": "Contact entity CRUD operations",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"task": {
|
|
8
|
+
"type": "string",
|
|
9
|
+
"enum": [
|
|
10
|
+
"Contact/Create@1",
|
|
11
|
+
"Contact/Update@1",
|
|
12
|
+
"Contact/Delete@1",
|
|
13
|
+
"Contact/Get@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": "Contact operation inputs",
|
|
43
|
+
"properties": {
|
|
44
|
+
"contactId": {
|
|
45
|
+
"type": "string",
|
|
46
|
+
"description": "Contact ID (for update/delete/get operations)"
|
|
47
|
+
},
|
|
48
|
+
"contactType": {
|
|
49
|
+
"type": "string",
|
|
50
|
+
"description": "Contact type"
|
|
51
|
+
},
|
|
52
|
+
"entity": {
|
|
53
|
+
"type": "object",
|
|
54
|
+
"description": "Contact entity data",
|
|
55
|
+
"additionalProperties": true
|
|
56
|
+
},
|
|
57
|
+
"partial": {
|
|
58
|
+
"type": "boolean",
|
|
59
|
+
"description": "Partial update (patch)"
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
"additionalProperties": true
|
|
63
|
+
},
|
|
64
|
+
"outputs": {
|
|
65
|
+
"type": "array",
|
|
66
|
+
"items": {
|
|
67
|
+
"type": "object",
|
|
68
|
+
"properties": {
|
|
69
|
+
"name": {
|
|
70
|
+
"type": "string"
|
|
71
|
+
},
|
|
72
|
+
"mapping": {
|
|
73
|
+
"type": "string"
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
"required": ["name", "mapping"]
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
"required": ["task"],
|
|
81
|
+
"additionalProperties": true
|
|
82
|
+
}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"title": "CSV Parse Task",
|
|
4
|
+
"description": "Parse CSV/TSV data from a URL (supports file:// and http(s)://)",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"task": {
|
|
8
|
+
"type": "string",
|
|
9
|
+
"enum": ["Utilities/CsvParse@1"],
|
|
10
|
+
"description": "Task type identifier"
|
|
11
|
+
},
|
|
12
|
+
"name": {
|
|
13
|
+
"type": "string",
|
|
14
|
+
"description": "Step name identifier"
|
|
15
|
+
},
|
|
16
|
+
"description": {
|
|
17
|
+
"type": "string",
|
|
18
|
+
"description": "Step description"
|
|
19
|
+
},
|
|
20
|
+
"conditions": {
|
|
21
|
+
"type": "array",
|
|
22
|
+
"items": {
|
|
23
|
+
"type": "object",
|
|
24
|
+
"properties": {
|
|
25
|
+
"expression": {
|
|
26
|
+
"type": "string"
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
"required": ["expression"]
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
"continueOnError": {
|
|
33
|
+
"type": "boolean"
|
|
34
|
+
},
|
|
35
|
+
"inputs": {
|
|
36
|
+
"type": "object",
|
|
37
|
+
"description": "CsvParse inputs",
|
|
38
|
+
"properties": {
|
|
39
|
+
"url": {
|
|
40
|
+
"type": "string",
|
|
41
|
+
"description": "URL to CSV file (file://, http://, https://)"
|
|
42
|
+
},
|
|
43
|
+
"hasHeader": {
|
|
44
|
+
"type": "boolean",
|
|
45
|
+
"default": true,
|
|
46
|
+
"description": "Whether first row is a header row (default: true). Ignored when columns is provided."
|
|
47
|
+
},
|
|
48
|
+
"delimiter": {
|
|
49
|
+
"type": "string",
|
|
50
|
+
"description": "Column delimiter (default: ','). Use '\\t' for tab-delimited files."
|
|
51
|
+
},
|
|
52
|
+
"columns": {
|
|
53
|
+
"type": "array",
|
|
54
|
+
"items": {
|
|
55
|
+
"type": "string"
|
|
56
|
+
},
|
|
57
|
+
"description": "Column names to assign (e.g. ['CountryCode', 'Code', 'PlaceName']). When provided, hasHeader is forced to false. Names are lowercaseFirst in output."
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
"required": ["url"],
|
|
61
|
+
"additionalProperties": true
|
|
62
|
+
},
|
|
63
|
+
"outputs": {
|
|
64
|
+
"type": "array",
|
|
65
|
+
"items": {
|
|
66
|
+
"type": "object",
|
|
67
|
+
"properties": {
|
|
68
|
+
"name": {
|
|
69
|
+
"type": "string"
|
|
70
|
+
},
|
|
71
|
+
"mapping": {
|
|
72
|
+
"type": "string"
|
|
73
|
+
}
|
|
74
|
+
},
|
|
75
|
+
"required": ["name", "mapping"]
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
},
|
|
79
|
+
"required": ["task", "name", "inputs"],
|
|
80
|
+
"additionalProperties": true
|
|
81
|
+
}
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"title": "Document Render Task",
|
|
4
|
+
"description": "Render documents from templates using JSReport",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"task": {
|
|
8
|
+
"type": "string",
|
|
9
|
+
"enum": ["Document/Render", "Document/Render@1"],
|
|
10
|
+
"description": "Task type identifier"
|
|
11
|
+
},
|
|
12
|
+
"name": {
|
|
13
|
+
"type": "string",
|
|
14
|
+
"description": "Step name identifier"
|
|
15
|
+
},
|
|
16
|
+
"description": {
|
|
17
|
+
"type": "string",
|
|
18
|
+
"description": "Step description"
|
|
19
|
+
},
|
|
20
|
+
"conditions": {
|
|
21
|
+
"type": "array",
|
|
22
|
+
"items": {
|
|
23
|
+
"type": "object",
|
|
24
|
+
"properties": {
|
|
25
|
+
"expression": {
|
|
26
|
+
"type": "string"
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
"required": ["expression"]
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
"continueOnError": {
|
|
33
|
+
"type": "boolean"
|
|
34
|
+
},
|
|
35
|
+
"inputs": {
|
|
36
|
+
"type": "object",
|
|
37
|
+
"description": "Document render inputs",
|
|
38
|
+
"properties": {
|
|
39
|
+
"template": {
|
|
40
|
+
"type": "object",
|
|
41
|
+
"description": "Template configuration",
|
|
42
|
+
"properties": {
|
|
43
|
+
"content": {
|
|
44
|
+
"type": "string",
|
|
45
|
+
"description": "Template content (HTML)"
|
|
46
|
+
},
|
|
47
|
+
"engine": {
|
|
48
|
+
"type": "string",
|
|
49
|
+
"enum": ["jsrender", "handlebars"],
|
|
50
|
+
"description": "Template engine"
|
|
51
|
+
},
|
|
52
|
+
"recipe": {
|
|
53
|
+
"type": "string",
|
|
54
|
+
"enum": ["html", "chrome-pdf", "xlsx", "docx", "csv"],
|
|
55
|
+
"description": "Output recipe/format"
|
|
56
|
+
},
|
|
57
|
+
"chrome": {
|
|
58
|
+
"type": "object",
|
|
59
|
+
"description": "Chrome PDF options",
|
|
60
|
+
"properties": {
|
|
61
|
+
"marginTop": { "type": "string" },
|
|
62
|
+
"marginBottom": { "type": "string" },
|
|
63
|
+
"marginLeft": { "type": "string" },
|
|
64
|
+
"marginRight": { "type": "string" },
|
|
65
|
+
"landscape": { "type": "boolean" },
|
|
66
|
+
"format": { "type": "string" },
|
|
67
|
+
"printBackground": { "type": "boolean" }
|
|
68
|
+
},
|
|
69
|
+
"additionalProperties": true
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
"additionalProperties": true
|
|
73
|
+
},
|
|
74
|
+
"data": {
|
|
75
|
+
"type": "object",
|
|
76
|
+
"description": "Data for template rendering",
|
|
77
|
+
"additionalProperties": true
|
|
78
|
+
},
|
|
79
|
+
"options": {
|
|
80
|
+
"type": "object",
|
|
81
|
+
"description": "Rendering options",
|
|
82
|
+
"additionalProperties": true
|
|
83
|
+
}
|
|
84
|
+
},
|
|
85
|
+
"additionalProperties": true
|
|
86
|
+
},
|
|
87
|
+
"outputs": {
|
|
88
|
+
"type": "array",
|
|
89
|
+
"items": {
|
|
90
|
+
"type": "object",
|
|
91
|
+
"properties": {
|
|
92
|
+
"name": {
|
|
93
|
+
"type": "string"
|
|
94
|
+
},
|
|
95
|
+
"mapping": {
|
|
96
|
+
"type": "string"
|
|
97
|
+
}
|
|
98
|
+
},
|
|
99
|
+
"required": ["name", "mapping"]
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
},
|
|
103
|
+
"required": ["task"],
|
|
104
|
+
"additionalProperties": true
|
|
105
|
+
}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"title": "Document Send Task",
|
|
4
|
+
"description": "Send generated documents",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"task": {
|
|
8
|
+
"type": "string",
|
|
9
|
+
"enum": ["Document/Send", "OrderDocument/Send@1"],
|
|
10
|
+
"description": "Task type identifier"
|
|
11
|
+
},
|
|
12
|
+
"name": {
|
|
13
|
+
"type": "string",
|
|
14
|
+
"description": "Step name identifier"
|
|
15
|
+
},
|
|
16
|
+
"description": {
|
|
17
|
+
"type": "string",
|
|
18
|
+
"description": "Step description"
|
|
19
|
+
},
|
|
20
|
+
"conditions": {
|
|
21
|
+
"type": "array",
|
|
22
|
+
"items": {
|
|
23
|
+
"type": "object",
|
|
24
|
+
"properties": {
|
|
25
|
+
"expression": {
|
|
26
|
+
"type": "string"
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
"required": ["expression"]
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
"continueOnError": {
|
|
33
|
+
"type": "boolean"
|
|
34
|
+
},
|
|
35
|
+
"inputs": {
|
|
36
|
+
"type": "object",
|
|
37
|
+
"description": "Document send inputs",
|
|
38
|
+
"properties": {
|
|
39
|
+
"orderId": {
|
|
40
|
+
"type": "string",
|
|
41
|
+
"description": "Associated order ID"
|
|
42
|
+
},
|
|
43
|
+
"documentType": {
|
|
44
|
+
"type": "string",
|
|
45
|
+
"description": "Document type"
|
|
46
|
+
},
|
|
47
|
+
"recipients": {
|
|
48
|
+
"type": "array",
|
|
49
|
+
"items": {
|
|
50
|
+
"type": "object",
|
|
51
|
+
"properties": {
|
|
52
|
+
"email": { "type": "string" },
|
|
53
|
+
"name": { "type": "string" }
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
"description": "Document recipients"
|
|
57
|
+
},
|
|
58
|
+
"document": {
|
|
59
|
+
"type": "object",
|
|
60
|
+
"description": "Document data",
|
|
61
|
+
"additionalProperties": true
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
"additionalProperties": true
|
|
65
|
+
},
|
|
66
|
+
"outputs": {
|
|
67
|
+
"type": "array",
|
|
68
|
+
"items": {
|
|
69
|
+
"type": "object",
|
|
70
|
+
"properties": {
|
|
71
|
+
"name": {
|
|
72
|
+
"type": "string"
|
|
73
|
+
},
|
|
74
|
+
"mapping": {
|
|
75
|
+
"type": "string"
|
|
76
|
+
}
|
|
77
|
+
},
|
|
78
|
+
"required": ["name", "mapping"]
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
"required": ["task"],
|
|
83
|
+
"additionalProperties": true
|
|
84
|
+
}
|
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"title": "EDI Tasks",
|
|
4
|
+
"description": "EDI and structured file parsing operations",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"task": {
|
|
8
|
+
"type": "string",
|
|
9
|
+
"enum": [
|
|
10
|
+
"EDI/Parse@1",
|
|
11
|
+
"EDIFACT/Parse@1",
|
|
12
|
+
"EDIFACT/Generate@1",
|
|
13
|
+
"StructuredFile/Parse"
|
|
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": { "type": "string" }
|
|
31
|
+
},
|
|
32
|
+
"required": ["expression"]
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
"continueOnError": {
|
|
36
|
+
"type": "boolean"
|
|
37
|
+
},
|
|
38
|
+
"inputs": {
|
|
39
|
+
"type": "object",
|
|
40
|
+
"description": "EDI/parsing operation inputs",
|
|
41
|
+
"properties": {
|
|
42
|
+
"content": {
|
|
43
|
+
"type": "string",
|
|
44
|
+
"description": "File content to parse (EDI/Parse)"
|
|
45
|
+
},
|
|
46
|
+
"format": {
|
|
47
|
+
"type": "string",
|
|
48
|
+
"description": "EDI format (e.g., X12, EDIFACT)"
|
|
49
|
+
},
|
|
50
|
+
"edifactData": {
|
|
51
|
+
"type": "string",
|
|
52
|
+
"description": "Raw EDIFACT data string (EDIFACT/Parse, EDIFACT/Generate)"
|
|
53
|
+
},
|
|
54
|
+
"messageType": {
|
|
55
|
+
"type": "string",
|
|
56
|
+
"enum": ["IFTMIN", "CONTRL", "APERAK"],
|
|
57
|
+
"description": "EDIFACT message type for parse/generate tasks"
|
|
58
|
+
},
|
|
59
|
+
"sender": {
|
|
60
|
+
"type": "object",
|
|
61
|
+
"description": "Sender identification for EDIFACT/Generate",
|
|
62
|
+
"properties": {
|
|
63
|
+
"id": { "type": "string", "description": "Sender ID (Trading Partner ID)" },
|
|
64
|
+
"qualifier": { "type": "string", "description": "Partner ID code qualifier (e.g., ZZZ)" }
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
"recipient": {
|
|
68
|
+
"type": "object",
|
|
69
|
+
"description": "Recipient identification for EDIFACT/Generate",
|
|
70
|
+
"properties": {
|
|
71
|
+
"id": { "type": "string", "description": "Recipient ID (e.g., INTTRA)" },
|
|
72
|
+
"qualifier": { "type": "string", "description": "Partner ID code qualifier" }
|
|
73
|
+
}
|
|
74
|
+
},
|
|
75
|
+
"documentNumber": {
|
|
76
|
+
"type": "string",
|
|
77
|
+
"description": "Shipment Identification Number"
|
|
78
|
+
},
|
|
79
|
+
"messageFunctionCode": {
|
|
80
|
+
"type": "string",
|
|
81
|
+
"enum": ["5", "9"],
|
|
82
|
+
"description": "9 = Original, 5 = Replace"
|
|
83
|
+
},
|
|
84
|
+
"references": {
|
|
85
|
+
"type": "array",
|
|
86
|
+
"description": "Business references (BN=Booking, BM=B/L, etc.)",
|
|
87
|
+
"items": {
|
|
88
|
+
"type": "object",
|
|
89
|
+
"properties": {
|
|
90
|
+
"qualifier": { "type": "string" },
|
|
91
|
+
"identifier": { "type": "string" }
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
},
|
|
95
|
+
"parties": {
|
|
96
|
+
"type": "array",
|
|
97
|
+
"description": "Party details (HI=Requestor, CZ=Shipper, CA=Carrier, CN=Consignee)",
|
|
98
|
+
"items": {
|
|
99
|
+
"type": "object",
|
|
100
|
+
"properties": {
|
|
101
|
+
"functionCode": { "type": "string" },
|
|
102
|
+
"identification": { "type": "string" },
|
|
103
|
+
"name": { "type": "string" }
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
},
|
|
107
|
+
"goodsItems": {
|
|
108
|
+
"type": "array",
|
|
109
|
+
"description": "Goods item details (GID segment group). Numeric fields (itemNumber, numberOfPackages) are serialized as strings.",
|
|
110
|
+
"items": {
|
|
111
|
+
"type": "object",
|
|
112
|
+
"properties": {
|
|
113
|
+
"itemNumber": { "type": ["integer", "string"], "description": "Goods item number (GID/0). Auto-incremented." },
|
|
114
|
+
"numberOfPackages": { "type": ["integer", "string"], "description": "Number of outer packages (C213/7224)" },
|
|
115
|
+
"packageType": { "type": "string", "description": "Package type code, UN/ECE rec. 21 (C213/7065, e.g. CT, PK, PL)" },
|
|
116
|
+
"packageTypeDescription": { "type": "string", "description": "Package type description (C213/7065 text)" },
|
|
117
|
+
"packageTypeAgencyCode": { "type": "string", "description": "Code list responsible agency (C213/3055). Auto-set to '6' (UN/ECE) when packageType is provided." },
|
|
118
|
+
"packageTypeDescriptionText": { "type": "string", "description": "Package type description text for B/L printing (C213/7064)" },
|
|
119
|
+
"innerPackageCount": { "type": ["integer", "string"], "description": "Number of inner packages (second C213/7224)" },
|
|
120
|
+
"innerPackageType": { "type": "string", "description": "Inner package type code (second C213/7065)" },
|
|
121
|
+
"grossWeight": { "type": ["number", "string"], "description": "Gross weight value" },
|
|
122
|
+
"weightUnit": { "type": "string", "description": "Weight unit (KGM, LBR)" },
|
|
123
|
+
"description": { "type": "string", "description": "Goods description free text" }
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
},
|
|
127
|
+
"equipment": {
|
|
128
|
+
"type": "array",
|
|
129
|
+
"description": "Container/equipment details",
|
|
130
|
+
"items": {
|
|
131
|
+
"type": "object",
|
|
132
|
+
"properties": {
|
|
133
|
+
"equipmentQualifier": { "type": "string" },
|
|
134
|
+
"equipmentIdentification": { "type": "string" },
|
|
135
|
+
"sizeTypeCode": { "type": "string" },
|
|
136
|
+
"fullEmptyIndicator": { "type": "string" }
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
},
|
|
141
|
+
"additionalProperties": true
|
|
142
|
+
},
|
|
143
|
+
"outputs": {
|
|
144
|
+
"type": "array",
|
|
145
|
+
"items": {
|
|
146
|
+
"type": "object",
|
|
147
|
+
"properties": {
|
|
148
|
+
"name": { "type": "string" },
|
|
149
|
+
"mapping": { "type": "string" }
|
|
150
|
+
},
|
|
151
|
+
"required": ["name", "mapping"]
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
},
|
|
155
|
+
"required": ["task"],
|
|
156
|
+
"additionalProperties": true
|
|
157
|
+
}
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"title": "Email Send Task",
|
|
4
|
+
"description": "Send emails with templates and attachments",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"task": {
|
|
8
|
+
"type": "string",
|
|
9
|
+
"enum": ["Email/Send", "Email/Send@1", "Email/VerifyCode@1"],
|
|
10
|
+
"description": "Task type identifier"
|
|
11
|
+
},
|
|
12
|
+
"name": {
|
|
13
|
+
"type": "string",
|
|
14
|
+
"description": "Step name identifier"
|
|
15
|
+
},
|
|
16
|
+
"description": {
|
|
17
|
+
"type": "string",
|
|
18
|
+
"description": "Step description"
|
|
19
|
+
},
|
|
20
|
+
"conditions": {
|
|
21
|
+
"type": "array",
|
|
22
|
+
"items": {
|
|
23
|
+
"type": "object",
|
|
24
|
+
"properties": {
|
|
25
|
+
"expression": {
|
|
26
|
+
"type": "string"
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
"required": ["expression"]
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
"continueOnError": {
|
|
33
|
+
"type": "boolean"
|
|
34
|
+
},
|
|
35
|
+
"inputs": {
|
|
36
|
+
"type": "object",
|
|
37
|
+
"description": "Email inputs",
|
|
38
|
+
"properties": {
|
|
39
|
+
"to": {
|
|
40
|
+
"oneOf": [
|
|
41
|
+
{ "type": "string" },
|
|
42
|
+
{ "type": "array", "items": { "type": "string" } }
|
|
43
|
+
],
|
|
44
|
+
"description": "Recipient email address(es)"
|
|
45
|
+
},
|
|
46
|
+
"cc": {
|
|
47
|
+
"oneOf": [
|
|
48
|
+
{ "type": "string" },
|
|
49
|
+
{ "type": "array", "items": { "type": "string" } }
|
|
50
|
+
],
|
|
51
|
+
"description": "CC email address(es)"
|
|
52
|
+
},
|
|
53
|
+
"bcc": {
|
|
54
|
+
"oneOf": [
|
|
55
|
+
{ "type": "string" },
|
|
56
|
+
{ "type": "array", "items": { "type": "string" } }
|
|
57
|
+
],
|
|
58
|
+
"description": "BCC email address(es)"
|
|
59
|
+
},
|
|
60
|
+
"subject": {
|
|
61
|
+
"type": "string",
|
|
62
|
+
"description": "Email subject"
|
|
63
|
+
},
|
|
64
|
+
"body": {
|
|
65
|
+
"type": "string",
|
|
66
|
+
"description": "Email body (HTML supported)"
|
|
67
|
+
},
|
|
68
|
+
"template": {
|
|
69
|
+
"type": "string",
|
|
70
|
+
"description": "Email template name"
|
|
71
|
+
},
|
|
72
|
+
"templateData": {
|
|
73
|
+
"type": "object",
|
|
74
|
+
"description": "Data for template rendering",
|
|
75
|
+
"additionalProperties": true
|
|
76
|
+
},
|
|
77
|
+
"attachments": {
|
|
78
|
+
"type": "array",
|
|
79
|
+
"items": {
|
|
80
|
+
"type": "object",
|
|
81
|
+
"properties": {
|
|
82
|
+
"fileName": { "type": "string" },
|
|
83
|
+
"content": { "type": "string" },
|
|
84
|
+
"contentType": { "type": "string" }
|
|
85
|
+
}
|
|
86
|
+
},
|
|
87
|
+
"description": "Email attachments"
|
|
88
|
+
}
|
|
89
|
+
},
|
|
90
|
+
"additionalProperties": true
|
|
91
|
+
},
|
|
92
|
+
"outputs": {
|
|
93
|
+
"type": "array",
|
|
94
|
+
"items": {
|
|
95
|
+
"type": "object",
|
|
96
|
+
"properties": {
|
|
97
|
+
"name": {
|
|
98
|
+
"type": "string"
|
|
99
|
+
},
|
|
100
|
+
"mapping": {
|
|
101
|
+
"type": "string"
|
|
102
|
+
}
|
|
103
|
+
},
|
|
104
|
+
"required": ["name", "mapping"]
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
},
|
|
108
|
+
"required": ["task"],
|
|
109
|
+
"additionalProperties": true
|
|
110
|
+
}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"title": "Error Task",
|
|
4
|
+
"description": "Throw an error to stop workflow execution",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"task": {
|
|
8
|
+
"type": "string",
|
|
9
|
+
"enum": ["Utilities/Error@1"],
|
|
10
|
+
"description": "Task type identifier"
|
|
11
|
+
},
|
|
12
|
+
"name": {
|
|
13
|
+
"type": "string",
|
|
14
|
+
"description": "Step name identifier"
|
|
15
|
+
},
|
|
16
|
+
"description": {
|
|
17
|
+
"type": "string",
|
|
18
|
+
"description": "Step description"
|
|
19
|
+
},
|
|
20
|
+
"conditions": {
|
|
21
|
+
"type": "array",
|
|
22
|
+
"items": {
|
|
23
|
+
"type": "object",
|
|
24
|
+
"properties": {
|
|
25
|
+
"expression": {
|
|
26
|
+
"type": "string"
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
"required": ["expression"]
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
"continueOnError": {
|
|
33
|
+
"type": "boolean"
|
|
34
|
+
},
|
|
35
|
+
"inputs": {
|
|
36
|
+
"type": "object",
|
|
37
|
+
"description": "Error inputs",
|
|
38
|
+
"properties": {
|
|
39
|
+
"message": {
|
|
40
|
+
"type": "string",
|
|
41
|
+
"description": "Error message"
|
|
42
|
+
},
|
|
43
|
+
"code": {
|
|
44
|
+
"type": "string",
|
|
45
|
+
"description": "Error code"
|
|
46
|
+
},
|
|
47
|
+
"data": {
|
|
48
|
+
"description": "Additional error data"
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
"required": ["message"],
|
|
52
|
+
"additionalProperties": true
|
|
53
|
+
},
|
|
54
|
+
"outputs": {
|
|
55
|
+
"type": "array",
|
|
56
|
+
"items": {
|
|
57
|
+
"type": "object",
|
|
58
|
+
"properties": {
|
|
59
|
+
"name": {
|
|
60
|
+
"type": "string"
|
|
61
|
+
},
|
|
62
|
+
"mapping": {
|
|
63
|
+
"type": "string"
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
"required": ["name", "mapping"]
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
"required": ["task"],
|
|
71
|
+
"additionalProperties": true
|
|
72
|
+
}
|