@sp-api-sdk/shipping-api-v1 2.0.7 → 2.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 (42) hide show
  1. package/dist/cjs/src/api-model/api/shipping-api.js +27 -9
  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/shipping-api.js +28 -10
  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/shipping-api.d.ts +52 -52
  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/accepted-rate.d.ts +4 -4
  13. package/dist/types/src/api-model/models/container-item.d.ts +2 -2
  14. package/dist/types/src/api-model/models/container-specification.d.ts +2 -2
  15. package/dist/types/src/api-model/models/container.d.ts +4 -4
  16. package/dist/types/src/api-model/models/create-shipment-request.d.ts +2 -2
  17. package/dist/types/src/api-model/models/create-shipment-response.d.ts +1 -1
  18. package/dist/types/src/api-model/models/create-shipment-result.d.ts +1 -1
  19. package/dist/types/src/api-model/models/event.d.ts +1 -1
  20. package/dist/types/src/api-model/models/get-account-response.d.ts +1 -1
  21. package/dist/types/src/api-model/models/get-rates-request.d.ts +3 -3
  22. package/dist/types/src/api-model/models/get-rates-response.d.ts +1 -1
  23. package/dist/types/src/api-model/models/get-rates-result.d.ts +1 -1
  24. package/dist/types/src/api-model/models/get-shipment-response.d.ts +1 -1
  25. package/dist/types/src/api-model/models/get-tracking-information-response.d.ts +1 -1
  26. package/dist/types/src/api-model/models/label-result.d.ts +1 -1
  27. package/dist/types/src/api-model/models/label.d.ts +1 -1
  28. package/dist/types/src/api-model/models/purchase-labels-request.d.ts +1 -1
  29. package/dist/types/src/api-model/models/purchase-labels-response.d.ts +1 -1
  30. package/dist/types/src/api-model/models/purchase-labels-result.d.ts +2 -2
  31. package/dist/types/src/api-model/models/purchase-shipment-request.d.ts +4 -4
  32. package/dist/types/src/api-model/models/purchase-shipment-response.d.ts +1 -1
  33. package/dist/types/src/api-model/models/purchase-shipment-result.d.ts +2 -2
  34. package/dist/types/src/api-model/models/rate.d.ts +4 -4
  35. package/dist/types/src/api-model/models/retrieve-shipping-label-request.d.ts +1 -1
  36. package/dist/types/src/api-model/models/retrieve-shipping-label-response.d.ts +1 -1
  37. package/dist/types/src/api-model/models/retrieve-shipping-label-result.d.ts +1 -1
  38. package/dist/types/src/api-model/models/service-rate.d.ts +4 -4
  39. package/dist/types/src/api-model/models/shipment.d.ts +4 -4
  40. package/dist/types/src/api-model/models/shipping-promise-set.d.ts +1 -1
  41. package/dist/types/src/api-model/models/tracking-information.d.ts +2 -2
  42. package/package.json +4 -4
@@ -312,7 +312,9 @@ const ShippingApiFp = function (configuration) {
312
312
  */
313
313
  async cancelShipment(shipmentId, options) {
314
314
  const localVarAxiosArgs = await localVarAxiosParamCreator.cancelShipment(shipmentId, options);
315
- return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
315
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
316
+ const localVarOperationServerBasePath = base_1.operationServerMap['ShippingApi.cancelShipment']?.[localVarOperationServerIndex]?.url;
317
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
316
318
  },
317
319
  /**
318
320
  * Create a new shipment. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 5 | 15 | 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).
@@ -322,7 +324,9 @@ const ShippingApiFp = function (configuration) {
322
324
  */
323
325
  async createShipment(body, options) {
324
326
  const localVarAxiosArgs = await localVarAxiosParamCreator.createShipment(body, options);
325
- return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
327
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
328
+ const localVarOperationServerBasePath = base_1.operationServerMap['ShippingApi.createShipment']?.[localVarOperationServerIndex]?.url;
329
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
326
330
  },
327
331
  /**
328
332
  * Verify if the current account is valid. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 5 | 15 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
@@ -331,7 +335,9 @@ const ShippingApiFp = function (configuration) {
331
335
  */
332
336
  async getAccount(options) {
333
337
  const localVarAxiosArgs = await localVarAxiosParamCreator.getAccount(options);
334
- return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
338
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
339
+ const localVarOperationServerBasePath = base_1.operationServerMap['ShippingApi.getAccount']?.[localVarOperationServerIndex]?.url;
340
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
335
341
  },
336
342
  /**
337
343
  * Get service rates. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 5 | 15 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
@@ -341,7 +347,9 @@ const ShippingApiFp = function (configuration) {
341
347
  */
342
348
  async getRates(body, options) {
343
349
  const localVarAxiosArgs = await localVarAxiosParamCreator.getRates(body, options);
344
- return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
350
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
351
+ const localVarOperationServerBasePath = base_1.operationServerMap['ShippingApi.getRates']?.[localVarOperationServerIndex]?.url;
352
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
345
353
  },
346
354
  /**
347
355
  * Return the entire shipment object for the shipmentId. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 5 | 15 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
@@ -351,7 +359,9 @@ const ShippingApiFp = function (configuration) {
351
359
  */
352
360
  async getShipment(shipmentId, options) {
353
361
  const localVarAxiosArgs = await localVarAxiosParamCreator.getShipment(shipmentId, options);
354
- return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
362
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
363
+ const localVarOperationServerBasePath = base_1.operationServerMap['ShippingApi.getShipment']?.[localVarOperationServerIndex]?.url;
364
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
355
365
  },
356
366
  /**
357
367
  * Return the tracking information of a shipment. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
@@ -361,7 +371,9 @@ const ShippingApiFp = function (configuration) {
361
371
  */
362
372
  async getTrackingInformation(trackingId, options) {
363
373
  const localVarAxiosArgs = await localVarAxiosParamCreator.getTrackingInformation(trackingId, options);
364
- return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
374
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
375
+ const localVarOperationServerBasePath = base_1.operationServerMap['ShippingApi.getTrackingInformation']?.[localVarOperationServerIndex]?.url;
376
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
365
377
  },
366
378
  /**
367
379
  * Purchase shipping labels based on a given rate. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 5 | 15 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
@@ -372,7 +384,9 @@ const ShippingApiFp = function (configuration) {
372
384
  */
373
385
  async purchaseLabels(shipmentId, body, options) {
374
386
  const localVarAxiosArgs = await localVarAxiosParamCreator.purchaseLabels(shipmentId, body, options);
375
- return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
387
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
388
+ const localVarOperationServerBasePath = base_1.operationServerMap['ShippingApi.purchaseLabels']?.[localVarOperationServerIndex]?.url;
389
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
376
390
  },
377
391
  /**
378
392
  * Purchase shipping labels. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 5 | 15 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
@@ -382,7 +396,9 @@ const ShippingApiFp = function (configuration) {
382
396
  */
383
397
  async purchaseShipment(body, options) {
384
398
  const localVarAxiosArgs = await localVarAxiosParamCreator.purchaseShipment(body, options);
385
- return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
399
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
400
+ const localVarOperationServerBasePath = base_1.operationServerMap['ShippingApi.purchaseShipment']?.[localVarOperationServerIndex]?.url;
401
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
386
402
  },
387
403
  /**
388
404
  * Retrieve shipping label based on the shipment id and tracking id. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 5 | 15 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
@@ -394,7 +410,9 @@ const ShippingApiFp = function (configuration) {
394
410
  */
395
411
  async retrieveShippingLabel(shipmentId, trackingId, body, options) {
396
412
  const localVarAxiosArgs = await localVarAxiosParamCreator.retrieveShippingLabel(shipmentId, trackingId, body, options);
397
- return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
413
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
414
+ const localVarOperationServerBasePath = base_1.operationServerMap['ShippingApi.retrieveShippingLabel']?.[localVarOperationServerIndex]?.url;
415
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
398
416
  },
399
417
  };
400
418
  };
@@ -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
  }
@@ -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, BaseAPI } from '../base';
19
+ import { BASE_PATH, BaseAPI, operationServerMap } from '../base';
20
20
  /**
21
21
  * ShippingApi - axios parameter creator
22
22
  * @export
@@ -305,7 +305,9 @@ export const ShippingApiFp = function (configuration) {
305
305
  */
306
306
  async cancelShipment(shipmentId, options) {
307
307
  const localVarAxiosArgs = await localVarAxiosParamCreator.cancelShipment(shipmentId, options);
308
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
308
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
309
+ const localVarOperationServerBasePath = operationServerMap['ShippingApi.cancelShipment']?.[localVarOperationServerIndex]?.url;
310
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
309
311
  },
310
312
  /**
311
313
  * Create a new shipment. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 5 | 15 | 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).
@@ -315,7 +317,9 @@ export const ShippingApiFp = function (configuration) {
315
317
  */
316
318
  async createShipment(body, options) {
317
319
  const localVarAxiosArgs = await localVarAxiosParamCreator.createShipment(body, options);
318
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
320
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
321
+ const localVarOperationServerBasePath = operationServerMap['ShippingApi.createShipment']?.[localVarOperationServerIndex]?.url;
322
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
319
323
  },
320
324
  /**
321
325
  * Verify if the current account is valid. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 5 | 15 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
@@ -324,7 +328,9 @@ export const ShippingApiFp = function (configuration) {
324
328
  */
325
329
  async getAccount(options) {
326
330
  const localVarAxiosArgs = await localVarAxiosParamCreator.getAccount(options);
327
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
331
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
332
+ const localVarOperationServerBasePath = operationServerMap['ShippingApi.getAccount']?.[localVarOperationServerIndex]?.url;
333
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
328
334
  },
329
335
  /**
330
336
  * Get service rates. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 5 | 15 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
@@ -334,7 +340,9 @@ export const ShippingApiFp = function (configuration) {
334
340
  */
335
341
  async getRates(body, options) {
336
342
  const localVarAxiosArgs = await localVarAxiosParamCreator.getRates(body, options);
337
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
343
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
344
+ const localVarOperationServerBasePath = operationServerMap['ShippingApi.getRates']?.[localVarOperationServerIndex]?.url;
345
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
338
346
  },
339
347
  /**
340
348
  * Return the entire shipment object for the shipmentId. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 5 | 15 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
@@ -344,7 +352,9 @@ export const ShippingApiFp = function (configuration) {
344
352
  */
345
353
  async getShipment(shipmentId, options) {
346
354
  const localVarAxiosArgs = await localVarAxiosParamCreator.getShipment(shipmentId, options);
347
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
355
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
356
+ const localVarOperationServerBasePath = operationServerMap['ShippingApi.getShipment']?.[localVarOperationServerIndex]?.url;
357
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
348
358
  },
349
359
  /**
350
360
  * Return the tracking information of a shipment. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
@@ -354,7 +364,9 @@ export const ShippingApiFp = function (configuration) {
354
364
  */
355
365
  async getTrackingInformation(trackingId, options) {
356
366
  const localVarAxiosArgs = await localVarAxiosParamCreator.getTrackingInformation(trackingId, options);
357
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
367
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
368
+ const localVarOperationServerBasePath = operationServerMap['ShippingApi.getTrackingInformation']?.[localVarOperationServerIndex]?.url;
369
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
358
370
  },
359
371
  /**
360
372
  * Purchase shipping labels based on a given rate. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 5 | 15 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
@@ -365,7 +377,9 @@ export const ShippingApiFp = function (configuration) {
365
377
  */
366
378
  async purchaseLabels(shipmentId, body, options) {
367
379
  const localVarAxiosArgs = await localVarAxiosParamCreator.purchaseLabels(shipmentId, body, options);
368
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
380
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
381
+ const localVarOperationServerBasePath = operationServerMap['ShippingApi.purchaseLabels']?.[localVarOperationServerIndex]?.url;
382
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
369
383
  },
370
384
  /**
371
385
  * Purchase shipping labels. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 5 | 15 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
@@ -375,7 +389,9 @@ export const ShippingApiFp = function (configuration) {
375
389
  */
376
390
  async purchaseShipment(body, options) {
377
391
  const localVarAxiosArgs = await localVarAxiosParamCreator.purchaseShipment(body, options);
378
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
392
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
393
+ const localVarOperationServerBasePath = operationServerMap['ShippingApi.purchaseShipment']?.[localVarOperationServerIndex]?.url;
394
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
379
395
  },
380
396
  /**
381
397
  * Retrieve shipping label based on the shipment id and tracking id. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 5 | 15 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
@@ -387,7 +403,9 @@ export const ShippingApiFp = function (configuration) {
387
403
  */
388
404
  async retrieveShippingLabel(shipmentId, trackingId, body, options) {
389
405
  const localVarAxiosArgs = await localVarAxiosParamCreator.retrieveShippingLabel(shipmentId, trackingId, body, options);
390
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
406
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
407
+ const localVarOperationServerBasePath = operationServerMap['ShippingApi.retrieveShippingLabel']?.[localVarOperationServerIndex]?.url;
408
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
391
409
  },
392
410
  };
393
411
  };
@@ -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
  }
@@ -10,23 +10,23 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import type { Configuration } from '../configuration';
13
- import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
13
+ import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
14
14
  import globalAxios from 'axios';
15
- import { RequestArgs, BaseAPI } from '../base';
16
- import { CancelShipmentResponse } from '../models';
17
- import { CreateShipmentRequest } from '../models';
18
- import { CreateShipmentResponse } from '../models';
19
- import { GetAccountResponse } from '../models';
20
- import { GetRatesRequest } from '../models';
21
- import { GetRatesResponse } from '../models';
22
- import { GetShipmentResponse } from '../models';
23
- import { GetTrackingInformationResponse } from '../models';
24
- import { PurchaseLabelsRequest } from '../models';
25
- import { PurchaseLabelsResponse } from '../models';
26
- import { PurchaseShipmentRequest } from '../models';
27
- import { PurchaseShipmentResponse } from '../models';
28
- import { RetrieveShippingLabelRequest } from '../models';
29
- import { RetrieveShippingLabelResponse } from '../models';
15
+ import { type RequestArgs, BaseAPI } from '../base';
16
+ import type { CancelShipmentResponse } from '../models';
17
+ import type { CreateShipmentRequest } from '../models';
18
+ import type { CreateShipmentResponse } from '../models';
19
+ import type { GetAccountResponse } from '../models';
20
+ import type { GetRatesRequest } from '../models';
21
+ import type { GetRatesResponse } from '../models';
22
+ import type { GetShipmentResponse } from '../models';
23
+ import type { GetTrackingInformationResponse } from '../models';
24
+ import type { PurchaseLabelsRequest } from '../models';
25
+ import type { PurchaseLabelsResponse } from '../models';
26
+ import type { PurchaseShipmentRequest } from '../models';
27
+ import type { PurchaseShipmentResponse } from '../models';
28
+ import type { RetrieveShippingLabelRequest } from '../models';
29
+ import type { RetrieveShippingLabelResponse } from '../models';
30
30
  /**
31
31
  * ShippingApi - axios parameter creator
32
32
  * @export
@@ -38,41 +38,41 @@ export declare const ShippingApiAxiosParamCreator: (configuration?: Configuratio
38
38
  * @param {*} [options] Override http request option.
39
39
  * @throws {RequiredError}
40
40
  */
41
- cancelShipment: (shipmentId: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
41
+ cancelShipment: (shipmentId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
42
42
  /**
43
43
  * Create a new shipment. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 5 | 15 | 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).
44
44
  * @param {CreateShipmentRequest} body
45
45
  * @param {*} [options] Override http request option.
46
46
  * @throws {RequiredError}
47
47
  */
48
- createShipment: (body: CreateShipmentRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
48
+ createShipment: (body: CreateShipmentRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
49
49
  /**
50
50
  * Verify if the current account is valid. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 5 | 15 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
51
51
  * @param {*} [options] Override http request option.
52
52
  * @throws {RequiredError}
53
53
  */
54
- getAccount: (options?: AxiosRequestConfig) => Promise<RequestArgs>;
54
+ getAccount: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
55
55
  /**
56
56
  * Get service rates. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 5 | 15 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
57
57
  * @param {GetRatesRequest} body
58
58
  * @param {*} [options] Override http request option.
59
59
  * @throws {RequiredError}
60
60
  */
61
- getRates: (body: GetRatesRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
61
+ getRates: (body: GetRatesRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
62
62
  /**
63
63
  * Return the entire shipment object for the shipmentId. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 5 | 15 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
64
64
  * @param {string} shipmentId
65
65
  * @param {*} [options] Override http request option.
66
66
  * @throws {RequiredError}
67
67
  */
68
- getShipment: (shipmentId: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
68
+ getShipment: (shipmentId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
69
69
  /**
70
70
  * Return the tracking information of a shipment. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
71
71
  * @param {string} trackingId
72
72
  * @param {*} [options] Override http request option.
73
73
  * @throws {RequiredError}
74
74
  */
75
- getTrackingInformation: (trackingId: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
75
+ getTrackingInformation: (trackingId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
76
76
  /**
77
77
  * Purchase shipping labels based on a given rate. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 5 | 15 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
78
78
  * @param {string} shipmentId
@@ -80,14 +80,14 @@ export declare const ShippingApiAxiosParamCreator: (configuration?: Configuratio
80
80
  * @param {*} [options] Override http request option.
81
81
  * @throws {RequiredError}
82
82
  */
83
- purchaseLabels: (shipmentId: string, body: PurchaseLabelsRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
83
+ purchaseLabels: (shipmentId: string, body: PurchaseLabelsRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
84
84
  /**
85
85
  * Purchase shipping labels. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 5 | 15 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
86
86
  * @param {PurchaseShipmentRequest} body
87
87
  * @param {*} [options] Override http request option.
88
88
  * @throws {RequiredError}
89
89
  */
90
- purchaseShipment: (body: PurchaseShipmentRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
90
+ purchaseShipment: (body: PurchaseShipmentRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
91
91
  /**
92
92
  * Retrieve shipping label based on the shipment id and tracking id. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 5 | 15 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
93
93
  * @param {string} shipmentId
@@ -96,7 +96,7 @@ export declare const ShippingApiAxiosParamCreator: (configuration?: Configuratio
96
96
  * @param {*} [options] Override http request option.
97
97
  * @throws {RequiredError}
98
98
  */
99
- retrieveShippingLabel: (shipmentId: string, trackingId: string, body: RetrieveShippingLabelRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
99
+ retrieveShippingLabel: (shipmentId: string, trackingId: string, body: RetrieveShippingLabelRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
100
100
  };
101
101
  /**
102
102
  * ShippingApi - functional programming interface
@@ -109,41 +109,41 @@ export declare const ShippingApiFp: (configuration?: Configuration) => {
109
109
  * @param {*} [options] Override http request option.
110
110
  * @throws {RequiredError}
111
111
  */
112
- cancelShipment(shipmentId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CancelShipmentResponse>>;
112
+ cancelShipment(shipmentId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CancelShipmentResponse>>;
113
113
  /**
114
114
  * Create a new shipment. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 5 | 15 | 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).
115
115
  * @param {CreateShipmentRequest} body
116
116
  * @param {*} [options] Override http request option.
117
117
  * @throws {RequiredError}
118
118
  */
119
- createShipment(body: CreateShipmentRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateShipmentResponse>>;
119
+ createShipment(body: CreateShipmentRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateShipmentResponse>>;
120
120
  /**
121
121
  * Verify if the current account is valid. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 5 | 15 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
122
122
  * @param {*} [options] Override http request option.
123
123
  * @throws {RequiredError}
124
124
  */
125
- getAccount(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetAccountResponse>>;
125
+ getAccount(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetAccountResponse>>;
126
126
  /**
127
127
  * Get service rates. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 5 | 15 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
128
128
  * @param {GetRatesRequest} body
129
129
  * @param {*} [options] Override http request option.
130
130
  * @throws {RequiredError}
131
131
  */
132
- getRates(body: GetRatesRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetRatesResponse>>;
132
+ getRates(body: GetRatesRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetRatesResponse>>;
133
133
  /**
134
134
  * Return the entire shipment object for the shipmentId. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 5 | 15 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
135
135
  * @param {string} shipmentId
136
136
  * @param {*} [options] Override http request option.
137
137
  * @throws {RequiredError}
138
138
  */
139
- getShipment(shipmentId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetShipmentResponse>>;
139
+ getShipment(shipmentId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetShipmentResponse>>;
140
140
  /**
141
141
  * Return the tracking information of a shipment. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
142
142
  * @param {string} trackingId
143
143
  * @param {*} [options] Override http request option.
144
144
  * @throws {RequiredError}
145
145
  */
146
- getTrackingInformation(trackingId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetTrackingInformationResponse>>;
146
+ getTrackingInformation(trackingId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetTrackingInformationResponse>>;
147
147
  /**
148
148
  * Purchase shipping labels based on a given rate. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 5 | 15 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
149
149
  * @param {string} shipmentId
@@ -151,14 +151,14 @@ export declare const ShippingApiFp: (configuration?: Configuration) => {
151
151
  * @param {*} [options] Override http request option.
152
152
  * @throws {RequiredError}
153
153
  */
154
- purchaseLabels(shipmentId: string, body: PurchaseLabelsRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PurchaseLabelsResponse>>;
154
+ purchaseLabels(shipmentId: string, body: PurchaseLabelsRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PurchaseLabelsResponse>>;
155
155
  /**
156
156
  * Purchase shipping labels. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 5 | 15 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
157
157
  * @param {PurchaseShipmentRequest} body
158
158
  * @param {*} [options] Override http request option.
159
159
  * @throws {RequiredError}
160
160
  */
161
- purchaseShipment(body: PurchaseShipmentRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PurchaseShipmentResponse>>;
161
+ purchaseShipment(body: PurchaseShipmentRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PurchaseShipmentResponse>>;
162
162
  /**
163
163
  * Retrieve shipping label based on the shipment id and tracking id. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 5 | 15 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
164
164
  * @param {string} shipmentId
@@ -167,7 +167,7 @@ export declare const ShippingApiFp: (configuration?: Configuration) => {
167
167
  * @param {*} [options] Override http request option.
168
168
  * @throws {RequiredError}
169
169
  */
170
- retrieveShippingLabel(shipmentId: string, trackingId: string, body: RetrieveShippingLabelRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RetrieveShippingLabelResponse>>;
170
+ retrieveShippingLabel(shipmentId: string, trackingId: string, body: RetrieveShippingLabelRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RetrieveShippingLabelResponse>>;
171
171
  };
172
172
  /**
173
173
  * ShippingApi - factory interface
@@ -180,62 +180,62 @@ export declare const ShippingApiFactory: (configuration?: Configuration, basePat
180
180
  * @param {*} [options] Override http request option.
181
181
  * @throws {RequiredError}
182
182
  */
183
- cancelShipment(requestParameters: ShippingApiCancelShipmentRequest, options?: AxiosRequestConfig): AxiosPromise<CancelShipmentResponse>;
183
+ cancelShipment(requestParameters: ShippingApiCancelShipmentRequest, options?: RawAxiosRequestConfig): AxiosPromise<CancelShipmentResponse>;
184
184
  /**
185
185
  * Create a new shipment. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 5 | 15 | 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).
186
186
  * @param {ShippingApiCreateShipmentRequest} requestParameters Request parameters.
187
187
  * @param {*} [options] Override http request option.
188
188
  * @throws {RequiredError}
189
189
  */
190
- createShipment(requestParameters: ShippingApiCreateShipmentRequest, options?: AxiosRequestConfig): AxiosPromise<CreateShipmentResponse>;
190
+ createShipment(requestParameters: ShippingApiCreateShipmentRequest, options?: RawAxiosRequestConfig): AxiosPromise<CreateShipmentResponse>;
191
191
  /**
192
192
  * Verify if the current account is valid. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 5 | 15 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
193
193
  * @param {*} [options] Override http request option.
194
194
  * @throws {RequiredError}
195
195
  */
196
- getAccount(options?: AxiosRequestConfig): AxiosPromise<GetAccountResponse>;
196
+ getAccount(options?: RawAxiosRequestConfig): AxiosPromise<GetAccountResponse>;
197
197
  /**
198
198
  * Get service rates. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 5 | 15 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
199
199
  * @param {ShippingApiGetRatesRequest} requestParameters Request parameters.
200
200
  * @param {*} [options] Override http request option.
201
201
  * @throws {RequiredError}
202
202
  */
203
- getRates(requestParameters: ShippingApiGetRatesRequest, options?: AxiosRequestConfig): AxiosPromise<GetRatesResponse>;
203
+ getRates(requestParameters: ShippingApiGetRatesRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetRatesResponse>;
204
204
  /**
205
205
  * Return the entire shipment object for the shipmentId. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 5 | 15 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
206
206
  * @param {ShippingApiGetShipmentRequest} requestParameters Request parameters.
207
207
  * @param {*} [options] Override http request option.
208
208
  * @throws {RequiredError}
209
209
  */
210
- getShipment(requestParameters: ShippingApiGetShipmentRequest, options?: AxiosRequestConfig): AxiosPromise<GetShipmentResponse>;
210
+ getShipment(requestParameters: ShippingApiGetShipmentRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetShipmentResponse>;
211
211
  /**
212
212
  * Return the tracking information of a shipment. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
213
213
  * @param {ShippingApiGetTrackingInformationRequest} requestParameters Request parameters.
214
214
  * @param {*} [options] Override http request option.
215
215
  * @throws {RequiredError}
216
216
  */
217
- getTrackingInformation(requestParameters: ShippingApiGetTrackingInformationRequest, options?: AxiosRequestConfig): AxiosPromise<GetTrackingInformationResponse>;
217
+ getTrackingInformation(requestParameters: ShippingApiGetTrackingInformationRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetTrackingInformationResponse>;
218
218
  /**
219
219
  * Purchase shipping labels based on a given rate. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 5 | 15 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
220
220
  * @param {ShippingApiPurchaseLabelsRequest} requestParameters Request parameters.
221
221
  * @param {*} [options] Override http request option.
222
222
  * @throws {RequiredError}
223
223
  */
224
- purchaseLabels(requestParameters: ShippingApiPurchaseLabelsRequest, options?: AxiosRequestConfig): AxiosPromise<PurchaseLabelsResponse>;
224
+ purchaseLabels(requestParameters: ShippingApiPurchaseLabelsRequest, options?: RawAxiosRequestConfig): AxiosPromise<PurchaseLabelsResponse>;
225
225
  /**
226
226
  * Purchase shipping labels. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 5 | 15 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
227
227
  * @param {ShippingApiPurchaseShipmentRequest} requestParameters Request parameters.
228
228
  * @param {*} [options] Override http request option.
229
229
  * @throws {RequiredError}
230
230
  */
231
- purchaseShipment(requestParameters: ShippingApiPurchaseShipmentRequest, options?: AxiosRequestConfig): AxiosPromise<PurchaseShipmentResponse>;
231
+ purchaseShipment(requestParameters: ShippingApiPurchaseShipmentRequest, options?: RawAxiosRequestConfig): AxiosPromise<PurchaseShipmentResponse>;
232
232
  /**
233
233
  * Retrieve shipping label based on the shipment id and tracking id. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 5 | 15 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
234
234
  * @param {ShippingApiRetrieveShippingLabelRequest} requestParameters Request parameters.
235
235
  * @param {*} [options] Override http request option.
236
236
  * @throws {RequiredError}
237
237
  */
238
- retrieveShippingLabel(requestParameters: ShippingApiRetrieveShippingLabelRequest, options?: AxiosRequestConfig): AxiosPromise<RetrieveShippingLabelResponse>;
238
+ retrieveShippingLabel(requestParameters: ShippingApiRetrieveShippingLabelRequest, options?: RawAxiosRequestConfig): AxiosPromise<RetrieveShippingLabelResponse>;
239
239
  };
240
240
  /**
241
241
  * Request parameters for cancelShipment operation in ShippingApi.
@@ -373,7 +373,7 @@ export declare class ShippingApi extends BaseAPI {
373
373
  * @throws {RequiredError}
374
374
  * @memberof ShippingApi
375
375
  */
376
- cancelShipment(requestParameters: ShippingApiCancelShipmentRequest, options?: AxiosRequestConfig): Promise<globalAxios.AxiosResponse<CancelShipmentResponse, any>>;
376
+ cancelShipment(requestParameters: ShippingApiCancelShipmentRequest, options?: RawAxiosRequestConfig): Promise<globalAxios.AxiosResponse<CancelShipmentResponse, any>>;
377
377
  /**
378
378
  * Create a new shipment. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 5 | 15 | 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).
379
379
  * @param {ShippingApiCreateShipmentRequest} requestParameters Request parameters.
@@ -381,14 +381,14 @@ export declare class ShippingApi extends BaseAPI {
381
381
  * @throws {RequiredError}
382
382
  * @memberof ShippingApi
383
383
  */
384
- createShipment(requestParameters: ShippingApiCreateShipmentRequest, options?: AxiosRequestConfig): Promise<globalAxios.AxiosResponse<CreateShipmentResponse, any>>;
384
+ createShipment(requestParameters: ShippingApiCreateShipmentRequest, options?: RawAxiosRequestConfig): Promise<globalAxios.AxiosResponse<CreateShipmentResponse, any>>;
385
385
  /**
386
386
  * Verify if the current account is valid. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 5 | 15 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
387
387
  * @param {*} [options] Override http request option.
388
388
  * @throws {RequiredError}
389
389
  * @memberof ShippingApi
390
390
  */
391
- getAccount(options?: AxiosRequestConfig): Promise<globalAxios.AxiosResponse<GetAccountResponse, any>>;
391
+ getAccount(options?: RawAxiosRequestConfig): Promise<globalAxios.AxiosResponse<GetAccountResponse, any>>;
392
392
  /**
393
393
  * Get service rates. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 5 | 15 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
394
394
  * @param {ShippingApiGetRatesRequest} requestParameters Request parameters.
@@ -396,7 +396,7 @@ export declare class ShippingApi extends BaseAPI {
396
396
  * @throws {RequiredError}
397
397
  * @memberof ShippingApi
398
398
  */
399
- getRates(requestParameters: ShippingApiGetRatesRequest, options?: AxiosRequestConfig): Promise<globalAxios.AxiosResponse<GetRatesResponse, any>>;
399
+ getRates(requestParameters: ShippingApiGetRatesRequest, options?: RawAxiosRequestConfig): Promise<globalAxios.AxiosResponse<GetRatesResponse, any>>;
400
400
  /**
401
401
  * Return the entire shipment object for the shipmentId. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 5 | 15 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
402
402
  * @param {ShippingApiGetShipmentRequest} requestParameters Request parameters.
@@ -404,7 +404,7 @@ export declare class ShippingApi extends BaseAPI {
404
404
  * @throws {RequiredError}
405
405
  * @memberof ShippingApi
406
406
  */
407
- getShipment(requestParameters: ShippingApiGetShipmentRequest, options?: AxiosRequestConfig): Promise<globalAxios.AxiosResponse<GetShipmentResponse, any>>;
407
+ getShipment(requestParameters: ShippingApiGetShipmentRequest, options?: RawAxiosRequestConfig): Promise<globalAxios.AxiosResponse<GetShipmentResponse, any>>;
408
408
  /**
409
409
  * Return the tracking information of a shipment. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
410
410
  * @param {ShippingApiGetTrackingInformationRequest} requestParameters Request parameters.
@@ -412,7 +412,7 @@ export declare class ShippingApi extends BaseAPI {
412
412
  * @throws {RequiredError}
413
413
  * @memberof ShippingApi
414
414
  */
415
- getTrackingInformation(requestParameters: ShippingApiGetTrackingInformationRequest, options?: AxiosRequestConfig): Promise<globalAxios.AxiosResponse<GetTrackingInformationResponse, any>>;
415
+ getTrackingInformation(requestParameters: ShippingApiGetTrackingInformationRequest, options?: RawAxiosRequestConfig): Promise<globalAxios.AxiosResponse<GetTrackingInformationResponse, any>>;
416
416
  /**
417
417
  * Purchase shipping labels based on a given rate. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 5 | 15 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
418
418
  * @param {ShippingApiPurchaseLabelsRequest} requestParameters Request parameters.
@@ -420,7 +420,7 @@ export declare class ShippingApi extends BaseAPI {
420
420
  * @throws {RequiredError}
421
421
  * @memberof ShippingApi
422
422
  */
423
- purchaseLabels(requestParameters: ShippingApiPurchaseLabelsRequest, options?: AxiosRequestConfig): Promise<globalAxios.AxiosResponse<PurchaseLabelsResponse, any>>;
423
+ purchaseLabels(requestParameters: ShippingApiPurchaseLabelsRequest, options?: RawAxiosRequestConfig): Promise<globalAxios.AxiosResponse<PurchaseLabelsResponse, any>>;
424
424
  /**
425
425
  * Purchase shipping labels. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 5 | 15 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
426
426
  * @param {ShippingApiPurchaseShipmentRequest} requestParameters Request parameters.
@@ -428,7 +428,7 @@ export declare class ShippingApi extends BaseAPI {
428
428
  * @throws {RequiredError}
429
429
  * @memberof ShippingApi
430
430
  */
431
- purchaseShipment(requestParameters: ShippingApiPurchaseShipmentRequest, options?: AxiosRequestConfig): Promise<globalAxios.AxiosResponse<PurchaseShipmentResponse, any>>;
431
+ purchaseShipment(requestParameters: ShippingApiPurchaseShipmentRequest, options?: RawAxiosRequestConfig): Promise<globalAxios.AxiosResponse<PurchaseShipmentResponse, any>>;
432
432
  /**
433
433
  * Retrieve shipping label based on the shipment id and tracking id. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 5 | 15 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
434
434
  * @param {ShippingApiRetrieveShippingLabelRequest} requestParameters Request parameters.
@@ -436,5 +436,5 @@ export declare class ShippingApi extends BaseAPI {
436
436
  * @throws {RequiredError}
437
437
  * @memberof ShippingApi
438
438
  */
439
- retrieveShippingLabel(requestParameters: ShippingApiRetrieveShippingLabelRequest, options?: AxiosRequestConfig): Promise<globalAxios.AxiosResponse<RetrieveShippingLabelResponse, any>>;
439
+ retrieveShippingLabel(requestParameters: ShippingApiRetrieveShippingLabelRequest, options?: RawAxiosRequestConfig): Promise<globalAxios.AxiosResponse<RetrieveShippingLabelResponse, any>>;
440
440
  }
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import type { Configuration } from './configuration';
13
- import type { AxiosInstance, AxiosRequestConfig } from 'axios';
13
+ import type { AxiosInstance, RawAxiosRequestConfig } from 'axios';
14
14
  export declare const BASE_PATH: string;
15
15
  /**
16
16
  *
@@ -29,7 +29,7 @@ export declare const COLLECTION_FORMATS: {
29
29
  */
30
30
  export interface RequestArgs {
31
31
  url: string;
32
- options: AxiosRequestConfig;
32
+ options: RawAxiosRequestConfig;
33
33
  }
34
34
  /**
35
35
  *
@@ -52,3 +52,15 @@ export declare class RequiredError extends Error {
52
52
  field: string;
53
53
  constructor(field: string, msg?: string);
54
54
  }
55
+ interface ServerMap {
56
+ [key: string]: {
57
+ url: string;
58
+ description: string;
59
+ }[];
60
+ }
61
+ /**
62
+ *
63
+ * @export
64
+ */
65
+ export declare const operationServerMap: ServerMap;
66
+ export {};
@@ -15,6 +15,7 @@ export interface ConfigurationParameters {
15
15
  password?: string;
16
16
  accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
17
17
  basePath?: string;
18
+ serverIndex?: number;
18
19
  baseOptions?: any;
19
20
  formDataCtor?: new () => any;
20
21
  }
@@ -53,6 +54,13 @@ export declare class Configuration {
53
54
  * @memberof Configuration
54
55
  */
55
56
  basePath?: string;
57
+ /**
58
+ * override server index
59
+ *
60
+ * @type {number}
61
+ * @memberof Configuration
62
+ */
63
+ serverIndex?: number;
56
64
  /**
57
65
  * base options for axios calls
58
66
  *
@@ -9,10 +9,10 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import { Currency } from './currency';
13
- import { ServiceType } from './service-type';
14
- import { ShippingPromiseSet } from './shipping-promise-set';
15
- import { Weight } from './weight';
12
+ import type { Currency } from './currency';
13
+ import type { ServiceType } from './service-type';
14
+ import type { ShippingPromiseSet } from './shipping-promise-set';
15
+ import type { Weight } from './weight';
16
16
  /**
17
17
  * The specific rate purchased for the shipment, or null if unpurchased.
18
18
  * @export
@@ -9,8 +9,8 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import { Currency } from './currency';
13
- import { Weight } from './weight';
12
+ import type { Currency } from './currency';
13
+ import type { Weight } from './weight';
14
14
  /**
15
15
  * Item in the container.
16
16
  * @export
@@ -9,8 +9,8 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import { Dimensions } from './dimensions';
13
- import { Weight } from './weight';
12
+ import type { Dimensions } from './dimensions';
13
+ import type { Weight } from './weight';
14
14
  /**
15
15
  * Container specification for checking the service rate.
16
16
  * @export
@@ -9,10 +9,10 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import { ContainerItem } from './container-item';
13
- import { Currency } from './currency';
14
- import { Dimensions } from './dimensions';
15
- import { Weight } from './weight';
12
+ import type { ContainerItem } from './container-item';
13
+ import type { Currency } from './currency';
14
+ import type { Dimensions } from './dimensions';
15
+ import type { Weight } from './weight';
16
16
  /**
17
17
  * Container in the shipment.
18
18
  * @export
@@ -9,8 +9,8 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import { Address } from './address';
13
- import { Container } from './container';
12
+ import type { Address } from './address';
13
+ import type { Container } from './container';
14
14
  /**
15
15
  * The request schema for the createShipment operation.
16
16
  * @export
@@ -9,7 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import { CreateShipmentResult } from './create-shipment-result';
12
+ import type { CreateShipmentResult } from './create-shipment-result';
13
13
  /**
14
14
  * The response schema for the createShipment operation.
15
15
  * @export
@@ -9,7 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import { Rate } from './rate';
12
+ import type { Rate } from './rate';
13
13
  /**
14
14
  * The payload schema for the createShipment operation.
15
15
  * @export
@@ -9,7 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import { Location } from './location';
12
+ import type { Location } from './location';
13
13
  /**
14
14
  * An event of a shipment
15
15
  * @export
@@ -9,7 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import { Account } from './account';
12
+ import type { Account } from './account';
13
13
  /**
14
14
  * The response schema for the getAccount operation.
15
15
  * @export
@@ -9,9 +9,9 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import { Address } from './address';
13
- import { ContainerSpecification } from './container-specification';
14
- import { ServiceType } from './service-type';
12
+ import type { Address } from './address';
13
+ import type { ContainerSpecification } from './container-specification';
14
+ import type { ServiceType } from './service-type';
15
15
  /**
16
16
  * The payload schema for the getRates operation.
17
17
  * @export
@@ -9,7 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import { GetRatesResult } from './get-rates-result';
12
+ import type { GetRatesResult } from './get-rates-result';
13
13
  /**
14
14
  * The response schema for the getRates operation.
15
15
  * @export
@@ -9,7 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import { ServiceRate } from './service-rate';
12
+ import type { ServiceRate } from './service-rate';
13
13
  /**
14
14
  * The payload schema for the getRates operation.
15
15
  * @export
@@ -9,7 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import { Shipment } from './shipment';
12
+ import type { Shipment } from './shipment';
13
13
  /**
14
14
  * The response schema for the getShipment operation.
15
15
  * @export
@@ -9,7 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import { TrackingInformation } from './tracking-information';
12
+ import type { TrackingInformation } from './tracking-information';
13
13
  /**
14
14
  * The response schema for the getTrackingInformation operation.
15
15
  * @export
@@ -9,7 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import { Label } from './label';
12
+ import type { Label } from './label';
13
13
  /**
14
14
  * Label details including label stream, format, size.
15
15
  * @export
@@ -9,7 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import { LabelSpecification } from './label-specification';
12
+ import type { LabelSpecification } from './label-specification';
13
13
  /**
14
14
  * The label details of the container.
15
15
  * @export
@@ -9,7 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import { LabelSpecification } from './label-specification';
12
+ import type { LabelSpecification } from './label-specification';
13
13
  /**
14
14
  * The request schema for the purchaseLabels operation.
15
15
  * @export
@@ -9,7 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import { PurchaseLabelsResult } from './purchase-labels-result';
12
+ import type { PurchaseLabelsResult } from './purchase-labels-result';
13
13
  /**
14
14
  * The response schema for the purchaseLabels operation.
15
15
  * @export
@@ -9,8 +9,8 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import { AcceptedRate } from './accepted-rate';
13
- import { LabelResult } from './label-result';
12
+ import type { AcceptedRate } from './accepted-rate';
13
+ import type { LabelResult } from './label-result';
14
14
  /**
15
15
  * The payload schema for the purchaseLabels operation.
16
16
  * @export
@@ -9,10 +9,10 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import { Address } from './address';
13
- import { Container } from './container';
14
- import { LabelSpecification } from './label-specification';
15
- import { ServiceType } from './service-type';
12
+ import type { Address } from './address';
13
+ import type { Container } from './container';
14
+ import type { LabelSpecification } from './label-specification';
15
+ import type { ServiceType } from './service-type';
16
16
  /**
17
17
  * The payload schema for the purchaseShipment operation.
18
18
  * @export
@@ -9,7 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import { PurchaseShipmentResult } from './purchase-shipment-result';
12
+ import type { PurchaseShipmentResult } from './purchase-shipment-result';
13
13
  /**
14
14
  * The response schema for the purchaseShipment operation.
15
15
  * @export
@@ -9,8 +9,8 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import { LabelResult } from './label-result';
13
- import { ServiceRate } from './service-rate';
12
+ import type { LabelResult } from './label-result';
13
+ import type { ServiceRate } from './service-rate';
14
14
  /**
15
15
  * The payload schema for the purchaseShipment operation.
16
16
  * @export
@@ -9,10 +9,10 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import { Currency } from './currency';
13
- import { ServiceType } from './service-type';
14
- import { ShippingPromiseSet } from './shipping-promise-set';
15
- import { Weight } from './weight';
12
+ import type { Currency } from './currency';
13
+ import type { ServiceType } from './service-type';
14
+ import type { ShippingPromiseSet } from './shipping-promise-set';
15
+ import type { Weight } from './weight';
16
16
  /**
17
17
  * The available rate that can be used to send the shipment
18
18
  * @export
@@ -9,7 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import { LabelSpecification } from './label-specification';
12
+ import type { LabelSpecification } from './label-specification';
13
13
  /**
14
14
  * The request schema for the retrieveShippingLabel operation.
15
15
  * @export
@@ -9,7 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import { RetrieveShippingLabelResult } from './retrieve-shipping-label-result';
12
+ import type { RetrieveShippingLabelResult } from './retrieve-shipping-label-result';
13
13
  /**
14
14
  * The response schema for the retrieveShippingLabel operation.
15
15
  * @export
@@ -9,7 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import { LabelSpecification } from './label-specification';
12
+ import type { LabelSpecification } from './label-specification';
13
13
  /**
14
14
  * The payload schema for the retrieveShippingLabel operation.
15
15
  * @export
@@ -9,10 +9,10 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import { Currency } from './currency';
13
- import { ServiceType } from './service-type';
14
- import { ShippingPromiseSet } from './shipping-promise-set';
15
- import { Weight } from './weight';
12
+ import type { Currency } from './currency';
13
+ import type { ServiceType } from './service-type';
14
+ import type { ShippingPromiseSet } from './shipping-promise-set';
15
+ import type { Weight } from './weight';
16
16
  /**
17
17
  * The specific rate for a shipping service, or null if no service available.
18
18
  * @export
@@ -9,10 +9,10 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import { AcceptedRate } from './accepted-rate';
13
- import { Address } from './address';
14
- import { Container } from './container';
15
- import { Party } from './party';
12
+ import type { AcceptedRate } from './accepted-rate';
13
+ import type { Address } from './address';
14
+ import type { Container } from './container';
15
+ import type { Party } from './party';
16
16
  /**
17
17
  * The shipment related data.
18
18
  * @export
@@ -9,7 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import { TimeRange } from './time-range';
12
+ import type { TimeRange } from './time-range';
13
13
  /**
14
14
  * The promised delivery time and pickup time.
15
15
  * @export
@@ -9,8 +9,8 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import { Event } from './event';
13
- import { TrackingSummary } from './tracking-summary';
12
+ import type { Event } from './event';
13
+ import type { TrackingSummary } from './tracking-summary';
14
14
  /**
15
15
  * The payload schema for the getTrackingInformation operation.
16
16
  * @export
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@sp-api-sdk/shipping-api-v1",
3
3
  "author": "Bertrand Marron <bertrand@bizon.solutions>",
4
4
  "description": "Provides programmatic access to Amazon Shipping APIs. Note: If you are new to the Amazon Shipping API, refer to the latest version of Amazon Shipping API (v2) on the Amazon Shipping Developer Documentation site.",
5
- "version": "2.0.7",
5
+ "version": "2.1.0",
6
6
  "main": "dist/cjs/index.js",
7
7
  "module": "dist/es/index.js",
8
8
  "types": "dist/types/index.d.ts",
@@ -18,8 +18,8 @@
18
18
  "dist/**/*.d.ts"
19
19
  ],
20
20
  "dependencies": {
21
- "@sp-api-sdk/common": "2.0.7",
22
- "axios": "^1.6.8"
21
+ "@sp-api-sdk/common": "2.0.8",
22
+ "axios": "^1.7.0"
23
23
  },
24
24
  "repository": {
25
25
  "type": "git",
@@ -40,5 +40,5 @@
40
40
  "sp sdk",
41
41
  "shipping api"
42
42
  ],
43
- "gitHead": "556cf5234c43b36ddaffa12f795a925b1c7fc63b"
43
+ "gitHead": "5a245a25a9f1765c825e2178668d4b0f4e44689b"
44
44
  }