idosell 0.3.11 → 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.
- package/changelog.md +17 -1
- package/dist/app.d.ts +1 -1
- package/dist/enums.d.ts +227 -11
- package/dist/enums.js +228 -10
- package/dist/gateways.d.ts +56 -10
- package/dist/helpers.js +55 -11
- package/dist/methods/getProductsDescriptions.js +3 -0
- package/dist/methods/getReturns.js +1 -0
- package/dist/methods/getVouchers.js +1 -0
- package/dist/methods/postOrders.js +1 -1
- package/dist/methods/postOrdersDocuments.js +1 -1
- package/dist/methods/postOrdersImages.js +1 -1
- package/dist/methods/postProducts.js +0 -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/putProductsQuestions.js +4 -0
- package/dist/params.js +2 -1
- package/dist/request.js +23 -0
- 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 +2 -2
- package/tests/getClientsPricelists.test.js +2 -2
- package/tests/getClientsPricelistsClients.test.js +1 -1
- package/tests/getClientsPricelistsProducts.test.js +2 -2
- 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 +2 -2
- package/tests/getCouriersPickupPoints.test.js +3 -3
- 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 +1 -1
- package/tests/getMenuFilter.test.js +1 -1
- package/tests/getOrders.test.js +1 -1
- package/tests/getOrdersAnalytics.test.js +1 -1
- package/tests/getOrdersAuctionDetails.test.js +1 -1
- package/tests/getOrdersDocuments.test.js +1 -1
- package/tests/getOrdersExportdocumentsEPP.test.js +4 -4
- package/tests/getOrdersExportdocumentsJPK.test.js +3 -3
- 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 +1 -1
- package/tests/getOrdersPackages.test.js +3 -3
- 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 +2 -2
- 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 +2 -2
- package/tests/getProductsBrands.test.js +1 -1
- package/tests/getProductsBrandsFilter.test.js +1 -1
- 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 +1 -1
- package/tests/getProductsProductsToFacebookCatalog.test.js +1 -1
- 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 +1 -1
- 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 +5 -5
- 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 +2 -2
- package/tests/getWmsStocksdocumentsDocuments.test.js +4 -4
- package/tests/getWmsStocksdocumentsOpenedDocuments.test.js +4 -4
- package/tests/getWmsStocksdocumentsProducts.test.js +2 -2
- 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 +2 -2
- package/tests/postMenu.test.js +1 -1
- package/tests/postOrders.test.js +2 -2
- package/tests/postOrdersDocuments.test.js +1 -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 +4 -4
- 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 +1 -1
- 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 +1 -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 +1 -1
- 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 +2 -2
- 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,26 +2,26 @@ import idosell from "./dist/index"
|
|
|
2
2
|
import { expect, test } from "vitest"
|
|
3
3
|
|
|
4
4
|
test("putProductsImagesProductImages", () => {
|
|
5
|
-
const params = idosell().putProductsImages.productsImagesSettings({"productsImagesSourceType":"url","productsImagesApplyMacro":true}).productIdent({"identValue":"33","productIdentType":"id"}).productImages([{"productImageSource":"https://www.wikipedia.org/portal/wikipedia.org/assets/img/Wikipedia-logo-v2.png","productImageNumber":7}]).
|
|
5
|
+
const params = idosell().putProductsImages.productsImagesSettings({"productsImagesSourceType":"url","productsImagesApplyMacro":true}).productIdent({"identValue":"33","productIdentType":"id"}).productImages([{"productImageSource":"https://www.wikipedia.org/portal/wikipedia.org/assets/img/Wikipedia-logo-v2.png","productImageNumber":7}]).checkParams();
|
|
6
6
|
expect(params).toEqual({"productsImagesSettings":{"productsImagesSourceType":"url","productsImagesApplyMacro":true},"productsImages":[{"productIdent":{"identValue":"33","productIdentType":"id"},"productImages":[{"productImageSource":"https://www.wikipedia.org/portal/wikipedia.org/assets/img/Wikipedia-logo-v2.png","productImageNumber":7}]}]});
|
|
7
7
|
})
|
|
8
8
|
|
|
9
9
|
test("putProductsImagesAddSingleImage", () => {
|
|
10
|
-
const params = idosell().putProductsImages.productId(31).addImage("https://www.idosell.com/panel/file-gate.php?id=279794&ext=.webp").
|
|
10
|
+
const params = idosell().putProductsImages.productId(31).addImage("https://www.idosell.com/panel/file-gate.php?id=279794&ext=.webp").checkParams();
|
|
11
11
|
expect(params).toEqual({"productsImagesSettings":{"productsImagesSourceType":"url","productsImagesApplyMacro":true},"productsImages":[{"productIdent":{"productIdentType":"id","identValue":31},"productImages":[{"productImageNumber":1,"productImageSource":"https://www.idosell.com/panel/file-gate.php?id=279794&ext=.webp"}]}]});
|
|
12
12
|
})
|
|
13
13
|
|
|
14
14
|
test("putProductsImagesAddMultipleImage", () => {
|
|
15
|
-
const params = idosell().putProductsImages.productId(31).addImage("https://www.idosell.com/panel/file-gate.php?id=279792&ext=.webp", 4).addImage("https://www.idosell.com/panel/file-gate.php?id=279793&ext=.webp").
|
|
15
|
+
const params = idosell().putProductsImages.productId(31).addImage("https://www.idosell.com/panel/file-gate.php?id=279792&ext=.webp", 4).addImage("https://www.idosell.com/panel/file-gate.php?id=279793&ext=.webp").checkParams();
|
|
16
16
|
expect(params).toEqual({"productsImagesSettings":{"productsImagesSourceType":"url","productsImagesApplyMacro":true},"productsImages":[{"productIdent":{"productIdentType":"id","identValue":31},"productImages":[{"productImageNumber":4,"productImageSource":"https://www.idosell.com/panel/file-gate.php?id=279792&ext=.webp"},{"productImageNumber":5,"productImageSource":"https://www.idosell.com/panel/file-gate.php?id=279793&ext=.webp"}]}]});
|
|
17
17
|
})
|
|
18
18
|
|
|
19
19
|
test("putProductsImagesShopIcon", () => {
|
|
20
|
-
const params = idosell().putProductsImages.productId(31).shopIcon("https://www.wikipedia.org/portal/wikipedia.org/assets/img/Wikipedia-logo-v2.png").
|
|
20
|
+
const params = idosell().putProductsImages.productId(31).shopIcon("https://www.wikipedia.org/portal/wikipedia.org/assets/img/Wikipedia-logo-v2.png").checkParams();
|
|
21
21
|
expect(params).toEqual({"productsImagesSettings":{"productsImagesSourceType":"url","productsImagesApplyMacro":true},"productsImages":[{"productIdent":{"productIdentType":"id","identValue":31},"productIcons":[{"productIconType":"shop","productIconSource":"https://www.wikipedia.org/portal/wikipedia.org/assets/img/Wikipedia-logo-v2.png"}]}]});
|
|
22
22
|
})
|
|
23
23
|
|
|
24
24
|
test("putProductsImagesIcons", () => {
|
|
25
|
-
const params = idosell().putProductsImages.productId(31).shopIcon("https://www.wikipedia.org/portal/wikipedia.org/assets/img/Wikipedia-logo-v2.png").auctionIcon("https://www.wikipedia.org/portal/wikipedia.org/assets/img/Wikipedia-logo-v2.png").groupIcon("https://www.wikipedia.org/portal/wikipedia.org/assets/img/Wikipedia-logo-v2.png").
|
|
25
|
+
const params = idosell().putProductsImages.productId(31).shopIcon("https://www.wikipedia.org/portal/wikipedia.org/assets/img/Wikipedia-logo-v2.png").auctionIcon("https://www.wikipedia.org/portal/wikipedia.org/assets/img/Wikipedia-logo-v2.png").groupIcon("https://www.wikipedia.org/portal/wikipedia.org/assets/img/Wikipedia-logo-v2.png").checkParams();
|
|
26
26
|
expect(params).toEqual({"productsImagesSettings":{"productsImagesSourceType":"url","productsImagesApplyMacro":true},"productsImages":[{"productIdent":{"productIdentType":"id","identValue":31},"productIcons":[{"productIconType":"shop","productIconSource":"https://www.wikipedia.org/portal/wikipedia.org/assets/img/Wikipedia-logo-v2.png"},{"productIconType":"auction","productIconSource":"https://www.wikipedia.org/portal/wikipedia.org/assets/img/Wikipedia-logo-v2.png"},{"productIconType":"group","productIconSource":"https://www.wikipedia.org/portal/wikipedia.org/assets/img/Wikipedia-logo-v2.png"}]}]});
|
|
27
27
|
})
|
|
@@ -2,6 +2,6 @@ import idosell from "./dist/index"
|
|
|
2
2
|
import { expect, test } from "vitest"
|
|
3
3
|
|
|
4
4
|
test("putProductsMarketingPromotionPromotionName", () => {
|
|
5
|
-
const params = idosell().putProductsMarketingPromotion.promotionId("3").promotionName("Promocja").
|
|
5
|
+
const params = idosell().putProductsMarketingPromotion.promotionId("3").promotionName("Promocja").checkParams();
|
|
6
6
|
expect(params).toEqual({"promotionId":"3","promotionName":"Promocja"});
|
|
7
7
|
})
|
|
@@ -2,6 +2,6 @@ import idosell from "./dist/index"
|
|
|
2
2
|
import { expect, test } from "vitest"
|
|
3
3
|
|
|
4
4
|
test("putProductsMarketingZonesAssignment_mode", () => {
|
|
5
|
-
const params = idosell().putProductsMarketingZones.ident({"type":"id","value":"33"}).marketing_zones({"promotion":"yes","discount":"yes","distinguished":"yes","special":"yes"}).assignment_mode("manual").
|
|
5
|
+
const params = idosell().putProductsMarketingZones.ident({"type":"id","value":"33"}).marketing_zones({"promotion":"yes","discount":"yes","distinguished":"yes","special":"yes"}).assignment_mode("manual").checkParams();
|
|
6
6
|
expect(params).toEqual({"shops":[{"ident":{"type":"id","value":"33"}}],"marketing_zones":{"promotion":"yes","discount":"yes","distinguished":"yes","special":"yes"},"assignment_mode":"manual"});
|
|
7
7
|
})
|
|
@@ -2,6 +2,6 @@ import idosell from "./dist/index"
|
|
|
2
2
|
import { expect, test } from "vitest"
|
|
3
3
|
|
|
4
4
|
test("putProductsOmnibusPricesOmnibusPrices", () => {
|
|
5
|
-
const params = idosell().putProductsOmnibusPrices.ident({"type":"id","value":"33"}).omnibusPrices({"omnibusPriceRetail":299}).
|
|
5
|
+
const params = idosell().putProductsOmnibusPrices.ident({"type":"id","value":"33"}).omnibusPrices({"omnibusPriceRetail":299}).checkParams();
|
|
6
6
|
expect(params).toEqual({"products":[{"ident":{"type":"id","value":"33"},"omnibusPrices":{"omnibusPriceRetail":299}}]});
|
|
7
7
|
})
|
|
@@ -2,6 +2,6 @@ import idosell from "./dist/index"
|
|
|
2
2
|
import { expect, test } from "vitest"
|
|
3
3
|
|
|
4
4
|
test("putProductsOpinionsConfirmed", () => {
|
|
5
|
-
const params = idosell().putProductsOpinions.id(1).confirmed("y").
|
|
5
|
+
const params = idosell().putProductsOpinions.id(1).confirmed("y").checkParams();
|
|
6
6
|
expect(params).toEqual({"id":1,"confirmed":"y"});
|
|
7
7
|
})
|
|
@@ -2,6 +2,6 @@ import idosell from "./dist/index"
|
|
|
2
2
|
import { expect, test } from "vitest"
|
|
3
3
|
|
|
4
4
|
test("putProductsParametersNames", () => {
|
|
5
|
-
const params = idosell().putProductsParameters.id(67).names([{"lang_id":"pol","value":"102cm"}]).
|
|
5
|
+
const params = idosell().putProductsParameters.id(67).names([{"lang_id":"pol","value":"102cm"}]).checkParams();
|
|
6
6
|
expect(params).toEqual({"items":[{"id":67,"names":[{"lang_id":"pol","value":"102cm"}]}]});
|
|
7
7
|
})
|
|
@@ -2,6 +2,6 @@ import idosell from "./dist/index"
|
|
|
2
2
|
import { expect, test } from "vitest"
|
|
3
3
|
|
|
4
4
|
test("putProductsQuestionsVisible", () => {
|
|
5
|
-
const params = idosell().putProductsQuestions.id(7).visible("n").
|
|
5
|
+
const params = idosell().putProductsQuestions.id(7).visible("n").checkParams();
|
|
6
6
|
expect(params).toEqual({"questions":[{"id":7,"visible":"n"}]});
|
|
7
7
|
})
|
|
@@ -2,6 +2,6 @@ import idosell from "./dist/index"
|
|
|
2
2
|
import { expect, test } from "vitest"
|
|
3
3
|
|
|
4
4
|
test("putProductsSeriesNameInPanel", () => {
|
|
5
|
-
const params = idosell().putProductsSeries.id(1).nameInPanel("Seria 1").
|
|
5
|
+
const params = idosell().putProductsSeries.id(1).nameInPanel("Seria 1").checkParams();
|
|
6
6
|
expect(params).toEqual({"series":[{"id":1,"nameInPanel":"Seria 1"}]});
|
|
7
7
|
})
|
|
@@ -2,11 +2,11 @@ import idosell from "./dist/index"
|
|
|
2
2
|
import { expect, test } from "vitest"
|
|
3
3
|
|
|
4
4
|
test("putProductsSeriesFilterFilterDisplay", () => {
|
|
5
|
-
const params = idosell().putProductsSeriesFilter.shopId(1).languageId("pol").serieId(1).filterId("series_0").filterName("Kolekcja").filterDisplay("namegfx").
|
|
5
|
+
const params = idosell().putProductsSeriesFilter.shopId(1).languageId("pol").serieId(1).filterId("series_0").filterName("Kolekcja").filterDisplay("namegfx").checkParams();
|
|
6
6
|
expect(params).toEqual({"shopId":1,"languageId":"pol","serieId":1,"filtersActive":[{"filterId":"series_0","filterName":"Kolekcja","filterDisplay":"namegfx"}]});
|
|
7
7
|
})
|
|
8
8
|
|
|
9
9
|
test("putProductsSeriesFilterFilterDefaultEnabled", () => {
|
|
10
|
-
const params = idosell().putProductsSeriesFilter.shopId(1).languageId("pol").serieId(1).filterId("series_0").filterName("Kolekcja").filterDisplay("namegfx").filterDefaultEnabled("y").
|
|
10
|
+
const params = idosell().putProductsSeriesFilter.shopId(1).languageId("pol").serieId(1).filterId("series_0").filterName("Kolekcja").filterDisplay("namegfx").filterDefaultEnabled("y").checkParams();
|
|
11
11
|
expect(params).toEqual({"shopId":1,"languageId":"pol","serieId":1,"filtersActive":[{"filterId":"series_0","filterName":"Kolekcja","filterDisplay":"namegfx","filterDefaultEnabled":"y"}]});
|
|
12
12
|
})
|
|
@@ -2,6 +2,6 @@ import idosell from "./dist/index"
|
|
|
2
2
|
import { expect, test } from "vitest"
|
|
3
3
|
|
|
4
4
|
test("putProductsSizesSizes", () => {
|
|
5
|
-
const params = idosell().putProductsSizes.mode("add").productId(13).sizes([{"sizeId": "9"}]).
|
|
5
|
+
const params = idosell().putProductsSizes.mode("add").productId(13).sizes([{"sizeId": "9"}]).checkParams();
|
|
6
6
|
expect(params).toEqual({"mode":"add","sizesProductsData":[{"productId":13,"sizes":[{"sizeId":"9"}]}]});
|
|
7
7
|
})
|
|
@@ -2,6 +2,6 @@ import idosell from "./dist/index"
|
|
|
2
2
|
import { expect, test } from "vitest"
|
|
3
3
|
|
|
4
4
|
test("putProductsStockQuantityProductSizeQuantity", () => {
|
|
5
|
-
const params = idosell().putProductsStockQuantity.productSizeCodeExternal("123456").stockId(1).productSizeQuantity(50).
|
|
5
|
+
const params = idosell().putProductsStockQuantity.productSizeCodeExternal("123456").stockId(1).productSizeQuantity(50).checkParams();
|
|
6
6
|
expect(params).toEqual({"products":[{"productSizeCodeExternal":"123456","stockId":1,"productSizeQuantity":50}]});
|
|
7
7
|
})
|
|
@@ -2,6 +2,6 @@ import idosell from "./dist/index"
|
|
|
2
2
|
import { expect, test } from "vitest"
|
|
3
3
|
|
|
4
4
|
test("putProductsStocksSizes", () => {
|
|
5
|
-
const params = idosell().putProductsStocks.ident({"identType":"id","identValue":"13"}).sizes([{"ident":{"identType":"id","identValue":"1"},"quantity":{"stocks":[{"quantity_operation":{"operation":"set","quantity":20},"stock_id":1}]}}]).
|
|
5
|
+
const params = idosell().putProductsStocks.ident({"identType":"id","identValue":"13"}).sizes([{"ident":{"identType":"id","identValue":"1"},"quantity":{"stocks":[{"quantity_operation":{"operation":"set","quantity":20},"stock_id":1}]}}]).checkParams();
|
|
6
6
|
expect(params).toEqual({"products":[{"ident":{"identType":"id","identValue":"13"},"sizes":[{"ident":{"identType":"id","identValue":"1"},"quantity":{"stocks":[{"quantity_operation":{"operation":"set","quantity":20},"stock_id":1}]}}]}]});
|
|
7
7
|
})
|
|
@@ -2,6 +2,6 @@ import idosell from "./dist/index"
|
|
|
2
2
|
import { expect, test } from "vitest"
|
|
3
3
|
|
|
4
4
|
test("putProductsStrikethroughPricesStp_settings", () => {
|
|
5
|
-
const params = idosell().putProductsStrikethroughPrices.ident({"type":"id","value":"33"}).stp_settings({"price_change_mode":"amount_set","price_change_basevalue":"price","retail_price_change_value":199}).
|
|
5
|
+
const params = idosell().putProductsStrikethroughPrices.ident({"type":"id","value":"33"}).stp_settings({"price_change_mode":"amount_set","price_change_basevalue":"price","retail_price_change_value":199}).checkParams();
|
|
6
6
|
expect(params).toEqual({"products":[{"ident":{"type":"id","value":"33"},"stp_settings":{"price_change_mode":"amount_set","price_change_basevalue":"price","retail_price_change_value":199}}]});
|
|
7
7
|
})
|
|
@@ -2,6 +2,6 @@ import idosell from "./dist/index"
|
|
|
2
2
|
import { expect, test } from "vitest"
|
|
3
3
|
|
|
4
4
|
test("putProductsSupplierCodeProductDeliverers", () => {
|
|
5
|
-
const params = idosell().putProductsSupplierCode.productId(33).productDeliverers([{"delivererId":1,"productSizes":[{"sizeId":"uniw","sizeDelivererCode":"PAV01"}]}]).
|
|
5
|
+
const params = idosell().putProductsSupplierCode.productId(33).productDeliverers([{"delivererId":1,"productSizes":[{"sizeId":"uniw","sizeDelivererCode":"PAV01"}]}]).checkParams();
|
|
6
6
|
expect(params).toEqual({"products":[{"productId":33,"productDeliverers":[{"delivererId":1,"productSizes":[{"sizeId":"uniw","sizeDelivererCode":"PAV01"}]}]}]});
|
|
7
7
|
})
|
|
@@ -2,6 +2,6 @@ import idosell from "./dist/index"
|
|
|
2
2
|
import { expect, test } from "vitest"
|
|
3
3
|
|
|
4
4
|
test("putProductsSupplierProductDataProductDeliverers", () => {
|
|
5
|
-
const params = idosell().putProductsSupplierProductData.productId(33).productDeliverers([{"delivererId":1,"productSizes":[{"sizeId":"uniw","quantity":100}]}]).
|
|
5
|
+
const params = idosell().putProductsSupplierProductData.productId(33).productDeliverers([{"delivererId":1,"productSizes":[{"sizeId":"uniw","quantity":100}]}]).checkParams();
|
|
6
6
|
expect(params).toEqual({"products":[{"productId":33,"productDeliverers":[{"delivererId":1,"productSizes":[{"sizeId":"uniw","quantity":100}]}]}]});
|
|
7
7
|
})
|
|
@@ -2,6 +2,6 @@ import idosell from "./dist/index"
|
|
|
2
2
|
import { expect, test } from "vitest"
|
|
3
3
|
|
|
4
4
|
test("putRefundsCancelRefundPaymentId", () => {
|
|
5
|
-
const params = idosell().putRefundsCancelRefund.sourceType("order").sourceId(3).paymentId(6).
|
|
5
|
+
const params = idosell().putRefundsCancelRefund.sourceType("order").sourceId(3).paymentId(6).checkParams();
|
|
6
6
|
expect(params).toEqual({"sourceType":"order","sourceId":3,"paymentId":6});
|
|
7
7
|
})
|
|
@@ -2,6 +2,6 @@ import idosell from "./dist/index.ts"
|
|
|
2
2
|
import { expect, test } from "vitest"
|
|
3
3
|
|
|
4
4
|
test("putRefundsConfirmRefundPaymentId", () => {
|
|
5
|
-
const params = idosell().putRefundsConfirmRefund.sourceType("order").sourceId(206).paymentId(4).
|
|
5
|
+
const params = idosell().putRefundsConfirmRefund.sourceType("order").sourceId(206).paymentId(4).checkParams();
|
|
6
6
|
expect(params).toEqual({"sourceType":"order","sourceId":206,"paymentId":4});
|
|
7
7
|
})
|
|
@@ -2,6 +2,6 @@ import idosell from "./dist/index"
|
|
|
2
2
|
import { expect, test } from "vitest"
|
|
3
3
|
|
|
4
4
|
test("putRefundsUpdateRefundRefundCurrency", () => {
|
|
5
|
-
const params = idosell().putRefundsUpdateRefund.sourceType("order").sourceId(3).paymentId(5).refundValue(15).refundCurrency("PLN").
|
|
5
|
+
const params = idosell().putRefundsUpdateRefund.sourceType("order").sourceId(3).paymentId(5).refundValue(15).refundCurrency("PLN").checkParams();
|
|
6
6
|
expect(params).toEqual({"sourceType":"order","sourceId":3,"paymentId":5,"refundValue":15,"refundCurrency":"PLN"});
|
|
7
7
|
})
|
|
@@ -2,6 +2,6 @@ import idosell from "./dist/index"
|
|
|
2
2
|
import { expect, test } from "vitest"
|
|
3
3
|
|
|
4
4
|
test("putResponsibilityEntitiesType", () => {
|
|
5
|
-
const params = idosell().putResponsibilityEntities.code("XO").mail("new@mail.com").type("producer").
|
|
5
|
+
const params = idosell().putResponsibilityEntities.code("XO").mail("new@mail.com").type("producer").checkParams();
|
|
6
6
|
expect(params).toEqual({"entities":[{"code":"XO","mail":"new@mail.com"}],"type":"producer"});
|
|
7
7
|
})
|
package/tests/putReturns.test.js
CHANGED
|
@@ -2,6 +2,6 @@ import idosell from "./dist/index"
|
|
|
2
2
|
import { expect, test } from "vitest"
|
|
3
3
|
|
|
4
4
|
test("putReturnsStatus", () => {
|
|
5
|
-
const params = idosell().putReturns.id(2).status(2).
|
|
5
|
+
const params = idosell().putReturns.id(2).status(2).checkParams();
|
|
6
6
|
expect(params).toEqual({"returns":[{"id":2,"status":2}]});
|
|
7
7
|
})
|
|
@@ -2,6 +2,6 @@ import idosell from "./dist/index"
|
|
|
2
2
|
import { expect, test } from "vitest"
|
|
3
3
|
|
|
4
4
|
test("putReturnsSerialNumberSerialNumbers", () => {
|
|
5
|
-
const params = idosell().putReturnsSerialNumber.return_id(2).id(8).size("U").serialNumbers(["abc"]).
|
|
5
|
+
const params = idosell().putReturnsSerialNumber.return_id(2).id(8).size("U").serialNumbers(["abc"]).checkParams();
|
|
6
6
|
expect(params).toEqual({"return_id":2,"products":[{"id":8,"size":"U","serialNumbers":["abc"]}]});
|
|
7
7
|
})
|
package/tests/putRma.test.js
CHANGED
|
@@ -2,6 +2,6 @@ import idosell from "./dist/index"
|
|
|
2
2
|
import { expect, test } from "vitest"
|
|
3
3
|
|
|
4
4
|
test("putRmaRmaStatusId", () => {
|
|
5
|
-
const params = idosell().putRma.rmaId(2).rmaStatusId(20).
|
|
5
|
+
const params = idosell().putRma.rmaId(2).rmaStatusId(20).checkParams();
|
|
6
6
|
expect(params).toEqual({"rmas":[{"rmaId":2,"rmaStatusId":20}]});
|
|
7
7
|
})
|
|
@@ -2,6 +2,6 @@ import idosell from "./dist/index"
|
|
|
2
2
|
import { expect, test } from "vitest"
|
|
3
3
|
|
|
4
4
|
test("putSizechartsDisplayMode", () => {
|
|
5
|
-
const params = idosell().putSizecharts.id(1).nameInPanel("Ubrania").displayMode("single").
|
|
5
|
+
const params = idosell().putSizecharts.id(1).nameInPanel("Ubrania").displayMode("single").checkParams();
|
|
6
6
|
expect(params).toEqual({"sizeCharts":[{"id":1,"nameInPanel":"Ubrania","displayMode":"single"}]});
|
|
7
7
|
})
|
package/tests/putSizes.test.js
CHANGED
|
@@ -2,11 +2,11 @@ import idosell from "./dist/index"
|
|
|
2
2
|
import { expect, test } from "vitest"
|
|
3
3
|
|
|
4
4
|
test("putSizesName", () => {
|
|
5
|
-
const params = idosell().putSizes.id("W").name("512GB").
|
|
5
|
+
const params = idosell().putSizes.id("W").name("512GB").checkParams();
|
|
6
6
|
expect(params).toEqual({"sizes":[{"id":"W","name":"512GB"}]});
|
|
7
7
|
})
|
|
8
8
|
|
|
9
9
|
test("putSizesOperation", () => {
|
|
10
|
-
const params = idosell().putSizes.id("W").name("512GB").description("512GB").operation("edit").
|
|
10
|
+
const params = idosell().putSizes.id("W").name("512GB").description("512GB").operation("edit").checkParams();
|
|
11
11
|
expect(params).toEqual({"sizes":[{"id":"W","name":"512GB","description":"512GB","operation":"edit"}]});
|
|
12
12
|
})
|
|
@@ -2,6 +2,6 @@ import idosell from "./dist/index"
|
|
|
2
2
|
import { expect, test } from "vitest"
|
|
3
3
|
|
|
4
4
|
test("putSnippetsName", () => {
|
|
5
|
-
const params = idosell().putSnippets.id(1).name("widget").
|
|
5
|
+
const params = idosell().putSnippets.id(1).name("widget").checkParams();
|
|
6
6
|
expect(params).toEqual({"snippets":[{"id":1,"name":"widget"}]});
|
|
7
7
|
})
|
|
@@ -2,6 +2,6 @@ import idosell from "./dist/index"
|
|
|
2
2
|
import { expect, test } from "vitest"
|
|
3
3
|
|
|
4
4
|
test("putSnippetsCampaignName", () => {
|
|
5
|
-
const params = idosell().putSnippetsCampaign.id(1).name("campaign").
|
|
5
|
+
const params = idosell().putSnippetsCampaign.id(1).name("campaign").checkParams();
|
|
6
6
|
expect(params).toEqual({"campaigns":[{"id":1,"name":"campaign"}]});
|
|
7
7
|
})
|
|
@@ -2,6 +2,6 @@ import idosell from "./dist/index"
|
|
|
2
2
|
import { expect, test } from "vitest"
|
|
3
3
|
|
|
4
4
|
test("putSnippetsCookiesName", () => {
|
|
5
|
-
const params = idosell().putSnippetsCookies.id(1).name("mycookie").
|
|
5
|
+
const params = idosell().putSnippetsCookies.id(1).name("mycookie").checkParams();
|
|
6
6
|
expect(params).toEqual({"cookies":[{"id":1,"name":"mycookie"}]});
|
|
7
7
|
})
|
|
@@ -2,6 +2,6 @@ import idosell from "./dist/index"
|
|
|
2
2
|
import { expect, test } from "vitest"
|
|
3
3
|
|
|
4
4
|
test("putSystemConfigPanelSettings", () => {
|
|
5
|
-
const params = idosell().putSystemConfig.panelSettings({"mainStockSystem":"iai"}).
|
|
5
|
+
const params = idosell().putSystemConfig.panelSettings({"mainStockSystem":"iai"}).checkParams();
|
|
6
6
|
expect(params).toEqual({"panelSettings":{"mainStockSystem":"iai"}});
|
|
7
7
|
})
|
|
@@ -2,6 +2,6 @@ import idosell from "./dist/index"
|
|
|
2
2
|
import { expect, test } from "vitest"
|
|
3
3
|
|
|
4
4
|
test("putSystemCurrenciesScale", () => {
|
|
5
|
-
const params = idosell().putSystemCurrencies.id("EUR").rate(4.7).scale(1).
|
|
5
|
+
const params = idosell().putSystemCurrencies.id("EUR").rate(4.7).scale(1).checkParams();
|
|
6
6
|
expect(params).toEqual({"currencies":[{"id":"EUR","rate":4.7,"scale":1}]});
|
|
7
7
|
})
|
|
@@ -2,6 +2,6 @@ import idosell from "./dist/index"
|
|
|
2
2
|
import { expect, test } from "vitest"
|
|
3
3
|
|
|
4
4
|
test("putSystemProcessesAutomationOrders", () => {
|
|
5
|
-
const params = idosell().putSystemProcessesAutomation.shopId(1).orders({"alwaysAllowSentStatus": "n"}).
|
|
5
|
+
const params = idosell().putSystemProcessesAutomation.shopId(1).orders({"alwaysAllowSentStatus": "n"}).checkParams();
|
|
6
6
|
expect(params).toEqual({"shopId":1,"orders":{"alwaysAllowSentStatus":"n"}});
|
|
7
7
|
})
|
|
@@ -2,6 +2,6 @@ import idosell from "./dist/index"
|
|
|
2
2
|
import { expect, test } from "vitest"
|
|
3
3
|
|
|
4
4
|
test("putSystemUnitsNameInPanel", () => {
|
|
5
|
-
const params = idosell().putSystemUnits.id(3).nameInPanel("paczki").
|
|
5
|
+
const params = idosell().putSystemUnits.id(3).nameInPanel("paczki").checkParams();
|
|
6
6
|
expect(params).toEqual({"units":[{"id":3,"nameInPanel":"paczki"}]});
|
|
7
7
|
})
|
|
@@ -2,6 +2,6 @@ import idosell from "./dist/index"
|
|
|
2
2
|
import { expect, test } from "vitest"
|
|
3
3
|
|
|
4
4
|
test("putVouchersName", () => {
|
|
5
|
-
const params = idosell().putVouchers.id(26).name("Bon").
|
|
5
|
+
const params = idosell().putVouchers.id(26).name("Bon").checkParams();
|
|
6
6
|
expect(params).toEqual({"vouchers":[{"id":26,"name":"Bon"}]});
|
|
7
7
|
})
|
|
@@ -2,6 +2,6 @@ import idosell from "./dist/index"
|
|
|
2
2
|
import { expect, test } from "vitest"
|
|
3
3
|
|
|
4
4
|
test("putVouchersBlockId", () => {
|
|
5
|
-
const params = idosell().putVouchersBlock.id(26).
|
|
5
|
+
const params = idosell().putVouchersBlock.id(26).checkParams();
|
|
6
6
|
expect(params).toEqual({"vouchers":[{"id":26}]});
|
|
7
7
|
})
|
|
@@ -2,6 +2,6 @@ import idosell from "./dist/index"
|
|
|
2
2
|
import { expect, test } from "vitest"
|
|
3
3
|
|
|
4
4
|
test("putVouchersUnblockId", () => {
|
|
5
|
-
const params = idosell().putVouchersUnblock.id(26).
|
|
5
|
+
const params = idosell().putVouchersUnblock.id(26).checkParams();
|
|
6
6
|
expect(params).toEqual({"vouchers":[{"id":26}]});
|
|
7
7
|
})
|
|
@@ -2,6 +2,6 @@ import idosell from "./dist/index"
|
|
|
2
2
|
import { expect, test } from "vitest"
|
|
3
3
|
|
|
4
4
|
test("putWarrantiesName", () => {
|
|
5
|
-
const params = idosell().putWarranties.id("6").name("Gwarancja").
|
|
5
|
+
const params = idosell().putWarranties.id("6").name("Gwarancja").checkParams();
|
|
6
6
|
expect(params).toEqual({"warranties":[{"id":"6","name":"Gwarancja"}]});
|
|
7
7
|
})
|
|
@@ -2,6 +2,6 @@ import idosell from "./dist/index"
|
|
|
2
2
|
import { expect, test } from "vitest"
|
|
3
3
|
|
|
4
4
|
test("putWarrantiesLanguageDataLang", () => {
|
|
5
|
-
const params = idosell().putWarrantiesLanguageData.warranty_id(6).lang([{"lang_id":"pol","name":"GrawancjaPL","description":"GrawancjaPL"}]).
|
|
5
|
+
const params = idosell().putWarrantiesLanguageData.warranty_id(6).lang([{"lang_id":"pol","name":"GrawancjaPL","description":"GrawancjaPL"}]).checkParams();
|
|
6
6
|
expect(params).toEqual({"lang_data":[{"warranty_id":6,"lang":[{"lang_id":"pol","name":"GrawancjaPL","description":"GrawancjaPL"}]}]});
|
|
7
7
|
})
|
|
@@ -2,6 +2,6 @@ import idosell from "./dist/index"
|
|
|
2
2
|
import { expect, test } from "vitest"
|
|
3
3
|
|
|
4
4
|
test("putWmsStocksdocumentsAcceptMMId", () => {
|
|
5
|
-
const params = idosell().putWmsStocksdocumentsAcceptMM.id(6).
|
|
5
|
+
const params = idosell().putWmsStocksdocumentsAcceptMM.id(6).checkParams();
|
|
6
6
|
expect(params).toEqual({"id":6});
|
|
7
7
|
})
|
|
@@ -2,6 +2,6 @@ import idosell from "./dist/index"
|
|
|
2
2
|
import { expect, test } from "vitest"
|
|
3
3
|
|
|
4
4
|
test("putWmsStocksdocumentsCloseId", () => {
|
|
5
|
-
const params = idosell().putWmsStocksdocumentsClose.type("mm").id(6).
|
|
5
|
+
const params = idosell().putWmsStocksdocumentsClose.type("mm").id(6).checkParams();
|
|
6
6
|
expect(params).toEqual({"type":"mm","id":6});
|
|
7
7
|
})
|
|
@@ -2,6 +2,6 @@ import idosell from "./dist/index"
|
|
|
2
2
|
import { expect, test } from "vitest"
|
|
3
3
|
|
|
4
4
|
test("putWmsStocksdocumentsDocumentsNote", () => {
|
|
5
|
-
const params = idosell().putWmsStocksdocumentsDocuments.stockDocumentId(7).stockDocumentType("mm").note("note").
|
|
5
|
+
const params = idosell().putWmsStocksdocumentsDocuments.stockDocumentId(7).stockDocumentType("mm").note("note").checkParams();
|
|
6
6
|
expect(params).toEqual({"stockDocumentId":7,"stockDocumentType":"mm","note":"note"});
|
|
7
7
|
})
|
|
@@ -2,6 +2,6 @@ import idosell from "./dist/index"
|
|
|
2
2
|
import { expect, test } from "vitest"
|
|
3
3
|
|
|
4
4
|
test("putWmsStocksdocumentsProductsQuantity", () => {
|
|
5
|
-
const params = idosell().putWmsStocksdocumentsProducts.type("mm").id(7).product(30).size("5").quantity(2).
|
|
5
|
+
const params = idosell().putWmsStocksdocumentsProducts.type("mm").id(7).product(30).size("5").quantity(2).checkParams();
|
|
6
6
|
expect(params).toEqual({"type":"mm","id":7,"products":[{"product":30,"size":"5","quantity":2}]});
|
|
7
7
|
})
|
|
@@ -2,6 +2,6 @@ import idosell from "./dist/index"
|
|
|
2
2
|
import { expect, test } from "vitest"
|
|
3
3
|
|
|
4
4
|
test("putWmsStocksdocumentsRejectMMId", () => {
|
|
5
|
-
const params = idosell().putWmsStocksdocumentsRejectMM.id(7).
|
|
5
|
+
const params = idosell().putWmsStocksdocumentsRejectMM.id(7).checkParams();
|
|
6
6
|
expect(params).toEqual({"id":7});
|
|
7
7
|
})
|
|
@@ -2,6 +2,6 @@ import idosell from "./dist/index"
|
|
|
2
2
|
import { expect, test } from "vitest"
|
|
3
3
|
|
|
4
4
|
test("putWmsSuppliersName", () => {
|
|
5
|
-
const params = idosell().putWmsSuppliers.id(1).name("Dostawca").
|
|
5
|
+
const params = idosell().putWmsSuppliers.id(1).name("Dostawca").checkParams();
|
|
6
6
|
expect(params).toEqual({"suppliers":[{"id":1,"name":"Dostawca"}]});
|
|
7
7
|
})
|
|
@@ -2,21 +2,21 @@ import idosell from "./dist/index"
|
|
|
2
2
|
import { expect, test } from "vitest"
|
|
3
3
|
|
|
4
4
|
test("searchClientsCrmClientLogin", () => {
|
|
5
|
-
const params = idosell().searchClientsCrm.clientLogin("abcdefg").
|
|
5
|
+
const params = idosell().searchClientsCrm.clientLogin("abcdefg").checkParams();
|
|
6
6
|
expect(params).toEqual({"clientLogin":"abcdefg"});
|
|
7
7
|
})
|
|
8
8
|
|
|
9
9
|
test("searchClientsCrmClientIsWholesaler", () => {
|
|
10
|
-
const params = idosell().searchClientsCrm.clientIsWholesaler("yes").
|
|
10
|
+
const params = idosell().searchClientsCrm.clientIsWholesaler("yes").checkParams();
|
|
11
11
|
expect(params).toEqual({"clientIsWholesaler":"yes"});
|
|
12
12
|
})
|
|
13
13
|
|
|
14
14
|
test("searchClientsCrmRegistered", () => {
|
|
15
|
-
const params = idosell().searchClientsCrm.registered("2023-01-01", 1672704000000).
|
|
15
|
+
const params = idosell().searchClientsCrm.registered("2023-01-01", 1672704000000).checkParams();
|
|
16
16
|
expect(params).toEqual({"clientRegistrationDate":{"clientRegistrationDateBegin":"2023-01-01","clientRegistrationDateEnd":"2023-01-03"}});
|
|
17
17
|
})
|
|
18
18
|
|
|
19
19
|
test("searchClientsCrmPage", () => {
|
|
20
|
-
const params = idosell().searchClientsCrm.page(2,10).
|
|
20
|
+
const params = idosell().searchClientsCrm.page(2,10).checkParams();
|
|
21
21
|
expect(params).toEqual({"resultsPage":2,"resultsLimit":10});
|
|
22
22
|
})
|
|
@@ -2,6 +2,6 @@ import idosell from "./dist/index"
|
|
|
2
2
|
import { expect, test } from "vitest"
|
|
3
3
|
|
|
4
4
|
test("searchClientsGiftcardsNumber", () => {
|
|
5
|
-
const params = idosell().searchClientsGiftcards.number([123,456,789]).
|
|
5
|
+
const params = idosell().searchClientsGiftcards.number([123,456,789]).checkParams();
|
|
6
6
|
expect(params).toEqual({"giftCards":[{"number":123},{"number":456},{"number":789}]});
|
|
7
7
|
})
|
|
@@ -2,11 +2,11 @@ import idosell from "./dist/index"
|
|
|
2
2
|
import { expect, test } from "vitest"
|
|
3
3
|
|
|
4
4
|
test("searchClientsNewsletterEmailLanguage", () => {
|
|
5
|
-
const params = idosell().searchClientsNewsletterEmail.language("pol").
|
|
5
|
+
const params = idosell().searchClientsNewsletterEmail.language("pol").checkParams();
|
|
6
6
|
expect(params).toEqual({"language":"pol"});
|
|
7
7
|
})
|
|
8
8
|
|
|
9
9
|
test("searchClientsNewsletterEmailPage", () => {
|
|
10
|
-
const params = idosell().searchClientsNewsletterEmail.page(2,10).
|
|
10
|
+
const params = idosell().searchClientsNewsletterEmail.page(2,10).checkParams();
|
|
11
11
|
expect(params).toEqual({"results_page":2,"results_limit":10});
|
|
12
12
|
})
|
|
@@ -2,16 +2,16 @@ import idosell from "./dist/index"
|
|
|
2
2
|
import { expect, test } from "vitest"
|
|
3
3
|
|
|
4
4
|
test("searchClientsNewsletterSmsPage", () => {
|
|
5
|
-
const params = idosell().searchClientsNewsletterSms.page(2,10).
|
|
5
|
+
const params = idosell().searchClientsNewsletterSms.page(2,10).checkParams();
|
|
6
6
|
expect(params).toEqual({"results_page":2,"results_limit":10});
|
|
7
7
|
})
|
|
8
8
|
|
|
9
9
|
test("searchClientsNewsletterSmsLanguage", () => {
|
|
10
|
-
const params = idosell().searchClientsNewsletterSms.language("pol").
|
|
10
|
+
const params = idosell().searchClientsNewsletterSms.language("pol").checkParams();
|
|
11
11
|
expect(params).toEqual({"language":"pol"});
|
|
12
12
|
})
|
|
13
13
|
|
|
14
14
|
test("searchClientsNewsletterSmsDates", () => {
|
|
15
|
-
const params = idosell().searchClientsNewsletterSms.dates("2023-01-01", 1672704000000).
|
|
15
|
+
const params = idosell().searchClientsNewsletterSms.dates("2023-01-01", 1672704000000).checkParams();
|
|
16
16
|
expect(params).toEqual({"date":{"from":"2023-01-01","to":"2023-01-03"}});
|
|
17
17
|
})
|
|
@@ -2,61 +2,61 @@ import idosell from "./dist/index"
|
|
|
2
2
|
import { expect, test } from "vitest"
|
|
3
3
|
|
|
4
4
|
test("searchOrdersOrdersStatuses", () => {
|
|
5
|
-
const params = idosell().searchOrders.ordersStatuses(["packed"]).
|
|
5
|
+
const params = idosell().searchOrders.ordersStatuses(["packed"]).checkParams();
|
|
6
6
|
expect(params).toEqual({"ordersStatuses":["packed"]});
|
|
7
7
|
})
|
|
8
8
|
|
|
9
9
|
test("searchOrdersOrderType", () => {
|
|
10
|
-
const params = idosell().searchOrders.orderType("wholesale").
|
|
10
|
+
const params = idosell().searchOrders.orderType("wholesale").checkParams();
|
|
11
11
|
expect(params).toEqual({"orderType":"wholesale"});
|
|
12
12
|
})
|
|
13
13
|
|
|
14
14
|
test("searchOrdersOrderBy", () => {
|
|
15
|
-
const params = idosell().searchOrders.orderBy("sn", false).
|
|
15
|
+
const params = idosell().searchOrders.orderBy("sn", false).checkParams();
|
|
16
16
|
expect(params).toEqual({"ordersBy":[{"elementName":"sn","sortDirection":"ASC"}]});
|
|
17
17
|
})
|
|
18
18
|
|
|
19
19
|
test("searchOrdersLogins", () => {
|
|
20
|
-
const params = idosell().searchOrders.logins(["iai_demo"]).
|
|
20
|
+
const params = idosell().searchOrders.logins(["iai_demo"]).checkParams();
|
|
21
21
|
expect(params).toEqual({"clients":[{"type":"login","clientLogin":"iai_demo"}]});
|
|
22
22
|
})
|
|
23
23
|
|
|
24
24
|
test("searchOrdersPage", () => {
|
|
25
|
-
const params = idosell().searchOrders.page(2,10).
|
|
25
|
+
const params = idosell().searchOrders.page(2,10).checkParams();
|
|
26
26
|
expect(params).toEqual({"resultsPage":2,"resultsLimit":10});
|
|
27
27
|
})
|
|
28
28
|
|
|
29
29
|
test("searchOrdersStockIds", () => {
|
|
30
|
-
const params = idosell().searchOrders.stockIds(2).
|
|
30
|
+
const params = idosell().searchOrders.stockIds(2).checkParams();
|
|
31
31
|
expect(params).toEqual({"stocks":[{"stockId":2}]});
|
|
32
32
|
})
|
|
33
33
|
|
|
34
34
|
test("searchOrdersHasProductAnySize", () => {
|
|
35
|
-
const params = idosell().searchOrders.hasProduct(13).
|
|
35
|
+
const params = idosell().searchOrders.hasProduct(13).checkParams();
|
|
36
36
|
expect(params).toEqual({"products":[{"productId":13}]});
|
|
37
37
|
})
|
|
38
38
|
|
|
39
39
|
test("searchOrdersHasProductWithSize", () => {
|
|
40
|
-
const params = idosell().searchOrders.hasProduct(13,4).
|
|
40
|
+
const params = idosell().searchOrders.hasProduct(13,4).checkParams();
|
|
41
41
|
expect(params).toEqual({"products":[{"productId":13,"sizeId":4}]});
|
|
42
42
|
})
|
|
43
43
|
|
|
44
44
|
test("searchOrdersByPackageNumbers", () => {
|
|
45
|
-
const params = idosell().searchOrders.byPackageNumbers([5003724016]).
|
|
45
|
+
const params = idosell().searchOrders.byPackageNumbers([5003724016]).checkParams();
|
|
46
46
|
expect(params).toEqual({"packages":{"orderHasPackageNumbers":"y","packagesNumbers":[5003724016]}});
|
|
47
47
|
})
|
|
48
48
|
|
|
49
49
|
test("searchOrdersHasPackage", () => {
|
|
50
|
-
const params = idosell().searchOrders.hasPackage().
|
|
50
|
+
const params = idosell().searchOrders.hasPackage().checkParams();
|
|
51
51
|
expect(params).toEqual({"packages":{"orderHasPackageNumbers":"y"}});
|
|
52
52
|
})
|
|
53
53
|
|
|
54
54
|
test("searchOrdersShopIds", () => {
|
|
55
|
-
const params = idosell().searchOrders.shopIds([3]).
|
|
55
|
+
const params = idosell().searchOrders.shopIds([3]).checkParams();
|
|
56
56
|
expect(params).toEqual({"orderSource":{"shopsIds":[3]}});
|
|
57
57
|
})
|
|
58
58
|
|
|
59
59
|
test("searchOrdersFromAllegro", () => {
|
|
60
|
-
const params = idosell().searchOrders.fromAllegro().
|
|
60
|
+
const params = idosell().searchOrders.fromAllegro().checkParams();
|
|
61
61
|
expect(params).toEqual({"orderSource":{"auctionsParams":{"auctionsServicesNames":["allegro"]}}});
|
|
62
62
|
})
|