@skriptfabrik/n8n-nodes-fulfillmenttools 0.1.2 → 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.
Files changed (42) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/package.json +5 -4
  3. package/src/credentials/FulfillmenttoolsApi.credentials.d.ts +13 -0
  4. package/src/credentials/FulfillmenttoolsApi.credentials.js +126 -0
  5. package/src/credentials/FulfillmenttoolsApi.credentials.js.map +1 -0
  6. package/src/nodes/Fulfillmenttools/Fulfillmenttools.node.d.ts +5 -0
  7. package/src/nodes/Fulfillmenttools/Fulfillmenttools.node.js +174 -0
  8. package/src/nodes/Fulfillmenttools/Fulfillmenttools.node.js.map +1 -0
  9. package/src/nodes/Fulfillmenttools/FulfillmenttoolsTrigger.node.d.ts +12 -0
  10. package/src/nodes/Fulfillmenttools/FulfillmenttoolsTrigger.node.js +330 -0
  11. package/src/nodes/Fulfillmenttools/FulfillmenttoolsTrigger.node.js.map +1 -0
  12. package/src/nodes/Fulfillmenttools/GenericFunctions.d.ts +3 -0
  13. package/src/nodes/Fulfillmenttools/GenericFunctions.js +90 -0
  14. package/src/nodes/Fulfillmenttools/GenericFunctions.js.map +1 -0
  15. package/src/nodes/Fulfillmenttools/descriptions/FacilityCarrierDescription.d.ts +3 -0
  16. package/src/nodes/Fulfillmenttools/descriptions/FacilityCarrierDescription.js +322 -0
  17. package/src/nodes/Fulfillmenttools/descriptions/FacilityCarrierDescription.js.map +1 -0
  18. package/src/nodes/Fulfillmenttools/descriptions/FacilityDescription.d.ts +3 -0
  19. package/src/nodes/Fulfillmenttools/descriptions/FacilityDescription.js +610 -0
  20. package/src/nodes/Fulfillmenttools/descriptions/FacilityDescription.js.map +1 -0
  21. package/src/nodes/Fulfillmenttools/descriptions/OrderDescription.d.ts +3 -0
  22. package/src/nodes/Fulfillmenttools/descriptions/OrderDescription.js +328 -0
  23. package/src/nodes/Fulfillmenttools/descriptions/OrderDescription.js.map +1 -0
  24. package/.eslintignore +0 -1
  25. package/.eslintrc.json +0 -30
  26. package/jest.config.ts +0 -11
  27. package/project.json +0 -37
  28. package/src/api.d.ts +0 -37084
  29. package/src/credentials/FulfillmenttoolsApi.credentials.spec.ts +0 -101
  30. package/src/credentials/FulfillmenttoolsApi.credentials.ts +0 -166
  31. package/src/nodes/Fulfillmenttools/Fulfillmenttools.node.spec.ts +0 -1149
  32. package/src/nodes/Fulfillmenttools/Fulfillmenttools.node.ts +0 -390
  33. package/src/nodes/Fulfillmenttools/FulfillmenttoolsTrigger.node.spec.ts +0 -386
  34. package/src/nodes/Fulfillmenttools/FulfillmenttoolsTrigger.node.ts +0 -396
  35. package/src/nodes/Fulfillmenttools/GenericFunctions.spec.ts +0 -279
  36. package/src/nodes/Fulfillmenttools/GenericFunctions.ts +0 -156
  37. package/src/nodes/Fulfillmenttools/descriptions/FacilityCarrierDescription.ts +0 -335
  38. package/src/nodes/Fulfillmenttools/descriptions/FacilityDescription.ts +0 -621
  39. package/src/nodes/Fulfillmenttools/descriptions/OrderDescription.ts +0 -338
  40. package/tsconfig.json +0 -22
  41. package/tsconfig.lib.json +0 -10
  42. package/tsconfig.spec.json +0 -13
@@ -1,621 +0,0 @@
1
- import type { INodeProperties } from 'n8n-workflow';
2
-
3
- export const facilityOperations: INodeProperties[] = [
4
- {
5
- displayName: 'Operation',
6
- name: 'operation',
7
- type: 'options',
8
- noDataExpression: true,
9
- displayOptions: {
10
- show: {
11
- resource: ['facility'],
12
- },
13
- },
14
- options: [
15
- {
16
- name: 'Create',
17
- value: 'create',
18
- description: 'Add a new facility',
19
- action: 'Create facility',
20
- },
21
- {
22
- name: 'Delete',
23
- value: 'delete',
24
- description: 'Deletes a facility with the given ID',
25
- action: 'Delete facility',
26
- },
27
- {
28
- name: 'Get',
29
- value: 'get',
30
- description: 'Get a facility with the given ID',
31
- action: 'Get facility',
32
- },
33
- {
34
- name: 'List',
35
- value: 'list',
36
- description: 'Return all facilities',
37
- action: 'List facilities',
38
- },
39
- {
40
- name: 'Patch',
41
- value: 'patch',
42
- description: 'Patches a facility with the given ID',
43
- action: 'Patch facility',
44
- },
45
- ],
46
- default: 'create',
47
- },
48
- ];
49
-
50
- export const facilityFields: INodeProperties[] = [
51
- /* -------------------------------------------------------------------------- */
52
- /* facility:create */
53
- /* -------------------------------------------------------------------------- */
54
- {
55
- displayName: 'Facility',
56
- name: 'facility',
57
- type: 'json',
58
- required: true,
59
- default: JSON.stringify(
60
- {
61
- address: {
62
- additionalAddressInfo: 'to care of: Mrs. Müller',
63
- city: 'Langenfeld',
64
- country: 'DE',
65
- province: 'NRW',
66
- customAttributes: {},
67
- houseNumber: '42a',
68
- phoneNumbers: [
69
- {
70
- customAttributes: {},
71
- label: 'string',
72
- type: 'MOBILE',
73
- value: 'string',
74
- },
75
- ],
76
- postalCode: '40764',
77
- street: 'Hauptstr.',
78
- companyName: 'Speedy Boxales Ltd.',
79
- emailAddresses: [
80
- {
81
- recipient:
82
- "'Mailinglist reaching all the employees', 'Marc Fulton, Manager', etc.",
83
- value: 'string',
84
- },
85
- ],
86
- },
87
- closingDays: [
88
- {
89
- date: '2020-02-03T09:45:51.525Z',
90
- reason: 'string',
91
- recurrence: 'YEARLY',
92
- },
93
- ],
94
- contact: {
95
- customAttributes: {},
96
- firstName: 'string',
97
- lastName: 'string',
98
- roleDescription: 'Manager, Supervisor, Teamleader, etc.',
99
- },
100
- customAttributes: {},
101
- fulfillmentProcessBuffer: 240,
102
- locationType: 'STORE',
103
- name: 'Hamburg NW2',
104
- capacityPlanningTimeframe: 1,
105
- pickingTimes: {
106
- friday: [
107
- {
108
- end: {
109
- hour: 23,
110
- minute: 59,
111
- },
112
- start: {
113
- hour: 23,
114
- minute: 59,
115
- },
116
- capacity: 0,
117
- },
118
- ],
119
- monday: [
120
- {
121
- end: {
122
- hour: 23,
123
- minute: 59,
124
- },
125
- start: {
126
- hour: 23,
127
- minute: 59,
128
- },
129
- capacity: 0,
130
- },
131
- ],
132
- saturday: [
133
- {
134
- end: {
135
- hour: 23,
136
- minute: 59,
137
- },
138
- start: {
139
- hour: 23,
140
- minute: 59,
141
- },
142
- capacity: 0,
143
- },
144
- ],
145
- sunday: [
146
- {
147
- end: {
148
- hour: 23,
149
- minute: 59,
150
- },
151
- start: {
152
- hour: 23,
153
- minute: 59,
154
- },
155
- capacity: 0,
156
- },
157
- ],
158
- thursday: [
159
- {
160
- end: {
161
- hour: 23,
162
- minute: 59,
163
- },
164
- start: {
165
- hour: 23,
166
- minute: 59,
167
- },
168
- capacity: 0,
169
- },
170
- ],
171
- tuesday: [
172
- {
173
- end: {
174
- hour: 23,
175
- minute: 59,
176
- },
177
- start: {
178
- hour: 23,
179
- minute: 59,
180
- },
181
- capacity: 0,
182
- },
183
- ],
184
- wednesday: [
185
- {
186
- end: {
187
- hour: 23,
188
- minute: 59,
189
- },
190
- start: {
191
- hour: 23,
192
- minute: 59,
193
- },
194
- capacity: 0,
195
- },
196
- ],
197
- },
198
- pickingMethods: ['SINGLE_ORDER'],
199
- scanningRule: {
200
- values: [
201
- {
202
- priority: 0,
203
- scanningRuleType: 'ARTICLE',
204
- },
205
- ],
206
- },
207
- services: [
208
- {
209
- type: 'SHIP_FROM_STORE',
210
- },
211
- ],
212
- status: 'ONLINE',
213
- tenantFacilityId: 'K12345',
214
- capacityEnabled: false,
215
- tags: [
216
- {
217
- value: 'string',
218
- id: 'string',
219
- },
220
- ],
221
- },
222
- undefined,
223
- 2,
224
- ),
225
- displayOptions: {
226
- show: {
227
- resource: ['facility'],
228
- operation: ['create'],
229
- },
230
- },
231
- description: 'Representation that describes the facility',
232
- },
233
- /* -------------------------------------------------------------------------- */
234
- /* facility:delete */
235
- /* -------------------------------------------------------------------------- */
236
- {
237
- displayName: 'Facility ID',
238
- name: 'facilityId',
239
- type: 'string',
240
- required: true,
241
- default: '',
242
- displayOptions: {
243
- show: {
244
- resource: ['facility'],
245
- operation: ['delete'],
246
- },
247
- },
248
- description: 'ID of facility you want to delete',
249
- },
250
- {
251
- displayName: 'Force Deletion',
252
- name: 'forceDeletion',
253
- type: 'boolean',
254
- default: false,
255
- displayOptions: {
256
- show: {
257
- resource: ['facility'],
258
- operation: ['delete'],
259
- },
260
- },
261
- description:
262
- 'Whether to force cascading deletion without pre condition check',
263
- },
264
- /* -------------------------------------------------------------------------- */
265
- /* facility:get */
266
- /* -------------------------------------------------------------------------- */
267
- {
268
- displayName: 'Facility ID',
269
- name: 'facilityId',
270
- type: 'string',
271
- required: true,
272
- default: '',
273
- displayOptions: {
274
- show: {
275
- resource: ['facility'],
276
- operation: ['get'],
277
- },
278
- },
279
- description: 'ID of facility you want to get',
280
- },
281
- /* -------------------------------------------------------------------------- */
282
- /* facility:list */
283
- /* -------------------------------------------------------------------------- */
284
- {
285
- displayName: 'Return All',
286
- name: 'returnAll',
287
- type: 'boolean',
288
- displayOptions: {
289
- show: {
290
- resource: ['facility'],
291
- operation: ['list'],
292
- },
293
- },
294
- default: false,
295
- description: 'Whether to return all results or only up to a given limit',
296
- },
297
- {
298
- displayName: 'Limit',
299
- name: 'limit',
300
- type: 'number',
301
- displayOptions: {
302
- show: {
303
- resource: ['facility'],
304
- operation: ['list'],
305
- returnAll: [false],
306
- },
307
- },
308
- typeOptions: {
309
- minValue: 1,
310
- },
311
- default: 50,
312
- description: 'Max number of results to return',
313
- },
314
- {
315
- displayName: 'Start After ID',
316
- name: 'startAfterId',
317
- type: 'string',
318
- displayOptions: {
319
- show: {
320
- resource: ['facility'],
321
- operation: ['list'],
322
- returnAll: [false],
323
- },
324
- },
325
- default: '',
326
- description: 'All results after given ID will be returned',
327
- },
328
- {
329
- displayName: 'Size',
330
- name: 'size',
331
- type: 'number',
332
- displayOptions: {
333
- show: {
334
- resource: ['facility'],
335
- operation: ['list'],
336
- },
337
- },
338
- typeOptions: {
339
- minValue: 1,
340
- },
341
- default: 25,
342
- description: 'Number of results to show',
343
- },
344
- {
345
- displayName: 'Status',
346
- name: 'status',
347
- type: 'options',
348
- options: [
349
- {
350
- name: '--',
351
- value: '',
352
- },
353
- {
354
- name: 'Online',
355
- value: 'ONLINE',
356
- },
357
- {
358
- name: 'Offline',
359
- value: 'OFFLINE',
360
- },
361
- {
362
- name: 'Suspended',
363
- value: 'SUSPENDED',
364
- },
365
- ],
366
- displayOptions: {
367
- show: {
368
- resource: ['facility'],
369
- operation: ['list'],
370
- },
371
- },
372
- default: '',
373
- description:
374
- 'Reference to the status you want to get the corresponding facilities',
375
- },
376
- {
377
- displayName: 'Tenant Facility ID',
378
- name: 'tenantFacilityId',
379
- type: 'string',
380
- displayOptions: {
381
- show: {
382
- resource: ['facility'],
383
- operation: ['list'],
384
- },
385
- },
386
- default: '',
387
- description: 'Allows you to filter results by tenant facility ID',
388
- },
389
- {
390
- displayName: 'Order By',
391
- name: 'orderBy',
392
- type: 'options',
393
- options: [
394
- {
395
- name: '--',
396
- value: '',
397
- },
398
- {
399
- name: 'Name',
400
- value: 'NAME',
401
- },
402
- {
403
- name: 'Created',
404
- value: 'CREATED',
405
- },
406
- {
407
- name: 'Postal Code',
408
- value: 'POSTAL_CODE_ASC',
409
- },
410
- ],
411
- displayOptions: {
412
- show: {
413
- resource: ['facility'],
414
- operation: ['list'],
415
- },
416
- },
417
- default: '',
418
- description: 'Query facilities order by',
419
- },
420
- /* -------------------------------------------------------------------------- */
421
- /* facility:patch */
422
- /* -------------------------------------------------------------------------- */
423
- {
424
- displayName: 'Facility ID',
425
- name: 'facilityId',
426
- type: 'string',
427
- required: true,
428
- default: '',
429
- displayOptions: {
430
- show: {
431
- resource: ['facility'],
432
- operation: ['patch'],
433
- },
434
- },
435
- description: 'ID of facility you want to patch',
436
- },
437
- {
438
- displayName: 'Facility',
439
- name: 'facility',
440
- type: 'json',
441
- required: true,
442
- default: JSON.stringify(
443
- {
444
- actions: [
445
- {
446
- action: '<Use the corresponding action, see documentation>',
447
- address: {
448
- additionalAddressInfo: 'to care of: Mrs. Müller',
449
- city: 'Langenfeld',
450
- country: 'DE',
451
- customAttributes: {},
452
- houseNumber: '42a',
453
- phoneNumbers: [
454
- {
455
- customAttributes: {},
456
- label: 'string',
457
- type: 'MOBILE',
458
- value: 'string',
459
- },
460
- ],
461
- postalCode: '40764',
462
- street: 'Hauptstr.',
463
- companyName: 'Speedy Boxales Ltd.',
464
- emailAddresses: [
465
- {
466
- recipient:
467
- "'Mailinglist reaching all the employees', 'Marc Fulton, Manager', etc.",
468
- value: 'user@example.com',
469
- },
470
- ],
471
- },
472
- closingDays: [
473
- {
474
- date: '2020-02-03T09:45:51.525Z',
475
- reason: 'string',
476
- recurrence: 'YEARLY',
477
- },
478
- ],
479
- contact: {
480
- customAttributes: {},
481
- firstName: 'string',
482
- lastName: 'string',
483
- roleDescription: 'Manager, Supervisor, Teamleader, etc.',
484
- },
485
- customAttributes: {},
486
- fulfillmentProcessBuffer: 240,
487
- locationType: 'STORE',
488
- name: 'Hamburg NW2',
489
- capacityPlanningTimeframe: 1,
490
- pickingTimes: {
491
- friday: [
492
- {
493
- end: {
494
- hour: 23,
495
- minute: 59,
496
- },
497
- start: {
498
- hour: 23,
499
- minute: 59,
500
- },
501
- capacity: 0,
502
- },
503
- ],
504
- monday: [
505
- {
506
- end: {
507
- hour: 23,
508
- minute: 59,
509
- },
510
- start: {
511
- hour: 23,
512
- minute: 59,
513
- },
514
- capacity: 0,
515
- },
516
- ],
517
- saturday: [
518
- {
519
- end: {
520
- hour: 23,
521
- minute: 59,
522
- },
523
- start: {
524
- hour: 23,
525
- minute: 59,
526
- },
527
- capacity: 0,
528
- },
529
- ],
530
- sunday: [
531
- {
532
- end: {
533
- hour: 23,
534
- minute: 59,
535
- },
536
- start: {
537
- hour: 23,
538
- minute: 59,
539
- },
540
- capacity: 0,
541
- },
542
- ],
543
- thursday: [
544
- {
545
- end: {
546
- hour: 23,
547
- minute: 59,
548
- },
549
- start: {
550
- hour: 23,
551
- minute: 59,
552
- },
553
- capacity: 0,
554
- },
555
- ],
556
- tuesday: [
557
- {
558
- end: {
559
- hour: 23,
560
- minute: 59,
561
- },
562
- start: {
563
- hour: 23,
564
- minute: 59,
565
- },
566
- capacity: 0,
567
- },
568
- ],
569
- wednesday: [
570
- {
571
- end: {
572
- hour: 23,
573
- minute: 59,
574
- },
575
- start: {
576
- hour: 23,
577
- minute: 59,
578
- },
579
- capacity: 0,
580
- },
581
- ],
582
- },
583
- pickingMethods: ['SINGLE_ORDER'],
584
- scanningRule: {
585
- values: [
586
- {
587
- priority: 0,
588
- scanningRuleType: 'ARTICLE',
589
- },
590
- ],
591
- },
592
- services: [
593
- {
594
- type: 'SHIP_FROM_STORE',
595
- },
596
- ],
597
- status: 'ONLINE',
598
- tenantFacilityId: 'K12345',
599
- capacityEnabled: true,
600
- tags: [
601
- {
602
- value: 'string',
603
- id: 'string',
604
- },
605
- ],
606
- },
607
- ],
608
- version: 42,
609
- },
610
- undefined,
611
- 2,
612
- ),
613
- displayOptions: {
614
- show: {
615
- resource: ['facility'],
616
- operation: ['patch'],
617
- },
618
- },
619
- description: 'Patch set',
620
- },
621
- ];