@skriptfabrik/n8n-nodes-fulfillmenttools 0.1.1 → 0.1.3
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/CHANGELOG.md +28 -0
- package/package.json +5 -4
- package/src/credentials/FulfillmenttoolsApi.credentials.d.ts +13 -0
- package/src/credentials/FulfillmenttoolsApi.credentials.js +126 -0
- package/src/credentials/FulfillmenttoolsApi.credentials.js.map +1 -0
- package/src/nodes/Fulfillmenttools/Fulfillmenttools.node.d.ts +5 -0
- package/src/nodes/Fulfillmenttools/Fulfillmenttools.node.js +174 -0
- package/src/nodes/Fulfillmenttools/Fulfillmenttools.node.js.map +1 -0
- package/src/nodes/Fulfillmenttools/FulfillmenttoolsTrigger.node.d.ts +12 -0
- package/src/nodes/Fulfillmenttools/FulfillmenttoolsTrigger.node.js +330 -0
- package/src/nodes/Fulfillmenttools/FulfillmenttoolsTrigger.node.js.map +1 -0
- package/src/nodes/Fulfillmenttools/GenericFunctions.d.ts +3 -0
- package/src/nodes/Fulfillmenttools/GenericFunctions.js +90 -0
- package/src/nodes/Fulfillmenttools/GenericFunctions.js.map +1 -0
- package/src/nodes/Fulfillmenttools/descriptions/FacilityCarrierDescription.d.ts +3 -0
- package/src/nodes/Fulfillmenttools/descriptions/FacilityCarrierDescription.js +322 -0
- package/src/nodes/Fulfillmenttools/descriptions/FacilityCarrierDescription.js.map +1 -0
- package/src/nodes/Fulfillmenttools/descriptions/FacilityDescription.d.ts +3 -0
- package/src/nodes/Fulfillmenttools/descriptions/FacilityDescription.js +610 -0
- package/src/nodes/Fulfillmenttools/descriptions/FacilityDescription.js.map +1 -0
- package/src/nodes/Fulfillmenttools/descriptions/OrderDescription.d.ts +3 -0
- package/src/nodes/Fulfillmenttools/descriptions/OrderDescription.js +328 -0
- package/src/nodes/Fulfillmenttools/descriptions/OrderDescription.js.map +1 -0
- package/.eslintrc.json +0 -30
- package/jest.config.ts +0 -11
- package/project.json +0 -38
- package/src/api.d.ts +0 -26710
- package/src/credentials/FulfillmenttoolsApi.credentials.spec.ts +0 -101
- package/src/credentials/FulfillmenttoolsApi.credentials.ts +0 -166
- package/src/nodes/Fulfillmenttools/Fulfillmenttools.node.spec.ts +0 -1149
- package/src/nodes/Fulfillmenttools/Fulfillmenttools.node.ts +0 -390
- package/src/nodes/Fulfillmenttools/FulfillmenttoolsTrigger.node.spec.ts +0 -386
- package/src/nodes/Fulfillmenttools/FulfillmenttoolsTrigger.node.ts +0 -396
- package/src/nodes/Fulfillmenttools/GenericFunctions.spec.ts +0 -279
- package/src/nodes/Fulfillmenttools/GenericFunctions.ts +0 -156
- package/src/nodes/Fulfillmenttools/descriptions/FacilityCarrierDescription.ts +0 -335
- package/src/nodes/Fulfillmenttools/descriptions/FacilityDescription.ts +0 -621
- package/src/nodes/Fulfillmenttools/descriptions/OrderDescription.ts +0 -338
- package/tsconfig.json +0 -22
- package/tsconfig.lib.json +0 -10
- package/tsconfig.spec.json +0 -13
@@ -1,338 +0,0 @@
|
|
1
|
-
import type { INodeProperties } from 'n8n-workflow';
|
2
|
-
|
3
|
-
export const orderOperations: INodeProperties[] = [
|
4
|
-
{
|
5
|
-
displayName: 'Operation',
|
6
|
-
name: 'operation',
|
7
|
-
type: 'options',
|
8
|
-
noDataExpression: true,
|
9
|
-
displayOptions: {
|
10
|
-
show: {
|
11
|
-
resource: ['order'],
|
12
|
-
},
|
13
|
-
},
|
14
|
-
options: [
|
15
|
-
{
|
16
|
-
name: 'Create',
|
17
|
-
value: 'create',
|
18
|
-
description: 'Add a new order for future fulfillment',
|
19
|
-
action: 'Create order',
|
20
|
-
},
|
21
|
-
{
|
22
|
-
name: 'Get',
|
23
|
-
value: 'get',
|
24
|
-
description: 'Get a order with the given ID',
|
25
|
-
action: 'Get order',
|
26
|
-
},
|
27
|
-
{
|
28
|
-
name: 'List',
|
29
|
-
value: 'list',
|
30
|
-
description: 'Return all orders',
|
31
|
-
action: 'List orders',
|
32
|
-
},
|
33
|
-
],
|
34
|
-
default: 'create',
|
35
|
-
},
|
36
|
-
];
|
37
|
-
|
38
|
-
export const orderFields: INodeProperties[] = [
|
39
|
-
/* -------------------------------------------------------------------------- */
|
40
|
-
/* order:create */
|
41
|
-
/* -------------------------------------------------------------------------- */
|
42
|
-
{
|
43
|
-
displayName: 'Order',
|
44
|
-
name: 'order',
|
45
|
-
type: 'json',
|
46
|
-
required: true,
|
47
|
-
default: JSON.stringify(
|
48
|
-
{
|
49
|
-
orderDate: '2023-03-11T08:16:07.000Z',
|
50
|
-
consumer: {
|
51
|
-
email: 'ulf.steinke@ocff.de',
|
52
|
-
addresses: [
|
53
|
-
{
|
54
|
-
street: 'Schanzenstr.',
|
55
|
-
houseNumber: '30',
|
56
|
-
postalCode: '51063',
|
57
|
-
city: 'Köln',
|
58
|
-
country: 'DE',
|
59
|
-
phoneNumbers: [
|
60
|
-
{
|
61
|
-
value: '0177-555-6273',
|
62
|
-
label: 'private',
|
63
|
-
type: 'MOBILE',
|
64
|
-
},
|
65
|
-
],
|
66
|
-
additionalAddressInfo: '3. Etage',
|
67
|
-
salutation: 'Herr',
|
68
|
-
firstName: 'Ulf',
|
69
|
-
lastName: 'Steinke',
|
70
|
-
},
|
71
|
-
],
|
72
|
-
},
|
73
|
-
tenantOrderId: 'FC-4711-2361',
|
74
|
-
status: 'OPEN',
|
75
|
-
orderLineItems: [
|
76
|
-
{
|
77
|
-
article: {
|
78
|
-
tenantArticleId: '2020249',
|
79
|
-
title: 'T-Shirt "Am Sonnenhut"',
|
80
|
-
imageUrl:
|
81
|
-
'https://d358g9injarr4u.cloudfront.net/res/product_1000/240eadd8-8f50-479d-b0d8-74412bd4a9f9.jpg',
|
82
|
-
attributes: [
|
83
|
-
{
|
84
|
-
category: 'miscellaneous',
|
85
|
-
key: 'BRAND',
|
86
|
-
value: 'Adidas',
|
87
|
-
},
|
88
|
-
{
|
89
|
-
category: 'descriptive',
|
90
|
-
priority: 100,
|
91
|
-
key: '%%subtitle%%',
|
92
|
-
value: 'Neu!',
|
93
|
-
},
|
94
|
-
{
|
95
|
-
category: 'descriptive',
|
96
|
-
priority: 200,
|
97
|
-
key: 'Mitgliederpreis',
|
98
|
-
value: '17,96 EUR',
|
99
|
-
},
|
100
|
-
{
|
101
|
-
category: 'descriptive',
|
102
|
-
priority: 300,
|
103
|
-
key: 'Schnitt',
|
104
|
-
value: 'Frauen',
|
105
|
-
},
|
106
|
-
{
|
107
|
-
category: 'descriptive',
|
108
|
-
priority: 400,
|
109
|
-
key: 'Material',
|
110
|
-
value: '100% Baumwolle',
|
111
|
-
},
|
112
|
-
{
|
113
|
-
category: 'descriptive',
|
114
|
-
priority: 500,
|
115
|
-
key: 'Artikelnummer',
|
116
|
-
value: '2020249',
|
117
|
-
},
|
118
|
-
{
|
119
|
-
category: 'descriptive',
|
120
|
-
priority: 600,
|
121
|
-
key: 'Größe',
|
122
|
-
value: 'S',
|
123
|
-
},
|
124
|
-
{
|
125
|
-
category: 'descriptive',
|
126
|
-
priority: 700,
|
127
|
-
key: 'Beschreibung',
|
128
|
-
value:
|
129
|
-
'Rotes T-Shirt mit weißen Streifen an den Ärmeln, Blockdruck mit Schriftzug auf der Brust',
|
130
|
-
},
|
131
|
-
],
|
132
|
-
},
|
133
|
-
quantity: 1,
|
134
|
-
scannableCodes: ['2020249'],
|
135
|
-
},
|
136
|
-
{
|
137
|
-
article: {
|
138
|
-
tenantArticleId: '2010681',
|
139
|
-
title: 'Steppjacke "Mühlenbach"',
|
140
|
-
imageUrl:
|
141
|
-
'https://d358g9injarr4u.cloudfront.net/res/product_1000/9fcb7e42-7c84-4ab0-999a-869efe077e0a.jpg',
|
142
|
-
attributes: [
|
143
|
-
{
|
144
|
-
category: 'descriptive',
|
145
|
-
priority: 100,
|
146
|
-
key: '%%subtitle%%',
|
147
|
-
value: 'Neu!',
|
148
|
-
},
|
149
|
-
{
|
150
|
-
category: 'descriptive',
|
151
|
-
priority: 200,
|
152
|
-
key: 'Größe',
|
153
|
-
value: 'L',
|
154
|
-
},
|
155
|
-
{
|
156
|
-
category: 'descriptive',
|
157
|
-
priority: 300,
|
158
|
-
key: 'Oberstoff',
|
159
|
-
value: '100% Polyester',
|
160
|
-
},
|
161
|
-
{
|
162
|
-
category: 'descriptive',
|
163
|
-
priority: 400,
|
164
|
-
key: 'Futter',
|
165
|
-
value: '100% Polyester',
|
166
|
-
},
|
167
|
-
{
|
168
|
-
category: 'descriptive',
|
169
|
-
priority: 500,
|
170
|
-
key: 'Füllung',
|
171
|
-
value: '100% Polyester',
|
172
|
-
},
|
173
|
-
{
|
174
|
-
category: 'descriptive',
|
175
|
-
priority: 600,
|
176
|
-
key: 'Beschreibung',
|
177
|
-
value:
|
178
|
-
'Dreifarbige Steppjacke mit verstaubarer Kapuze, Zwei Eingriffstaschen, Gesticktes Logo auf der Brust',
|
179
|
-
},
|
180
|
-
{
|
181
|
-
category: 'descriptive',
|
182
|
-
priority: 700,
|
183
|
-
key: 'Artikelnummer',
|
184
|
-
value: '2010681',
|
185
|
-
},
|
186
|
-
],
|
187
|
-
},
|
188
|
-
quantity: 1,
|
189
|
-
scannableCodes: ['2010681'],
|
190
|
-
},
|
191
|
-
{
|
192
|
-
article: {
|
193
|
-
tenantArticleId: '5020064',
|
194
|
-
title: 'Wandtattoo Stadion',
|
195
|
-
imageUrl:
|
196
|
-
'https://d358g9injarr4u.cloudfront.net/res/product_1000/343f4569-66bb-4b0c-aa2b-20011a51b620.jpg',
|
197
|
-
attributes: [
|
198
|
-
{
|
199
|
-
category: 'descriptive',
|
200
|
-
priority: 100,
|
201
|
-
key: 'Maße',
|
202
|
-
value: '70 x 50 cm',
|
203
|
-
},
|
204
|
-
{
|
205
|
-
category: 'descriptive',
|
206
|
-
priority: 200,
|
207
|
-
key: 'Beschreibung',
|
208
|
-
value:
|
209
|
-
'Wandtattoo in Ziegelwand-Optik, Mit tollem Blick aufs Stadion',
|
210
|
-
},
|
211
|
-
{
|
212
|
-
category: 'descriptive',
|
213
|
-
priority: 300,
|
214
|
-
key: 'Anwendung',
|
215
|
-
value:
|
216
|
-
'Für die Beklebung sollte die Fläche staub- und fetfrei sein. Bringen Sie den Aufkleber in Position und reiben Sie diese gleichmäßig mit der flachen Hand an den Untergrund, um sie zu fixieren. Jede Stelle nochmals gest andrücken. Fertig! Für auftretende Schäden nach der Verklebung auf dem Untergrund etc. ist eine Haftung ausgeschlossen.',
|
217
|
-
},
|
218
|
-
{
|
219
|
-
category: 'descriptive',
|
220
|
-
priority: 400,
|
221
|
-
key: 'Artikelnummer',
|
222
|
-
value: '5020064',
|
223
|
-
},
|
224
|
-
],
|
225
|
-
},
|
226
|
-
quantity: 2,
|
227
|
-
scannableCodes: ['5020064'],
|
228
|
-
},
|
229
|
-
],
|
230
|
-
paymentInfo: {
|
231
|
-
currency: 'EUR',
|
232
|
-
},
|
233
|
-
},
|
234
|
-
undefined,
|
235
|
-
2,
|
236
|
-
),
|
237
|
-
displayOptions: {
|
238
|
-
show: {
|
239
|
-
resource: ['order'],
|
240
|
-
operation: ['create'],
|
241
|
-
},
|
242
|
-
},
|
243
|
-
description: 'Order object supplied by your shop instance',
|
244
|
-
},
|
245
|
-
/* -------------------------------------------------------------------------- */
|
246
|
-
/* order:get */
|
247
|
-
/* -------------------------------------------------------------------------- */
|
248
|
-
{
|
249
|
-
displayName: 'Order ID',
|
250
|
-
name: 'orderId',
|
251
|
-
type: 'string',
|
252
|
-
required: true,
|
253
|
-
default: '',
|
254
|
-
displayOptions: {
|
255
|
-
show: {
|
256
|
-
resource: ['order'],
|
257
|
-
operation: ['get'],
|
258
|
-
},
|
259
|
-
},
|
260
|
-
description: 'ID of order you want to get',
|
261
|
-
},
|
262
|
-
/* -------------------------------------------------------------------------- */
|
263
|
-
/* order:list */
|
264
|
-
/* -------------------------------------------------------------------------- */
|
265
|
-
{
|
266
|
-
displayName: 'Return All',
|
267
|
-
name: 'returnAll',
|
268
|
-
type: 'boolean',
|
269
|
-
displayOptions: {
|
270
|
-
show: {
|
271
|
-
resource: ['order'],
|
272
|
-
operation: ['list'],
|
273
|
-
},
|
274
|
-
},
|
275
|
-
default: false,
|
276
|
-
description: 'Whether to return all results or only up to a given limit',
|
277
|
-
},
|
278
|
-
{
|
279
|
-
displayName: 'Limit',
|
280
|
-
name: 'limit',
|
281
|
-
type: 'number',
|
282
|
-
displayOptions: {
|
283
|
-
show: {
|
284
|
-
resource: ['order'],
|
285
|
-
operation: ['list'],
|
286
|
-
returnAll: [false],
|
287
|
-
},
|
288
|
-
},
|
289
|
-
typeOptions: {
|
290
|
-
minValue: 1,
|
291
|
-
},
|
292
|
-
default: 50,
|
293
|
-
description: 'Max number of results to return',
|
294
|
-
},
|
295
|
-
{
|
296
|
-
displayName: 'Start After ID',
|
297
|
-
name: 'startAfterId',
|
298
|
-
type: 'string',
|
299
|
-
displayOptions: {
|
300
|
-
show: {
|
301
|
-
resource: ['order'],
|
302
|
-
operation: ['list'],
|
303
|
-
returnAll: [false],
|
304
|
-
},
|
305
|
-
},
|
306
|
-
default: '',
|
307
|
-
description: 'All results after given ID will be returned',
|
308
|
-
},
|
309
|
-
{
|
310
|
-
displayName: 'Size',
|
311
|
-
name: 'size',
|
312
|
-
type: 'number',
|
313
|
-
displayOptions: {
|
314
|
-
show: {
|
315
|
-
resource: ['order'],
|
316
|
-
operation: ['list'],
|
317
|
-
},
|
318
|
-
},
|
319
|
-
typeOptions: {
|
320
|
-
minValue: 1,
|
321
|
-
},
|
322
|
-
default: 25,
|
323
|
-
description: 'Number of results to show',
|
324
|
-
},
|
325
|
-
{
|
326
|
-
displayName: 'Tenant Order ID',
|
327
|
-
name: 'tenantOrderId',
|
328
|
-
type: 'string',
|
329
|
-
displayOptions: {
|
330
|
-
show: {
|
331
|
-
resource: ['order'],
|
332
|
-
operation: ['list'],
|
333
|
-
},
|
334
|
-
},
|
335
|
-
default: '',
|
336
|
-
description: 'Allows you to filter results by tenant order ID',
|
337
|
-
},
|
338
|
-
];
|
package/tsconfig.json
DELETED
@@ -1,22 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"extends": "../../tsconfig.base.json",
|
3
|
-
"compilerOptions": {
|
4
|
-
"module": "commonjs",
|
5
|
-
"forceConsistentCasingInFileNames": true,
|
6
|
-
"strict": true,
|
7
|
-
"noImplicitOverride": true,
|
8
|
-
"noPropertyAccessFromIndexSignature": true,
|
9
|
-
"noImplicitReturns": true,
|
10
|
-
"noFallthroughCasesInSwitch": true
|
11
|
-
},
|
12
|
-
"files": [],
|
13
|
-
"include": [],
|
14
|
-
"references": [
|
15
|
-
{
|
16
|
-
"path": "./tsconfig.lib.json"
|
17
|
-
},
|
18
|
-
{
|
19
|
-
"path": "./tsconfig.spec.json"
|
20
|
-
}
|
21
|
-
]
|
22
|
-
}
|
package/tsconfig.lib.json
DELETED
package/tsconfig.spec.json
DELETED