idosell 0.3.6 → 0.3.11

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 (202) hide show
  1. package/changelog.md +12 -0
  2. package/dist/app.d.ts +9 -3
  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/getClientsDeliveryAddress.js +1 -0
  11. package/dist/methods/getClientsMembershipCards.js +1 -0
  12. package/dist/methods/getClientsPayerAddress.js +1 -0
  13. package/dist/methods/getClientsPricelistsClients.js +1 -0
  14. package/dist/methods/getClientsPricelistsProducts.js +1 -0
  15. package/dist/methods/getClientsTags.js +1 -0
  16. package/dist/methods/getConfigVariables.js +1 -0
  17. package/dist/methods/getCouriers.js +1 -0
  18. package/dist/methods/getCouriersPickupPoints.js +1 -0
  19. package/dist/methods/getDeliveriesRegions.js +1 -0
  20. package/dist/methods/getDiscountsGroupsClients.js +1 -0
  21. package/dist/methods/getMenu.js +1 -0
  22. package/dist/methods/getMenuFilter.js +1 -0
  23. package/dist/methods/getOrders.js +1 -0
  24. package/dist/methods/getOrdersAnalytics.js +1 -0
  25. package/dist/methods/getOrdersDocuments.js +1 -0
  26. package/dist/methods/getOrdersExportdocumentsEPP.js +1 -0
  27. package/dist/methods/getOrdersExportdocumentsJPK.js +1 -0
  28. package/dist/methods/getOrdersHandler.js +1 -0
  29. package/dist/methods/getOrdersHistory.js +1 -0
  30. package/dist/methods/getOrdersImages.js +1 -0
  31. package/dist/methods/getOrdersLabels.js +1 -0
  32. package/dist/methods/getOrdersOpinionsRate.js +1 -0
  33. package/dist/methods/getOrdersPackages.js +1 -0
  34. package/dist/methods/getOrdersProfitability.js +1 -0
  35. package/dist/methods/getOrdersWarehouse.js +1 -0
  36. package/dist/methods/getPackagesLabels.js +1 -0
  37. package/dist/methods/getPayments.js +1 -0
  38. package/dist/methods/getProductsBrandsFilter.js +1 -0
  39. package/dist/methods/getProductsCodeExistence.js +1 -0
  40. package/dist/methods/getProductsDescriptions.js +1 -0
  41. package/dist/methods/getProductsIdBySizecode.js +1 -0
  42. package/dist/methods/getProductsMarketingAllFacebookCatalogIds.js +1 -0
  43. package/dist/methods/getProductsMarketingZones.js +1 -0
  44. package/dist/methods/getProductsOmnibusPrices.js +1 -0
  45. package/dist/methods/getProductsOpinionsRate.js +1 -0
  46. package/dist/methods/getProductsProductsToFacebookCatalog.js +1 -0
  47. package/dist/methods/getProductsQuestions.js +1 -0
  48. package/dist/methods/getProductsReservations.js +1 -0
  49. package/dist/methods/getProductsSKUbyBarcode.js +1 -0
  50. package/dist/methods/getProductsSeriesFilter.js +1 -0
  51. package/dist/methods/getProductsStocks.js +1 -0
  52. package/dist/methods/getProductsStrikethroughPrices.js +1 -0
  53. package/dist/methods/getRefundsGetPossibleAutoRefunds.js +1 -0
  54. package/dist/methods/getRefundsGetRefundStatus.js +1 -0
  55. package/dist/methods/getRefundsRetrieveRefundsList.js +1 -0
  56. package/dist/methods/getResponsibilityEntities.js +1 -0
  57. package/dist/methods/getWmsLocations.js +1 -0
  58. package/dist/methods/getWmsStocksdocumentsDocuments.js +1 -0
  59. package/dist/methods/getWmsStocksdocumentsProducts.js +1 -0
  60. package/dist/methods/postClients.js +1 -0
  61. package/dist/methods/postClientsBalance.js +1 -0
  62. package/dist/methods/postClientsDeliveryAddress.js +1 -0
  63. package/dist/methods/postClientsGiftcards.js +1 -0
  64. package/dist/methods/postClientsPayerAddress.js +1 -0
  65. package/dist/methods/postClientsPricelists.js +1 -0
  66. package/dist/methods/postClientsProfitPoints.js +1 -0
  67. package/dist/methods/postClientsTags.js +2 -1
  68. package/dist/methods/postCouriersPickupPoints.js +1 -0
  69. package/dist/methods/postCpa.js +1 -0
  70. package/dist/methods/postCpaCampaign.js +1 -0
  71. package/dist/methods/postDeliveriesRegions.js +1 -0
  72. package/dist/methods/postDiscountsGroups.js +1 -0
  73. package/dist/methods/postDiscountsRebatesCard.js +1 -0
  74. package/dist/methods/postDiscountsRebatesCode.js +1 -0
  75. package/dist/methods/postEntries.js +5 -0
  76. package/dist/methods/postMenu.js +1 -0
  77. package/dist/methods/postOrders.js +1 -0
  78. package/dist/methods/postOrdersDocuments.js +1 -0
  79. package/dist/methods/postOrdersDocumentsCreate.js +1 -0
  80. package/dist/methods/postOrdersImages.js +1 -0
  81. package/dist/methods/postOrdersPackages.js +1 -0
  82. package/dist/methods/postPackages.js +1 -0
  83. package/dist/methods/postPackagesLabels.js +1 -0
  84. package/dist/methods/postPayments.js +1 -0
  85. package/dist/methods/postPaymentsCancel.js +1 -0
  86. package/dist/methods/postPaymentsRepayment.js +1 -0
  87. package/dist/methods/postProducts.js +1 -0
  88. package/dist/methods/postProductsBrands.js +1 -0
  89. package/dist/methods/postProductsBundles.js +1 -1
  90. package/dist/methods/postProductsBundlesProducts.js +1 -1
  91. package/dist/methods/postProductsCollections.js +1 -1
  92. package/dist/methods/postProductsCollectionsProducts.js +1 -1
  93. package/dist/methods/postProductsMarketingPromotion.js +1 -0
  94. package/dist/methods/postProductsOpinions.js +1 -0
  95. package/dist/methods/postProductsRestore.js +2 -1
  96. package/dist/methods/postResponsibilityEntities.js +1 -0
  97. package/dist/methods/postReturns.js +1 -0
  98. package/dist/methods/postSnippets.js +1 -0
  99. package/dist/methods/postSnippetsCampaign.js +1 -0
  100. package/dist/methods/postSnippetsCookies.js +1 -0
  101. package/dist/methods/postVouchers.js +1 -0
  102. package/dist/methods/postWarranties.js +1 -0
  103. package/dist/methods/postWmsStocksdocumentsDocuments.js +1 -0
  104. package/dist/methods/postWmsStocksdocumentsProducts.js +1 -0
  105. package/dist/methods/putClients.js +1 -0
  106. package/dist/methods/putClientsDeliveryAddress.js +1 -0
  107. package/dist/methods/putClientsExternalCode.js +1 -0
  108. package/dist/methods/putClientsGiftcards.js +1 -0
  109. package/dist/methods/putClientsGiftcardsBlock.js +1 -0
  110. package/dist/methods/putClientsGiftcardsUnblock.js +1 -0
  111. package/dist/methods/putClientsPayerAddress.js +1 -0
  112. package/dist/methods/putClientsPricelists.js +1 -0
  113. package/dist/methods/putClientsPricelistsClients.js +1 -0
  114. package/dist/methods/putClientsPricelistsProducts.js +1 -0
  115. package/dist/methods/putClientsPricelistsRename.js +1 -0
  116. package/dist/methods/putConfigVariables.js +1 -0
  117. package/dist/methods/putCouriersPickupPoints.js +1 -0
  118. package/dist/methods/putCpa.js +1 -0
  119. package/dist/methods/putCpaCampaign.js +1 -0
  120. package/dist/methods/putDeliveriesDefaultProfiles.js +1 -0
  121. package/dist/methods/putDiscountsGroups.js +1 -0
  122. package/dist/methods/putDiscountsGroupsProducts.js +1 -0
  123. package/dist/methods/putDiscountsRebatesBlockCard.js +2 -1
  124. package/dist/methods/putDiscountsRebatesUnblockCard.js +2 -1
  125. package/dist/methods/putEntries.js +1 -0
  126. package/dist/methods/putMenu.js +1 -0
  127. package/dist/methods/putMenuFilter.js +1 -0
  128. package/dist/methods/putMenuSort.js +1 -0
  129. package/dist/methods/putOrders.js +1 -0
  130. package/dist/methods/putOrdersCourier.js +1 -0
  131. package/dist/methods/putOrdersDeliveryAddress.js +1 -0
  132. package/dist/methods/putOrdersDevide.js +1 -0
  133. package/dist/methods/putOrdersHandler.js +1 -0
  134. package/dist/methods/putOrdersPackages.js +1 -0
  135. package/dist/methods/putOrdersPickupPoint.js +1 -0
  136. package/dist/methods/putOrdersProductsSerialNumbers.js +1 -0
  137. package/dist/methods/putOrdersShippingCosts.js +1 -0
  138. package/dist/methods/putOrdersWarehouse.js +1 -0
  139. package/dist/methods/putPayments.js +1 -0
  140. package/dist/methods/putPaymentsConfirm.js +1 -0
  141. package/dist/methods/putProducts.js +1 -0
  142. package/dist/methods/putProductsBrands.js +1 -0
  143. package/dist/methods/putProductsBrandsFilter.js +1 -0
  144. package/dist/methods/putProductsBundlesProductsQuantity.js +1 -1
  145. package/dist/methods/putProductsBundlesRenew.js +1 -1
  146. package/dist/methods/putProductsCategories.js +1 -0
  147. package/dist/methods/putProductsCollectionsProducts.js +2 -1
  148. package/dist/methods/putProductsCollectionsRenew.js +2 -1
  149. package/dist/methods/putProductsDescriptions.js +1 -0
  150. package/dist/methods/putProductsGroupsMainProduct.js +1 -0
  151. package/dist/methods/putProductsGroupsOrder.js +1 -0
  152. package/dist/methods/putProductsGroupsSettings.js +1 -0
  153. package/dist/methods/putProductsImages.js +1 -0
  154. package/dist/methods/putProductsMarketingPromotion.js +1 -0
  155. package/dist/methods/putProductsMarketingZones.js +1 -0
  156. package/dist/methods/putProductsOmnibusPrices.js +1 -0
  157. package/dist/methods/putProductsOpinions.js +1 -0
  158. package/dist/methods/putProductsParameters.js +1 -0
  159. package/dist/methods/putProductsSeries.js +1 -0
  160. package/dist/methods/putProductsSeriesFilter.js +1 -0
  161. package/dist/methods/putProductsSizes.js +1 -0
  162. package/dist/methods/putProductsStockQuantity.js +1 -0
  163. package/dist/methods/putProductsStocks.js +1 -0
  164. package/dist/methods/putProductsStrikethroughPrices.js +1 -0
  165. package/dist/methods/putProductsSupplierCode.js +1 -0
  166. package/dist/methods/putProductsSupplierProductData.js +1 -0
  167. package/dist/methods/putRefundsCancelRefund.js +1 -0
  168. package/dist/methods/putRefundsConfirmRefund.js +1 -0
  169. package/dist/methods/putRefundsUpdateRefund.js +1 -0
  170. package/dist/methods/putResponsibilityEntities.js +1 -0
  171. package/dist/methods/putReturns.js +1 -0
  172. package/dist/methods/putReturnsSerialNumber.js +1 -0
  173. package/dist/methods/putRma.js +1 -0
  174. package/dist/methods/putSizecharts.js +1 -0
  175. package/dist/methods/putSizes.js +1 -0
  176. package/dist/methods/putSnippets.js +1 -0
  177. package/dist/methods/putSnippetsCampaign.js +1 -0
  178. package/dist/methods/putSnippetsCookies.js +1 -0
  179. package/dist/methods/putSystemConfig.js +1 -0
  180. package/dist/methods/putSystemCurrencies.js +2 -1
  181. package/dist/methods/putSystemProcessesAutomation.js +1 -0
  182. package/dist/methods/putSystemUnits.js +1 -0
  183. package/dist/methods/putVouchers.js +1 -0
  184. package/dist/methods/putVouchersBlock.js +1 -0
  185. package/dist/methods/putVouchersUnblock.js +1 -0
  186. package/dist/methods/putWarranties.js +1 -0
  187. package/dist/methods/putWarrantiesLanguageData.js +1 -0
  188. package/dist/methods/putWmsStocksdocumentsAcceptMM.js +1 -0
  189. package/dist/methods/putWmsStocksdocumentsClose.js +1 -0
  190. package/dist/methods/putWmsStocksdocumentsDocuments.js +1 -0
  191. package/dist/methods/putWmsStocksdocumentsProducts.js +1 -0
  192. package/dist/methods/putWmsStocksdocumentsRejectMM.js +1 -0
  193. package/dist/methods/putWmsSuppliers.js +1 -0
  194. package/dist/methods/searchClientsGiftcards.js +1 -0
  195. package/dist/methods/searchPackages.js +2 -1
  196. package/dist/methods/searchProductsDeliveryTime.js +1 -0
  197. package/dist/params.js +23 -9
  198. package/dist/request.js +44 -0
  199. package/package.json +1 -1
  200. package/tests/postEntries.test.js +5 -0
  201. package/tests/putRefundsConfirmRefund.test.js +3 -3
  202. 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/deliveryAddress' };
4
+ object.req = [{ "any": ["clientCodesExternal", "clientIds", "clientLogins"] }];
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: 'get', node: '/clients/membershipCards' };
4
+ object.req = [{ "any": ["id", "login"] }];
4
5
  return new Proxy(object, paramsProxy);
5
6
  };
@@ -5,5 +5,6 @@ export default (object) => {
5
5
  object.custom = {
6
6
  page
7
7
  };
8
+ object.req = ["clientId"];
8
9
  return new Proxy(object, paramsProxy);
9
10
  };
@@ -1,5 +1,6 @@
1
1
  import { paramsProxy } from "../params.js";
2
2
  export default (object) => {
3
3
  object.gate = { method: 'get', node: '/clients/pricelists/clients' };
4
+ object.req = ["priceListId"];
4
5
  return new Proxy(object, paramsProxy);
5
6
  };
@@ -5,5 +5,6 @@ export default (object) => {
5
5
  object.custom = {
6
6
  page
7
7
  };
8
+ object.req = ["priceListId"];
8
9
  return new Proxy(object, paramsProxy);
9
10
  };
@@ -1,5 +1,6 @@
1
1
  import { paramsProxy } from "../params.js";
2
2
  export default (object) => {
3
3
  object.gate = { method: 'get', node: '/clients/tags' };
4
+ object.req = ["clientId"];
4
5
  return new Proxy(object, paramsProxy);
5
6
  };
@@ -5,5 +5,6 @@ export default (object) => {
5
5
  object.custom = {
6
6
  page
7
7
  };
8
+ object.req = ["type"];
8
9
  return new Proxy(object, paramsProxy);
9
10
  };
@@ -5,5 +5,6 @@ export default (object) => {
5
5
  object.custom = {
6
6
  page
7
7
  };
8
+ object.req = ["countryCode"];
8
9
  return new Proxy(object, paramsProxy);
9
10
  };
@@ -5,5 +5,6 @@ export default (object) => {
5
5
  object.custom = {
6
6
  page
7
7
  };
8
+ object.req = ["courierId"];
8
9
  return new Proxy(object, paramsProxy);
9
10
  };
@@ -1,5 +1,6 @@
1
1
  import { paramsProxy } from "../params.js";
2
2
  export default (object) => {
3
3
  object.gate = { method: 'get', node: '/deliveries/regions' };
4
+ object.req = ["shopId"];
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: 'get', node: '/discounts/groups/clients' };
4
+ object.req = ["discountGroupId"];
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: 'get', node: '/menu/menu' };
4
+ object.req = ["shop_id", "lang_id", "menu_id"];
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: 'get', node: '/menu/filter' };
4
+ object.req = ["shopId", "languageId", "productMenuTreeId", "productMenuNodeId"];
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: 'get', node: '/orders/orders' };
4
+ object.req = [{ "any": ["ordersIds", "ordersSerialNumbers", "orderExternalId"] }];
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: 'get', node: '/orders/analytics' };
4
+ object.req = ["orderSerialNumber"];
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: 'get', node: '/orders/documents' };
4
+ object.req = ["orderSerialNumber", "documentType"];
4
5
  return new Proxy(object, paramsProxy);
5
6
  };
@@ -5,5 +5,6 @@ export default (object) => {
5
5
  object.custom = {
6
6
  dates: dateRange({ "fromName": "dateBegin", "toName": "dateEnd" })
7
7
  };
8
+ object.req = ["dateBegin", "dateEnd", "dateEnd", "applicationType", "documentType"];
8
9
  return new Proxy(object, paramsProxy);
9
10
  };
@@ -5,5 +5,6 @@ export default (object) => {
5
5
  object.custom = {
6
6
  dates: dateRange({ "fromName": "dateBegin", "toName": "dateEnd" })
7
7
  };
8
+ object.req = ["documentType", "dateBegin", "dateEnd", "currency"];
8
9
  return new Proxy(object, paramsProxy);
9
10
  };
@@ -1,5 +1,6 @@
1
1
  import { paramsProxy } from "../params.js";
2
2
  export default (object) => {
3
3
  object.gate = { method: 'get', node: '/orders/handler' };
4
+ object.req = ["orderSerialNumber"];
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: 'get', node: '/orders/history' };
4
+ object.req = ["orderSerialNumber"];
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: 'get', node: '/orders/images' };
4
+ object.req = ["imageId"];
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: 'get', node: '/orders/labels' };
4
+ object.req = ["orderSerialNumber"];
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: 'get', node: '/orders/opinionsRate' };
4
+ object.req = ["id", "operation"];
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: 'get', node: '/orders/packages' };
4
+ object.req = [{ "any": ["rmaNumbers", "returnNumbers", "orderNumbers", "deliveryPackageNumbers"] }];
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: 'get', node: '/orders/profitability' };
4
+ object.req = ["orderSerialNumber"];
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: 'get', node: '/orders/warehouse' };
4
+ object.req = ["orderSerialNumber"];
4
5
  return new Proxy(object, paramsProxy);
5
6
  };
@@ -6,5 +6,6 @@ export default (object) => {
6
6
  rm: (rmaId) => ({ eventType: "rma", eventId: rmaId }),
7
7
  return: (returnId) => ({ eventType: "return", eventId: returnId })
8
8
  };
9
+ object.req = ["eventId", "eventType"];
9
10
  return new Proxy(object, paramsProxy);
10
11
  };
@@ -1,5 +1,6 @@
1
1
  import { paramsProxy } from "../params.js";
2
2
  export default (object) => {
3
3
  object.gate = { method: 'get', node: '/payments/payments' };
4
+ object.req = ["paymentNumber", "sourceType"];
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: 'get', node: '/products/brands/filter' };
4
+ object.req = ["shopId", "languageId", "producerId"];
4
5
  return new Proxy(object, paramsProxy);
5
6
  };
@@ -5,5 +5,6 @@ export default (object) => {
5
5
  object.custom = {
6
6
  productId: getProductIdentList
7
7
  };
8
+ object.req = ["products", "identType"];
8
9
  return new Proxy(object, paramsProxy);
9
10
  };
@@ -1,5 +1,6 @@
1
1
  import { paramsProxy } from "../params.js";
2
2
  export default (object) => {
3
3
  object.gate = { method: 'get', node: '/products/descriptions' };
4
+ object.req = ["type", "ids"];
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: 'get', node: '/products/idBySizecode' };
4
+ object.req = ["codes"];
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: 'get', node: '/products/marketing/allFacebookCatalogIds' };
4
+ object.req = ["shopId"];
4
5
  return new Proxy(object, paramsProxy);
5
6
  };
@@ -5,5 +5,6 @@ export default (object) => {
5
5
  object.custom = {
6
6
  productId: getProductIdentList
7
7
  };
8
+ object.req = ["identType", "products"];
8
9
  return new Proxy(object, paramsProxy);
9
10
  };
@@ -5,5 +5,6 @@ export default (object) => {
5
5
  object.custom = {
6
6
  productId: getProductIdentList
7
7
  };
8
+ object.req = ["identType", "products"];
8
9
  return new Proxy(object, paramsProxy);
9
10
  };
@@ -1,5 +1,6 @@
1
1
  import { paramsProxy } from "../params.js";
2
2
  export default (object) => {
3
3
  object.gate = { method: 'get', node: '/products/opinions/rate' };
4
+ object.req = ["id", "operation"];
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: 'get', node: '/products/productsToFacebookCatalog' };
4
+ object.req = ["facebookCatalogId", "shopId"];
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: 'get', node: '/products/questions' };
4
+ object.req = [{ "any": ["id", "productId"] }];
4
5
  return new Proxy(object, paramsProxy);
5
6
  };
@@ -5,5 +5,6 @@ export default (object) => {
5
5
  object.custom = {
6
6
  productId: getProductIdentList
7
7
  };
8
+ object.req = ["products", "identType"];
8
9
  return new Proxy(object, paramsProxy);
9
10
  };
@@ -1,5 +1,6 @@
1
1
  import { paramsProxy } from "../params.js";
2
2
  export default (object) => {
3
3
  object.gate = { method: 'get', node: '/products/SKUbyBarcode' };
4
+ object.req = ["productIndices"];
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: 'get', node: '/products/series/filter' };
4
+ object.req = ["shopId", "languageId", "serieId"];
4
5
  return new Proxy(object, paramsProxy);
5
6
  };
@@ -5,5 +5,6 @@ export default (object) => {
5
5
  object.custom = {
6
6
  productId: getProductIdentList
7
7
  };
8
+ object.req = ["identType", "products"];
8
9
  return new Proxy(object, paramsProxy);
9
10
  };
@@ -5,5 +5,6 @@ export default (object) => {
5
5
  object.custom = {
6
6
  productId: getProductIdentList
7
7
  };
8
+ object.req = ["identType", "products"];
8
9
  return new Proxy(object, paramsProxy);
9
10
  };
@@ -1,5 +1,6 @@
1
1
  import { paramsProxy } from "../params.js";
2
2
  export default (object) => {
3
3
  object.gate = { method: 'get', node: '/refunds/getPossibleAutoRefunds' };
4
+ object.req = ["sourceId", "sourceType"];
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: 'get', node: '/refunds/getRefundStatus' };
4
+ object.req = ["sourceId", "paymentId", "sourceType"];
4
5
  return new Proxy(object, paramsProxy);
5
6
  };
@@ -5,5 +5,6 @@ export default (object) => {
5
5
  object.custom = {
6
6
  page
7
7
  };
8
+ object.req = ["sourceType"];
8
9
  return new Proxy(object, paramsProxy);
9
10
  };
@@ -5,5 +5,6 @@ export default (object) => {
5
5
  object.custom = {
6
6
  page
7
7
  };
8
+ object.req = ["type"];
8
9
  return new Proxy(object, paramsProxy);
9
10
  };
@@ -5,5 +5,6 @@ export default (object) => {
5
5
  object.custom = {
6
6
  page
7
7
  };
8
+ object.req = [{ "any": ["locationId", "stockId"] }];
8
9
  return new Proxy(object, paramsProxy);
9
10
  };
@@ -6,5 +6,6 @@ export default (object) => {
6
6
  dates: dateRangeType({ "nodeName": "dateRange", "fromName": "dateBegin", "toName": "dateEnd", "typeName": "dateType", "format": "YYYY-MM-DD HH:mm:ss", "defaultType": "open" }),
7
7
  page
8
8
  };
9
+ object.req = ["stockDocumentType"];
9
10
  return new Proxy(object, paramsProxy);
10
11
  };
@@ -6,5 +6,6 @@ export default (object) => {
6
6
  page
7
7
  };
8
8
  object.snakeCase = true;
9
+ object.req = ["type", "id"];
9
10
  return new Proxy(object, paramsProxy);
10
11
  };
@@ -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
  };