idosell 0.4.23 → 0.4.25

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (56) hide show
  1. package/README.md +2 -0
  2. package/changelog.md +10 -0
  3. package/dist/app.d.ts +2 -1
  4. package/dist/gates.js +51 -15
  5. package/dist/gateways.d.ts +279 -16
  6. package/dist/helpers.js +18 -0
  7. package/dist/index.js +18 -1
  8. package/dist/methods/deletePromotions.js +6 -0
  9. package/dist/methods/deletePromotionsArchive.js +6 -0
  10. package/dist/methods/deletePromotionsElements.js +13 -0
  11. package/dist/methods/getPromotions.js +6 -0
  12. package/dist/methods/getPromotionsArchive.js +6 -0
  13. package/dist/methods/getPromotionsSettings.js +5 -0
  14. package/dist/methods/postPromotions.js +7 -0
  15. package/dist/methods/postPromotionsElements.js +13 -0
  16. package/dist/methods/postPromotionsEnd.js +7 -0
  17. package/dist/methods/postPromotionsStart.js +7 -0
  18. package/dist/methods/putPromotions.js +8 -0
  19. package/dist/methods/putPromotionsSettings.js +6 -0
  20. package/dist/methods/searchPromotionsArchive.js +14 -0
  21. package/dist/methods/searchPromotionsElements.js +15 -0
  22. package/dist/methods/searchPromotionsHistory.js +13 -0
  23. package/dist/methods/searchPromotionsListView.js +21 -0
  24. package/dist/params.js +15 -1
  25. package/dist/reqparams.d.ts +2 -2
  26. package/dist/request.js +33 -10
  27. package/dist/responses.d.ts +483 -0
  28. package/package.json +1 -1
  29. package/tests/deleteProductsToFacebookCatalog.test.js +7 -0
  30. package/tests/deleteProductsToPromotion.test.js +7 -0
  31. package/tests/deletePromotions.test.js +7 -0
  32. package/tests/deletePromotionsArchive.test.js +7 -0
  33. package/tests/deletePromotionsElements.test.js +7 -0
  34. package/tests/getProductsToFacebookCatalog.test.js +8 -0
  35. package/tests/getPromotions.test.js +7 -0
  36. package/tests/getPromotionsArchive.test.js +7 -0
  37. package/tests/postProductsToFacebookCatalog.test.js +7 -0
  38. package/tests/postProductsToPromotion.test.js +7 -0
  39. package/tests/postPromotionsElements.test.js +7 -0
  40. package/tests/postPromotionsEnd.test.js +7 -0
  41. package/tests/postPromotionsStart.test.js +7 -0
  42. package/tests/putPromotions.test.js +7 -0
  43. package/tests/putPromotionsSettings.test.js +7 -0
  44. package/tests/searchPromotionsArchive.test.js +12 -0
  45. package/tests/searchPromotionsElements.test.js +12 -0
  46. package/tests/searchPromotionsHistory.test.js +7 -0
  47. package/tests/searchPromotionsListView.test.js +7 -0
  48. package/tests/deleteProductsProductsToFacebookCatalog.test.js +0 -7
  49. package/tests/deleteProductsProductsToPromotion.test.js +0 -7
  50. /package/dist/methods/{deleteProductsProductsToFacebookCatalog.js → deleteProductsToFacebookCatalog.js} +0 -0
  51. /package/dist/methods/{deleteProductsProductsToPromotion.js → deleteProductsToPromotion.js} +0 -0
  52. /package/dist/methods/{getProductsProductsToFacebookCatalog.js → getProductsToFacebookCatalog.js} +0 -0
  53. /package/dist/methods/{postProductsProductsToFacebookCatalog.js → postProductsToFacebookCatalog.js} +0 -0
  54. /package/dist/methods/{postProductsProductsToPromotion.js → postProductsToPromotion.js} +0 -0
  55. /package/dist/methods/{postSubscriptionsItemsList.js → searchSubscriptionsItems.js} +0 -0
  56. /package/dist/methods/{postSubscriptionsListViewList.js → searchSubscriptionsListView.js} +0 -0
@@ -1758,6 +1758,10 @@ export type GetOrdersDocumentsResponse = {
1758
1758
  documentId?: string;
1759
1759
  /** @description Document name */
1760
1760
  documentName?: string;
1761
+ /** @description Internal document number in the KSeF system */
1762
+ ksefNumber: string;
1763
+ /** @description Document status in the IdoSell system */
1764
+ ksefDocumentStatus: "pending" | "processing" | "completed" | "failed" | "skipped";
1761
1765
  /** @description Base64 encoded PDF document. */
1762
1766
  pdfWithDocumentsInBase64?: string;
1763
1767
  /** @description Information on error that occurred during gate call. */
@@ -4962,6 +4966,8 @@ export type SearchProductsResponse = {
4962
4966
  responsibleProducerCode?: string | null;
4963
4967
  /** @description Responsible person code */
4964
4968
  responsiblePersonCode?: string | null;
4969
+ /** @description Minimum stock level */
4970
+ minStockLevel?: number;
4965
4971
  }[];
4966
4972
  } & PagedResponse;
4967
4973
 
@@ -8660,7 +8666,484 @@ export type GetProductsResponse = {
8660
8666
  depositProductId?: number;
8661
8667
  /** @description Product deposit count */
8662
8668
  depositCount?: number;
8669
+ /** @description Minimum stock level */
8670
+ minStockLevel?: number;
8663
8671
  }[];
8664
8672
  } & { resultsLimit: number; };
8665
8673
 
8674
+ export type GetOrdersResponse = {
8675
+ Results: {
8676
+ /** @description Order ID. */
8677
+ orderId: string;
8678
+ /** @description Order note supported by IAI Bridge. */
8679
+ orderBridgeNote: string;
8680
+ /** @description Order serial number. */
8681
+ orderSerialNumber: number;
8682
+ /** @description Order type. List of values: "p" - wholesale order placed in panel, "t" - wholesale order placed in shop, "n" - retail order placed in shop, "r" - retail order placed in panel. */
8683
+ orderType: "p" | "t" | "n" | "r";
8684
+ /** @description Customer data. */
8685
+ clientResult: {
8686
+ /** @description Client's billing address' data. */
8687
+ clientBillingAddress: {
8688
+ /** @description Customer's first name. */
8689
+ clientFirstName: string;
8690
+ /** @description Customer's last name. */
8691
+ clientLastName: string;
8692
+ /** @description Customer Tax no. */
8693
+ clientNip: string;
8694
+ /** @description Customer's company name. */
8695
+ clientFirm: string;
8696
+ /** @description Product suggestion. */
8697
+ clientAdditional: string;
8698
+ /** @description Street and number. */
8699
+ clientStreet: string;
8700
+ /** @description Customer's postal code. */
8701
+ clientZipCode: string;
8702
+ /** @description Customer's city. */
8703
+ clientCity: string;
8704
+ /** @description Region name takes priority over clientCountryId. */
8705
+ clientCountryName: string;
8706
+ /** @description Client NIP verification status */
8707
+ clientNipUeVerified: string;
8708
+ /** @description Country ID in accordance with ISO-3166. */
8709
+ clientCountryId: string;
8710
+ /** @description Cell phone. */
8711
+ clientPhone1: string;
8712
+ /** @description Land line. */
8713
+ clientPhone2: string;
8714
+ /** @description Administrative region code. */
8715
+ clientProvinceId: string;
8716
+ /** @description Administrative region. */
8717
+ clientProvince: string;
8718
+ };
8719
+ /** @description Delivery address data. */
8720
+ clientDeliveryAddress: {
8721
+ /** @description Delivery address ID. */
8722
+ clientDeliveryAddressId: string;
8723
+ /** @description Recipient's first name. */
8724
+ clientDeliveryAddressFirstName: string;
8725
+ /** @description Recipient's last name. */
8726
+ clientDeliveryAddressLastName: string;
8727
+ /** @description Company name. */
8728
+ clientDeliveryAddressFirm: string;
8729
+ /** @description Recipient street and number. */
8730
+ clientDeliveryAddressStreet: string;
8731
+ /** @description Recipient's postal code. */
8732
+ clientDeliveryAddressZipCode: string;
8733
+ /** @description Recipient's city. */
8734
+ clientDeliveryAddressCity: string;
8735
+ /** @description Recipient's country. */
8736
+ clientDeliveryAddressCountry: string;
8737
+ /** @description Country code in ISO 3166-1 standard. */
8738
+ clientDeliveryAddressCountryId: string;
8739
+ /** @description Cell phone. */
8740
+ clientDeliveryAddressPhone1: string;
8741
+ /** @description Land line. */
8742
+ clientDeliveryAddressPhone2: string;
8743
+ /** @description Administrative region code. */
8744
+ clientDeliveryAddressProvinceId: string;
8745
+ /** @description Administrative region. */
8746
+ clientDeliveryAddressProvince: string;
8747
+ /** @description Type of delivery address resulting from the type of delivery e.g. collection point. Available values: "client" - Address provided by customer to which he/she wishes to receive the shipment, "pickupPoint"- The address of the pickup point selected by the customer from which the customer wishes to pick up the order, "warehouse" - The address of the warehouse selected by the customer from which the customer wishes to pick up the order. */
8748
+ clientDeliveryAddressType: "client" | "pickupPoint" | "warehouse";
8749
+ /** @description Internal Receiving Point Identifier. */
8750
+ clientDeliveryAddressPickupPointInternalId: number;
8751
+ };
8752
+ clientPickupPointAddress: {
8753
+ /** @description Collection point ID. */
8754
+ pickupPointId: string;
8755
+ /** @description External service collection point ID. */
8756
+ externalPickupPointId: string;
8757
+ /** @description Town / City. */
8758
+ city: string;
8759
+ /** @description Address. */
8760
+ street: string;
8761
+ /** @description ZIP / Post code. */
8762
+ zipCode: string;
8763
+ /** @example description */
8764
+ description: string;
8765
+ /** @description Latitude. */
8766
+ latitude: number;
8767
+ /** @description Longitude. */
8768
+ longitude: number;
8769
+ /** @description Name. */
8770
+ name: string;
8771
+ };
8772
+ /** @description Buyer's address data. */
8773
+ payerAddress: {
8774
+ /** @description Buyer's address id. */
8775
+ payerAddressId: string;
8776
+ /** @description Buyer's first name. */
8777
+ payerAddressFirstName: string;
8778
+ /** @description Buyer's last name. */
8779
+ payerAddressLastName: string;
8780
+ /** @description Company name. */
8781
+ payerAddressFirm: string;
8782
+ /** @description Customer VAT ID. */
8783
+ payerAddressNip: string;
8784
+ /** @description Buyer's street name and house number. */
8785
+ payerAddressStreet: string;
8786
+ /** @description Buyer's postal code. */
8787
+ payerAddressZipCode: string;
8788
+ /** @description Buyer's city. */
8789
+ payerAddressCity: string;
8790
+ /** @description Buyer's country. */
8791
+ payerAddressCountry: string;
8792
+ /** @description Country code in the ISO 3166-1 A2 standard. */
8793
+ payerAddressCountryId: string;
8794
+ /** @description Buyer's telephone number. */
8795
+ payerAddressPhone: string;
8796
+ };
8797
+ /** @description Data of customer account in store. */
8798
+ clientAccount: {
8799
+ /** @description Unique client's number. */
8800
+ clientId: number;
8801
+ /** @description Customer's login. */
8802
+ clientLogin: string;
8803
+ /** @description E-mail address. */
8804
+ clientEmail: string;
8805
+ /** @description Cell phone. */
8806
+ clientPhone1: string;
8807
+ /** @description Land line. */
8808
+ clientPhone2: string;
8809
+ /** @description External system code. */
8810
+ clientCodeExternal: string;
8811
+ };
8812
+ /** @description End customer details. */
8813
+ endClientAccount: {
8814
+ /** @description Unique client's number. */
8815
+ clientId: number;
8816
+ /** @description Customer's login. */
8817
+ clientLogin: string;
8818
+ /** @description E-mail address. */
8819
+ clientEmail: string;
8820
+ /** @description Cell phone. */
8821
+ clientPhone1: string;
8822
+ /** @description Land line. */
8823
+ clientPhone2: string;
8824
+ /** @description External system code. */
8825
+ clientCodeExternal: string;
8826
+ };
8827
+ /** @description Is client on black list? */
8828
+ clientOnBlackList: boolean;
8829
+ };
8830
+ /** @description Order data. */
8831
+ orderDetails: {
8832
+ /** @description Flag informing on order registration or completion in external program through API. Allowed values. "none" - order was not registered in external program, "registered" - order was registered in external program, "realized" - order was completed in external program, "registered_pos" - order was registered in external program, "realized_pos" - order was completed in external program. */
8833
+ apiFlag: "none" | "registered" | "realized" | "registered_pos" | "realized_pos" | "registration_fault";
8834
+ /** @description Order status. Allowed values: "finished_ext" - order status: completed in FA application, "finished" - completed, "new" - not handled, "payment_waiting" - awaiting payment, "delivery_waiting" - awaiting delivery, "on_order" - in progress, "packed" - being picked, "packed_fulfillment" - being picked - fulfilment, "packed_ready" - packed, "ready" - ready, "wait_for_dispatch" - awaiting dispatch date, "suspended" - on hold, "joined" - merged, "missing" - missing, "lost" - lost, "false" - false, "canceled" - Customer canceled. */
8835
+ orderStatus: string;
8836
+ /** @description Order status id */
8837
+ orderStatusId: string;
8838
+ /** @description Date of change of status to the currently set status in YYYY-MM-DD HH:MM:SS format. */
8839
+ orderStatusChangeDate: string;
8840
+ /** @example dropshippingOrderStatus */
8841
+ dropshippingOrderStatus: string;
8842
+ /** @description Type of order confirmation. Confirmations listing: "none" - order unconfirmed , "email" - order confirmed by e-mail, "phone_client" - order confirmed by phone call made by client, "phone_service" - order confirmed by phone call made by staff, "postauction" - order confirmed by auction return page, "willingness" - confirmed by willingness to buy letter, "auctionfod" - confirmed by after-sales form Allegro. */
8843
+ orderConfirmation: string;
8844
+ /** @description Date of order placing in YYYY-MM-DD HH:MM:SS format. */
8845
+ orderAddDate: string;
8846
+ /** @description Date of order sending in YYYY-MM-DD HH:MM:SS format. */
8847
+ orderDispatchDate: string | null;
8848
+ /** @example receivedDate */
8849
+ receivedDate: string;
8850
+ /** @description Order handling time in seconds. */
8851
+ orderPrepareTime: string;
8852
+ /** @description Customer comments on order. */
8853
+ clientNoteToOrder: string;
8854
+ /** @description Customer remarks for courier. */
8855
+ clientNoteToCourier: string;
8856
+ /** @description Order payment data. */
8857
+ payments: {
8858
+ /** @description Order payment method. Allowed values. "cash_on_delivery" - cash on delivery, "prepaid" - prepayment, "tradecredit" - Trade credit. */
8859
+ orderPaymentType: string;
8860
+ /** @description Number of days. */
8861
+ orderPaymentDays: number;
8862
+ /** @description Accrued discount. */
8863
+ orderRebatePercent: number;
8864
+ /** @description Information on order value in currency of order adding. */
8865
+ orderCurrency: {
8866
+ /** @description Currency ID */
8867
+ currencyId: string;
8868
+ /** @description Currency average rate set for order (by default, an average rate of order adding date, if it wasn't manually changed). */
8869
+ orderCurrencyValue: number;
8870
+ /** @description Currency scaler. */
8871
+ orderCurrencyScale: number;
8872
+ /** @description Panel billing currency exchange rate in relation to billing currency in the shop . */
8873
+ billingCurrencyRate: number;
8874
+ /** @description Products cost. */
8875
+ orderProductsCost: number;
8876
+ /** @description Shipping costs. */
8877
+ orderDeliveryCost: number;
8878
+ /** @description Additional charge for selected payment method. */
8879
+ orderPayformCost: number;
8880
+ /** @description Additional fee for insurance. */
8881
+ orderInsuranceCost: number;
8882
+ };
8883
+ /** @description Information on order value in shop account currency. */
8884
+ orderBaseCurrency: {
8885
+ /** @example billingCurrency */
8886
+ billingCurrency: string;
8887
+ /** @description Products cost. */
8888
+ orderProductsCost: number;
8889
+ /** @description Shipping costs. */
8890
+ orderDeliveryCost: number;
8891
+ /** @description Delivery VAT. */
8892
+ orderDeliveryVat: number;
8893
+ /** @description Additional charge for selected payment method. */
8894
+ orderPayformCost: number;
8895
+ /** @description VAT for additional fee for the chosen form of payment. */
8896
+ orderPayformVat: number;
8897
+ /** @description Additional fee for insurance. */
8898
+ orderInsuranceCost: number;
8899
+ /** @description Insurance VAT rate (in percents). */
8900
+ orderInsuranceVat: number;
8901
+ };
8902
+ /** @description Order currency squaring method. "gross" - calculated in gross prices, "net" - squared in net prices. */
8903
+ orderWorthCalculateType: "gross" | "net";
8904
+ /** @description Information if the VAT for the current order was calculated: "y" - yes, "n" - no. */
8905
+ orderVatExists: string;
8906
+ };
8907
+ /** @description Information about prepayment for the order. */
8908
+ prepaids: {
8909
+ /** @description Order payment identifier. */
8910
+ prepaidId: number;
8911
+ /** @description Payment number for order. */
8912
+ paymentOrdinalNumber: number;
8913
+ /** @description Payment number - [order no.]-[payment no.], i.e. 1234-1. */
8914
+ paymentNumber: string;
8915
+ /** @description Date of payment addition. */
8916
+ paymentAddDate: string;
8917
+ /** @description Client's payment modification date. */
8918
+ paymentModifiedDateByClient: string;
8919
+ /** @description Payment modification date made by shop staff. */
8920
+ paymentModifiedDateByShop: string;
8921
+ /** @description Payment status. */
8922
+ paymentStatus: string;
8923
+ /** @description Transaction type: "payment" - payment, "advance" - advance payment, "repayment" - return, "fee" - handling fee. */
8924
+ paymentType: "payment" | "advance" | "repayment" | "fee";
8925
+ /** @description Form of payment ID. */
8926
+ payformId: number;
8927
+ /** @description Name of payment form. */
8928
+ payformName: string;
8929
+ /** @description Account. */
8930
+ payformAccount: string;
8931
+ /** @description Payment amount. */
8932
+ paymentValue: number;
8933
+ /** @description Currency ID */
8934
+ currencyId: string;
8935
+ /** @description Number of voucher used in a payment. */
8936
+ voucherNumber: string;
8937
+ /** @description Number of gift card used in a payment. */
8938
+ giftCardNumber: string;
8939
+ }[];
8940
+ /** @description Order source data. */
8941
+ orderSourceResults: {
8942
+ /** @description order source type - possible values:. "self_added" - Orders from panel, "shop" - Orders from shop, "search_engine" - Orders from search engines, "auction" - Orders from auctions, "advertisement_campaign" - Advertisement campaigns, "price_comparer" - Price comparison sites, "affiliate_program" - Affiliate programme, "api" - Order from API, "eletronic_offer" - Order from ODT price lst, "cpa" - Order from CPA program, "refferer_site" - Order from reference sites, "pos" - Orders from POS, "marketplace" - Order from the Marketplace, "iai_ads" - Orders from IAI Ads */
8943
+ orderSourceType: string;
8944
+ /** @description Shop Id */
8945
+ shopId: number;
8946
+ /** @description Auction site order comes from. Auction sites listing: "allegro" - Allegro.pl, "testwebapi" - Allegro.pl test site, "ebay" - eBay. */
8947
+ auctionsServiceName: string;
8948
+ /** @description Detailed information on order source. */
8949
+ orderSourceDetails: {
8950
+ /** @description order source type - possible values:. "self_added" - Orders from panel, "shop" - Orders from shop, "search_engine" - Orders from search engines, "auction" - Orders from auctions, "advertisement_campaign" - Advertisement campaigns, "price_comparer" - Price comparison sites, "affiliate_program" - Affiliate programme, "api" - Order from API, "eletronic_offer" - Order from ODT price lst, "cpa" - Order from CPA program, "refferer_site" - Order from reference sites, "pos" - Orders from POS, "marketplace" - Order from the Marketplace, "iai_ads" - Orders from IAI Ads */
8951
+ orderSourceType: string;
8952
+ /** @description Exact source name. */
8953
+ orderSourceName: string;
8954
+ /** @description Numerical ID of order source type. */
8955
+ orderSourceTypeId: number;
8956
+ /** @description Numerical ID of order source. */
8957
+ orderSourceId: number;
8958
+ /** @example 1 */
8959
+ entryProductIdBeforeOrder: number;
8960
+ /** @example sourcePageUrl */
8961
+ sourcePageUrl: string;
8962
+ /** @description The order ID of the external service */
8963
+ orderExternalId: string;
8964
+ /** @description Order from the InPost Fresh marketplace */
8965
+ fresh: "y" | "n";
8966
+ /** @description Order supported by InPost fulfillment */
8967
+ fulfillment: "y" | "n";
8968
+ };
8969
+ preorderSourcesDetails: {
8970
+ /** @description order source type - possible values:. "self_added" - Orders from panel, "shop" - Orders from shop, "search_engine" - Orders from search engines, "auction" - Orders from auctions, "advertisement_campaign" - Advertisement campaigns, "price_comparer" - Price comparison sites, "affiliate_program" - Affiliate programme, "api" - Order from API, "eletronic_offer" - Order from ODT price lst, "cpa" - Order from CPA program, "refferer_site" - Order from reference sites, "pos" - Orders from POS, "marketplace" - Order from the Marketplace, "iai_ads" - Orders from IAI Ads */
8971
+ orderSourceType: string;
8972
+ /** @description Exact source name. */
8973
+ orderSourceName: string;
8974
+ /** @description Numerical ID of order source type. */
8975
+ orderSourceTypeId: number;
8976
+ /** @description Numerical ID of order source. */
8977
+ orderSourceId: number;
8978
+ /** @example entryDate */
8979
+ entryDate: string;
8980
+ }[];
8981
+ };
8982
+ /** @description Data of auction, order comes from (only if it comes from auction). */
8983
+ auctionInfo: {
8984
+ /** @description Account ID on auction site. */
8985
+ auctionClientId: string;
8986
+ /** @description Account login on auction site. */
8987
+ auctionClientLogin: string;
8988
+ /** @description #!TablicaNumerowAukcjiDoZamowienia!#. */
8989
+ auctionItemsIds: {
8990
+ /** @description Auction number. */
8991
+ auctionItemId: string;
8992
+ }[];
8993
+ /** @description The customer's email address at the auction service. */
8994
+ auctionClientEmail: string;
8995
+ };
8996
+ /** @description Consignment data. */
8997
+ dispatch: {
8998
+ /** @description Courier ID. */
8999
+ courierId: number;
9000
+ /** @description Name of the supplier of the shipment. */
9001
+ courierName: string;
9002
+ /** @description Courier via webservice. */
9003
+ courierWebserviceOnly: boolean;
9004
+ /** @description Shipment ID. */
9005
+ deliveryPackageId: string;
9006
+ /** @description Selected delivery date. */
9007
+ deliveryDate: string;
9008
+ /** @description Additional information on delivery date. */
9009
+ deliveryDateAdditional: string;
9010
+ /** @description Estimated date of shipment of the order. */
9011
+ estimatedDeliveryDate: string;
9012
+ /** @description Parcel weight. */
9013
+ deliveryWeight: number;
9014
+ };
9015
+ /** @description The list of products returned due to a gate call */
9016
+ productsResults: {
9017
+ /** @description Product IAI code */
9018
+ productId: number;
9019
+ /** @description Product name. */
9020
+ productName: string;
9021
+ /** @description External product system code */
9022
+ productCode: string;
9023
+ /** @description Name of the parameter value, e.g. orange, green, red */
9024
+ versionName: string;
9025
+ /** @description Size identifier */
9026
+ sizeId: string;
9027
+ /** @description Size name */
9028
+ sizePanelName: string;
9029
+ /** @description External product system code for size. */
9030
+ productSizeCodeExternal: string;
9031
+ /** @description Stock ID */
9032
+ stockId: number;
9033
+ /** @description Serial number of the product. */
9034
+ productSerialNumber: string;
9035
+ /** @description Product quantity. */
9036
+ productQuantity: number;
9037
+ /** @description Weight. */
9038
+ productWeight: number;
9039
+ /** @description Value of VAT */
9040
+ productVat: number;
9041
+ /** @description Is product VAT free Allowed values "y" - yes, "n" - no. */
9042
+ productVatFree: string;
9043
+ /** @description Gross price of the product in the currency of the administration panel. */
9044
+ productPanelPrice: number;
9045
+ /** @description Net price of the product in the currency of the administration panel. */
9046
+ productPanelPriceNet: number;
9047
+ /** @description Product gross price of order in order currency. */
9048
+ productOrderPrice: number;
9049
+ /** @description Product net price of order in order currency. */
9050
+ productOrderPriceNet: number;
9051
+ /** @description Product gross price of order in shop account currency. */
9052
+ productOrderPriceBaseCurrency: number;
9053
+ /** @description Product net price of order in shop account currency. */
9054
+ productOrderPriceNetBaseCurrency: number;
9055
+ /** @description List of product suggestions . */
9056
+ orderAdditionalList: {
9057
+ /** @description Product suggestion. */
9058
+ orderAdditional: {
9059
+ /** @description Name of suggestion. */
9060
+ orderAdditionalName: string;
9061
+ /** @description Value of suggestion. */
9062
+ orderAdditionalValue: string;
9063
+ };
9064
+ };
9065
+ /** @description Client's remarks on product. */
9066
+ remarksToProduct: string;
9067
+ /** @description Label for grouping products. */
9068
+ label: string;
9069
+ /** @description Product selling mode. Available values: "money", "gift", "points". */
9070
+ orderSalesMode: "money" | "gift" | "points";
9071
+ /** @description A set's ID. */
9072
+ bundleId: number;
9073
+ /** @description Serial numbers. */
9074
+ productSerialNumbers: string;
9075
+ /** @description Additional information. */
9076
+ productOrderAdditional: string;
9077
+ /** @description Item in basket. */
9078
+ basketPosition: number;
9079
+ /** @description price information. */
9080
+ productPriceLog: string;
9081
+ /** @description Information about the selected parameters in the configurator. */
9082
+ priceFormulaParameters: {
9083
+ /** @description Parameter ID */
9084
+ parameterId: string;
9085
+ /** @description Parameter name. */
9086
+ parameterName: string;
9087
+ /** @description Parameter values */
9088
+ parameterValues: {
9089
+ /** @example valueId */
9090
+ valueId: string;
9091
+ /** @example valueName */
9092
+ valueName: string;
9093
+ }[];
9094
+ }[];
9095
+ /** @description Is product packed? */
9096
+ productPacked: boolean;
9097
+ }[];
9098
+ /** @description Parameter determines if product has been removed from stock. List of values: "y" - removed from stock, "n" - put in stock. */
9099
+ productRemovedInStock: "y" | "n";
9100
+ /** @description Stock ID */
9101
+ stockId: number;
9102
+ /** @description Customer asked for invoice. List of parameters: "y" - yes (paper invoicing ), "e" - yes (electronic invoicing ), "n" - no. */
9103
+ clientRequestInvoice: string;
9104
+ /** @description Delivery address ID. */
9105
+ clientDeliveryAddressId: number;
9106
+ /** @description Note to the order. */
9107
+ orderNote: string;
9108
+ /** @description Information on used discount code. */
9109
+ discountCode: {
9110
+ /** @description Campaign ID. */
9111
+ campaignId: string;
9112
+ /** @description Name of code. */
9113
+ discountCodeName: string;
9114
+ /** @description Accrued discount */
9115
+ discountCodeValue: string;
9116
+ };
9117
+ /** @description Discount card */
9118
+ discountCard: {
9119
+ /** @description Name of card */
9120
+ discountCardName: string;
9121
+ };
9122
+ /** @description Order handler. */
9123
+ orderOperatorLogin: string;
9124
+ /** @description Order picker. */
9125
+ orderPackingPersonLogin: string;
9126
+ /** @description Sale date. ISO 8602 format. */
9127
+ purchaseDate: string;
9128
+ /** @description Modification date in YYYY-MM-DD HH:MM:SS format . */
9129
+ orderChangeDate: string;
9130
+ /** @description Source subscription identifier. */
9131
+ subscriptionId: number;
9132
+ /** @description Are all products packed? */
9133
+ allProductPacked: boolean;
9134
+ /** @description Planned date of packing */
9135
+ plannedDateOfPacking: string | null;
9136
+ /** @description Is order verified? */
9137
+ verified: boolean;
9138
+ };
9139
+ /** @description Information on error that occurred during gate call. */
9140
+ errors: {
9141
+ /** @description Error code. */
9142
+ faultCode: number;
9143
+ /** @description Error description. */
9144
+ faultString: string;
9145
+ }[];
9146
+ }[];
9147
+ };
9148
+
8666
9149
  export { };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "idosell",
3
- "version": "0.4.23",
3
+ "version": "0.4.25",
4
4
  "description": "Idosell 3 REST connector",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/gateways.d.ts",
@@ -0,0 +1,7 @@
1
+ import idosell from "./dist/index"
2
+ import { expect, test } from "vitest"
3
+
4
+ test("deleteProductsToFacebookCatalogFacebookCatalogId", () => {
5
+ const params = idosell().deleteProductsToFacebookCatalog.shopId(1).products([9]).facebookCatalogId(123).checkParams();
6
+ expect(params).toEqual({"shopId":1,"products":[9],"facebookCatalogId":123});
7
+ })
@@ -0,0 +1,7 @@
1
+ import idosell from "./dist/index"
2
+ import { expect, test } from "vitest"
3
+
4
+ test("deleteProductsToPromotionProducts", () => {
5
+ const params = idosell().deleteProductsToPromotion.promotionId(2).products([11]).checkParams();
6
+ expect(params).toEqual({"promotionId":2,"products":[11]});
7
+ })
@@ -0,0 +1,7 @@
1
+ import idosell from "./dist/index.ts"
2
+ import { expect, test } from "vitest"
3
+
4
+ test("deletePromotionsPromotionId", () => {
5
+ const params = idosell().deletePromotions.promotionId(123).checkParams();
6
+ expect(params).toEqual({"promotionId":123});
7
+ })
@@ -0,0 +1,7 @@
1
+ import idosell from "./dist/index.ts"
2
+ import { expect, test } from "vitest"
3
+
4
+ test("deletePromotionsArchivePromotionId", () => {
5
+ const params = idosell().deletePromotionsArchive.promotionId(123).checkParams();
6
+ expect(params).toEqual({"promotionId":123});
7
+ })
@@ -0,0 +1,7 @@
1
+ import idosell from "./dist/index.ts"
2
+ import { expect, test } from "vitest"
3
+
4
+ test("deletePromotionsElementsId", () => {
5
+ const params = idosell().deletePromotionsElements.promotionId(4).type("product").id("288").checkParams();
6
+ expect(params).toEqual({"elements":[{"promotionId":4,"type":"product","id":"288"}]});
7
+ })
@@ -0,0 +1,8 @@
1
+ import idosell from "./dist/index"
2
+ import { expect, test } from "vitest"
3
+
4
+
5
+ test("getProductsToFacebookCatalogFacebookCatalogId", () => {
6
+ const params = idosell().getProductsToFacebookCatalog.shopId(1).facebookCatalogId(123).checkParams();
7
+ expect(params).toEqual({"shopId":1,"facebookCatalogId":123});
8
+ })
@@ -0,0 +1,7 @@
1
+ import idosell from "./dist/index.ts"
2
+ import { expect, test } from "vitest"
3
+
4
+ test("getPromotionsPromotionId", () => {
5
+ const params = idosell().getPromotions.promotionId(123).checkParams();
6
+ expect(params).toEqual({"promotionId":123});
7
+ })
@@ -0,0 +1,7 @@
1
+ import idosell from "./dist/index.ts"
2
+ import { expect, test } from "vitest"
3
+
4
+ test("getPromotionsArchivePromotionId", () => {
5
+ const params = idosell().getPromotionsArchive.promotionId(123).checkParams();
6
+ expect(params).toEqual({"promotionId":123});
7
+ })
@@ -0,0 +1,7 @@
1
+ import idosell from "./dist/index"
2
+ import { expect, test } from "vitest"
3
+
4
+ test("postProductsToFacebookCatalogProducts", () => {
5
+ const params = idosell().postProductsToFacebookCatalog.facebookCatalogId(1).shopId(1).products([9]).checkParams();
6
+ expect(params).toEqual({"facebookCatalogId":1,"shopId":1,"products":[9]});
7
+ })
@@ -0,0 +1,7 @@
1
+ import idosell from "./dist/index"
2
+ import { expect, test } from "vitest"
3
+
4
+ test("postProductsToPromotionProducts", () => {
5
+ const params = idosell().postProductsToPromotion.promotionId(2).products([11]).checkParams();
6
+ expect(params).toEqual({"promotionId":2,"products":[11]});
7
+ })
@@ -0,0 +1,7 @@
1
+ import idosell from "./dist/index.ts"
2
+ import { expect, test } from "vitest"
3
+
4
+ test("postPromotionsElementsPromotionId", () => {
5
+ const params = idosell().postPromotionsElements.id("179").type("product").promotionId(4).checkParams();
6
+ expect(params).toEqual({"elements":[{"id":"179","type":"product","promotionId":4}]});
7
+ })
@@ -0,0 +1,7 @@
1
+ import idosell from "./dist/index.ts"
2
+ import { expect, test } from "vitest"
3
+
4
+ test("postPromotionsEndPromotionId", () => {
5
+ const params = idosell().postPromotionsEnd.promotionId(123).checkParams();
6
+ expect(params).toEqual({"promotionId":123});
7
+ })
@@ -0,0 +1,7 @@
1
+ import idosell from "./dist/index.ts"
2
+ import { expect, test } from "vitest"
3
+
4
+ test("postPromotionsStartPromotionId", () => {
5
+ const params = idosell().postPromotionsStart.promotionId(123).checkParams();
6
+ expect(params).toEqual({"promotionId":123});
7
+ })
@@ -0,0 +1,7 @@
1
+ import idosell from "./dist/index.ts"
2
+ import { expect, test } from "vitest"
3
+
4
+ test("putPromotionsName", () => {
5
+ const params = idosell().putPromotions.promotionId(4).name("Promotnion #4").checkParams();
6
+ expect(params).toEqual({"promotionId":4,"name":"Promotnion #4"});
7
+ })
@@ -0,0 +1,7 @@
1
+ import idosell from "./dist/index.ts"
2
+ import { expect, test } from "vitest"
3
+
4
+ test("putPromotionsSettingsAutomaticallySuggestDefaultEndDate", () => {
5
+ const params = idosell().putPromotionsSettings.automaticallySuggestDefaultEndDate("on").checkParams();
6
+ expect(params).toEqual({"automaticallySuggestDefaultEndDate":"on"});
7
+ })