idosell 0.3.11 → 0.3.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/changelog.md +24 -1
- package/dist/app.d.ts +2 -2
- package/dist/enums.d.ts +227 -11
- package/dist/enums.js +228 -10
- package/dist/gateways.d.ts +75 -16
- package/dist/helpers.js +76 -11
- package/dist/methods/getOrdersAuctionDetails.js +3 -3
- package/dist/methods/getProductsAuctions.js +2 -2
- package/dist/methods/getProductsDescriptions.js +3 -0
- package/dist/methods/getReturns.js +1 -0
- package/dist/methods/getVouchers.js +1 -0
- package/dist/methods/postEntries.js +1 -1
- package/dist/methods/postOrders.js +1 -1
- package/dist/methods/postOrdersDocuments.js +4 -1
- package/dist/methods/postOrdersImages.js +1 -1
- package/dist/methods/postProducts.js +0 -1
- package/dist/methods/putClients.js +1 -1
- package/dist/methods/putProductsAttachments.js +4 -0
- package/dist/methods/putProductsDescriptions.js +3 -2
- package/dist/methods/putProductsGroupsMainProduct.js +4 -0
- package/dist/methods/putProductsGroupsSettings.js +4 -0
- package/dist/methods/putProductsOmnibusPrices.js +6 -0
- package/dist/methods/putProductsQuestions.js +4 -0
- package/dist/methods/putProductsStrikethroughPrices.js +8 -1
- package/dist/methods/searchOrders.js +2 -2
- package/dist/methods/searchOrdersUnfinished.js +2 -2
- package/dist/methods/searchPackages.js +2 -1
- package/dist/methods/searchProducts.js +2 -2
- package/dist/methods/searchProductsDeliveryTime.js +1 -1
- package/dist/params.js +2 -1
- package/dist/request.js +31 -6
- package/dist/responses.d.ts +192 -10
- package/package.json +1 -1
- package/tests/deleteClients.test.js +1 -1
- package/tests/deleteClientsDeliveryAddress.test.js +1 -1
- package/tests/deleteClientsGiftcards.test.js +1 -1
- package/tests/deleteClientsPayerAddress.test.js +1 -1
- package/tests/deleteClientsPricelists.test.js +1 -1
- package/tests/deleteClientsTags.test.js +1 -1
- package/tests/deleteClientsTagsClear.test.js +1 -1
- package/tests/deleteConfigVariables.test.js +1 -1
- package/tests/deleteCouriersPickupPoints.test.js +1 -1
- package/tests/deleteCpa.test.js +1 -1
- package/tests/deleteCpaCampaign.test.js +1 -1
- package/tests/deleteDiscountsGroups.test.js +1 -1
- package/tests/deleteDiscountsGroupsProducts.test.js +1 -1
- package/tests/deleteDiscountsRebatesCard.test.js +1 -1
- package/tests/deleteDiscountsRebatesCode.test.js +1 -1
- package/tests/deleteEntries.test.js +1 -1
- package/tests/deleteMenu.test.js +1 -1
- package/tests/deleteOrdersDocuments.test.js +1 -1
- package/tests/deleteOrdersImages.test.js +1 -1
- package/tests/deleteProducts.test.js +1 -1
- package/tests/deleteProductsBrands.test.js +1 -1
- package/tests/deleteProductsCollectionsProducts.test.js +1 -1
- package/tests/deleteProductsImages.test.js +1 -1
- package/tests/deleteProductsOpinions.test.js +1 -1
- package/tests/deleteProductsParameters.test.js +1 -1
- package/tests/deleteProductsProductsToFacebookCatalog.test.js +1 -1
- package/tests/deleteProductsProductsToPromotion.test.js +1 -1
- package/tests/deleteProductsSeries.test.js +1 -1
- package/tests/deleteProductsSizes.test.js +1 -1
- package/tests/deleteResponsibilityEntities.test.js +1 -1
- package/tests/deleteSizecharts.test.js +1 -1
- package/tests/deleteSnippets.test.js +1 -1
- package/tests/deleteSnippetsCampaign.test.js +1 -1
- package/tests/deleteSnippetsCookies.test.js +1 -1
- package/tests/deleteVouchers.test.js +1 -1
- package/tests/deleteWarranties.test.js +1 -1
- package/tests/deleteWmsStocksdocumentsDocuments.test.js +1 -1
- package/tests/deleteWmsStocksdocumentsProducts.test.js +2 -2
- package/tests/deleteWmsSuppliers.test.js +1 -1
- package/tests/getClients.test.js +4 -4
- package/tests/getClientsBalance.test.js +4 -4
- package/tests/getClientsDeliveryAddress.test.js +1 -1
- package/tests/getClientsGiftcardsTypes.test.js +1 -1
- package/tests/getClientsMembershipCards.test.js +1 -1
- package/tests/getClientsPayerAddress.test.js +3 -3
- package/tests/getClientsPricelists.test.js +2 -2
- package/tests/getClientsPricelistsClients.test.js +1 -1
- package/tests/getClientsPricelistsProducts.test.js +3 -3
- package/tests/getClientsPricesDiscountGroups.test.js +2 -2
- package/tests/getClientsPricesDiscounts.test.js +5 -5
- package/tests/getClientsProfitPoints.test.js +3 -3
- package/tests/getClientsProvinceList.test.js +1 -1
- package/tests/getClientsTags.test.js +1 -1
- package/tests/getConfigVariables.test.js +1 -1
- package/tests/getCouriers.test.js +4 -3
- package/tests/getCouriersPickupPoints.test.js +5 -5
- package/tests/getCpa.test.js +2 -2
- package/tests/getCpaCampaign.test.js +2 -2
- package/tests/getDeliveriesProfiles.test.js +1 -1
- package/tests/getDeliveriesRegions.test.js +1 -1
- package/tests/getDiscountsGroups.test.js +2 -2
- package/tests/getDiscountsGroupsClients.test.js +1 -1
- package/tests/getEntries.test.js +2 -2
- package/tests/getEntriesPagesToDisplay.test.js +1 -1
- package/tests/getEntriesSources.test.js +1 -1
- package/tests/getMenu.test.js +4 -4
- package/tests/getMenuFilter.test.js +3 -3
- package/tests/getOrders.test.js +1 -1
- package/tests/getOrdersAnalytics.test.js +1 -1
- package/tests/getOrdersAuctionDetails.test.js +13 -3
- package/tests/getOrdersDocuments.test.js +1 -1
- package/tests/getOrdersExportdocumentsEPP.test.js +6 -16
- package/tests/getOrdersExportdocumentsJPK.test.js +4 -4
- package/tests/getOrdersHandler.test.js +1 -1
- package/tests/getOrdersHistory.test.js +1 -1
- package/tests/getOrdersImages.test.js +1 -1
- package/tests/getOrdersLabels.test.js +1 -1
- package/tests/getOrdersOpinionsRate.test.js +3 -3
- package/tests/getOrdersPackages.test.js +7 -7
- package/tests/getOrdersProfitability.test.js +1 -1
- package/tests/getOrdersWarehouse.test.js +1 -1
- package/tests/getPackagesLabels.test.js +1 -1
- package/tests/getPayments.test.js +4 -9
- package/tests/getPaymentsForms.test.js +1 -1
- package/tests/getPaymentsProfiles.test.js +1 -1
- package/tests/getProducts.test.js +1 -1
- package/tests/getProductsAuctions.test.js +9 -3
- package/tests/getProductsBrands.test.js +1 -1
- package/tests/getProductsBrandsFilter.test.js +4 -3
- package/tests/getProductsCategories.test.js +3 -3
- package/tests/getProductsCodeExistence.test.js +2 -2
- package/tests/getProductsDescriptions.test.js +6 -1
- package/tests/getProductsIdBySizecode.test.js +1 -1
- package/tests/getProductsMarketingAllFacebookCatalogIds.test.js +1 -1
- package/tests/getProductsMarketingPromotion.test.js +2 -2
- package/tests/getProductsMarketingZones.test.js +2 -2
- package/tests/getProductsOmnibusPrices.test.js +2 -2
- package/tests/getProductsOpinions.test.js +3 -3
- package/tests/getProductsOpinionsRate.test.js +2 -2
- package/tests/getProductsProductsToFacebookCatalog.test.js +4 -3
- package/tests/getProductsQuestions.test.js +2 -2
- package/tests/getProductsReservations.test.js +2 -2
- package/tests/getProductsSKUbyBarcode.test.js +1 -1
- package/tests/getProductsSeries.test.js +4 -4
- package/tests/getProductsSeriesFilter.test.js +3 -2
- package/tests/getProductsSizes.test.js +2 -2
- package/tests/getProductsStocks.test.js +2 -2
- package/tests/getProductsStrikethroughPrices.test.js +2 -2
- package/tests/getRefundsGetPossibleAutoRefunds.test.js +1 -1
- package/tests/getRefundsGetRefundStatus.test.js +1 -1
- package/tests/getRefundsRetrieveRefundsList.test.js +1 -1
- package/tests/getResponsibilityEntities.test.js +1 -1
- package/tests/getReturns.test.js +6 -6
- package/tests/getRma.test.js +3 -3
- package/tests/getSizecharts.test.js +3 -3
- package/tests/getSizes.test.js +1 -1
- package/tests/getSnippets.test.js +1 -1
- package/tests/getSnippetsCampaign.test.js +1 -1
- package/tests/getSnippetsCookies.test.js +1 -1
- package/tests/getSystemCurrencies.test.js +2 -2
- package/tests/getSystemProcessesAutomation.test.js +1 -1
- package/tests/getSystemUnits.test.js +1 -1
- package/tests/getSystemUsers.test.js +1 -1
- package/tests/getVouchers.test.js +5 -5
- package/tests/getVouchersTypes.test.js +1 -1
- package/tests/getWarranties.test.js +2 -2
- package/tests/getWarrantiesCountTotal.test.js +1 -1
- package/tests/getWmsLocations.test.js +3 -3
- package/tests/getWmsStocksdocumentsDocuments.test.js +10 -10
- package/tests/getWmsStocksdocumentsOpenedDocuments.test.js +4 -4
- package/tests/getWmsStocksdocumentsProducts.test.js +2 -7
- package/tests/getWmsSuppliers.test.js +3 -3
- package/tests/postClients.test.js +1 -1
- package/tests/postClientsBalance.test.js +3 -3
- package/tests/postClientsDeliveryAddress.test.js +1 -1
- package/tests/postClientsGiftcards.test.js +1 -1
- package/tests/postClientsPayerAddress.test.js +1 -1
- package/tests/postClientsPricelists.test.js +2 -2
- package/tests/postClientsProfitPoints.test.js +1 -1
- package/tests/postClientsTags.test.js +1 -1
- package/tests/postCouriersPickupPoints.test.js +1 -1
- package/tests/postCpa.test.js +1 -1
- package/tests/postCpaCampaign.test.js +1 -1
- package/tests/postDeliveriesRegions.test.js +1 -1
- package/tests/postDiscountsGroups.test.js +1 -1
- package/tests/postDiscountsRebatesCard.test.js +1 -1
- package/tests/postDiscountsRebatesCode.test.js +1 -1
- package/tests/postEntries.test.js +5 -5
- package/tests/postMenu.test.js +1 -1
- package/tests/postOrders.test.js +2 -2
- package/tests/postOrdersDocuments.test.js +6 -1
- package/tests/postOrdersDocumentsCreate.test.js +1 -1
- package/tests/postOrdersImages.test.js +2 -2
- package/tests/postOrdersPackages.test.js +1 -1
- package/tests/postPackages.test.js +1 -1
- package/tests/postPackagesLabels.test.js +1 -1
- package/tests/postPayments.test.js +1 -1
- package/tests/postPaymentsCancel.test.js +1 -1
- package/tests/postPaymentsCashback.test.js +1 -1
- package/tests/postPaymentsRepayment.test.js +1 -1
- package/tests/postProducts.test.js +5 -5
- package/tests/postProductsBrands.test.js +1 -1
- package/tests/postProductsCollections.test.js +1 -1
- package/tests/postProductsCollectionsProducts.test.js +1 -1
- package/tests/postProductsMarketingPromotion.test.js +1 -1
- package/tests/postProductsOpinions.test.js +1 -1
- package/tests/postProductsProductsToFacebookCatalog.test.js +1 -1
- package/tests/postProductsProductsToPromotion.test.js +1 -1
- package/tests/postProductsRestore.test.js +1 -1
- package/tests/postRefundsAddAutomaticRefund.test.js +1 -1
- package/tests/postRefundsAddAutomaticRefundForOrder.test.js +1 -1
- package/tests/postRefundsAddManualRefund.test.js +1 -1
- package/tests/postResponsibilityEntities.test.js +1 -1
- package/tests/postReturns.test.js +2 -2
- package/tests/postSnippets.test.js +1 -1
- package/tests/postSnippetsCampaign.test.js +1 -1
- package/tests/postSnippetsCookies.test.js +1 -1
- package/tests/postVouchers.test.js +1 -1
- package/tests/postWarranties.test.js +1 -1
- package/tests/postWmsStocksdocumentsDocuments.test.js +1 -1
- package/tests/postWmsStocksdocumentsProducts.test.js +1 -1
- package/tests/putClients.test.js +2 -2
- package/tests/putClientsDeliveryAddress.test.js +1 -1
- package/tests/putClientsExternalCode.test.js +1 -1
- package/tests/putClientsGiftcards.test.js +3 -3
- package/tests/putClientsGiftcardsBlock.test.js +1 -1
- package/tests/putClientsGiftcardsUnblock.test.js +1 -1
- package/tests/putClientsMembershipCards.test.js +1 -1
- package/tests/putClientsPayerAddress.test.js +1 -1
- package/tests/putClientsPricelists.test.js +1 -1
- package/tests/putClientsPricelistsClients.test.js +1 -1
- package/tests/putClientsPricelistsProducts.test.js +1 -1
- package/tests/putClientsPricelistsRename.test.js +1 -1
- package/tests/putClientsPricesDiscounts.test.js +1 -1
- package/tests/putClientsTags.test.js +1 -1
- package/tests/putConfigVariables.test.js +1 -1
- package/tests/putCouriersPickupPoints.test.js +1 -1
- package/tests/putCpa.test.js +1 -1
- package/tests/putCpaCampaign.test.js +1 -1
- package/tests/putDeliveriesDefaultProfiles.test.js +1 -1
- package/tests/putDiscountsGroups.test.js +1 -1
- package/tests/putDiscountsGroupsProducts.test.js +1 -1
- package/tests/putDiscountsRebatesBlockCard.test.js +1 -1
- package/tests/putDiscountsRebatesUnblockCard.test.js +1 -1
- package/tests/putEntries.test.js +1 -1
- package/tests/putMenu.test.js +1 -1
- package/tests/putMenuFilter.test.js +2 -2
- package/tests/putMenuSort.test.js +1 -1
- package/tests/putOrders.test.js +1 -1
- package/tests/putOrdersCourier.test.js +1 -1
- package/tests/putOrdersDeliveryAddress.test.js +1 -1
- package/tests/putOrdersDevide.test.js +3 -3
- package/tests/putOrdersHandler.test.js +1 -1
- package/tests/putOrdersPackages.test.js +1 -1
- package/tests/putOrdersPickupPoint.test.js +1 -1
- package/tests/putOrdersProductsSerialNumbers.test.js +1 -1
- package/tests/putOrdersProfitMargin.test.js +1 -1
- package/tests/putOrdersShippingCosts.test.js +1 -1
- package/tests/putOrdersWarehouse.test.js +1 -1
- package/tests/putPackages.test.js +1 -1
- package/tests/putPayments.test.js +1 -1
- package/tests/putPaymentsConfirm.test.js +1 -1
- package/tests/putProducts.test.js +7 -7
- package/tests/putProductsAttachments.test.js +6 -1
- package/tests/putProductsBrands.test.js +1 -1
- package/tests/putProductsBrandsFilter.test.js +1 -1
- package/tests/putProductsCategories.test.js +1 -1
- package/tests/putProductsCollectionsProducts.test.js +1 -1
- package/tests/putProductsCollectionsRenew.test.js +1 -1
- package/tests/putProductsDescriptions.test.js +7 -2
- package/tests/putProductsGroupsMainProduct.test.js +6 -1
- package/tests/putProductsGroupsOrder.test.js +2 -2
- package/tests/putProductsGroupsSettings.test.js +6 -1
- package/tests/putProductsImages.test.js +5 -5
- package/tests/putProductsMarketingPromotion.test.js +1 -1
- package/tests/putProductsMarketingZones.test.js +1 -1
- package/tests/putProductsOmnibusPrices.test.js +16 -1
- package/tests/putProductsOpinions.test.js +1 -1
- package/tests/putProductsParameters.test.js +1 -1
- package/tests/putProductsQuestions.test.js +1 -1
- package/tests/putProductsSeries.test.js +1 -1
- package/tests/putProductsSeriesFilter.test.js +2 -2
- package/tests/putProductsSizes.test.js +1 -1
- package/tests/putProductsStockQuantity.test.js +1 -1
- package/tests/putProductsStocks.test.js +1 -1
- package/tests/putProductsStrikethroughPrices.test.js +17 -2
- package/tests/putProductsSupplierCode.test.js +1 -1
- package/tests/putProductsSupplierProductData.test.js +1 -1
- package/tests/putRefundsCancelRefund.test.js +1 -1
- package/tests/putRefundsConfirmRefund.test.js +1 -1
- package/tests/putRefundsUpdateRefund.test.js +1 -1
- package/tests/putResponsibilityEntities.test.js +1 -1
- package/tests/putReturns.test.js +1 -1
- package/tests/putReturnsSerialNumber.test.js +1 -1
- package/tests/putRma.test.js +1 -1
- package/tests/putSizecharts.test.js +1 -1
- package/tests/putSizes.test.js +3 -3
- package/tests/putSnippets.test.js +1 -1
- package/tests/putSnippetsCampaign.test.js +1 -1
- package/tests/putSnippetsCookies.test.js +1 -1
- package/tests/putSystemConfig.test.js +1 -1
- package/tests/putSystemCurrencies.test.js +1 -1
- package/tests/putSystemProcessesAutomation.test.js +1 -1
- package/tests/putSystemUnits.test.js +1 -1
- package/tests/putVouchers.test.js +1 -1
- package/tests/putVouchersBlock.test.js +1 -1
- package/tests/putVouchersUnblock.test.js +1 -1
- package/tests/putWarranties.test.js +1 -1
- package/tests/putWarrantiesLanguageData.test.js +1 -1
- package/tests/putWmsStocksdocumentsAcceptMM.test.js +1 -1
- package/tests/putWmsStocksdocumentsClose.test.js +1 -1
- package/tests/putWmsStocksdocumentsDocuments.test.js +1 -1
- package/tests/putWmsStocksdocumentsProducts.test.js +1 -1
- package/tests/putWmsStocksdocumentsRejectMM.test.js +1 -1
- package/tests/putWmsSuppliers.test.js +1 -1
- package/tests/searchClientsCrm.test.js +4 -4
- package/tests/searchClientsGiftcards.test.js +1 -1
- package/tests/searchClientsNewsletterEmail.test.js +2 -2
- package/tests/searchClientsNewsletterSms.test.js +3 -3
- package/tests/searchOrders.test.js +12 -12
- package/tests/searchOrdersOpinions.test.js +6 -6
- package/tests/searchOrdersUnfinished.test.js +6 -6
- package/tests/searchPackages.test.js +4 -4
- package/tests/searchProducts.test.js +16 -16
- package/tests/searchProductsCategoriesIdosell.test.js +1 -1
- package/tests/searchProductsDeliveryTime.test.js +3 -3
- package/tests/searchProductsParameters.test.js +3 -3
- package/tests/url.test.js +2 -2
|
@@ -2,16 +2,16 @@ import idosell from "./dist/index"
|
|
|
2
2
|
import { expect, test } from "vitest"
|
|
3
3
|
|
|
4
4
|
test("getOrdersExportdocumentsJPK_MAG", () => {
|
|
5
|
-
const params = idosell().getOrdersExportdocumentsJPK.documentType("JPK_MAG").dateBegin("2023-12-01").dateEnd("2023-12-31").stockId([1]).
|
|
6
|
-
expect(params).toEqual({"documentType":"JPK_MAG","dateBegin":"2023-12-01","dateEnd":"2023-12-31","stockId":[1]});
|
|
5
|
+
const params = idosell().getOrdersExportdocumentsJPK.documentType("JPK_MAG").dateBegin("2023-12-01").dateEnd("2023-12-31").stockId([1]).currency("PLN").checkParams();
|
|
6
|
+
expect(params).toEqual({"documentType":"JPK_MAG","dateBegin":"2023-12-01","dateEnd":"2023-12-31","stockId":[1],"currency":"PLN"});
|
|
7
7
|
})
|
|
8
8
|
|
|
9
9
|
test("getOrdersExportdocumentsJPK", () => {
|
|
10
|
-
const params = idosell().getOrdersExportdocumentsJPK.documentType("JPK_FA").dateBegin("2023-12-01").dateEnd("2023-12-31").currency("PLN").
|
|
10
|
+
const params = idosell().getOrdersExportdocumentsJPK.documentType("JPK_FA").dateBegin("2023-12-01").dateEnd("2023-12-31").currency("PLN").checkParams();
|
|
11
11
|
expect(params).toEqual({"documentType":"JPK_FA","dateBegin":"2023-12-01","dateEnd":"2023-12-31","currency":"PLN"});
|
|
12
12
|
})
|
|
13
13
|
|
|
14
14
|
test("getOrdersExportdocumentsJPKDates", () => {
|
|
15
|
-
const params = idosell().getOrdersExportdocumentsJPK.documentType("JPK_MAG").currency("abcdefg").stockId([1,2,3]).dates("2023-12-01", "2023-12-31").
|
|
15
|
+
const params = idosell().getOrdersExportdocumentsJPK.documentType("JPK_MAG").currency("abcdefg").stockId([1,2,3]).dates("2023-12-01", "2023-12-31").checkParams();
|
|
16
16
|
expect(params).toEqual({"documentType":"JPK_MAG","currency":"abcdefg","stockId":[1,2,3],"dateBegin":"2023-12-01","dateEnd":"2023-12-31"});
|
|
17
17
|
})
|
|
@@ -2,6 +2,6 @@ import idosell from "./dist/index"
|
|
|
2
2
|
import { expect, test } from "vitest"
|
|
3
3
|
|
|
4
4
|
test("getOrdersHandlerOrderSerialNumber", () => {
|
|
5
|
-
const params = idosell().getOrdersHandler.orderSerialNumber(3083).
|
|
5
|
+
const params = idosell().getOrdersHandler.orderSerialNumber(3083).checkParams();
|
|
6
6
|
expect(params).toEqual({"orderSerialNumber":3083});
|
|
7
7
|
})
|
|
@@ -2,6 +2,6 @@ import idosell from "./dist/index"
|
|
|
2
2
|
import { expect, test } from "vitest"
|
|
3
3
|
|
|
4
4
|
test("getOrdersHistoryOrderSerialNumber", () => {
|
|
5
|
-
const params = idosell().getOrdersHistory.orderSerialNumber(123).
|
|
5
|
+
const params = idosell().getOrdersHistory.orderSerialNumber(123).checkParams();
|
|
6
6
|
expect(params).toEqual({"orderSerialNumber":123});
|
|
7
7
|
})
|
|
@@ -2,6 +2,6 @@ import idosell from "./dist/index"
|
|
|
2
2
|
import { expect, test } from "vitest"
|
|
3
3
|
|
|
4
4
|
test("getOrdersImagesImageId", () => {
|
|
5
|
-
const params = idosell().getOrdersImages.imageId(1).
|
|
5
|
+
const params = idosell().getOrdersImages.imageId(1).checkParams();
|
|
6
6
|
expect(params).toEqual({"imageId":1});
|
|
7
7
|
})
|
|
@@ -2,6 +2,6 @@ import idosell from "./dist/index"
|
|
|
2
2
|
import { expect, test } from "vitest"
|
|
3
3
|
|
|
4
4
|
test("getOrdersLabelsOrderSerialNumber", () => {
|
|
5
|
-
const params = idosell().getOrdersLabels.orderSerialNumber(3532).
|
|
5
|
+
const params = idosell().getOrdersLabels.orderSerialNumber(3532).checkParams();
|
|
6
6
|
expect(params).toEqual({"orderSerialNumber":3532});
|
|
7
7
|
})
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import idosell from "./dist/index"
|
|
2
2
|
import { expect, test } from "vitest"
|
|
3
3
|
|
|
4
|
-
test("
|
|
5
|
-
const params = idosell().getOrdersOpinionsRate.operation("positive").
|
|
6
|
-
expect(params).toEqual({"operation":"positive"});
|
|
4
|
+
test("getOrdersOpinionsRateId", () => {
|
|
5
|
+
const params = idosell().getOrdersOpinionsRate.operation("positive").id(123).checkParams();
|
|
6
|
+
expect(params).toEqual({"operation":"positive","id":123});
|
|
7
7
|
})
|
|
@@ -2,16 +2,16 @@ import idosell from "./dist/index"
|
|
|
2
2
|
import { expect, test } from "vitest"
|
|
3
3
|
|
|
4
4
|
test("getOrdersPackagesDeliveryPackageNumbers", () => {
|
|
5
|
-
const params = idosell().getOrdersPackages.deliveryPackageNumbers(["13489301116623"]).
|
|
5
|
+
const params = idosell().getOrdersPackages.deliveryPackageNumbers(["13489301116623"]).checkParams();
|
|
6
6
|
expect(params).toEqual({"deliveryPackageNumbers":["13489301116623"]});
|
|
7
7
|
})
|
|
8
8
|
|
|
9
|
-
test("getOrdersPackagesReturnLabels", () => {
|
|
10
|
-
const params = idosell().getOrdersPackages.returnLabels(true).getParams();
|
|
11
|
-
expect(params).toEqual({"returnLabels":true});
|
|
12
|
-
})
|
|
13
|
-
|
|
14
9
|
test("getOrdersPackagesOrderNumbers", () => {
|
|
15
|
-
const params = idosell().getOrdersPackages.orderNumbers([3]).
|
|
10
|
+
const params = idosell().getOrdersPackages.orderNumbers([3]).checkParams();
|
|
16
11
|
expect(params).toEqual({"orderNumbers":[3]});
|
|
12
|
+
})
|
|
13
|
+
|
|
14
|
+
test("getOrdersPackagesReturnLabels", () => {
|
|
15
|
+
const params = idosell().getOrdersPackages.returnNumbers(3).returnLabels(true).checkParams();
|
|
16
|
+
expect(params).toEqual({"returnNumbers":3,"returnLabels":true});
|
|
17
17
|
})
|
|
@@ -2,6 +2,6 @@ import idosell from "./dist/index"
|
|
|
2
2
|
import { expect, test } from "vitest"
|
|
3
3
|
|
|
4
4
|
test("getOrdersProfitabilityOrderSerialNumber", () => {
|
|
5
|
-
const params = idosell().getOrdersProfitability.orderSerialNumber(123).
|
|
5
|
+
const params = idosell().getOrdersProfitability.orderSerialNumber(123).checkParams();
|
|
6
6
|
expect(params).toEqual({"orderSerialNumber":123});
|
|
7
7
|
})
|
|
@@ -2,6 +2,6 @@ import idosell from "./dist/index"
|
|
|
2
2
|
import { expect, test } from "vitest"
|
|
3
3
|
|
|
4
4
|
test("getOrdersWarehouseOrderSerialNumber", () => {
|
|
5
|
-
const params = idosell().getOrdersWarehouse.orderSerialNumber(123).
|
|
5
|
+
const params = idosell().getOrdersWarehouse.orderSerialNumber(123).checkParams();
|
|
6
6
|
expect(params).toEqual({"orderSerialNumber":123});
|
|
7
7
|
})
|
|
@@ -2,6 +2,6 @@ import idosell from "./dist/index"
|
|
|
2
2
|
import { expect, test } from "vitest"
|
|
3
3
|
|
|
4
4
|
test("getPackagesLabels", () => {
|
|
5
|
-
const params = idosell().getPackagesLabels.order(21).
|
|
5
|
+
const params = idosell().getPackagesLabels.order(21).checkParams();
|
|
6
6
|
expect(params).toEqual({"eventType":"order","eventId":21});
|
|
7
7
|
})
|
|
@@ -1,12 +1,7 @@
|
|
|
1
|
-
import idosell from "./dist/index"
|
|
1
|
+
import idosell from "./dist/index.ts"
|
|
2
2
|
import { expect, test } from "vitest"
|
|
3
3
|
|
|
4
|
-
test("
|
|
5
|
-
const params = idosell().getPayments.paymentNumber("3532-1").
|
|
6
|
-
expect(params).toEqual({"paymentNumber":"3532-1"});
|
|
7
|
-
})
|
|
8
|
-
|
|
9
|
-
test("getPaymentsSourceType", () => {
|
|
10
|
-
const params = idosell().getPayments.sourceType("order").getParams();
|
|
11
|
-
expect(params).toEqual({"sourceType":"order"});
|
|
4
|
+
test("getPayments", () => {
|
|
5
|
+
const params = idosell().getPayments.paymentNumber("3532-1").sourceType("order").checkParams();
|
|
6
|
+
expect(params).toEqual({"paymentNumber":"3532-1","sourceType":"order"});
|
|
12
7
|
})
|
|
@@ -2,6 +2,6 @@ import idosell from "./dist/index"
|
|
|
2
2
|
import { expect, test } from "vitest"
|
|
3
3
|
|
|
4
4
|
test("getPaymentsFormsActiveOnly", () => {
|
|
5
|
-
const params = idosell().getPaymentsForms.activeOnly("yes").
|
|
5
|
+
const params = idosell().getPaymentsForms.activeOnly("yes").checkParams();
|
|
6
6
|
expect(params).toEqual({"activeOnly":"yes"});
|
|
7
7
|
})
|
|
@@ -2,6 +2,6 @@ import idosell from "./dist/index"
|
|
|
2
2
|
import { expect, test } from "vitest"
|
|
3
3
|
|
|
4
4
|
test("getPaymentsProfilesPage", () => {
|
|
5
|
-
const params = idosell().getPaymentsProfiles.page(2,10).
|
|
5
|
+
const params = idosell().getPaymentsProfiles.page(2,10).checkParams();
|
|
6
6
|
expect(params).toEqual({"resultsPage":2,"resultsLimit":10});
|
|
7
7
|
})
|
|
@@ -2,6 +2,6 @@ import idosell from "./dist/index"
|
|
|
2
2
|
import { expect, test } from "vitest"
|
|
3
3
|
|
|
4
4
|
test("getProductsProductIds", () => {
|
|
5
|
-
const params = idosell().getProducts.productIds(["5904507908362"]).
|
|
5
|
+
const params = idosell().getProducts.productIds(["5904507908362"]).checkParams();
|
|
6
6
|
expect(params).toEqual({"productIds":["5904507908362"]});
|
|
7
7
|
})
|
|
@@ -1,12 +1,18 @@
|
|
|
1
1
|
import idosell from "./dist/index"
|
|
2
2
|
import { expect, test } from "vitest"
|
|
3
3
|
|
|
4
|
+
|
|
4
5
|
test("getProductsAuctionsPage", () => {
|
|
5
|
-
const params = idosell().getProductsAuctions.page(2,10).
|
|
6
|
+
const params = idosell().getProductsAuctions.page(2,10).checkParams();
|
|
6
7
|
expect(params).toEqual({"resultsPage":2,"resultsLimit":10});
|
|
7
8
|
})
|
|
8
9
|
|
|
9
10
|
test("getProductsAuctionsFromAllegro", () => {
|
|
10
|
-
const params = idosell().getProductsAuctions.
|
|
11
|
-
expect(params).toEqual({"
|
|
11
|
+
const params = idosell().getProductsAuctions.fromAllegro().checkParams();
|
|
12
|
+
expect(params).toEqual({"auctionSites":["allegro"]});
|
|
13
|
+
})
|
|
14
|
+
|
|
15
|
+
test("getProductsAuctionsIds", () => {
|
|
16
|
+
const params = idosell().getProductsAuctions.ids(38204).checkParams();
|
|
17
|
+
expect(params).toEqual({"identType":"id","products":[38204]});
|
|
12
18
|
})
|
|
@@ -2,6 +2,6 @@ import idosell from "./dist/index"
|
|
|
2
2
|
import { expect, test } from "vitest"
|
|
3
3
|
|
|
4
4
|
test("getProductsBrandsPage", () => {
|
|
5
|
-
const params = idosell().getProductsBrands.page(2,10).
|
|
5
|
+
const params = idosell().getProductsBrands.page(2,10).checkParams();
|
|
6
6
|
expect(params).toEqual({"results_page":2,"results_limit":10});
|
|
7
7
|
})
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import idosell from "./dist/index"
|
|
2
2
|
import { expect, test } from "vitest"
|
|
3
3
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
|
|
5
|
+
test("getProductsBrandsFilter", () => {
|
|
6
|
+
const params = idosell().getProductsBrandsFilter.producerId(1644776320).languageId("pol").shopId(1).checkParams();
|
|
7
|
+
expect(params).toEqual({"producerId":1644776320,"languageId":"pol","shopId":1});
|
|
7
8
|
})
|
|
@@ -2,16 +2,16 @@ import idosell from "./dist/index"
|
|
|
2
2
|
import { expect, test } from "vitest"
|
|
3
3
|
|
|
4
4
|
test("getProductsCategoriesLanguages", () => {
|
|
5
|
-
const params = idosell().getProductsCategories.languages(["pol"]).
|
|
5
|
+
const params = idosell().getProductsCategories.languages(["pol"]).checkParams();
|
|
6
6
|
expect(params).toEqual({"languages":["pol"]});
|
|
7
7
|
})
|
|
8
8
|
|
|
9
9
|
test("getProductsCategoriesPage", () => {
|
|
10
|
-
const params = idosell().getProductsCategories.page(2,10).
|
|
10
|
+
const params = idosell().getProductsCategories.page(2,10).checkParams();
|
|
11
11
|
expect(params).toEqual({"results_page":2,"results_limit":10});
|
|
12
12
|
})
|
|
13
13
|
|
|
14
14
|
test("getProductsCategoriesIds", () => {
|
|
15
|
-
const params = idosell().getProductsCategories.ids([1214553885]).
|
|
15
|
+
const params = idosell().getProductsCategories.ids([1214553885]).checkParams();
|
|
16
16
|
expect(params).toEqual({"ids":[1214553885]});
|
|
17
17
|
})
|
|
@@ -2,11 +2,11 @@ import idosell from "./dist/index"
|
|
|
2
2
|
import { expect, test } from "vitest"
|
|
3
3
|
|
|
4
4
|
test("getProductsCodeExistence", () => {
|
|
5
|
-
const params = idosell().getProductsCodeExistence.productId([30, 42]).
|
|
5
|
+
const params = idosell().getProductsCodeExistence.productId([30, 42]).checkParams();
|
|
6
6
|
expect(params).toEqual({"identType":"id","products":[30,42]});
|
|
7
7
|
})
|
|
8
8
|
|
|
9
9
|
test("getProductsCodeExistenceIds", () => {
|
|
10
|
-
const params = idosell().getProductsCodeExistence.identType('codeProducer').products(['1234567890123']).
|
|
10
|
+
const params = idosell().getProductsCodeExistence.identType('codeProducer').products(['1234567890123']).checkParams();
|
|
11
11
|
expect(params).toEqual({"identType":"codeProducer","products":["1234567890123"]});
|
|
12
12
|
})
|
|
@@ -2,6 +2,11 @@ import idosell from "./dist/index"
|
|
|
2
2
|
import { expect, test } from "vitest"
|
|
3
3
|
|
|
4
4
|
test("getProductsDescriptionsIds", () => {
|
|
5
|
-
const params = idosell().getProductsDescriptions.type("id").ids([9]).
|
|
5
|
+
const params = idosell().getProductsDescriptions.type("id").ids([9]).checkParams();
|
|
6
6
|
expect(params).toEqual({"type":"id","ids":[9]});
|
|
7
|
+
})
|
|
8
|
+
|
|
9
|
+
test("getProductsDescriptionsProductId", () => {
|
|
10
|
+
const params = idosell().getProductsDescriptions.productId([30,31]).checkParams();
|
|
11
|
+
expect(params).toEqual({"type":"id","ids":[30,31]});
|
|
7
12
|
})
|
|
@@ -2,6 +2,6 @@ import idosell from "./dist/index"
|
|
|
2
2
|
import { expect, test } from "vitest"
|
|
3
3
|
|
|
4
4
|
test("getProductsIdBySizecodeCodes", () => {
|
|
5
|
-
const params = idosell().getProductsIdBySizecode.codes(["SSL-B2C4"]).
|
|
5
|
+
const params = idosell().getProductsIdBySizecode.codes(["SSL-B2C4"]).checkParams();
|
|
6
6
|
expect(params).toEqual({"codes":["SSL-B2C4"]});
|
|
7
7
|
})
|
|
@@ -2,6 +2,6 @@ import idosell from "./dist/index"
|
|
|
2
2
|
import { expect, test } from "vitest"
|
|
3
3
|
|
|
4
4
|
test("getProductsMarketingAllFacebookCatalogIdsShopId", () => {
|
|
5
|
-
const params = idosell().getProductsMarketingAllFacebookCatalogIds.shopId(123).
|
|
5
|
+
const params = idosell().getProductsMarketingAllFacebookCatalogIds.shopId(123).checkParams();
|
|
6
6
|
expect(params).toEqual({"shopId":123});
|
|
7
7
|
})
|
|
@@ -2,11 +2,11 @@ import idosell from "./dist/index"
|
|
|
2
2
|
import { expect, test } from "vitest"
|
|
3
3
|
|
|
4
4
|
test("getProductsMarketingPromotionShopId", () => {
|
|
5
|
-
const params = idosell().getProductsMarketingPromotion.shopId(1).
|
|
5
|
+
const params = idosell().getProductsMarketingPromotion.shopId(1).checkParams();
|
|
6
6
|
expect(params).toEqual({"shopId":1});
|
|
7
7
|
})
|
|
8
8
|
|
|
9
9
|
test("getProductsMarketingPromotionProducts", () => {
|
|
10
|
-
const params = idosell().getProductsMarketingPromotion.products([9,10,17]).
|
|
10
|
+
const params = idosell().getProductsMarketingPromotion.products([9,10,17]).checkParams();
|
|
11
11
|
expect(params).toEqual({"products":[9,10,17]});
|
|
12
12
|
})
|
|
@@ -2,11 +2,11 @@ import idosell from "./dist/index"
|
|
|
2
2
|
import { expect, test } from "vitest"
|
|
3
3
|
|
|
4
4
|
test("getProductsMarketingZones", () => {
|
|
5
|
-
const params = idosell().getProductsMarketingZones.productId([30, 42]).
|
|
5
|
+
const params = idosell().getProductsMarketingZones.productId([30, 42]).checkParams();
|
|
6
6
|
expect(params).toEqual({"identType":"id","products":[30,42]});
|
|
7
7
|
})
|
|
8
8
|
|
|
9
9
|
test("getProductsMarketingZonesIds", () => {
|
|
10
|
-
const params = idosell().getProductsMarketingZones.identType('codeProducer').products(['1234567890123']).
|
|
10
|
+
const params = idosell().getProductsMarketingZones.identType('codeProducer').products(['1234567890123']).checkParams();
|
|
11
11
|
expect(params).toEqual({"identType":"codeProducer","products":["1234567890123"]});
|
|
12
12
|
})
|
|
@@ -2,11 +2,11 @@ import idosell from "./dist/index"
|
|
|
2
2
|
import { expect, test } from "vitest"
|
|
3
3
|
|
|
4
4
|
test("getProductsOmnibusPrices", () => {
|
|
5
|
-
const params = idosell().getProductsOmnibusPrices.productId([30, 42]).
|
|
5
|
+
const params = idosell().getProductsOmnibusPrices.productId([30, 42]).checkParams();
|
|
6
6
|
expect(params).toEqual({"identType":"id","products":[30,42]});
|
|
7
7
|
})
|
|
8
8
|
|
|
9
9
|
test("getProductsOmnibusPricesIds", () => {
|
|
10
|
-
const params = idosell().getProductsOmnibusPrices.identType('codeProducer').products(['1234567890123']).
|
|
10
|
+
const params = idosell().getProductsOmnibusPrices.identType('codeProducer').products(['1234567890123']).checkParams();
|
|
11
11
|
expect(params).toEqual({"identType":"codeProducer","products":["1234567890123"]});
|
|
12
12
|
})
|
|
@@ -2,16 +2,16 @@ import idosell from "./dist/index"
|
|
|
2
2
|
import { expect, test } from "vitest"
|
|
3
3
|
|
|
4
4
|
test("getProductsOpinionsOrderBy", () => {
|
|
5
|
-
const params = idosell().getProductsOpinions.orderBy("rating").
|
|
5
|
+
const params = idosell().getProductsOpinions.orderBy("rating").checkParams();
|
|
6
6
|
expect(params).toEqual({"ordersBy":[{"elementName":"rating","sortDirection":"DESC"}]});
|
|
7
7
|
})
|
|
8
8
|
|
|
9
9
|
test("getProductsOpinionsPage", () => {
|
|
10
|
-
const params = idosell().getProductsOpinions.page(2,10).
|
|
10
|
+
const params = idosell().getProductsOpinions.page(2,10).checkParams();
|
|
11
11
|
expect(params).toEqual({"resultsPage":2,"resultsLimit":10});
|
|
12
12
|
})
|
|
13
13
|
|
|
14
14
|
test("getProductsOpinionsDates", () => {
|
|
15
|
-
const params = idosell().getProductsOpinions.dates("2023-01-01", 1672704000000).
|
|
15
|
+
const params = idosell().getProductsOpinions.dates("2023-01-01", 1672704000000).checkParams();
|
|
16
16
|
expect(params).toEqual({"dateRange":{"begin":"2023-01-01","end":"2023-01-03"}});
|
|
17
17
|
})
|
|
@@ -2,6 +2,6 @@ import idosell from "./dist/index"
|
|
|
2
2
|
import { expect, test } from "vitest"
|
|
3
3
|
|
|
4
4
|
test("getProductsOpinionsRateOperation", () => {
|
|
5
|
-
const params = idosell().getProductsOpinionsRate.operation("positive").
|
|
6
|
-
expect(params).toEqual({"operation":"positive"});
|
|
5
|
+
const params = idosell().getProductsOpinionsRate.id(1).operation("positive").checkParams();
|
|
6
|
+
expect(params).toEqual({"operation":"positive","id":1});
|
|
7
7
|
})
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import idosell from "./dist/index"
|
|
2
2
|
import { expect, test } from "vitest"
|
|
3
3
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
|
|
5
|
+
test("getProductsProductsToFacebookCatalogFacebookCatalogId", () => {
|
|
6
|
+
const params = idosell().getProductsProductsToFacebookCatalog.shopId(1).facebookCatalogId(123).checkParams();
|
|
7
|
+
expect(params).toEqual({"shopId":1,"facebookCatalogId":123});
|
|
7
8
|
})
|
|
@@ -2,11 +2,11 @@ import idosell from "./dist/index"
|
|
|
2
2
|
import { expect, test } from "vitest"
|
|
3
3
|
|
|
4
4
|
test("getProductsQuestionsProductId", () => {
|
|
5
|
-
const params = idosell().getProductsQuestions.productId(33).
|
|
5
|
+
const params = idosell().getProductsQuestions.productId(33).checkParams();
|
|
6
6
|
expect(params).toEqual({"productId":33});
|
|
7
7
|
})
|
|
8
8
|
|
|
9
9
|
test("getProductsQuestionsId", () => {
|
|
10
|
-
const params = idosell().getProductsQuestions.id(7).
|
|
10
|
+
const params = idosell().getProductsQuestions.id(7).checkParams();
|
|
11
11
|
expect(params).toEqual({"id":7});
|
|
12
12
|
})
|
|
@@ -2,11 +2,11 @@ import idosell from "./dist/index"
|
|
|
2
2
|
import { expect, test } from "vitest"
|
|
3
3
|
|
|
4
4
|
test("getProductsReservations", () => {
|
|
5
|
-
const params = idosell().getProductsReservations.productId([30, 42]).
|
|
5
|
+
const params = idosell().getProductsReservations.productId([30, 42]).checkParams();
|
|
6
6
|
expect(params).toEqual({"identType":"id","products":[30,42]});
|
|
7
7
|
})
|
|
8
8
|
|
|
9
9
|
test("getProductsReservationsIds", () => {
|
|
10
|
-
const params = idosell().getProductsReservations.identType('codeProducer').products(['1234567890123']).
|
|
10
|
+
const params = idosell().getProductsReservations.identType('codeProducer').products(['1234567890123']).checkParams();
|
|
11
11
|
expect(params).toEqual({"identType":"codeProducer","products":["1234567890123"]});
|
|
12
12
|
})
|
|
@@ -2,6 +2,6 @@ import idosell from "./dist/index"
|
|
|
2
2
|
import { expect, test } from "vitest"
|
|
3
3
|
|
|
4
4
|
test("getProductsSKUbyBarcodeProductIndices", () => {
|
|
5
|
-
const params = idosell().getProductsSKUbyBarcode.productIndices(["TIN-B1P3", "5904507908904"]).
|
|
5
|
+
const params = idosell().getProductsSKUbyBarcode.productIndices(["TIN-B1P3", "5904507908904"]).checkParams();
|
|
6
6
|
expect(params).toEqual({"productIndices":["TIN-B1P3","5904507908904"]});
|
|
7
7
|
})
|
|
@@ -2,21 +2,21 @@ import idosell from "./dist/index"
|
|
|
2
2
|
import { expect, test } from "vitest"
|
|
3
3
|
|
|
4
4
|
test("getProductsSeriesReturn_last_changed_time", () => {
|
|
5
|
-
const params = idosell().getProductsSeries.return_last_changed_time("y").
|
|
5
|
+
const params = idosell().getProductsSeries.return_last_changed_time("y").checkParams();
|
|
6
6
|
expect(params).toEqual({"return_last_changed_time":"y"});
|
|
7
7
|
})
|
|
8
8
|
|
|
9
9
|
test("getProductsSeriesIds", () => {
|
|
10
|
-
const params = idosell().getProductsSeries.ids([3]).
|
|
10
|
+
const params = idosell().getProductsSeries.ids([3]).checkParams();
|
|
11
11
|
expect(params).toEqual({"ids":[3]});
|
|
12
12
|
})
|
|
13
13
|
|
|
14
14
|
test("getProductsSeriesLanguagesIds", () => {
|
|
15
|
-
const params = idosell().getProductsSeries.languagesIds(["pol"]).
|
|
15
|
+
const params = idosell().getProductsSeries.languagesIds(["pol"]).checkParams();
|
|
16
16
|
expect(params).toEqual({"languagesIds":["pol"]});
|
|
17
17
|
})
|
|
18
18
|
|
|
19
19
|
test("getProductsSeriesPage", () => {
|
|
20
|
-
const params = idosell().getProductsSeries.page(2,10).
|
|
20
|
+
const params = idosell().getProductsSeries.page(2,10).checkParams();
|
|
21
21
|
expect(params).toEqual({"resultsPage":2,"resultsLimit":10});
|
|
22
22
|
})
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import idosell from "./dist/index"
|
|
2
2
|
import { expect, test } from "vitest"
|
|
3
3
|
|
|
4
|
+
|
|
4
5
|
test("getProductsSeriesFilterSerieId", () => {
|
|
5
|
-
const params = idosell().getProductsSeriesFilter.
|
|
6
|
-
expect(params).toEqual({"serieId":
|
|
6
|
+
const params = idosell().getProductsSeriesFilter.shopId(1).languageId("pol").serieId(9).checkParams();
|
|
7
|
+
expect(params).toEqual({"shopId":1,"languageId":"pol","serieId":9});
|
|
7
8
|
})
|
|
@@ -2,11 +2,11 @@ import idosell from "./dist/index"
|
|
|
2
2
|
import { expect, test } from "vitest"
|
|
3
3
|
|
|
4
4
|
test("getProductsSizesResult::page", () => {
|
|
5
|
-
const params = idosell().getProductsSizes["result::page"](123).
|
|
5
|
+
const params = idosell().getProductsSizes["result::page"](123).checkParams();
|
|
6
6
|
expect(params).toEqual({"result::page":123});
|
|
7
7
|
})
|
|
8
8
|
|
|
9
9
|
test("getProductsSizesPage", () => {
|
|
10
|
-
const params = idosell().getProductsSizes.page(0,100).
|
|
10
|
+
const params = idosell().getProductsSizes.page(0,100).checkParams();
|
|
11
11
|
expect(params).toEqual({"result::page":0,"result::pageNumber":100});
|
|
12
12
|
})
|
|
@@ -2,11 +2,11 @@ import idosell from "./dist/index"
|
|
|
2
2
|
import { expect, test } from "vitest"
|
|
3
3
|
|
|
4
4
|
test("getProductsStocks", () => {
|
|
5
|
-
const params = idosell().getProductsStocks.productId([30, 42]).
|
|
5
|
+
const params = idosell().getProductsStocks.productId([30, 42]).checkParams();
|
|
6
6
|
expect(params).toEqual({"identType":"id","products":[30,42]});
|
|
7
7
|
})
|
|
8
8
|
|
|
9
9
|
test("getProductsStocksIds", () => {
|
|
10
|
-
const params = idosell().getProductsStocks.identType('codeProducer').products(['1234567890123']).
|
|
10
|
+
const params = idosell().getProductsStocks.identType('codeProducer').products(['1234567890123']).checkParams();
|
|
11
11
|
expect(params).toEqual({"identType":"codeProducer","products":["1234567890123"]});
|
|
12
12
|
})
|
|
@@ -2,11 +2,11 @@ import idosell from "./dist/index"
|
|
|
2
2
|
import { expect, test } from "vitest"
|
|
3
3
|
|
|
4
4
|
test("getProductsStrikethroughPrices", () => {
|
|
5
|
-
const params = idosell().getProductsStrikethroughPrices.productId([30, 42]).
|
|
5
|
+
const params = idosell().getProductsStrikethroughPrices.productId([30, 42]).checkParams();
|
|
6
6
|
expect(params).toEqual({"identType":"id","products":[30,42]});
|
|
7
7
|
})
|
|
8
8
|
|
|
9
9
|
test("getProductsStrikethroughPricesIds", () => {
|
|
10
|
-
const params = idosell().getProductsStrikethroughPrices.identType('codeProducer').products(['1234567890123']).
|
|
10
|
+
const params = idosell().getProductsStrikethroughPrices.identType('codeProducer').products(['1234567890123']).checkParams();
|
|
11
11
|
expect(params).toEqual({"identType":"codeProducer","products":["1234567890123"]});
|
|
12
12
|
})
|
|
@@ -2,6 +2,6 @@ import idosell from "./dist/index"
|
|
|
2
2
|
import { expect, test } from "vitest"
|
|
3
3
|
|
|
4
4
|
test("getRefundsGetPossibleAutoRefundsSourceType", () => {
|
|
5
|
-
const params = idosell().getRefundsGetPossibleAutoRefunds.sourceId(1).sourceType("return").
|
|
5
|
+
const params = idosell().getRefundsGetPossibleAutoRefunds.sourceId(1).sourceType("return").checkParams();
|
|
6
6
|
expect(params).toEqual({"sourceId":1,"sourceType":"return"});
|
|
7
7
|
})
|
|
@@ -2,6 +2,6 @@ import idosell from "./dist/index"
|
|
|
2
2
|
import { expect, test } from "vitest"
|
|
3
3
|
|
|
4
4
|
test("getRefundsGetRefundStatusPaymentId", () => {
|
|
5
|
-
const params = idosell().getRefundsGetRefundStatus.sourceId(1).sourceType("return").paymentId("1-1").
|
|
5
|
+
const params = idosell().getRefundsGetRefundStatus.sourceId(1).sourceType("return").paymentId("1-1").checkParams();
|
|
6
6
|
expect(params).toEqual({"sourceId":1,"sourceType":"return","paymentId":"1-1"});
|
|
7
7
|
})
|
|
@@ -2,6 +2,6 @@ import idosell from "./dist/index"
|
|
|
2
2
|
import { expect, test } from "vitest"
|
|
3
3
|
|
|
4
4
|
test("getRefundsRetrieveRefundsListPage", () => {
|
|
5
|
-
const params = idosell().getRefundsRetrieveRefundsList.sourceType("all").page(0).
|
|
5
|
+
const params = idosell().getRefundsRetrieveRefundsList.sourceType("all").page(0).checkParams();
|
|
6
6
|
expect(params).toEqual({"sourceType":"all","resultsPage":0,"resultsLimit":100});
|
|
7
7
|
})
|
|
@@ -2,6 +2,6 @@ import idosell from "./dist/index"
|
|
|
2
2
|
import { expect, test } from "vitest"
|
|
3
3
|
|
|
4
4
|
test("getResponsibilityEntitiesType", () => {
|
|
5
|
-
const params = idosell().getResponsibilityEntities.code("XO").type("producer").
|
|
5
|
+
const params = idosell().getResponsibilityEntities.code("XO").type("producer").checkParams();
|
|
6
6
|
expect(params).toEqual({"code":"XO","type":"producer"});
|
|
7
7
|
})
|
package/tests/getReturns.test.js
CHANGED
|
@@ -2,26 +2,26 @@ import idosell from "./dist/index"
|
|
|
2
2
|
import { expect, test } from "vitest"
|
|
3
3
|
|
|
4
4
|
test("getReturnsOrder_sn", () => {
|
|
5
|
-
const params = idosell().getReturns.order_sn(3471).
|
|
5
|
+
const params = idosell().getReturns.order_sn(3471).checkParams();
|
|
6
6
|
expect(params).toEqual({"order_sn":3471});
|
|
7
7
|
})
|
|
8
8
|
|
|
9
9
|
test("getReturnsReturn_id", () => {
|
|
10
|
-
const params = idosell().getReturns.return_id(179).
|
|
10
|
+
const params = idosell().getReturns.return_id(179).checkParams();
|
|
11
11
|
expect(params).toEqual({"return_id":179});
|
|
12
12
|
})
|
|
13
13
|
|
|
14
14
|
test("getReturnsStatus", () => {
|
|
15
|
-
const params = idosell().getReturns.status(14).
|
|
15
|
+
const params = idosell().getReturns.status(14).checkParams();
|
|
16
16
|
expect(params).toEqual({"status":14});
|
|
17
17
|
})
|
|
18
18
|
|
|
19
19
|
test("getReturnsDates", () => {
|
|
20
|
-
const params = idosell().getReturns.dates("2023-12-01", "2023-12-10", "date_add").
|
|
20
|
+
const params = idosell().getReturns.dates("2023-12-01", "2023-12-10", "date_add").checkParams();
|
|
21
21
|
expect(params).toEqual({"range":{"date][date_begin": "2023-12-01","date][date_end": "2023-12-10","date][dates_type": "date_add",}});
|
|
22
22
|
})
|
|
23
23
|
|
|
24
24
|
test("getReturnsPage", () => {
|
|
25
|
-
const params = idosell().getReturns.page(2,10).
|
|
26
|
-
expect(params).toEqual({"results_page":2,"results_limit":10});
|
|
25
|
+
const params = idosell().getReturns.status(14).page(2,10).checkParams();
|
|
26
|
+
expect(params).toEqual({"status":14,"results_page":2,"results_limit":10});
|
|
27
27
|
})
|
package/tests/getRma.test.js
CHANGED
|
@@ -2,16 +2,16 @@ import idosell from "./dist/index"
|
|
|
2
2
|
import { expect, test } from "vitest"
|
|
3
3
|
|
|
4
4
|
test("getRmaRmaIds", () => {
|
|
5
|
-
const params = idosell().getRma.rmaIds([32]).
|
|
5
|
+
const params = idosell().getRma.rmaIds([32]).checkParams();
|
|
6
6
|
expect(params).toEqual({"rmaIds":[32]});
|
|
7
7
|
})
|
|
8
8
|
|
|
9
9
|
test("getRmaCreated", () => {
|
|
10
|
-
const params = idosell().getRma.created("2023-12-01", "2023-12-31").
|
|
10
|
+
const params = idosell().getRma.created("2023-12-01", "2023-12-31").checkParams();
|
|
11
11
|
expect(params).toEqual({"creationDate":{"dateFrom":"2023-12-01","dateTo":"2023-12-31"}});
|
|
12
12
|
})
|
|
13
13
|
|
|
14
14
|
test("getRmaPage", () => {
|
|
15
|
-
const params = idosell().getRma.page(2,10).
|
|
15
|
+
const params = idosell().getRma.page(2,10).checkParams();
|
|
16
16
|
expect(params).toEqual({"resultsPage":2,"resultsLimit":10});
|
|
17
17
|
})
|
|
@@ -2,16 +2,16 @@ import idosell from "./dist/index"
|
|
|
2
2
|
import { expect, test } from "vitest"
|
|
3
3
|
|
|
4
4
|
test("getSizechartsLanguages", () => {
|
|
5
|
-
const params = idosell().getSizecharts.languages(["pol"]).
|
|
5
|
+
const params = idosell().getSizecharts.languages(["pol"]).checkParams();
|
|
6
6
|
expect(params).toEqual({"languages":["pol"]});
|
|
7
7
|
})
|
|
8
8
|
|
|
9
9
|
test("getSizechartsPage", () => {
|
|
10
|
-
const params = idosell().getSizecharts.page(2,10).
|
|
10
|
+
const params = idosell().getSizecharts.page(2,10).checkParams();
|
|
11
11
|
expect(params).toEqual({"resultsPage":2,"resultsLimit":10});
|
|
12
12
|
})
|
|
13
13
|
|
|
14
14
|
test("getSizechartsIds", () => {
|
|
15
|
-
const params = idosell().getSizecharts.ids([1,2,3]).
|
|
15
|
+
const params = idosell().getSizecharts.ids([1,2,3]).checkParams();
|
|
16
16
|
expect(params).toEqual({"ids":[1,2,3]});
|
|
17
17
|
})
|