n8n-nodes-commercetools 1.0.3 → 1.0.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/LICENSE.md CHANGED
@@ -1,19 +1,19 @@
1
- Copyright 2025 jjtech-digital
2
-
3
- Permission is hereby granted, free of charge, to any person obtaining a copy of
4
- this software and associated documentation files (the "Software"), to deal in
5
- the Software without restriction, including without limitation the rights to
6
- use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
7
- of the Software, and to permit persons to whom the Software is furnished to do
8
- so, subject to the following conditions:
9
-
10
- The above copyright notice and this permission notice shall be included in all
11
- copies or substantial portions of the Software.
12
-
13
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
19
- SOFTWARE.
1
+ Copyright 2025 jjtech-digital
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining a copy of
4
+ this software and associated documentation files (the "Software"), to deal in
5
+ the Software without restriction, including without limitation the rights to
6
+ use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
7
+ of the Software, and to permit persons to whom the Software is furnished to do
8
+ so, subject to the following conditions:
9
+
10
+ The above copyright notice and this permission notice shall be included in all
11
+ copies or substantial portions of the Software.
12
+
13
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
19
+ SOFTWARE.
package/README.md CHANGED
@@ -26,7 +26,7 @@ Operations are **auto-generated** from the official commercetools Postman collec
26
26
 
27
27
  ## Highlights
28
28
 
29
- - Full CRUD coverage for Products, Customers, Carts, Orders, Business Units and Categories
29
+ - Full CRUD coverage for Products, Customers, Carts, Orders, Business Units, Categories, Channels, Associate Roles, and Inventory
30
30
  - Auto-generated operations from the official Postman collection — always in sync
31
31
  - Product image upload: downloads from a URL, posts raw binary to commercetools
32
32
  - Product, Order, and Business Unit search with structured query, sort, limit, and offset fields
@@ -63,6 +63,9 @@ Select a **Resource** and **Operation** to interact with the commercetools API.
63
63
  | **Order** | Create from Cart, Create from Quote, Import, Get by ID / Key / Order Number, Query, Search, Update, Delete, HEAD checks |
64
64
  | **Business Unit** | Create, Get by ID, Get by Key, Query, Search, Update, Delete, HEAD checks |
65
65
  | **Category** | Create, Get by ID, Get by Key, Query, Update, Delete, Search, Get by Slug, HEAD checks |
66
+ | **Channel** | Create, Get by ID, Get by Key, Query, Update, Delete, HEAD checks |
67
+ | **Associate Role** | Create, Get by ID, Get by Key, Query, Update, Delete, HEAD checks |
68
+ | **Inventory** | Create, Get by ID, Get by Key, Query, Update, Delete, HEAD checks |
66
69
 
67
70
  #### How field generation works
68
71
 
@@ -137,15 +140,19 @@ Listens for real-time commercetools events via webhook subscription. On activati
137
140
 
138
141
  **Customer** — created, deleted, email verified/changed, password updated, address updates, custom fields and types
139
142
 
140
- **Category** — created, slug changed
141
-
142
143
  **Order** — created, deleted, imported, state transitions, customer updates, shipping and billing updates, line item changes, payments and deliveries, discount code updates, custom fields
143
144
 
144
145
  **Cart** — cart created (change notification)
145
146
 
146
147
  **Business Unit** — created, deleted, address added/changed/removed, associate added/changed/removed, status changed, name changed, contact email updated, store assignments changed, custom fields and types
147
148
 
148
- **Category** — created, deleted, slug changed, name changed, description changed, parent changed, order hint changed, externalId set, custom type set, custom field changed
149
+ **Category** — created, slug changed
150
+
151
+ **Channel** — no message triggers (change subscriptions only)
152
+
153
+ **Associate Role** — created, deleted, name set, buyer assignable changed, permission added, permission removed, permissions set
154
+
155
+ **Inventory** — entry created, entry deleted, entry quantity set
149
156
 
150
157
  #### Subscription routing
151
158
 
@@ -304,7 +311,7 @@ scripts/generate.ts (entry point: npm run generate)
304
311
  │ Extracts: *MessagePayload type literals,
305
312
  │ MessageSubscriptionResourceTypeId values,
306
313
  │ ChangeSubscriptionResourceTypeId values
307
- │ Filters to allowedResources: [product, customer, cart, order, business-unit]
314
+ │ Filters to allowedResources: [product, customer, cart, order, business-unit, category, channel, associate-role, inventory-entry]
308
315
  │ → nodes/Commercetools/generated/ctp-event-registry.json
309
316
 
310
317
  └── generateSubscriptionProperties.ts
@@ -354,10 +361,10 @@ New API endpoints and fields appear in the node automatically without manual dev
354
361
 
355
362
  | Version | Changes |
356
363
  | ------- | ------------------------------------------------------------------------------------------------ |
364
+ | v1.0.4 | Added Channels and Associate Roles. |
365
+ | v1.0.3 | Added Business Units and Categories. |
357
366
  | v1.0.2 | Added missing triggers node to Package JSON. |
358
367
  | v1.0.1 | Automated the Node resources, properties and trigger properties creation. |
359
- | v0.1.35 | Improve GCP authentication by using JWT client for access token management |
360
- | v0.1.34 | Fix: GCP Credential service handling |
361
368
 
362
369
  ---
363
370
 
@@ -1,3 +1,3 @@
1
- <svg width="40" height="40" viewBox="0 0 40 40" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <path fill-rule="evenodd" clip-rule="evenodd" d="M20.0165 0C8.94791 0 0 9.01388 0 20.1653C0 29.0792 5.73324 36.6246 13.6868 39.2952C14.6812 39.496 15.0454 38.8613 15.0454 38.3274C15.0454 37.8599 15.0126 36.2575 15.0126 34.5879C9.4445 35.79 8.28498 32.1841 8.28498 32.1841C7.39015 29.847 6.06429 29.2463 6.06429 29.2463C4.24185 28.011 6.19704 28.011 6.19704 28.011C8.21861 28.1446 9.27938 30.081 9.27938 30.081C11.0686 33.1522 13.9518 32.2844 15.1118 31.7502C15.2773 30.4481 15.8079 29.5467 16.3713 29.046C11.9303 28.5785 7.25781 26.8425 7.25781 19.0967C7.25781 16.8932 8.05267 15.0905 9.31216 13.6884C9.11344 13.1877 8.41732 11.1174 9.51128 8.34644C9.51128 8.34644 11.2014 7.81217 15.0122 10.4164C16.6438 9.97495 18.3263 9.7504 20.0165 9.74851C21.7067 9.74851 23.4295 9.98246 25.0205 10.4164C28.8317 7.81217 30.5218 8.34644 30.5218 8.34644C31.6158 11.1174 30.9192 13.1877 30.7205 13.6884C32.0132 15.0905 32.7753 16.8932 32.7753 19.0967C32.7753 26.8425 28.1028 28.5449 23.6287 29.046C24.358 29.6802 24.9873 30.882 24.9873 32.7851C24.9873 35.4893 24.9545 37.6596 24.9545 38.327C24.9545 38.8613 25.3192 39.496 26.3132 39.2956C34.2667 36.6242 39.9999 29.0792 39.9999 20.1653C40.0327 9.01388 31.052 0 20.0165 0Z" fill="white"/>
3
- </svg>
1
+ <svg width="40" height="40" viewBox="0 0 40 40" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M20.0165 0C8.94791 0 0 9.01388 0 20.1653C0 29.0792 5.73324 36.6246 13.6868 39.2952C14.6812 39.496 15.0454 38.8613 15.0454 38.3274C15.0454 37.8599 15.0126 36.2575 15.0126 34.5879C9.4445 35.79 8.28498 32.1841 8.28498 32.1841C7.39015 29.847 6.06429 29.2463 6.06429 29.2463C4.24185 28.011 6.19704 28.011 6.19704 28.011C8.21861 28.1446 9.27938 30.081 9.27938 30.081C11.0686 33.1522 13.9518 32.2844 15.1118 31.7502C15.2773 30.4481 15.8079 29.5467 16.3713 29.046C11.9303 28.5785 7.25781 26.8425 7.25781 19.0967C7.25781 16.8932 8.05267 15.0905 9.31216 13.6884C9.11344 13.1877 8.41732 11.1174 9.51128 8.34644C9.51128 8.34644 11.2014 7.81217 15.0122 10.4164C16.6438 9.97495 18.3263 9.7504 20.0165 9.74851C21.7067 9.74851 23.4295 9.98246 25.0205 10.4164C28.8317 7.81217 30.5218 8.34644 30.5218 8.34644C31.6158 11.1174 30.9192 13.1877 30.7205 13.6884C32.0132 15.0905 32.7753 16.8932 32.7753 19.0967C32.7753 26.8425 28.1028 28.5449 23.6287 29.046C24.358 29.6802 24.9873 30.882 24.9873 32.7851C24.9873 35.4893 24.9545 37.6596 24.9545 38.327C24.9545 38.8613 25.3192 39.496 26.3132 39.2956C34.2667 36.6242 39.9999 29.0792 39.9999 20.1653C40.0327 9.01388 31.052 0 20.0165 0Z" fill="white"/>
3
+ </svg>
@@ -1,3 +1,3 @@
1
- <svg width="40" height="40" viewBox="0 0 40 40" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <path fill-rule="evenodd" clip-rule="evenodd" d="M20.0165 0C8.94791 0 0 9.01388 0 20.1653C0 29.0792 5.73324 36.6246 13.6868 39.2952C14.6812 39.496 15.0454 38.8613 15.0454 38.3274C15.0454 37.8599 15.0126 36.2575 15.0126 34.5879C9.4445 35.79 8.28498 32.1841 8.28498 32.1841C7.39015 29.847 6.06429 29.2463 6.06429 29.2463C4.24185 28.011 6.19704 28.011 6.19704 28.011C8.21861 28.1446 9.27938 30.081 9.27938 30.081C11.0686 33.1522 13.9518 32.2844 15.1118 31.7502C15.2773 30.4481 15.8079 29.5467 16.3713 29.046C11.9303 28.5785 7.25781 26.8425 7.25781 19.0967C7.25781 16.8932 8.05267 15.0905 9.31216 13.6884C9.11344 13.1877 8.41732 11.1174 9.51128 8.34644C9.51128 8.34644 11.2014 7.81217 15.0122 10.4164C16.6438 9.97495 18.3263 9.7504 20.0165 9.74851C21.7067 9.74851 23.4295 9.98246 25.0205 10.4164C28.8317 7.81217 30.5218 8.34644 30.5218 8.34644C31.6158 11.1174 30.9192 13.1877 30.7205 13.6884C32.0132 15.0905 32.7753 16.8932 32.7753 19.0967C32.7753 26.8425 28.1028 28.5449 23.6287 29.046C24.358 29.6802 24.9873 30.882 24.9873 32.7851C24.9873 35.4893 24.9545 37.6596 24.9545 38.327C24.9545 38.8613 25.3192 39.496 26.3132 39.2956C34.2667 36.6242 39.9999 29.0792 39.9999 20.1653C40.0327 9.01388 31.052 0 20.0165 0Z" fill="#24292F"/>
3
- </svg>
1
+ <svg width="40" height="40" viewBox="0 0 40 40" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M20.0165 0C8.94791 0 0 9.01388 0 20.1653C0 29.0792 5.73324 36.6246 13.6868 39.2952C14.6812 39.496 15.0454 38.8613 15.0454 38.3274C15.0454 37.8599 15.0126 36.2575 15.0126 34.5879C9.4445 35.79 8.28498 32.1841 8.28498 32.1841C7.39015 29.847 6.06429 29.2463 6.06429 29.2463C4.24185 28.011 6.19704 28.011 6.19704 28.011C8.21861 28.1446 9.27938 30.081 9.27938 30.081C11.0686 33.1522 13.9518 32.2844 15.1118 31.7502C15.2773 30.4481 15.8079 29.5467 16.3713 29.046C11.9303 28.5785 7.25781 26.8425 7.25781 19.0967C7.25781 16.8932 8.05267 15.0905 9.31216 13.6884C9.11344 13.1877 8.41732 11.1174 9.51128 8.34644C9.51128 8.34644 11.2014 7.81217 15.0122 10.4164C16.6438 9.97495 18.3263 9.7504 20.0165 9.74851C21.7067 9.74851 23.4295 9.98246 25.0205 10.4164C28.8317 7.81217 30.5218 8.34644 30.5218 8.34644C31.6158 11.1174 30.9192 13.1877 30.7205 13.6884C32.0132 15.0905 32.7753 16.8932 32.7753 19.0967C32.7753 26.8425 28.1028 28.5449 23.6287 29.046C24.358 29.6802 24.9873 30.882 24.9873 32.7851C24.9873 35.4893 24.9545 37.6596 24.9545 38.327C24.9545 38.8613 25.3192 39.496 26.3132 39.2956C34.2667 36.6242 39.9999 29.0792 39.9999 20.1653C40.0327 9.01388 31.052 0 20.0165 0Z" fill="#24292F"/>
3
+ </svg>
@@ -1,5 +1,40 @@
1
1
  {
2
2
  "events": [
3
+ {
4
+ "value": "AssociateRoleBuyerAssignableChanged",
5
+ "resourceTypeId": "associate-role",
6
+ "subscriptionType": "message"
7
+ },
8
+ {
9
+ "value": "AssociateRoleCreated",
10
+ "resourceTypeId": "associate-role",
11
+ "subscriptionType": "message"
12
+ },
13
+ {
14
+ "value": "AssociateRoleDeleted",
15
+ "resourceTypeId": "associate-role",
16
+ "subscriptionType": "message"
17
+ },
18
+ {
19
+ "value": "AssociateRoleNameSet",
20
+ "resourceTypeId": "associate-role",
21
+ "subscriptionType": "message"
22
+ },
23
+ {
24
+ "value": "AssociateRolePermissionAdded",
25
+ "resourceTypeId": "associate-role",
26
+ "subscriptionType": "message"
27
+ },
28
+ {
29
+ "value": "AssociateRolePermissionRemoved",
30
+ "resourceTypeId": "associate-role",
31
+ "subscriptionType": "message"
32
+ },
33
+ {
34
+ "value": "AssociateRolePermissionsSet",
35
+ "resourceTypeId": "associate-role",
36
+ "subscriptionType": "message"
37
+ },
3
38
  {
4
39
  "value": "BusinessUnitAddressAdded",
5
40
  "resourceTypeId": "business-unit",
@@ -430,6 +465,21 @@
430
465
  "resourceTypeId": "order",
431
466
  "subscriptionType": "message"
432
467
  },
468
+ {
469
+ "value": "InventoryEntryCreated",
470
+ "resourceTypeId": "inventory-entry",
471
+ "subscriptionType": "message"
472
+ },
473
+ {
474
+ "value": "InventoryEntryDeleted",
475
+ "resourceTypeId": "inventory-entry",
476
+ "subscriptionType": "message"
477
+ },
478
+ {
479
+ "value": "InventoryEntryQuantitySet",
480
+ "resourceTypeId": "inventory-entry",
481
+ "subscriptionType": "message"
482
+ },
433
483
  {
434
484
  "value": "LineItemStateTransition",
435
485
  "resourceTypeId": "order",
@@ -859,7 +909,7 @@
859
909
  "zone"
860
910
  ],
861
911
  "stats": {
862
- "totalMessages": 158,
912
+ "totalMessages": 168,
863
913
  "unmapped": 0,
864
914
  "unclassified": 0
865
915
  },