@sp-api-sdk/shipping-api-v1 2.0.3 → 2.0.5

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.
@@ -11,6 +11,7 @@
11
11
  */
12
12
  import type { Configuration } from '../configuration';
13
13
  import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
14
+ import globalAxios from 'axios';
14
15
  import { RequestArgs, BaseAPI } from '../base';
15
16
  import { CancelShipmentResponse } from '../models';
16
17
  import { CreateShipmentRequest } from '../models';
@@ -372,7 +373,7 @@ export declare class ShippingApi extends BaseAPI {
372
373
  * @throws {RequiredError}
373
374
  * @memberof ShippingApi
374
375
  */
375
- cancelShipment(requestParameters: ShippingApiCancelShipmentRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CancelShipmentResponse, any>>;
376
+ cancelShipment(requestParameters: ShippingApiCancelShipmentRequest, options?: AxiosRequestConfig): Promise<globalAxios.AxiosResponse<CancelShipmentResponse, any>>;
376
377
  /**
377
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).
378
379
  * @param {ShippingApiCreateShipmentRequest} requestParameters Request parameters.
@@ -380,14 +381,14 @@ export declare class ShippingApi extends BaseAPI {
380
381
  * @throws {RequiredError}
381
382
  * @memberof ShippingApi
382
383
  */
383
- createShipment(requestParameters: ShippingApiCreateShipmentRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateShipmentResponse, any>>;
384
+ createShipment(requestParameters: ShippingApiCreateShipmentRequest, options?: AxiosRequestConfig): Promise<globalAxios.AxiosResponse<CreateShipmentResponse, any>>;
384
385
  /**
385
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.
386
387
  * @param {*} [options] Override http request option.
387
388
  * @throws {RequiredError}
388
389
  * @memberof ShippingApi
389
390
  */
390
- getAccount(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetAccountResponse, any>>;
391
+ getAccount(options?: AxiosRequestConfig): Promise<globalAxios.AxiosResponse<GetAccountResponse, any>>;
391
392
  /**
392
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.
393
394
  * @param {ShippingApiGetRatesRequest} requestParameters Request parameters.
@@ -395,7 +396,7 @@ export declare class ShippingApi extends BaseAPI {
395
396
  * @throws {RequiredError}
396
397
  * @memberof ShippingApi
397
398
  */
398
- getRates(requestParameters: ShippingApiGetRatesRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetRatesResponse, any>>;
399
+ getRates(requestParameters: ShippingApiGetRatesRequest, options?: AxiosRequestConfig): Promise<globalAxios.AxiosResponse<GetRatesResponse, any>>;
399
400
  /**
400
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.
401
402
  * @param {ShippingApiGetShipmentRequest} requestParameters Request parameters.
@@ -403,7 +404,7 @@ export declare class ShippingApi extends BaseAPI {
403
404
  * @throws {RequiredError}
404
405
  * @memberof ShippingApi
405
406
  */
406
- getShipment(requestParameters: ShippingApiGetShipmentRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetShipmentResponse, any>>;
407
+ getShipment(requestParameters: ShippingApiGetShipmentRequest, options?: AxiosRequestConfig): Promise<globalAxios.AxiosResponse<GetShipmentResponse, any>>;
407
408
  /**
408
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.
409
410
  * @param {ShippingApiGetTrackingInformationRequest} requestParameters Request parameters.
@@ -411,7 +412,7 @@ export declare class ShippingApi extends BaseAPI {
411
412
  * @throws {RequiredError}
412
413
  * @memberof ShippingApi
413
414
  */
414
- getTrackingInformation(requestParameters: ShippingApiGetTrackingInformationRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetTrackingInformationResponse, any>>;
415
+ getTrackingInformation(requestParameters: ShippingApiGetTrackingInformationRequest, options?: AxiosRequestConfig): Promise<globalAxios.AxiosResponse<GetTrackingInformationResponse, any>>;
415
416
  /**
416
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.
417
418
  * @param {ShippingApiPurchaseLabelsRequest} requestParameters Request parameters.
@@ -419,7 +420,7 @@ export declare class ShippingApi extends BaseAPI {
419
420
  * @throws {RequiredError}
420
421
  * @memberof ShippingApi
421
422
  */
422
- purchaseLabels(requestParameters: ShippingApiPurchaseLabelsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<PurchaseLabelsResponse, any>>;
423
+ purchaseLabels(requestParameters: ShippingApiPurchaseLabelsRequest, options?: AxiosRequestConfig): Promise<globalAxios.AxiosResponse<PurchaseLabelsResponse, any>>;
423
424
  /**
424
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.
425
426
  * @param {ShippingApiPurchaseShipmentRequest} requestParameters Request parameters.
@@ -427,7 +428,7 @@ export declare class ShippingApi extends BaseAPI {
427
428
  * @throws {RequiredError}
428
429
  * @memberof ShippingApi
429
430
  */
430
- purchaseShipment(requestParameters: ShippingApiPurchaseShipmentRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<PurchaseShipmentResponse, any>>;
431
+ purchaseShipment(requestParameters: ShippingApiPurchaseShipmentRequest, options?: AxiosRequestConfig): Promise<globalAxios.AxiosResponse<PurchaseShipmentResponse, any>>;
431
432
  /**
432
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.
433
434
  * @param {ShippingApiRetrieveShippingLabelRequest} requestParameters Request parameters.
@@ -435,5 +436,5 @@ export declare class ShippingApi extends BaseAPI {
435
436
  * @throws {RequiredError}
436
437
  * @memberof ShippingApi
437
438
  */
438
- retrieveShippingLabel(requestParameters: ShippingApiRetrieveShippingLabelRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<RetrieveShippingLabelResponse, any>>;
439
+ retrieveShippingLabel(requestParameters: ShippingApiRetrieveShippingLabelRequest, options?: AxiosRequestConfig): Promise<globalAxios.AxiosResponse<RetrieveShippingLabelResponse, any>>;
439
440
  }
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@sp-api-sdk/shipping-api-v1",
3
3
  "author": "Vincent Mesquita <vincent.mesquita@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.3",
5
+ "version": "2.0.5",
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.3",
22
- "axios": "^1.6.2"
21
+ "@sp-api-sdk/common": "2.0.5",
22
+ "axios": "^1.6.7"
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": "c81279baeb662780ae3cb42fb60fa11670fed191"
43
+ "gitHead": "014aad96509aba433e07461efbe936a6062cc66a"
44
44
  }