n8n-nodes-synca 1.0.0

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 (62) hide show
  1. package/dist/credentials/SyncaApi.credentials.d.ts +9 -0
  2. package/dist/credentials/SyncaApi.credentials.js +51 -0
  3. package/dist/credentials/SyncaApi.credentials.js.map +1 -0
  4. package/dist/nodes/Cashcow/SyncaCashcow.node.d.ts +10 -0
  5. package/dist/nodes/Cashcow/SyncaCashcow.node.js +185 -0
  6. package/dist/nodes/Cashcow/SyncaCashcow.node.js.map +1 -0
  7. package/dist/nodes/Cashcow/constants/cashcow-check-order-tracking.constant.d.ts +30 -0
  8. package/dist/nodes/Cashcow/constants/cashcow-check-order-tracking.constant.js +37 -0
  9. package/dist/nodes/Cashcow/constants/cashcow-check-order-tracking.constant.js.map +1 -0
  10. package/dist/nodes/Cashcow/constants/cashcow-create-or-update-product.constant.d.ts +117 -0
  11. package/dist/nodes/Cashcow/constants/cashcow-create-or-update-product.constant.js +290 -0
  12. package/dist/nodes/Cashcow/constants/cashcow-create-or-update-product.constant.js.map +1 -0
  13. package/dist/nodes/Cashcow/constants/cashcow-create-order.constant.d.ts +189 -0
  14. package/dist/nodes/Cashcow/constants/cashcow-create-order.constant.js +420 -0
  15. package/dist/nodes/Cashcow/constants/cashcow-create-order.constant.js.map +1 -0
  16. package/dist/nodes/Cashcow/constants/cashcow-get-store-mailbox.constant.d.ts +46 -0
  17. package/dist/nodes/Cashcow/constants/cashcow-get-store-mailbox.constant.js +166 -0
  18. package/dist/nodes/Cashcow/constants/cashcow-get-store-mailbox.constant.js.map +1 -0
  19. package/dist/nodes/Cashcow/icon copy 2.svg +53 -0
  20. package/dist/nodes/Cashcow/icon copy.svg +65 -0
  21. package/dist/nodes/Cashcow/icon.svg +1 -0
  22. package/dist/nodes/Cashcow/last-icon.svg +38 -0
  23. package/dist/nodes/Mirakl/SyncaMirakl.node.d.ts +0 -0
  24. package/dist/nodes/Mirakl/SyncaMirakl.node.js +2 -0
  25. package/dist/nodes/Mirakl/SyncaMirakl.node.js.map +1 -0
  26. package/dist/nodes/OLD_SyncaPriority.node.d.ts +10 -0
  27. package/dist/nodes/OLD_SyncaPriority.node.js +389 -0
  28. package/dist/nodes/OLD_SyncaPriority.node.js.map +1 -0
  29. package/dist/nodes/Priority/SyncaPriority.node.d.ts +18 -0
  30. package/dist/nodes/Priority/SyncaPriority.node.js +313 -0
  31. package/dist/nodes/Priority/SyncaPriority.node.js.map +1 -0
  32. package/dist/nodes/Priority/constants/methods.d.ts +15 -0
  33. package/dist/nodes/Priority/constants/methods.js +299 -0
  34. package/dist/nodes/Priority/constants/methods.js.map +1 -0
  35. package/dist/nodes/Priority/constants/priority-agents.constant.d.ts +39 -0
  36. package/dist/nodes/Priority/constants/priority-agents.constant.js +114 -0
  37. package/dist/nodes/Priority/constants/priority-agents.constant.js.map +1 -0
  38. package/dist/nodes/Priority/constants/priority-generic.constant.d.ts +158 -0
  39. package/dist/nodes/Priority/constants/priority-generic.constant.js +219 -0
  40. package/dist/nodes/Priority/constants/priority-generic.constant.js.map +1 -0
  41. package/dist/nodes/Priority/constants/priority-procedure.constant.d.ts +129 -0
  42. package/dist/nodes/Priority/constants/priority-procedure.constant.js +178 -0
  43. package/dist/nodes/Priority/constants/priority-procedure.constant.js.map +1 -0
  44. package/dist/nodes/Priority/constants/priority-products.constant.d.ts +158 -0
  45. package/dist/nodes/Priority/constants/priority-products.constant.js +209 -0
  46. package/dist/nodes/Priority/constants/priority-products.constant.js.map +1 -0
  47. package/dist/nodes/Priority/constants/priority-purchase-orders.constant.d.ts +158 -0
  48. package/dist/nodes/Priority/constants/priority-purchase-orders.constant.js +218 -0
  49. package/dist/nodes/Priority/constants/priority-purchase-orders.constant.js.map +1 -0
  50. package/dist/nodes/Priority/constants/priority-sales.constant.d.ts +158 -0
  51. package/dist/nodes/Priority/constants/priority-sales.constant.js +383 -0
  52. package/dist/nodes/Priority/constants/priority-sales.constant.js.map +1 -0
  53. package/dist/nodes/Priority/icon.png +0 -0
  54. package/dist/nodes/Priority/icon.svg +1 -0
  55. package/dist/nodes/Superpharm/SyncaSuperpharm.node.d.ts +10 -0
  56. package/dist/nodes/Superpharm/SyncaSuperpharm.node.js +1072 -0
  57. package/dist/nodes/Superpharm/SyncaSuperpharm.node.js.map +1 -0
  58. package/dist/nodes/Superpharm/icon.svg +1 -0
  59. package/dist/nodes/Superpharm/old-icon.svg +22 -0
  60. package/dist/package.json +55 -0
  61. package/dist/tsconfig.tsbuildinfo +1 -0
  62. package/package.json +55 -0
@@ -0,0 +1,420 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CashcowCreateOrder = void 0;
4
+ exports.CashcowCreateOrder = {
5
+ declare: [
6
+ {
7
+ displayName: 'Customer Name',
8
+ name: 'customer_name',
9
+ type: 'string',
10
+ required: true,
11
+ default: '',
12
+ description: 'Customer full name',
13
+ displayOptions: { show: { resource: ['store'], operation: ['create_order'] } },
14
+ },
15
+ {
16
+ displayName: 'Customer Email',
17
+ name: 'customer_email',
18
+ type: 'string',
19
+ required: true,
20
+ default: '',
21
+ description: 'Customer email address',
22
+ displayOptions: { show: { resource: ['store'], operation: ['create_order'] } },
23
+ },
24
+ {
25
+ displayName: 'Customer Phone',
26
+ name: 'customer_phone',
27
+ type: 'string',
28
+ default: '',
29
+ description: 'Customer phone number',
30
+ displayOptions: { show: { resource: ['store'], operation: ['create_order'] } },
31
+ },
32
+ {
33
+ displayName: 'Customer ID',
34
+ name: 'customer_id',
35
+ type: 'string',
36
+ default: '',
37
+ description: 'Customer ID (if existing customer)',
38
+ displayOptions: { show: { resource: ['store'], operation: ['create_order'] } },
39
+ },
40
+ {
41
+ displayName: 'Shipping Address',
42
+ name: 'shipping_address',
43
+ type: 'string',
44
+ default: '',
45
+ description: 'Shipping street address',
46
+ displayOptions: { show: { resource: ['store'], operation: ['create_order'] } },
47
+ },
48
+ {
49
+ displayName: 'Shipping City',
50
+ name: 'shipping_city',
51
+ type: 'string',
52
+ default: '',
53
+ description: 'Shipping city',
54
+ displayOptions: { show: { resource: ['store'], operation: ['create_order'] } },
55
+ },
56
+ {
57
+ displayName: 'Shipping Postal Code',
58
+ name: 'shipping_postal_code',
59
+ type: 'string',
60
+ default: '',
61
+ description: 'Shipping postal/zip code',
62
+ displayOptions: { show: { resource: ['store'], operation: ['create_order'] } },
63
+ },
64
+ {
65
+ displayName: 'Shipping Country',
66
+ name: 'shipping_country',
67
+ type: 'string',
68
+ default: '',
69
+ description: 'Shipping country',
70
+ displayOptions: { show: { resource: ['store'], operation: ['create_order'] } },
71
+ },
72
+ {
73
+ displayName: 'Use Shipping for Billing',
74
+ name: 'use_shipping_for_billing',
75
+ type: 'boolean',
76
+ default: true,
77
+ description: 'Use shipping address for billing',
78
+ displayOptions: { show: { resource: ['store'], operation: ['create_order'] } },
79
+ },
80
+ {
81
+ displayName: 'Billing Address',
82
+ name: 'billing_address',
83
+ type: 'string',
84
+ default: '',
85
+ description: 'Billing street address',
86
+ displayOptions: {
87
+ show: {
88
+ resource: ['store'],
89
+ operation: ['create_order'],
90
+ use_shipping_for_billing: [false]
91
+ }
92
+ },
93
+ },
94
+ {
95
+ displayName: 'Billing City',
96
+ name: 'billing_city',
97
+ type: 'string',
98
+ default: '',
99
+ description: 'Billing city',
100
+ displayOptions: {
101
+ show: {
102
+ resource: ['store'],
103
+ operation: ['create_order'],
104
+ use_shipping_for_billing: [false]
105
+ }
106
+ },
107
+ },
108
+ {
109
+ displayName: 'Billing Postal Code',
110
+ name: 'billing_postal_code',
111
+ type: 'string',
112
+ default: '',
113
+ description: 'Billing postal/zip code',
114
+ displayOptions: {
115
+ show: {
116
+ resource: ['store'],
117
+ operation: ['create_order'],
118
+ use_shipping_for_billing: [false]
119
+ }
120
+ },
121
+ },
122
+ {
123
+ displayName: 'Billing Country',
124
+ name: 'billing_country',
125
+ type: 'string',
126
+ default: '',
127
+ description: 'Billing country',
128
+ displayOptions: {
129
+ show: {
130
+ resource: ['store'],
131
+ operation: ['create_order'],
132
+ use_shipping_for_billing: [false]
133
+ }
134
+ },
135
+ },
136
+ {
137
+ displayName: 'Products (JSON)',
138
+ name: 'products',
139
+ type: 'json',
140
+ required: true,
141
+ default: '[{"Title":"","Price":1.5,"Pid":0,"SKU":"TEST","Qty":1}]',
142
+ description: 'Array of products in cart. Each product should have: sku, quantity, price, etc.',
143
+ placeholder: '[{"sku": "PROD-001", "quantity": 2, "price": 29.99}]',
144
+ displayOptions: { show: { resource: ['store'], operation: ['create_order'] } },
145
+ },
146
+ {
147
+ displayName: 'Currency',
148
+ name: 'currency',
149
+ type: 'options',
150
+ default: 'ILS',
151
+ options: [
152
+ { name: 'Israeli Shekel (ILS)', value: 'ILS' },
153
+ { name: 'US Dollar (USD)', value: 'USD' },
154
+ { name: 'Euro (EUR)', value: 'EUR' },
155
+ ],
156
+ description: 'Order currency',
157
+ displayOptions: { show: { resource: ['store'], operation: ['create_order'] } },
158
+ },
159
+ {
160
+ displayName: 'Subtotal',
161
+ name: 'subtotal',
162
+ type: 'number',
163
+ default: 0,
164
+ description: 'Order subtotal (before taxes and shipping)',
165
+ displayOptions: { show: { resource: ['store'], operation: ['create_order'] } },
166
+ },
167
+ {
168
+ displayName: 'Tax Amount',
169
+ name: 'tax_amount',
170
+ type: 'number',
171
+ default: 0,
172
+ description: 'Tax amount',
173
+ displayOptions: { show: { resource: ['store'], operation: ['create_order'] } },
174
+ },
175
+ {
176
+ displayName: 'Shipping Cost',
177
+ name: 'shipping_cost',
178
+ type: 'number',
179
+ default: 0,
180
+ description: 'Shipping cost',
181
+ displayOptions: { show: { resource: ['store'], operation: ['create_order'] } },
182
+ },
183
+ {
184
+ displayName: 'Discount Amount',
185
+ name: 'discount_amount',
186
+ type: 'number',
187
+ default: 0,
188
+ description: 'Discount amount',
189
+ displayOptions: { show: { resource: ['store'], operation: ['create_order'] } },
190
+ },
191
+ {
192
+ displayName: 'Total Amount',
193
+ name: 'total_amount',
194
+ type: 'number',
195
+ required: true,
196
+ default: 0,
197
+ description: 'Total order amount',
198
+ displayOptions: { show: { resource: ['store'], operation: ['create_order'] } },
199
+ },
200
+ {
201
+ displayName: 'Order Notes',
202
+ name: 'order_notes',
203
+ type: 'string',
204
+ typeOptions: {
205
+ rows: 3,
206
+ },
207
+ default: '',
208
+ description: 'Customer notes for the order',
209
+ displayOptions: { show: { resource: ['store'], operation: ['create_order'] } },
210
+ },
211
+ {
212
+ displayName: 'Coupon Code',
213
+ name: 'coupon_code',
214
+ type: 'string',
215
+ default: '',
216
+ description: 'Applied coupon code',
217
+ displayOptions: { show: { resource: ['store'], operation: ['create_order'] } },
218
+ },
219
+ {
220
+ displayName: 'Shipping Method',
221
+ name: 'shipping_method',
222
+ type: 'string',
223
+ default: '',
224
+ description: 'Selected shipping method',
225
+ displayOptions: { show: { resource: ['store'], operation: ['create_order'] } },
226
+ },
227
+ {
228
+ displayName: 'Confirm Payment',
229
+ name: 'is_confirm_payment',
230
+ type: 'boolean',
231
+ default: false,
232
+ description: 'True to confirm the order without credit card input, false to get payment_url for user to enter credit card',
233
+ displayOptions: { show: { resource: ['store'], operation: ['create_order'] } },
234
+ },
235
+ {
236
+ displayName: 'Success URL',
237
+ name: 'success_url',
238
+ type: 'string',
239
+ default: '',
240
+ description: 'Success URL after payment completion (optional, only used when confirm payment is false)',
241
+ displayOptions: {
242
+ show: {
243
+ resource: ['store'],
244
+ operation: ['create_order'],
245
+ is_confirm_payment: [false]
246
+ }
247
+ },
248
+ },
249
+ {
250
+ displayName: 'Failed URL',
251
+ name: 'failed_url',
252
+ type: 'string',
253
+ default: '',
254
+ description: 'Failed URL after payment failure (optional, only used when confirm payment is false)',
255
+ displayOptions: {
256
+ show: {
257
+ resource: ['store'],
258
+ operation: ['create_order'],
259
+ is_confirm_payment: [false]
260
+ }
261
+ },
262
+ },
263
+ ],
264
+ process: (params, i, getNodeParameter) => {
265
+ const cart = {
266
+ Products: [],
267
+ CustomerFields: {},
268
+ DestinationId: 0,
269
+ CustomShipingId: 0,
270
+ IsSelfDelivery: false,
271
+ StoreId: "",
272
+ OrderId: "",
273
+ CuponCode: "",
274
+ ShipingOption: 0,
275
+ ShipingArgs: [],
276
+ CustomerID: "",
277
+ PaymentExternals: [],
278
+ PaymentType: 0,
279
+ LanguageType: "2"
280
+ };
281
+ const customerName = getNodeParameter('customer_name', i);
282
+ const customerEmail = getNodeParameter('customer_email', i);
283
+ const totalAmount = getNodeParameter('total_amount', i);
284
+ if (!customerName)
285
+ throw new Error('Customer name is required');
286
+ if (!customerEmail)
287
+ throw new Error('Customer email is required');
288
+ if (!totalAmount)
289
+ throw new Error('Total amount is required');
290
+ const nameParts = customerName.trim().split(' ');
291
+ cart.CustomerFields.FirstName = nameParts[0] || '';
292
+ cart.CustomerFields.LastName = nameParts.slice(1).join(' ') || '';
293
+ cart.CustomerFields.Email = customerEmail;
294
+ const is_use_shipping_for_billing = getNodeParameter('use_shipping_for_billing', i, false);
295
+ if (is_use_shipping_for_billing) {
296
+ cart.CustomerFields.PaymentFirstName = cart.CustomerFields.FirstName;
297
+ cart.CustomerFields.PaymentLastName = cart.CustomerFields.LastName;
298
+ }
299
+ try {
300
+ const customerPhone = getNodeParameter('customer_phone', i, undefined);
301
+ if (customerPhone && customerPhone.trim() !== '') {
302
+ cart.CustomerFields.Phone = customerPhone;
303
+ }
304
+ }
305
+ catch { }
306
+ try {
307
+ const customerId = getNodeParameter('customer_id', i, undefined);
308
+ if (customerId && customerId.trim() !== '') {
309
+ cart.CustomerID = customerId;
310
+ }
311
+ }
312
+ catch { }
313
+ const addressParts = [];
314
+ try {
315
+ const shippingAddress = getNodeParameter('shipping_address', i, undefined);
316
+ if (shippingAddress && shippingAddress.trim() !== '')
317
+ addressParts.push(shippingAddress);
318
+ }
319
+ catch { }
320
+ try {
321
+ const shippingCity = getNodeParameter('shipping_city', i, undefined);
322
+ if (shippingCity && shippingCity.trim() !== '')
323
+ addressParts.push(shippingCity);
324
+ }
325
+ catch { }
326
+ try {
327
+ const shippingPostalCode = getNodeParameter('shipping_postal_code', i, undefined);
328
+ if (shippingPostalCode && shippingPostalCode.trim() !== '')
329
+ addressParts.push(shippingPostalCode);
330
+ }
331
+ catch { }
332
+ if (addressParts.length > 0) {
333
+ cart.CustomerFields.Address = addressParts.join(', ');
334
+ cart.CustomerFields.City = cart.CustomerFields.Address;
335
+ }
336
+ try {
337
+ const shippingCountry = getNodeParameter('shipping_country', i, undefined);
338
+ if (shippingCountry && shippingCountry.trim() !== '') {
339
+ cart.CustomerFields.CountryId = 103;
340
+ }
341
+ }
342
+ catch { }
343
+ try {
344
+ const productsValue = getNodeParameter('products', i);
345
+ if (productsValue && productsValue.trim() !== '' && productsValue !== '[]') {
346
+ try {
347
+ const inputProducts = JSON.parse(productsValue);
348
+ if (!Array.isArray(inputProducts)) {
349
+ throw new Error('Products must be an array');
350
+ }
351
+ cart.Products = inputProducts.map((product) => ({
352
+ Title: product.Title || product.title || '',
353
+ Price: product.Price || product.price || 0,
354
+ Pid: product.Pid || product.pid || 0,
355
+ SKU: product.SKU || product.sku || '',
356
+ Attrs: product.Attrs || product.attrs || [],
357
+ Qty: product.Qty || product.qty || product.quantity || 1,
358
+ QtyType: product.QtyType || product.qtyType || 0,
359
+ QtyByWeight: product.QtyByWeight || product.qtyByWeight || 0,
360
+ SecondQtyType: product.SecondQtyType || product.secondQtyType || 0
361
+ }));
362
+ }
363
+ catch (parseError) {
364
+ throw new Error(`Invalid JSON in products: ${parseError.message}`);
365
+ }
366
+ }
367
+ else {
368
+ throw new Error('Products array is required for create_order operation');
369
+ }
370
+ }
371
+ catch (error) {
372
+ throw error;
373
+ }
374
+ try {
375
+ const storeId = getNodeParameter('store_id', i, undefined);
376
+ if (storeId !== undefined) {
377
+ cart.StoreId = storeId;
378
+ }
379
+ }
380
+ catch { }
381
+ try {
382
+ const couponCode = getNodeParameter('coupon_code', i, undefined);
383
+ if (couponCode && couponCode.trim() !== '') {
384
+ cart.CuponCode = couponCode;
385
+ }
386
+ }
387
+ catch { }
388
+ try {
389
+ const orderNotes = getNodeParameter('order_notes', i, undefined);
390
+ if (orderNotes && orderNotes.trim() !== '') {
391
+ cart.CustomerFields.Instroductions = orderNotes;
392
+ }
393
+ }
394
+ catch { }
395
+ params.cart = cart;
396
+ try {
397
+ const isConfirmPayment = getNodeParameter('is_confirm_payment', i, undefined);
398
+ if (isConfirmPayment !== undefined) {
399
+ params.is_confirm_payment = isConfirmPayment;
400
+ }
401
+ }
402
+ catch { }
403
+ try {
404
+ const successUrl = getNodeParameter('success_url', i, undefined);
405
+ if (successUrl && successUrl.trim() !== '') {
406
+ params.success_url = successUrl;
407
+ }
408
+ }
409
+ catch { }
410
+ try {
411
+ const failedUrl = getNodeParameter('failed_url', i, undefined);
412
+ if (failedUrl && failedUrl.trim() !== '') {
413
+ params.failed_url = failedUrl;
414
+ }
415
+ }
416
+ catch { }
417
+ return params;
418
+ }
419
+ };
420
+ //# sourceMappingURL=cashcow-create-order.constant.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cashcow-create-order.constant.js","sourceRoot":"","sources":["../../../../nodes/Cashcow/constants/cashcow-create-order.constant.ts"],"names":[],"mappings":";;;AAAa,QAAA,kBAAkB,GAAG;IAC9B,OAAO,EAAE;QAGL;YACI,WAAW,EAAE,eAAe;YAC5B,IAAI,EAAE,eAAe;YACrB,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;YACd,OAAO,EAAE,EAAE;YACX,WAAW,EAAE,oBAAoB;YACjC,cAAc,EAAE,EAAE,IAAI,EAAE,EAAE,QAAQ,EAAE,CAAC,OAAO,CAAC,EAAE,SAAS,EAAE,CAAC,cAAc,CAAC,EAAE,EAAE;SACjF;QACD;YACI,WAAW,EAAE,gBAAgB;YAC7B,IAAI,EAAE,gBAAgB;YACtB,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;YACd,OAAO,EAAE,EAAE;YACX,WAAW,EAAE,wBAAwB;YACrC,cAAc,EAA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AK,SAAS,EAAE;gBAChC,MAAM,CAAC,kBAAkB,GAAG,gBAAgB,CAAC;aAChD;SACJ;QAAC,MAAM,GAAG;QAGX,IAAI;YACA,MAAM,UAAU,GAAG,gBAAgB,CAAC,aAAa,EAAE,CAAC,EAAE,SAAS,CAAW,CAAC;YAC3E,IAAI,UAAU,IAAI,UAAU,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE;gBACxC,MAAM,CAAC,WAAW,GAAG,UAAU,CAAC;aACnC;SACJ;QAAC,MAAM,GAAG;QAEX,IAAI;YACA,MAAM,SAAS,GAAG,gBAAgB,CAAC,YAAY,EAAE,CAAC,EAAE,SAAS,CAAW,CAAC;YACzE,IAAI,SAAS,IAAI,SAAS,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE;gBACtC,MAAM,CAAC,UAAU,GAAG,SAAS,CAAC;aACjC;SACJ;QAAC,MAAM,GAAG;QAEX,OAAO,MAAM,CAAC;IAClB,CAAC;CACJ,CAAA"}
@@ -0,0 +1,46 @@
1
+ export declare const CashcowGetStoreMailbox: {
2
+ declare: ({
3
+ displayName: string;
4
+ name: string;
5
+ type: string;
6
+ default: number;
7
+ description: string;
8
+ displayOptions: {
9
+ show: {
10
+ resource: string[];
11
+ operation: string[];
12
+ };
13
+ };
14
+ options?: undefined;
15
+ } | {
16
+ displayName: string;
17
+ name: string;
18
+ type: string;
19
+ default: string;
20
+ options: {
21
+ name: string;
22
+ value: string;
23
+ }[];
24
+ description: string;
25
+ displayOptions: {
26
+ show: {
27
+ resource: string[];
28
+ operation: string[];
29
+ };
30
+ };
31
+ } | {
32
+ displayName: string;
33
+ name: string;
34
+ type: string;
35
+ default: string;
36
+ description: string;
37
+ displayOptions: {
38
+ show: {
39
+ resource: string[];
40
+ operation: string[];
41
+ };
42
+ };
43
+ options?: undefined;
44
+ })[];
45
+ process: (params: any, i: number, getNodeParameter: (parameterName: string, itemIndex: number, fallbackValue?: any) => string | number | boolean | object) => any;
46
+ };
@@ -0,0 +1,166 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CashcowGetStoreMailbox = void 0;
4
+ exports.CashcowGetStoreMailbox = {
5
+ declare: [
6
+ {
7
+ displayName: 'Page',
8
+ name: 'page',
9
+ type: 'number',
10
+ default: 1,
11
+ description: 'Page number for pagination (starting from 1)',
12
+ displayOptions: { show: { resource: ['store'], operation: ['get_store_mailbox'] } },
13
+ },
14
+ {
15
+ displayName: 'Page Size',
16
+ name: 'page_size',
17
+ type: 'number',
18
+ default: 20,
19
+ description: 'Number of messages per page (max: 100)',
20
+ displayOptions: { show: { resource: ['store'], operation: ['get_store_mailbox'] } },
21
+ },
22
+ {
23
+ displayName: 'Message Type',
24
+ name: 'message_type',
25
+ type: 'options',
26
+ default: 'all',
27
+ options: [
28
+ { name: 'All Messages', value: 'all' },
29
+ { name: 'Customer Messages', value: 'customer' },
30
+ { name: 'System Messages', value: 'system' },
31
+ { name: 'Support Messages', value: 'support' },
32
+ { name: 'Order Related', value: 'order' },
33
+ { name: 'Product Related', value: 'product' },
34
+ ],
35
+ description: 'Type of messages to retrieve',
36
+ displayOptions: { show: { resource: ['store'], operation: ['get_store_mailbox'] } },
37
+ },
38
+ {
39
+ displayName: 'Date From',
40
+ name: 'date_from',
41
+ type: 'dateTime',
42
+ default: '',
43
+ description: 'Filter messages from this date (ISO format)',
44
+ displayOptions: { show: { resource: ['store'], operation: ['get_store_mailbox'] } },
45
+ },
46
+ {
47
+ displayName: 'Date To',
48
+ name: 'date_to',
49
+ type: 'dateTime',
50
+ default: '',
51
+ description: 'Filter messages until this date (ISO format)',
52
+ displayOptions: { show: { resource: ['store'], operation: ['get_store_mailbox'] } },
53
+ },
54
+ {
55
+ displayName: 'Read Status',
56
+ name: 'read_status',
57
+ type: 'options',
58
+ default: 'all',
59
+ options: [
60
+ { name: 'All Messages', value: 'all' },
61
+ { name: 'Read Only', value: 'read' },
62
+ { name: 'Unread Only', value: 'unread' },
63
+ ],
64
+ description: 'Filter by read status',
65
+ displayOptions: { show: { resource: ['store'], operation: ['get_store_mailbox'] } },
66
+ },
67
+ {
68
+ displayName: 'Customer ID',
69
+ name: 'customer_id',
70
+ type: 'string',
71
+ default: '',
72
+ description: 'Filter messages by specific customer ID',
73
+ displayOptions: { show: { resource: ['store'], operation: ['get_store_mailbox'] } },
74
+ },
75
+ {
76
+ displayName: 'Search Query',
77
+ name: 'search_query',
78
+ type: 'string',
79
+ default: '',
80
+ description: 'Search within message content',
81
+ displayOptions: { show: { resource: ['store'], operation: ['get_store_mailbox'] } },
82
+ },
83
+ {
84
+ displayName: 'Order By',
85
+ name: 'order_by',
86
+ type: 'options',
87
+ default: 'date_desc',
88
+ options: [
89
+ { name: 'Date (Newest First)', value: 'date_desc' },
90
+ { name: 'Date (Oldest First)', value: 'date_asc' },
91
+ { name: 'Customer Name', value: 'customer_name' },
92
+ { name: 'Message Type', value: 'message_type' },
93
+ { name: 'Read Status', value: 'read_status' },
94
+ ],
95
+ description: 'Sort order for messages',
96
+ displayOptions: { show: { resource: ['store'], operation: ['get_store_mailbox'] } },
97
+ },
98
+ ],
99
+ process: (params, i, getNodeParameter) => {
100
+ const page = getNodeParameter('page', i, 1);
101
+ const pageSize = getNodeParameter('page_size', i, 20);
102
+ if (page < 1)
103
+ throw new Error('Page number must be 1 or greater');
104
+ if (pageSize < 1 || pageSize > 100)
105
+ throw new Error('Page size must be between 1 and 100');
106
+ params.page = page;
107
+ params.page_size = pageSize;
108
+ try {
109
+ const messageType = getNodeParameter('message_type', i, 'all');
110
+ if (messageType && messageType !== 'all') {
111
+ params.message_type = messageType;
112
+ }
113
+ }
114
+ catch { }
115
+ try {
116
+ const readStatus = getNodeParameter('read_status', i, 'all');
117
+ if (readStatus && readStatus !== 'all') {
118
+ params.read_status = readStatus;
119
+ }
120
+ }
121
+ catch { }
122
+ try {
123
+ const customerId = getNodeParameter('customer_id', i, '');
124
+ if (customerId && customerId.trim() !== '') {
125
+ params.customer_id = customerId.trim();
126
+ }
127
+ }
128
+ catch { }
129
+ try {
130
+ const searchQuery = getNodeParameter('search_query', i, '');
131
+ if (searchQuery && searchQuery.trim() !== '') {
132
+ params.search_query = searchQuery.trim();
133
+ }
134
+ }
135
+ catch { }
136
+ try {
137
+ const orderBy = getNodeParameter('order_by', i, 'date_desc');
138
+ if (orderBy) {
139
+ params.order_by = orderBy;
140
+ }
141
+ }
142
+ catch { }
143
+ try {
144
+ const dateFrom = getNodeParameter('date_from', i, '');
145
+ if (dateFrom && dateFrom.trim() !== '') {
146
+ const fromDate = new Date(dateFrom);
147
+ if (!isNaN(fromDate.getTime())) {
148
+ params.date_from = fromDate.toISOString();
149
+ }
150
+ }
151
+ }
152
+ catch { }
153
+ try {
154
+ const dateTo = getNodeParameter('date_to', i, '');
155
+ if (dateTo && dateTo.trim() !== '') {
156
+ const toDate = new Date(dateTo);
157
+ if (!isNaN(toDate.getTime())) {
158
+ params.date_to = toDate.toISOString();
159
+ }
160
+ }
161
+ }
162
+ catch { }
163
+ return params;
164
+ }
165
+ };
166
+ //# sourceMappingURL=cashcow-get-store-mailbox.constant.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cashcow-get-store-mailbox.constant.js","sourceRoot":"","sources":["../../../../nodes/Cashcow/constants/cashcow-get-store-mailbox.constant.ts"],"names":[],"mappings":";;;AAAa,QAAA,sBAAsB,GAAG;IAClC,OAAO,EAAE;QACL;YACI,WAAW,EAAE,MAAM;YACnB,IAAI,EAAE,MAAM;YACZ,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,CAAC;YACV,WAAW,EAAE,8CAA8C;YAC3D,cAAc,EAAE,EAAE,IAAI,EAAE,EAAE,QAAQ,EAAE,CAAC,OAAO,CAAC,EAAE,SAAS,EAAE,CAAC,mBAAmB,CAAC,EAAE,EAAE;SACtF;QACD;YACI,WAAW,EAAE,WAAW;YACxB,IAAI,EAAE,WAAW;YACjB,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,EAAE;YACX,WAAW,EAAE,wC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