idosell 0.3.6 → 0.3.7

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 (151) hide show
  1. package/changelog.md +6 -0
  2. package/dist/app.d.ts +8 -2
  3. package/dist/gateways.d.ts +195 -191
  4. package/dist/methods/deleteClientsTags.js +1 -1
  5. package/dist/methods/deleteDiscountsRebatesCard.js +1 -1
  6. package/dist/methods/deleteDiscountsRebatesCode.js +1 -1
  7. package/dist/methods/deleteProductsBundlesProducts.js +1 -1
  8. package/dist/methods/deleteProductsCollectionsProducts.js +1 -1
  9. package/dist/methods/deleteProductsImages.js +1 -1
  10. package/dist/methods/getClientsMembershipCards.js +1 -0
  11. package/dist/methods/postClients.js +1 -0
  12. package/dist/methods/postClientsBalance.js +1 -0
  13. package/dist/methods/postClientsDeliveryAddress.js +1 -0
  14. package/dist/methods/postClientsGiftcards.js +1 -0
  15. package/dist/methods/postClientsPayerAddress.js +1 -0
  16. package/dist/methods/postClientsPricelists.js +1 -0
  17. package/dist/methods/postClientsProfitPoints.js +1 -0
  18. package/dist/methods/postClientsTags.js +2 -1
  19. package/dist/methods/postCouriersPickupPoints.js +1 -0
  20. package/dist/methods/postCpa.js +1 -0
  21. package/dist/methods/postCpaCampaign.js +1 -0
  22. package/dist/methods/postDeliveriesRegions.js +1 -0
  23. package/dist/methods/postDiscountsGroups.js +1 -0
  24. package/dist/methods/postDiscountsRebatesCard.js +1 -0
  25. package/dist/methods/postDiscountsRebatesCode.js +1 -0
  26. package/dist/methods/postEntries.js +5 -0
  27. package/dist/methods/postMenu.js +1 -0
  28. package/dist/methods/postOrders.js +1 -0
  29. package/dist/methods/postOrdersDocuments.js +1 -0
  30. package/dist/methods/postOrdersDocumentsCreate.js +1 -0
  31. package/dist/methods/postOrdersImages.js +1 -0
  32. package/dist/methods/postOrdersPackages.js +1 -0
  33. package/dist/methods/postPackages.js +1 -0
  34. package/dist/methods/postPackagesLabels.js +1 -0
  35. package/dist/methods/postPayments.js +1 -0
  36. package/dist/methods/postPaymentsCancel.js +1 -0
  37. package/dist/methods/postPaymentsRepayment.js +1 -0
  38. package/dist/methods/postProducts.js +1 -0
  39. package/dist/methods/postProductsBrands.js +1 -0
  40. package/dist/methods/postProductsBundles.js +1 -1
  41. package/dist/methods/postProductsBundlesProducts.js +1 -1
  42. package/dist/methods/postProductsCollections.js +1 -1
  43. package/dist/methods/postProductsCollectionsProducts.js +1 -1
  44. package/dist/methods/postProductsMarketingPromotion.js +1 -0
  45. package/dist/methods/postProductsOpinions.js +1 -0
  46. package/dist/methods/postProductsRestore.js +2 -1
  47. package/dist/methods/postResponsibilityEntities.js +1 -0
  48. package/dist/methods/postReturns.js +1 -0
  49. package/dist/methods/postSnippets.js +1 -0
  50. package/dist/methods/postSnippetsCampaign.js +1 -0
  51. package/dist/methods/postSnippetsCookies.js +1 -0
  52. package/dist/methods/postVouchers.js +1 -0
  53. package/dist/methods/postWarranties.js +1 -0
  54. package/dist/methods/postWmsStocksdocumentsDocuments.js +1 -0
  55. package/dist/methods/postWmsStocksdocumentsProducts.js +1 -0
  56. package/dist/methods/putClients.js +1 -0
  57. package/dist/methods/putClientsDeliveryAddress.js +1 -0
  58. package/dist/methods/putClientsExternalCode.js +1 -0
  59. package/dist/methods/putClientsGiftcards.js +1 -0
  60. package/dist/methods/putClientsGiftcardsBlock.js +1 -0
  61. package/dist/methods/putClientsGiftcardsUnblock.js +1 -0
  62. package/dist/methods/putClientsPayerAddress.js +1 -0
  63. package/dist/methods/putClientsPricelists.js +1 -0
  64. package/dist/methods/putClientsPricelistsClients.js +1 -0
  65. package/dist/methods/putClientsPricelistsProducts.js +1 -0
  66. package/dist/methods/putClientsPricelistsRename.js +1 -0
  67. package/dist/methods/putConfigVariables.js +1 -0
  68. package/dist/methods/putCouriersPickupPoints.js +1 -0
  69. package/dist/methods/putCpa.js +1 -0
  70. package/dist/methods/putCpaCampaign.js +1 -0
  71. package/dist/methods/putDeliveriesDefaultProfiles.js +1 -0
  72. package/dist/methods/putDiscountsGroups.js +1 -0
  73. package/dist/methods/putDiscountsGroupsProducts.js +1 -0
  74. package/dist/methods/putDiscountsRebatesBlockCard.js +2 -1
  75. package/dist/methods/putDiscountsRebatesUnblockCard.js +2 -1
  76. package/dist/methods/putEntries.js +1 -0
  77. package/dist/methods/putMenu.js +1 -0
  78. package/dist/methods/putMenuFilter.js +1 -0
  79. package/dist/methods/putMenuSort.js +1 -0
  80. package/dist/methods/putOrders.js +1 -0
  81. package/dist/methods/putOrdersCourier.js +1 -0
  82. package/dist/methods/putOrdersDeliveryAddress.js +1 -0
  83. package/dist/methods/putOrdersDevide.js +1 -0
  84. package/dist/methods/putOrdersHandler.js +1 -0
  85. package/dist/methods/putOrdersPackages.js +1 -0
  86. package/dist/methods/putOrdersPickupPoint.js +1 -0
  87. package/dist/methods/putOrdersProductsSerialNumbers.js +1 -0
  88. package/dist/methods/putOrdersShippingCosts.js +1 -0
  89. package/dist/methods/putOrdersWarehouse.js +1 -0
  90. package/dist/methods/putPayments.js +1 -0
  91. package/dist/methods/putPaymentsConfirm.js +1 -0
  92. package/dist/methods/putProducts.js +1 -0
  93. package/dist/methods/putProductsBrands.js +1 -0
  94. package/dist/methods/putProductsBrandsFilter.js +1 -0
  95. package/dist/methods/putProductsBundlesProductsQuantity.js +1 -1
  96. package/dist/methods/putProductsBundlesRenew.js +1 -1
  97. package/dist/methods/putProductsCategories.js +1 -0
  98. package/dist/methods/putProductsCollectionsProducts.js +2 -1
  99. package/dist/methods/putProductsCollectionsRenew.js +2 -1
  100. package/dist/methods/putProductsDescriptions.js +1 -0
  101. package/dist/methods/putProductsGroupsMainProduct.js +1 -0
  102. package/dist/methods/putProductsGroupsOrder.js +1 -0
  103. package/dist/methods/putProductsGroupsSettings.js +1 -0
  104. package/dist/methods/putProductsImages.js +1 -0
  105. package/dist/methods/putProductsMarketingPromotion.js +1 -0
  106. package/dist/methods/putProductsMarketingZones.js +1 -0
  107. package/dist/methods/putProductsOmnibusPrices.js +1 -0
  108. package/dist/methods/putProductsOpinions.js +1 -0
  109. package/dist/methods/putProductsParameters.js +1 -0
  110. package/dist/methods/putProductsSeries.js +1 -0
  111. package/dist/methods/putProductsSeriesFilter.js +1 -0
  112. package/dist/methods/putProductsSizes.js +1 -0
  113. package/dist/methods/putProductsStockQuantity.js +1 -0
  114. package/dist/methods/putProductsStocks.js +1 -0
  115. package/dist/methods/putProductsStrikethroughPrices.js +1 -0
  116. package/dist/methods/putProductsSupplierCode.js +1 -0
  117. package/dist/methods/putProductsSupplierProductData.js +1 -0
  118. package/dist/methods/putRefundsCancelRefund.js +1 -0
  119. package/dist/methods/putRefundsConfirmRefund.js +1 -0
  120. package/dist/methods/putRefundsUpdateRefund.js +1 -0
  121. package/dist/methods/putResponsibilityEntities.js +1 -0
  122. package/dist/methods/putReturns.js +1 -0
  123. package/dist/methods/putReturnsSerialNumber.js +1 -0
  124. package/dist/methods/putRma.js +1 -0
  125. package/dist/methods/putSizecharts.js +1 -0
  126. package/dist/methods/putSizes.js +1 -0
  127. package/dist/methods/putSnippets.js +1 -0
  128. package/dist/methods/putSnippetsCampaign.js +1 -0
  129. package/dist/methods/putSnippetsCookies.js +1 -0
  130. package/dist/methods/putSystemConfig.js +1 -0
  131. package/dist/methods/putSystemCurrencies.js +2 -1
  132. package/dist/methods/putSystemProcessesAutomation.js +1 -0
  133. package/dist/methods/putSystemUnits.js +1 -0
  134. package/dist/methods/putVouchers.js +1 -0
  135. package/dist/methods/putVouchersBlock.js +1 -0
  136. package/dist/methods/putVouchersUnblock.js +1 -0
  137. package/dist/methods/putWarranties.js +1 -0
  138. package/dist/methods/putWarrantiesLanguageData.js +1 -0
  139. package/dist/methods/putWmsStocksdocumentsAcceptMM.js +1 -0
  140. package/dist/methods/putWmsStocksdocumentsClose.js +1 -0
  141. package/dist/methods/putWmsStocksdocumentsDocuments.js +1 -0
  142. package/dist/methods/putWmsStocksdocumentsProducts.js +1 -0
  143. package/dist/methods/putWmsStocksdocumentsRejectMM.js +1 -0
  144. package/dist/methods/putWmsSuppliers.js +1 -0
  145. package/dist/methods/searchPackages.js +1 -1
  146. package/dist/params.js +14 -7
  147. package/dist/request.js +44 -0
  148. package/package.json +1 -1
  149. package/tests/postEntries.test.js +5 -0
  150. package/tests/putRefundsConfirmRefund.test.js +3 -3
  151. package/tests/searchPackages.test.js +5 -0
@@ -1,7 +1,7 @@
1
1
  import { paramsProxy } from "../params.js";
2
2
  export default (object) => {
3
3
  object.gate = { method: 'post', node: '/clients/tags/delete' };
4
- object.rootparams = "params";
4
+ object.rootparams = true;
5
5
  object.appendable = {
6
6
  except: [],
7
7
  arrayNode: "params",
@@ -1,6 +1,6 @@
1
1
  import { paramsProxy } from "../params.js";
2
2
  export default (object) => {
3
3
  object.gate = { method: 'post', node: '/discounts/rebates/card/delete' };
4
- object.rootparams = "campaign_id";
4
+ object.rootparams = true;
5
5
  return new Proxy(object, paramsProxy);
6
6
  };
@@ -1,6 +1,6 @@
1
1
  import { paramsProxy } from "../params.js";
2
2
  export default (object) => {
3
3
  object.gate = { method: 'post', node: '/discounts/rebates/code/delete' };
4
- object.rootparams = "campaign_id";
4
+ object.rootparams = true;
5
5
  return new Proxy(object, paramsProxy);
6
6
  };
@@ -1,7 +1,7 @@
1
1
  import { paramsProxy } from "../params.js";
2
2
  export default (object) => {
3
3
  object.gate = { method: 'post', node: '/products/bundles/products/delete' };
4
- object.rootparams = "params";
4
+ object.rootparams = true;
5
5
  object.appendable = {
6
6
  except: [],
7
7
  arrayNode: "params",
@@ -1,7 +1,7 @@
1
1
  import { paramsProxy } from "../params.js";
2
2
  export default (object) => {
3
3
  object.gate = { method: 'post', node: '/products/collections/products/delete' };
4
- object.rootparams = "params";
4
+ object.rootparams = true;
5
5
  object.appendable = {
6
6
  except: [],
7
7
  arrayNode: "params",
@@ -1,7 +1,7 @@
1
1
  import { paramsProxy } from "../params.js";
2
2
  export default (object) => {
3
3
  object.gate = { method: 'post', node: '/products/images/delete' };
4
- object.rootparams = "params";
4
+ object.rootparams = true;
5
5
  object.appendable = {
6
6
  except: [],
7
7
  arrayNode: "params",
@@ -1,5 +1,6 @@
1
1
  import { paramsProxy } from "../params.js";
2
2
  export default (object) => {
3
3
  object.gate = { method: 'get', node: '/clients/membershipCards' };
4
+ object.req = [{ "any": ["id", "login"] }];
4
5
  return new Proxy(object, paramsProxy);
5
6
  };
@@ -6,6 +6,7 @@ export default (object) => {
6
6
  arrayNode: "clients",
7
7
  index: 0
8
8
  };
9
+ object.req = ["shops", "email", "city", "street", "zipcode", "phone"];
9
10
  object.arrays = ["clients"];
10
11
  return new Proxy(object, paramsProxy);
11
12
  };
@@ -5,5 +5,6 @@ export default (object) => {
5
5
  add: (balance, currency = "PLN") => ({ operation: "add", balance, currency }),
6
6
  remove: (balance, currency = "PLN") => ({ operation: "remove", balance, currency })
7
7
  };
8
+ object.req = ["clientId", "operation", "balance", "currency"];
8
9
  return new Proxy(object, paramsProxy);
9
10
  };
@@ -6,6 +6,7 @@ export default (object) => {
6
6
  arrayNode: "clients",
7
7
  index: 0
8
8
  };
9
+ object.req = ["clientLogin", "shopsIds", "clientDeliveryAddressCity", "clientDeliveryAddressZipCode", "clientDeliveryAddressStreet", "clientDeliveryAddressFirstName", "clientDeliveryAddressLastName"];
9
10
  object.arrays = ["clients"];
10
11
  return new Proxy(object, paramsProxy);
11
12
  };
@@ -6,6 +6,7 @@ export default (object) => {
6
6
  arrayNode: "giftCards",
7
7
  index: 0
8
8
  };
9
+ object.req = ["typeId", "number", "pin", "name", "shops", "balance"];
9
10
  object.arrays = ["giftCards"];
10
11
  return new Proxy(object, paramsProxy);
11
12
  };
@@ -6,6 +6,7 @@ export default (object) => {
6
6
  arrayNode: "payers",
7
7
  index: 0
8
8
  };
9
+ object.req = ["clientId", "payerAddressCountryId", "payerAddressStreet", "payerAddressCity", "payerAddressZipCode", { "any": ["payerAddressFirstName", "payerAddressLastName", "payerAddressFirm"] }];
9
10
  object.arrays = ["payers"];
10
11
  return new Proxy(object, paramsProxy);
11
12
  };
@@ -1,5 +1,6 @@
1
1
  import { paramsProxy } from "../params.js";
2
2
  export default (object) => {
3
3
  object.gate = { method: 'post', node: '/clients/pricelists' };
4
+ object.req = ["priceListName"];
4
5
  return new Proxy(object, paramsProxy);
5
6
  };
@@ -1,5 +1,6 @@
1
1
  import { paramsProxy } from "../params.js";
2
2
  export default (object) => {
3
3
  object.gate = { method: 'post', node: '/clients/profitPoints' };
4
+ object.req = ["client_id", "operation", "score"];
4
5
  return new Proxy(object, paramsProxy);
5
6
  };
@@ -1,12 +1,13 @@
1
1
  import { paramsProxy } from "../params.js";
2
2
  export default (object) => {
3
3
  object.gate = { method: 'post', node: '/clients/tags' };
4
- object.rootparams = "params";
4
+ object.rootparams = true;
5
5
  object.appendable = {
6
6
  except: [],
7
7
  arrayNode: "params",
8
8
  index: 0
9
9
  };
10
+ object.req = ["clientId", "tagName", "tagValue"];
10
11
  object.arrays = ["params"];
11
12
  return new Proxy(object, paramsProxy);
12
13
  };
@@ -6,6 +6,7 @@ export default (object) => {
6
6
  arrayNode: "pickupPoints",
7
7
  index: 0
8
8
  };
9
+ object.req = ["courierId", "address", "pickupPointExternalId", "coordinates"];
9
10
  object.arrays = ["pickupPoints"];
10
11
  return new Proxy(object, paramsProxy);
11
12
  };
@@ -6,6 +6,7 @@ export default (object) => {
6
6
  arrayNode: "cpa",
7
7
  index: 0
8
8
  };
9
+ object.req = ["name", "campaign"];
9
10
  object.arrays = ["cpa"];
10
11
  return new Proxy(object, paramsProxy);
11
12
  };
@@ -6,6 +6,7 @@ export default (object) => {
6
6
  arrayNode: "campaigns",
7
7
  index: 0
8
8
  };
9
+ object.req = ["name", "shop"];
9
10
  object.arrays = ["campaigns"];
10
11
  return new Proxy(object, paramsProxy);
11
12
  };
@@ -1,5 +1,6 @@
1
1
  import { paramsProxy } from "../params.js";
2
2
  export default (object) => {
3
3
  object.gate = { method: 'post', node: '/deliveries/regions' };
4
+ object.req = ["parentRegionId"];
4
5
  return new Proxy(object, paramsProxy);
5
6
  };
@@ -1,5 +1,6 @@
1
1
  import { paramsProxy } from "../params.js";
2
2
  export default (object) => {
3
3
  object.gate = { method: 'post', node: '/discounts/groups' };
4
+ object.req = ["discountGroupName"];
4
5
  return new Proxy(object, paramsProxy);
5
6
  };
@@ -2,5 +2,6 @@ import { paramsProxy } from "../params.js";
2
2
  export default (object) => {
3
3
  object.gate = { method: 'post', node: '/discounts/rebates/card' };
4
4
  object.rootparams = true;
5
+ object.req = ["campaign_id", "card_number"];
5
6
  return new Proxy(object, paramsProxy);
6
7
  };
@@ -2,5 +2,6 @@ import { paramsProxy } from "../params.js";
2
2
  export default (object) => {
3
3
  object.gate = { method: 'post', node: '/discounts/rebates/code' };
4
4
  object.rootparams = true;
5
+ object.req = ["campaign_id", "code_number"];
5
6
  return new Proxy(object, paramsProxy);
6
7
  };
@@ -1,11 +1,16 @@
1
1
  import { paramsProxy } from "../params.js";
2
2
  export default (object) => {
3
3
  object.gate = { method: 'post', node: '/entries/entries' };
4
+ object.custom = {
5
+ blog: () => { const visibleOnSitesList = object.params.visibleOnSitesList ?? []; visibleOnSitesList.push({ siteId: "display_on_blog" }); return { root: { visibleOnSitesList } }; },
6
+ news: () => { const visibleOnSitesList = object.params.visibleOnSitesList ?? []; visibleOnSitesList.push({ sizeId: "display_on_news" }); return { root: { visibleOnSitesList } }; }
7
+ };
4
8
  object.appendable = {
5
9
  except: ["shopId", "date", "visible", "visibleOnSitesList", "products", "pictureData", "titleLinkType", "link"],
6
10
  arrayNode: "langs",
7
11
  index: 0
8
12
  };
13
+ object.req = ["date", "visible", "shopId", "langId", "visibleOnSitesList"];
9
14
  object.arrays = ["visibleOnSitesList", "products", "langs"];
10
15
  return new Proxy(object, paramsProxy);
11
16
  };
@@ -7,6 +7,7 @@ export default (object) => {
7
7
  arrayNode: "menu_list",
8
8
  index: 0
9
9
  };
10
+ object.req = ["shop_id", "menu_id", "lang_data"];
10
11
  object.arrays = ["menu_list"];
11
12
  return new Proxy(object, paramsProxy);
12
13
  };
@@ -6,6 +6,7 @@ export default (object) => {
6
6
  arrayNode: "orders",
7
7
  index: 0
8
8
  };
9
+ object.req = ["stockId", "orderPaymentType", "currencyId", "courierId", "clientLogin", "clientWithoutAccount", "products"];
9
10
  object.arrays = ["orders"];
10
11
  return new Proxy(object, paramsProxy);
11
12
  };
@@ -6,6 +6,7 @@ export default (object) => {
6
6
  arrayNode: "documents",
7
7
  index: 0
8
8
  };
9
+ object.req = ["orderSerialNumber", "name", "pdfBase64", "additionalData"];
9
10
  object.arrays = ["documents"];
10
11
  return new Proxy(object, paramsProxy);
11
12
  };
@@ -1,6 +1,7 @@
1
1
  import { paramsProxy } from "../params.js";
2
2
  export default (object) => {
3
3
  object.gate = { method: 'post', node: '/orders/documents/create' };
4
+ object.req = ["orderSerialNumbers", "documentType"];
4
5
  object.arrays = ["orderSerialNumbers"];
5
6
  return new Proxy(object, paramsProxy);
6
7
  };
@@ -13,6 +13,7 @@ export default (object) => {
13
13
  arrayNode: "images",
14
14
  index: 0
15
15
  };
16
+ object.req = ["order", "images"];
16
17
  object.arrays = ["images"];
17
18
  return new Proxy(object, paramsProxy);
18
19
  };
@@ -6,6 +6,7 @@ export default (object) => {
6
6
  arrayNode: "orderPackages",
7
7
  index: 0
8
8
  };
9
+ object.req = ["eventId", "eventType", "packages"];
9
10
  object.arrays = ["orderPackages"];
10
11
  return new Proxy(object, paramsProxy);
11
12
  };
@@ -6,6 +6,7 @@ export default (object) => {
6
6
  arrayNode: "orderPackages",
7
7
  index: 0
8
8
  };
9
+ object.req = ["orderId", "orderType", "packages"];
9
10
  object.arrays = ["orderPackages"];
10
11
  return new Proxy(object, paramsProxy);
11
12
  };
@@ -6,6 +6,7 @@ export default (object) => {
6
6
  arrayNode: "parcelParametersByPackages",
7
7
  index: 0
8
8
  };
9
+ object.req = ["eventId", "eventType"];
9
10
  object.arrays = ["parcelParameters", "parcelParametersByPackages"];
10
11
  return new Proxy(object, paramsProxy);
11
12
  };
@@ -1,5 +1,6 @@
1
1
  import { paramsProxy } from "../params.js";
2
2
  export default (object) => {
3
3
  object.gate = { method: 'post', node: '/payments/payments' };
4
+ object.req = ["sourceId", "sourceType", "paymentFormId", "value", "type"];
4
5
  return new Proxy(object, paramsProxy);
5
6
  };
@@ -1,5 +1,6 @@
1
1
  import { paramsProxy } from "../params.js";
2
2
  export default (object) => {
3
3
  object.gate = { method: 'post', node: '/payments/cancel' };
4
+ object.req = ["sourceType", "paymentNumber"];
4
5
  return new Proxy(object, paramsProxy);
5
6
  };
@@ -1,5 +1,6 @@
1
1
  import { paramsProxy } from "../params.js";
2
2
  export default (object) => {
3
3
  object.gate = { method: 'post', node: '/payments/repayment' };
4
+ object.req = ["source_id", "source_type", "payment_form_id", "value"];
4
5
  return new Proxy(object, paramsProxy);
5
6
  };
@@ -12,6 +12,7 @@ export default (object) => {
12
12
  arrayNode: "products",
13
13
  index: 0
14
14
  };
15
+ object.req = ["shopsMask"];
15
16
  object.arrays = ["products"];
16
17
  return new Proxy(object, paramsProxy);
17
18
  };
@@ -6,6 +6,7 @@ export default (object) => {
6
6
  arrayNode: "producers",
7
7
  index: 0
8
8
  };
9
+ object.req = ["nameInPanel"];
9
10
  object.arrays = ["producers"];
10
11
  return new Proxy(object, paramsProxy);
11
12
  };
@@ -1,7 +1,7 @@
1
1
  import { paramsProxy } from "../params.js";
2
2
  export default (object) => {
3
3
  object.gate = { method: 'post', node: '/products/bundles/bundles' };
4
- object.rootparams = "params";
4
+ object.rootparams = true;
5
5
  object.appendable = {
6
6
  except: [],
7
7
  arrayNode: "params",
@@ -1,7 +1,7 @@
1
1
  import { paramsProxy } from "../params.js";
2
2
  export default (object) => {
3
3
  object.gate = { method: 'post', node: '/products/bundles/products' };
4
- object.rootparams = "params";
4
+ object.rootparams = true;
5
5
  object.appendable = {
6
6
  except: [],
7
7
  arrayNode: "params",
@@ -1,7 +1,7 @@
1
1
  import { paramsProxy } from "../params.js";
2
2
  export default (object) => {
3
3
  object.gate = { method: 'post', node: '/products/collections' };
4
- object.rootparams = "params";
4
+ object.rootparams = true;
5
5
  object.appendable = {
6
6
  except: [],
7
7
  arrayNode: "params",
@@ -1,7 +1,7 @@
1
1
  import { paramsProxy } from "../params.js";
2
2
  export default (object) => {
3
3
  object.gate = { method: 'post', node: '/products/collections/products' };
4
- object.rootparams = "params";
4
+ object.rootparams = true;
5
5
  object.appendable = {
6
6
  except: [],
7
7
  arrayNode: "params",
@@ -6,6 +6,7 @@ export default (object) => {
6
6
  arrayNode: "promotionElements",
7
7
  index: 0
8
8
  };
9
+ object.req = ["promotionName", "shopsIds", "marketingZones"];
9
10
  object.arrays = ["shopsIds", "promotionElements"];
10
11
  return new Proxy(object, paramsProxy);
11
12
  };
@@ -6,6 +6,7 @@ export default (object) => {
6
6
  arrayNode: "opinions",
7
7
  index: 0
8
8
  };
9
+ object.req = ["products"];
9
10
  object.arrays = ["opinions"];
10
11
  return new Proxy(object, paramsProxy);
11
12
  };
@@ -1,6 +1,7 @@
1
1
  import { paramsProxy } from "../params.js";
2
2
  export default (object) => {
3
3
  object.gate = { method: 'post', node: '/products/restore' };
4
- object.rootparams = "productId";
4
+ object.rootparams = true;
5
+ object.req = ["productId"];
5
6
  return new Proxy(object, paramsProxy);
6
7
  };
@@ -6,6 +6,7 @@ export default (object) => {
6
6
  arrayNode: "entities",
7
7
  index: 0
8
8
  };
9
+ object.req = ["type", "code", "name", "mail", "country", "city", "street", "zipcode"];
9
10
  object.arrays = ["entities"];
10
11
  return new Proxy(object, paramsProxy);
11
12
  };
@@ -6,6 +6,7 @@ export default (object) => {
6
6
  arrayNode: "products",
7
7
  index: 0
8
8
  };
9
+ object.req = ["order_sn", "stock_id"];
9
10
  object.arrays = ["products"];
10
11
  return new Proxy(object, paramsProxy);
11
12
  };
@@ -6,6 +6,7 @@ export default (object) => {
6
6
  arrayNode: "snippets",
7
7
  index: 0
8
8
  };
9
+ object.req = ["name", "campaign"];
9
10
  object.arrays = ["snippets"];
10
11
  return new Proxy(object, paramsProxy);
11
12
  };
@@ -6,6 +6,7 @@ export default (object) => {
6
6
  arrayNode: "campaigns",
7
7
  index: 0
8
8
  };
9
+ object.req = ["name", "shop"];
9
10
  object.arrays = ["campaigns"];
10
11
  return new Proxy(object, paramsProxy);
11
12
  };
@@ -6,6 +6,7 @@ export default (object) => {
6
6
  arrayNode: "cookies",
7
7
  index: 0
8
8
  };
9
+ object.req = ["snippetId"];
9
10
  object.arrays = ["cookies"];
10
11
  return new Proxy(object, paramsProxy);
11
12
  };
@@ -6,6 +6,7 @@ export default (object) => {
6
6
  arrayNode: "vouchers",
7
7
  index: 0
8
8
  };
9
+ object.req = ["typeId", "number", "name", "balance", "shops"];
9
10
  object.arrays = ["vouchers"];
10
11
  return new Proxy(object, paramsProxy);
11
12
  };
@@ -6,6 +6,7 @@ export default (object) => {
6
6
  arrayNode: "warranties",
7
7
  index: 0
8
8
  };
9
+ object.req = ["name"];
9
10
  object.arrays = ["warranties"];
10
11
  return new Proxy(object, paramsProxy);
11
12
  };
@@ -1,5 +1,6 @@
1
1
  import { paramsProxy } from "../params.js";
2
2
  export default (object) => {
3
3
  object.gate = { method: 'post', node: '/wms/stocksdocuments/documents' };
4
+ object.req = ["type", "stockId"];
4
5
  return new Proxy(object, paramsProxy);
5
6
  };
@@ -6,6 +6,7 @@ export default (object) => {
6
6
  arrayNode: "products",
7
7
  index: 0
8
8
  };
9
+ object.req = ["type", "id", "product", "size", "quantity"];
9
10
  object.arrays = ["products"];
10
11
  return new Proxy(object, paramsProxy);
11
12
  };
@@ -6,6 +6,7 @@ export default (object) => {
6
6
  arrayNode: "clients",
7
7
  index: 0
8
8
  };
9
+ object.req = ["clientLogin", "shopsIds"];
9
10
  object.arrays = ["clients"];
10
11
  return new Proxy(object, paramsProxy);
11
12
  };
@@ -6,6 +6,7 @@ export default (object) => {
6
6
  arrayNode: "clients",
7
7
  index: 0
8
8
  };
9
+ object.req = ["clientLogin", "shopsIds", "clientDeliveryAddressId"];
9
10
  object.arrays = ["clients"];
10
11
  return new Proxy(object, paramsProxy);
11
12
  };
@@ -1,5 +1,6 @@
1
1
  import { paramsProxy } from "../params.js";
2
2
  export default (object) => {
3
3
  object.gate = { method: 'put', node: '/clients/externalCode' };
4
+ object.req = [{ "any": ["client_id", "client_login"] }];
4
5
  return new Proxy(object, paramsProxy);
5
6
  };
@@ -11,6 +11,7 @@ export default (object) => {
11
11
  arrayNode: "giftCards",
12
12
  index: 0
13
13
  };
14
+ object.req = [{ "any": ["id", "number"] }];
14
15
  object.arrays = ["giftCards"];
15
16
  return new Proxy(object, paramsProxy);
16
17
  };
@@ -6,6 +6,7 @@ export default (object) => {
6
6
  arrayNode: "giftCards",
7
7
  index: 0
8
8
  };
9
+ object.req = [{ "any": ["id", "number"] }];
9
10
  object.arrays = ["giftCards"];
10
11
  return new Proxy(object, paramsProxy);
11
12
  };
@@ -6,6 +6,7 @@ export default (object) => {
6
6
  arrayNode: "giftCards",
7
7
  index: 0
8
8
  };
9
+ object.req = [{ "any": ["id", "number"] }];
9
10
  object.arrays = ["giftCards"];
10
11
  return new Proxy(object, paramsProxy);
11
12
  };
@@ -6,6 +6,7 @@ export default (object) => {
6
6
  arrayNode: "payers",
7
7
  index: 0
8
8
  };
9
+ object.req = ["clientId", "payerAddressId"];
9
10
  object.arrays = ["payers"];
10
11
  return new Proxy(object, paramsProxy);
11
12
  };
@@ -1,5 +1,6 @@
1
1
  import { paramsProxy } from "../params.js";
2
2
  export default (object) => {
3
3
  object.gate = { method: 'put', node: '/clients/pricelists' };
4
+ object.req = ["priceListId"];
4
5
  return new Proxy(object, paramsProxy);
5
6
  };
@@ -1,6 +1,7 @@
1
1
  import { paramsProxy } from "../params.js";
2
2
  export default (object) => {
3
3
  object.gate = { method: 'put', node: '/clients/pricelists/clients' };
4
+ object.req = ["priceListId", "clientsIds"];
4
5
  object.arrays = ["clientsIds"];
5
6
  return new Proxy(object, paramsProxy);
6
7
  };
@@ -1,6 +1,7 @@
1
1
  import { paramsProxy } from "../params.js";
2
2
  export default (object) => {
3
3
  object.gate = { method: 'put', node: '/clients/pricelists/products' };
4
+ object.req = ["priceListId"];
4
5
  object.arrays = ["products", "producers", "series", "categories", "menuItems"];
5
6
  return new Proxy(object, paramsProxy);
6
7
  };
@@ -1,5 +1,6 @@
1
1
  import { paramsProxy } from "../params.js";
2
2
  export default (object) => {
3
3
  object.gate = { method: 'put', node: '/clients/pricelists/rename' };
4
+ object.req = ["priceListId"];
4
5
  return new Proxy(object, paramsProxy);
5
6
  };
@@ -6,6 +6,7 @@ export default (object) => {
6
6
  arrayNode: "variables",
7
7
  index: 0
8
8
  };
9
+ object.req = ["key", "type", "itemId"];
9
10
  object.arrays = ["variables"];
10
11
  return new Proxy(object, paramsProxy);
11
12
  };
@@ -6,6 +6,7 @@ export default (object) => {
6
6
  arrayNode: "pickupPoints",
7
7
  index: 0
8
8
  };
9
+ object.req = ["courierId", { "any": ["pickupPointExternalId", "pickupPointId"] }];
9
10
  object.arrays = ["pickupPoints"];
10
11
  return new Proxy(object, paramsProxy);
11
12
  };
@@ -6,6 +6,7 @@ export default (object) => {
6
6
  arrayNode: "cpa",
7
7
  index: 0
8
8
  };
9
+ object.req = ["id"];
9
10
  object.arrays = ["cpa"];
10
11
  return new Proxy(object, paramsProxy);
11
12
  };
@@ -6,6 +6,7 @@ export default (object) => {
6
6
  arrayNode: "campaigns",
7
7
  index: 0
8
8
  };
9
+ object.req = ["id"];
9
10
  object.arrays = ["campaigns"];
10
11
  return new Proxy(object, paramsProxy);
11
12
  };