idosell 0.3.15 → 0.3.20

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.
@@ -1,5 +1,5 @@
1
1
  import type { PagableGateway, AppendableGateway, Gateway, DateLike, JSObject } from "./app.d.ts"
2
- import type { GetClientsResponse, SearchClientsCrmResponse, SearchGiftcardsResponse, SearchNewsletterEmailResponse, SearchNewsletterSmsResponse, SearchOpinionsResponse, SearchOrdersResponse, SearchPackagesResponse, SearchCategoriesIdosellResponse, SearchDeliveryTimeResponse, SearchProductsParametersResponse, SearchProductsResponse, GetReturnsResponse, GetRmaResponse, GetSizechartsResponse, GetConfigResponse, GetShopsDataResponse, GetWarrantiesResponse, GetLocationsResponse, GetStocksdocumentsDocumentsResponse, GetStocksdocumentsProductsResponse } from "./responses.d.ts"
2
+ import type { GetClientsResponse, SearchClientsCrmResponse, GetClientsDeliveryAddressResponse, SearchClientsGiftcardsResponse, SearchClientsNewsletterEmailResponse, SearchClientsNewsletterSmsResponse, GetClientsPayerAddressResponse, GetConfigVariablesResponse, GetCouriersAssignedToShippingProfilesResponse, GetCouriersPickupPointsResponse, GetMenuResponse, GetOrdersAnalyticsResponse, GetOrdersAuctionDetailsResponse, GetOrdersDocumentsResponse, SearchOrdersOpinionsResponse, SearchOrdersResponse, GetOrdersPackagesResponse, GetOrdersProfitabilityResponse, GetPackagesLabelsResponse, SearchPackagesResponse, GetProductsSKUbyBarcodeResponse, GetProductsAuctionsResponse, GetProductsBrandsResponse, GetProductsCategoriesResponse, SearchCategoriesIdosellResponse, GetProductsCodeExistenceResponse, SearchProductsDeliveryTimeResponse, GetProductsDescriptionsResponse, GetProductsIdBySizecodeResponse, GetProductsOmnibusPricesResponse, GetProductsOpinionsResponse, SearchProductsParametersResponse, SearchProductsResponse, GetProductsReservationsResponse, GetProductsSeriesResponse, GetProductsSizesResponse, GetProductsStocksResponse, GetResponsibilityEntitiesResponse, GetReturnsResponse, GetRmaResponse, GetShopsCurrenciesResponse, GetShopsLanguagesResponse, GetSizechartsResponse, GetSizesResponse, GetSnippetsResponse, GetSystemConfigResponse, GetSystemCurrenciesResponse, GetSystemShopsDataResponse, GetSystemUnitsResponse, GetSystemUsersResponse, GetWarrantiesResponse, GetWmsLocationsResponse, GetWmsStocksdocumentsDocumentsResponse, GetWmsStocksdocumentsProductsResponse, GetWmsSuppliersResponse } from "./responses.d.ts"
3
3
  import * as ENUMS from "./enums";
4
4
 
5
5
  export interface GetClientsBalanceRequest extends PagableGateway<GetClientsBalanceRequest> {
@@ -291,7 +291,7 @@ export interface DeleteClientsDeliveryAddressRequest extends AppendableGateway<D
291
291
  clientDeliveryAddressId: (clientDeliveryAddressId: number|string) => this
292
292
  }
293
293
 
294
- export interface GetClientsDeliveryAddressRequest extends Gateway {
294
+ export interface GetClientsDeliveryAddressRequest extends Gateway<GetClientsDeliveryAddressResponse> {
295
295
  /** External system codes list. */
296
296
  clientCodesExternal: (value: string|string[]) => this;
297
297
  /** Customer ID. */
@@ -444,7 +444,7 @@ export interface PutClientsGiftcardsRequest extends AppendableGateway<PutClients
444
444
  set: (amount: number, currency: string) => this;
445
445
  }
446
446
 
447
- export interface SearchClientsGiftcardsRequest extends Gateway<SearchGiftcardsResponse> {
447
+ export interface SearchClientsGiftcardsRequest extends Gateway<SearchClientsGiftcardsResponse> {
448
448
  /** List of gift cards */
449
449
  giftCards: (value: Array<JSObject>) => this;
450
450
  /** element is an element array of type searchGiftCards */
@@ -504,7 +504,7 @@ export interface PutClientsMembershipCardsRequest extends AppendableGateway<PutC
504
504
  errors: (errors: JSObject) => this
505
505
  }
506
506
 
507
- export interface SearchClientsNewsletterEmailRequest extends PagableGateway<SearchClientsNewsletterEmailRequest,SearchNewsletterEmailResponse> {
507
+ export interface SearchClientsNewsletterEmailRequest extends PagableGateway<SearchClientsNewsletterEmailRequest,SearchClientsNewsletterEmailResponse> {
508
508
  shops: (value: Array<JSObject>) => this;
509
509
  /** Customer language ID. */
510
510
  language: (value: string) => this;
@@ -519,7 +519,7 @@ export interface SearchClientsNewsletterEmailRequest extends PagableGateway<Sear
519
519
  dates: (dateFrom: DateLike, dateTo: DateLike) => this;
520
520
  }
521
521
 
522
- export interface SearchClientsNewsletterSmsRequest extends PagableGateway<SearchClientsNewsletterSmsRequest,SearchNewsletterSmsResponse> {
522
+ export interface SearchClientsNewsletterSmsRequest extends PagableGateway<SearchClientsNewsletterSmsRequest,SearchClientsNewsletterSmsResponse> {
523
523
  shops: (value: Array<JSObject>) => this;
524
524
  /** Customer language ID. */
525
525
  language: (value: string) => this;
@@ -542,7 +542,7 @@ export interface DeleteClientsPayerAddressRequest extends AppendableGateway<Dele
542
542
  payerAddressId: (payerAddressId: number|string) => this
543
543
  }
544
544
 
545
- export interface GetClientsPayerAddressRequest extends PagableGateway<GetClientsPayerAddressRequest> {
545
+ export interface GetClientsPayerAddressRequest extends PagableGateway<GetClientsPayerAddressRequest,GetClientsPayerAddressResponse> {
546
546
  /** Unique client's number. */
547
547
  clientId: (value: string) => this;
548
548
  /** Page with results number. Numeration starts from 0 */
@@ -814,7 +814,7 @@ export interface PutClientsTagsRequest extends AppendableGateway<PutClientsTagsR
814
814
  tagValue: (tagValue: number|string) => this
815
815
  }
816
816
 
817
- export interface GetConfigVariablesRequest extends PagableGateway<GetConfigVariablesRequest> {
817
+ export interface GetConfigVariablesRequest extends PagableGateway<GetConfigVariablesRequest,GetConfigVariablesResponse> {
818
818
  /** Which component is affected by the configuration. */
819
819
  type: (value: 'snippets_campaign') => this;
820
820
  /** List of item identifiers for given configuration type. Eg. snippet campaign identifiers. */
@@ -848,7 +848,7 @@ export interface DeleteConfigVariablesRequest extends Gateway {
848
848
  key: (value: string|string[]) => this;
849
849
  }
850
850
 
851
- export interface GetCouriersAssignedToShippingProfilesRequest extends Gateway {}
851
+ export interface GetCouriersAssignedToShippingProfilesRequest extends Gateway<GetCouriersAssignedToShippingProfilesResponse> {}
852
852
 
853
853
  export interface GetCouriersRequest extends PagableGateway<GetCouriersRequest> {
854
854
  /** Country code in ISO 3166-1 standard. */
@@ -869,7 +869,7 @@ export interface DeleteCouriersPickupPointsRequest extends AppendableGateway<Del
869
869
  courierId: (courierId: number|string) => this
870
870
  }
871
871
 
872
- export interface GetCouriersPickupPointsRequest extends PagableGateway<GetCouriersPickupPointsRequest> {
872
+ export interface GetCouriersPickupPointsRequest extends PagableGateway<GetCouriersPickupPointsRequest,GetCouriersPickupPointsResponse> {
873
873
  /** Courier ID. */
874
874
  courierId: (value: number|string) => this;
875
875
  /** Collection point ID. */
@@ -1290,7 +1290,7 @@ export interface DeleteMenuRequest extends AppendableGateway<DeleteMenuRequest>
1290
1290
  item_textid: (item_textid: string) => this
1291
1291
  }
1292
1292
 
1293
- export interface GetMenuRequest extends Gateway {
1293
+ export interface GetMenuRequest extends Gateway<GetMenuResponse> {
1294
1294
  /** Shop Id. */
1295
1295
  shop_id: (value: number|string) => this;
1296
1296
  /** Tree menu ID. */
@@ -1355,12 +1355,12 @@ export interface PutMenuSortRequest extends AppendableGateway<PutMenuSortRequest
1355
1355
  recursive: (recursive: 'y'|'n') => this
1356
1356
  }
1357
1357
 
1358
- export interface GetOrdersAnalyticsRequest extends Gateway {
1358
+ export interface GetOrdersAnalyticsRequest extends Gateway<GetOrdersAnalyticsResponse> {
1359
1359
  /** Array of order serial numbers. */
1360
1360
  orderSerialNumber: (value: number|string|number[]|string[]) => this;
1361
1361
  }
1362
1362
 
1363
- export interface GetOrdersAuctionDetailsRequest extends Gateway {
1363
+ export interface GetOrdersAuctionDetailsRequest extends Gateway<GetOrdersAuctionDetailsResponse> {
1364
1364
  /** Identifier type. */
1365
1365
  identType: (value: 'orders_id'|'orders_sn') => this;
1366
1366
  /** Orders Id values. */
@@ -1429,7 +1429,7 @@ export interface DeleteOrdersDocumentsRequest extends AppendableGateway<DeleteOr
1429
1429
  id: (id: number|string) => this
1430
1430
  }
1431
1431
 
1432
- export interface GetOrdersDocumentsRequest extends Gateway {
1432
+ export interface GetOrdersDocumentsRequest extends Gateway<GetOrdersDocumentsResponse> {
1433
1433
  /** Order serial number. */
1434
1434
  orderSerialNumber: (value: string|string[]) => this;
1435
1435
  /** Document type */
@@ -1556,7 +1556,7 @@ export interface GetOrdersLabelsRequest extends Gateway {
1556
1556
  orderSerialNumber: (value: number|string) => this;
1557
1557
  }
1558
1558
 
1559
- export interface SearchOrdersOpinionsRequest extends PagableGateway<SearchOrdersOpinionsRequest,SearchOpinionsResponse> {
1559
+ export interface SearchOrdersOpinionsRequest extends PagableGateway<SearchOrdersOpinionsRequest,SearchOrdersOpinionsResponse> {
1560
1560
  /** Review identification */
1561
1561
  opinion: (value: JSObject) => this;
1562
1562
  /** Orders. */
@@ -1662,6 +1662,8 @@ export interface PutOrdersRequest extends AppendableGateway<PutOrdersRequest> {
1662
1662
  orderSerialNumber: (orderSerialNumber: number|string) => this
1663
1663
  /** 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. */
1664
1664
  orderStatus: (orderStatus: string) => this
1665
+ /** Order status id . */
1666
+ orderStatusId: (orderStatusId: number|string) => this
1665
1667
  /** 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. */
1666
1668
  apiFlag: (apiFlag: 'none'|'registered'|'realized'|'registered_pos'|'realized_pos'|'registration_fault') => this
1667
1669
  /** API note added to order. */
@@ -1701,6 +1703,8 @@ export interface SearchOrdersRequest extends PagableGateway<SearchOrdersRequest,
1701
1703
  orderPrepaidStatus: (value: string) => this;
1702
1704
  /** Order status. Status list: "new" - not handled, "finished" - completed, "false" - false, "lost" - lost, "on_order" - in progress, "packed" - being picked, "ready" - ready, "canceled" - canceled by customer, "payment_waiting" - awaiting payment, "delivery_waiting" - awaiting delivery, "suspended" - on hold, "joined" - merged, "finished_ext" - handled in FA application. */
1703
1705
  ordersStatuses: (value: string|string[]) => this;
1706
+ /** Order statusses ids. */
1707
+ ordersStatusesIds: (value: number|string|number[]|string[]) => this;
1704
1708
  shippmentStatus: (value: 'all'|'received'|'non-received') => this;
1705
1709
  /** Shipping companies (packages deliverers). */
1706
1710
  couriersName: (value: string|string[]) => this;
@@ -1784,7 +1788,7 @@ export interface SearchOrdersRequest extends PagableGateway<SearchOrdersRequest,
1784
1788
  fromEbay: (allegroAccount?: string) => this;
1785
1789
  }
1786
1790
 
1787
- export interface GetOrdersPackagesRequest extends Gateway {
1791
+ export interface GetOrdersPackagesRequest extends Gateway<GetOrdersPackagesResponse> {
1788
1792
  /** Consignments numbers. */
1789
1793
  deliveryPackageNumbers: (value: string|string[]) => this;
1790
1794
  /** Order serial numbers. */
@@ -1857,7 +1861,7 @@ export interface PutOrdersProfitMarginRequest extends AppendableGateway<PutOrder
1857
1861
  isProductsErrors: (isProductsErrors: boolean) => this
1858
1862
  }
1859
1863
 
1860
- export interface GetOrdersProfitabilityRequest extends Gateway {
1864
+ export interface GetOrdersProfitabilityRequest extends Gateway<GetOrdersProfitabilityResponse> {
1861
1865
  /** Order serial number. */
1862
1866
  orderSerialNumber: (value: number|string) => this;
1863
1867
  }
@@ -1871,11 +1875,15 @@ export interface PutOrdersShippingCostsRequest extends Gateway {
1871
1875
  orderDeliveryVat: (value: Number) => this;
1872
1876
  }
1873
1877
 
1878
+ export interface GetOrdersStatusesRequest extends Gateway {}
1879
+
1874
1880
  export interface SearchOrdersUnfinishedRequest extends PagableGateway<SearchOrdersUnfinishedRequest,SearchOrdersResponse> {
1875
1881
  /** Prepayment status. Status list: "unpaid" - not paid, "restored" - returned, "waiting" - not registered. */
1876
1882
  orderPrepaidStatus: (value: string) => this;
1877
1883
  /** Order status. Status list: "new" - not handled, "on_order" - in progress, "packed" - being picked, "packed_fulfillment" - being picked - fulfilment, "packed_ready" - packed, "ready" - ready, "payment_waiting" - awaiting payment, "delivery_waiting" - awaiting delivery, "wait_for_dispatch" - awaiting dispatch date, "suspended" - on hold, "finished_ext" - handled in FA application. */
1878
1884
  ordersStatuses: (value: string|string[]) => this;
1885
+ /** Order statuses ids. */
1886
+ ordersStatusesIds: (value: number|string|number[]|string[]) => this;
1879
1887
  /** Shipping companies (packages deliverers). */
1880
1888
  couriersName: (value: string|string[]) => this;
1881
1889
  /** Order payment method. Allowed values. "cash_on_delivery" - cash on delivery, "prepaid" - prepayment, "tradecredit" - Trade credit. */
@@ -1966,7 +1974,7 @@ export interface PutOrdersWarehouseRequest extends Gateway {
1966
1974
  externalStockId: (value: 'amazonde'|'amazones'|'amazonfr'|'amazonit'|'amazoncouk'|'amazonnl'|'amazonse'|'amazoncomtr'|'amazonae'|'amazonus'|'amazonpl') => this;
1967
1975
  }
1968
1976
 
1969
- export interface GetPackagesLabelsRequest extends Gateway {
1977
+ export interface GetPackagesLabelsRequest extends Gateway<GetPackagesLabelsResponse> {
1970
1978
  /** Id. */
1971
1979
  eventId: (value: number|string) => this;
1972
1980
  /** Event type */
@@ -2133,7 +2141,7 @@ export interface PostPaymentsRepaymentRequest extends Gateway {
2133
2141
  other: (value: JSObject) => this;
2134
2142
  }
2135
2143
 
2136
- export interface GetProductsSKUbyBarcodeRequest extends Gateway {
2144
+ export interface GetProductsSKUbyBarcodeRequest extends Gateway<GetProductsSKUbyBarcodeResponse> {
2137
2145
  /** List of sought products by indexes. */
2138
2146
  productIndices: (value: string|string[]) => this;
2139
2147
  /** Search for products only by IAI code */
@@ -2157,7 +2165,7 @@ export interface PutProductsAttachmentsRequest extends AppendableGateway<PutProd
2157
2165
  productId: (value: number|string) => this;
2158
2166
  }
2159
2167
 
2160
- export interface GetProductsAuctionsRequest extends PagableGateway<GetProductsAuctionsRequest> {
2168
+ export interface GetProductsAuctionsRequest extends PagableGateway<GetProductsAuctionsRequest,GetProductsAuctionsResponse> {
2161
2169
  identType: (value: 'id'|'index'|'codeExtern'|'codeProducer') => this;
2162
2170
  /** Products list. */
2163
2171
  products: (value: string|string[]) => this;
@@ -2208,7 +2216,7 @@ export interface PutProductsBrandsFilterRequest extends AppendableGateway<PutPro
2208
2216
  filterDefaultEnabled: (filterDefaultEnabled: 'y'|'n') => this
2209
2217
  }
2210
2218
 
2211
- export interface GetProductsBrandsRequest extends PagableGateway<GetProductsBrandsRequest> {
2219
+ export interface GetProductsBrandsRequest extends PagableGateway<GetProductsBrandsRequest,GetProductsBrandsResponse> {
2212
2220
  /** Result page number. */
2213
2221
  results_page: (value: number|string) => this;
2214
2222
  /** Number of results on page. */
@@ -2284,7 +2292,7 @@ export interface PutProductsBundlesRenewRequest extends AppendableGateway<PutPro
2284
2292
  bundleIdent: (bundleIdent: JSObject) => this
2285
2293
  }
2286
2294
 
2287
- export interface GetProductsCategoriesRequest extends PagableGateway<GetProductsCategoriesRequest> {
2295
+ export interface GetProductsCategoriesRequest extends PagableGateway<GetProductsCategoriesRequest,GetProductsCategoriesResponse> {
2288
2296
  /** List of product category identifiers in the panel */
2289
2297
  ids: (value: number|string|number[]|string[]) => this;
2290
2298
  /** Array of languages categories names should be returned in. "Defaults" value returns categories names in store default language. Not using languages parameter causes a situation, that categories names are returned in all available languages. */
@@ -2329,13 +2337,13 @@ export interface SearchProductsCategoriesIdosellRequest extends PagableGateway<S
2329
2337
  languages: (values: number|string|number[]|string[]) => this;
2330
2338
  }
2331
2339
 
2332
- export interface GetProductsCodeExistenceRequest extends Gateway {
2340
+ export interface GetProductsCodeExistenceRequest extends Gateway<GetProductsCodeExistenceResponse> {
2333
2341
  identType: (value: 'id'|'index'|'codeExtern'|'codeProducer'|'codeDeliverer') => this;
2334
2342
  /** Products list. */
2335
2343
  products: (value: string|string[]) => this;
2336
2344
  delivererId: (value: string) => this;
2337
2345
  /** Set product identifiers */
2338
- productId: (productId: number|string|number|string|number[]|string[], type: 'id'|'index'|'codeExtern'|'codeProducer') => this;
2346
+ productId: (productId: number|string|number|string|number[]|string[], type?: 'id'|'index'|'codeExtern'|'codeProducer') => this;
2339
2347
  }
2340
2348
 
2341
2349
  export interface PostProductsCollectionsRequest extends AppendableGateway<PostProductsCollectionsRequest> {
@@ -2381,7 +2389,7 @@ export interface PutProductsCollectionsRenewRequest extends AppendableGateway<Pu
2381
2389
  collectionIdent: (collectionIdent: JSObject) => this
2382
2390
  }
2383
2391
 
2384
- export interface SearchProductsDeliveryTimeRequest extends AppendableGateway<SearchProductsDeliveryTimeRequest, SearchDeliveryTimeResponse> {
2392
+ export interface SearchProductsDeliveryTimeRequest extends AppendableGateway<SearchProductsDeliveryTimeRequest, SearchProductsDeliveryTimeResponse> {
2385
2393
  /** Stock ID */
2386
2394
  stockId: (value: number|string) => this;
2387
2395
  /** Should products be prepared for personal collection? */
@@ -2399,7 +2407,7 @@ export interface SearchProductsDeliveryTimeRequest extends AppendableGateway<Sea
2399
2407
  productSizeQuantity: (productSizeQuantity: number) => this
2400
2408
  }
2401
2409
 
2402
- export interface GetProductsDescriptionsRequest extends Gateway {
2410
+ export interface GetProductsDescriptionsRequest extends Gateway<GetProductsDescriptionsResponse> {
2403
2411
  /** Identifier type. */
2404
2412
  type: (value: 'id'|'index'|'codeExtern'|'codeProducer') => this;
2405
2413
  /** ID value. */
@@ -2407,7 +2415,7 @@ export interface GetProductsDescriptionsRequest extends Gateway {
2407
2415
  /** Shop Id */
2408
2416
  shopId: (value: number|string) => this;
2409
2417
  /** Set product identifiers */
2410
- productId: (productId: number|string|number|string|number[]|string[], type: 'id'|'index'|'codeExtern'|'codeProducer') => this;
2418
+ productId: (productId: number|string|number|string|number[]|string[], type?: 'id'|'index'|'codeExtern'|'codeProducer') => this;
2411
2419
  }
2412
2420
 
2413
2421
  export interface PutProductsDescriptionsRequest extends AppendableGateway<PutProductsDescriptionsRequest> {
@@ -2421,7 +2429,7 @@ export interface PutProductsDescriptionsRequest extends AppendableGateway<PutPro
2421
2429
  productAuctionDescriptionsData: (productAuctionDescriptionsData: Array<JSObject>) => this
2422
2430
  productId: (value: number|string) => this;
2423
2431
  /** Set various types of names or descriptions to the product */
2424
- setText: (text: string, type: "productName"|"productAuctionName"|"productPriceComparerName"|"productDescription"|"productLongDescription"|"productMetaTitle"|"productMetaDescription"|"productMetaKeywords" = 'productName', language?: string, shopId?: number|string) => this;
2432
+ setText: (text: string, type?: "productName"|"productAuctionName"|"productPriceComparerName"|"productDescription"|"productLongDescription"|"productMetaTitle"|"productMetaDescription"|"productMetaKeywords" = 'productName', language?: string, shopId?: number|string) => this;
2425
2433
  }
2426
2434
 
2427
2435
  export interface PutProductsGroupsMainProductRequest extends AppendableGateway<PutProductsGroupsMainProductRequest> {
@@ -2452,7 +2460,7 @@ export interface PutProductsGroupsSettingsRequest extends AppendableGateway<PutP
2452
2460
  productId: (value: number|string) => this;
2453
2461
  }
2454
2462
 
2455
- export interface GetProductsIdBySizecodeRequest extends Gateway {
2463
+ export interface GetProductsIdBySizecodeRequest extends Gateway<GetProductsIdBySizecodeResponse> {
2456
2464
  /** Search codes. */
2457
2465
  codes: (value: string|string[]) => this;
2458
2466
  /** Type of codes. Acceptable values: "external" (default value) - external system code, "producer" - producer code, and "all" - any of the above codes */
@@ -2578,7 +2586,7 @@ export interface GetProductsMarketingZonesRequest extends Gateway {
2578
2586
  /** Products list. */
2579
2587
  products: (value: string|string[]) => this;
2580
2588
  /** Set product identifiers */
2581
- productId: (productId: number|string|number|string|number[]|string[], type: 'id'|'index'|'codeExtern'|'codeProducer') => this;
2589
+ productId: (productId: number|string|number|string|number[]|string[], type?: 'id'|'index'|'codeExtern'|'codeProducer') => this;
2582
2590
  }
2583
2591
 
2584
2592
  export interface PutProductsMarketingZonesRequest extends AppendableGateway<PutProductsMarketingZonesRequest> {
@@ -2592,12 +2600,12 @@ export interface PutProductsMarketingZonesRequest extends AppendableGateway<PutP
2592
2600
  ident: (ident: JSObject) => this
2593
2601
  }
2594
2602
 
2595
- export interface GetProductsOmnibusPricesRequest extends Gateway {
2603
+ export interface GetProductsOmnibusPricesRequest extends Gateway<GetProductsOmnibusPricesResponse> {
2596
2604
  identType: (value: 'id'|'index'|'codeExtern'|'codeProducer') => this;
2597
2605
  /** Products list. */
2598
2606
  products: (value: string|string[]) => this;
2599
2607
  /** Set product identifiers */
2600
- productId: (productId: number|string|number|string|number[]|string[], type: 'id'|'index'|'codeExtern'|'codeProducer') => this;
2608
+ productId: (productId: number|string|number|string|number[]|string[], type?: 'id'|'index'|'codeExtern'|'codeProducer') => this;
2601
2609
  }
2602
2610
 
2603
2611
  export interface PutProductsOmnibusPricesRequest extends AppendableGateway<PutProductsOmnibusPricesRequest> {
@@ -2612,9 +2620,9 @@ export interface PutProductsOmnibusPricesRequest extends AppendableGateway<PutPr
2612
2620
  /** Strikethrough price settings for the page. */
2613
2621
  shops: (shops: Array<JSObject>) => this
2614
2622
  /** Set product identifiers */
2615
- productId: (productId: number|string, type: 'id'|'index'|'codeExtern'|'codeProducer' = 'id') => this;
2623
+ productId: (productId: number|string, type?: 'id'|'index'|'codeExtern'|'codeProducer' = 'id') => this;
2616
2624
  /** Set retail or wholesale price */
2617
- setPrice: (price: number, wholesale: boolean = false) => this;
2625
+ setPrice: (price: number, wholesale?: boolean = false) => this;
2618
2626
  /** Set mode to automatic */
2619
2627
  mode: (automatic: boolean = false) => this;
2620
2628
  }
@@ -2623,7 +2631,7 @@ export interface DeleteProductsOpinionsRequest extends Gateway {
2623
2631
  id: (value: number|string) => this;
2624
2632
  }
2625
2633
 
2626
- export interface GetProductsOpinionsRequest extends PagableGateway<GetProductsOpinionsRequest> {
2634
+ export interface GetProductsOpinionsRequest extends PagableGateway<GetProductsOpinionsRequest,GetProductsOpinionsResponse> {
2627
2635
  /** Review identification */
2628
2636
  opinion: (value: JSObject) => this;
2629
2637
  /** Products list. */
@@ -2927,9 +2935,9 @@ export interface PostProductsRequest extends AppendableGateway<PostProductsReque
2927
2935
  /** Responsible person code */
2928
2936
  responsiblePersonCode: (responsiblePersonCode: string) => this
2929
2937
  /** Set various types of names or descriptions to the product */
2930
- setText: (text: string, type: "productName"|"productParamDescriptions"|"productLongDescription"|"productMetaTitle"|"productMetaDescription"|"productMetaKeyword"|"productAuctionName"|"productAuctionDescription"|"productAuctionAdditionalName"|"productNameInPriceComparer" = 'productName', language?: string, shopId?: number|string) => this;
2938
+ setText: (text: string, type?: "productName"|"productParamDescriptions"|"productLongDescription"|"productMetaTitle"|"productMetaDescription"|"productMetaKeyword"|"productAuctionName"|"productAuctionDescription"|"productAuctionAdditionalName"|"productNameInPriceComparer" = 'productName', language?: string, shopId?: number|string) => this;
2931
2939
  /** Sets product price by amount */
2932
- setPrice: (value: number, type: 'retail'|'wholesale'|'pos'|'minimal'|'strikethroughRetail'|'strikethroughWholesale'|'suggested'|'automaticCalculation' = 'retail') => this;
2940
+ setPrice: (value: number, type?: 'retail'|'wholesale'|'pos'|'minimal'|'strikethroughRetail'|'strikethroughWholesale'|'suggested'|'automaticCalculation' = 'retail') => this;
2933
2941
  }
2934
2942
 
2935
2943
  export interface PutProductsRequest extends AppendableGateway<PutProductsRequest> {
@@ -2999,7 +3007,7 @@ export interface PutProductsRequest extends AppendableGateway<PutProductsRequest
2999
3007
  productMinimalPriceNet: (productMinimalPriceNet: number) => this
3000
3008
  /** Price for automatic calculations */
3001
3009
  productAutomaticCalculationPrice: (productAutomaticCalculationPrice: number) => this
3002
- /** #!CenaDoObliczenAutomatycznychNettoDlaKazdegoSklepu!#. */
3010
+ /** Price for automatic net calculations for each store */
3003
3011
  productAutomaticCalculationPriceNet: (productAutomaticCalculationPriceNet: number) => this
3004
3012
  /** price for POS. */
3005
3013
  productPosPrice: (productPosPrice: number) => this
@@ -3137,7 +3145,7 @@ export interface PutProductsRequest extends AppendableGateway<PutProductsRequest
3137
3145
  productMetaDescriptions: (productMetaDescriptions: JSObject) => this
3138
3146
  /** Product meta keywords. */
3139
3147
  productMetaKeywords: (productMetaKeywords: JSObject) => this
3140
- /** #!AdresURLDlaTowaru!#. */
3148
+ /** URL for the product */
3141
3149
  productUrl: (productUrl: JSObject) => this
3142
3150
  /** Data on product groups (variants) */
3143
3151
  productVersion: (productVersion: JSObject) => this
@@ -3163,7 +3171,7 @@ export interface PutProductsRequest extends AppendableGateway<PutProductsRequest
3163
3171
  productPriceVatChangeMode: (productPriceVatChangeMode: 'change_net'|'change_gross') => this
3164
3172
  /** An array of menu elements */
3165
3173
  productMenuItems: (productMenuItems: Array<JSObject>) => this
3166
- /** #!UsuwaWszystkiePrzypisaneDoProduktuElementyWybranegoMenu!#. */
3174
+ /** Deletes all items assigned to the product of the selected menu */
3167
3175
  removeAllProductsAssignedToMenu: (removeAllProductsAssignedToMenu: JSObject) => this
3168
3176
  /** Do You wish to sum up the products in the basket as a one order? Available values: "y" - yes, "n" - no. */
3169
3177
  productSumInBasket: (productSumInBasket: string) => this
@@ -3204,17 +3212,17 @@ export interface PutProductsRequest extends AppendableGateway<PutProductsRequest
3204
3212
  /** Responsible person code */
3205
3213
  responsiblePersonCode: (responsiblePersonCode: string) => this
3206
3214
  /** Set various types of names or descriptions to the product */
3207
- setText: (text: string, type: "productName"|"productParamDescriptions"|"productLongDescription"|"productMetaTitle"|"productMetaDescription"|"productMetaKeyword"|"productAuctionName"|"productAuctionDescription"|"productAuctionAdditionalName"|"productNameInPriceComparer" = 'productName', language?: string, shopId?: number|string) => this;
3215
+ setText: (text: string, type?: "productName"|"productParamDescriptions"|"productLongDescription"|"productMetaTitle"|"productMetaDescription"|"productMetaKeyword"|"productAuctionName"|"productAuctionDescription"|"productAuctionAdditionalName"|"productNameInPriceComparer" = 'productName', language?: string, shopId?: number|string) => this;
3208
3216
  /** Set edit mode - disables adding new product */
3209
3217
  editMode: () => this;
3210
3218
  /** Set add mode - Api is allowed to create new products */
3211
3219
  addMode: () => this;
3212
3220
  /** Increases product price by amount */
3213
- addPrice: (value: number, type: 'retail'|'wholesale'|'pos'|'minimal'|'strikethroughRetail'|'strikethroughWholesale'|'suggested'|'automaticCalculation') => this;
3221
+ addPrice: (value: number, type?: 'retail'|'wholesale'|'pos'|'minimal'|'strikethroughRetail'|'strikethroughWholesale'|'suggested'|'automaticCalculation') => this;
3214
3222
  /** Sets product price by amount */
3215
- setPrice: (value: number, type: 'retail'|'wholesale'|'pos'|'minimal'|'strikethroughRetail'|'strikethroughWholesale'|'suggested'|'automaticCalculation') => this;
3223
+ setPrice: (value: number, type?: 'retail'|'wholesale'|'pos'|'minimal'|'strikethroughRetail'|'strikethroughWholesale'|'suggested'|'automaticCalculation') => this;
3216
3224
  /** Sets product selected IDs */
3217
- setMenu: (shopId: number|string, menuIds: number|string) => this;
3225
+ setMenu: (shopId: number|string, menuIds?: number|string) => this;
3218
3226
  /** Sets list of pictures attached to product */
3219
3227
  pictures: (picturesArray: string|string[]) => this;
3220
3228
  }
@@ -3447,12 +3455,12 @@ export interface PutProductsQuestionsRequest extends AppendableGateway<PutProduc
3447
3455
  productId: (value: number|string) => this;
3448
3456
  }
3449
3457
 
3450
- export interface GetProductsReservationsRequest extends Gateway {
3458
+ export interface GetProductsReservationsRequest extends Gateway<GetProductsReservationsResponse> {
3451
3459
  identType: (value: 'id'|'index'|'codeExtern'|'codeProducer') => this;
3452
3460
  /** Products list. */
3453
3461
  products: (value: string|string[]) => this;
3454
3462
  /** Set product identifiers */
3455
- productId: (productId: number|string|number|string|number[]|string[], type: 'id'|'index'|'codeExtern'|'codeProducer') => this;
3463
+ productId: (productId: number|string|number|string|number[]|string[], type?: 'id'|'index'|'codeExtern'|'codeProducer') => this;
3456
3464
  }
3457
3465
 
3458
3466
  export interface PostProductsRestoreRequest extends Gateway {
@@ -3496,7 +3504,7 @@ export interface PutProductsSeriesFilterRequest extends AppendableGateway<PutPro
3496
3504
  filterDefaultEnabled: (filterDefaultEnabled: 'y'|'n') => this
3497
3505
  }
3498
3506
 
3499
- export interface GetProductsSeriesRequest extends PagableGateway<GetProductsSeriesRequest> {
3507
+ export interface GetProductsSeriesRequest extends PagableGateway<GetProductsSeriesRequest,GetProductsSeriesResponse> {
3500
3508
  /** With "y" value it returns the last series modification date in YYYY-MM-DD HH:MM:SS format. */
3501
3509
  return_last_changed_time: (value: string) => this;
3502
3510
  /** IDs */
@@ -3535,7 +3543,7 @@ export interface DeleteProductsSizesRequest extends AppendableGateway<DeleteProd
3535
3543
  sizes: (sizes: Array<JSObject>) => this
3536
3544
  }
3537
3545
 
3538
- export interface GetProductsSizesRequest extends Gateway {
3546
+ export interface GetProductsSizesRequest extends Gateway<GetProductsSizesResponse> {
3539
3547
  /** Allows to change offset and number of records returned */
3540
3548
  page: (pagenumber: number, pageSize?: number) => this;
3541
3549
  }
@@ -3556,6 +3564,10 @@ export interface PutProductsSizesRequest extends AppendableGateway<PutProductsSi
3556
3564
  export interface PutProductsStockQuantityRequest extends AppendableGateway<PutProductsStockQuantityRequest> {
3557
3565
  /** Products list. */
3558
3566
  products: (value: Array<JSObject>) => this;
3567
+ /** Product index */
3568
+ productIndex: (productIndex: string) => this
3569
+ /** Product size code producer */
3570
+ productSizeCodeProducer: (productSizeCodeProducer: string) => this
3559
3571
  /** External product system code for size. */
3560
3572
  productSizeCodeExternal: (productSizeCodeExternal: string) => this
3561
3573
  /** Stock ID */
@@ -3568,12 +3580,12 @@ export interface PutProductsStockQuantityRequest extends AppendableGateway<PutPr
3568
3580
  productPurchasePriceNet: (productPurchasePriceNet: number) => this
3569
3581
  }
3570
3582
 
3571
- export interface GetProductsStocksRequest extends Gateway {
3583
+ export interface GetProductsStocksRequest extends Gateway<GetProductsStocksResponse> {
3572
3584
  identType: (value: 'id'|'index'|'codeExtern'|'codeProducer') => this;
3573
3585
  /** Products list. */
3574
3586
  products: (value: string|string[]) => this;
3575
3587
  /** Set product identifiers */
3576
- productId: (productId: number|string|number|string|number[]|string[], type: 'id'|'index'|'codeExtern'|'codeProducer') => this;
3588
+ productId: (productId: number|string|number|string|number[]|string[], type?: 'id'|'index'|'codeExtern'|'codeProducer') => this;
3577
3589
  }
3578
3590
 
3579
3591
  export interface PutProductsStocksRequest extends AppendableGateway<PutProductsStocksRequest> {
@@ -3594,7 +3606,7 @@ export interface GetProductsStrikethroughPricesRequest extends Gateway {
3594
3606
  /** Products list. */
3595
3607
  products: (value: string|string[]) => this;
3596
3608
  /** Set product identifiers */
3597
- productId: (productId: number|string|number|string|number[]|string[], type: 'id'|'index'|'codeExtern'|'codeProducer') => this;
3609
+ productId: (productId: number|string|number|string|number[]|string[], type?: 'id'|'index'|'codeExtern'|'codeProducer') => this;
3598
3610
  }
3599
3611
 
3600
3612
  export interface PutProductsStrikethroughPricesRequest extends AppendableGateway<PutProductsStrikethroughPricesRequest> {
@@ -3609,13 +3621,13 @@ export interface PutProductsStrikethroughPricesRequest extends AppendableGateway
3609
3621
  /** Strikethrough price settings for the page. */
3610
3622
  shops: (shops: Array<JSObject>) => this
3611
3623
  /** Set product identifiers */
3612
- productId: (productId: number|string, type: 'id'|'index'|'codeExtern'|'codeProducer' = 'id') => this;
3624
+ productId: (productId: number|string, type?: 'id'|'index'|'codeExtern'|'codeProducer' = 'id') => this;
3613
3625
  /** Set precise price */
3614
- setPrice: (price: number, wholesale: boolean = false) => this;
3626
+ setPrice: (price: number, wholesale?: boolean = false) => this;
3615
3627
  /** Set price relative to current price */
3616
- addPrice: (value: number, wholesale: boolean = false, base: 'price' | 'price_minimal' | 'price_pos' | 'price_srp' | 'price_crossed' = 'price') => this;
3628
+ addPrice: (value: number, wholesale?: boolean = false, base?: 'price' | 'price_minimal' | 'price_pos' | 'price_srp' | 'price_crossed' = 'price') => this;
3617
3629
  /** Set price relative to current price by percent */
3618
- addPricePercent: (value: number, wholesale: boolean = false, base: 'price' | 'price_minimal' | 'price_pos' | 'price_srp' | 'price_crossed' = 'price') => this;
3630
+ addPricePercent: (value: number, wholesale?: boolean = false, base?: 'price' | 'price_minimal' | 'price_pos' | 'price_srp' | 'price_crossed' = 'price') => this;
3619
3631
  }
3620
3632
 
3621
3633
  export interface PutProductsSupplierCodeRequest extends AppendableGateway<PutProductsSupplierCodeRequest> {
@@ -3748,7 +3760,7 @@ export interface PutRefundsUpdateRefundRequest extends Gateway {
3748
3760
  refundCurrency: (value: string) => this;
3749
3761
  }
3750
3762
 
3751
- export interface GetResponsibilityEntitiesRequest extends PagableGateway<GetResponsibilityEntitiesRequest> {
3763
+ export interface GetResponsibilityEntitiesRequest extends PagableGateway<GetResponsibilityEntitiesRequest,GetResponsibilityEntitiesResponse> {
3752
3764
  /** List of codes */
3753
3765
  code: (value: string|string[]) => this;
3754
3766
  /** Type of entity */
@@ -3787,6 +3799,8 @@ export interface PostResponsibilityEntitiesRequest extends AppendableGateway<Pos
3787
3799
  phone: (phone: string) => this
3788
3800
  /** Additional description. */
3789
3801
  description: (description: string) => this
3802
+ /** URL to contact page. */
3803
+ url: (url: string) => this
3790
3804
  }
3791
3805
 
3792
3806
  export interface PutResponsibilityEntitiesRequest extends AppendableGateway<PutResponsibilityEntitiesRequest> {
@@ -3817,6 +3831,8 @@ export interface PutResponsibilityEntitiesRequest extends AppendableGateway<PutR
3817
3831
  phone: (phone: string) => this
3818
3832
  /** Additional description. */
3819
3833
  description: (description: string) => this
3834
+ /** URL to contact page. */
3835
+ url: (url: string) => this
3820
3836
  }
3821
3837
 
3822
3838
  export interface DeleteResponsibilityEntitiesRequest extends Gateway {
@@ -3952,9 +3968,9 @@ export interface PutRmaRequest extends AppendableGateway<PutRmaRequest> {
3952
3968
 
3953
3969
  export interface GetRmaStatusesRequest extends Gateway {}
3954
3970
 
3955
- export interface GetShopsCurrenciesRequest extends Gateway {}
3971
+ export interface GetShopsCurrenciesRequest extends Gateway<GetShopsCurrenciesResponse> {}
3956
3972
 
3957
- export interface GetShopsLanguagesRequest extends Gateway {}
3973
+ export interface GetShopsLanguagesRequest extends Gateway<GetShopsLanguagesResponse> {}
3958
3974
 
3959
3975
  export interface DeleteSizechartsRequest extends Gateway {
3960
3976
  /** #!identyfikatory!# */
@@ -3986,7 +4002,7 @@ export interface PutSizechartsRequest extends AppendableGateway<PutSizechartsReq
3986
4002
  languagesData: (languagesData: Array<JSObject>) => this
3987
4003
  }
3988
4004
 
3989
- export interface GetSizesRequest extends Gateway {
4005
+ export interface GetSizesRequest extends Gateway<GetSizesResponse> {
3990
4006
  /** When the value is 'y', the last size modification date is returned, formatted as YYYY-MM-DD HH-MM-SS. */
3991
4007
  return_last_changed_time: (value: string) => this;
3992
4008
  }
@@ -4124,7 +4140,7 @@ export interface DeleteSnippetsCookiesRequest extends Gateway {
4124
4140
  id: (value: number|string|number[]|string[]) => this;
4125
4141
  }
4126
4142
 
4127
- export interface GetSnippetsRequest extends PagableGateway<GetSnippetsRequest> {
4143
+ export interface GetSnippetsRequest extends PagableGateway<GetSnippetsRequest,GetSnippetsResponse> {
4128
4144
  /** List of campaign identifiers */
4129
4145
  campaign: (value: number|string|number[]|string[]) => this;
4130
4146
  /** List of identifiers */
@@ -4319,14 +4335,14 @@ export interface PostSubscriptionsUnsetRebateCodeRequest extends Gateway {
4319
4335
  id: (value: number|string) => this;
4320
4336
  }
4321
4337
 
4322
- export interface GetSystemConfigRequest extends Gateway<GetConfigResponse> {}
4338
+ export interface GetSystemConfigRequest extends Gateway<GetSystemConfigResponse> {}
4323
4339
 
4324
4340
  export interface PutSystemConfigRequest extends Gateway {
4325
4341
  /** Panel settings */
4326
4342
  panelSettings: (value: JSObject) => this;
4327
4343
  }
4328
4344
 
4329
- export interface GetSystemCurrenciesRequest extends Gateway {
4345
+ export interface GetSystemCurrenciesRequest extends Gateway<GetSystemCurrenciesResponse> {
4330
4346
  /** Currency symbol in ISO 4217 format. */
4331
4347
  symbol: (value: string) => this;
4332
4348
  /** Date in format YYYY-MM-DD-HH MM:SS. */
@@ -4359,9 +4375,9 @@ export interface GetSystemServerLoadRequest extends Gateway {}
4359
4375
 
4360
4376
  export interface GetSystemServerTimeRequest extends Gateway {}
4361
4377
 
4362
- export interface GetSystemShopsDataRequest extends Gateway<GetShopsDataResponse> {}
4378
+ export interface GetSystemShopsDataRequest extends Gateway<GetSystemShopsDataResponse> {}
4363
4379
 
4364
- export interface GetSystemUnitsRequest extends Gateway {
4380
+ export interface GetSystemUnitsRequest extends Gateway<GetSystemUnitsResponse> {
4365
4381
  /** List of languages */
4366
4382
  languagesIds: (value: string|string[]) => this;
4367
4383
  }
@@ -4380,7 +4396,7 @@ export interface PutSystemUnitsRequest extends AppendableGateway<PutSystemUnitsR
4380
4396
  descriptions: (descriptions: Array<JSObject>) => this
4381
4397
  }
4382
4398
 
4383
- export interface GetSystemUsersRequest extends Gateway {
4399
+ export interface GetSystemUsersRequest extends Gateway<GetSystemUsersResponse> {
4384
4400
  /** User type. List of options "all" - All users, "active" - Only active users */
4385
4401
  userType: (value: 'all'|'active') => this;
4386
4402
  }
@@ -4553,7 +4569,7 @@ export interface PutWarrantiesRequest extends AppendableGateway<PutWarrantiesReq
4553
4569
  period: (period: number|string) => this
4554
4570
  }
4555
4571
 
4556
- export interface GetWmsLocationsRequest extends PagableGateway<GetWmsLocationsRequest,GetLocationsResponse> {
4572
+ export interface GetWmsLocationsRequest extends PagableGateway<GetWmsLocationsRequest,GetWmsLocationsResponse> {
4557
4573
  /** Warehouse location ID */
4558
4574
  locationId: (value: number|string) => this;
4559
4575
  /** Storage location code */
@@ -4585,7 +4601,7 @@ export interface DeleteWmsStocksdocumentsDocumentsRequest extends Gateway {
4585
4601
  id: (value: number|string) => this;
4586
4602
  }
4587
4603
 
4588
- export interface GetWmsStocksdocumentsDocumentsRequest extends PagableGateway<GetWmsStocksdocumentsDocumentsRequest,GetStocksdocumentsDocumentsResponse> {
4604
+ export interface GetWmsStocksdocumentsDocumentsRequest extends PagableGateway<GetWmsStocksdocumentsDocumentsRequest,GetWmsStocksdocumentsDocumentsResponse> {
4589
4605
  /** Document type. */
4590
4606
  stockDocumentType: (value: 'pz'|'pw'|'px'|'rx'|'rw'|'wz'|'mm'|'zw') => this;
4591
4607
  /** Document status. */
@@ -4706,7 +4722,7 @@ export interface DeleteWmsStocksdocumentsProductsRequest extends AppendableGatew
4706
4722
  size: (size: string) => this
4707
4723
  }
4708
4724
 
4709
- export interface GetWmsStocksdocumentsProductsRequest extends PagableGateway<GetWmsStocksdocumentsProductsRequest,GetStocksdocumentsProductsResponse> {
4725
+ export interface GetWmsStocksdocumentsProductsRequest extends PagableGateway<GetWmsStocksdocumentsProductsRequest,GetWmsStocksdocumentsProductsResponse> {
4710
4726
  type: (value: 'pz'|'pw'|'px'|'rx'|'rw'|'mm'|'wz'|'zw') => this;
4711
4727
  /** Document identifier. */
4712
4728
  id: (value: number|string) => this;
@@ -4770,7 +4786,7 @@ export interface DeleteWmsSuppliersRequest extends Gateway {
4770
4786
  ids: (value: number|string|number[]|string[]) => this;
4771
4787
  }
4772
4788
 
4773
- export interface GetWmsSuppliersRequest extends PagableGateway<GetWmsSuppliersRequest> {
4789
+ export interface GetWmsSuppliersRequest extends PagableGateway<GetWmsSuppliersRequest,GetWmsSuppliersResponse> {
4774
4790
  /** Page with results number. Numeration starts from 0 */
4775
4791
  resultsPage: (value: number|string) => this;
4776
4792
  /** Number of results on page. Value from 1 to 100 */
@@ -4945,6 +4961,7 @@ export interface Gateways {
4945
4961
  putOrdersProfitMargin: PutOrdersProfitMarginRequest,
4946
4962
  getOrdersProfitability: GetOrdersProfitabilityRequest,
4947
4963
  putOrdersShippingCosts: PutOrdersShippingCostsRequest,
4964
+ getOrdersStatuses: GetOrdersStatusesRequest,
4948
4965
  searchOrdersUnfinished: SearchOrdersUnfinishedRequest,
4949
4966
  getOrdersWarehouse: GetOrdersWarehouseRequest,
4950
4967
  putOrdersWarehouse: PutOrdersWarehouseRequest,
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import ENUMS from "./enums.js";
2
2
  import { gateProxy } from "./gates.js";
3
- const DEFAULT_VERSION = 5;
3
+ const DEFAULT_VERSION = 6;
4
4
  const idosell = (url, apiKey = "", version = DEFAULT_VERSION) => {
5
5
  const auth = { url, apiKey, version, apikey: apiKey.slice(0, 6) + '*'.repeat(20) };
6
6
  Object.defineProperty(auth, 'apiKey', { enumerable: false });
@@ -4,7 +4,7 @@ export default (object) => {
4
4
  object.gate = { method: 'get', node: '/orders/auctionDetails' };
5
5
  object.custom = {
6
6
  ids: nest("orders", "", { "identType": "order_id" }, true),
7
- serialNumbers: nest("orders", "", { "identType": "order_sn" }, true)
7
+ serialNumbers: nest("orders", "", { "identType": "orders_sn" }, true)
8
8
  };
9
9
  return new Proxy(object, paramsProxy);
10
10
  };
@@ -0,0 +1,5 @@
1
+ import { paramsProxy } from "../params.js";
2
+ export default (object) => {
3
+ object.gate = { method: 'get', node: '/orders/statuses' };
4
+ return new Proxy(object, paramsProxy);
5
+ };
@@ -21,6 +21,6 @@ export default (object) => {
21
21
  fromAmazon: orderSource("amazon"),
22
22
  page
23
23
  };
24
- object.arrays = ["ordersStatuses", "couriersName", "couriersId", "withMissingSalesDocuments", "ordersIds", "ordersSerialNumbers", "clients", "products", "stocks", "ordersBy"];
24
+ object.arrays = ["ordersStatuses", "ordersStatusesIds", "couriersName", "couriersId", "withMissingSalesDocuments", "ordersIds", "ordersSerialNumbers", "clients", "products", "stocks", "ordersBy"];
25
25
  return new Proxy(object, paramsProxy);
26
26
  };