idosell 0.1.15 → 0.2.1
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 +34 -0
- package/dist/gates.def.js +465 -363
- package/dist/gates.js +56 -26
- package/dist/helpers.js +8 -0
- package/dist/index.js +1 -1
- package/dist/methods/deleteClients.js +6 -0
- package/dist/methods/deleteResponsibilityEntities.js +6 -0
- package/dist/methods/getClientsBalance.js +1 -2
- package/dist/methods/getDiscountsGroups.js +0 -1
- package/dist/methods/getOrdersAnalytics.js +0 -4
- package/dist/methods/getProductsCodeExistence.js +2 -5
- package/dist/methods/getProductsMarketingZones.js +2 -8
- package/dist/methods/getProductsOmnibusPrices.js +2 -7
- package/dist/methods/getProductsReservations.js +2 -4
- package/dist/methods/getProductsStocks.js +2 -4
- package/dist/methods/getProductsStrikethroughPrices.js +2 -8
- package/dist/methods/getResponsibilityEntities.js +6 -0
- package/dist/methods/getShopsCurrencies.js +6 -0
- package/dist/methods/getShopsLanguages.js +6 -0
- package/dist/methods/postResponsibilityEntities.js +11 -0
- package/dist/methods/putProductsStrikethroughPrices.js +0 -5
- package/dist/methods/putResponsibilityEntities.js +11 -0
- package/dist/methods/{getClientsCrm.js → searchClientsCrm.js} +1 -1
- package/dist/methods/{getClientsGiftcards.js → searchClientsGiftcards.js} +1 -1
- package/dist/methods/{getClientsNewsletterEmailShops.js → searchClientsNewsletterEmail.js} +1 -1
- package/dist/methods/{getClientsNewsletterEmailSMS.js → searchClientsNewsletterSms.js} +1 -1
- package/dist/methods/{listOrders.js → searchOrders.js} +1 -1
- package/dist/methods/{getOrdersOpinions.js → searchOrdersOpinions.js} +1 -1
- package/dist/methods/{listOrdersUnfinished.js → searchOrdersUnfinished.js} +1 -1
- package/dist/methods/{getPackages.js → searchPackages.js} +1 -2
- package/dist/methods/{listProducts.js → searchProducts.js} +1 -1
- package/dist/methods/{getProductsCategoriesIdosell.js → searchProductsCategoriesIdosell.js} +1 -1
- package/dist/methods/{getProductsDeliveryTime.js → searchProductsDeliveryTime.js} +1 -1
- package/dist/methods/{getProductsParameters.js → searchProductsParameters.js} +1 -1
- package/dist/request.js +2 -4
- package/package.json +1 -1
- package/tests/getClientsBalance.test.js +2 -2
- package/tests/getClientsGiftcards.test.js +2 -2
- package/tests/getDiscountsGroups.test.js +1 -1
- package/tests/getOrdersAnalytics.test.js +2 -2
- package/tests/getProductsCodeExistence.test.js +5 -10
- package/tests/getProductsMarketingZones.test.js +6 -11
- package/tests/getProductsOmnibusPrices.test.js +6 -11
- package/tests/getProductsReservations.test.js +6 -11
- package/tests/getProductsStocks.test.js +6 -11
- package/tests/getProductsStrikethroughPrices.test.js +6 -11
- package/tests/getWmsStocksdocumentsDocuments.test.js +1 -1
- package/tests/getWmsStocksdocumentsOpenedDocuments.test.js +1 -1
- package/tests/postResponsibilityEntities.test.js +8 -0
- package/tests/putResponsibilityEntities.test.js +8 -0
- package/tests/searchClientsCrm.test.js +22 -0
- package/tests/searchClientsGiftcards.test.js +7 -0
- package/tests/searchClientsNewsletterEmail.test.js +12 -0
- package/tests/searchClientsNewsletterSms.test.js +17 -0
- package/tests/searchOrders.test.js +62 -0
- package/tests/searchOrdersOpinions.test.js +32 -0
- package/tests/searchOrdersUnfinished.test.js +32 -0
- package/tests/searchPackages.test.js +17 -0
- package/tests/searchProducts.test.js +82 -0
- package/tests/searchProductsCategoriesIdosell.test.js +7 -0
- package/tests/searchProductsDeliveryTime.test.js +17 -0
- package/tests/searchProductsParameters.test.js +17 -0
- package/dist/methods/deleteProductsOpinionsOpinions.js +0 -6
- package/dist/methods/deleteWmsSuppliersSuppliers.js +0 -6
- package/dist/methods/getProductsOpinionsOpinions.js +0 -6
- package/dist/methods/getWmsSuppliersSuppliers.js +0 -6
- package/dist/methods/postProductsBundlesBundles.js +0 -6
- package/dist/methods/postProductsOpinionsOpinions.js +0 -6
- package/dist/methods/putProductsOpinionsOpinions.js +0 -6
- package/dist/methods/putWmsSuppliersSuppliers.js +0 -6
package/dist/gates.js
CHANGED
|
@@ -3,7 +3,7 @@ import postClientsBalance from "./methods/postClientsBalance.js";
|
|
|
3
3
|
import getClients from "./methods/getClients.js";
|
|
4
4
|
import postClients from "./methods/postClients.js";
|
|
5
5
|
import putClients from "./methods/putClients.js";
|
|
6
|
-
import
|
|
6
|
+
import searchClientsCrm from "./methods/searchClientsCrm.js";
|
|
7
7
|
import deleteClientsDeliveryAddress from "./methods/deleteClientsDeliveryAddress.js";
|
|
8
8
|
import getClientsDeliveryAddress from "./methods/getClientsDeliveryAddress.js";
|
|
9
9
|
import postClientsDeliveryAddress from "./methods/postClientsDeliveryAddress.js";
|
|
@@ -11,15 +11,15 @@ import putClientsDeliveryAddress from "./methods/putClientsDeliveryAddress.js";
|
|
|
11
11
|
import putClientsExternalCode from "./methods/putClientsExternalCode.js";
|
|
12
12
|
import putClientsGiftcardsBlock from "./methods/putClientsGiftcardsBlock.js";
|
|
13
13
|
import deleteClientsGiftcards from "./methods/deleteClientsGiftcards.js";
|
|
14
|
-
import getClientsGiftcards from "./methods/getClientsGiftcards.js";
|
|
15
14
|
import postClientsGiftcards from "./methods/postClientsGiftcards.js";
|
|
16
15
|
import putClientsGiftcards from "./methods/putClientsGiftcards.js";
|
|
16
|
+
import searchClientsGiftcards from "./methods/searchClientsGiftcards.js";
|
|
17
17
|
import getClientsGiftcardsTypes from "./methods/getClientsGiftcardsTypes.js";
|
|
18
18
|
import putClientsGiftcardsUnblock from "./methods/putClientsGiftcardsUnblock.js";
|
|
19
19
|
import getClientsMembershipCards from "./methods/getClientsMembershipCards.js";
|
|
20
20
|
import putClientsMembershipCards from "./methods/putClientsMembershipCards.js";
|
|
21
|
-
import
|
|
22
|
-
import
|
|
21
|
+
import searchClientsNewsletterEmail from "./methods/searchClientsNewsletterEmail.js";
|
|
22
|
+
import searchClientsNewsletterSms from "./methods/searchClientsNewsletterSms.js";
|
|
23
23
|
import deleteClientsPayerAddress from "./methods/deleteClientsPayerAddress.js";
|
|
24
24
|
import getClientsPayerAddress from "./methods/getClientsPayerAddress.js";
|
|
25
25
|
import postClientsPayerAddress from "./methods/postClientsPayerAddress.js";
|
|
@@ -40,6 +40,7 @@ import putClientsPricesDiscounts from "./methods/putClientsPricesDiscounts.js";
|
|
|
40
40
|
import getClientsProfitPoints from "./methods/getClientsProfitPoints.js";
|
|
41
41
|
import postClientsProfitPoints from "./methods/postClientsProfitPoints.js";
|
|
42
42
|
import getClientsProvinceList from "./methods/getClientsProvinceList.js";
|
|
43
|
+
import deleteClients from "./methods/deleteClients.js";
|
|
43
44
|
import deleteClientsTagsClear from "./methods/deleteClientsTagsClear.js";
|
|
44
45
|
import deleteClientsTags from "./methods/deleteClientsTags.js";
|
|
45
46
|
import getClientsTags from "./methods/getClientsTags.js";
|
|
@@ -111,12 +112,12 @@ import deleteOrdersImages from "./methods/deleteOrdersImages.js";
|
|
|
111
112
|
import getOrdersImages from "./methods/getOrdersImages.js";
|
|
112
113
|
import postOrdersImages from "./methods/postOrdersImages.js";
|
|
113
114
|
import getOrdersLabels from "./methods/getOrdersLabels.js";
|
|
114
|
-
import
|
|
115
|
+
import searchOrdersOpinions from "./methods/searchOrdersOpinions.js";
|
|
115
116
|
import getOrdersOpinionsRate from "./methods/getOrdersOpinionsRate.js";
|
|
116
|
-
import listOrders from "./methods/listOrders.js";
|
|
117
117
|
import getOrders from "./methods/getOrders.js";
|
|
118
118
|
import postOrders from "./methods/postOrders.js";
|
|
119
119
|
import putOrders from "./methods/putOrders.js";
|
|
120
|
+
import searchOrders from "./methods/searchOrders.js";
|
|
120
121
|
import getOrdersPackages from "./methods/getOrdersPackages.js";
|
|
121
122
|
import postOrdersPackages from "./methods/postOrdersPackages.js";
|
|
122
123
|
import putOrdersPackages from "./methods/putOrdersPackages.js";
|
|
@@ -126,14 +127,14 @@ import putOrdersProductsSerialNumbers from "./methods/putOrdersProductsSerialNum
|
|
|
126
127
|
import putOrdersProfitMargin from "./methods/putOrdersProfitMargin.js";
|
|
127
128
|
import getOrdersProfitability from "./methods/getOrdersProfitability.js";
|
|
128
129
|
import putOrdersShippingCosts from "./methods/putOrdersShippingCosts.js";
|
|
129
|
-
import
|
|
130
|
+
import searchOrdersUnfinished from "./methods/searchOrdersUnfinished.js";
|
|
130
131
|
import getOrdersWarehouse from "./methods/getOrdersWarehouse.js";
|
|
131
132
|
import putOrdersWarehouse from "./methods/putOrdersWarehouse.js";
|
|
132
133
|
import getPackagesLabels from "./methods/getPackagesLabels.js";
|
|
133
134
|
import postPackagesLabels from "./methods/postPackagesLabels.js";
|
|
134
|
-
import getPackages from "./methods/getPackages.js";
|
|
135
135
|
import postPackages from "./methods/postPackages.js";
|
|
136
136
|
import putPackages from "./methods/putPackages.js";
|
|
137
|
+
import searchPackages from "./methods/searchPackages.js";
|
|
137
138
|
import postPaymentsCancel from "./methods/postPaymentsCancel.js";
|
|
138
139
|
import postPaymentsCashback from "./methods/postPaymentsCashback.js";
|
|
139
140
|
import putPaymentsConfirm from "./methods/putPaymentsConfirm.js";
|
|
@@ -159,14 +160,14 @@ import putProductsBundlesProductsQuantity from "./methods/putProductsBundlesProd
|
|
|
159
160
|
import putProductsBundlesRenew from "./methods/putProductsBundlesRenew.js";
|
|
160
161
|
import getProductsCategories from "./methods/getProductsCategories.js";
|
|
161
162
|
import putProductsCategories from "./methods/putProductsCategories.js";
|
|
162
|
-
import
|
|
163
|
+
import searchProductsCategoriesIdosell from "./methods/searchProductsCategoriesIdosell.js";
|
|
163
164
|
import getProductsCodeExistence from "./methods/getProductsCodeExistence.js";
|
|
164
165
|
import postProductsCollections from "./methods/postProductsCollections.js";
|
|
165
166
|
import deleteProductsCollectionsProducts from "./methods/deleteProductsCollectionsProducts.js";
|
|
166
167
|
import postProductsCollectionsProducts from "./methods/postProductsCollectionsProducts.js";
|
|
167
168
|
import putProductsCollectionsProducts from "./methods/putProductsCollectionsProducts.js";
|
|
168
169
|
import putProductsCollectionsRenew from "./methods/putProductsCollectionsRenew.js";
|
|
169
|
-
import
|
|
170
|
+
import searchProductsDeliveryTime from "./methods/searchProductsDeliveryTime.js";
|
|
170
171
|
import getProductsDescriptions from "./methods/getProductsDescriptions.js";
|
|
171
172
|
import putProductsDescriptions from "./methods/putProductsDescriptions.js";
|
|
172
173
|
import putProductsGroupsMainProduct from "./methods/putProductsGroupsMainProduct.js";
|
|
@@ -189,13 +190,13 @@ import postProductsOpinions from "./methods/postProductsOpinions.js";
|
|
|
189
190
|
import putProductsOpinions from "./methods/putProductsOpinions.js";
|
|
190
191
|
import getProductsOpinionsRate from "./methods/getProductsOpinionsRate.js";
|
|
191
192
|
import deleteProductsParameters from "./methods/deleteProductsParameters.js";
|
|
192
|
-
import getProductsParameters from "./methods/getProductsParameters.js";
|
|
193
193
|
import putProductsParameters from "./methods/putProductsParameters.js";
|
|
194
|
+
import searchProductsParameters from "./methods/searchProductsParameters.js";
|
|
194
195
|
import deleteProducts from "./methods/deleteProducts.js";
|
|
195
|
-
import listProducts from "./methods/listProducts.js";
|
|
196
196
|
import getProducts from "./methods/getProducts.js";
|
|
197
197
|
import postProducts from "./methods/postProducts.js";
|
|
198
198
|
import putProducts from "./methods/putProducts.js";
|
|
199
|
+
import searchProducts from "./methods/searchProducts.js";
|
|
199
200
|
import deleteProductsProductsToFacebookCatalog from "./methods/deleteProductsProductsToFacebookCatalog.js";
|
|
200
201
|
import getProductsProductsToFacebookCatalog from "./methods/getProductsProductsToFacebookCatalog.js";
|
|
201
202
|
import postProductsProductsToFacebookCatalog from "./methods/postProductsProductsToFacebookCatalog.js";
|
|
@@ -231,6 +232,10 @@ import getRefundsGetPossibleAutoRefunds from "./methods/getRefundsGetPossibleAut
|
|
|
231
232
|
import getRefundsGetRefundStatus from "./methods/getRefundsGetRefundStatus.js";
|
|
232
233
|
import getRefundsRetrieveRefundsList from "./methods/getRefundsRetrieveRefundsList.js";
|
|
233
234
|
import putRefundsUpdateRefund from "./methods/putRefundsUpdateRefund.js";
|
|
235
|
+
import getResponsibilityEntities from "./methods/getResponsibilityEntities.js";
|
|
236
|
+
import postResponsibilityEntities from "./methods/postResponsibilityEntities.js";
|
|
237
|
+
import putResponsibilityEntities from "./methods/putResponsibilityEntities.js";
|
|
238
|
+
import deleteResponsibilityEntities from "./methods/deleteResponsibilityEntities.js";
|
|
234
239
|
import getReturns from "./methods/getReturns.js";
|
|
235
240
|
import postReturns from "./methods/postReturns.js";
|
|
236
241
|
import putReturns from "./methods/putReturns.js";
|
|
@@ -239,6 +244,8 @@ import getReturnsStatuses from "./methods/getReturnsStatuses.js";
|
|
|
239
244
|
import getRma from "./methods/getRma.js";
|
|
240
245
|
import putRma from "./methods/putRma.js";
|
|
241
246
|
import getRmaStatuses from "./methods/getRmaStatuses.js";
|
|
247
|
+
import getShopsCurrencies from "./methods/getShopsCurrencies.js";
|
|
248
|
+
import getShopsLanguages from "./methods/getShopsLanguages.js";
|
|
242
249
|
import deleteSizecharts from "./methods/deleteSizecharts.js";
|
|
243
250
|
import getSizecharts from "./methods/getSizecharts.js";
|
|
244
251
|
import putSizecharts from "./methods/putSizecharts.js";
|
|
@@ -304,7 +311,7 @@ const gates = {
|
|
|
304
311
|
getClients,
|
|
305
312
|
postClients,
|
|
306
313
|
putClients,
|
|
307
|
-
|
|
314
|
+
searchClientsCrm,
|
|
308
315
|
deleteClientsDeliveryAddress,
|
|
309
316
|
getClientsDeliveryAddress,
|
|
310
317
|
postClientsDeliveryAddress,
|
|
@@ -312,15 +319,15 @@ const gates = {
|
|
|
312
319
|
putClientsExternalCode,
|
|
313
320
|
putClientsGiftcardsBlock,
|
|
314
321
|
deleteClientsGiftcards,
|
|
315
|
-
getClientsGiftcards,
|
|
316
322
|
postClientsGiftcards,
|
|
317
323
|
putClientsGiftcards,
|
|
324
|
+
searchClientsGiftcards,
|
|
318
325
|
getClientsGiftcardsTypes,
|
|
319
326
|
putClientsGiftcardsUnblock,
|
|
320
327
|
getClientsMembershipCards,
|
|
321
328
|
putClientsMembershipCards,
|
|
322
|
-
|
|
323
|
-
|
|
329
|
+
searchClientsNewsletterEmail,
|
|
330
|
+
searchClientsNewsletterSms,
|
|
324
331
|
deleteClientsPayerAddress,
|
|
325
332
|
getClientsPayerAddress,
|
|
326
333
|
postClientsPayerAddress,
|
|
@@ -341,6 +348,7 @@ const gates = {
|
|
|
341
348
|
getClientsProfitPoints,
|
|
342
349
|
postClientsProfitPoints,
|
|
343
350
|
getClientsProvinceList,
|
|
351
|
+
deleteClients,
|
|
344
352
|
deleteClientsTagsClear,
|
|
345
353
|
deleteClientsTags,
|
|
346
354
|
getClientsTags,
|
|
@@ -412,12 +420,12 @@ const gates = {
|
|
|
412
420
|
getOrdersImages,
|
|
413
421
|
postOrdersImages,
|
|
414
422
|
getOrdersLabels,
|
|
415
|
-
|
|
423
|
+
searchOrdersOpinions,
|
|
416
424
|
getOrdersOpinionsRate,
|
|
417
|
-
listOrders,
|
|
418
425
|
getOrders,
|
|
419
426
|
postOrders,
|
|
420
427
|
putOrders,
|
|
428
|
+
searchOrders,
|
|
421
429
|
getOrdersPackages,
|
|
422
430
|
postOrdersPackages,
|
|
423
431
|
putOrdersPackages,
|
|
@@ -427,14 +435,14 @@ const gates = {
|
|
|
427
435
|
putOrdersProfitMargin,
|
|
428
436
|
getOrdersProfitability,
|
|
429
437
|
putOrdersShippingCosts,
|
|
430
|
-
|
|
438
|
+
searchOrdersUnfinished,
|
|
431
439
|
getOrdersWarehouse,
|
|
432
440
|
putOrdersWarehouse,
|
|
433
441
|
getPackagesLabels,
|
|
434
442
|
postPackagesLabels,
|
|
435
|
-
getPackages,
|
|
436
443
|
postPackages,
|
|
437
444
|
putPackages,
|
|
445
|
+
searchPackages,
|
|
438
446
|
postPaymentsCancel,
|
|
439
447
|
postPaymentsCashback,
|
|
440
448
|
putPaymentsConfirm,
|
|
@@ -460,14 +468,14 @@ const gates = {
|
|
|
460
468
|
putProductsBundlesRenew,
|
|
461
469
|
getProductsCategories,
|
|
462
470
|
putProductsCategories,
|
|
463
|
-
|
|
471
|
+
searchProductsCategoriesIdosell,
|
|
464
472
|
getProductsCodeExistence,
|
|
465
473
|
postProductsCollections,
|
|
466
474
|
deleteProductsCollectionsProducts,
|
|
467
475
|
postProductsCollectionsProducts,
|
|
468
476
|
putProductsCollectionsProducts,
|
|
469
477
|
putProductsCollectionsRenew,
|
|
470
|
-
|
|
478
|
+
searchProductsDeliveryTime,
|
|
471
479
|
getProductsDescriptions,
|
|
472
480
|
putProductsDescriptions,
|
|
473
481
|
putProductsGroupsMainProduct,
|
|
@@ -490,13 +498,13 @@ const gates = {
|
|
|
490
498
|
putProductsOpinions,
|
|
491
499
|
getProductsOpinionsRate,
|
|
492
500
|
deleteProductsParameters,
|
|
493
|
-
getProductsParameters,
|
|
494
501
|
putProductsParameters,
|
|
502
|
+
searchProductsParameters,
|
|
495
503
|
deleteProducts,
|
|
496
|
-
listProducts,
|
|
497
504
|
getProducts,
|
|
498
505
|
postProducts,
|
|
499
506
|
putProducts,
|
|
507
|
+
searchProducts,
|
|
500
508
|
deleteProductsProductsToFacebookCatalog,
|
|
501
509
|
getProductsProductsToFacebookCatalog,
|
|
502
510
|
postProductsProductsToFacebookCatalog,
|
|
@@ -532,6 +540,10 @@ const gates = {
|
|
|
532
540
|
getRefundsGetRefundStatus,
|
|
533
541
|
getRefundsRetrieveRefundsList,
|
|
534
542
|
putRefundsUpdateRefund,
|
|
543
|
+
getResponsibilityEntities,
|
|
544
|
+
postResponsibilityEntities,
|
|
545
|
+
putResponsibilityEntities,
|
|
546
|
+
deleteResponsibilityEntities,
|
|
535
547
|
getReturns,
|
|
536
548
|
postReturns,
|
|
537
549
|
putReturns,
|
|
@@ -540,6 +552,8 @@ const gates = {
|
|
|
540
552
|
getRma,
|
|
541
553
|
putRma,
|
|
542
554
|
getRmaStatuses,
|
|
555
|
+
getShopsCurrencies,
|
|
556
|
+
getShopsLanguages,
|
|
543
557
|
deleteSizecharts,
|
|
544
558
|
getSizecharts,
|
|
545
559
|
putSizecharts,
|
|
@@ -598,8 +612,24 @@ const gates = {
|
|
|
598
612
|
deleteWmsSuppliers,
|
|
599
613
|
getWmsSuppliers,
|
|
600
614
|
putWmsSuppliers,
|
|
615
|
+
listProducts: searchProducts,
|
|
616
|
+
listOrders: searchOrders,
|
|
617
|
+
listOrdersUnfinished: searchOrdersUnfinished,
|
|
618
|
+
getClientsGiftcards: searchClientsGiftcards,
|
|
619
|
+
getClientsCrm: searchClientsCrm,
|
|
620
|
+
getClientsNewsletterEmailShops: searchClientsNewsletterEmail,
|
|
621
|
+
getClientsNewsletterEmailSMS: searchClientsNewsletterSms,
|
|
622
|
+
getOrdersOpinions: searchOrdersOpinions,
|
|
623
|
+
getPackages: searchPackages,
|
|
624
|
+
getProductsCategoriesIdosell: searchProductsCategoriesIdosell,
|
|
625
|
+
getProductsDeliveryTime: searchProductsDeliveryTime,
|
|
626
|
+
getProductsParameters: searchProductsParameters,
|
|
601
627
|
}
|
|
602
628
|
|
|
603
629
|
export const gateProxy = {
|
|
604
|
-
get: (object, property) =>
|
|
605
|
-
|
|
630
|
+
get: (object, property) => {
|
|
631
|
+
if (property === "then") return object;
|
|
632
|
+
if (!gates[property]) throw new Error("Invalid gate: " + property);
|
|
633
|
+
return gates[property](object);
|
|
634
|
+
}
|
|
635
|
+
}
|
package/dist/helpers.js
CHANGED
|
@@ -172,6 +172,14 @@ export const getProductIdent = (productId, sizeId, type = 'id') => {
|
|
|
172
172
|
return params;
|
|
173
173
|
}
|
|
174
174
|
|
|
175
|
+
export const getProductIdentList = (productIds, identType = 'id') => {
|
|
176
|
+
if (!Array.isArray(productIds)) productIds = [ productIds ];
|
|
177
|
+
return {
|
|
178
|
+
identType,
|
|
179
|
+
products: productIds
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
|
|
175
183
|
const TEXT_NODES = {
|
|
176
184
|
name: {
|
|
177
185
|
main: 'productNames',
|
package/dist/index.js
CHANGED
|
@@ -4,9 +4,8 @@ import { dateRange, page } from "../helpers.js";
|
|
|
4
4
|
export default (object) => {
|
|
5
5
|
object.gate = { method: 'get', node: '/clients/balance' };
|
|
6
6
|
object.custom = {
|
|
7
|
-
lastPurchased: dateRange({"nodeName":"
|
|
7
|
+
lastPurchased: dateRange({"nodeName":"lastPurchaseDate","fromName":"from","toName":"to"}),
|
|
8
8
|
page
|
|
9
9
|
};
|
|
10
|
-
object.snakeCase = true;
|
|
11
10
|
return new Proxy(object, paramsProxy);
|
|
12
11
|
}
|
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
import { paramsProxy } from "../params.js";
|
|
2
|
-
import { arrayOfObjects } from "../helpers.js";
|
|
3
2
|
|
|
4
3
|
export default (object) => {
|
|
5
4
|
object.gate = { method: 'get', node: '/orders/analytics' };
|
|
6
|
-
object.custom = {
|
|
7
|
-
serialNumbers: arrayOfObjects("orders", "orderSerialNumber")
|
|
8
|
-
};
|
|
9
5
|
return new Proxy(object, paramsProxy);
|
|
10
6
|
}
|
|
@@ -1,13 +1,10 @@
|
|
|
1
1
|
import { paramsProxy } from "../params.js";
|
|
2
|
-
import {
|
|
2
|
+
import { getProductIdentList } from "../helpers.js";
|
|
3
3
|
|
|
4
4
|
export default (object) => {
|
|
5
5
|
object.gate = { method: 'get', node: '/products/codeExistence' };
|
|
6
6
|
object.custom = {
|
|
7
|
-
|
|
8
|
-
externalCodes: arrayOfObjects("products", "productId", {"productIdentType":"codeExtern"}),
|
|
9
|
-
producerCodes: arrayOfObjects("products", "productId", {"productIdentType":"codeProducer"}),
|
|
10
|
-
deliverers: arrayOfObjects("products", "delivererId", {"productIdentType":"codeDeliverer"})
|
|
7
|
+
productId: getProductIdentList
|
|
11
8
|
};
|
|
12
9
|
return new Proxy(object, paramsProxy);
|
|
13
10
|
}
|
|
@@ -1,16 +1,10 @@
|
|
|
1
1
|
import { paramsProxy } from "../params.js";
|
|
2
|
-
import {
|
|
2
|
+
import { getProductIdentList } from "../helpers.js";
|
|
3
3
|
|
|
4
4
|
export default (object) => {
|
|
5
5
|
object.gate = { method: 'get', node: '/products/marketingZones' };
|
|
6
|
-
object.auth.version = 1;
|
|
7
6
|
object.custom = {
|
|
8
|
-
productId:
|
|
7
|
+
productId: getProductIdentList
|
|
9
8
|
};
|
|
10
|
-
object.appendable = {
|
|
11
|
-
except: [],
|
|
12
|
-
arrayNode: "products",
|
|
13
|
-
index: 0
|
|
14
|
-
}
|
|
15
9
|
return new Proxy(object, paramsProxy);
|
|
16
10
|
}
|
|
@@ -1,15 +1,10 @@
|
|
|
1
1
|
import { paramsProxy } from "../params.js";
|
|
2
|
-
import {
|
|
2
|
+
import { getProductIdentList } from "../helpers.js";
|
|
3
3
|
|
|
4
4
|
export default (object) => {
|
|
5
5
|
object.gate = { method: 'get', node: '/products/omnibusPrices' };
|
|
6
6
|
object.custom = {
|
|
7
|
-
productId:
|
|
7
|
+
productId: getProductIdentList
|
|
8
8
|
};
|
|
9
|
-
object.appendable = {
|
|
10
|
-
except: [],
|
|
11
|
-
arrayNode: "products",
|
|
12
|
-
index: 0
|
|
13
|
-
}
|
|
14
9
|
return new Proxy(object, paramsProxy);
|
|
15
10
|
}
|
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
import { paramsProxy } from "../params.js";
|
|
2
|
-
import {
|
|
2
|
+
import { getProductIdentList } from "../helpers.js";
|
|
3
3
|
|
|
4
4
|
export default (object) => {
|
|
5
5
|
object.gate = { method: 'get', node: '/products/reservations' };
|
|
6
6
|
object.custom = {
|
|
7
|
-
|
|
8
|
-
externalCodes: arrayOfObjects("productsIdents", "identValue", {"identType":"codeExtern"}),
|
|
9
|
-
producerCodes: arrayOfObjects("productsIdents", "identValue", {"identType":"codeProducer"})
|
|
7
|
+
productId: getProductIdentList
|
|
10
8
|
};
|
|
11
9
|
return new Proxy(object, paramsProxy);
|
|
12
10
|
}
|
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
import { paramsProxy } from "../params.js";
|
|
2
|
-
import {
|
|
2
|
+
import { getProductIdentList } from "../helpers.js";
|
|
3
3
|
|
|
4
4
|
export default (object) => {
|
|
5
5
|
object.gate = { method: 'get', node: '/products/stocks' };
|
|
6
6
|
object.custom = {
|
|
7
|
-
|
|
8
|
-
externalCodes: arrayOfObjects("products", "identValue", {"identType":"codeExtern"}),
|
|
9
|
-
producerCodes: arrayOfObjects("products", "identValue", {"identType":"codeProducer"})
|
|
7
|
+
productId: getProductIdentList
|
|
10
8
|
};
|
|
11
9
|
return new Proxy(object, paramsProxy);
|
|
12
10
|
}
|
|
@@ -1,16 +1,10 @@
|
|
|
1
1
|
import { paramsProxy } from "../params.js";
|
|
2
|
-
import {
|
|
2
|
+
import { getProductIdentList } from "../helpers.js";
|
|
3
3
|
|
|
4
4
|
export default (object) => {
|
|
5
5
|
object.gate = { method: 'get', node: '/products/strikethroughPrices' };
|
|
6
|
-
object.auth.version = 1;
|
|
7
6
|
object.custom = {
|
|
8
|
-
productId:
|
|
7
|
+
productId: getProductIdentList
|
|
9
8
|
};
|
|
10
|
-
object.appendable = {
|
|
11
|
-
except: [],
|
|
12
|
-
arrayNode: "products",
|
|
13
|
-
index: 0
|
|
14
|
-
}
|
|
15
9
|
return new Proxy(object, paramsProxy);
|
|
16
10
|
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { paramsProxy } from "../params.js";
|
|
2
|
+
|
|
3
|
+
export default (object) => {
|
|
4
|
+
object.gate = { method: 'post', node: '/responsibility/entities' };
|
|
5
|
+
object.appendable = {
|
|
6
|
+
except: ["type"],
|
|
7
|
+
arrayNode: "entities",
|
|
8
|
+
index: 0
|
|
9
|
+
}
|
|
10
|
+
return new Proxy(object, paramsProxy);
|
|
11
|
+
}
|
|
@@ -2,10 +2,5 @@ import { paramsProxy } from "../params.js";
|
|
|
2
2
|
|
|
3
3
|
export default (object) => {
|
|
4
4
|
object.gate = { method: 'put', node: '/products/strikethroughPrices' };
|
|
5
|
-
object.appendable = {
|
|
6
|
-
except: [],
|
|
7
|
-
arrayNode: "products",
|
|
8
|
-
index: 0
|
|
9
|
-
}
|
|
10
5
|
return new Proxy(object, paramsProxy);
|
|
11
6
|
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { paramsProxy } from "../params.js";
|
|
2
|
+
|
|
3
|
+
export default (object) => {
|
|
4
|
+
object.gate = { method: 'put', node: '/responsibility/entities' };
|
|
5
|
+
object.appendable = {
|
|
6
|
+
except: ["type"],
|
|
7
|
+
arrayNode: "entities",
|
|
8
|
+
index: 0
|
|
9
|
+
}
|
|
10
|
+
return new Proxy(object, paramsProxy);
|
|
11
|
+
}
|
|
@@ -2,7 +2,7 @@ import { paramsProxy } from "../params.js";
|
|
|
2
2
|
import { dateRange, page } from "../helpers.js";
|
|
3
3
|
|
|
4
4
|
export default (object) => {
|
|
5
|
-
object.gate = { method: '
|
|
5
|
+
object.gate = { method: 'post', node: '/clients/crm/search' };
|
|
6
6
|
object.custom = {
|
|
7
7
|
registered: dateRange({"nodeName":"clientRegistrationDate","fromName":"clientRegistrationDateBegin","toName":"clientRegistrationDateEnd"}),
|
|
8
8
|
lastLoggedIn: dateRange({"nodeName":"clientLastLoginDate","fromName":"clientLastLoginDateBegin","toName":"clientLastLoginDateEnd"}),
|
|
@@ -2,7 +2,7 @@ import { paramsProxy } from "../params.js";
|
|
|
2
2
|
import { arrayOfObjects } from "../helpers.js";
|
|
3
3
|
|
|
4
4
|
export default (object) => {
|
|
5
|
-
object.gate = { method: '
|
|
5
|
+
object.gate = { method: 'post', node: '/clients/giftcards/search' };
|
|
6
6
|
object.custom = {
|
|
7
7
|
ids: arrayOfObjects("giftCards", "id"),
|
|
8
8
|
number: arrayOfObjects("giftCards", "number"),
|
|
@@ -2,7 +2,7 @@ import { paramsProxy } from "../params.js";
|
|
|
2
2
|
import { dateRange, page } from "../helpers.js";
|
|
3
3
|
|
|
4
4
|
export default (object) => {
|
|
5
|
-
object.gate = { method: '
|
|
5
|
+
object.gate = { method: 'post', node: '/clients/newsletter/email/search' };
|
|
6
6
|
object.custom = {
|
|
7
7
|
dates: dateRange({"nodeName":"date","fromName":"from","toName":"to"}),
|
|
8
8
|
page
|
|
@@ -2,7 +2,7 @@ import { paramsProxy } from "../params.js";
|
|
|
2
2
|
import { dateRange, page } from "../helpers.js";
|
|
3
3
|
|
|
4
4
|
export default (object) => {
|
|
5
|
-
object.gate = { method: '
|
|
5
|
+
object.gate = { method: 'post', node: '/clients/newsletter/sms/search' };
|
|
6
6
|
object.custom = {
|
|
7
7
|
dates: dateRange({"nodeName":"date","fromName":"from","toName":"to"}),
|
|
8
8
|
page
|
|
@@ -2,7 +2,7 @@ import { paramsProxy } from "../params.js";
|
|
|
2
2
|
import { nest, dateRangeType, orderBy, arrayOfObjects, orderSource, page } from "../helpers.js";
|
|
3
3
|
|
|
4
4
|
export default (object) => {
|
|
5
|
-
object.gate = { method: 'post', node: '/orders/orders/
|
|
5
|
+
object.gate = { method: 'post', node: '/orders/orders/search' };
|
|
6
6
|
object.custom = {
|
|
7
7
|
shopIds: nest("shopsIds", "orderSource", {}, true),
|
|
8
8
|
byPackageNumbers: nest("packagesNumbers", "packages", {"orderHasPackageNumbers":"y"}, true),
|
|
@@ -2,7 +2,7 @@ import { paramsProxy } from "../params.js";
|
|
|
2
2
|
import { nest, dateRange, orderBy, page } from "../helpers.js";
|
|
3
3
|
|
|
4
4
|
export default (object) => {
|
|
5
|
-
object.gate = { method: '
|
|
5
|
+
object.gate = { method: 'post', node: '/orders/opinions/search' };
|
|
6
6
|
object.custom = {
|
|
7
7
|
orderId: nest("value", "orders", {"type":"id"}),
|
|
8
8
|
orderSerialNumber: nest("value", "orders", {"type":"serialNumber"}),
|
|
@@ -2,7 +2,7 @@ import { paramsProxy } from "../params.js";
|
|
|
2
2
|
import { nest, dateRangeType, orderBy, arrayOfObjects, orderSource, page } from "../helpers.js";
|
|
3
3
|
|
|
4
4
|
export default (object) => {
|
|
5
|
-
object.gate = { method: 'post', node: '/orders/unfinished/
|
|
5
|
+
object.gate = { method: 'post', node: '/orders/unfinished/search' };
|
|
6
6
|
object.custom = {
|
|
7
7
|
shopIds: nest("shopsIds", "orderSource", {}, true),
|
|
8
8
|
byPackageNumbers: nest("packagesNumbers", "packages", {"orderHasPackageNumbers":"y"}, true),
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { paramsProxy } from "../params.js";
|
|
2
2
|
|
|
3
3
|
export default (object) => {
|
|
4
|
-
object.gate = { method: '
|
|
5
|
-
object.auth.version = 1;
|
|
4
|
+
object.gate = { method: 'post', node: '/packages/packages/search' };
|
|
6
5
|
object.custom = {
|
|
7
6
|
orders: (orderSerialNumbers) => ({ eventType: "order", eventsIds: Array.isArray(orderSerialNumbers) ? orderSerialNumbers : [orderSerialNumbers] }),
|
|
8
7
|
rma: (rmaIds) => ({ eventType: "rma", eventsIds: Array.isArray(rmaIds) ? rmaIds : [rmaIds] }),
|
|
@@ -2,7 +2,7 @@ import { paramsProxy } from "../params.js";
|
|
|
2
2
|
import { nest, dateRangeType, orderBy, arrayOfObjects, page } from "../helpers.js";
|
|
3
3
|
|
|
4
4
|
export default (object) => {
|
|
5
|
-
object.gate = { method: 'post', node: '/products/products/
|
|
5
|
+
object.gate = { method: 'post', node: '/products/products/search' };
|
|
6
6
|
object.custom = {
|
|
7
7
|
byMenus: nest("menuItemsIds", "productMenuItems", {}, true),
|
|
8
8
|
byShops: nest("shopsIds", "searchByShops", {}, true),
|
|
@@ -2,7 +2,7 @@ import { paramsProxy } from "../params.js";
|
|
|
2
2
|
import { arrayOfObjects, page } from "../helpers.js";
|
|
3
3
|
|
|
4
4
|
export default (object) => {
|
|
5
|
-
object.gate = { method: '
|
|
5
|
+
object.gate = { method: 'post', node: '/products/categoriesIdosell/search' };
|
|
6
6
|
object.custom = {
|
|
7
7
|
languages: arrayOfObjects("languagesIds", "languageId"),
|
|
8
8
|
page
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { paramsProxy } from "../params.js";
|
|
2
2
|
|
|
3
3
|
export default (object) => {
|
|
4
|
-
object.gate = { method: '
|
|
4
|
+
object.gate = { method: 'post', node: '/products/deliveryTime/search' };
|
|
5
5
|
object.appendable = {
|
|
6
6
|
except: [],
|
|
7
7
|
arrayNode: "products",
|
|
@@ -2,7 +2,7 @@ import { paramsProxy } from "../params.js";
|
|
|
2
2
|
import { page } from "../helpers.js";
|
|
3
3
|
|
|
4
4
|
export default (object) => {
|
|
5
|
-
object.gate = { method: '
|
|
5
|
+
object.gate = { method: 'post', node: '/products/parameters/search' };
|
|
6
6
|
object.custom = {
|
|
7
7
|
page
|
|
8
8
|
};
|