n8n-nodes-commercetools 0.1.14 → 0.1.16
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/README.md +24 -63
- package/dist/nodes/Commercetools/utils/awsInfra.utils.js +55 -23
- package/dist/nodes/Commercetools/utils/awsInfra.utils.js.map +1 -1
- package/dist/nodes/Commercetools/utils/webhookMethods.utils.js +3 -14
- package/dist/nodes/Commercetools/utils/webhookMethods.utils.js.map +1 -1
- package/dist/package.json +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
|
|
4
4
|
# n8n-nodes-commercetools
|
|
5
5
|
|
|
6
|
-
This repository provides a custom [n8n](https://n8n.io) node for integrating with [Commercetools](https://commercetools.com). It includes all required credentials, node definitions, utilities to interact with the Commercetools API, and **AWS SQS integration with Lambda processing**.
|
|
6
|
+
This repository provides a custom [n8n](https://n8n.io) node for integrating with [Commercetools](https://commercetools.com). It includes all required credentials, node definitions, utilities to interact with the Commercetools API, and optional **AWS SQS integration with Lambda processing**.
|
|
7
7
|
|
|
8
8
|
## Features
|
|
9
9
|
|
|
10
10
|
- **Complete Commercetools Integration**: Full support for products, categories, and customers
|
|
11
|
-
- **Webhook Product Trigger**: Native trigger for product events;
|
|
12
|
-
- **AWS SQS + Lambda**:
|
|
11
|
+
- **Webhook Product Trigger**: Native trigger for product events; delivers directly to n8n or, when AWS credentials are provided, through an auto-created SQS + Lambda pipeline
|
|
12
|
+
- **AWS SQS + Lambda (optional)**: Auto-provisions SQS, Lambda, and IAM via the AWS SDK when AWS credentials are present in the node credentials
|
|
13
13
|
- **Event Types**: Product Event Triggers
|
|
14
14
|
product created,product published,product unpublished,product deleted,
|
|
15
15
|
product added to category,product removed from category,
|
|
@@ -18,8 +18,7 @@ This repository provides a custom [n8n](https://n8n.io) node for integrating wit
|
|
|
18
18
|
product price added,product price changed,product price removed,product prices set,product price mode set,product price key set,product price discounts set,product price external discount set,
|
|
19
19
|
product price custom field added,product price custom field changed,product price custom field removed,
|
|
20
20
|
product price custom fields set,product price custom fields removed.
|
|
21
|
-
- **Monitoring**: CloudWatch
|
|
22
|
-
- **Multi-Environment**: Support for dev, staging, and production deployments
|
|
21
|
+
- **Monitoring**: CloudWatch logging from the generated Lambda function
|
|
23
22
|
|
|
24
23
|
|
|
25
24
|
## Quick Start
|
|
@@ -37,51 +36,23 @@ This will start n8n with the Commercetools node loaded and hot reload enabled.
|
|
|
37
36
|
|
|
38
37
|
Use the Commercetools Trigger node to receive events directly in n8n.
|
|
39
38
|
|
|
40
|
-
1. Add the **Commercetools Trigger** node
|
|
41
|
-
2.
|
|
42
|
-
3.
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
For production-grade event processing, this node supports AWS SQS queues with Lambda function processing:
|
|
47
|
-
|
|
48
|
-
### Quick Deploy
|
|
49
|
-
|
|
50
|
-
```bash
|
|
51
|
-
# Deploy AWS infrastructure
|
|
52
|
-
cd aws
|
|
53
|
-
./deploy.sh deploy
|
|
54
|
-
|
|
55
|
-
# Get configuration values
|
|
56
|
-
./deploy.sh outputs
|
|
57
|
-
```
|
|
58
|
-
|
|
59
|
-
### Configure SQS in n8n
|
|
60
|
-
|
|
61
|
-
1. Add CommerceTools Trigger node to your workflow
|
|
62
|
-
2. Select **"Amazon SQS"** as destination type
|
|
63
|
-
3. Configure with deployment outputs:
|
|
64
|
-
- **AWS Region**: Your deployment region
|
|
65
|
-
- **SQS Queue URL**: From deployment outputs
|
|
66
|
-
- **AWS Access Key ID** and **Secret**: Your AWS credentials
|
|
67
|
-
- **Lambda Function Name**: `commercetools-integration-dev-product-processor`
|
|
68
|
-
- **CTP Project Key**: `n8n-ct-integration`
|
|
69
|
-
- **Product Events**: Select `Product Published`
|
|
70
|
-
|
|
71
|
-
### Benefits of SQS Integration
|
|
72
|
-
|
|
73
|
-
- **Reliability**: Messages are persisted and retried automatically
|
|
74
|
-
- **Scalability**: Lambda scales automatically based on queue depth
|
|
75
|
-
- **Monitoring**: CloudWatch alarms for errors and failed messages
|
|
76
|
-
- **Dead Letter Queue**: Failed messages are preserved for investigation
|
|
77
|
-
- **Cost-Effective**: Pay only for what you use
|
|
78
|
-
|
|
79
|
-
See [aws/README.md](aws/README.md) for detailed configuration and customization options. Additional AWS resources: [AWS_AUTOMATION_PLAN.md](AWS_AUTOMATION_PLAN.md), [AWS_ATTRIBUTE_REFERENCE.md](AWS_ATTRIBUTE_REFERENCE.md), and [AUTOMATIC_SETUP.md](AUTOMATIC_SETUP.md).
|
|
80
|
-
|
|
39
|
+
1. Add the **Commercetools Trigger** node.
|
|
40
|
+
2. Select the event you want to subscribe to.
|
|
41
|
+
3. Choose your **Commercetools OAuth2** credentials. To send events through SQS + Lambda, also fill in **AWS Access Key**, **AWS Secret Access Key**, and **AWS Region** in the same credential.
|
|
42
|
+
4. Activate your workflow. The node registers a CommerceTools subscription pointing at your n8n webhook URL (`.../webhook/<path>/commercetools-product-events`). With AWS credentials, it also creates the SQS queue, Lambda function, IAM role, and event source mapping, then forwards messages to n8n.
|
|
43
|
+
5. Deactivate or update the trigger to clean up and recreate subscriptions or AWS resources when the configuration changes.
|
|
81
44
|
|
|
45
|
+
## AWS SQS + Lambda Integration (optional)
|
|
82
46
|
|
|
47
|
+
When AWS credentials are present in the Commercetools credentials, the trigger:
|
|
83
48
|
|
|
49
|
+
- Creates an SQS queue, Lambda function, IAM role, and event source mapping for the selected product events.
|
|
50
|
+
- Configures the Lambda with your n8n webhook URL so messages are forwarded into the workflow.
|
|
51
|
+
- Stores identifiers in workflow static data and deletes the resources when the trigger is removed or reconfigured.
|
|
84
52
|
|
|
53
|
+
Notes:
|
|
54
|
+
- Resource names are generated per activation and include the event type.
|
|
55
|
+
- Ensure the n8n webhook endpoint is reachable from AWS.
|
|
85
56
|
|
|
86
57
|
|
|
87
58
|
## Configuration Options
|
|
@@ -446,7 +417,7 @@ Below is a sample workflow using the Commercetools node in n8n to create and que
|
|
|
446
417
|
The `updateActions` fixed collection lets you compose Commercetools product update commands directly in the node UI, with helper inputs for localized data, prices, assets, and variant targeting. Highlights:
|
|
447
418
|
- Choose whether each variant is addressed by `variantId` or `sku`, and mix multiple variant-specific actions in a single request.
|
|
448
419
|
- Localized name/slug/meta helpers automatically map locale/value pairs to the format the Commercetools API expects.
|
|
449
|
-
- Attribute editors support string/number/boolean parsing so you don
|
|
420
|
+
- Attribute editors support string/number/boolean parsing so you don't need to pre-format JSON.
|
|
450
421
|
- Asset, price, image, and search keyword builders flatten nested fixed collections (sources, dimensions, tokenizers, etc.) into valid drafts.
|
|
451
422
|
|
|
452
423
|
Supported product update actions:
|
|
@@ -498,7 +469,7 @@ Supported product update actions:
|
|
|
498
469
|
- Transition State
|
|
499
470
|
- Unpublish
|
|
500
471
|
|
|
501
|
-
Need a field that isn
|
|
472
|
+
Need a field that isn't exposed yet? Add it via the `actions` JSON array - the node merges both sources in request order.
|
|
502
473
|
|
|
503
474
|
> **Transition State note:** the builder enforces that either a state ID or a state key is set per the [Commercetools Transition State action](https://docs.commercetools.com/api/projects/products#transition-state).
|
|
504
475
|
|
|
@@ -595,7 +566,7 @@ The Commercetools node for n8n enables you to interact with the Commercetools AP
|
|
|
595
566
|
Retrieve detailed information for a specific product by its ID or key.
|
|
596
567
|
|
|
597
568
|
- **Update Product (by ID or Key)**
|
|
598
|
-
Update an existing product using one or more update actions. The `updateActions` UI builder now mirrors Commercetools
|
|
569
|
+
Update an existing product using one or more update actions. The `updateActions` UI builder now mirrors Commercetools' product update catalog, including localized content helpers, price/asset editors, search keyword builders, and state transitions.
|
|
599
570
|
|
|
600
571
|
- **Delete Product (by ID or Key)**
|
|
601
572
|
Delete a product from your project.
|
|
@@ -733,21 +704,11 @@ Contributions and suggestions for improving the Commercetools node are welcome.
|
|
|
733
704
|
|
|
734
705
|
## Changelog
|
|
735
706
|
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
### [Unreleased]
|
|
740
|
-
- Added Commercetools webhook-based product trigger plus AWS automation/test guides
|
|
741
|
-
- Added AWS credential fields (client ID/secret) and environment-driven webhook URL support for trigger delivery
|
|
742
|
-
- Documented AWS deployment automation and attribute references for the CloudFormation scripts
|
|
743
|
-
- Refactored Commercetools product, category, and customer property definitions for easier maintenance
|
|
744
|
-
|
|
745
|
-
### v1.0.0
|
|
746
|
-
- Initial release of the Commercetools node for n8n
|
|
747
|
-
- Supports product management operations: create, query, search, get, update, delete, product selections, image upload, and existence checks
|
|
748
|
-
- OAuth2 credential integration
|
|
707
|
+
See `CHANGELOG.md` for the full history. Highlights:
|
|
749
708
|
|
|
750
|
-
|
|
709
|
+
- **v0.1.15**: Updated AWS trigger infrastructure and test payloads.
|
|
710
|
+
- **v0.1.14**: Added product trigger event coverage and consolidated trigger/actions.
|
|
711
|
+
- **v0.1.12**: Introduced the Commercetools product trigger and AWS credential fields in the credential model.
|
|
751
712
|
|
|
752
713
|
## License
|
|
753
714
|
|
|
@@ -164,6 +164,33 @@ async function createRealAWSInfrastructure(awsCredentials, eventType, webhookUrl
|
|
|
164
164
|
});
|
|
165
165
|
}
|
|
166
166
|
|
|
167
|
+
async function webhookSendingAck(webhookUrl, webhookPayload) {
|
|
168
|
+
// Send webhook response if URL is configured
|
|
169
|
+
if (webhookUrl) {
|
|
170
|
+
console.log('📤 Sending webhook to n8n...');
|
|
171
|
+
try {
|
|
172
|
+
const webhookResult = await sendWebhookResponse(webhookUrl, webhookPayload);
|
|
173
|
+
|
|
174
|
+
webhookPayload.webhookStatus = 'sent';
|
|
175
|
+
webhookPayload.webhookResponse = {
|
|
176
|
+
statusCode: webhookResult.statusCode,
|
|
177
|
+
timestamp: new Date().toISOString()
|
|
178
|
+
};
|
|
179
|
+
|
|
180
|
+
console.log('✅ Webhook sent successfully');
|
|
181
|
+
} catch (webhookError) {
|
|
182
|
+
console.error('❌ Webhook failed:', webhookError.message);
|
|
183
|
+
|
|
184
|
+
webhookPayload.webhookStatus = 'failed';
|
|
185
|
+
webhookPayload.webhookError = webhookError.message;
|
|
186
|
+
}
|
|
187
|
+
} else {
|
|
188
|
+
console.warn('⚠️ No webhook URL configured - skipping webhook');
|
|
189
|
+
webhookPayload.webhookStatus = 'skipped';
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
|
|
167
194
|
/**
|
|
168
195
|
* Lambda Handler - Process CommerceTools events from SQS
|
|
169
196
|
*/
|
|
@@ -228,29 +255,7 @@ async function createRealAWSInfrastructure(awsCredentials, eventType, webhookUrl
|
|
|
228
255
|
|
|
229
256
|
console.log('📦 Webhook Payload Prepared');
|
|
230
257
|
|
|
231
|
-
|
|
232
|
-
if (webhookUrl) {
|
|
233
|
-
console.log('📤 Sending webhook to n8n...');
|
|
234
|
-
try {
|
|
235
|
-
const webhookResult = await sendWebhookResponse(webhookUrl, webhookPayload);
|
|
236
|
-
|
|
237
|
-
webhookPayload.webhookStatus = 'sent';
|
|
238
|
-
webhookPayload.webhookResponse = {
|
|
239
|
-
statusCode: webhookResult.statusCode,
|
|
240
|
-
timestamp: new Date().toISOString()
|
|
241
|
-
};
|
|
242
|
-
|
|
243
|
-
console.log('✅ Webhook sent successfully');
|
|
244
|
-
} catch (webhookError) {
|
|
245
|
-
console.error('❌ Webhook failed:', webhookError.message);
|
|
246
|
-
|
|
247
|
-
webhookPayload.webhookStatus = 'failed';
|
|
248
|
-
webhookPayload.webhookError = webhookError.message;
|
|
249
|
-
}
|
|
250
|
-
} else {
|
|
251
|
-
console.warn('⚠️ No webhook URL configured - skipping webhook');
|
|
252
|
-
webhookPayload.webhookStatus = 'skipped';
|
|
253
|
-
}
|
|
258
|
+
await webhookSendingAck(webhookUrl, webhookPayload);
|
|
254
259
|
|
|
255
260
|
// Simulate business processing
|
|
256
261
|
await new Promise(resolve => setTimeout(resolve, 100));
|
|
@@ -266,6 +271,33 @@ async function createRealAWSInfrastructure(awsCredentials, eventType, webhookUrl
|
|
|
266
271
|
|
|
267
272
|
console.log('✅ Record processed successfully');
|
|
268
273
|
|
|
274
|
+
} else if (receivedEventType === "AWSInfrastructureTest") {
|
|
275
|
+
|
|
276
|
+
// Prepare webhook payload
|
|
277
|
+
const webhookPayload = {
|
|
278
|
+
eventType: receivedEventType,
|
|
279
|
+
rawMessage: messageBody,
|
|
280
|
+
source: 'CommerceTools-Lambda',
|
|
281
|
+
processed: true,
|
|
282
|
+
message: \`Subscription connectivity established successfully\`,
|
|
283
|
+
timestamp: new Date().toISOString(),
|
|
284
|
+
projectKey: projectKey
|
|
285
|
+
};
|
|
286
|
+
|
|
287
|
+
console.log('📦 Webhook Payload Prepared');
|
|
288
|
+
|
|
289
|
+
await webhookSendingAck(webhookUrl, webhookPayload);
|
|
290
|
+
|
|
291
|
+
// Simulate business processing
|
|
292
|
+
await new Promise(resolve => setTimeout(resolve, 100));
|
|
293
|
+
|
|
294
|
+
results.push({
|
|
295
|
+
status: 'success',
|
|
296
|
+
eventType: receivedEventType,
|
|
297
|
+
reason: '',
|
|
298
|
+
timestamp: new Date().toISOString()
|
|
299
|
+
});
|
|
300
|
+
|
|
269
301
|
} else {
|
|
270
302
|
console.log('⚠️ Event type mismatch');
|
|
271
303
|
console.log(' Expected:', eventType);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"awsInfra.utils.js","sourceRoot":"","sources":["../../../../nodes/Commercetools/utils/awsInfra.utils.ts"],"names":[],"mappings":";;;;;
|
|
1
|
+
{"version":3,"file":"awsInfra.utils.js","sourceRoot":"","sources":["../../../../nodes/Commercetools/utils/awsInfra.utils.ts"],"names":[],"mappings":";;;;;AA0BA,kEAmdC;AAKD,0DA2FC;AA7kBD,sDAA6B;AAC7B,sDAA0B;AAC1B,+CAAyD;AAwBlD,KAAK,UAAU,2BAA2B,CAAC,cAAsC,EAAE,SAAiB,EAAE,UAAmB;IAG/H,MAAM,SAAS,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC;IAC7B,MAAM,SAAS,GA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ET,CAAC;QACF,CAAC;IAGF,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QAChB,MAAM,IAAI,iCAAkB,CAC3B,EAAW,EACF,wCAAwC,KAAK,CAAC,OAAO,IAAI,KAAK,mEAAmE,CAC1I,CAAC;IACH,CAAC;AACF,CAAC"}
|
|
@@ -149,21 +149,10 @@ exports.triggerMethods = {
|
|
|
149
149
|
Records: [
|
|
150
150
|
{
|
|
151
151
|
body: JSON.stringify({
|
|
152
|
-
type:
|
|
152
|
+
type: "AWSInfrastructureTest",
|
|
153
153
|
resource: {
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
key: 'test-product-key',
|
|
157
|
-
version: 1,
|
|
158
|
-
masterData: {
|
|
159
|
-
current: {
|
|
160
|
-
name: { en: 'Test Product' },
|
|
161
|
-
masterVariant: {
|
|
162
|
-
sku: 'TEST-SKU-001'
|
|
163
|
-
},
|
|
164
|
-
categories: []
|
|
165
|
-
}
|
|
166
|
-
}
|
|
154
|
+
message: 'Subscription connectivity established successfully',
|
|
155
|
+
timestamp: new Date().toISOString(),
|
|
167
156
|
}
|
|
168
157
|
})
|
|
169
158
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"webhookMethods.utils.js","sourceRoot":"","sources":["../../../../nodes/Commercetools/utils/webhookMethods.utils.ts"],"names":[],"mappings":";;;;;;AAAA,+CAA+E;AAC/E,6DAA6G;AAC7G,sDAA0B;AAC1B,qDAAqG;AAIrG,SAAS,kBAAkB,CAAC,MAAgB,EAAE,MAAe;IACzD,OAAO,IAAI,CAAC,SAAS,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,IAAI,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC;AAC7D,CAAC;AAEY,QAAA,cAAc,GAAG;IAC1B,OAAO,EAAE;QACL,WAAW,EAAE,KAAK;YACd,MAAM,WAAW,GAAG,IAAI,CAAC,qBAAqB,CAAC,MAAM,CAA2B,CAAC;YAGjF,MAAM,SAAS,GAAG,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