n8n-nodes-synca 1.0.26 → 1.0.27
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/dist/nodes/RunERP/SyncaRunERP.node.d.ts +10 -0
- package/dist/nodes/RunERP/SyncaRunERP.node.js +208 -0
- package/dist/nodes/RunERP/SyncaRunERP.node.js.map +1 -0
- package/dist/nodes/RunERP/constants/run-erp-cancel-shipment.constant.d.ts +5 -0
- package/dist/nodes/RunERP/constants/run-erp-cancel-shipment.constant.js +31 -0
- package/dist/nodes/RunERP/constants/run-erp-cancel-shipment.constant.js.map +1 -0
- package/dist/nodes/RunERP/constants/run-erp-create-shipment.constant.d.ts +5 -0
- package/dist/nodes/RunERP/constants/run-erp-create-shipment.constant.js +450 -0
- package/dist/nodes/RunERP/constants/run-erp-create-shipment.constant.js.map +1 -0
- package/dist/nodes/RunERP/constants/run-erp-get-pickup-points.constant.d.ts +5 -0
- package/dist/nodes/RunERP/constants/run-erp-get-pickup-points.constant.js +89 -0
- package/dist/nodes/RunERP/constants/run-erp-get-pickup-points.constant.js.map +1 -0
- package/dist/nodes/RunERP/constants/run-erp-get-tracking.constant.d.ts +5 -0
- package/dist/nodes/RunERP/constants/run-erp-get-tracking.constant.js +80 -0
- package/dist/nodes/RunERP/constants/run-erp-get-tracking.constant.js.map +1 -0
- package/dist/nodes/RunERP/constants/run-erp-print-label.constant.d.ts +5 -0
- package/dist/nodes/RunERP/constants/run-erp-print-label.constant.js +48 -0
- package/dist/nodes/RunERP/constants/run-erp-print-label.constant.js.map +1 -0
- package/dist/nodes/RunERP/icon.svg +1 -0
- package/dist/package.json +3 -2
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +3 -2
|
@@ -0,0 +1,450 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RunErpCreateShipment = void 0;
|
|
4
|
+
exports.RunErpCreateShipment = {
|
|
5
|
+
declare: [
|
|
6
|
+
{
|
|
7
|
+
displayName: 'Shipment Type',
|
|
8
|
+
name: 'type',
|
|
9
|
+
type: 'options',
|
|
10
|
+
required: true,
|
|
11
|
+
default: 'delivery',
|
|
12
|
+
options: [
|
|
13
|
+
{ name: 'Delivery (מסירה)', value: 'delivery' },
|
|
14
|
+
{ name: 'Return (החזרה)', value: 'return' },
|
|
15
|
+
],
|
|
16
|
+
description: 'Type of shipment - delivery or return',
|
|
17
|
+
displayOptions: { show: { resource: ['shipment'], operation: ['create_shipment'] } },
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
displayName: 'Shipment Destination Type',
|
|
21
|
+
name: 'destination_type',
|
|
22
|
+
type: 'options',
|
|
23
|
+
required: true,
|
|
24
|
+
default: 'customer_address',
|
|
25
|
+
options: [
|
|
26
|
+
{ name: 'Customer Address (כתובת לקוח)', value: 'customer_address' },
|
|
27
|
+
{ name: 'Pickup Point (נקודת איסוף)', value: 'pickup_point' },
|
|
28
|
+
],
|
|
29
|
+
description: 'Type of shipment destination - customer address or pickup point',
|
|
30
|
+
displayOptions: { show: { resource: ['shipment'], operation: ['create_shipment'] } },
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
displayName: 'Consignee Name',
|
|
34
|
+
name: 'consignee_name',
|
|
35
|
+
type: 'string',
|
|
36
|
+
required: true,
|
|
37
|
+
default: '',
|
|
38
|
+
description: 'Name of the person receiving the shipment (P11)',
|
|
39
|
+
displayOptions: { show: { resource: ['shipment'], operation: ['create_shipment'] } },
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
displayName: 'City',
|
|
43
|
+
name: 'city',
|
|
44
|
+
type: 'string',
|
|
45
|
+
required: true,
|
|
46
|
+
default: '',
|
|
47
|
+
description: 'City/settlement name (P13)',
|
|
48
|
+
displayOptions: { show: { resource: ['shipment'], operation: ['create_shipment'] } },
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
displayName: 'Street',
|
|
52
|
+
name: 'street',
|
|
53
|
+
type: 'string',
|
|
54
|
+
required: true,
|
|
55
|
+
default: '',
|
|
56
|
+
description: 'Street name - can include building number (P15)',
|
|
57
|
+
displayOptions: { show: { resource: ['shipment'], operation: ['create_shipment'] } },
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
displayName: 'Phone',
|
|
61
|
+
name: 'phone',
|
|
62
|
+
type: 'string',
|
|
63
|
+
required: true,
|
|
64
|
+
default: '',
|
|
65
|
+
description: 'Primary phone number - cellular (P20)',
|
|
66
|
+
displayOptions: { show: { resource: ['shipment'], operation: ['create_shipment'] } },
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
displayName: 'Building Number',
|
|
70
|
+
name: 'building_no',
|
|
71
|
+
type: 'string',
|
|
72
|
+
default: '',
|
|
73
|
+
description: 'Building number (P16)',
|
|
74
|
+
displayOptions: { show: { resource: ['shipment'], operation: ['create_shipment'], destination_type: ['customer_address'] } },
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
displayName: 'Entrance',
|
|
78
|
+
name: 'entrance',
|
|
79
|
+
type: 'string',
|
|
80
|
+
default: '',
|
|
81
|
+
description: 'Entrance number (P17)',
|
|
82
|
+
displayOptions: { show: { resource: ['shipment'], operation: ['create_shipment'], destination_type: ['customer_address'] } },
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
displayName: 'Floor',
|
|
86
|
+
name: 'floor',
|
|
87
|
+
type: 'string',
|
|
88
|
+
default: '',
|
|
89
|
+
description: 'Floor number (P18)',
|
|
90
|
+
displayOptions: { show: { resource: ['shipment'], operation: ['create_shipment'], destination_type: ['customer_address'] } },
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
displayName: 'Apartment',
|
|
94
|
+
name: 'apartment',
|
|
95
|
+
type: 'string',
|
|
96
|
+
default: '',
|
|
97
|
+
description: 'Apartment number (P19)',
|
|
98
|
+
displayOptions: { show: { resource: ['shipment'], operation: ['create_shipment'], destination_type: ['customer_address'] } },
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
displayName: 'Address Details',
|
|
102
|
+
name: 'addressDetails',
|
|
103
|
+
type: 'collection',
|
|
104
|
+
placeholder: 'Add Address Detail',
|
|
105
|
+
default: {},
|
|
106
|
+
displayOptions: { show: { resource: ['shipment'], operation: ['create_shipment'], destination_type: ['customer_address'] } },
|
|
107
|
+
options: [
|
|
108
|
+
{
|
|
109
|
+
displayName: 'City Code',
|
|
110
|
+
name: 'city_code',
|
|
111
|
+
type: 'string',
|
|
112
|
+
default: '',
|
|
113
|
+
description: 'City code from gov.il database (P12)',
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
displayName: 'Street Code',
|
|
117
|
+
name: 'street_code',
|
|
118
|
+
type: 'string',
|
|
119
|
+
default: '',
|
|
120
|
+
description: 'Street code from gov.il database (P14)',
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
displayName: 'Address Remarks',
|
|
124
|
+
name: 'address_remarks',
|
|
125
|
+
type: 'string',
|
|
126
|
+
default: '',
|
|
127
|
+
description: 'Additional address remarks (P24)',
|
|
128
|
+
},
|
|
129
|
+
],
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
displayName: 'Contact & Reference',
|
|
133
|
+
name: 'contactReference',
|
|
134
|
+
type: 'collection',
|
|
135
|
+
placeholder: 'Add Contact/Reference',
|
|
136
|
+
default: {},
|
|
137
|
+
displayOptions: { show: { resource: ['shipment'], operation: ['create_shipment'] } },
|
|
138
|
+
options: [
|
|
139
|
+
{
|
|
140
|
+
displayName: 'Additional Phone',
|
|
141
|
+
name: 'additional_phone',
|
|
142
|
+
type: 'string',
|
|
143
|
+
default: '',
|
|
144
|
+
description: 'Additional phone number (P21)',
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
displayName: 'Email',
|
|
148
|
+
name: 'email',
|
|
149
|
+
type: 'string',
|
|
150
|
+
default: '',
|
|
151
|
+
description: 'Consignee email address (P40)',
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
displayName: 'Ordered By',
|
|
155
|
+
name: 'ordered_by',
|
|
156
|
+
type: 'string',
|
|
157
|
+
default: '',
|
|
158
|
+
description: 'Name of person who ordered (P5)',
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
displayName: 'Reference Number',
|
|
162
|
+
name: 'reference_number',
|
|
163
|
+
type: 'string',
|
|
164
|
+
default: '',
|
|
165
|
+
description: 'Your reference number for the shipment (P22). Can include multiple references separated by ":"',
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
displayName: 'Reference Number 2',
|
|
169
|
+
name: 'reference_number_2',
|
|
170
|
+
type: 'string',
|
|
171
|
+
default: '',
|
|
172
|
+
description: 'Second reference number (P26)',
|
|
173
|
+
},
|
|
174
|
+
],
|
|
175
|
+
},
|
|
176
|
+
{
|
|
177
|
+
displayName: 'Package Details',
|
|
178
|
+
name: 'packageDetails',
|
|
179
|
+
type: 'collection',
|
|
180
|
+
placeholder: 'Add Package Detail',
|
|
181
|
+
default: {},
|
|
182
|
+
displayOptions: { show: { resource: ['shipment'], operation: ['create_shipment'] } },
|
|
183
|
+
options: [
|
|
184
|
+
{
|
|
185
|
+
displayName: 'Number of Packages',
|
|
186
|
+
name: 'package_count',
|
|
187
|
+
type: 'number',
|
|
188
|
+
default: 1,
|
|
189
|
+
typeOptions: { minValue: 1 },
|
|
190
|
+
description: 'Number of packages to be delivered (P23). Mandatory if more than 1 package.',
|
|
191
|
+
},
|
|
192
|
+
{
|
|
193
|
+
displayName: 'Shipment Remarks',
|
|
194
|
+
name: 'shipment_remarks',
|
|
195
|
+
type: 'string',
|
|
196
|
+
default: '',
|
|
197
|
+
description: 'Additional shipment remarks (P25)',
|
|
198
|
+
},
|
|
199
|
+
],
|
|
200
|
+
},
|
|
201
|
+
{
|
|
202
|
+
displayName: 'Scheduling',
|
|
203
|
+
name: 'scheduling',
|
|
204
|
+
type: 'collection',
|
|
205
|
+
placeholder: 'Add Scheduling Option',
|
|
206
|
+
default: {},
|
|
207
|
+
displayOptions: { show: { resource: ['shipment'], operation: ['create_shipment'] } },
|
|
208
|
+
options: [
|
|
209
|
+
{
|
|
210
|
+
displayName: 'Pickup Date',
|
|
211
|
+
name: 'pickup_date',
|
|
212
|
+
type: 'string',
|
|
213
|
+
default: '',
|
|
214
|
+
description: 'Specific pickup date in DD/MM/YYYY format (P27)',
|
|
215
|
+
},
|
|
216
|
+
{
|
|
217
|
+
displayName: 'Pickup Time',
|
|
218
|
+
name: 'pickup_time',
|
|
219
|
+
type: 'string',
|
|
220
|
+
default: '',
|
|
221
|
+
description: 'Specific pickup time in HH:MM format (P28)',
|
|
222
|
+
},
|
|
223
|
+
{
|
|
224
|
+
displayName: 'Preparation Date',
|
|
225
|
+
name: 'preparation_date',
|
|
226
|
+
type: 'string',
|
|
227
|
+
default: '',
|
|
228
|
+
description: 'Parcel preparation date DD/MM/YYYY - for warehouse assembly (P41)',
|
|
229
|
+
},
|
|
230
|
+
{
|
|
231
|
+
displayName: 'Preparation Time',
|
|
232
|
+
name: 'preparation_time',
|
|
233
|
+
type: 'string',
|
|
234
|
+
default: '',
|
|
235
|
+
description: 'Parcel preparation time HH:MM - for warehouse assembly (P42)',
|
|
236
|
+
},
|
|
237
|
+
],
|
|
238
|
+
},
|
|
239
|
+
{
|
|
240
|
+
displayName: 'Pickup Points',
|
|
241
|
+
name: 'pickupPoints',
|
|
242
|
+
type: 'collection',
|
|
243
|
+
placeholder: 'Add Pickup Point Option',
|
|
244
|
+
default: {},
|
|
245
|
+
displayOptions: { show: { resource: ['shipment'], operation: ['create_shipment'], destination_type: ['pickup_point'] } },
|
|
246
|
+
options: [
|
|
247
|
+
{
|
|
248
|
+
displayName: 'Destination Pickup Point',
|
|
249
|
+
name: 'destination_pickup_point',
|
|
250
|
+
type: 'number',
|
|
251
|
+
default: '',
|
|
252
|
+
description: 'Destination pickup point code (P35). If set, leave auto-assign as N.',
|
|
253
|
+
},
|
|
254
|
+
{
|
|
255
|
+
displayName: 'Source Pickup Point',
|
|
256
|
+
name: 'source_pickup_point',
|
|
257
|
+
type: 'number',
|
|
258
|
+
default: '',
|
|
259
|
+
description: 'Source pickup point - for returns only (P34)',
|
|
260
|
+
},
|
|
261
|
+
{
|
|
262
|
+
displayName: 'Auto-Assign Pickup Point',
|
|
263
|
+
name: 'auto_assign_pickup',
|
|
264
|
+
type: 'options',
|
|
265
|
+
default: 'N',
|
|
266
|
+
options: [
|
|
267
|
+
{ name: 'Do Not Assign', value: 'N' },
|
|
268
|
+
{ name: 'Any Type (Store or Locker)', value: 'Y' },
|
|
269
|
+
{ name: 'Locker Only', value: 'L' },
|
|
270
|
+
{ name: 'Store Only', value: 'S' },
|
|
271
|
+
],
|
|
272
|
+
description: 'Auto-assign closest pickup point based on address (P37)',
|
|
273
|
+
},
|
|
274
|
+
],
|
|
275
|
+
},
|
|
276
|
+
{
|
|
277
|
+
displayName: 'Payment Collection (COD)',
|
|
278
|
+
name: 'paymentCollection',
|
|
279
|
+
type: 'collection',
|
|
280
|
+
placeholder: 'Add Payment Option',
|
|
281
|
+
default: {},
|
|
282
|
+
displayOptions: { show: { resource: ['shipment'], operation: ['create_shipment'] } },
|
|
283
|
+
options: [
|
|
284
|
+
{
|
|
285
|
+
displayName: 'Payment Type Code',
|
|
286
|
+
name: 'payment_type',
|
|
287
|
+
type: 'number',
|
|
288
|
+
default: '',
|
|
289
|
+
description: 'Payment type code - get from shipping company (P30)',
|
|
290
|
+
},
|
|
291
|
+
{
|
|
292
|
+
displayName: 'Payment Amount',
|
|
293
|
+
name: 'payment_amount',
|
|
294
|
+
type: 'number',
|
|
295
|
+
default: '',
|
|
296
|
+
typeOptions: { numberPrecision: 2 },
|
|
297
|
+
description: 'Amount to collect from consignee (P31)',
|
|
298
|
+
},
|
|
299
|
+
{
|
|
300
|
+
displayName: 'Payment Date',
|
|
301
|
+
name: 'payment_date',
|
|
302
|
+
type: 'string',
|
|
303
|
+
default: '',
|
|
304
|
+
description: 'Date of payment collection DD/MM/YYYY (P32)',
|
|
305
|
+
},
|
|
306
|
+
{
|
|
307
|
+
displayName: 'Payment Notes',
|
|
308
|
+
name: 'payment_notes',
|
|
309
|
+
type: 'string',
|
|
310
|
+
default: '',
|
|
311
|
+
description: 'Notes for payment collection (P33)',
|
|
312
|
+
},
|
|
313
|
+
],
|
|
314
|
+
},
|
|
315
|
+
{
|
|
316
|
+
displayName: 'Return Options',
|
|
317
|
+
name: 'returnOptions',
|
|
318
|
+
type: 'collection',
|
|
319
|
+
placeholder: 'Add Return Option',
|
|
320
|
+
default: {},
|
|
321
|
+
displayOptions: {
|
|
322
|
+
show: {
|
|
323
|
+
resource: ['shipment'],
|
|
324
|
+
operation: ['create_shipment'],
|
|
325
|
+
type: ['return'],
|
|
326
|
+
}
|
|
327
|
+
},
|
|
328
|
+
description: 'Options specific to return shipments (איסוף)',
|
|
329
|
+
options: [
|
|
330
|
+
{
|
|
331
|
+
displayName: 'Returned Cargo Type',
|
|
332
|
+
name: 'returned_cargo_type',
|
|
333
|
+
type: 'number',
|
|
334
|
+
default: '',
|
|
335
|
+
description: 'Cargo type for returns - get from shipping company (P8)',
|
|
336
|
+
},
|
|
337
|
+
{
|
|
338
|
+
displayName: 'Number of Returned Packages',
|
|
339
|
+
name: 'returned_package_count',
|
|
340
|
+
type: 'number',
|
|
341
|
+
default: '',
|
|
342
|
+
typeOptions: { minValue: 1 },
|
|
343
|
+
description: 'Number of packages in return shipment (P9)',
|
|
344
|
+
},
|
|
345
|
+
],
|
|
346
|
+
},
|
|
347
|
+
{
|
|
348
|
+
displayName: 'Advanced Options',
|
|
349
|
+
name: 'advancedOptions',
|
|
350
|
+
type: 'collection',
|
|
351
|
+
placeholder: 'Add Advanced Option',
|
|
352
|
+
default: {},
|
|
353
|
+
displayOptions: { show: { resource: ['shipment'], operation: ['create_shipment'] } },
|
|
354
|
+
options: [
|
|
355
|
+
{
|
|
356
|
+
displayName: 'Response Type',
|
|
357
|
+
name: 'response_type',
|
|
358
|
+
type: 'options',
|
|
359
|
+
default: 'XML',
|
|
360
|
+
options: [
|
|
361
|
+
{ name: 'XML (Recommended)', value: 'XML' },
|
|
362
|
+
{ name: 'TXT', value: 'TXT' },
|
|
363
|
+
],
|
|
364
|
+
description: 'Response format from Run ERP (P36)',
|
|
365
|
+
},
|
|
366
|
+
{
|
|
367
|
+
displayName: 'Shipment Stage',
|
|
368
|
+
name: 'shipment_stage',
|
|
369
|
+
type: 'number',
|
|
370
|
+
default: '',
|
|
371
|
+
description: 'Shipment stage code - consult shipping company (P4)',
|
|
372
|
+
},
|
|
373
|
+
],
|
|
374
|
+
},
|
|
375
|
+
],
|
|
376
|
+
process: (params, i, getNodeParameter) => {
|
|
377
|
+
params.type = getNodeParameter('type', i);
|
|
378
|
+
params.consignee_name = getNodeParameter('consignee_name', i);
|
|
379
|
+
params.city = getNodeParameter('city', i);
|
|
380
|
+
params.street = getNodeParameter('street', i);
|
|
381
|
+
params.phone = getNodeParameter('phone', i);
|
|
382
|
+
params.destination_type = getNodeParameter('destination_type', i);
|
|
383
|
+
const addressDetails = getNodeParameter('addressDetails', i, {});
|
|
384
|
+
if (addressDetails) {
|
|
385
|
+
Object.keys(addressDetails).forEach(key => {
|
|
386
|
+
if (addressDetails[key] !== '' && addressDetails[key] !== undefined) {
|
|
387
|
+
params[key] = addressDetails[key];
|
|
388
|
+
}
|
|
389
|
+
});
|
|
390
|
+
}
|
|
391
|
+
const contactReference = getNodeParameter('contactReference', i, {});
|
|
392
|
+
if (contactReference) {
|
|
393
|
+
Object.keys(contactReference).forEach(key => {
|
|
394
|
+
if (contactReference[key] !== '' && contactReference[key] !== undefined) {
|
|
395
|
+
params[key] = contactReference[key];
|
|
396
|
+
}
|
|
397
|
+
});
|
|
398
|
+
}
|
|
399
|
+
const packageDetails = getNodeParameter('packageDetails', i, {});
|
|
400
|
+
if (packageDetails) {
|
|
401
|
+
Object.keys(packageDetails).forEach(key => {
|
|
402
|
+
if (packageDetails[key] !== '' && packageDetails[key] !== undefined) {
|
|
403
|
+
params[key] = packageDetails[key];
|
|
404
|
+
}
|
|
405
|
+
});
|
|
406
|
+
}
|
|
407
|
+
const scheduling = getNodeParameter('scheduling', i, {});
|
|
408
|
+
if (scheduling) {
|
|
409
|
+
Object.keys(scheduling).forEach(key => {
|
|
410
|
+
if (scheduling[key] !== '' && scheduling[key] !== undefined) {
|
|
411
|
+
params[key] = scheduling[key];
|
|
412
|
+
}
|
|
413
|
+
});
|
|
414
|
+
}
|
|
415
|
+
const pickupPoints = getNodeParameter('pickupPoints', i, {});
|
|
416
|
+
if (pickupPoints) {
|
|
417
|
+
Object.keys(pickupPoints).forEach(key => {
|
|
418
|
+
if (pickupPoints[key] !== '' && pickupPoints[key] !== undefined) {
|
|
419
|
+
params[key] = pickupPoints[key];
|
|
420
|
+
}
|
|
421
|
+
});
|
|
422
|
+
}
|
|
423
|
+
const paymentCollection = getNodeParameter('paymentCollection', i, {});
|
|
424
|
+
if (paymentCollection) {
|
|
425
|
+
Object.keys(paymentCollection).forEach(key => {
|
|
426
|
+
if (paymentCollection[key] !== '' && paymentCollection[key] !== undefined) {
|
|
427
|
+
params[key] = paymentCollection[key];
|
|
428
|
+
}
|
|
429
|
+
});
|
|
430
|
+
}
|
|
431
|
+
const returnOptions = getNodeParameter('returnOptions', i, {});
|
|
432
|
+
if (returnOptions) {
|
|
433
|
+
Object.keys(returnOptions).forEach(key => {
|
|
434
|
+
if (returnOptions[key] !== '' && returnOptions[key] !== undefined) {
|
|
435
|
+
params[key] = returnOptions[key];
|
|
436
|
+
}
|
|
437
|
+
});
|
|
438
|
+
}
|
|
439
|
+
const advancedOptions = getNodeParameter('advancedOptions', i, {});
|
|
440
|
+
if (advancedOptions) {
|
|
441
|
+
Object.keys(advancedOptions).forEach(key => {
|
|
442
|
+
if (advancedOptions[key] !== '' && advancedOptions[key] !== undefined) {
|
|
443
|
+
params[key] = advancedOptions[key];
|
|
444
|
+
}
|
|
445
|
+
});
|
|
446
|
+
}
|
|
447
|
+
return params;
|
|
448
|
+
},
|
|
449
|
+
};
|
|
450
|
+
//# sourceMappingURL=run-erp-create-shipment.constant.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"run-erp-create-shipment.constant.js","sourceRoot":"","sources":["../../../../nodes/RunERP/constants/run-erp-create-shipment.constant.ts"],"names":[],"mappings":";;;AAEa,QAAA,oBAAoB,GAAG;IAChC,OAAO,EAAE;QAIL;YACI,WAAW,EAAE,eAAe;YAC5B,IAAI,EAAE,MAAM;YACZ,IAAI,EAAE,SAAS;YACf,QAAQ,EAAE,IAAI;YACd,OAAO,EAAE,UAAU;YACnB,OAAO,EAAE;gBACL,EAAE,IAAI,EAAE,kBAAkB,EAAE,KAAK,EAAE,UAAU,EAAE;gBAC/C,EAAE,IAAI,EAAE,gBAAgB,EAAE,KAAK,EAAE,QAAQ,EAAE;aAC9C;YACD,WAAW,EAAE,uCAAuC;YACpD,cAAc,EAAE,EAAE,IAAI,EAAE,EAAE,QAAQ,EAAE,CAAC,UAAU,CAAC,EAAE,SAAS,EAAE,CAAC,iBAAiB,CAAC,EAAE,EAAE;SACvF;QACD;YACI,WAAW,EAAE,2BAA2B;YACxC,IAAI,EAAE,kBAAkB;YACxB,IAAI,EAAE,SAAS;YACf,QAAQ,EAAE,IAAI;YACd,OAAO,EAAE,kBAAkB;YAC3B,OAAO,EAAE;gBACL,EAAE,IAAI,EAAE,+BAA+B,EAAE,KAAK,EAAE,kBAAkB,EAAE;gBACpE,EAAE,IAAI,EAAE,4BAA4B,EAAE,KAAK,EAAE,cAAc,EAAE;aAChE;YACD,WAAW,EAAE,iEAAiE;YAC9E,cAAc,EAAE,EAAE,IAAI,EAAE,EAAE,QAAQ,EAAE,CAAC,UAAU,CAAC,EAAE,SAAS,EAAE,CAAC,iBAAiB,CAAC,EAAE,EAAE;SACvF;QACD;YACI,WAAW,EAAE,gBAAgB;YAC7B,IAAI,EAAE,gBAAgB;YACtB,IAAI,EAAE,QAAQ;YACd,QAA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I,eAAe,CAAC,GAAG,CAAC,KAAK,SAAS,EAAE;oBACnE,MAAM,CAAC,GAAG,CAAC,GAAG,eAAe,CAAC,GAAG,CAAC,CAAC;iBACtC;YACL,CAAC,CAAC,CAAC;SACN;QAED,OAAO,MAAM,CAAC;IAClB,CAAC;CACJ,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { INodeProperties } from 'n8n-workflow';
|
|
2
|
+
export declare const RunErpGetPickupPoints: {
|
|
3
|
+
declare: INodeProperties[];
|
|
4
|
+
process: (params: Record<string, any>, i: number, getNodeParameter: (parameterName: string, itemIndex: number, fallbackValue?: any) => any) => Record<string, any>;
|
|
5
|
+
};
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RunErpGetPickupPoints = void 0;
|
|
4
|
+
exports.RunErpGetPickupPoints = {
|
|
5
|
+
declare: [
|
|
6
|
+
{
|
|
7
|
+
displayName: 'Lookup Method',
|
|
8
|
+
name: 'pickup_lookup_method',
|
|
9
|
+
type: 'options',
|
|
10
|
+
required: true,
|
|
11
|
+
default: 'all',
|
|
12
|
+
options: [
|
|
13
|
+
{
|
|
14
|
+
name: 'All Pickup Points',
|
|
15
|
+
value: 'all',
|
|
16
|
+
description: 'Get all available pickup points',
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
name: 'By City Name',
|
|
20
|
+
value: 'city_name',
|
|
21
|
+
description: 'Filter by city name (Hebrew)',
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
name: 'By City Code',
|
|
25
|
+
value: 'city_code',
|
|
26
|
+
description: 'Filter by city code from gov.il database',
|
|
27
|
+
},
|
|
28
|
+
],
|
|
29
|
+
description: 'How to filter pickup points',
|
|
30
|
+
displayOptions: { show: { resource: ['pickup_points'], operation: ['get_pickup_points'] } },
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
displayName: 'City Name',
|
|
34
|
+
name: 'city_name',
|
|
35
|
+
type: 'string',
|
|
36
|
+
required: true,
|
|
37
|
+
default: '',
|
|
38
|
+
placeholder: 'תל אביב',
|
|
39
|
+
description: 'City name in Hebrew',
|
|
40
|
+
displayOptions: {
|
|
41
|
+
show: {
|
|
42
|
+
resource: ['pickup_points'],
|
|
43
|
+
operation: ['get_pickup_points'],
|
|
44
|
+
pickup_lookup_method: ['city_name'],
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
displayName: 'City Code',
|
|
50
|
+
name: 'city_code',
|
|
51
|
+
type: 'number',
|
|
52
|
+
required: true,
|
|
53
|
+
default: '',
|
|
54
|
+
placeholder: '5000',
|
|
55
|
+
description: 'City code from the gov.il database (e.g., 5000 for Tel Aviv, 3000 for Jerusalem)',
|
|
56
|
+
displayOptions: {
|
|
57
|
+
show: {
|
|
58
|
+
resource: ['pickup_points'],
|
|
59
|
+
operation: ['get_pickup_points'],
|
|
60
|
+
pickup_lookup_method: ['city_code'],
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
displayName: 'Pickup Points Info',
|
|
66
|
+
name: 'pickupPointsNotice',
|
|
67
|
+
type: 'notice',
|
|
68
|
+
default: '',
|
|
69
|
+
displayOptions: { show: { resource: ['pickup_points'], operation: ['get_pickup_points'] } },
|
|
70
|
+
typeOptions: {
|
|
71
|
+
noticeType: 'info',
|
|
72
|
+
},
|
|
73
|
+
},
|
|
74
|
+
],
|
|
75
|
+
process: (params, i, getNodeParameter) => {
|
|
76
|
+
const lookupMethod = getNodeParameter('pickup_lookup_method', i);
|
|
77
|
+
if (lookupMethod === 'all') {
|
|
78
|
+
params.city_name = 'all';
|
|
79
|
+
}
|
|
80
|
+
else if (lookupMethod === 'city_name') {
|
|
81
|
+
params.city_name = getNodeParameter('city_name', i);
|
|
82
|
+
}
|
|
83
|
+
else if (lookupMethod === 'city_code') {
|
|
84
|
+
params.city_code = getNodeParameter('city_code', i);
|
|
85
|
+
}
|
|
86
|
+
return params;
|
|
87
|
+
},
|
|
88
|
+
};
|
|
89
|
+
//# sourceMappingURL=run-erp-get-pickup-points.constant.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"run-erp-get-pickup-points.constant.js","sourceRoot":"","sources":["../../../../nodes/RunERP/constants/run-erp-get-pickup-points.constant.ts"],"names":[],"mappings":";;;AAEa,QAAA,qBAAqB,GAAG;IACjC,OAAO,EAAE;QACL;YACI,WAAW,EAAE,eAAe;YAC5B,IAAI,EAAE,sBAAsB;YAC5B,IAAI,EAAE,SAAS;YACf,QAAQ,EAAE,IAAI;YACd,OAAO,EAAE,KAAK;YACd,OAAO,EAAE;gBACL;oBACI,IAAI,EAAE,mBAAmB;oBACzB,KAAK,EAAE,KAAK;oBACZ,WAAW,EAAE,iCAAiC;iBACjD;gBACD;oBACI,IAAI,EAAE,cAAc;oBACpB,KAAK,EAAE,WAAW;oBAClB,WAAW,EAAE,8BAA8B;iBAC9C;gBACD;oBACI,IAAI,EAAE,cAAc;oBACpB,KAAK,EAAE,WAAW;oBAClB,WAAW,EAAE,0CAA0C;iBAC1D;aACJ;YACD,WAAW,EAAE,6BAA6B;YAC1C,cAAc,EAAE,EAAE,IAAI,EAAE,EAAE,QAAQ,EAAE,CAAC,eAAe,CAAC,EAAE,SAAS,EAAE,CAAC,mBAAmB,CAAC,EAAE,EAAE;SAC9F;QACD;YACI,WAAW,EAAE,WAAW;YACxB,IAAI,EAAE,WAAW;YACjB,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;YACd,OAAO,EAAE,EAAE;YACX,WAAW,EAAE,SAAS;YACtB,WAAW,EAAE,qBAAqB;YAClC,cAAc,EAAE;gBACZ,IAAI,EAAE;oBACF,QAAQ,EAAE,CAAC,eAAe,CAAC;oBAC3B,SAAS,EAAE,CAAC,mBAAmB,CAAC;oBAChC,oBAAoB,EAAE,CAAC,WA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8n-workflow';
|
|
2
|
+
export declare const RunErpGetTracking: {
|
|
3
|
+
declare: INodeProperties[];
|
|
4
|
+
process: (params: Record<string, any>, i: number, getNodeParameter: (parameterName: string, itemIndex: number, fallbackValue?: any) => any) => Record<string, any>;
|
|
5
|
+
};
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RunErpGetTracking = void 0;
|
|
4
|
+
exports.RunErpGetTracking = {
|
|
5
|
+
declare: [
|
|
6
|
+
{
|
|
7
|
+
displayName: 'Lookup Method',
|
|
8
|
+
name: 'lookup_method',
|
|
9
|
+
type: 'options',
|
|
10
|
+
required: true,
|
|
11
|
+
default: 'shipment_id',
|
|
12
|
+
options: [
|
|
13
|
+
{
|
|
14
|
+
name: 'By Shipment ID',
|
|
15
|
+
value: 'shipment_id',
|
|
16
|
+
description: 'Look up using the shipment number from Run ERP',
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
name: 'By Reference Number',
|
|
20
|
+
value: 'reference',
|
|
21
|
+
description: 'Look up using your identification letters + reference number',
|
|
22
|
+
},
|
|
23
|
+
],
|
|
24
|
+
description: 'How to identify the shipment for tracking',
|
|
25
|
+
displayOptions: { show: { resource: ['tracking'], operation: ['get_tracking'] } },
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
displayName: 'Shipment ID',
|
|
29
|
+
name: 'shipment_id',
|
|
30
|
+
type: 'number',
|
|
31
|
+
required: true,
|
|
32
|
+
default: '',
|
|
33
|
+
description: 'The shipment number (ship_create_num) returned from create shipment',
|
|
34
|
+
displayOptions: {
|
|
35
|
+
show: {
|
|
36
|
+
resource: ['tracking'],
|
|
37
|
+
operation: ['get_tracking'],
|
|
38
|
+
lookup_method: ['shipment_id'],
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
displayName: 'Reference with Prefix',
|
|
44
|
+
name: 'reference_with_prefix',
|
|
45
|
+
type: 'string',
|
|
46
|
+
required: true,
|
|
47
|
+
default: '',
|
|
48
|
+
placeholder: 'AB987654321',
|
|
49
|
+
description: 'Your identification letters at the shipping company + your reference number (e.g., AB987654321)',
|
|
50
|
+
displayOptions: {
|
|
51
|
+
show: {
|
|
52
|
+
resource: ['tracking'],
|
|
53
|
+
operation: ['get_tracking'],
|
|
54
|
+
lookup_method: ['reference'],
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
displayName: 'Tracking Info',
|
|
60
|
+
name: 'trackingNotice',
|
|
61
|
+
type: 'notice',
|
|
62
|
+
default: '',
|
|
63
|
+
displayOptions: { show: { resource: ['tracking'], operation: ['get_tracking'] } },
|
|
64
|
+
typeOptions: {
|
|
65
|
+
noticeType: 'info',
|
|
66
|
+
},
|
|
67
|
+
},
|
|
68
|
+
],
|
|
69
|
+
process: (params, i, getNodeParameter) => {
|
|
70
|
+
const lookupMethod = getNodeParameter('lookup_method', i);
|
|
71
|
+
if (lookupMethod === 'shipment_id') {
|
|
72
|
+
params.shipment_id = getNodeParameter('shipment_id', i);
|
|
73
|
+
}
|
|
74
|
+
else {
|
|
75
|
+
params.reference_with_prefix = getNodeParameter('reference_with_prefix', i);
|
|
76
|
+
}
|
|
77
|
+
return params;
|
|
78
|
+
},
|
|
79
|
+
};
|
|
80
|
+
//# sourceMappingURL=run-erp-get-tracking.constant.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"run-erp-get-tracking.constant.js","sourceRoot":"","sources":["../../../../nodes/RunERP/constants/run-erp-get-tracking.constant.ts"],"names":[],"mappings":";;;AAEa,QAAA,iBAAiB,GAAG;IAC7B,OAAO,EAAE;QACL;YACI,WAAW,EAAE,eAAe;YAC5B,IAAI,EAAE,eAAe;YACrB,IAAI,EAAE,SAAS;YACf,QAAQ,EAAE,IAAI;YACd,OAAO,EAAE,aAAa;YACtB,OAAO,EAAE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