n8n-nodes-nexlogiq-commerce 1.0.0 → 1.0.2
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 +35 -2
- package/dist/credentials/NexlogiqShopifyApi.credentials.d.ts +7 -0
- package/dist/credentials/NexlogiqShopifyApi.credentials.js +47 -0
- package/dist/credentials/NexlogiqWooCommerceApi.credentials.d.ts +7 -0
- package/dist/credentials/NexlogiqWooCommerceApi.credentials.js +41 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +2 -0
- package/dist/nodes/NexlogiqCommerce/NexlogiqCommerce.node.js +363 -83
- package/dist/nodes/Shopify nexlogiq/GenericFunctions.d.ts +2 -2
- package/dist/nodes/Shopify nexlogiq/GenericFunctions.js +52 -18
- package/dist/nodes/Shopify nexlogiq/RefundDescription.js +33 -0
- package/dist/nodes/Shopify nexlogiq/Shopify.node.d.ts +2 -0
- package/dist/nodes/Shopify nexlogiq/Shopify.node.js +40 -11
- package/dist/nodes/Shopify nexlogiq/ShopifyTrigger.node.js +8 -58
- package/dist/nodes/WooCommerce nexlogiq/GenericFunctions.d.ts +1 -1
- package/dist/nodes/WooCommerce nexlogiq/GenericFunctions.js +43 -10
- package/dist/nodes/WooCommerce nexlogiq/WooCommerce.node.js +1 -1
- package/dist/nodes/WooCommerce nexlogiq/WooCommerceTrigger.node.js +4 -25
- package/dist/tests/shopify-generic.test.js +34 -0
- package/dist/tests/woocommerce-generic.test.js +16 -6
- package/nodes/NexlogiqCommerce/NexlogiqCommerce.node.ts +346 -71
- package/nodes/Shopify nexlogiq/GenericFunctions.ts +52 -18
- package/nodes/Shopify nexlogiq/RefundDescription.ts +34 -1
- package/nodes/Shopify nexlogiq/Shopify.node.ts +40 -11
- package/nodes/Shopify nexlogiq/ShopifyTrigger.node.ts +8 -57
- package/nodes/WooCommerce nexlogiq/GenericFunctions.ts +40 -10
- package/nodes/WooCommerce nexlogiq/WooCommerce.node.ts +1 -1
- package/nodes/WooCommerce nexlogiq/WooCommerceTrigger.node.json +1 -1
- package/nodes/WooCommerce nexlogiq/WooCommerceTrigger.node.ts +4 -25
- package/package.json +5 -1
package/README.md
CHANGED
|
@@ -10,7 +10,7 @@ Custom n8n node families included in this package:
|
|
|
10
10
|
|
|
11
11
|
## Dynamic credentials contract
|
|
12
12
|
|
|
13
|
-
Action nodes
|
|
13
|
+
Action nodes support **per-item dynamic credentials** via input JSON and keep static node fields / package credentials as fallback.
|
|
14
14
|
|
|
15
15
|
- Shopify default path: `credentials.shopify`
|
|
16
16
|
- `shopDomain` (or `shopUrl`), `accessToken`, optional `apiVersion`
|
|
@@ -19,6 +19,18 @@ Action nodes now support **per-item dynamic credentials** via input JSON and kee
|
|
|
19
19
|
|
|
20
20
|
You can override the JSON path with each node's **Credential Source Path** parameter.
|
|
21
21
|
|
|
22
|
+
Precedence per item:
|
|
23
|
+
1. Credentials at `credentialSourcePath`
|
|
24
|
+
2. Known aliases inside the item (`credentials.shopify`, `credentials.woocommerce`, legacy aliases)
|
|
25
|
+
3. Static node fields / package credentials (`nexlogiqShopifyApi`, `nexlogiqWooCommerceApi`)
|
|
26
|
+
|
|
27
|
+
## Trigger credentials
|
|
28
|
+
|
|
29
|
+
Triggers use **static secure credentials only** (no per-item dynamic credentials), because webhook activation/deactivation has no upstream item context:
|
|
30
|
+
|
|
31
|
+
- `nexlogiqShopifyApi` (includes webhook shared secret for HMAC verification)
|
|
32
|
+
- `nexlogiqWooCommerceApi`
|
|
33
|
+
|
|
22
34
|
Example input item:
|
|
23
35
|
|
|
24
36
|
```json
|
|
@@ -48,12 +60,33 @@ Shopify, WooCommerce, and NexlogiqCommerce action nodes execute once even when n
|
|
|
48
60
|
- WooCommerce: customers, orders, products, refunds, webhooks (+ trigger)
|
|
49
61
|
- Unified NexlogiqCommerce routes by platform/resource/operation with explicit unsupported-combination errors.
|
|
50
62
|
|
|
63
|
+
### Operation matrix (implemented)
|
|
64
|
+
|
|
65
|
+
| Platform | Resource | Operations |
|
|
66
|
+
|---|---|---|
|
|
67
|
+
| Shopify | customer | create, update, get, delete, getAll |
|
|
68
|
+
| Shopify | draftOrder | create, get, delete, getAll |
|
|
69
|
+
| Shopify | order | create, update, cancel, get, getAll |
|
|
70
|
+
| Shopify | product | create, update, get, delete, getAll |
|
|
71
|
+
| Shopify | refund | create |
|
|
72
|
+
| Shopify | webhook | create, delete, getAll |
|
|
73
|
+
| WooCommerce | customer | create, update, get, delete, getAll |
|
|
74
|
+
| WooCommerce | order | create, update, get, delete, getAll |
|
|
75
|
+
| WooCommerce | product | create, update, get, delete, getAll |
|
|
76
|
+
| WooCommerce | refund | create |
|
|
77
|
+
| WooCommerce | webhook | create, delete, getAll |
|
|
78
|
+
|
|
51
79
|
## Build and test
|
|
52
80
|
|
|
53
81
|
```bash
|
|
54
82
|
npm install
|
|
55
83
|
npm run build
|
|
56
84
|
npm test
|
|
85
|
+
npm pack --dry-run
|
|
57
86
|
```
|
|
58
87
|
|
|
59
|
-
Tests include credential extraction,
|
|
88
|
+
Tests are mocked/deterministic and include credential extraction, per-item credential resolution, order-name normalization, recursive mapping, GraphQL error handling, and pagination safeguards.
|
|
89
|
+
|
|
90
|
+
## Live-provider limitation
|
|
91
|
+
|
|
92
|
+
This repository does not include live provider credentials in CI. Provider API calls are validated through mocked tests only; live API validation must be run separately in a secured environment.
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.NexlogiqShopifyApi = void 0;
|
|
4
|
+
class NexlogiqShopifyApi {
|
|
5
|
+
constructor() {
|
|
6
|
+
this.name = 'nexlogiqShopifyApi';
|
|
7
|
+
this.displayName = 'Nexlogiq Shopify API';
|
|
8
|
+
this.documentationUrl = 'https://shopify.dev/docs/api/admin';
|
|
9
|
+
this.properties = [
|
|
10
|
+
{
|
|
11
|
+
displayName: 'Shop Domain',
|
|
12
|
+
name: 'shopDomain',
|
|
13
|
+
type: 'string',
|
|
14
|
+
default: '',
|
|
15
|
+
placeholder: 'your-store.myshopify.com',
|
|
16
|
+
required: true,
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
displayName: 'Admin Access Token',
|
|
20
|
+
name: 'accessToken',
|
|
21
|
+
type: 'string',
|
|
22
|
+
typeOptions: {
|
|
23
|
+
password: true,
|
|
24
|
+
},
|
|
25
|
+
default: '',
|
|
26
|
+
required: true,
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
displayName: 'Webhook Shared Secret',
|
|
30
|
+
name: 'webhookSharedSecret',
|
|
31
|
+
type: 'string',
|
|
32
|
+
typeOptions: {
|
|
33
|
+
password: true,
|
|
34
|
+
},
|
|
35
|
+
default: '',
|
|
36
|
+
required: true,
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
displayName: 'API Version',
|
|
40
|
+
name: 'apiVersion',
|
|
41
|
+
type: 'string',
|
|
42
|
+
default: '2025-10',
|
|
43
|
+
},
|
|
44
|
+
];
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
exports.NexlogiqShopifyApi = NexlogiqShopifyApi;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.NexlogiqWooCommerceApi = void 0;
|
|
4
|
+
class NexlogiqWooCommerceApi {
|
|
5
|
+
constructor() {
|
|
6
|
+
this.name = 'nexlogiqWooCommerceApi';
|
|
7
|
+
this.displayName = 'Nexlogiq WooCommerce API';
|
|
8
|
+
this.documentationUrl = 'https://woocommerce.github.io/woocommerce-rest-api-docs/';
|
|
9
|
+
this.properties = [
|
|
10
|
+
{
|
|
11
|
+
displayName: 'Store URL',
|
|
12
|
+
name: 'storeUrl',
|
|
13
|
+
type: 'string',
|
|
14
|
+
default: '',
|
|
15
|
+
placeholder: 'https://your-store.com',
|
|
16
|
+
required: true,
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
displayName: 'Consumer Key',
|
|
20
|
+
name: 'consumerKey',
|
|
21
|
+
type: 'string',
|
|
22
|
+
typeOptions: {
|
|
23
|
+
password: true,
|
|
24
|
+
},
|
|
25
|
+
default: '',
|
|
26
|
+
required: true,
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
displayName: 'Consumer Secret',
|
|
30
|
+
name: 'consumerSecret',
|
|
31
|
+
type: 'string',
|
|
32
|
+
typeOptions: {
|
|
33
|
+
password: true,
|
|
34
|
+
},
|
|
35
|
+
default: '',
|
|
36
|
+
required: true,
|
|
37
|
+
},
|
|
38
|
+
];
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
exports.NexlogiqWooCommerceApi = NexlogiqWooCommerceApi;
|
package/dist/index.d.ts
CHANGED
|
@@ -3,3 +3,5 @@ export * from './nodes/Shopify nexlogiq/ShopifyTrigger.node';
|
|
|
3
3
|
export * from './nodes/WooCommerce nexlogiq/WooCommerce.node';
|
|
4
4
|
export * from './nodes/WooCommerce nexlogiq/WooCommerceTrigger.node';
|
|
5
5
|
export * from './nodes/NexlogiqCommerce/NexlogiqCommerce.node';
|
|
6
|
+
export * from './credentials/NexlogiqShopifyApi.credentials';
|
|
7
|
+
export * from './credentials/NexlogiqWooCommerceApi.credentials';
|
package/dist/index.js
CHANGED
|
@@ -19,3 +19,5 @@ __exportStar(require("./nodes/Shopify nexlogiq/ShopifyTrigger.node"), exports);
|
|
|
19
19
|
__exportStar(require("./nodes/WooCommerce nexlogiq/WooCommerce.node"), exports);
|
|
20
20
|
__exportStar(require("./nodes/WooCommerce nexlogiq/WooCommerceTrigger.node"), exports);
|
|
21
21
|
__exportStar(require("./nodes/NexlogiqCommerce/NexlogiqCommerce.node"), exports);
|
|
22
|
+
__exportStar(require("./credentials/NexlogiqShopifyApi.credentials"), exports);
|
|
23
|
+
__exportStar(require("./credentials/NexlogiqWooCommerceApi.credentials"), exports);
|