@sp-api-sdk/fulfillment-inbound-api-v0 2.2.0 → 2.3.1

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 (70) hide show
  1. package/dist/cjs/src/api-model/api/fba-inbound-api.js +116 -28
  2. package/dist/cjs/src/api-model/base.js +7 -2
  3. package/dist/cjs/src/api-model/common.js +1 -1
  4. package/dist/cjs/src/api-model/configuration.js +8 -0
  5. package/dist/es/src/api-model/api/fba-inbound-api.js +116 -28
  6. package/dist/es/src/api-model/base.js +6 -1
  7. package/dist/es/src/api-model/common.js +1 -1
  8. package/dist/es/src/api-model/configuration.js +8 -0
  9. package/dist/types/src/api-model/api/fba-inbound-api.d.ts +159 -98
  10. package/dist/types/src/api-model/base.d.ts +14 -2
  11. package/dist/types/src/api-model/configuration.d.ts +8 -0
  12. package/dist/types/src/api-model/models/amazon-prep-fees-details.d.ts +2 -2
  13. package/dist/types/src/api-model/models/amount.d.ts +1 -1
  14. package/dist/types/src/api-model/models/asininbound-guidance.d.ts +2 -2
  15. package/dist/types/src/api-model/models/asinprep-instructions.d.ts +3 -3
  16. package/dist/types/src/api-model/models/box-contents-fee-details.d.ts +1 -1
  17. package/dist/types/src/api-model/models/common-transport-result.d.ts +1 -1
  18. package/dist/types/src/api-model/models/confirm-preorder-response.d.ts +1 -1
  19. package/dist/types/src/api-model/models/confirm-transport-response.d.ts +1 -1
  20. package/dist/types/src/api-model/models/create-inbound-shipment-plan-request.d.ts +3 -3
  21. package/dist/types/src/api-model/models/create-inbound-shipment-plan-response.d.ts +1 -1
  22. package/dist/types/src/api-model/models/create-inbound-shipment-plan-result.d.ts +1 -1
  23. package/dist/types/src/api-model/models/dimensions.d.ts +1 -1
  24. package/dist/types/src/api-model/models/estimate-transport-response.d.ts +1 -1
  25. package/dist/types/src/api-model/models/get-bill-of-lading-response.d.ts +1 -1
  26. package/dist/types/src/api-model/models/get-inbound-guidance-result.d.ts +4 -4
  27. package/dist/types/src/api-model/models/get-labels-response.d.ts +1 -1
  28. package/dist/types/src/api-model/models/get-preorder-info-response.d.ts +1 -1
  29. package/dist/types/src/api-model/models/get-prep-instructions-response.d.ts +1 -1
  30. package/dist/types/src/api-model/models/get-prep-instructions-result.d.ts +4 -4
  31. package/dist/types/src/api-model/models/get-shipment-items-response.d.ts +1 -1
  32. package/dist/types/src/api-model/models/get-shipment-items-result.d.ts +1 -1
  33. package/dist/types/src/api-model/models/get-shipments-response.d.ts +1 -1
  34. package/dist/types/src/api-model/models/get-shipments-result.d.ts +1 -1
  35. package/dist/types/src/api-model/models/get-transport-details-response.d.ts +1 -1
  36. package/dist/types/src/api-model/models/get-transport-details-result.d.ts +1 -1
  37. package/dist/types/src/api-model/models/inbound-shipment-header.d.ts +4 -4
  38. package/dist/types/src/api-model/models/inbound-shipment-info.d.ts +5 -5
  39. package/dist/types/src/api-model/models/inbound-shipment-item.d.ts +1 -1
  40. package/dist/types/src/api-model/models/inbound-shipment-plan-item.d.ts +1 -1
  41. package/dist/types/src/api-model/models/inbound-shipment-plan-request-item.d.ts +2 -2
  42. package/dist/types/src/api-model/models/inbound-shipment-plan.d.ts +4 -4
  43. package/dist/types/src/api-model/models/inbound-shipment-request.d.ts +2 -2
  44. package/dist/types/src/api-model/models/inbound-shipment-response.d.ts +1 -1
  45. package/dist/types/src/api-model/models/invalid-asin.d.ts +1 -1
  46. package/dist/types/src/api-model/models/invalid-sku.d.ts +1 -1
  47. package/dist/types/src/api-model/models/non-partnered-small-parcel-data-input.d.ts +1 -1
  48. package/dist/types/src/api-model/models/non-partnered-small-parcel-data-output.d.ts +1 -1
  49. package/dist/types/src/api-model/models/non-partnered-small-parcel-package-output.d.ts +1 -1
  50. package/dist/types/src/api-model/models/pallet.d.ts +2 -2
  51. package/dist/types/src/api-model/models/partnered-estimate.d.ts +1 -1
  52. package/dist/types/src/api-model/models/partnered-ltl-data-input.d.ts +5 -5
  53. package/dist/types/src/api-model/models/partnered-ltl-data-output.d.ts +6 -6
  54. package/dist/types/src/api-model/models/partnered-small-parcel-data-input.d.ts +1 -1
  55. package/dist/types/src/api-model/models/partnered-small-parcel-data-output.d.ts +2 -2
  56. package/dist/types/src/api-model/models/partnered-small-parcel-package-input.d.ts +2 -2
  57. package/dist/types/src/api-model/models/partnered-small-parcel-package-output.d.ts +3 -3
  58. package/dist/types/src/api-model/models/prep-details.d.ts +2 -2
  59. package/dist/types/src/api-model/models/put-transport-details-request.d.ts +2 -2
  60. package/dist/types/src/api-model/models/put-transport-details-response.d.ts +1 -1
  61. package/dist/types/src/api-model/models/skuinbound-guidance.d.ts +2 -2
  62. package/dist/types/src/api-model/models/skuprep-instructions.d.ts +4 -4
  63. package/dist/types/src/api-model/models/transport-content.d.ts +3 -3
  64. package/dist/types/src/api-model/models/transport-detail-input.d.ts +4 -4
  65. package/dist/types/src/api-model/models/transport-detail-output.d.ts +4 -4
  66. package/dist/types/src/api-model/models/transport-header.d.ts +1 -1
  67. package/dist/types/src/api-model/models/transport-result.d.ts +1 -1
  68. package/dist/types/src/api-model/models/void-transport-response.d.ts +1 -1
  69. package/dist/types/src/api-model/models/weight.d.ts +1 -1
  70. package/package.json +4 -4
@@ -16,7 +16,7 @@ import globalAxios from 'axios';
16
16
  // @ts-ignore
17
17
  import { DUMMY_BASE_URL, assertParamExists, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
18
18
  // @ts-ignore
19
- import { BASE_PATH, COLLECTION_FORMATS, BaseAPI } from '../base';
19
+ import { BASE_PATH, COLLECTION_FORMATS, BaseAPI, operationServerMap } from '../base';
20
20
  /**
21
21
  * FbaInboundApi - axios parameter creator
22
22
  * @export
@@ -52,7 +52,7 @@ export const FbaInboundApiAxiosParamCreator = function (configuration) {
52
52
  const localVarQueryParameter = {};
53
53
  if (needByDate !== undefined) {
54
54
  localVarQueryParameter['NeedByDate'] = (needByDate instanceof Date) ?
55
- needByDate.toISOString().substr(0, 10) :
55
+ needByDate.toISOString().substring(0, 10) :
56
56
  needByDate;
57
57
  }
58
58
  if (marketplaceId !== undefined) {
@@ -219,8 +219,8 @@ export const FbaInboundApiAxiosParamCreator = function (configuration) {
219
219
  /**
220
220
  * Returns package/pallet labels for faster and more accurate shipment processing at the Amazon fulfillment center. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
221
221
  * @param {string} shipmentId A shipment identifier originally returned by the createInboundShipmentPlan operation.
222
- * @param {'PackageLabel_Letter_2' | 'PackageLabel_Letter_4' | 'PackageLabel_Letter_6' | 'PackageLabel_Letter_6_CarrierLeft' | 'PackageLabel_A4_2' | 'PackageLabel_A4_4' | 'PackageLabel_Plain_Paper' | 'PackageLabel_Plain_Paper_CarrierBottom' | 'PackageLabel_Thermal' | 'PackageLabel_Thermal_Unified' | 'PackageLabel_Thermal_NonPCP' | 'PackageLabel_Thermal_No_Carrier_Rotation'} pageType The page type to use to print the labels. Submitting a PageType value that is not supported in your marketplace returns an error.
223
- * @param {'BARCODE_2D' | 'UNIQUE' | 'PALLET'} labelType The type of labels requested.
222
+ * @param {GetLabelsPageTypeEnum} pageType The page type to use to print the labels. Submitting a PageType value that is not supported in your marketplace returns an error.
223
+ * @param {GetLabelsLabelTypeEnum} labelType The type of labels requested.
224
224
  * @param {number} [numberOfPackages] The number of packages in the shipment.
225
225
  * @param {Array<string>} [packageLabelsToPrint] A list of identifiers that specify packages for which you want package labels printed. Must match CartonId values previously passed using the FBA Inbound Shipment Carton Information Feed. If not, the operation returns the IncorrectPackageIdentifier error code.
226
226
  * @param {number} [numberOfPallets] The number of pallets in the shipment. This returns four identical labels for each pallet.
@@ -351,7 +351,7 @@ export const FbaInboundApiAxiosParamCreator = function (configuration) {
351
351
  },
352
352
  /**
353
353
  * Returns a list of items in a specified inbound shipment, or a list of items that were updated within a specified time frame. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
354
- * @param {'DATE_RANGE' | 'NEXT_TOKEN'} queryType Indicates whether items are returned using a date range (by providing the LastUpdatedAfter and LastUpdatedBefore parameters), or using NextToken, which continues returning items specified in a previous request.
354
+ * @param {GetShipmentItemsQueryTypeEnum} queryType Indicates whether items are returned using a date range (by providing the LastUpdatedAfter and LastUpdatedBefore parameters), or using NextToken, which continues returning items specified in a previous request.
355
355
  * @param {string} marketplaceId A marketplace identifier. Specifies the marketplace where the product would be stored.
356
356
  * @param {string} [lastUpdatedAfter] A date used for selecting inbound shipment items that were last updated after (or at) a specified time. The selection includes updates made by Amazon and by the seller.
357
357
  * @param {string} [lastUpdatedBefore] A date used for selecting inbound shipment items that were last updated before (or at) a specified time. The selection includes updates made by Amazon and by the seller.
@@ -439,9 +439,9 @@ export const FbaInboundApiAxiosParamCreator = function (configuration) {
439
439
  },
440
440
  /**
441
441
  * Returns a list of inbound shipments based on criteria that you specify. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
442
- * @param {'SHIPMENT' | 'DATE_RANGE' | 'NEXT_TOKEN'} queryType Indicates whether shipments are returned using shipment information (by providing the ShipmentStatusList or ShipmentIdList parameters), using a date range (by providing the LastUpdatedAfter and LastUpdatedBefore parameters), or by using NextToken to continue returning items specified in a previous request.
442
+ * @param {GetShipmentsQueryTypeEnum} queryType Indicates whether shipments are returned using shipment information (by providing the ShipmentStatusList or ShipmentIdList parameters), using a date range (by providing the LastUpdatedAfter and LastUpdatedBefore parameters), or by using NextToken to continue returning items specified in a previous request.
443
443
  * @param {string} marketplaceId A marketplace identifier. Specifies the marketplace where the product would be stored.
444
- * @param {Array<'WORKING' | 'READY_TO_SHIP' | 'SHIPPED' | 'RECEIVING' | 'CANCELLED' | 'DELETED' | 'CLOSED' | 'ERROR' | 'IN_TRANSIT' | 'DELIVERED' | 'CHECKED_IN'>} [shipmentStatusList] A list of ShipmentStatus values. Used to select shipments with a current status that matches the status values that you specify.
444
+ * @param {Array<GetShipmentsShipmentStatusListEnum>} [shipmentStatusList] A list of ShipmentStatus values. Used to select shipments with a current status that matches the status values that you specify.
445
445
  * @param {Array<string>} [shipmentIdList] A list of shipment IDs used to select the shipments that you want. If both ShipmentStatusList and ShipmentIdList are specified, only shipments that match both parameters are returned.
446
446
  * @param {string} [lastUpdatedAfter] A date used for selecting inbound shipments that were last updated after (or at) a specified time. The selection includes updates made by Amazon and by the seller.
447
447
  * @param {string} [lastUpdatedBefore] A date used for selecting inbound shipments that were last updated before (or at) a specified time. The selection includes updates made by Amazon and by the seller.
@@ -644,7 +644,9 @@ export const FbaInboundApiFp = function (configuration) {
644
644
  */
645
645
  async confirmPreorder(shipmentId, needByDate, marketplaceId, options) {
646
646
  const localVarAxiosArgs = await localVarAxiosParamCreator.confirmPreorder(shipmentId, needByDate, marketplaceId, options);
647
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
647
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
648
+ const localVarOperationServerBasePath = operationServerMap['FbaInboundApi.confirmPreorder']?.[localVarOperationServerIndex]?.url;
649
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
648
650
  },
649
651
  /**
650
652
  * Confirms that the seller accepts the Amazon-partnered shipping estimate, agrees to allow Amazon to charge their account for the shipping cost, and requests that the Amazon-partnered carrier ship the inbound shipment. Prior to calling the confirmTransport operation, you should call the getTransportDetails operation to get the Amazon-partnered shipping estimate. Important: After confirming the transportation request, if the seller decides that they do not want the Amazon-partnered carrier to ship the inbound shipment, you can call the voidTransport operation to cancel the transportation request. Note that for a Small Parcel shipment, the seller has 24 hours after confirming a transportation request to void the transportation request. For a Less Than Truckload/Full Truckload (LTL/FTL) shipment, the seller has one hour after confirming a transportation request to void it. After the grace period has expired the seller\'s account will be charged for the shipping cost. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
@@ -655,7 +657,9 @@ export const FbaInboundApiFp = function (configuration) {
655
657
  */
656
658
  async confirmTransport(shipmentId, options) {
657
659
  const localVarAxiosArgs = await localVarAxiosParamCreator.confirmTransport(shipmentId, options);
658
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
660
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
661
+ const localVarOperationServerBasePath = operationServerMap['FbaInboundApi.confirmTransport']?.[localVarOperationServerIndex]?.url;
662
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
659
663
  },
660
664
  /**
661
665
  * Returns a new inbound shipment based on the specified shipmentId that was returned by the createInboundShipmentPlan operation. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
@@ -667,7 +671,9 @@ export const FbaInboundApiFp = function (configuration) {
667
671
  */
668
672
  async createInboundShipment(shipmentId, body, options) {
669
673
  const localVarAxiosArgs = await localVarAxiosParamCreator.createInboundShipment(shipmentId, body, options);
670
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
674
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
675
+ const localVarOperationServerBasePath = operationServerMap['FbaInboundApi.createInboundShipment']?.[localVarOperationServerIndex]?.url;
676
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
671
677
  },
672
678
  /**
673
679
  * Returns one or more inbound shipment plans, which provide the information you need to create one or more inbound shipments for a set of items that you specify. Multiple inbound shipment plans might be required so that items can be optimally placed in Amazon\'s fulfillment network—for example, positioning inventory closer to the customer. Alternatively, two inbound shipment plans might be created with the same Amazon fulfillment center destination if the two shipment plans require different processing—for example, items that require labels must be shipped separately from stickerless, commingled inventory. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
@@ -678,7 +684,9 @@ export const FbaInboundApiFp = function (configuration) {
678
684
  */
679
685
  async createInboundShipmentPlan(body, options) {
680
686
  const localVarAxiosArgs = await localVarAxiosParamCreator.createInboundShipmentPlan(body, options);
681
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
687
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
688
+ const localVarOperationServerBasePath = operationServerMap['FbaInboundApi.createInboundShipmentPlan']?.[localVarOperationServerIndex]?.url;
689
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
682
690
  },
683
691
  /**
684
692
  * Initiates the process of estimating the shipping cost for an inbound shipment by an Amazon-partnered carrier. Prior to calling the estimateTransport operation, you must call the putTransportDetails operation to provide Amazon with the transportation information for the inbound shipment. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
@@ -689,7 +697,9 @@ export const FbaInboundApiFp = function (configuration) {
689
697
  */
690
698
  async estimateTransport(shipmentId, options) {
691
699
  const localVarAxiosArgs = await localVarAxiosParamCreator.estimateTransport(shipmentId, options);
692
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
700
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
701
+ const localVarOperationServerBasePath = operationServerMap['FbaInboundApi.estimateTransport']?.[localVarOperationServerIndex]?.url;
702
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
693
703
  },
694
704
  /**
695
705
  * Returns a bill of lading for a Less Than Truckload/Full Truckload (LTL/FTL) shipment. The getBillOfLading operation returns PDF document data for printing a bill of lading for an Amazon-partnered Less Than Truckload/Full Truckload (LTL/FTL) inbound shipment. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
@@ -699,13 +709,15 @@ export const FbaInboundApiFp = function (configuration) {
699
709
  */
700
710
  async getBillOfLading(shipmentId, options) {
701
711
  const localVarAxiosArgs = await localVarAxiosParamCreator.getBillOfLading(shipmentId, options);
702
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
712
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
713
+ const localVarOperationServerBasePath = operationServerMap['FbaInboundApi.getBillOfLading']?.[localVarOperationServerIndex]?.url;
714
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
703
715
  },
704
716
  /**
705
717
  * Returns package/pallet labels for faster and more accurate shipment processing at the Amazon fulfillment center. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
706
718
  * @param {string} shipmentId A shipment identifier originally returned by the createInboundShipmentPlan operation.
707
- * @param {'PackageLabel_Letter_2' | 'PackageLabel_Letter_4' | 'PackageLabel_Letter_6' | 'PackageLabel_Letter_6_CarrierLeft' | 'PackageLabel_A4_2' | 'PackageLabel_A4_4' | 'PackageLabel_Plain_Paper' | 'PackageLabel_Plain_Paper_CarrierBottom' | 'PackageLabel_Thermal' | 'PackageLabel_Thermal_Unified' | 'PackageLabel_Thermal_NonPCP' | 'PackageLabel_Thermal_No_Carrier_Rotation'} pageType The page type to use to print the labels. Submitting a PageType value that is not supported in your marketplace returns an error.
708
- * @param {'BARCODE_2D' | 'UNIQUE' | 'PALLET'} labelType The type of labels requested.
719
+ * @param {GetLabelsPageTypeEnum} pageType The page type to use to print the labels. Submitting a PageType value that is not supported in your marketplace returns an error.
720
+ * @param {GetLabelsLabelTypeEnum} labelType The type of labels requested.
709
721
  * @param {number} [numberOfPackages] The number of packages in the shipment.
710
722
  * @param {Array<string>} [packageLabelsToPrint] A list of identifiers that specify packages for which you want package labels printed. Must match CartonId values previously passed using the FBA Inbound Shipment Carton Information Feed. If not, the operation returns the IncorrectPackageIdentifier error code.
711
723
  * @param {number} [numberOfPallets] The number of pallets in the shipment. This returns four identical labels for each pallet.
@@ -716,7 +728,9 @@ export const FbaInboundApiFp = function (configuration) {
716
728
  */
717
729
  async getLabels(shipmentId, pageType, labelType, numberOfPackages, packageLabelsToPrint, numberOfPallets, pageSize, pageStartIndex, options) {
718
730
  const localVarAxiosArgs = await localVarAxiosParamCreator.getLabels(shipmentId, pageType, labelType, numberOfPackages, packageLabelsToPrint, numberOfPallets, pageSize, pageStartIndex, options);
719
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
731
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
732
+ const localVarOperationServerBasePath = operationServerMap['FbaInboundApi.getLabels']?.[localVarOperationServerIndex]?.url;
733
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
720
734
  },
721
735
  /**
722
736
  * Returns pre-order information, including dates, that a seller needs before confirming a shipment for pre-order. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
@@ -728,7 +742,9 @@ export const FbaInboundApiFp = function (configuration) {
728
742
  */
729
743
  async getPreorderInfo(shipmentId, marketplaceId, options) {
730
744
  const localVarAxiosArgs = await localVarAxiosParamCreator.getPreorderInfo(shipmentId, marketplaceId, options);
731
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
745
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
746
+ const localVarOperationServerBasePath = operationServerMap['FbaInboundApi.getPreorderInfo']?.[localVarOperationServerIndex]?.url;
747
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
732
748
  },
733
749
  /**
734
750
  * Returns labeling requirements and item preparation instructions to help prepare items for shipment to Amazon\'s fulfillment network. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
@@ -740,11 +756,13 @@ export const FbaInboundApiFp = function (configuration) {
740
756
  */
741
757
  async getPrepInstructions(shipToCountryCode, sellerSKUList, aSINList, options) {
742
758
  const localVarAxiosArgs = await localVarAxiosParamCreator.getPrepInstructions(shipToCountryCode, sellerSKUList, aSINList, options);
743
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
759
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
760
+ const localVarOperationServerBasePath = operationServerMap['FbaInboundApi.getPrepInstructions']?.[localVarOperationServerIndex]?.url;
761
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
744
762
  },
745
763
  /**
746
764
  * Returns a list of items in a specified inbound shipment, or a list of items that were updated within a specified time frame. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
747
- * @param {'DATE_RANGE' | 'NEXT_TOKEN'} queryType Indicates whether items are returned using a date range (by providing the LastUpdatedAfter and LastUpdatedBefore parameters), or using NextToken, which continues returning items specified in a previous request.
765
+ * @param {GetShipmentItemsQueryTypeEnum} queryType Indicates whether items are returned using a date range (by providing the LastUpdatedAfter and LastUpdatedBefore parameters), or using NextToken, which continues returning items specified in a previous request.
748
766
  * @param {string} marketplaceId A marketplace identifier. Specifies the marketplace where the product would be stored.
749
767
  * @param {string} [lastUpdatedAfter] A date used for selecting inbound shipment items that were last updated after (or at) a specified time. The selection includes updates made by Amazon and by the seller.
750
768
  * @param {string} [lastUpdatedBefore] A date used for selecting inbound shipment items that were last updated before (or at) a specified time. The selection includes updates made by Amazon and by the seller.
@@ -755,7 +773,9 @@ export const FbaInboundApiFp = function (configuration) {
755
773
  */
756
774
  async getShipmentItems(queryType, marketplaceId, lastUpdatedAfter, lastUpdatedBefore, nextToken, options) {
757
775
  const localVarAxiosArgs = await localVarAxiosParamCreator.getShipmentItems(queryType, marketplaceId, lastUpdatedAfter, lastUpdatedBefore, nextToken, options);
758
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
776
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
777
+ const localVarOperationServerBasePath = operationServerMap['FbaInboundApi.getShipmentItems']?.[localVarOperationServerIndex]?.url;
778
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
759
779
  },
760
780
  /**
761
781
  * Returns a list of items in a specified inbound shipment. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
@@ -767,13 +787,15 @@ export const FbaInboundApiFp = function (configuration) {
767
787
  */
768
788
  async getShipmentItemsByShipmentId(shipmentId, marketplaceId, options) {
769
789
  const localVarAxiosArgs = await localVarAxiosParamCreator.getShipmentItemsByShipmentId(shipmentId, marketplaceId, options);
770
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
790
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
791
+ const localVarOperationServerBasePath = operationServerMap['FbaInboundApi.getShipmentItemsByShipmentId']?.[localVarOperationServerIndex]?.url;
792
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
771
793
  },
772
794
  /**
773
795
  * Returns a list of inbound shipments based on criteria that you specify. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
774
- * @param {'SHIPMENT' | 'DATE_RANGE' | 'NEXT_TOKEN'} queryType Indicates whether shipments are returned using shipment information (by providing the ShipmentStatusList or ShipmentIdList parameters), using a date range (by providing the LastUpdatedAfter and LastUpdatedBefore parameters), or by using NextToken to continue returning items specified in a previous request.
796
+ * @param {GetShipmentsQueryTypeEnum} queryType Indicates whether shipments are returned using shipment information (by providing the ShipmentStatusList or ShipmentIdList parameters), using a date range (by providing the LastUpdatedAfter and LastUpdatedBefore parameters), or by using NextToken to continue returning items specified in a previous request.
775
797
  * @param {string} marketplaceId A marketplace identifier. Specifies the marketplace where the product would be stored.
776
- * @param {Array<'WORKING' | 'READY_TO_SHIP' | 'SHIPPED' | 'RECEIVING' | 'CANCELLED' | 'DELETED' | 'CLOSED' | 'ERROR' | 'IN_TRANSIT' | 'DELIVERED' | 'CHECKED_IN'>} [shipmentStatusList] A list of ShipmentStatus values. Used to select shipments with a current status that matches the status values that you specify.
798
+ * @param {Array<GetShipmentsShipmentStatusListEnum>} [shipmentStatusList] A list of ShipmentStatus values. Used to select shipments with a current status that matches the status values that you specify.
777
799
  * @param {Array<string>} [shipmentIdList] A list of shipment IDs used to select the shipments that you want. If both ShipmentStatusList and ShipmentIdList are specified, only shipments that match both parameters are returned.
778
800
  * @param {string} [lastUpdatedAfter] A date used for selecting inbound shipments that were last updated after (or at) a specified time. The selection includes updates made by Amazon and by the seller.
779
801
  * @param {string} [lastUpdatedBefore] A date used for selecting inbound shipments that were last updated before (or at) a specified time. The selection includes updates made by Amazon and by the seller.
@@ -784,7 +806,9 @@ export const FbaInboundApiFp = function (configuration) {
784
806
  */
785
807
  async getShipments(queryType, marketplaceId, shipmentStatusList, shipmentIdList, lastUpdatedAfter, lastUpdatedBefore, nextToken, options) {
786
808
  const localVarAxiosArgs = await localVarAxiosParamCreator.getShipments(queryType, marketplaceId, shipmentStatusList, shipmentIdList, lastUpdatedAfter, lastUpdatedBefore, nextToken, options);
787
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
809
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
810
+ const localVarOperationServerBasePath = operationServerMap['FbaInboundApi.getShipments']?.[localVarOperationServerIndex]?.url;
811
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
788
812
  },
789
813
  /**
790
814
  * Returns current transportation information about an inbound shipment. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
@@ -795,7 +819,9 @@ export const FbaInboundApiFp = function (configuration) {
795
819
  */
796
820
  async getTransportDetails(shipmentId, options) {
797
821
  const localVarAxiosArgs = await localVarAxiosParamCreator.getTransportDetails(shipmentId, options);
798
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
822
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
823
+ const localVarOperationServerBasePath = operationServerMap['FbaInboundApi.getTransportDetails']?.[localVarOperationServerIndex]?.url;
824
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
799
825
  },
800
826
  /**
801
827
  * Sends transportation information to Amazon about an inbound shipment. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
@@ -807,7 +833,9 @@ export const FbaInboundApiFp = function (configuration) {
807
833
  */
808
834
  async putTransportDetails(shipmentId, body, options) {
809
835
  const localVarAxiosArgs = await localVarAxiosParamCreator.putTransportDetails(shipmentId, body, options);
810
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
836
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
837
+ const localVarOperationServerBasePath = operationServerMap['FbaInboundApi.putTransportDetails']?.[localVarOperationServerIndex]?.url;
838
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
811
839
  },
812
840
  /**
813
841
  * Updates or removes items from the inbound shipment identified by the specified shipment identifier. Adding new items is not supported. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
@@ -819,7 +847,9 @@ export const FbaInboundApiFp = function (configuration) {
819
847
  */
820
848
  async updateInboundShipment(shipmentId, body, options) {
821
849
  const localVarAxiosArgs = await localVarAxiosParamCreator.updateInboundShipment(shipmentId, body, options);
822
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
850
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
851
+ const localVarOperationServerBasePath = operationServerMap['FbaInboundApi.updateInboundShipment']?.[localVarOperationServerIndex]?.url;
852
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
823
853
  },
824
854
  /**
825
855
  * Cancels a previously-confirmed request to ship an inbound shipment using an Amazon-partnered carrier. To be successful, you must call this operation before the VoidDeadline date that is returned by the getTransportDetails operation. Important: The VoidDeadline date is 24 hours after you confirm a Small Parcel shipment transportation request or one hour after you confirm a Less Than Truckload/Full Truckload (LTL/FTL) shipment transportation request. After the void deadline passes, your account will be charged for the shipping cost. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
@@ -830,7 +860,9 @@ export const FbaInboundApiFp = function (configuration) {
830
860
  */
831
861
  async voidTransport(shipmentId, options) {
832
862
  const localVarAxiosArgs = await localVarAxiosParamCreator.voidTransport(shipmentId, options);
833
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
863
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
864
+ const localVarOperationServerBasePath = operationServerMap['FbaInboundApi.voidTransport']?.[localVarOperationServerIndex]?.url;
865
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
834
866
  },
835
867
  };
836
868
  };
@@ -1181,3 +1213,59 @@ export class FbaInboundApi extends BaseAPI {
1181
1213
  return FbaInboundApiFp(this.configuration).voidTransport(requestParameters.shipmentId, options).then((request) => request(this.axios, this.basePath));
1182
1214
  }
1183
1215
  }
1216
+ /**
1217
+ * @export
1218
+ */
1219
+ export const GetLabelsPageTypeEnum = {
1220
+ Letter2: 'PackageLabel_Letter_2',
1221
+ Letter4: 'PackageLabel_Letter_4',
1222
+ Letter6: 'PackageLabel_Letter_6',
1223
+ Letter6CarrierLeft: 'PackageLabel_Letter_6_CarrierLeft',
1224
+ A42: 'PackageLabel_A4_2',
1225
+ A44: 'PackageLabel_A4_4',
1226
+ PlainPaper: 'PackageLabel_Plain_Paper',
1227
+ PlainPaperCarrierBottom: 'PackageLabel_Plain_Paper_CarrierBottom',
1228
+ Thermal: 'PackageLabel_Thermal',
1229
+ ThermalUnified: 'PackageLabel_Thermal_Unified',
1230
+ ThermalNonPcp: 'PackageLabel_Thermal_NonPCP',
1231
+ ThermalNoCarrierRotation: 'PackageLabel_Thermal_No_Carrier_Rotation'
1232
+ };
1233
+ /**
1234
+ * @export
1235
+ */
1236
+ export const GetLabelsLabelTypeEnum = {
1237
+ Barcode2D: 'BARCODE_2D',
1238
+ Unique: 'UNIQUE',
1239
+ Pallet: 'PALLET'
1240
+ };
1241
+ /**
1242
+ * @export
1243
+ */
1244
+ export const GetShipmentItemsQueryTypeEnum = {
1245
+ DateRange: 'DATE_RANGE',
1246
+ NextToken: 'NEXT_TOKEN'
1247
+ };
1248
+ /**
1249
+ * @export
1250
+ */
1251
+ export const GetShipmentsQueryTypeEnum = {
1252
+ Shipment: 'SHIPMENT',
1253
+ DateRange: 'DATE_RANGE',
1254
+ NextToken: 'NEXT_TOKEN'
1255
+ };
1256
+ /**
1257
+ * @export
1258
+ */
1259
+ export const GetShipmentsShipmentStatusListEnum = {
1260
+ Working: 'WORKING',
1261
+ ReadyToShip: 'READY_TO_SHIP',
1262
+ Shipped: 'SHIPPED',
1263
+ Receiving: 'RECEIVING',
1264
+ Cancelled: 'CANCELLED',
1265
+ Deleted: 'DELETED',
1266
+ Closed: 'CLOSED',
1267
+ Error: 'ERROR',
1268
+ InTransit: 'IN_TRANSIT',
1269
+ Delivered: 'DELIVERED',
1270
+ CheckedIn: 'CHECKED_IN'
1271
+ };
@@ -37,7 +37,7 @@ export class BaseAPI {
37
37
  this.axios = axios;
38
38
  if (configuration) {
39
39
  this.configuration = configuration;
40
- this.basePath = configuration.basePath || this.basePath;
40
+ this.basePath = configuration.basePath ?? basePath;
41
41
  }
42
42
  }
43
43
  }
@@ -56,3 +56,8 @@ export class RequiredError extends Error {
56
56
  this.name = "RequiredError";
57
57
  }
58
58
  }
59
+ /**
60
+ *
61
+ * @export
62
+ */
63
+ export const operationServerMap = {};
@@ -127,7 +127,7 @@ export const toPathString = function (url) {
127
127
  */
128
128
  export const createRequestFunction = function (axiosArgs, globalAxios, BASE_PATH, configuration) {
129
129
  return (axios = globalAxios, basePath = BASE_PATH) => {
130
- const axiosRequestArgs = { ...axiosArgs.options, url: (configuration?.basePath || basePath) + axiosArgs.url };
130
+ const axiosRequestArgs = { ...axiosArgs.options, url: (axios.defaults.baseURL ? '' : configuration?.basePath ?? basePath) + axiosArgs.url };
131
131
  return axios.request(axiosRequestArgs);
132
132
  };
133
133
  };
@@ -46,6 +46,13 @@ export class Configuration {
46
46
  * @memberof Configuration
47
47
  */
48
48
  basePath;
49
+ /**
50
+ * override server index
51
+ *
52
+ * @type {number}
53
+ * @memberof Configuration
54
+ */
55
+ serverIndex;
49
56
  /**
50
57
  * base options for axios calls
51
58
  *
@@ -67,6 +74,7 @@ export class Configuration {
67
74
  this.password = param.password;
68
75
  this.accessToken = param.accessToken;
69
76
  this.basePath = param.basePath;
77
+ this.serverIndex = param.serverIndex;
70
78
  this.baseOptions = param.baseOptions;
71
79
  this.formDataCtor = param.formDataCtor;
72
80
  }