n8n-nodes-labelzoom 0.0.1 → 0.1.1
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/LICENSE +21 -21
- package/README.md +158 -158
- package/dist/nodes/LabelZoom/LabelZoom.node.js +0 -11
- package/dist/nodes/LabelZoom/LabelZoom.node.js.map +1 -1
- package/dist/nodes/LabelZoom/resources/label/convertTemplate.js +1 -0
- package/dist/nodes/LabelZoom/resources/label/convertTemplate.js.map +1 -1
- package/dist/nodes/LabelZoom/resources/printer/print.js +1 -0
- package/dist/nodes/LabelZoom/resources/printer/print.js.map +1 -1
- package/dist/nodes/LabelZoom/shared/transport.d.ts +1 -0
- package/dist/nodes/LabelZoom/shared/transport.js +6 -0
- package/dist/nodes/LabelZoom/shared/transport.js.map +1 -1
- package/dist/package.json +2 -2
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +70 -70
package/LICENSE
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2026 LabelZoom
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 LabelZoom
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,158 +1,158 @@
|
|
|
1
|
-
# n8n-nodes-labelzoom
|
|
2
|
-
|
|
3
|
-
An [n8n](https://n8n.io) community node for [LabelZoom](https://www.labelzoom.com) — convert
|
|
4
|
-
barcode labels between ZPL, EPL, TSPL, DPL, PDF, images and XML/JSON, and print them to
|
|
5
|
-
cloud-connected thermal printers.
|
|
6
|
-
|
|
7
|
-
The labels in a business rarely arrive in the format the printer wants. A WMS emits ZPL, a
|
|
8
|
-
carrier hands you a PDF, an old Eltron on the packing bench speaks EPL. This node turns that
|
|
9
|
-
into two steps in a workflow.
|
|
10
|
-
|
|
11
|
-
[Installation](#installation) · [Credentials](#credentials) · [Operations](#operations) ·
|
|
12
|
-
[Examples](#examples) · [Development](#development)
|
|
13
|
-
|
|
14
|
-
## Installation
|
|
15
|
-
|
|
16
|
-
In n8n, go to **Settings → Community nodes → Install** and enter:
|
|
17
|
-
|
|
18
|
-
```
|
|
19
|
-
n8n-nodes-labelzoom
|
|
20
|
-
```
|
|
21
|
-
|
|
22
|
-
Self-hosted installs can also use npm directly:
|
|
23
|
-
|
|
24
|
-
```sh
|
|
25
|
-
npm install n8n-nodes-labelzoom
|
|
26
|
-
```
|
|
27
|
-
|
|
28
|
-
## Credentials
|
|
29
|
-
|
|
30
|
-
Create a **LabelZoom API** credential with the API key from the **API Access** section of your
|
|
31
|
-
[dashboard](https://www.labelzoom.com/dashboard).
|
|
32
|
-
|
|
33
|
-
**Converting works without a credential.** Leave it unset and the node runs on the free tier —
|
|
34
|
-
unlimited conversions, watermarked output, first label only, 1 MB request cap. Add a key when
|
|
35
|
-
you're ready to ship.
|
|
36
|
-
|
|
37
|
-
**Printing requires a key with the `print` scope**, because a print job goes to *your* printer.
|
|
38
|
-
`print` implies `convert`, so one key covers both.
|
|
39
|
-
|
|
40
|
-
| Field | Notes |
|
|
41
|
-
| --- | --- |
|
|
42
|
-
| API Key | Optional for Label operations, required for Printer operations |
|
|
43
|
-
| Max Retries | 429s and 5xx are retried with exponential backoff. `0` fails fast. Client errors are never retried. |
|
|
44
|
-
| Base URL | Only change this if you were given a dedicated endpoint |
|
|
45
|
-
|
|
46
|
-
## Operations
|
|
47
|
-
|
|
48
|
-
### Label
|
|
49
|
-
|
|
50
|
-
| Operation | What it does |
|
|
51
|
-
| --- | --- |
|
|
52
|
-
| **Convert** | Convert a document between any supported source and target format |
|
|
53
|
-
| **Convert Template** | Fill a Print Template with data and render it, without printing |
|
|
54
|
-
|
|
55
|
-
Sources: `zpl` `epl` `tspl` `dpl` `xml` `json` `pdf` `png` `bmp` `gif` `jpeg` `jpg` `url`
|
|
56
|
-
Targets: `zpl` `epl` `tspl` `dpl` `xml` `json` `pdf` `png` `bmp` `gif` `jpeg`
|
|
57
|
-
|
|
58
|
-
`url` is a source only — post a link and LabelZoom fetches the document itself. `jpg` is an
|
|
59
|
-
input spelling that normalizes to `jpeg`.
|
|
60
|
-
|
|
61
|
-
The output is always a **binary field**, because five of the eleven targets are binary. A
|
|
62
|
-
decoded `text` field is added for `zpl`, `xml` and `json` as a convenience. It is deliberately
|
|
63
|
-
*not* added for `epl`, `tspl` or `dpl`: those come back as `text/plain` but can inline raw
|
|
64
|
-
bytes (EPL's `GW`, TSPL's `BITMAP`, DPL's leading `STX`), and decoding them to a string would
|
|
65
|
-
corrupt any label carrying graphics.
|
|
66
|
-
|
|
67
|
-
Options cover the full parameter set — DPI, rotation, scaling, colour mode, darkness, label
|
|
68
|
-
size in inches, position, PDF conversion mode and page number, ZPL image compression and
|
|
69
|
-
commands to ignore, and a **Variable Data** field that fills placeholders on the label (one
|
|
70
|
-
output label per array entry). Anything not yet surfaced in the UI can go through **Custom
|
|
71
|
-
Parameters (JSON)**.
|
|
72
|
-
|
|
73
|
-
### Printer
|
|
74
|
-
|
|
75
|
-
> **Cloud Print is in private beta.** Endpoints and payloads may change.
|
|
76
|
-
> [Apply for access](https://www.labelzoom.com/beta).
|
|
77
|
-
|
|
78
|
-
| Operation | What it does |
|
|
79
|
-
| --- | --- |
|
|
80
|
-
| **Print** | Send a document to a printer, converting it in transit |
|
|
81
|
-
| **Print Template** | Fill a Print Template with data and print it |
|
|
82
|
-
| **Get Job** | Look up a print job to see whether it actually printed |
|
|
83
|
-
| **Get Many** | List the printers on your account |
|
|
84
|
-
| **Get Status** | One printer's live status and its bound agents |
|
|
85
|
-
|
|
86
|
-
Printing sends the document as-is; if it doesn't match the printer's native format, LabelZoom
|
|
87
|
-
converts it on the way — a carrier PDF sent to a Zebra becomes ZPL automatically. Every
|
|
88
|
-
transform option from Convert works here too, even when no format change is needed.
|
|
89
|
-
|
|
90
|
-
**`dispatched` and `queued` mean *accepted*, not *printed*.** A job only reaches `completed`
|
|
91
|
-
once the print agent reports back. Turn on **Wait for Completion** when the workflow needs to
|
|
92
|
-
know the label came out of the printer.
|
|
93
|
-
|
|
94
|
-
**Idempotency.** Print carries an `Idempotency-Key`; repeating a key returns the original job
|
|
95
|
-
instead of printing again. It defaults to `{{ $execution.id }}-{{ $itemIndex }}`, which makes a
|
|
96
|
-
retried *step* safe. Set it from an order number to make a whole workflow re-run safe too — a
|
|
97
|
-
duplicate shipping label is a real cost.
|
|
98
|
-
|
|
99
|
-
## Examples
|
|
100
|
-
|
|
101
|
-
**Carrier PDF → Zebra.** HTTP Request (download the label PDF) → LabelZoom (Printer → Print,
|
|
102
|
-
source format `pdf`, pick your ZPL printer). One step; the conversion is implicit.
|
|
103
|
-
|
|
104
|
-
**Preview a ZPL label.** LabelZoom (Label → Convert, `zpl` → `png`) → Send Email. Useful for a
|
|
105
|
-
"does this template look right" approval step before a production run.
|
|
106
|
-
|
|
107
|
-
**Batch from a spreadsheet.** Google Sheets → LabelZoom (Label → Convert, `zpl` → `pdf`, with
|
|
108
|
-
Variable Data mapped from the rows) → Google Drive. Each row becomes one page.
|
|
109
|
-
|
|
110
|
-
**Fill a designed template.** Design in LabelZoom Studio, publish it to Print Templates, then
|
|
111
|
-
Printer → Print Template with the merge fields mapped from the incoming item. The template
|
|
112
|
-
picker shows each template's merge fields, so you can see what data it wants.
|
|
113
|
-
|
|
114
|
-
## Development
|
|
115
|
-
|
|
116
|
-
```sh
|
|
117
|
-
npm install
|
|
118
|
-
npm run dev # a local n8n with this node linked
|
|
119
|
-
npm run build
|
|
120
|
-
npm run lint # the n8n community-node linter (the verification gate)
|
|
121
|
-
npm run typecheck
|
|
122
|
-
npm test
|
|
123
|
-
```
|
|
124
|
-
|
|
125
|
-
### The conformance suite
|
|
126
|
-
|
|
127
|
-
n8n verification forbids runtime dependencies, so this node cannot call
|
|
128
|
-
[`@labelzoom/sdk`](https://www.npmjs.com/package/@labelzoom/sdk) — it re-implements the
|
|
129
|
-
LabelZoom wire contract by hand. To stop the two drifting apart, it runs the **same
|
|
130
|
-
language-neutral conformance fixtures** the eight official SDKs run: 83 cases pinned from
|
|
131
|
-
`labelzoom-sdk` covering request shape, error mapping, retry policy and local validation.
|
|
132
|
-
|
|
133
|
-
```sh
|
|
134
|
-
npm run sync-conformance # refresh test/conformance/ from the pinned SDK tag
|
|
135
|
-
node scripts/sync-conformance.mjs --check # verify it hasn't drifted (CI)
|
|
136
|
-
```
|
|
137
|
-
|
|
138
|
-
The suite asserts its own coverage — `executed == spec.cases - declared skips` — so a
|
|
139
|
-
partially-implemented runner can't quietly report green. Each skip carries a written reason in
|
|
140
|
-
[`test/conformance-skips.json`](test/conformance-skips.json).
|
|
141
|
-
|
|
142
|
-
There is one deliberate deviation, documented in the runner: the fixtures pin a `User-Agent`
|
|
143
|
-
matching `^labelzoom-[a-z0-9]+-sdk/`, the SDK family's naming. This is an n8n node, not an SDK,
|
|
144
|
-
and calling itself one on the wire would misreport what's talking to the API. It sends
|
|
145
|
-
`labelzoom-n8n-node` instead, and the substance of that rule — identify yourself, and never
|
|
146
|
-
claim to be LabelZoom Studio, whose prefix the server special-cases — is asserted directly in
|
|
147
|
-
`test/node.test.ts`.
|
|
148
|
-
|
|
149
|
-
## Resources
|
|
150
|
-
|
|
151
|
-
- [LabelZoom API docs](https://docs.labelzoom.com)
|
|
152
|
-
- [Conversion parameters](https://docs.labelzoom.com/reference/conversion-parameters/)
|
|
153
|
-
- [Cloud Print API](https://docs.labelzoom.com/reference/cloud-print-api/)
|
|
154
|
-
- [n8n community nodes](https://docs.n8n.io/integrations/community-nodes/)
|
|
155
|
-
|
|
156
|
-
## License
|
|
157
|
-
|
|
158
|
-
[MIT](LICENSE)
|
|
1
|
+
# n8n-nodes-labelzoom
|
|
2
|
+
|
|
3
|
+
An [n8n](https://n8n.io) community node for [LabelZoom](https://www.labelzoom.com) — convert
|
|
4
|
+
barcode labels between ZPL, EPL, TSPL, DPL, PDF, images and XML/JSON, and print them to
|
|
5
|
+
cloud-connected thermal printers.
|
|
6
|
+
|
|
7
|
+
The labels in a business rarely arrive in the format the printer wants. A WMS emits ZPL, a
|
|
8
|
+
carrier hands you a PDF, an old Eltron on the packing bench speaks EPL. This node turns that
|
|
9
|
+
into two steps in a workflow.
|
|
10
|
+
|
|
11
|
+
[Installation](#installation) · [Credentials](#credentials) · [Operations](#operations) ·
|
|
12
|
+
[Examples](#examples) · [Development](#development)
|
|
13
|
+
|
|
14
|
+
## Installation
|
|
15
|
+
|
|
16
|
+
In n8n, go to **Settings → Community nodes → Install** and enter:
|
|
17
|
+
|
|
18
|
+
```
|
|
19
|
+
n8n-nodes-labelzoom
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
Self-hosted installs can also use npm directly:
|
|
23
|
+
|
|
24
|
+
```sh
|
|
25
|
+
npm install n8n-nodes-labelzoom
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
## Credentials
|
|
29
|
+
|
|
30
|
+
Create a **LabelZoom API** credential with the API key from the **API Access** section of your
|
|
31
|
+
[dashboard](https://www.labelzoom.com/dashboard).
|
|
32
|
+
|
|
33
|
+
**Converting works without a credential.** Leave it unset and the node runs on the free tier —
|
|
34
|
+
unlimited conversions, watermarked output, first label only, 1 MB request cap. Add a key when
|
|
35
|
+
you're ready to ship.
|
|
36
|
+
|
|
37
|
+
**Printing requires a key with the `print` scope**, because a print job goes to *your* printer.
|
|
38
|
+
`print` implies `convert`, so one key covers both.
|
|
39
|
+
|
|
40
|
+
| Field | Notes |
|
|
41
|
+
| --- | --- |
|
|
42
|
+
| API Key | Optional for Label operations, required for Printer operations |
|
|
43
|
+
| Max Retries | 429s and 5xx are retried with exponential backoff. `0` fails fast. Client errors are never retried. |
|
|
44
|
+
| Base URL | Only change this if you were given a dedicated endpoint |
|
|
45
|
+
|
|
46
|
+
## Operations
|
|
47
|
+
|
|
48
|
+
### Label
|
|
49
|
+
|
|
50
|
+
| Operation | What it does |
|
|
51
|
+
| --- | --- |
|
|
52
|
+
| **Convert** | Convert a document between any supported source and target format |
|
|
53
|
+
| **Convert Template** | Fill a Print Template with data and render it, without printing |
|
|
54
|
+
|
|
55
|
+
Sources: `zpl` `epl` `tspl` `dpl` `xml` `json` `pdf` `png` `bmp` `gif` `jpeg` `jpg` `url`
|
|
56
|
+
Targets: `zpl` `epl` `tspl` `dpl` `xml` `json` `pdf` `png` `bmp` `gif` `jpeg`
|
|
57
|
+
|
|
58
|
+
`url` is a source only — post a link and LabelZoom fetches the document itself. `jpg` is an
|
|
59
|
+
input spelling that normalizes to `jpeg`.
|
|
60
|
+
|
|
61
|
+
The output is always a **binary field**, because five of the eleven targets are binary. A
|
|
62
|
+
decoded `text` field is added for `zpl`, `xml` and `json` as a convenience. It is deliberately
|
|
63
|
+
*not* added for `epl`, `tspl` or `dpl`: those come back as `text/plain` but can inline raw
|
|
64
|
+
bytes (EPL's `GW`, TSPL's `BITMAP`, DPL's leading `STX`), and decoding them to a string would
|
|
65
|
+
corrupt any label carrying graphics.
|
|
66
|
+
|
|
67
|
+
Options cover the full parameter set — DPI, rotation, scaling, colour mode, darkness, label
|
|
68
|
+
size in inches, position, PDF conversion mode and page number, ZPL image compression and
|
|
69
|
+
commands to ignore, and a **Variable Data** field that fills placeholders on the label (one
|
|
70
|
+
output label per array entry). Anything not yet surfaced in the UI can go through **Custom
|
|
71
|
+
Parameters (JSON)**.
|
|
72
|
+
|
|
73
|
+
### Printer
|
|
74
|
+
|
|
75
|
+
> **Cloud Print is in private beta.** Endpoints and payloads may change.
|
|
76
|
+
> [Apply for access](https://www.labelzoom.com/beta).
|
|
77
|
+
|
|
78
|
+
| Operation | What it does |
|
|
79
|
+
| --- | --- |
|
|
80
|
+
| **Print** | Send a document to a printer, converting it in transit |
|
|
81
|
+
| **Print Template** | Fill a Print Template with data and print it |
|
|
82
|
+
| **Get Job** | Look up a print job to see whether it actually printed |
|
|
83
|
+
| **Get Many** | List the printers on your account |
|
|
84
|
+
| **Get Status** | One printer's live status and its bound agents |
|
|
85
|
+
|
|
86
|
+
Printing sends the document as-is; if it doesn't match the printer's native format, LabelZoom
|
|
87
|
+
converts it on the way — a carrier PDF sent to a Zebra becomes ZPL automatically. Every
|
|
88
|
+
transform option from Convert works here too, even when no format change is needed.
|
|
89
|
+
|
|
90
|
+
**`dispatched` and `queued` mean *accepted*, not *printed*.** A job only reaches `completed`
|
|
91
|
+
once the print agent reports back. Turn on **Wait for Completion** when the workflow needs to
|
|
92
|
+
know the label came out of the printer.
|
|
93
|
+
|
|
94
|
+
**Idempotency.** Print carries an `Idempotency-Key`; repeating a key returns the original job
|
|
95
|
+
instead of printing again. It defaults to `{{ $execution.id }}-{{ $itemIndex }}`, which makes a
|
|
96
|
+
retried *step* safe. Set it from an order number to make a whole workflow re-run safe too — a
|
|
97
|
+
duplicate shipping label is a real cost.
|
|
98
|
+
|
|
99
|
+
## Examples
|
|
100
|
+
|
|
101
|
+
**Carrier PDF → Zebra.** HTTP Request (download the label PDF) → LabelZoom (Printer → Print,
|
|
102
|
+
source format `pdf`, pick your ZPL printer). One step; the conversion is implicit.
|
|
103
|
+
|
|
104
|
+
**Preview a ZPL label.** LabelZoom (Label → Convert, `zpl` → `png`) → Send Email. Useful for a
|
|
105
|
+
"does this template look right" approval step before a production run.
|
|
106
|
+
|
|
107
|
+
**Batch from a spreadsheet.** Google Sheets → LabelZoom (Label → Convert, `zpl` → `pdf`, with
|
|
108
|
+
Variable Data mapped from the rows) → Google Drive. Each row becomes one page.
|
|
109
|
+
|
|
110
|
+
**Fill a designed template.** Design in LabelZoom Studio, publish it to Print Templates, then
|
|
111
|
+
Printer → Print Template with the merge fields mapped from the incoming item. The template
|
|
112
|
+
picker shows each template's merge fields, so you can see what data it wants.
|
|
113
|
+
|
|
114
|
+
## Development
|
|
115
|
+
|
|
116
|
+
```sh
|
|
117
|
+
npm install
|
|
118
|
+
npm run dev # a local n8n with this node linked
|
|
119
|
+
npm run build
|
|
120
|
+
npm run lint # the n8n community-node linter (the verification gate)
|
|
121
|
+
npm run typecheck
|
|
122
|
+
npm test
|
|
123
|
+
```
|
|
124
|
+
|
|
125
|
+
### The conformance suite
|
|
126
|
+
|
|
127
|
+
n8n verification forbids runtime dependencies, so this node cannot call
|
|
128
|
+
[`@labelzoom/sdk`](https://www.npmjs.com/package/@labelzoom/sdk) — it re-implements the
|
|
129
|
+
LabelZoom wire contract by hand. To stop the two drifting apart, it runs the **same
|
|
130
|
+
language-neutral conformance fixtures** the eight official SDKs run: 83 cases pinned from
|
|
131
|
+
`labelzoom-sdk` covering request shape, error mapping, retry policy and local validation.
|
|
132
|
+
|
|
133
|
+
```sh
|
|
134
|
+
npm run sync-conformance # refresh test/conformance/ from the pinned SDK tag
|
|
135
|
+
node scripts/sync-conformance.mjs --check # verify it hasn't drifted (CI)
|
|
136
|
+
```
|
|
137
|
+
|
|
138
|
+
The suite asserts its own coverage — `executed == spec.cases - declared skips` — so a
|
|
139
|
+
partially-implemented runner can't quietly report green. Each skip carries a written reason in
|
|
140
|
+
[`test/conformance-skips.json`](test/conformance-skips.json).
|
|
141
|
+
|
|
142
|
+
There is one deliberate deviation, documented in the runner: the fixtures pin a `User-Agent`
|
|
143
|
+
matching `^labelzoom-[a-z0-9]+-sdk/`, the SDK family's naming. This is an n8n node, not an SDK,
|
|
144
|
+
and calling itself one on the wire would misreport what's talking to the API. It sends
|
|
145
|
+
`labelzoom-n8n-node` instead, and the substance of that rule — identify yourself, and never
|
|
146
|
+
claim to be LabelZoom Studio, whose prefix the server special-cases — is asserted directly in
|
|
147
|
+
`test/node.test.ts`.
|
|
148
|
+
|
|
149
|
+
## Resources
|
|
150
|
+
|
|
151
|
+
- [LabelZoom API docs](https://docs.labelzoom.com)
|
|
152
|
+
- [Conversion parameters](https://docs.labelzoom.com/reference/conversion-parameters/)
|
|
153
|
+
- [Cloud Print API](https://docs.labelzoom.com/reference/cloud-print-api/)
|
|
154
|
+
- [n8n community nodes](https://docs.n8n.io/integrations/community-nodes/)
|
|
155
|
+
|
|
156
|
+
## License
|
|
157
|
+
|
|
158
|
+
[MIT](LICENSE)
|
|
@@ -51,17 +51,6 @@ class LabelZoom {
|
|
|
51
51
|
{
|
|
52
52
|
name: 'labelZoomApi',
|
|
53
53
|
required: false,
|
|
54
|
-
displayOptions: { show: { resource: ['label'], operation: ['convert'] } },
|
|
55
|
-
},
|
|
56
|
-
{
|
|
57
|
-
name: 'labelZoomApi',
|
|
58
|
-
required: true,
|
|
59
|
-
displayOptions: { show: { resource: ['label'], operation: ['convertTemplate'] } },
|
|
60
|
-
},
|
|
61
|
-
{
|
|
62
|
-
name: 'labelZoomApi',
|
|
63
|
-
required: true,
|
|
64
|
-
displayOptions: { show: { resource: ['printer'] } },
|
|
65
54
|
},
|
|
66
55
|
],
|
|
67
56
|
properties: [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LabelZoom.node.js","sourceRoot":"","sources":["../../../nodes/LabelZoom/LabelZoom.node.ts"],"names":[],"mappings":";;;AAMA,+CAAuE;AAEvE,0DAAuD;AACvD,4DAAyD;AACzD,6CAA+E;AAC/E,iDAO6B;AAS7B,KAAK,UAAU,YAAY,CAE1B,QAAgB,EAChB,SAAiB,EACjB,SAAiB;IAEjB,IAAI,QAAQ,KAAK,OAAO,EAAE,CAAC;QAC1B,IAAI,SAAS,KAAK,SAAS;YAAE,OAAO,CAAC,MAAM,eAAO,CAAC,IAAI,CAAC,IAAI,EAAE,SAAS,CAAC,CAAC,CAAC;QAC1E,IAAI,SAAS,KAAK,iBAAiB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AAC,OAAO,KAAK,EAAE,CAAC;gBAChB,UAAU,CAAC,IAAI,CAAC;oBACf,IAAI,EAAE,EAAE,KAAK,EAAG,KAAe,CAAC,OAAO,EAAE;oBACzC,UAAU,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;iBAC/B,CAAC,CAAC;YACJ,CAAC;QACF,CAAC;QAED,OAAO,CAAC,UAAU,CAAC,CAAC;IACrB,CAAC;CACD;AAxFD,8BAwFC"}
|
|
@@ -70,6 +70,7 @@ async function convertTemplate(itemIndex) {
|
|
|
70
70
|
query: targetFormat === '' ? undefined : { target: targetFormat },
|
|
71
71
|
body: JSON.stringify(mergeData),
|
|
72
72
|
contentType: 'application/json',
|
|
73
|
+
requireAuth: true,
|
|
73
74
|
});
|
|
74
75
|
const actualFormat = Object.entries(response.headers).find(([key]) => key.toLowerCase() === 'x-lz-format')?.[1] ??
|
|
75
76
|
(targetFormat === '' ? 'zpl' : targetFormat);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"convertTemplate.js","sourceRoot":"","sources":["../../../../../nodes/LabelZoom/resources/label/convertTemplate.ts"],"names":[],"mappings":";;;AAwDA,
|
|
1
|
+
{"version":3,"file":"convertTemplate.js","sourceRoot":"","sources":["../../../../../nodes/LabelZoom/resources/label/convertTemplate.ts"],"names":[],"mappings":";;;AAwDA,0CAmFC;AArID,+CAAkD;AAElD,kDAM8B;AAC9B,sDAAkG;AAClG,8CAAgD;AAChD,8CAAoD;AAEpD,MAAM,OAAO,GAAG,EAAE,QAAQ,EAAE,CAAC,OAAO,CAAC,EAAE,SAAS,EAAE,CAAC,iBAAiB,CAAC,EAAE,CAAC;AAE3D,QAAA,0BAA0B,GAAsB;IAC5D,IAAA,wBAAe,EAAC,OAAO,CAAC;IACxB;QACC,WAAW,EAAE,mBAAmB;QAChC,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,MAAM;QACZ,OAAO,EAAE,IAAI;QACb,QAAQ,EAAE,IAAI;QACd,WAAW,EAC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gB;QACzB,UAAU;QACV,YAAY,EAAE,YAAY;QAC1B,WAAW,EAAE,IAAA,yBAAa,EAAC,QAAQ,CAAC;QACpC,UAAU,EAAE,QAAQ,CAAC,IAAI,CAAC,MAAM;QAChC,SAAS,EAAE,IAAA,uBAAW,EAAC,QAAQ,CAAC;KAChC,CAAC;IACF,IAAI,IAAA,yBAAe,EAAC,YAAY,CAAC,EAAE,CAAC;QACnC,IAAI,CAAC,IAAI,GAAG,IAAA,sBAAU,EAAC,QAAQ,CAAC,CAAC;IAClC,CAAC;IAED,OAAO;QACN,IAAI;QACJ,MAAM,EAAE;YACP,CAAC,wBAAwB,CAAC,EAAE,MAAM,IAAI,CAAC,OAAO,CAAC,iBAAiB,CAC/D,QAAQ,CAAC,IAAI,EACb,SAAS,IAAA,yBAAe,EAAC,YAAY,CAAC,EAAE,EACxC,QAAQ,CACR;SACD;QACD,UAAU,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;KAC/B,CAAC;AACH,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"print.js","sourceRoot":"","sources":["../../../../../nodes/LabelZoom/resources/printer/print.ts"],"names":[],"mappings":";;;AAqGA,
|
|
1
|
+
{"version":3,"file":"print.js","sourceRoot":"","sources":["../../../../../nodes/LabelZoom/resources/printer/print.ts"],"names":[],"mappings":";;;AAqGA,sBAkEC;AAhKD,+CAAyD;AAEzD,4DAAwF;AACxF,kDAAuG;AAEvG,kDAAiE;AACjE,sDAA6F;AAC7F,8CAA8D;AAC9D,qCAAsF;AAEtF,MAAM,OAAO,GAAG,EAAE,QAAQ,EAAE,CAAC,SAAS,CAAC,EAAE,SAAS,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;AAEhE,SAAS,kBAAkB,CAAC,SAAiB,EAAE,YAAoB;IAClE,IAAI,SAAS,KAAK,QAAQ;QAAE,OAAO,YAAY,CAAC;IAChD,IAAI,YAAY,KAAK,EAAE;QAAE,OAAO,0BAA0B,CAAC;IAC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C,KAAK,CAAC,CAAC,EAAE,GAAG,CAAC,EAAE,EACpE,EAAE,SAAS,EAAE,CACb,CAAC;IACH,CAAC;IAED,MAAM,IAAI,GAAgB;QACzB,GAAG,GAAG;QACN,SAAS;QACT,SAAS,EAAE,IAAA,uBAAW,EAAC,QAAQ,CAAC;KAChC,CAAC;IAEF,IAAI,iBAAiB,IAAI,OAAO,GAAG,CAAC,KAAK,KAAK,QAAQ,EAAE,CAAC;QACxD,MAAM,OAAO,GAAG,IAAI,CAAC,gBAAgB,CAAC,aAAa,EAAE,SAAS,EAAE,GAAG,CAAW,CAAC;QAC/E,MAAM,QAAQ,GAAG,MAAM,UAAU,CAAC,IAAI,CAAC,IAAI,EAAE,GAAG,CAAC,KAAK,EAAE,OAAO,EAAE,SAAS,CAAC,CAAC;QAC5E,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,EAAE,GAAG,EAAE,QAAQ,EAAE,MAAM,EAAE,QAAQ,CAAC,MAAM,IAAI,IAAI,CAAC,MAAM,EAAE,CAAC,CAAC;IAChF,CAAC;IAED,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE,CAAC;AAClD,CAAC"}
|
|
@@ -141,6 +141,11 @@ async function labelZoomRequest(request) {
|
|
|
141
141
|
const baseUrl = normalizeBaseUrl(credentials?.baseUrl);
|
|
142
142
|
const url = buildUrl(baseUrl, request);
|
|
143
143
|
const hasApiKey = typeof credentials?.apiKey === 'string' && credentials.apiKey.trim() !== '';
|
|
144
|
+
if (request.requireAuth === true && !hasApiKey) {
|
|
145
|
+
throw new n8n_workflow_1.NodeOperationError(this.getNode(), 'This operation needs a LabelZoom API key', {
|
|
146
|
+
description: 'Printers and Print Templates belong to your account, so they cannot be used anonymously. Add a LabelZoom API credential to this node — the key needs the "print" scope for printing (which also grants convert).',
|
|
147
|
+
});
|
|
148
|
+
}
|
|
144
149
|
const headers = {
|
|
145
150
|
Accept: '*/*',
|
|
146
151
|
'User-Agent': 'labelzoom-n8n-node (n8n)',
|
|
@@ -199,6 +204,7 @@ async function labelZoomJsonRequest(method, path, body, query, headers) {
|
|
|
199
204
|
path,
|
|
200
205
|
query,
|
|
201
206
|
headers,
|
|
207
|
+
requireAuth: true,
|
|
202
208
|
...(body === undefined
|
|
203
209
|
? {}
|
|
204
210
|
: { body: JSON.stringify(body), contentType: 'application/json' }),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transport.js","sourceRoot":"","sources":["../../../../nodes/LabelZoom/shared/transport.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"transport.js","sourceRoot":"","sources":["../../../../nodes/LabelZoom/shared/transport.ts"],"names":[],"mappings":";;;AAkEA,kDAYC;AAGD,4CAIC;AAgDD,kCAEC;AAED,sCAEC;AAED,kDAGC;AAWD,gCASC;AAkCD,wCA6CC;AAOD,4CA8FC;AAGD,oDA8BC;AAhXD,+CAAuE;AAS1D,QAAA,gBAAgB,GAAG,2BAA2B,CAAC;AAC/C,QAAA,eAAe,GAAG,cAAc,CAAC;AAG9C,MAAM,mBAAmB,GAAG,CAAC,CAAC;AA4CvB,KAAK,UAAU,mBAAmB,CACxC,GAAmB;IAEnB,IAAI,CAAC;QACJ,OAAO,CAAC,MAAM,GAAG,CAAC,cAAc,CAAC,uBAAe,CAAC,CAIhD,CAAC;IACH,CAAC;IAAC,MAAM,CAAC;QACR,OAAO,SAAS,CAAC;IAClB,CAAC;AACF,CAAC;AAGD,SAAgB,gBAAgB,CAAC,OAAgB;IAChD,MAAM,OAAO,GAAG,CAAC,OAAO,IAAI,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC;IACvC,IAAI,OAAO,KAAK,EAAE;QAAE,OAAO,wBAAgB,CAAC;IAC5C,OAAO,OAAO,CAAC,OAAO,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;AACpC,CAAC;AAED,SAAS,QAAQ,CAAC,OAAe,EAAE,OAAyB;IAC3D,MAAM,KAAK,GA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QACR,MAAM,IAAI,iCAAkB,CAC3B,IAAI,CAAC,OAAO,EAAE,EACd,sBAAsB,IAAI,aAAa,IAAI,CAAC,KAAK,CAAC,CAAC,EAAE,GAAG,CAAC,EAAE,CAC3D,CAAC;IACH,CAAC;AACF,CAAC"}
|
package/dist/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "n8n-nodes-labelzoom",
|
|
3
|
-
"version": "0.1.
|
|
4
|
-
"description": "n8n community node for LabelZoom
|
|
3
|
+
"version": "0.1.1",
|
|
4
|
+
"description": "n8n community node for LabelZoom — convert barcode labels between ZPL, EPL, TSPL, DPL, PDF and images, and print them to cloud-connected thermal printers",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://www.labelzoom.com",
|
|
7
7
|
"keywords": [
|