n8n-nodes-commercetools 1.0.4 → 1.0.6
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 +19 -19
- package/README.md +15 -6
- package/dist/icons/github.dark.svg +3 -3
- package/dist/icons/github.svg +3 -3
- package/dist/nodes/Commercetools/generated/ctp-event-registry.json +41 -1
- package/dist/nodes/Commercetools/generated/operations.json +2134 -192
- package/dist/nodes/Commercetools/generated/properties.js +2577 -654
- package/dist/nodes/Commercetools/generated/properties.js.map +1 -1
- package/dist/nodes/Commercetools/generated/subscription.properties.js +8 -0
- package/dist/nodes/Commercetools/generated/subscription.properties.js.map +1 -1
- package/dist/package.json +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
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, Categories, Channels, and
|
|
29
|
+
- Full CRUD coverage for Products, Customers, Carts, Orders, Business Units, Categories, Channels, Associate Roles, Inventory, Reviews, and Shopping Lists
|
|
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
|
|
@@ -65,6 +65,9 @@ Select a **Resource** and **Operation** to interact with the commercetools API.
|
|
|
65
65
|
| **Category** | Create, Get by ID, Get by Key, Query, Update, Delete, Search, Get by Slug, HEAD checks |
|
|
66
66
|
| **Channel** | Create, Get by ID, Get by Key, Query, Update, Delete, HEAD checks |
|
|
67
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 |
|
|
69
|
+
| **Review** | Create, Get by ID, Get by Key, Query, Update, Delete, HEAD checks |
|
|
70
|
+
| **Shopping List** | Create, Get by ID, Get by Key, Query, Update, Delete, HEAD checks |
|
|
68
71
|
|
|
69
72
|
#### How field generation works
|
|
70
73
|
|
|
@@ -151,6 +154,12 @@ Listens for real-time commercetools events via webhook subscription. On activati
|
|
|
151
154
|
|
|
152
155
|
**Associate Role** — created, deleted, name set, buyer assignable changed, permission added, permission removed, permissions set
|
|
153
156
|
|
|
157
|
+
**Inventory** — entry created, entry deleted, entry quantity set
|
|
158
|
+
|
|
159
|
+
**Reviews** — created, rating set, state transition
|
|
160
|
+
|
|
161
|
+
**Shopping List** — line item added, line item removed
|
|
162
|
+
|
|
154
163
|
#### Subscription routing
|
|
155
164
|
|
|
156
165
|
Events are routed to the correct commercetools subscription arrays automatically using the generated event registry (produced by `generateCtpRegistry.ts` from the `@commercetools/platform-sdk` type declarations):
|
|
@@ -308,7 +317,7 @@ scripts/generate.ts (entry point: npm run generate)
|
|
|
308
317
|
│ Extracts: *MessagePayload type literals,
|
|
309
318
|
│ MessageSubscriptionResourceTypeId values,
|
|
310
319
|
│ ChangeSubscriptionResourceTypeId values
|
|
311
|
-
│ Filters to allowedResources: [product, customer, cart, order, business-unit, category, channel, associate-role]
|
|
320
|
+
│ Filters to allowedResources: [product, customer, cart, order, business-unit, category, channel, associate-role, inventory-entry, review, shopping-list]
|
|
312
321
|
│ → nodes/Commercetools/generated/ctp-event-registry.json
|
|
313
322
|
│
|
|
314
323
|
└── generateSubscriptionProperties.ts
|
|
@@ -358,11 +367,11 @@ New API endpoints and fields appear in the node automatically without manual dev
|
|
|
358
367
|
|
|
359
368
|
| Version | Changes |
|
|
360
369
|
| ------- | ------------------------------------------------------------------------------------------------ |
|
|
361
|
-
| v1.0.
|
|
370
|
+
| v1.0.4 | Added Inventory feature. |
|
|
371
|
+
| v1.0.4 | Added Channels and Associate Roles. |
|
|
372
|
+
| v1.0.3 | Added Business Units and Categories. |
|
|
362
373
|
| v1.0.2 | Added missing triggers node to Package JSON. |
|
|
363
|
-
|
|
364
|
-
| v0.1.35 | Improve GCP authentication by using JWT client for access token management |
|
|
365
|
-
| v0.1.34 | Fix: GCP Credential service handling |
|
|
374
|
+
|
|
366
375
|
|
|
367
376
|
---
|
|
368
377
|
|
|
@@ -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>
|
package/dist/icons/github.svg
CHANGED
|
@@ -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>
|
|
@@ -465,6 +465,21 @@
|
|
|
465
465
|
"resourceTypeId": "order",
|
|
466
466
|
"subscriptionType": "message"
|
|
467
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
|
+
},
|
|
468
483
|
{
|
|
469
484
|
"value": "LineItemStateTransition",
|
|
470
485
|
"resourceTypeId": "order",
|
|
@@ -824,6 +839,31 @@
|
|
|
824
839
|
"value": "ReturnInfoSet",
|
|
825
840
|
"resourceTypeId": "order",
|
|
826
841
|
"subscriptionType": "message"
|
|
842
|
+
},
|
|
843
|
+
{
|
|
844
|
+
"value": "ReviewCreated",
|
|
845
|
+
"resourceTypeId": "review",
|
|
846
|
+
"subscriptionType": "message"
|
|
847
|
+
},
|
|
848
|
+
{
|
|
849
|
+
"value": "ReviewRatingSet",
|
|
850
|
+
"resourceTypeId": "review",
|
|
851
|
+
"subscriptionType": "message"
|
|
852
|
+
},
|
|
853
|
+
{
|
|
854
|
+
"value": "ReviewStateTransition",
|
|
855
|
+
"resourceTypeId": "review",
|
|
856
|
+
"subscriptionType": "message"
|
|
857
|
+
},
|
|
858
|
+
{
|
|
859
|
+
"value": "ShoppingListLineItemAdded",
|
|
860
|
+
"resourceTypeId": "shopping-list",
|
|
861
|
+
"subscriptionType": "message"
|
|
862
|
+
},
|
|
863
|
+
{
|
|
864
|
+
"value": "ShoppingListLineItemRemoved",
|
|
865
|
+
"resourceTypeId": "shopping-list",
|
|
866
|
+
"subscriptionType": "message"
|
|
827
867
|
}
|
|
828
868
|
],
|
|
829
869
|
"messageResourceTypeIds": [
|
|
@@ -894,7 +934,7 @@
|
|
|
894
934
|
"zone"
|
|
895
935
|
],
|
|
896
936
|
"stats": {
|
|
897
|
-
"totalMessages":
|
|
937
|
+
"totalMessages": 173,
|
|
898
938
|
"unmapped": 0,
|
|
899
939
|
"unclassified": 0
|
|
900
940
|
},
|