@cxtms/cx-schema 1.9.260 → 1.9.261

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cxtms/cx-schema",
3
- "version": "1.9.260",
3
+ "version": "1.9.261",
4
4
  "description": "Schema validation package for CXTMS YAML modules",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -19,6 +19,7 @@
19
19
  { "$ref": "dialog.json" },
20
20
  { "$ref": "workflow.json" },
21
21
  { "$ref": "fileDownload.json" },
22
+ { "$ref": "printLabel.json" },
22
23
  { "$ref": "forEach.json" },
23
24
  { "$ref": "if.json" },
24
25
  { "$ref": "consoleLog.json" },
@@ -0,0 +1,20 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "title": "printLabel Action",
4
+ "type": "object",
5
+ "required": ["printLabel"],
6
+ "properties": {
7
+ "printLabel": {
8
+ "type": "object",
9
+ "required": ["link", "type"],
10
+ "properties": {
11
+ "link": { "type": "string", "description": "Template-resolved URL or printable content" },
12
+ "type": { "type": "string", "description": "print-js content type, such as pdf, image, html, or raw-html" }
13
+ },
14
+ "additionalProperties": false,
15
+ "x-examples": [{ "link": "{{ labelUrl }}", "type": "pdf" }]
16
+ }
17
+ },
18
+ "additionalProperties": false
19
+ }
20
+
@@ -305,6 +305,7 @@ onClick:
305
305
  onSuccess: [...]
306
306
  onError: [...]
307
307
  - fileDownload: { url: "...", fileName: "..." }
308
+ - printLabel: { link: "{{ labelUrl }}", type: "pdf" } # web: print template-resolved content with print-js
308
309
  - forEach:
309
310
  items: "{{ selectedItems }}"
310
311
  item: "currentItem"