@sp-api-sdk/fulfillment-inbound-api-2024-03-20 1.0.1 → 1.1.0

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 -36
  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 -36
  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 +192 -167
  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/appointment-slot.d.ts +1 -1
  13. package/dist/types/src/api-model/models/box-content.d.ts +2 -2
  14. package/dist/types/src/api-model/models/box-input.d.ts +4 -4
  15. package/dist/types/src/api-model/models/box.d.ts +4 -4
  16. package/dist/types/src/api-model/models/cancel-self-ship-appointment-request.d.ts +1 -1
  17. package/dist/types/src/api-model/models/compliance-detail.d.ts +1 -1
  18. package/dist/types/src/api-model/models/confirm-transportation-options-request.d.ts +1 -1
  19. package/dist/types/src/api-model/models/create-inbound-plan-request.d.ts +3 -3
  20. package/dist/types/src/api-model/models/custom-placement-input.d.ts +1 -1
  21. package/dist/types/src/api-model/models/dates.d.ts +1 -1
  22. package/dist/types/src/api-model/models/dimensions.d.ts +1 -1
  23. package/dist/types/src/api-model/models/generate-placement-options-request.d.ts +1 -1
  24. package/dist/types/src/api-model/models/generate-transportation-options-request.d.ts +1 -1
  25. package/dist/types/src/api-model/models/get-delivery-challan-document-response.d.ts +1 -1
  26. package/dist/types/src/api-model/models/get-self-ship-appointment-slots-response.d.ts +2 -2
  27. package/dist/types/src/api-model/models/inbound-operation-status.d.ts +2 -2
  28. package/dist/types/src/api-model/models/inbound-plan-summary.d.ts +2 -2
  29. package/dist/types/src/api-model/models/inbound-plan.d.ts +5 -5
  30. package/dist/types/src/api-model/models/incentive.d.ts +1 -1
  31. package/dist/types/src/api-model/models/item-input.d.ts +2 -2
  32. package/dist/types/src/api-model/models/item.d.ts +1 -1
  33. package/dist/types/src/api-model/models/list-inbound-plan-boxes-response.d.ts +2 -2
  34. package/dist/types/src/api-model/models/list-inbound-plan-items-response.d.ts +2 -2
  35. package/dist/types/src/api-model/models/list-inbound-plan-pallets-response.d.ts +2 -2
  36. package/dist/types/src/api-model/models/list-inbound-plans-response.d.ts +2 -2
  37. package/dist/types/src/api-model/models/list-item-compliance-details-response.d.ts +1 -1
  38. package/dist/types/src/api-model/models/list-packing-group-items-response.d.ts +2 -2
  39. package/dist/types/src/api-model/models/list-packing-options-response.d.ts +2 -2
  40. package/dist/types/src/api-model/models/list-placement-options-response.d.ts +2 -2
  41. package/dist/types/src/api-model/models/list-transportation-options-response.d.ts +2 -2
  42. package/dist/types/src/api-model/models/package-grouping-input.d.ts +1 -1
  43. package/dist/types/src/api-model/models/packing-option.d.ts +2 -2
  44. package/dist/types/src/api-model/models/pallet-information.d.ts +2 -2
  45. package/dist/types/src/api-model/models/pallet-input.d.ts +3 -3
  46. package/dist/types/src/api-model/models/pallet.d.ts +3 -3
  47. package/dist/types/src/api-model/models/placement-option.d.ts +1 -1
  48. package/dist/types/src/api-model/models/prep-instruction.d.ts +1 -1
  49. package/dist/types/src/api-model/models/quote.d.ts +1 -1
  50. package/dist/types/src/api-model/models/schedule-self-ship-appointment-request.d.ts +1 -1
  51. package/dist/types/src/api-model/models/schedule-self-ship-appointment-response.d.ts +1 -1
  52. package/dist/types/src/api-model/models/self-ship-appointment-details.d.ts +1 -1
  53. package/dist/types/src/api-model/models/self-ship-appointment-slots-availability.d.ts +1 -1
  54. package/dist/types/src/api-model/models/set-packing-information-request.d.ts +1 -1
  55. package/dist/types/src/api-model/models/shipment-destination.d.ts +1 -1
  56. package/dist/types/src/api-model/models/shipment-source.d.ts +1 -1
  57. package/dist/types/src/api-model/models/shipment-transportation-configuration.d.ts +3 -3
  58. package/dist/types/src/api-model/models/shipment.d.ts +7 -7
  59. package/dist/types/src/api-model/models/spd-tracking-detail-input.d.ts +1 -1
  60. package/dist/types/src/api-model/models/spd-tracking-detail.d.ts +1 -1
  61. package/dist/types/src/api-model/models/tax-details.d.ts +2 -2
  62. package/dist/types/src/api-model/models/tracking-details-input.d.ts +2 -2
  63. package/dist/types/src/api-model/models/tracking-details.d.ts +2 -2
  64. package/dist/types/src/api-model/models/transportation-option.d.ts +3 -3
  65. package/dist/types/src/api-model/models/transportation-selection.d.ts +2 -2
  66. package/dist/types/src/api-model/models/update-item-compliance-details-request.d.ts +1 -1
  67. package/dist/types/src/api-model/models/update-shipment-delivery-window-request.d.ts +1 -1
  68. package/dist/types/src/api-model/models/update-shipment-tracking-details-request.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 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
16
16
  return (mod && mod.__esModule) ? mod : { "default": mod };
17
17
  };
18
18
  Object.defineProperty(exports, "__esModule", { value: true });
19
- exports.FbaInboundApi = exports.FbaInboundApiFactory = exports.FbaInboundApiFp = exports.FbaInboundApiAxiosParamCreator = void 0;
19
+ exports.ListInboundPlansSortOrderEnum = exports.ListInboundPlansSortByEnum = exports.ListInboundPlansStatusEnum = exports.FbaInboundApi = exports.FbaInboundApiFactory = exports.FbaInboundApiFp = exports.FbaInboundApiAxiosParamCreator = void 0;
20
20
  const axios_1 = __importDefault(require("axios"));
21
21
  // Some imports not used depending on template conditions
22
22
  // @ts-ignore
@@ -627,9 +627,9 @@ const FbaInboundApiAxiosParamCreator = function (configuration) {
627
627
  * Provides a list of inbound plans with minimal information. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | 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, refer to [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).
628
628
  * @param {number} [pageSize] The number of inbound plans to return in the response matching the given query.
629
629
  * @param {string} [paginationToken] A token to fetch a certain page when there are multiple pages worth of results. The value of this token is fetched from the `pagination` returned in the API response. In the absence of the token value from the query parameter the API returns the first page of the result.
630
- * @param {'ACTIVE' | 'VOIDED' | 'SHIPPED'} [status] The status of an inbound plan.
631
- * @param {'LAST_UPDATED_TIME' | 'CREATION_TIME'} [sortBy] Sort by field.
632
- * @param {'ASC' | 'DESC'} [sortOrder] The sort order.
630
+ * @param {ListInboundPlansStatusEnum} [status] The status of an inbound plan.
631
+ * @param {ListInboundPlansSortByEnum} [sortBy] Sort by field.
632
+ * @param {ListInboundPlansSortOrderEnum} [sortOrder] The sort order.
633
633
  * @param {*} [options] Override http request option.
634
634
  * @throws {RequiredError}
635
635
  */
@@ -1064,7 +1064,9 @@ const FbaInboundApiFp = function (configuration) {
1064
1064
  */
1065
1065
  async cancelInboundPlan(inboundPlanId, options) {
1066
1066
  const localVarAxiosArgs = await localVarAxiosParamCreator.cancelInboundPlan(inboundPlanId, options);
1067
- return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
1067
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1068
+ const localVarOperationServerBasePath = base_1.operationServerMap['FbaInboundApi.cancelInboundPlan']?.[localVarOperationServerIndex]?.url;
1069
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1068
1070
  },
1069
1071
  /**
1070
1072
  * Cancels a self-ship appointment slot against a shipment. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | 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, refer to [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).
@@ -1077,7 +1079,9 @@ const FbaInboundApiFp = function (configuration) {
1077
1079
  */
1078
1080
  async cancelSelfShipAppointment(inboundPlanId, shipmentId, slotId, body, options) {
1079
1081
  const localVarAxiosArgs = await localVarAxiosParamCreator.cancelSelfShipAppointment(inboundPlanId, shipmentId, slotId, body, options);
1080
- return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
1082
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1083
+ const localVarOperationServerBasePath = base_1.operationServerMap['FbaInboundApi.cancelSelfShipAppointment']?.[localVarOperationServerIndex]?.url;
1084
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1081
1085
  },
1082
1086
  /**
1083
1087
  * Confirms the packing option for an inbound plan. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.05 | 1 | 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, refer to [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).
@@ -1088,7 +1092,9 @@ const FbaInboundApiFp = function (configuration) {
1088
1092
  */
1089
1093
  async confirmPackingOption(inboundPlanId, packingOptionId, options) {
1090
1094
  const localVarAxiosArgs = await localVarAxiosParamCreator.confirmPackingOption(inboundPlanId, packingOptionId, options);
1091
- return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
1095
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1096
+ const localVarOperationServerBasePath = base_1.operationServerMap['FbaInboundApi.confirmPackingOption']?.[localVarOperationServerIndex]?.url;
1097
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1092
1098
  },
1093
1099
  /**
1094
1100
  * Confirms the placement option for an inbound plan. Once confirmed, it cannot be changed for the Inbound Plan. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.05 | 1 | 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, refer to [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).
@@ -1099,7 +1105,9 @@ const FbaInboundApiFp = function (configuration) {
1099
1105
  */
1100
1106
  async confirmPlacementOption(inboundPlanId, placementOptionId, options) {
1101
1107
  const localVarAxiosArgs = await localVarAxiosParamCreator.confirmPlacementOption(inboundPlanId, placementOptionId, options);
1102
- return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
1108
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1109
+ const localVarOperationServerBasePath = base_1.operationServerMap['FbaInboundApi.confirmPlacementOption']?.[localVarOperationServerIndex]?.url;
1110
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1103
1111
  },
1104
1112
  /**
1105
1113
  * Confirms all the transportation options for an inbound plan. A placement option must be confirmed prior to use of this API. Once confirmed, new transportation options can not be generated or confirmed for the Inbound Plan. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.05 | 1 | 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, refer to [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).
@@ -1110,7 +1118,9 @@ const FbaInboundApiFp = function (configuration) {
1110
1118
  */
1111
1119
  async confirmTransportationOptions(inboundPlanId, body, options) {
1112
1120
  const localVarAxiosArgs = await localVarAxiosParamCreator.confirmTransportationOptions(inboundPlanId, body, options);
1113
- return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
1121
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1122
+ const localVarOperationServerBasePath = base_1.operationServerMap['FbaInboundApi.confirmTransportationOptions']?.[localVarOperationServerIndex]?.url;
1123
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1114
1124
  },
1115
1125
  /**
1116
1126
  * Creates an inbound plan. An inbound plan contains all the necessary information to send shipments into Amazon\'s fufillment network. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.05 | 1 | 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, refer to [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).
@@ -1120,7 +1130,9 @@ const FbaInboundApiFp = function (configuration) {
1120
1130
  */
1121
1131
  async createInboundPlan(body, options) {
1122
1132
  const localVarAxiosArgs = await localVarAxiosParamCreator.createInboundPlan(body, options);
1123
- return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
1133
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1134
+ const localVarOperationServerBasePath = base_1.operationServerMap['FbaInboundApi.createInboundPlan']?.[localVarOperationServerIndex]?.url;
1135
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1124
1136
  },
1125
1137
  /**
1126
1138
  * Generates available packing options for the inbound plan. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.05 | 1 | 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, refer to [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).
@@ -1130,7 +1142,9 @@ const FbaInboundApiFp = function (configuration) {
1130
1142
  */
1131
1143
  async generatePackingOptions(inboundPlanId, options) {
1132
1144
  const localVarAxiosArgs = await localVarAxiosParamCreator.generatePackingOptions(inboundPlanId, options);
1133
- return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
1145
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1146
+ const localVarOperationServerBasePath = base_1.operationServerMap['FbaInboundApi.generatePackingOptions']?.[localVarOperationServerIndex]?.url;
1147
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1134
1148
  },
1135
1149
  /**
1136
1150
  * Generates placement options for the inbound plan. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.05 | 1 | 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, refer to [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).
@@ -1141,7 +1155,9 @@ const FbaInboundApiFp = function (configuration) {
1141
1155
  */
1142
1156
  async generatePlacementOptions(inboundPlanId, body, options) {
1143
1157
  const localVarAxiosArgs = await localVarAxiosParamCreator.generatePlacementOptions(inboundPlanId, body, options);
1144
- return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
1158
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1159
+ const localVarOperationServerBasePath = base_1.operationServerMap['FbaInboundApi.generatePlacementOptions']?.[localVarOperationServerIndex]?.url;
1160
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1145
1161
  },
1146
1162
  /**
1147
1163
  * Initiates the process of generating the appointment slots list. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | 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, refer to [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).
@@ -1153,7 +1169,9 @@ const FbaInboundApiFp = function (configuration) {
1153
1169
  */
1154
1170
  async generateSelfShipAppointmentSlots(inboundPlanId, shipmentId, body, options) {
1155
1171
  const localVarAxiosArgs = await localVarAxiosParamCreator.generateSelfShipAppointmentSlots(inboundPlanId, shipmentId, body, options);
1156
- return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
1172
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1173
+ const localVarOperationServerBasePath = base_1.operationServerMap['FbaInboundApi.generateSelfShipAppointmentSlots']?.[localVarOperationServerIndex]?.url;
1174
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1157
1175
  },
1158
1176
  /**
1159
1177
  * Generates available transportation options for a given placement option. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.05 | 1 | 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, refer to [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).
@@ -1164,7 +1182,9 @@ const FbaInboundApiFp = function (configuration) {
1164
1182
  */
1165
1183
  async generateTransportationOptions(inboundPlanId, body, options) {
1166
1184
  const localVarAxiosArgs = await localVarAxiosParamCreator.generateTransportationOptions(inboundPlanId, body, options);
1167
- return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
1185
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1186
+ const localVarOperationServerBasePath = base_1.operationServerMap['FbaInboundApi.generateTransportationOptions']?.[localVarOperationServerIndex]?.url;
1187
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1168
1188
  },
1169
1189
  /**
1170
1190
  * Provide delivery challan document for PCP transportation in IN marketplace. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | 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, refer to [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).
@@ -1175,7 +1195,9 @@ const FbaInboundApiFp = function (configuration) {
1175
1195
  */
1176
1196
  async getDeliveryChallanDocument(inboundPlanId, shipmentId, options) {
1177
1197
  const localVarAxiosArgs = await localVarAxiosParamCreator.getDeliveryChallanDocument(inboundPlanId, shipmentId, options);
1178
- return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
1198
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1199
+ const localVarOperationServerBasePath = base_1.operationServerMap['FbaInboundApi.getDeliveryChallanDocument']?.[localVarOperationServerIndex]?.url;
1200
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1179
1201
  },
1180
1202
  /**
1181
1203
  * Gets the status of the processing of an asynchronous API call. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | 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, refer to [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).
@@ -1185,7 +1207,9 @@ const FbaInboundApiFp = function (configuration) {
1185
1207
  */
1186
1208
  async getInboundOperationStatus(operationId, options) {
1187
1209
  const localVarAxiosArgs = await localVarAxiosParamCreator.getInboundOperationStatus(operationId, options);
1188
- return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
1210
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1211
+ const localVarOperationServerBasePath = base_1.operationServerMap['FbaInboundApi.getInboundOperationStatus']?.[localVarOperationServerIndex]?.url;
1212
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1189
1213
  },
1190
1214
  /**
1191
1215
  * Fetches the top level information about an inbound plan. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | 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, refer to [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).
@@ -1195,7 +1219,9 @@ const FbaInboundApiFp = function (configuration) {
1195
1219
  */
1196
1220
  async getInboundPlan(inboundPlanId, options) {
1197
1221
  const localVarAxiosArgs = await localVarAxiosParamCreator.getInboundPlan(inboundPlanId, options);
1198
- return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
1222
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1223
+ const localVarOperationServerBasePath = base_1.operationServerMap['FbaInboundApi.getInboundPlan']?.[localVarOperationServerIndex]?.url;
1224
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1199
1225
  },
1200
1226
  /**
1201
1227
  * Retrieves a list of available self-ship appointment slots used to drop off a shipment at a warehouse. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | 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, refer to [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).
@@ -1208,7 +1234,9 @@ const FbaInboundApiFp = function (configuration) {
1208
1234
  */
1209
1235
  async getSelfShipAppointmentSlots(inboundPlanId, shipmentId, pageSize, paginationToken, options) {
1210
1236
  const localVarAxiosArgs = await localVarAxiosParamCreator.getSelfShipAppointmentSlots(inboundPlanId, shipmentId, pageSize, paginationToken, options);
1211
- return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
1237
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1238
+ const localVarOperationServerBasePath = base_1.operationServerMap['FbaInboundApi.getSelfShipAppointmentSlots']?.[localVarOperationServerIndex]?.url;
1239
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1212
1240
  },
1213
1241
  /**
1214
1242
  * Provides the full details for a specific shipment within an inbound plan. The `transportationOptionId` inside `acceptedTransportationSelection` can be used to retrieve the transportation details for the shipment. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | 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, refer to [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).
@@ -1219,7 +1247,9 @@ const FbaInboundApiFp = function (configuration) {
1219
1247
  */
1220
1248
  async getShipment(inboundPlanId, shipmentId, options) {
1221
1249
  const localVarAxiosArgs = await localVarAxiosParamCreator.getShipment(inboundPlanId, shipmentId, options);
1222
- return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
1250
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1251
+ const localVarOperationServerBasePath = base_1.operationServerMap['FbaInboundApi.getShipment']?.[localVarOperationServerIndex]?.url;
1252
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1223
1253
  },
1224
1254
  /**
1225
1255
  * Provides a paginated list of box packages in an inbound plan. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | 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, refer to [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).
@@ -1231,7 +1261,9 @@ const FbaInboundApiFp = function (configuration) {
1231
1261
  */
1232
1262
  async listInboundPlanBoxes(inboundPlanId, pageSize, paginationToken, options) {
1233
1263
  const localVarAxiosArgs = await localVarAxiosParamCreator.listInboundPlanBoxes(inboundPlanId, pageSize, paginationToken, options);
1234
- return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
1264
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1265
+ const localVarOperationServerBasePath = base_1.operationServerMap['FbaInboundApi.listInboundPlanBoxes']?.[localVarOperationServerIndex]?.url;
1266
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1235
1267
  },
1236
1268
  /**
1237
1269
  * Provides a paginated list of item packages in an inbound plan. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | 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, refer to [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).
@@ -1243,7 +1275,9 @@ const FbaInboundApiFp = function (configuration) {
1243
1275
  */
1244
1276
  async listInboundPlanItems(inboundPlanId, pageSize, paginationToken, options) {
1245
1277
  const localVarAxiosArgs = await localVarAxiosParamCreator.listInboundPlanItems(inboundPlanId, pageSize, paginationToken, options);
1246
- return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
1278
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1279
+ const localVarOperationServerBasePath = base_1.operationServerMap['FbaInboundApi.listInboundPlanItems']?.[localVarOperationServerIndex]?.url;
1280
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1247
1281
  },
1248
1282
  /**
1249
1283
  * Provides a paginated list of pallet packages in an inbound plan. An inbound plan will have pallets when the related details are provided after generating Less-Than-Truckload (LTL) carrier shipments. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | 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, refer to [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).
@@ -1255,21 +1289,25 @@ const FbaInboundApiFp = function (configuration) {
1255
1289
  */
1256
1290
  async listInboundPlanPallets(inboundPlanId, pageSize, paginationToken, options) {
1257
1291
  const localVarAxiosArgs = await localVarAxiosParamCreator.listInboundPlanPallets(inboundPlanId, pageSize, paginationToken, options);
1258
- return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
1292
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1293
+ const localVarOperationServerBasePath = base_1.operationServerMap['FbaInboundApi.listInboundPlanPallets']?.[localVarOperationServerIndex]?.url;
1294
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1259
1295
  },
1260
1296
  /**
1261
1297
  * Provides a list of inbound plans with minimal information. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | 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, refer to [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).
1262
1298
  * @param {number} [pageSize] The number of inbound plans to return in the response matching the given query.
1263
1299
  * @param {string} [paginationToken] A token to fetch a certain page when there are multiple pages worth of results. The value of this token is fetched from the `pagination` returned in the API response. In the absence of the token value from the query parameter the API returns the first page of the result.
1264
- * @param {'ACTIVE' | 'VOIDED' | 'SHIPPED'} [status] The status of an inbound plan.
1265
- * @param {'LAST_UPDATED_TIME' | 'CREATION_TIME'} [sortBy] Sort by field.
1266
- * @param {'ASC' | 'DESC'} [sortOrder] The sort order.
1300
+ * @param {ListInboundPlansStatusEnum} [status] The status of an inbound plan.
1301
+ * @param {ListInboundPlansSortByEnum} [sortBy] Sort by field.
1302
+ * @param {ListInboundPlansSortOrderEnum} [sortOrder] The sort order.
1267
1303
  * @param {*} [options] Override http request option.
1268
1304
  * @throws {RequiredError}
1269
1305
  */
1270
1306
  async listInboundPlans(pageSize, paginationToken, status, sortBy, sortOrder, options) {
1271
1307
  const localVarAxiosArgs = await localVarAxiosParamCreator.listInboundPlans(pageSize, paginationToken, status, sortBy, sortOrder, options);
1272
- return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
1308
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1309
+ const localVarOperationServerBasePath = base_1.operationServerMap['FbaInboundApi.listInboundPlans']?.[localVarOperationServerIndex]?.url;
1310
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1273
1311
  },
1274
1312
  /**
1275
1313
  * List the inbound compliance details for MSKUs in a given marketplace. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | 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, refer to [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).
@@ -1280,7 +1318,9 @@ const FbaInboundApiFp = function (configuration) {
1280
1318
  */
1281
1319
  async listItemComplianceDetails(mskus, marketplaceId, options) {
1282
1320
  const localVarAxiosArgs = await localVarAxiosParamCreator.listItemComplianceDetails(mskus, marketplaceId, options);
1283
- return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
1321
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1322
+ const localVarOperationServerBasePath = base_1.operationServerMap['FbaInboundApi.listItemComplianceDetails']?.[localVarOperationServerIndex]?.url;
1323
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1284
1324
  },
1285
1325
  /**
1286
1326
  * Retrieves a list of all items in a packing options\'s packing group. Packing options must first be generated by the corresponding endpoint before packing group items can be listed. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | 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, refer to [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).
@@ -1294,7 +1334,9 @@ const FbaInboundApiFp = function (configuration) {
1294
1334
  */
1295
1335
  async listPackingGroupItems(inboundPlanId, packingOptionId, packingGroupId, pageSize, paginationToken, options) {
1296
1336
  const localVarAxiosArgs = await localVarAxiosParamCreator.listPackingGroupItems(inboundPlanId, packingOptionId, packingGroupId, pageSize, paginationToken, options);
1297
- return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
1337
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1338
+ const localVarOperationServerBasePath = base_1.operationServerMap['FbaInboundApi.listPackingGroupItems']?.[localVarOperationServerIndex]?.url;
1339
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1298
1340
  },
1299
1341
  /**
1300
1342
  * Retrieves a list of all packing options for an inbound plan. Packing options must first be generated by the corresponding endpoint before becoming available. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | 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, refer to [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).
@@ -1306,7 +1348,9 @@ const FbaInboundApiFp = function (configuration) {
1306
1348
  */
1307
1349
  async listPackingOptions(inboundPlanId, pageSize, paginationToken, options) {
1308
1350
  const localVarAxiosArgs = await localVarAxiosParamCreator.listPackingOptions(inboundPlanId, pageSize, paginationToken, options);
1309
- return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
1351
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1352
+ const localVarOperationServerBasePath = base_1.operationServerMap['FbaInboundApi.listPackingOptions']?.[localVarOperationServerIndex]?.url;
1353
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1310
1354
  },
1311
1355
  /**
1312
1356
  * Provides a list of all placement options for an inbound plan. Placement options must first be generated by the corresponding endpoint before becoming available. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | 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, refer to [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).
@@ -1318,7 +1362,9 @@ const FbaInboundApiFp = function (configuration) {
1318
1362
  */
1319
1363
  async listPlacementOptions(inboundPlanId, pageSize, paginationToken, options) {
1320
1364
  const localVarAxiosArgs = await localVarAxiosParamCreator.listPlacementOptions(inboundPlanId, pageSize, paginationToken, options);
1321
- return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
1365
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1366
+ const localVarOperationServerBasePath = base_1.operationServerMap['FbaInboundApi.listPlacementOptions']?.[localVarOperationServerIndex]?.url;
1367
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1322
1368
  },
1323
1369
  /**
1324
1370
  * Retrieves all transportation options for a shipment. Transportation options must first be generated by the corresponding endpoint before becoming available. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | 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, refer to [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).
@@ -1332,7 +1378,9 @@ const FbaInboundApiFp = function (configuration) {
1332
1378
  */
1333
1379
  async listTransportationOptions(inboundPlanId, pageSize, paginationToken, placementOptionId, shipmentId, options) {
1334
1380
  const localVarAxiosArgs = await localVarAxiosParamCreator.listTransportationOptions(inboundPlanId, pageSize, paginationToken, placementOptionId, shipmentId, options);
1335
- return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
1381
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1382
+ const localVarOperationServerBasePath = base_1.operationServerMap['FbaInboundApi.listTransportationOptions']?.[localVarOperationServerIndex]?.url;
1383
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1336
1384
  },
1337
1385
  /**
1338
1386
  * Confirms or reschedules a self-ship appointment slot against a shipment. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | 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, refer to [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).
@@ -1345,7 +1393,9 @@ const FbaInboundApiFp = function (configuration) {
1345
1393
  */
1346
1394
  async scheduleSelfShipAppointment(inboundPlanId, shipmentId, slotId, body, options) {
1347
1395
  const localVarAxiosArgs = await localVarAxiosParamCreator.scheduleSelfShipAppointment(inboundPlanId, shipmentId, slotId, body, options);
1348
- return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
1396
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1397
+ const localVarOperationServerBasePath = base_1.operationServerMap['FbaInboundApi.scheduleSelfShipAppointment']?.[localVarOperationServerIndex]?.url;
1398
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1349
1399
  },
1350
1400
  /**
1351
1401
  * Sets packing information for an inbound plan. This should be called after an inbound plan is created to populate the box level information required for planning and transportation estimates. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.05 | 1 | 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, refer to [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).
@@ -1356,7 +1406,9 @@ const FbaInboundApiFp = function (configuration) {
1356
1406
  */
1357
1407
  async setPackingInformation(inboundPlanId, body, options) {
1358
1408
  const localVarAxiosArgs = await localVarAxiosParamCreator.setPackingInformation(inboundPlanId, body, options);
1359
- return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
1409
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1410
+ const localVarOperationServerBasePath = base_1.operationServerMap['FbaInboundApi.setPackingInformation']?.[localVarOperationServerIndex]?.url;
1411
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1360
1412
  },
1361
1413
  /**
1362
1414
  * Update compliance details for list of MSKUs. The details provided here are only used for the IN marketplace compliance validation. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | 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, refer to [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).
@@ -1367,7 +1419,9 @@ const FbaInboundApiFp = function (configuration) {
1367
1419
  */
1368
1420
  async updateItemComplianceDetails(marketplaceId, body, options) {
1369
1421
  const localVarAxiosArgs = await localVarAxiosParamCreator.updateItemComplianceDetails(marketplaceId, body, options);
1370
- return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
1422
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1423
+ const localVarOperationServerBasePath = base_1.operationServerMap['FbaInboundApi.updateItemComplianceDetails']?.[localVarOperationServerIndex]?.url;
1424
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1371
1425
  },
1372
1426
  /**
1373
1427
  * Update the time window that a shipment will be delivered to the warehouse. The window is used to provide the expected time that a non-Amazon partnered carrier will arrive at the warehouse. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | 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, refer to [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).
@@ -1379,7 +1433,9 @@ const FbaInboundApiFp = function (configuration) {
1379
1433
  */
1380
1434
  async updateShipmentDeliveryWindow(inboundPlanId, shipmentId, body, options) {
1381
1435
  const localVarAxiosArgs = await localVarAxiosParamCreator.updateShipmentDeliveryWindow(inboundPlanId, shipmentId, body, options);
1382
- return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
1436
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1437
+ const localVarOperationServerBasePath = base_1.operationServerMap['FbaInboundApi.updateShipmentDeliveryWindow']?.[localVarOperationServerIndex]?.url;
1438
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1383
1439
  },
1384
1440
  /**
1385
1441
  * Updates a shipment\'s tracking details. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | 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, refer to [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).
@@ -1391,7 +1447,9 @@ const FbaInboundApiFp = function (configuration) {
1391
1447
  */
1392
1448
  async updateShipmentTrackingDetails(inboundPlanId, shipmentId, body, options) {
1393
1449
  const localVarAxiosArgs = await localVarAxiosParamCreator.updateShipmentTrackingDetails(inboundPlanId, shipmentId, body, options);
1394
- return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
1450
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1451
+ const localVarOperationServerBasePath = base_1.operationServerMap['FbaInboundApi.updateShipmentTrackingDetails']?.[localVarOperationServerIndex]?.url;
1452
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1395
1453
  },
1396
1454
  };
1397
1455
  };
@@ -1966,3 +2024,25 @@ class FbaInboundApi extends base_1.BaseAPI {
1966
2024
  }
1967
2025
  }
1968
2026
  exports.FbaInboundApi = FbaInboundApi;
2027
+ /**
2028
+ * @export
2029
+ */
2030
+ exports.ListInboundPlansStatusEnum = {
2031
+ Active: 'ACTIVE',
2032
+ Voided: 'VOIDED',
2033
+ Shipped: 'SHIPPED'
2034
+ };
2035
+ /**
2036
+ * @export
2037
+ */
2038
+ exports.ListInboundPlansSortByEnum = {
2039
+ LastUpdatedTime: 'LAST_UPDATED_TIME',
2040
+ CreationTime: 'CREATION_TIME'
2041
+ };
2042
+ /**
2043
+ * @export
2044
+ */
2045
+ exports.ListInboundPlansSortOrderEnum = {
2046
+ Asc: 'ASC',
2047
+ Desc: 'DESC'
2048
+ };
@@ -16,7 +16,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
16
16
  return (mod && mod.__esModule) ? mod : { "default": mod };
17
17
  };
18
18
  Object.defineProperty(exports, "__esModule", { value: true });
19
- exports.RequiredError = exports.BaseAPI = exports.COLLECTION_FORMATS = exports.BASE_PATH = void 0;
19
+ exports.operationServerMap = exports.RequiredError = exports.BaseAPI = exports.COLLECTION_FORMATS = exports.BASE_PATH = void 0;
20
20
  const axios_1 = __importDefault(require("axios"));
21
21
  exports.BASE_PATH = "https://sellingpartnerapi-na.amazon.com".replace(/\/+$/, "");
22
22
  /**
@@ -43,7 +43,7 @@ class BaseAPI {
43
43
  this.axios = axios;
44
44
  if (configuration) {
45
45
  this.configuration = configuration;
46
- this.basePath = configuration.basePath || this.basePath;
46
+ this.basePath = configuration.basePath ?? basePath;
47
47
  }
48
48
  }
49
49
  }
@@ -64,3 +64,8 @@ class RequiredError extends Error {
64
64
  }
65
65
  }
66
66
  exports.RequiredError = RequiredError;
67
+ /**
68
+ *
69
+ * @export
70
+ */
71
+ exports.operationServerMap = {};
@@ -138,7 +138,7 @@ exports.toPathString = toPathString;
138
138
  */
139
139
  const createRequestFunction = function (axiosArgs, globalAxios, BASE_PATH, configuration) {
140
140
  return (axios = globalAxios, basePath = BASE_PATH) => {
141
- const axiosRequestArgs = { ...axiosArgs.options, url: (configuration?.basePath || basePath) + axiosArgs.url };
141
+ const axiosRequestArgs = { ...axiosArgs.options, url: (axios.defaults.baseURL ? '' : configuration?.basePath ?? basePath) + axiosArgs.url };
142
142
  return axios.request(axiosRequestArgs);
143
143
  };
144
144
  };
@@ -49,6 +49,13 @@ class Configuration {
49
49
  * @memberof Configuration
50
50
  */
51
51
  basePath;
52
+ /**
53
+ * override server index
54
+ *
55
+ * @type {number}
56
+ * @memberof Configuration
57
+ */
58
+ serverIndex;
52
59
  /**
53
60
  * base options for axios calls
54
61
  *
@@ -70,6 +77,7 @@ class Configuration {
70
77
  this.password = param.password;
71
78
  this.accessToken = param.accessToken;
72
79
  this.basePath = param.basePath;
80
+ this.serverIndex = param.serverIndex;
73
81
  this.baseOptions = param.baseOptions;
74
82
  this.formDataCtor = param.formDataCtor;
75
83
  }