@cxtms/cx-schema 1.9.3 → 1.9.5
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/package.json
CHANGED
|
@@ -110,19 +110,19 @@
|
|
|
110
110
|
"$ref": "pdf-document.json"
|
|
111
111
|
},
|
|
112
112
|
{
|
|
113
|
-
"$ref": "
|
|
113
|
+
"$ref": "postal-codes.json"
|
|
114
114
|
},
|
|
115
115
|
{
|
|
116
|
-
"$ref": "
|
|
116
|
+
"$ref": "resolve-timezone.json"
|
|
117
117
|
},
|
|
118
118
|
{
|
|
119
|
-
"$ref": "
|
|
119
|
+
"$ref": "setVariable.json"
|
|
120
120
|
},
|
|
121
121
|
{
|
|
122
|
-
"$ref": "
|
|
122
|
+
"$ref": "switch.json"
|
|
123
123
|
},
|
|
124
124
|
{
|
|
125
|
-
"$ref": "
|
|
125
|
+
"$ref": "template.json"
|
|
126
126
|
},
|
|
127
127
|
{
|
|
128
128
|
"$ref": "tracking-event.json"
|
|
@@ -130,6 +130,9 @@
|
|
|
130
130
|
{
|
|
131
131
|
"$ref": "transmission.json"
|
|
132
132
|
},
|
|
133
|
+
{
|
|
134
|
+
"$ref": "unzip-file.json"
|
|
135
|
+
},
|
|
133
136
|
{
|
|
134
137
|
"$ref": "user.json"
|
|
135
138
|
},
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"title": "PostalCodes Import Task",
|
|
4
|
+
"description": "Import postal codes from file, URL, or direct data",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"task": {
|
|
8
|
+
"type": "string",
|
|
9
|
+
"enum": ["PostalCodes/Import@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": "PostalCodes/Import inputs — provide fileUrl, stream, or postalCodes",
|
|
38
|
+
"properties": {
|
|
39
|
+
"fileUrl": {
|
|
40
|
+
"type": "string",
|
|
41
|
+
"description": "URL to import file (CSV, XLSX, JSON, XML). File type is auto-detected from URL extension."
|
|
42
|
+
},
|
|
43
|
+
"fileType": {
|
|
44
|
+
"type": "string",
|
|
45
|
+
"enum": ["Csv", "Xlsx", "Json", "Xml", "Html"],
|
|
46
|
+
"description": "File format. Required when using stream input; auto-detected from fileUrl otherwise."
|
|
47
|
+
},
|
|
48
|
+
"stream": {
|
|
49
|
+
"description": "Raw stream data (binary). Requires fileType to be set."
|
|
50
|
+
},
|
|
51
|
+
"postalCodes": {
|
|
52
|
+
"type": "array",
|
|
53
|
+
"items": {
|
|
54
|
+
"type": "object",
|
|
55
|
+
"properties": {
|
|
56
|
+
"Code": { "type": "string" },
|
|
57
|
+
"CountryCode": { "type": "string" },
|
|
58
|
+
"PlaceName": { "type": "string" },
|
|
59
|
+
"StateCode": { "type": "string" },
|
|
60
|
+
"Latitude": { "type": "number" },
|
|
61
|
+
"Longitude": { "type": "number" },
|
|
62
|
+
"TimeZone": { "type": "string" },
|
|
63
|
+
"CustomValues": { "type": "object", "additionalProperties": true }
|
|
64
|
+
},
|
|
65
|
+
"required": ["Code", "CountryCode", "PlaceName"]
|
|
66
|
+
},
|
|
67
|
+
"description": "Direct postal code objects for import"
|
|
68
|
+
},
|
|
69
|
+
"matchByFields": {
|
|
70
|
+
"type": "array",
|
|
71
|
+
"items": { "type": "string" },
|
|
72
|
+
"description": "Fields to match existing records for upsert (e.g. ['Code', 'CountryCode'])"
|
|
73
|
+
}
|
|
74
|
+
},
|
|
75
|
+
"additionalProperties": true
|
|
76
|
+
},
|
|
77
|
+
"outputs": {
|
|
78
|
+
"type": "array",
|
|
79
|
+
"items": {
|
|
80
|
+
"type": "object",
|
|
81
|
+
"properties": {
|
|
82
|
+
"name": { "type": "string" },
|
|
83
|
+
"mapping": { "type": "string" }
|
|
84
|
+
},
|
|
85
|
+
"required": ["name", "mapping"]
|
|
86
|
+
},
|
|
87
|
+
"description": "Outputs: result.success (boolean), result.added (int), result.updated (int), result.totalProcessed (int), result.errors (string[]), result.hasErrors (boolean)"
|
|
88
|
+
}
|
|
89
|
+
},
|
|
90
|
+
"required": ["task", "name", "inputs"],
|
|
91
|
+
"additionalProperties": true
|
|
92
|
+
}
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
name: cxtms-workflow-builder
|
|
3
3
|
description: >
|
|
4
4
|
Works with CXTMS workflow YAML files — creates, modifies, fixes, validates, and deploys standard process and Flow state machine workflows.
|
|
5
|
-
Use when the user asks to create, modify, or fix a workflow YAML file, references workflow/*.yaml files, or asks about workflow tasks/triggers/activities in a CX project.
|
|
6
|
-
|
|
5
|
+
Use when the user asks to create, modify, or fix a workflow YAML file, references workflow/*.yaml files, mentions a specific workflow by name, or asks about workflow tasks/triggers/activities/expressions in a CX project.
|
|
6
|
+
Also use when debugging workflow errors, fixing template expressions, or troubleshooting workflow steps.
|
|
7
7
|
argument-hint: <description of what to build>
|
|
8
8
|
---
|
|
9
9
|
|