idosell 0.3.5 → 0.3.6

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 (168) hide show
  1. package/changelog.md +7 -0
  2. package/dist/app.d.ts +2 -1
  3. package/dist/gates.js +2 -0
  4. package/dist/gateways.d.ts +77 -16
  5. package/dist/methods/deleteClientsDeliveryAddress.js +1 -0
  6. package/dist/methods/deleteClientsGiftcards.js +1 -0
  7. package/dist/methods/deleteClientsPayerAddress.js +1 -0
  8. package/dist/methods/deleteClientsTags.js +2 -1
  9. package/dist/methods/deleteCouriersPickupPoints.js +1 -0
  10. package/dist/methods/deleteDiscountsGroupsProducts.js +1 -0
  11. package/dist/methods/deleteDiscountsRebatesCard.js +1 -1
  12. package/dist/methods/deleteDiscountsRebatesCode.js +1 -1
  13. package/dist/methods/deleteMenu.js +1 -0
  14. package/dist/methods/deleteOrdersDocuments.js +1 -0
  15. package/dist/methods/deleteOrdersImages.js +1 -0
  16. package/dist/methods/deleteProducts.js +1 -0
  17. package/dist/methods/deleteProductsBrands.js +1 -0
  18. package/dist/methods/deleteProductsBundlesProducts.js +2 -1
  19. package/dist/methods/deleteProductsCollectionsProducts.js +2 -1
  20. package/dist/methods/deleteProductsImages.js +2 -1
  21. package/dist/methods/deleteProductsParameters.js +1 -0
  22. package/dist/methods/deleteProductsProductsToFacebookCatalog.js +1 -0
  23. package/dist/methods/deleteProductsProductsToPromotion.js +1 -0
  24. package/dist/methods/deleteProductsSeries.js +1 -0
  25. package/dist/methods/deleteProductsSizes.js +1 -0
  26. package/dist/methods/deleteSizecharts.js +1 -0
  27. package/dist/methods/deleteVouchers.js +1 -0
  28. package/dist/methods/deleteWarranties.js +1 -0
  29. package/dist/methods/deleteWmsStocksdocumentsProducts.js +1 -0
  30. package/dist/methods/deleteWmsSuppliers.js +1 -0
  31. package/dist/methods/postClients.js +1 -0
  32. package/dist/methods/postClientsDeliveryAddress.js +1 -0
  33. package/dist/methods/postClientsGiftcards.js +1 -0
  34. package/dist/methods/postClientsPayerAddress.js +1 -0
  35. package/dist/methods/postClientsTags.js +2 -1
  36. package/dist/methods/postCouriersPickupPoints.js +1 -0
  37. package/dist/methods/postCpa.js +1 -0
  38. package/dist/methods/postCpaCampaign.js +1 -0
  39. package/dist/methods/postEntries.js +1 -0
  40. package/dist/methods/postMenu.js +1 -0
  41. package/dist/methods/postOrders.js +1 -0
  42. package/dist/methods/postOrdersDocuments.js +1 -0
  43. package/dist/methods/postOrdersDocumentsCreate.js +1 -0
  44. package/dist/methods/postOrdersImages.js +1 -0
  45. package/dist/methods/postOrdersPackages.js +1 -0
  46. package/dist/methods/postPackages.js +1 -0
  47. package/dist/methods/postPackagesLabels.js +1 -0
  48. package/dist/methods/postProducts.js +1 -0
  49. package/dist/methods/postProductsBrands.js +1 -0
  50. package/dist/methods/postProductsBundles.js +2 -1
  51. package/dist/methods/postProductsBundlesProducts.js +2 -1
  52. package/dist/methods/postProductsCollections.js +2 -1
  53. package/dist/methods/postProductsCollectionsProducts.js +2 -1
  54. package/dist/methods/postProductsMarketingPromotion.js +1 -0
  55. package/dist/methods/postProductsOpinions.js +1 -0
  56. package/dist/methods/postProductsProductsToFacebookCatalog.js +1 -0
  57. package/dist/methods/postProductsProductsToPromotion.js +1 -0
  58. package/dist/methods/postProductsRestore.js +1 -1
  59. package/dist/methods/postResponsibilityEntities.js +1 -0
  60. package/dist/methods/postReturns.js +1 -0
  61. package/dist/methods/postSnippets.js +1 -0
  62. package/dist/methods/postSnippetsCampaign.js +1 -0
  63. package/dist/methods/postSnippetsCookies.js +1 -0
  64. package/dist/methods/postSubscriptionsAddProduct.js +7 -0
  65. package/dist/methods/postSubscriptionsChangeDeliveryDates.js +2 -1
  66. package/dist/methods/postSubscriptionsChangePriceAutoUpdate.js +2 -1
  67. package/dist/methods/postSubscriptionsChangeStatus.js +2 -1
  68. package/dist/methods/postSubscriptionsDeleteProduct.js +2 -1
  69. package/dist/methods/postSubscriptionsEdit.js +2 -1
  70. package/dist/methods/postSubscriptionsEditProduct.js +2 -1
  71. package/dist/methods/postSubscriptionsItemsList.js +1 -1
  72. package/dist/methods/postSubscriptionsListViewFetchIds.js +2 -1
  73. package/dist/methods/postSubscriptionsListViewList.js +1 -1
  74. package/dist/methods/postSubscriptionsSetRebateCode.js +1 -1
  75. package/dist/methods/postSubscriptionsUnsetRebateCode.js +1 -1
  76. package/dist/methods/postVouchers.js +1 -0
  77. package/dist/methods/postWarranties.js +1 -0
  78. package/dist/methods/postWmsStocksdocumentsProducts.js +1 -0
  79. package/dist/methods/putClients.js +1 -0
  80. package/dist/methods/putClientsDeliveryAddress.js +1 -0
  81. package/dist/methods/putClientsGiftcards.js +1 -0
  82. package/dist/methods/putClientsGiftcardsBlock.js +1 -0
  83. package/dist/methods/putClientsGiftcardsUnblock.js +1 -0
  84. package/dist/methods/putClientsMembershipCards.js +1 -0
  85. package/dist/methods/putClientsPayerAddress.js +1 -0
  86. package/dist/methods/putClientsPricelistsClients.js +1 -0
  87. package/dist/methods/putClientsPricelistsProducts.js +1 -0
  88. package/dist/methods/putClientsPricesDiscounts.js +1 -0
  89. package/dist/methods/putClientsTags.js +1 -0
  90. package/dist/methods/putConfigVariables.js +1 -0
  91. package/dist/methods/putCouriersPickupPoints.js +1 -0
  92. package/dist/methods/putCpa.js +1 -0
  93. package/dist/methods/putCpaCampaign.js +1 -0
  94. package/dist/methods/putDiscountsGroupsProducts.js +1 -0
  95. package/dist/methods/putDiscountsRebatesBlockCard.js +1 -1
  96. package/dist/methods/putDiscountsRebatesUnblockCard.js +1 -1
  97. package/dist/methods/putEntries.js +1 -0
  98. package/dist/methods/putMenu.js +1 -0
  99. package/dist/methods/putMenuFilter.js +1 -0
  100. package/dist/methods/putMenuSort.js +1 -0
  101. package/dist/methods/putOrders.js +1 -0
  102. package/dist/methods/putOrdersDevide.js +1 -0
  103. package/dist/methods/putOrdersPackages.js +1 -0
  104. package/dist/methods/putOrdersProductsSerialNumbers.js +1 -0
  105. package/dist/methods/putOrdersProfitMargin.js +1 -0
  106. package/dist/methods/putPackages.js +1 -0
  107. package/dist/methods/putProducts.js +1 -0
  108. package/dist/methods/putProductsAttachments.js +1 -0
  109. package/dist/methods/putProductsBrands.js +1 -0
  110. package/dist/methods/putProductsBrandsFilter.js +1 -0
  111. package/dist/methods/putProductsBundlesProductsQuantity.js +2 -1
  112. package/dist/methods/putProductsBundlesRenew.js +2 -1
  113. package/dist/methods/putProductsCategories.js +1 -0
  114. package/dist/methods/putProductsCollectionsProducts.js +2 -1
  115. package/dist/methods/putProductsCollectionsRenew.js +2 -1
  116. package/dist/methods/putProductsDescriptions.js +1 -0
  117. package/dist/methods/putProductsGroupsMainProduct.js +1 -0
  118. package/dist/methods/putProductsGroupsOrder.js +1 -0
  119. package/dist/methods/putProductsGroupsSettings.js +1 -0
  120. package/dist/methods/putProductsImages.js +1 -0
  121. package/dist/methods/putProductsMarketingPromotion.js +1 -0
  122. package/dist/methods/putProductsMarketingZones.js +1 -0
  123. package/dist/methods/putProductsOmnibusPrices.js +1 -0
  124. package/dist/methods/putProductsParameters.js +1 -0
  125. package/dist/methods/putProductsQuestions.js +1 -0
  126. package/dist/methods/putProductsSeries.js +1 -0
  127. package/dist/methods/putProductsSeriesFilter.js +1 -0
  128. package/dist/methods/putProductsSizes.js +1 -0
  129. package/dist/methods/putProductsStockQuantity.js +1 -0
  130. package/dist/methods/putProductsStocks.js +1 -0
  131. package/dist/methods/putProductsStrikethroughPrices.js +1 -0
  132. package/dist/methods/putProductsSupplierCode.js +1 -0
  133. package/dist/methods/putProductsSupplierProductData.js +1 -0
  134. package/dist/methods/putResponsibilityEntities.js +1 -0
  135. package/dist/methods/putReturns.js +1 -0
  136. package/dist/methods/putReturnsSerialNumber.js +1 -0
  137. package/dist/methods/putRma.js +1 -0
  138. package/dist/methods/putSizecharts.js +1 -0
  139. package/dist/methods/putSizes.js +1 -0
  140. package/dist/methods/putSnippets.js +1 -0
  141. package/dist/methods/putSnippetsCampaign.js +1 -0
  142. package/dist/methods/putSnippetsCookies.js +1 -0
  143. package/dist/methods/putSystemCurrencies.js +2 -1
  144. package/dist/methods/putSystemUnits.js +1 -0
  145. package/dist/methods/putVouchers.js +1 -0
  146. package/dist/methods/putVouchersBlock.js +1 -0
  147. package/dist/methods/putVouchersUnblock.js +1 -0
  148. package/dist/methods/putWarranties.js +1 -0
  149. package/dist/methods/putWarrantiesLanguageData.js +1 -0
  150. package/dist/methods/putWmsStocksdocumentsProducts.js +1 -0
  151. package/dist/methods/putWmsSuppliers.js +1 -0
  152. package/dist/methods/searchClientsCrm.js +1 -0
  153. package/dist/methods/searchClientsGiftcards.js +1 -0
  154. package/dist/methods/searchClientsNewsletterEmail.js +1 -0
  155. package/dist/methods/searchClientsNewsletterSms.js +1 -0
  156. package/dist/methods/searchOrders.js +1 -0
  157. package/dist/methods/searchOrdersOpinions.js +1 -0
  158. package/dist/methods/searchOrdersUnfinished.js +1 -0
  159. package/dist/methods/searchPackages.js +1 -0
  160. package/dist/methods/searchProducts.js +1 -0
  161. package/dist/methods/searchProductsCategoriesIdosell.js +1 -0
  162. package/dist/methods/searchProductsDeliveryTime.js +1 -0
  163. package/dist/methods/searchProductsParameters.js +1 -0
  164. package/dist/params.js +6 -0
  165. package/dist/request.js +8 -2
  166. package/package.json +1 -1
  167. package/tests/putClientsPricelistsProducts.test.js +1 -1
  168. package/tests/searchProducts.test.js +1 -1
package/changelog.md CHANGED
@@ -5,6 +5,13 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [0.3.6] - 2025-05-24
9
+ ### Changed
10
+ - Idosell v5.4 - Added support to subscription methods
11
+ - Idosell v5.6 - Added params to getProductOpinions
12
+ - Enforce arrays where parameters require to i.e. idosellRequest.searchParams.returnElements('code') instead of .returnElements(['code'])
13
+
14
+
8
15
  ## [0.3.5] - 2025-05-10
9
16
  ### Changed
10
17
  - Added enums
package/dist/app.d.ts CHANGED
@@ -30,7 +30,8 @@ export type GatewayRequestProxyObject = {
30
30
  custom?: Record<string,Function>,
31
31
  snakeCase?: boolean,
32
32
  next?: boolean,
33
- rootparams?: boolean
33
+ rootparams?: string|boolean,
34
+ arrays?: string[]
34
35
  } & RequestProxyObject;
35
36
 
36
37
  export interface Gateway<R = JSObject> {
package/dist/gates.js CHANGED
@@ -263,6 +263,7 @@ import getSnippets from "./methods/getSnippets.js";
263
263
  import postSnippets from "./methods/postSnippets.js";
264
264
  import putSnippets from "./methods/putSnippets.js";
265
265
  import deleteSnippets from "./methods/deleteSnippets.js";
266
+ import postSubscriptionsAddProduct from "./methods/postSubscriptionsAddProduct.js";
266
267
  import postSubscriptionsChangeDeliveryDates from "./methods/postSubscriptionsChangeDeliveryDates.js";
267
268
  import postSubscriptionsChangePriceAutoUpdate from "./methods/postSubscriptionsChangePriceAutoUpdate.js";
268
269
  import postSubscriptionsChangeStatus from "./methods/postSubscriptionsChangeStatus.js";
@@ -581,6 +582,7 @@ const gates = {
581
582
  postSnippets,
582
583
  putSnippets,
583
584
  deleteSnippets,
585
+ postSubscriptionsAddProduct,
584
586
  postSubscriptionsChangeDeliveryDates,
585
587
  postSubscriptionsChangePriceAutoUpdate,
586
588
  postSubscriptionsChangeStatus,
@@ -2588,6 +2588,10 @@ export interface GetProductsOpinionsRequest extends PagableGateway<GetProductsOp
2588
2588
  products: (value: Object) => this;
2589
2589
  /** Customer data. */
2590
2590
  clients: (value: Object) => this;
2591
+ /** Review positive score data */
2592
+ scorePositive: (value: Object) => this;
2593
+ /** Review negative score data */
2594
+ scoreNegative: (value: Object) => this;
2591
2595
  /** Date range */
2592
2596
  dateRange: (value: Object) => this;
2593
2597
  /** Page with results number. Numeration starts from 0 */
@@ -4153,53 +4157,109 @@ export interface DeleteSnippetsRequest extends Gateway {
4153
4157
  id: (value: number|string|number[]|string[]) => this;
4154
4158
  }
4155
4159
 
4160
+ export interface PostSubscriptionsAddProductRequest extends Gateway {
4161
+ /** Id of subscription */
4162
+ subscriptionId: (value: number|string) => this;
4163
+ /** Collection of products to edit */
4164
+ products: (value: Array<JSObject>) => this;
4165
+ }
4166
+
4156
4167
  export interface PostSubscriptionsChangeDeliveryDatesRequest extends Gateway {
4157
- subscriptionsDeliveryDatesModel: (value: Object) => this;
4168
+ /** Subscription ids */
4169
+ subscriptionIds: (value: number|string|number[]|string[]) => this;
4170
+ /** Settings that determinates if price should be updated automaticly */
4171
+ upcomingDeliveryDate: (value: string) => this;
4172
+ /** A setting that determines whether to also change the date of the next delivery. */
4173
+ changeNextDeliveryDate: (value: Boolean) => this;
4158
4174
  }
4159
4175
 
4160
4176
  export interface PostSubscriptionsChangePriceAutoUpdateRequest extends Gateway {
4161
- subscriptionsAutoPriceModel: (value: Object) => this;
4177
+ /** Subscription ids */
4178
+ subscriptionIds: (value: number|string|number[]|string[]) => this;
4179
+ /** Settings that determinates if price should be updated automaticly */
4180
+ autoPriceUpdate: (value: Boolean) => this;
4162
4181
  }
4163
4182
 
4164
4183
  export interface PostSubscriptionsChangeStatusRequest extends Gateway {
4165
- subscriptionsStatusModel: (value: Object) => this;
4184
+ /** Subscription ids */
4185
+ subscriptionIds: (value: number|string|number[]|string[]) => this;
4186
+ /** Status to set */
4187
+ subscriptionStatus: (value: 'active'|'hold'|'nonpayment'|'finished') => this;
4188
+ /** Option allowing sending e-mail after status change */
4189
+ sendMailAfterStatusChange: (value: Boolean) => this;
4190
+ /** Optian allowing sending SMS after status change */
4191
+ sendSMSAfterStatusChange: (value: Boolean) => this;
4166
4192
  }
4167
4193
 
4168
4194
  export interface PostSubscriptionsDeleteProductRequest extends Gateway {
4169
- subscriptionDeleteProducts: (value: Object) => this;
4195
+ /** Id of subscription */
4196
+ subscriptionId: (value: number|string) => this;
4197
+ /** Ids in products table to delete */
4198
+ idsToDelete: (value: number|string|number[]|string[]) => this;
4170
4199
  }
4171
4200
 
4172
4201
  export interface PostSubscriptionsEditRequest extends Gateway {
4173
- /** Subscriptions model */
4174
- subscriptionsEditRequest: (value: Object) => this;
4202
+ /** Subscription */
4203
+ subscriptionModels: (value: Array<JSObject>) => this;
4175
4204
  }
4176
4205
 
4177
4206
  export interface PostSubscriptionsEditProductRequest extends Gateway {
4178
- subscriptionEditProducts: (value: Object) => this;
4207
+ /** Id of subscription */
4208
+ subscriptionId: (value: number|string) => this;
4209
+ /** Collection of products to edit */
4210
+ products: (value: Array<JSObject>) => this;
4179
4211
  }
4180
4212
 
4181
4213
  export interface PostSubscriptionsItemsListRequest extends Gateway {
4182
- request: (value: Object) => this;
4214
+ filter: (value: Object) => this;
4215
+ orderBy: (value: Object) => this;
4216
+ /** Pagination settings. */
4217
+ pagination: (value: Object) => this;
4183
4218
  }
4184
4219
 
4185
4220
  export interface PostSubscriptionsListViewFetchIdsRequest extends Gateway {
4186
- /** Filters that limit the result of a customer query. */
4187
- filter: (value: Object) => this;
4221
+ /** Subscription IDs */
4222
+ ids: (value: number|string|number[]|string[]) => this;
4223
+ /** Subscription statuses */
4224
+ statuses: (value: string|string[]) => this;
4225
+ /** Client ID */
4226
+ clientId: (value: number|string) => this;
4227
+ /** Shop ID */
4228
+ shopId: (value: number|string) => this;
4229
+ /** Price change mode */
4230
+ priceChangeMode: (value: 'auto'|'manual') => this;
4231
+ /** A universal structure for time intervals. */
4232
+ createDateTime: (value: Object) => this;
4233
+ /** A universal structure for time intervals. */
4234
+ finishDateTime: (value: Object) => this;
4235
+ /** Universal structure for intervals. */
4236
+ upcomingDeliveryDate: (value: Object) => this;
4237
+ /** Universal structure for intervals. */
4238
+ nextDeliveryDate: (value: Object) => this;
4239
+ /** Text search phrase */
4240
+ textSearch: (value: string) => this;
4188
4241
  }
4189
4242
 
4190
4243
  export interface PostSubscriptionsListViewListRequest extends Gateway {
4191
- /** Object describing the request for a list of Subscriptions. */
4192
- request: (value: Object) => this;
4244
+ select: (value: Object) => this;
4245
+ /** Filters that limit the result of a customer query. */
4246
+ filter: (value: Object) => this;
4247
+ /** Order by settings. */
4248
+ orderBy: (value: Object) => this;
4249
+ /** Pagination settings. */
4250
+ pagination: (value: Object) => this;
4193
4251
  }
4194
4252
 
4195
4253
  export interface PostSubscriptionsSetRebateCodeRequest extends Gateway {
4196
- /** Object with discount code data to set */
4197
- request: (value: Object) => this;
4254
+ /** Subscription ID */
4255
+ id: (value: number|string) => this;
4256
+ /** Code value */
4257
+ code: (value: string) => this;
4198
4258
  }
4199
4259
 
4200
4260
  export interface PostSubscriptionsUnsetRebateCodeRequest extends Gateway {
4201
- /** Object with request witch unset rebate code */
4202
- request: (value: Object) => this;
4261
+ /** Subscription ID */
4262
+ id: (value: number|string) => this;
4203
4263
  }
4204
4264
 
4205
4265
  export interface GetSystemConfigRequest extends Gateway<GetConfigResponse> {}
@@ -4958,6 +5018,7 @@ export interface Gateways {
4958
5018
  postSnippets: PostSnippetsRequest,
4959
5019
  putSnippets: PutSnippetsRequest,
4960
5020
  deleteSnippets: DeleteSnippetsRequest,
5021
+ postSubscriptionsAddProduct: PostSubscriptionsAddProductRequest,
4961
5022
  postSubscriptionsChangeDeliveryDates: PostSubscriptionsChangeDeliveryDatesRequest,
4962
5023
  postSubscriptionsChangePriceAutoUpdate: PostSubscriptionsChangePriceAutoUpdateRequest,
4963
5024
  postSubscriptionsChangeStatus: PostSubscriptionsChangeStatusRequest,
@@ -6,5 +6,6 @@ export default (object) => {
6
6
  arrayNode: "clients",
7
7
  index: 0
8
8
  };
9
+ object.arrays = ["clients"];
9
10
  return new Proxy(object, paramsProxy);
10
11
  };
@@ -6,5 +6,6 @@ export default (object) => {
6
6
  arrayNode: "giftCards",
7
7
  index: 0
8
8
  };
9
+ object.arrays = ["giftCards"];
9
10
  return new Proxy(object, paramsProxy);
10
11
  };
@@ -6,5 +6,6 @@ export default (object) => {
6
6
  arrayNode: "payers",
7
7
  index: 0
8
8
  };
9
+ object.arrays = ["payers"];
9
10
  return new Proxy(object, paramsProxy);
10
11
  };
@@ -1,11 +1,12 @@
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 = true;
4
+ object.rootparams = "params";
5
5
  object.appendable = {
6
6
  except: [],
7
7
  arrayNode: "params",
8
8
  index: 0
9
9
  };
10
+ object.arrays = ["params"];
10
11
  return new Proxy(object, paramsProxy);
11
12
  };
@@ -6,5 +6,6 @@ export default (object) => {
6
6
  arrayNode: "pickupPointDeleteRequests",
7
7
  index: 0
8
8
  };
9
+ object.arrays = ["pickupPointDeleteRequests"];
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: 'post', node: '/discounts/groups/products/delete' };
4
+ object.arrays = ["products", "producers", "series", "categories", "menuItems"];
4
5
  return new Proxy(object, paramsProxy);
5
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/card/delete' };
4
- object.rootparams = true;
4
+ object.rootparams = "campaign_id";
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 = true;
4
+ object.rootparams = "campaign_id";
5
5
  return new Proxy(object, paramsProxy);
6
6
  };
@@ -7,5 +7,6 @@ export default (object) => {
7
7
  arrayNode: "menu_list",
8
8
  index: 0
9
9
  };
10
+ object.arrays = ["menu_list"];
10
11
  return new Proxy(object, paramsProxy);
11
12
  };
@@ -6,5 +6,6 @@ export default (object) => {
6
6
  arrayNode: "documents",
7
7
  index: 0
8
8
  };
9
+ object.arrays = ["documents"];
9
10
  return new Proxy(object, paramsProxy);
10
11
  };
@@ -6,5 +6,6 @@ export default (object) => {
6
6
  arrayNode: "images",
7
7
  index: 0
8
8
  };
9
+ object.arrays = ["images"];
9
10
  return new Proxy(object, paramsProxy);
10
11
  };
@@ -6,5 +6,6 @@ export default (object) => {
6
6
  arrayNode: "products",
7
7
  index: 0
8
8
  };
9
+ object.arrays = ["products"];
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: 'post', node: '/products/brands/delete' };
4
+ object.arrays = ["ids"];
4
5
  return new Proxy(object, paramsProxy);
5
6
  };
@@ -1,11 +1,12 @@
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 = true;
4
+ object.rootparams = "params";
5
5
  object.appendable = {
6
6
  except: [],
7
7
  arrayNode: "params",
8
8
  index: 0
9
9
  };
10
+ object.arrays = ["params"];
10
11
  return new Proxy(object, paramsProxy);
11
12
  };
@@ -1,11 +1,12 @@
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 = true;
4
+ object.rootparams = "params";
5
5
  object.appendable = {
6
6
  except: [],
7
7
  arrayNode: "params",
8
8
  index: 0
9
9
  };
10
+ object.arrays = ["params"];
10
11
  return new Proxy(object, paramsProxy);
11
12
  };
@@ -1,11 +1,12 @@
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 = true;
4
+ object.rootparams = "params";
5
5
  object.appendable = {
6
6
  except: [],
7
7
  arrayNode: "params",
8
8
  index: 0
9
9
  };
10
+ object.arrays = ["params"];
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: '/products/parameters/delete' };
4
+ object.arrays = ["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: 'post', node: '/products/productsToFacebookCatalog/delete' };
4
+ object.arrays = ["products"];
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: '/products/productsToPromotion/delete' };
4
+ object.arrays = ["products"];
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: '/products/series/delete' };
4
+ object.arrays = ["ids"];
4
5
  return new Proxy(object, paramsProxy);
5
6
  };
@@ -7,5 +7,6 @@ export default (object) => {
7
7
  arrayNode: "params",
8
8
  index: 0
9
9
  };
10
+ object.arrays = ["params", "deleteSizesIndexesData"];
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: '/sizecharts/sizecharts/delete' };
4
+ object.arrays = ["ids"];
4
5
  return new Proxy(object, paramsProxy);
5
6
  };
@@ -6,5 +6,6 @@ export default (object) => {
6
6
  arrayNode: "vouchers",
7
7
  index: 0
8
8
  };
9
+ object.arrays = ["vouchers"];
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: 'post', node: '/warranties/warranties/delete' };
4
+ object.arrays = ["warranty_ids"];
4
5
  return new Proxy(object, paramsProxy);
5
6
  };
@@ -6,5 +6,6 @@ export default (object) => {
6
6
  arrayNode: "products",
7
7
  index: 0
8
8
  };
9
+ object.arrays = ["products"];
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: 'post', node: '/wms/suppliers/suppliers/delete' };
4
+ object.arrays = ["ids"];
4
5
  return new Proxy(object, paramsProxy);
5
6
  };
@@ -6,5 +6,6 @@ export default (object) => {
6
6
  arrayNode: "clients",
7
7
  index: 0
8
8
  };
9
+ object.arrays = ["clients"];
9
10
  return new Proxy(object, paramsProxy);
10
11
  };
@@ -6,5 +6,6 @@ export default (object) => {
6
6
  arrayNode: "clients",
7
7
  index: 0
8
8
  };
9
+ object.arrays = ["clients"];
9
10
  return new Proxy(object, paramsProxy);
10
11
  };
@@ -6,5 +6,6 @@ export default (object) => {
6
6
  arrayNode: "giftCards",
7
7
  index: 0
8
8
  };
9
+ object.arrays = ["giftCards"];
9
10
  return new Proxy(object, paramsProxy);
10
11
  };
@@ -6,5 +6,6 @@ export default (object) => {
6
6
  arrayNode: "payers",
7
7
  index: 0
8
8
  };
9
+ object.arrays = ["payers"];
9
10
  return new Proxy(object, paramsProxy);
10
11
  };
@@ -1,11 +1,12 @@
1
1
  import { paramsProxy } from "../params.js";
2
2
  export default (object) => {
3
3
  object.gate = { method: 'post', node: '/clients/tags' };
4
- object.rootparams = true;
4
+ object.rootparams = "params";
5
5
  object.appendable = {
6
6
  except: [],
7
7
  arrayNode: "params",
8
8
  index: 0
9
9
  };
10
+ object.arrays = ["params"];
10
11
  return new Proxy(object, paramsProxy);
11
12
  };
@@ -6,5 +6,6 @@ export default (object) => {
6
6
  arrayNode: "pickupPoints",
7
7
  index: 0
8
8
  };
9
+ object.arrays = ["pickupPoints"];
9
10
  return new Proxy(object, paramsProxy);
10
11
  };
@@ -6,5 +6,6 @@ export default (object) => {
6
6
  arrayNode: "cpa",
7
7
  index: 0
8
8
  };
9
+ object.arrays = ["cpa"];
9
10
  return new Proxy(object, paramsProxy);
10
11
  };
@@ -6,5 +6,6 @@ export default (object) => {
6
6
  arrayNode: "campaigns",
7
7
  index: 0
8
8
  };
9
+ object.arrays = ["campaigns"];
9
10
  return new Proxy(object, paramsProxy);
10
11
  };
@@ -6,5 +6,6 @@ export default (object) => {
6
6
  arrayNode: "langs",
7
7
  index: 0
8
8
  };
9
+ object.arrays = ["visibleOnSitesList", "products", "langs"];
9
10
  return new Proxy(object, paramsProxy);
10
11
  };
@@ -7,5 +7,6 @@ export default (object) => {
7
7
  arrayNode: "menu_list",
8
8
  index: 0
9
9
  };
10
+ object.arrays = ["menu_list"];
10
11
  return new Proxy(object, paramsProxy);
11
12
  };
@@ -6,5 +6,6 @@ export default (object) => {
6
6
  arrayNode: "orders",
7
7
  index: 0
8
8
  };
9
+ object.arrays = ["orders"];
9
10
  return new Proxy(object, paramsProxy);
10
11
  };
@@ -6,5 +6,6 @@ export default (object) => {
6
6
  arrayNode: "documents",
7
7
  index: 0
8
8
  };
9
+ object.arrays = ["documents"];
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: 'post', node: '/orders/documents/create' };
4
+ object.arrays = ["orderSerialNumbers"];
4
5
  return new Proxy(object, paramsProxy);
5
6
  };
@@ -13,5 +13,6 @@ export default (object) => {
13
13
  arrayNode: "images",
14
14
  index: 0
15
15
  };
16
+ object.arrays = ["images"];
16
17
  return new Proxy(object, paramsProxy);
17
18
  };
@@ -6,5 +6,6 @@ export default (object) => {
6
6
  arrayNode: "orderPackages",
7
7
  index: 0
8
8
  };
9
+ object.arrays = ["orderPackages"];
9
10
  return new Proxy(object, paramsProxy);
10
11
  };
@@ -6,5 +6,6 @@ export default (object) => {
6
6
  arrayNode: "orderPackages",
7
7
  index: 0
8
8
  };
9
+ object.arrays = ["orderPackages"];
9
10
  return new Proxy(object, paramsProxy);
10
11
  };
@@ -6,5 +6,6 @@ export default (object) => {
6
6
  arrayNode: "parcelParametersByPackages",
7
7
  index: 0
8
8
  };
9
+ object.arrays = ["parcelParameters", "parcelParametersByPackages"];
9
10
  return new Proxy(object, paramsProxy);
10
11
  };
@@ -12,5 +12,6 @@ export default (object) => {
12
12
  arrayNode: "products",
13
13
  index: 0
14
14
  };
15
+ object.arrays = ["products"];
15
16
  return new Proxy(object, paramsProxy);
16
17
  };
@@ -6,5 +6,6 @@ export default (object) => {
6
6
  arrayNode: "producers",
7
7
  index: 0
8
8
  };
9
+ object.arrays = ["producers"];
9
10
  return new Proxy(object, paramsProxy);
10
11
  };
@@ -1,11 +1,12 @@
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 = true;
4
+ object.rootparams = "params";
5
5
  object.appendable = {
6
6
  except: [],
7
7
  arrayNode: "params",
8
8
  index: 0
9
9
  };
10
+ object.arrays = ["params"];
10
11
  return new Proxy(object, paramsProxy);
11
12
  };
@@ -1,11 +1,12 @@
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 = true;
4
+ object.rootparams = "params";
5
5
  object.appendable = {
6
6
  except: [],
7
7
  arrayNode: "params",
8
8
  index: 0
9
9
  };
10
+ object.arrays = ["params"];
10
11
  return new Proxy(object, paramsProxy);
11
12
  };
@@ -1,11 +1,12 @@
1
1
  import { paramsProxy } from "../params.js";
2
2
  export default (object) => {
3
3
  object.gate = { method: 'post', node: '/products/collections' };
4
- object.rootparams = true;
4
+ object.rootparams = "params";
5
5
  object.appendable = {
6
6
  except: [],
7
7
  arrayNode: "params",
8
8
  index: 0
9
9
  };
10
+ object.arrays = ["params"];
10
11
  return new Proxy(object, paramsProxy);
11
12
  };