idosell 0.3.7 → 0.3.13

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 (361) hide show
  1. package/changelog.md +22 -0
  2. package/dist/app.d.ts +2 -2
  3. package/dist/enums.d.ts +227 -11
  4. package/dist/enums.js +228 -10
  5. package/dist/gateways.d.ts +56 -10
  6. package/dist/helpers.js +55 -11
  7. package/dist/methods/getClientsDeliveryAddress.js +1 -0
  8. package/dist/methods/getClientsPayerAddress.js +1 -0
  9. package/dist/methods/getClientsPricelistsClients.js +1 -0
  10. package/dist/methods/getClientsPricelistsProducts.js +1 -0
  11. package/dist/methods/getClientsTags.js +1 -0
  12. package/dist/methods/getConfigVariables.js +1 -0
  13. package/dist/methods/getCouriers.js +1 -0
  14. package/dist/methods/getCouriersPickupPoints.js +1 -0
  15. package/dist/methods/getDeliveriesRegions.js +1 -0
  16. package/dist/methods/getDiscountsGroupsClients.js +1 -0
  17. package/dist/methods/getMenu.js +1 -0
  18. package/dist/methods/getMenuFilter.js +1 -0
  19. package/dist/methods/getOrders.js +1 -0
  20. package/dist/methods/getOrdersAnalytics.js +1 -0
  21. package/dist/methods/getOrdersDocuments.js +1 -0
  22. package/dist/methods/getOrdersExportdocumentsEPP.js +1 -0
  23. package/dist/methods/getOrdersExportdocumentsJPK.js +1 -0
  24. package/dist/methods/getOrdersHandler.js +1 -0
  25. package/dist/methods/getOrdersHistory.js +1 -0
  26. package/dist/methods/getOrdersImages.js +1 -0
  27. package/dist/methods/getOrdersLabels.js +1 -0
  28. package/dist/methods/getOrdersOpinionsRate.js +1 -0
  29. package/dist/methods/getOrdersPackages.js +1 -0
  30. package/dist/methods/getOrdersProfitability.js +1 -0
  31. package/dist/methods/getOrdersWarehouse.js +1 -0
  32. package/dist/methods/getPackagesLabels.js +1 -0
  33. package/dist/methods/getPayments.js +1 -0
  34. package/dist/methods/getProductsBrandsFilter.js +1 -0
  35. package/dist/methods/getProductsCodeExistence.js +1 -0
  36. package/dist/methods/getProductsDescriptions.js +4 -0
  37. package/dist/methods/getProductsIdBySizecode.js +1 -0
  38. package/dist/methods/getProductsMarketingAllFacebookCatalogIds.js +1 -0
  39. package/dist/methods/getProductsMarketingZones.js +1 -0
  40. package/dist/methods/getProductsOmnibusPrices.js +1 -0
  41. package/dist/methods/getProductsOpinionsRate.js +1 -0
  42. package/dist/methods/getProductsProductsToFacebookCatalog.js +1 -0
  43. package/dist/methods/getProductsQuestions.js +1 -0
  44. package/dist/methods/getProductsReservations.js +1 -0
  45. package/dist/methods/getProductsSKUbyBarcode.js +1 -0
  46. package/dist/methods/getProductsSeriesFilter.js +1 -0
  47. package/dist/methods/getProductsStocks.js +1 -0
  48. package/dist/methods/getProductsStrikethroughPrices.js +1 -0
  49. package/dist/methods/getRefundsGetPossibleAutoRefunds.js +1 -0
  50. package/dist/methods/getRefundsGetRefundStatus.js +1 -0
  51. package/dist/methods/getRefundsRetrieveRefundsList.js +1 -0
  52. package/dist/methods/getResponsibilityEntities.js +1 -0
  53. package/dist/methods/getReturns.js +1 -0
  54. package/dist/methods/getVouchers.js +1 -0
  55. package/dist/methods/getWmsLocations.js +1 -0
  56. package/dist/methods/getWmsStocksdocumentsDocuments.js +1 -0
  57. package/dist/methods/getWmsStocksdocumentsProducts.js +1 -0
  58. package/dist/methods/postOrders.js +1 -1
  59. package/dist/methods/postOrdersDocuments.js +1 -1
  60. package/dist/methods/postOrdersImages.js +1 -1
  61. package/dist/methods/postProducts.js +0 -1
  62. package/dist/methods/putProductsAttachments.js +4 -0
  63. package/dist/methods/putProductsDescriptions.js +3 -2
  64. package/dist/methods/putProductsGroupsMainProduct.js +4 -0
  65. package/dist/methods/putProductsGroupsSettings.js +4 -0
  66. package/dist/methods/putProductsQuestions.js +4 -0
  67. package/dist/methods/searchClientsGiftcards.js +1 -0
  68. package/dist/methods/searchPackages.js +1 -0
  69. package/dist/methods/searchProductsDeliveryTime.js +1 -0
  70. package/dist/params.js +11 -3
  71. package/dist/request.js +23 -0
  72. package/dist/responses.d.ts +192 -10
  73. package/package.json +1 -1
  74. package/tests/deleteClients.test.js +1 -1
  75. package/tests/deleteClientsDeliveryAddress.test.js +1 -1
  76. package/tests/deleteClientsGiftcards.test.js +1 -1
  77. package/tests/deleteClientsPayerAddress.test.js +1 -1
  78. package/tests/deleteClientsPricelists.test.js +1 -1
  79. package/tests/deleteClientsTags.test.js +1 -1
  80. package/tests/deleteClientsTagsClear.test.js +1 -1
  81. package/tests/deleteConfigVariables.test.js +1 -1
  82. package/tests/deleteCouriersPickupPoints.test.js +1 -1
  83. package/tests/deleteCpa.test.js +1 -1
  84. package/tests/deleteCpaCampaign.test.js +1 -1
  85. package/tests/deleteDiscountsGroups.test.js +1 -1
  86. package/tests/deleteDiscountsGroupsProducts.test.js +1 -1
  87. package/tests/deleteDiscountsRebatesCard.test.js +1 -1
  88. package/tests/deleteDiscountsRebatesCode.test.js +1 -1
  89. package/tests/deleteEntries.test.js +1 -1
  90. package/tests/deleteMenu.test.js +1 -1
  91. package/tests/deleteOrdersDocuments.test.js +1 -1
  92. package/tests/deleteOrdersImages.test.js +1 -1
  93. package/tests/deleteProducts.test.js +1 -1
  94. package/tests/deleteProductsBrands.test.js +1 -1
  95. package/tests/deleteProductsCollectionsProducts.test.js +1 -1
  96. package/tests/deleteProductsImages.test.js +1 -1
  97. package/tests/deleteProductsOpinions.test.js +1 -1
  98. package/tests/deleteProductsParameters.test.js +1 -1
  99. package/tests/deleteProductsProductsToFacebookCatalog.test.js +1 -1
  100. package/tests/deleteProductsProductsToPromotion.test.js +1 -1
  101. package/tests/deleteProductsSeries.test.js +1 -1
  102. package/tests/deleteProductsSizes.test.js +1 -1
  103. package/tests/deleteResponsibilityEntities.test.js +1 -1
  104. package/tests/deleteSizecharts.test.js +1 -1
  105. package/tests/deleteSnippets.test.js +1 -1
  106. package/tests/deleteSnippetsCampaign.test.js +1 -1
  107. package/tests/deleteSnippetsCookies.test.js +1 -1
  108. package/tests/deleteVouchers.test.js +1 -1
  109. package/tests/deleteWarranties.test.js +1 -1
  110. package/tests/deleteWmsStocksdocumentsDocuments.test.js +1 -1
  111. package/tests/deleteWmsStocksdocumentsProducts.test.js +2 -2
  112. package/tests/deleteWmsSuppliers.test.js +1 -1
  113. package/tests/getClients.test.js +4 -4
  114. package/tests/getClientsBalance.test.js +4 -4
  115. package/tests/getClientsDeliveryAddress.test.js +1 -1
  116. package/tests/getClientsGiftcardsTypes.test.js +1 -1
  117. package/tests/getClientsMembershipCards.test.js +1 -1
  118. package/tests/getClientsPayerAddress.test.js +2 -2
  119. package/tests/getClientsPricelists.test.js +2 -2
  120. package/tests/getClientsPricelistsClients.test.js +1 -1
  121. package/tests/getClientsPricelistsProducts.test.js +2 -2
  122. package/tests/getClientsPricesDiscountGroups.test.js +2 -2
  123. package/tests/getClientsPricesDiscounts.test.js +5 -5
  124. package/tests/getClientsProfitPoints.test.js +3 -3
  125. package/tests/getClientsProvinceList.test.js +1 -1
  126. package/tests/getClientsTags.test.js +1 -1
  127. package/tests/getConfigVariables.test.js +1 -1
  128. package/tests/getCouriers.test.js +2 -2
  129. package/tests/getCouriersPickupPoints.test.js +3 -3
  130. package/tests/getCpa.test.js +2 -2
  131. package/tests/getCpaCampaign.test.js +2 -2
  132. package/tests/getDeliveriesProfiles.test.js +1 -1
  133. package/tests/getDeliveriesRegions.test.js +1 -1
  134. package/tests/getDiscountsGroups.test.js +2 -2
  135. package/tests/getDiscountsGroupsClients.test.js +1 -1
  136. package/tests/getEntries.test.js +2 -2
  137. package/tests/getEntriesPagesToDisplay.test.js +1 -1
  138. package/tests/getEntriesSources.test.js +1 -1
  139. package/tests/getMenu.test.js +1 -1
  140. package/tests/getMenuFilter.test.js +1 -1
  141. package/tests/getOrders.test.js +1 -1
  142. package/tests/getOrdersAnalytics.test.js +1 -1
  143. package/tests/getOrdersAuctionDetails.test.js +1 -1
  144. package/tests/getOrdersDocuments.test.js +1 -1
  145. package/tests/getOrdersExportdocumentsEPP.test.js +4 -4
  146. package/tests/getOrdersExportdocumentsJPK.test.js +3 -3
  147. package/tests/getOrdersHandler.test.js +1 -1
  148. package/tests/getOrdersHistory.test.js +1 -1
  149. package/tests/getOrdersImages.test.js +1 -1
  150. package/tests/getOrdersLabels.test.js +1 -1
  151. package/tests/getOrdersOpinionsRate.test.js +1 -1
  152. package/tests/getOrdersPackages.test.js +3 -3
  153. package/tests/getOrdersProfitability.test.js +1 -1
  154. package/tests/getOrdersWarehouse.test.js +1 -1
  155. package/tests/getPackagesLabels.test.js +1 -1
  156. package/tests/getPayments.test.js +2 -2
  157. package/tests/getPaymentsForms.test.js +1 -1
  158. package/tests/getPaymentsProfiles.test.js +1 -1
  159. package/tests/getProducts.test.js +1 -1
  160. package/tests/getProductsAuctions.test.js +2 -2
  161. package/tests/getProductsBrands.test.js +1 -1
  162. package/tests/getProductsBrandsFilter.test.js +1 -1
  163. package/tests/getProductsCategories.test.js +3 -3
  164. package/tests/getProductsCodeExistence.test.js +2 -2
  165. package/tests/getProductsDescriptions.test.js +6 -1
  166. package/tests/getProductsIdBySizecode.test.js +1 -1
  167. package/tests/getProductsMarketingAllFacebookCatalogIds.test.js +1 -1
  168. package/tests/getProductsMarketingPromotion.test.js +2 -2
  169. package/tests/getProductsMarketingZones.test.js +2 -2
  170. package/tests/getProductsOmnibusPrices.test.js +2 -2
  171. package/tests/getProductsOpinions.test.js +3 -3
  172. package/tests/getProductsOpinionsRate.test.js +1 -1
  173. package/tests/getProductsProductsToFacebookCatalog.test.js +1 -1
  174. package/tests/getProductsQuestions.test.js +2 -2
  175. package/tests/getProductsReservations.test.js +2 -2
  176. package/tests/getProductsSKUbyBarcode.test.js +1 -1
  177. package/tests/getProductsSeries.test.js +4 -4
  178. package/tests/getProductsSeriesFilter.test.js +1 -1
  179. package/tests/getProductsSizes.test.js +2 -2
  180. package/tests/getProductsStocks.test.js +2 -2
  181. package/tests/getProductsStrikethroughPrices.test.js +2 -2
  182. package/tests/getRefundsGetPossibleAutoRefunds.test.js +1 -1
  183. package/tests/getRefundsGetRefundStatus.test.js +1 -1
  184. package/tests/getRefundsRetrieveRefundsList.test.js +1 -1
  185. package/tests/getResponsibilityEntities.test.js +1 -1
  186. package/tests/getReturns.test.js +5 -5
  187. package/tests/getRma.test.js +3 -3
  188. package/tests/getSizecharts.test.js +3 -3
  189. package/tests/getSizes.test.js +1 -1
  190. package/tests/getSnippets.test.js +1 -1
  191. package/tests/getSnippetsCampaign.test.js +1 -1
  192. package/tests/getSnippetsCookies.test.js +1 -1
  193. package/tests/getSystemCurrencies.test.js +2 -2
  194. package/tests/getSystemProcessesAutomation.test.js +1 -1
  195. package/tests/getSystemUnits.test.js +1 -1
  196. package/tests/getSystemUsers.test.js +1 -1
  197. package/tests/getVouchers.test.js +5 -5
  198. package/tests/getVouchersTypes.test.js +1 -1
  199. package/tests/getWarranties.test.js +2 -2
  200. package/tests/getWarrantiesCountTotal.test.js +1 -1
  201. package/tests/getWmsLocations.test.js +2 -2
  202. package/tests/getWmsStocksdocumentsDocuments.test.js +4 -4
  203. package/tests/getWmsStocksdocumentsOpenedDocuments.test.js +4 -4
  204. package/tests/getWmsStocksdocumentsProducts.test.js +2 -2
  205. package/tests/getWmsSuppliers.test.js +3 -3
  206. package/tests/postClients.test.js +1 -1
  207. package/tests/postClientsBalance.test.js +3 -3
  208. package/tests/postClientsDeliveryAddress.test.js +1 -1
  209. package/tests/postClientsGiftcards.test.js +1 -1
  210. package/tests/postClientsPayerAddress.test.js +1 -1
  211. package/tests/postClientsPricelists.test.js +2 -2
  212. package/tests/postClientsProfitPoints.test.js +1 -1
  213. package/tests/postClientsTags.test.js +1 -1
  214. package/tests/postCouriersPickupPoints.test.js +1 -1
  215. package/tests/postCpa.test.js +1 -1
  216. package/tests/postCpaCampaign.test.js +1 -1
  217. package/tests/postDeliveriesRegions.test.js +1 -1
  218. package/tests/postDiscountsGroups.test.js +1 -1
  219. package/tests/postDiscountsRebatesCard.test.js +1 -1
  220. package/tests/postDiscountsRebatesCode.test.js +1 -1
  221. package/tests/postEntries.test.js +2 -2
  222. package/tests/postMenu.test.js +1 -1
  223. package/tests/postOrders.test.js +2 -2
  224. package/tests/postOrdersDocuments.test.js +1 -1
  225. package/tests/postOrdersDocumentsCreate.test.js +1 -1
  226. package/tests/postOrdersImages.test.js +2 -2
  227. package/tests/postOrdersPackages.test.js +1 -1
  228. package/tests/postPackages.test.js +1 -1
  229. package/tests/postPackagesLabels.test.js +1 -1
  230. package/tests/postPayments.test.js +1 -1
  231. package/tests/postPaymentsCancel.test.js +1 -1
  232. package/tests/postPaymentsCashback.test.js +1 -1
  233. package/tests/postPaymentsRepayment.test.js +1 -1
  234. package/tests/postProducts.test.js +4 -4
  235. package/tests/postProductsBrands.test.js +1 -1
  236. package/tests/postProductsCollections.test.js +1 -1
  237. package/tests/postProductsCollectionsProducts.test.js +1 -1
  238. package/tests/postProductsMarketingPromotion.test.js +1 -1
  239. package/tests/postProductsOpinions.test.js +1 -1
  240. package/tests/postProductsProductsToFacebookCatalog.test.js +1 -1
  241. package/tests/postProductsProductsToPromotion.test.js +1 -1
  242. package/tests/postProductsRestore.test.js +1 -1
  243. package/tests/postRefundsAddAutomaticRefund.test.js +1 -1
  244. package/tests/postRefundsAddAutomaticRefundForOrder.test.js +1 -1
  245. package/tests/postRefundsAddManualRefund.test.js +1 -1
  246. package/tests/postResponsibilityEntities.test.js +1 -1
  247. package/tests/postReturns.test.js +2 -2
  248. package/tests/postSnippets.test.js +1 -1
  249. package/tests/postSnippetsCampaign.test.js +1 -1
  250. package/tests/postSnippetsCookies.test.js +1 -1
  251. package/tests/postVouchers.test.js +1 -1
  252. package/tests/postWarranties.test.js +1 -1
  253. package/tests/postWmsStocksdocumentsDocuments.test.js +1 -1
  254. package/tests/postWmsStocksdocumentsProducts.test.js +1 -1
  255. package/tests/putClients.test.js +2 -2
  256. package/tests/putClientsDeliveryAddress.test.js +1 -1
  257. package/tests/putClientsExternalCode.test.js +1 -1
  258. package/tests/putClientsGiftcards.test.js +3 -3
  259. package/tests/putClientsGiftcardsBlock.test.js +1 -1
  260. package/tests/putClientsGiftcardsUnblock.test.js +1 -1
  261. package/tests/putClientsMembershipCards.test.js +1 -1
  262. package/tests/putClientsPayerAddress.test.js +1 -1
  263. package/tests/putClientsPricelists.test.js +1 -1
  264. package/tests/putClientsPricelistsClients.test.js +1 -1
  265. package/tests/putClientsPricelistsProducts.test.js +1 -1
  266. package/tests/putClientsPricelistsRename.test.js +1 -1
  267. package/tests/putClientsPricesDiscounts.test.js +1 -1
  268. package/tests/putClientsTags.test.js +1 -1
  269. package/tests/putConfigVariables.test.js +1 -1
  270. package/tests/putCouriersPickupPoints.test.js +1 -1
  271. package/tests/putCpa.test.js +1 -1
  272. package/tests/putCpaCampaign.test.js +1 -1
  273. package/tests/putDeliveriesDefaultProfiles.test.js +1 -1
  274. package/tests/putDiscountsGroups.test.js +1 -1
  275. package/tests/putDiscountsGroupsProducts.test.js +1 -1
  276. package/tests/putDiscountsRebatesBlockCard.test.js +1 -1
  277. package/tests/putDiscountsRebatesUnblockCard.test.js +1 -1
  278. package/tests/putEntries.test.js +1 -1
  279. package/tests/putMenu.test.js +1 -1
  280. package/tests/putMenuFilter.test.js +2 -2
  281. package/tests/putMenuSort.test.js +1 -1
  282. package/tests/putOrders.test.js +1 -1
  283. package/tests/putOrdersCourier.test.js +1 -1
  284. package/tests/putOrdersDeliveryAddress.test.js +1 -1
  285. package/tests/putOrdersDevide.test.js +1 -1
  286. package/tests/putOrdersHandler.test.js +1 -1
  287. package/tests/putOrdersPackages.test.js +1 -1
  288. package/tests/putOrdersPickupPoint.test.js +1 -1
  289. package/tests/putOrdersProductsSerialNumbers.test.js +1 -1
  290. package/tests/putOrdersProfitMargin.test.js +1 -1
  291. package/tests/putOrdersShippingCosts.test.js +1 -1
  292. package/tests/putOrdersWarehouse.test.js +1 -1
  293. package/tests/putPackages.test.js +1 -1
  294. package/tests/putPayments.test.js +1 -1
  295. package/tests/putPaymentsConfirm.test.js +1 -1
  296. package/tests/putProducts.test.js +7 -7
  297. package/tests/putProductsAttachments.test.js +6 -1
  298. package/tests/putProductsBrands.test.js +1 -1
  299. package/tests/putProductsBrandsFilter.test.js +1 -1
  300. package/tests/putProductsCategories.test.js +1 -1
  301. package/tests/putProductsCollectionsProducts.test.js +1 -1
  302. package/tests/putProductsCollectionsRenew.test.js +1 -1
  303. package/tests/putProductsDescriptions.test.js +7 -2
  304. package/tests/putProductsGroupsMainProduct.test.js +6 -1
  305. package/tests/putProductsGroupsOrder.test.js +2 -2
  306. package/tests/putProductsGroupsSettings.test.js +6 -1
  307. package/tests/putProductsImages.test.js +5 -5
  308. package/tests/putProductsMarketingPromotion.test.js +1 -1
  309. package/tests/putProductsMarketingZones.test.js +1 -1
  310. package/tests/putProductsOmnibusPrices.test.js +1 -1
  311. package/tests/putProductsOpinions.test.js +1 -1
  312. package/tests/putProductsParameters.test.js +1 -1
  313. package/tests/putProductsQuestions.test.js +1 -1
  314. package/tests/putProductsSeries.test.js +1 -1
  315. package/tests/putProductsSeriesFilter.test.js +2 -2
  316. package/tests/putProductsSizes.test.js +1 -1
  317. package/tests/putProductsStockQuantity.test.js +1 -1
  318. package/tests/putProductsStocks.test.js +1 -1
  319. package/tests/putProductsStrikethroughPrices.test.js +1 -1
  320. package/tests/putProductsSupplierCode.test.js +1 -1
  321. package/tests/putProductsSupplierProductData.test.js +1 -1
  322. package/tests/putRefundsCancelRefund.test.js +1 -1
  323. package/tests/putRefundsConfirmRefund.test.js +1 -1
  324. package/tests/putRefundsUpdateRefund.test.js +1 -1
  325. package/tests/putResponsibilityEntities.test.js +1 -1
  326. package/tests/putReturns.test.js +1 -1
  327. package/tests/putReturnsSerialNumber.test.js +1 -1
  328. package/tests/putRma.test.js +1 -1
  329. package/tests/putSizecharts.test.js +1 -1
  330. package/tests/putSizes.test.js +2 -2
  331. package/tests/putSnippets.test.js +1 -1
  332. package/tests/putSnippetsCampaign.test.js +1 -1
  333. package/tests/putSnippetsCookies.test.js +1 -1
  334. package/tests/putSystemConfig.test.js +1 -1
  335. package/tests/putSystemCurrencies.test.js +1 -1
  336. package/tests/putSystemProcessesAutomation.test.js +1 -1
  337. package/tests/putSystemUnits.test.js +1 -1
  338. package/tests/putVouchers.test.js +1 -1
  339. package/tests/putVouchersBlock.test.js +1 -1
  340. package/tests/putVouchersUnblock.test.js +1 -1
  341. package/tests/putWarranties.test.js +1 -1
  342. package/tests/putWarrantiesLanguageData.test.js +1 -1
  343. package/tests/putWmsStocksdocumentsAcceptMM.test.js +1 -1
  344. package/tests/putWmsStocksdocumentsClose.test.js +1 -1
  345. package/tests/putWmsStocksdocumentsDocuments.test.js +1 -1
  346. package/tests/putWmsStocksdocumentsProducts.test.js +1 -1
  347. package/tests/putWmsStocksdocumentsRejectMM.test.js +1 -1
  348. package/tests/putWmsSuppliers.test.js +1 -1
  349. package/tests/searchClientsCrm.test.js +4 -4
  350. package/tests/searchClientsGiftcards.test.js +1 -1
  351. package/tests/searchClientsNewsletterEmail.test.js +2 -2
  352. package/tests/searchClientsNewsletterSms.test.js +3 -3
  353. package/tests/searchOrders.test.js +12 -12
  354. package/tests/searchOrdersOpinions.test.js +6 -6
  355. package/tests/searchOrdersUnfinished.test.js +6 -6
  356. package/tests/searchPackages.test.js +4 -4
  357. package/tests/searchProducts.test.js +16 -16
  358. package/tests/searchProductsCategoriesIdosell.test.js +1 -1
  359. package/tests/searchProductsDeliveryTime.test.js +3 -3
  360. package/tests/searchProductsParameters.test.js +3 -3
  361. package/tests/url.test.js +2 -2
@@ -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
  };
@@ -7,5 +7,6 @@ export default (object) => {
7
7
  page
8
8
  };
9
9
  object.snakeCase = true;
10
+ object.req = [{ "any": true }];
10
11
  return new Proxy(object, paramsProxy);
11
12
  };
@@ -10,5 +10,6 @@ export default (object) => {
10
10
  numbers: arrayOfObjects("vouchers", "number"),
11
11
  page
12
12
  };
13
+ object.req = [{ "any": true }];
13
14
  return new Proxy(object, paramsProxy);
14
15
  };
@@ -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,7 +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
+ object.req = ["stockId", "orderPaymentType", "currencyId", "courierId", "clientWithoutAccount", "products", { "any": ["clientWithoutAccountData", "clientLogin"] }];
10
10
  object.arrays = ["orders"];
11
11
  return new Proxy(object, paramsProxy);
12
12
  };
@@ -6,7 +6,7 @@ export default (object) => {
6
6
  arrayNode: "documents",
7
7
  index: 0
8
8
  };
9
- object.req = ["orderSerialNumber", "name", "pdfBase64", "additionalData"];
9
+ object.req = ["orderSerialNumber", "name"];
10
10
  object.arrays = ["documents"];
11
11
  return new Proxy(object, paramsProxy);
12
12
  };
@@ -13,7 +13,7 @@ export default (object) => {
13
13
  arrayNode: "images",
14
14
  index: 0
15
15
  };
16
- object.req = ["order", "images"];
16
+ object.req = ["order"];
17
17
  object.arrays = ["images"];
18
18
  return new Proxy(object, paramsProxy);
19
19
  };
@@ -4,7 +4,6 @@ export default (object) => {
4
4
  object.gate = { method: 'post', node: '/products/products' };
5
5
  object.custom = {
6
6
  setText: setProductText(object),
7
- addPrice: (value, type = "retail", net = false) => modifyPrice(value, type, net, "amount_diff"),
8
7
  setPrice: (value, type = "retail", net = false) => modifyPrice(value, type, net, "amount_set")
9
8
  };
10
9
  object.appendable = {
@@ -1,6 +1,10 @@
1
1
  import { paramsProxy } from "../params.js";
2
+ import { nest } from "../helpers.js";
2
3
  export default (object) => {
3
4
  object.gate = { method: 'put', node: '/products/attachments' };
5
+ object.custom = {
6
+ productId: nest("identValue", "productIdent", { "productIdentType": "id" })
7
+ };
4
8
  object.appendable = {
5
9
  except: [],
6
10
  arrayNode: "productsAttachments",
@@ -1,9 +1,10 @@
1
1
  import { paramsProxy } from "../params.js";
2
- import { nest } from "../helpers.js";
2
+ import { nest, setProductDescription } from "../helpers.js";
3
3
  export default (object) => {
4
4
  object.gate = { method: 'put', node: '/products/descriptions' };
5
5
  object.custom = {
6
- productId: nest("identValue", "productIdent", { "productIdentType": "id" })
6
+ productId: nest("identValue", "productIdent", { "productIdentType": "id" }),
7
+ setText: setProductDescription(object)
7
8
  };
8
9
  object.appendable = {
9
10
  except: [],
@@ -1,6 +1,10 @@
1
1
  import { paramsProxy } from "../params.js";
2
+ import { nest } from "../helpers.js";
2
3
  export default (object) => {
3
4
  object.gate = { method: 'put', node: '/products/groups/mainProduct' };
5
+ object.custom = {
6
+ productId: nest("identValue", "productIdent", { "productIdentType": "id" })
7
+ };
4
8
  object.appendable = {
5
9
  except: [],
6
10
  arrayNode: "groups",
@@ -1,6 +1,10 @@
1
1
  import { paramsProxy } from "../params.js";
2
+ import { nest } from "../helpers.js";
2
3
  export default (object) => {
3
4
  object.gate = { method: 'put', node: '/products/groups/settings' };
5
+ object.custom = {
6
+ productId: nest("identValue", "productIdent", { "productIdentType": "id" })
7
+ };
4
8
  object.appendable = {
5
9
  except: [],
6
10
  arrayNode: "groups",
@@ -1,6 +1,10 @@
1
1
  import { paramsProxy } from "../params.js";
2
+ import { nest } from "../helpers.js";
2
3
  export default (object) => {
3
4
  object.gate = { method: 'put', node: '/products/questions' };
5
+ object.custom = {
6
+ productId: nest("identValue", "productIdent", { "productIdentType": "id" })
7
+ };
4
8
  object.appendable = {
5
9
  except: [],
6
10
  arrayNode: "questions",
@@ -7,6 +7,7 @@ export default (object) => {
7
7
  number: arrayOfObjects("giftCards", "number"),
8
8
  pins: arrayOfObjects("giftCards", "pin")
9
9
  };
10
+ object.req = [{ "any": ["giftCards", "searchGiftCards"] }];
10
11
  object.arrays = ["giftCards"];
11
12
  return new Proxy(object, paramsProxy);
12
13
  };
@@ -11,6 +11,7 @@ export default (object) => {
11
11
  arrayNode: "events",
12
12
  index: 0
13
13
  };
14
+ object.req = [{ "any": ["events", "deliveryPackageNumbers"] }];
14
15
  object.arrays = ["deliveryPackageNumbers", "events"];
15
16
  return new Proxy(object, paramsProxy);
16
17
  };
@@ -6,6 +6,7 @@ export default (object) => {
6
6
  arrayNode: "products",
7
7
  index: 0
8
8
  };
9
+ object.req = ["productId", "sizeId", "products"];
9
10
  object.arrays = ["products"];
10
11
  return new Proxy(object, paramsProxy);
11
12
  };
package/dist/params.js CHANGED
@@ -1,9 +1,10 @@
1
- import { sendRequest, countResults, getParams, hasNext, toString } from "./request.js";
1
+ import { sendRequest, countResults, getParams, checkParams, hasNext, toString } from "./request.js";
2
2
  const getAttributes = (obj) => Object.keys(obj).slice(3);
3
3
  const requests = {
4
4
  exec: sendRequest,
5
5
  count: countResults,
6
6
  getParams,
7
+ checkParams,
7
8
  hasNext,
8
9
  toString,
9
10
  getAttributes,
@@ -41,8 +42,9 @@ export const paramsProxy = {
41
42
  }
42
43
  }
43
44
  else if (object.custom && typeof object.custom[property] === 'function') {
44
- if (property === 'page')
45
- values.push(Boolean(object.snakeCase));
45
+ if (property === 'page') {
46
+ values = [values[0] ?? 0, values[1] ?? 100, Boolean(object.snakeCase)];
47
+ }
46
48
  const param = object.custom[property](...values);
47
49
  Object.assign(object.params, param);
48
50
  }
@@ -55,6 +57,12 @@ export const paramsProxy = {
55
57
  else {
56
58
  object.params[property] = values[0];
57
59
  }
60
+ if (object.custom?.page && property !== 'page') {
61
+ if (object.params.resultsPage)
62
+ delete object.params.resultsPage;
63
+ if (object.params.results_page)
64
+ delete object.params.results_page;
65
+ }
58
66
  return receiver;
59
67
  };
60
68
  }
package/dist/request.js CHANGED
@@ -77,6 +77,12 @@ const isMissingRequirement = (obj, required) => {
77
77
  return required;
78
78
  }
79
79
  else if (required.any) {
80
+ if (required.any === true) {
81
+ const keys = Object.keys(obj).filter(field => !['results_page', 'results_limit', 'resultsLimit', 'resultsPage'].includes(field)).length;
82
+ if (keys === 0)
83
+ return "Dane wyszukiwania";
84
+ return false;
85
+ }
80
86
  for (const field of required.any) {
81
87
  if (obj[field])
82
88
  return false;
@@ -95,6 +101,11 @@ const processRequired = (request) => {
95
101
  missing.add(missingField);
96
102
  }
97
103
  if (request.appendable && request.params[request.appendable.arrayNode]) {
104
+ const except = request.appendable.except ?? [];
105
+ for (const item of missing) {
106
+ if (!except.includes(item))
107
+ missing.delete(item);
108
+ }
98
109
  for (const req of request.req) {
99
110
  if (typeof req === 'string') {
100
111
  if (request.appendable.except.includes(req))
@@ -162,5 +173,17 @@ export const countResults = async (request, options) => {
162
173
  return response.resultsNumberAll;
163
174
  };
164
175
  export const getParams = (request) => JSON.parse(JSON.stringify(request.params));
176
+ export const checkParams = (request) => {
177
+ if (request.appendable?.arrayNode && request.params[request.appendable.arrayNode]) {
178
+ const array = request.params[request.appendable.arrayNode];
179
+ const last = array[array.length - 1];
180
+ if (typeof last === 'object' && Object.keys(last).length === 0) {
181
+ array.pop();
182
+ }
183
+ }
184
+ processRequired(request);
185
+ return JSON.parse(JSON.stringify(request.params));
186
+ ;
187
+ };
165
188
  export const toString = (request) => JSON.stringify(request.params);
166
189
  export const hasNext = (request) => request.next;
@@ -2126,7 +2126,7 @@ export type SearchGiftcardsResponse = {
2126
2126
  /** @description Is active? */
2127
2127
  blocked: boolean;
2128
2128
  };
2129
- } & FaultCodeString)[];
2129
+ } & FaultCodeString)[];
2130
2130
  } & PagedResponse;
2131
2131
 
2132
2132
  type SearchNewsletterResponse<T> = {
@@ -2263,15 +2263,6 @@ export type GetStocksdocumentsDocumentsResponse = {
2263
2263
  } & PagedResponse;
2264
2264
 
2265
2265
  export type GetClientsResponse = {
2266
- /** @description Number of all results found */
2267
- resultsNumberAll: number;
2268
- /** @description Number of pages of results found */
2269
- resultsNumberPage: number;
2270
- /** @description Page with results number. Numeration starts from 0 */
2271
- resultsPage: number;
2272
- /** @description Number of results on page. Value from 1 to 100 */
2273
- resultsLimit: number;
2274
- /** @description Object contains detailed information on result of operation. */
2275
2266
  results: {
2276
2267
  /** @description Unique client's number. */
2277
2268
  clientId: number;
@@ -2925,4 +2916,195 @@ export type GetConfigResponse = {
2925
2916
  typeOfPrinterProtocolAdress: string;
2926
2917
  };
2927
2918
 
2919
+ export type GetShopsDataResponse = GetConfigResponse & {
2920
+ /** @description Shop contact data */
2921
+ shop_contact: {
2922
+ /** @description shop ID */
2923
+ shop_id: number;
2924
+ /** @description Shop name */
2925
+ shop_name: string;
2926
+ /** @description Shop's contact data */
2927
+ contact_data: {
2928
+ /** @description Language code. Codes are compliant with ISO-639-3 standard. */
2929
+ lang_id: string;
2930
+ /** @description Contact email address */
2931
+ contact_email: string;
2932
+ /** @description Contact phone number */
2933
+ contact_phone_number: string;
2934
+ }[];
2935
+ }[];
2936
+ panel_settings: {
2937
+ /** @description Default panel language. */
2938
+ default_lang_id: string;
2939
+ /** @description Panel base currency. */
2940
+ basecurrency_id: string;
2941
+ /** @description Manual stock quantity modification restriction. */
2942
+ stocks_change_disabled: string;
2943
+ /** */
2944
+ stock_state_config: "uncontrolled" | "bridge" | "outside";
2945
+ /** */
2946
+ main_stock_system: "other" | "iai";
2947
+ /** @description Sales documents in third party application. */
2948
+ salesDocumentsAreCreatedByClient: boolean;
2949
+ search_by_code: {
2950
+ /** @description IAI code. */
2951
+ code_iai: boolean;
2952
+ /** @description External system code. */
2953
+ code_extern: boolean;
2954
+ /** @description Producer code. */
2955
+ code_producer: boolean;
2956
+ };
2957
+ };
2958
+ /** @description List of stores. */
2959
+ shops: {
2960
+ /** @description Shop Id. */
2961
+ shop_id: number;
2962
+ /** @description Store name. */
2963
+ shop_name: string;
2964
+ /** @description Default shop language ID in ISO-639-3 standard. */
2965
+ shop_lang_id_default: string;
2966
+ /** @description Determines whether loyalty program is active. */
2967
+ shop_loyalty_active: boolean;
2968
+ active_price_comparers: {
2969
+ /** @example 1 */
2970
+ id: number;
2971
+ /* @description Default price difference. */
2972
+ default_price_percent_diff: number;
2973
+ }[];
2974
+ /** @description Url to default product icon. */
2975
+ default_icon_url: string;
2976
+ branch_document_data: {
2977
+ /** @description Full company name. */
2978
+ company_name: string;
2979
+ /** @description Company short name. */
2980
+ company_short_name: string;
2981
+ /** @description NIP [TIN]. */
2982
+ nip: string;
2983
+ /** @description CRN. */
2984
+ regon: string;
2985
+ /** @description no of entry to NCR. */
2986
+ krs: string;
2987
+ /** @example address */
2988
+ address: string;
2989
+ /** @description ZIP / Post code. */
2990
+ zipcode: string;
2991
+ /** @description Town / City. */
2992
+ city: string;
2993
+ /** @description region. */
2994
+ country: string;
2995
+ };
2996
+ active_client_order_edit_status: string[];
2997
+ /** @description Auction site currency ID. */
2998
+ currency_id: string;
2999
+ client_edit_require_fields: {
3000
+ /** @description Is providing a value required for the field. */
3001
+ lastname: boolean;
3002
+ /** @description Is providing a value required for the field. */
3003
+ email: boolean;
3004
+ /** @description Is providing a value required for the field. */
3005
+ phone: boolean;
3006
+ /** @description Is providing a value required for the field. */
3007
+ vat_number: boolean;
3008
+ };
3009
+ /** @description Defines how to include complimentary products on VAT invoices and receipts. */
3010
+ product_free_invoices: string;
3011
+ /** @description Does the store have active vouchers?. */
3012
+ vouchers: {
3013
+ /** @description Information about whether price comparison service is active. */
3014
+ active: boolean;
3015
+ };
3016
+ /** @description Does the store have active gift cards?. */
3017
+ giftCards: {
3018
+ /** @description Information about whether price comparison service is active. */
3019
+ active: boolean;
3020
+ };
3021
+ }[];
3022
+ }
3023
+
3024
+ export type GetSizechartsResponse = {
3025
+ sizeCharts: {
3026
+ /** @description Id */
3027
+ id: number;
3028
+ /** @description Name in panel */
3029
+ nameInPanel: string;
3030
+ /** @description Display mode */
3031
+ displayMode: string;
3032
+ languagesData: {
3033
+ /** @description Customer language ID. */
3034
+ language: string;
3035
+ columns: {
3036
+ /** @description Column number */
3037
+ columnNumber: number;
3038
+ /** @description Column name */
3039
+ columnTitle: string;
3040
+ }[];
3041
+ /** @description List of sizes */
3042
+ sizes: {
3043
+ /** @description Size identifier */
3044
+ sizeId: string;
3045
+ /** @description Priority */
3046
+ priority: number;
3047
+ descriptions: {
3048
+ /** @description Column number */
3049
+ columnNumber: number;
3050
+ /** @description Value */
3051
+ value: string;
3052
+ }[];
3053
+ }[];
3054
+ }[];
3055
+ }[];
3056
+ } & PagedResponse;
3057
+
3058
+ export type GetLocationsResponse = {
3059
+ /** @description Object contains detailed information on result of operation. */
3060
+ results: {
3061
+ /** @description Warehouse location ID */
3062
+ locationId: number;
3063
+ /** @description Parent's identifier */
3064
+ parentId: number;
3065
+ /** @description Warehouse location name */
3066
+ locationName: string;
3067
+ /** @description #!SciezkaNazwyLokalizacji!# */
3068
+ locationPath: string;
3069
+ /** @description Storage location code */
3070
+ locationCode: string;
3071
+ /** @description Stock ID */
3072
+ stockId: number;
3073
+ /** @description Products list. */
3074
+ products: {
3075
+ /** @description Product IAI code */
3076
+ productId: number;
3077
+ /** @description Size identifier */
3078
+ sizeId: string;
3079
+ /* @description Quantity */
3080
+ quantity: number;
3081
+ }[];
3082
+ }[];
3083
+ } & PagedResponse;
3084
+
3085
+ export type GetWarrantiesResponse = {
3086
+ warranties: {
3087
+ /** @description Warranty language id (numeric). */
3088
+ id: number;
3089
+ /** @description Name. */
3090
+ name: string;
3091
+ /** @description Warranty type. */
3092
+ type: string;
3093
+ /** @description Warranty time. */
3094
+ period: number;
3095
+ lang_data: {
3096
+ /** @description Warranty language id (numeric). */
3097
+ id: number;
3098
+ /** @description Warranty language id (numeric) (three letter sequence). */
3099
+ lang_id: string;
3100
+ /** @description Name. */
3101
+ name: string;
3102
+ /** @description warranty icon for language. */
3103
+ icon: string;
3104
+ /** @description Warranty description. */
3105
+ description: string;
3106
+ }[];
3107
+ }[];
3108
+ } & PagedSnakecaseResponse;
3109
+
2928
3110
  export { }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "idosell",
3
- "version": "0.3.7",
3
+ "version": "0.3.13",
4
4
  "description": "Idosell 3 REST connector",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/gateways.d.ts",
@@ -2,6 +2,6 @@ import idosell from "./dist/index"
2
2
  import { expect, test } from "vitest"
3
3
 
4
4
  test("deleteClientsClientId", () => {
5
- const params = idosell().deleteClients.clientId(4).getParams();
5
+ const params = idosell().deleteClients.clientId(4).checkParams();
6
6
  expect(params).toEqual({"clientId":4});
7
7
  })
@@ -2,6 +2,6 @@ import idosell from "./dist/index"
2
2
  import { expect, test } from "vitest"
3
3
 
4
4
  test("deleteClientsDeliveryAddressClientDeliveryAddressId", () => {
5
- const params = idosell().deleteClientsDeliveryAddress.clientLogin("iai_demo").clientDeliveryAddressId(10).getParams();
5
+ const params = idosell().deleteClientsDeliveryAddress.clientLogin("iai_demo").clientDeliveryAddressId(10).checkParams();
6
6
  expect(params).toEqual({"clients":[{"clientLogin":"iai_demo","clientDeliveryAddressId":10}]});
7
7
  })
@@ -2,6 +2,6 @@ import idosell from "./dist/index"
2
2
  import { expect, test } from "vitest"
3
3
 
4
4
  test("deleteClientsGiftcardsId", () => {
5
- const params = idosell().deleteClientsGiftcards.id(25).getParams();
5
+ const params = idosell().deleteClientsGiftcards.id(25).checkParams();
6
6
  expect(params).toEqual({"giftCards":[{"id":25}]});
7
7
  })
@@ -2,6 +2,6 @@ import idosell from "./dist/index"
2
2
  import { expect, test } from "vitest"
3
3
 
4
4
  test("deleteClientsPayerAddressPayerAddressId", () => {
5
- const params = idosell().deleteClientsPayerAddress.clientId(3).payerAddressId(1).getParams();
5
+ const params = idosell().deleteClientsPayerAddress.clientId(3).payerAddressId(1).checkParams();
6
6
  expect(params).toEqual({"payers":[{"clientId":3,"payerAddressId":1}]});
7
7
  })
@@ -2,6 +2,6 @@ import idosell from "./dist/index"
2
2
  import { expect, test } from "vitest"
3
3
 
4
4
  test("deleteClientsPricelistsPriceListId", () => {
5
- const params = idosell().deleteClientsPricelists.priceListId(205).getParams();
5
+ const params = idosell().deleteClientsPricelists.priceListId(205).checkParams();
6
6
  expect(params).toEqual({"priceListId":205});
7
7
  })
@@ -2,6 +2,6 @@ import idosell from "./dist/index"
2
2
  import { expect, test } from "vitest"
3
3
 
4
4
  test("deleteClientsTagsTagId", () => {
5
- const params = idosell().deleteClientsTags.clientId(3).tagId(2).getParams();
5
+ const params = idosell().deleteClientsTags.clientId(3).tagId(2).checkParams();
6
6
  expect(params).toEqual({"params":[{"clientId":3,"tagId":2}]});
7
7
  })
@@ -2,6 +2,6 @@ import idosell from "./dist/index"
2
2
  import { expect, test } from "vitest"
3
3
 
4
4
  test("deleteClientsTagsClearClientId", () => {
5
- const params = idosell().deleteClientsTagsClear.clientId(3).getParams();
5
+ const params = idosell().deleteClientsTagsClear.clientId(3).checkParams();
6
6
  expect(params).toEqual({"clientId":3});
7
7
  })
@@ -2,6 +2,6 @@ import idosell from "./dist/index"
2
2
  import { expect, test } from "vitest"
3
3
 
4
4
  test("deleteConfigVariablesItem", () => {
5
- const params = idosell().deleteConfigVariables.type("snippets_campaign").item(1).getParams();
5
+ const params = idosell().deleteConfigVariables.type("snippets_campaign").item(1).checkParams();
6
6
  expect(params).toEqual({"type":"snippets_campaign","item":1});
7
7
  })