@sp-api-sdk/shipping-api-v2 1.1.2 → 1.2.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 (77) hide show
  1. package/dist/cjs/src/api-model/api/shipping-api.js +356 -54
  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 +356 -54
  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 +437 -151
  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/access-point.d.ts +5 -5
  13. package/dist/types/src/api-model/models/address.d.ts +1 -1
  14. package/dist/types/src/api-model/models/available-value-added-service-group.d.ts +1 -1
  15. package/dist/types/src/api-model/models/benefits.d.ts +1 -1
  16. package/dist/types/src/api-model/models/carrier-account-input.d.ts +2 -2
  17. package/dist/types/src/api-model/models/channel-details.d.ts +3 -3
  18. package/dist/types/src/api-model/models/charge-component.d.ts +1 -1
  19. package/dist/types/src/api-model/models/collect-on-delivery.d.ts +1 -1
  20. package/dist/types/src/api-model/models/collection-forms-history-record.d.ts +2 -2
  21. package/dist/types/src/api-model/models/direct-purchase-request.d.ts +4 -4
  22. package/dist/types/src/api-model/models/direct-purchase-response.d.ts +1 -1
  23. package/dist/types/src/api-model/models/direct-purchase-result.d.ts +1 -1
  24. package/dist/types/src/api-model/models/event.d.ts +2 -2
  25. package/dist/types/src/api-model/models/exception-operating-hours.d.ts +2 -2
  26. package/dist/types/src/api-model/models/generate-collection-form-request.d.ts +2 -2
  27. package/dist/types/src/api-model/models/generate-collection-form-response.d.ts +1 -1
  28. package/dist/types/src/api-model/models/get-access-points-response.d.ts +1 -1
  29. package/dist/types/src/api-model/models/get-access-points-result.d.ts +1 -1
  30. package/dist/types/src/api-model/models/get-carrier-account-form-inputs-response.d.ts +1 -1
  31. package/dist/types/src/api-model/models/get-carrier-accounts-request.d.ts +1 -1
  32. package/dist/types/src/api-model/models/get-carrier-accounts-response.d.ts +1 -1
  33. package/dist/types/src/api-model/models/get-collection-form-history-request.d.ts +3 -3
  34. package/dist/types/src/api-model/models/get-collection-form-history-response.d.ts +1 -1
  35. package/dist/types/src/api-model/models/get-collection-form-response.d.ts +1 -1
  36. package/dist/types/src/api-model/models/get-rates-request.d.ts +9 -9
  37. package/dist/types/src/api-model/models/get-rates-response.d.ts +1 -1
  38. package/dist/types/src/api-model/models/get-rates-result.d.ts +2 -2
  39. package/dist/types/src/api-model/models/get-shipment-documents-response.d.ts +1 -1
  40. package/dist/types/src/api-model/models/get-shipment-documents-result.d.ts +1 -1
  41. package/dist/types/src/api-model/models/get-tracking-response.d.ts +1 -1
  42. package/dist/types/src/api-model/models/get-tracking-result.d.ts +2 -2
  43. package/dist/types/src/api-model/models/get-unmanifested-shipments-request.d.ts +1 -1
  44. package/dist/types/src/api-model/models/get-unmanifested-shipments-response.d.ts +1 -1
  45. package/dist/types/src/api-model/models/ineligibility-reason.d.ts +1 -1
  46. package/dist/types/src/api-model/models/ineligible-rate.d.ts +1 -1
  47. package/dist/types/src/api-model/models/item.d.ts +6 -6
  48. package/dist/types/src/api-model/models/link-carrier-account-request.d.ts +2 -2
  49. package/dist/types/src/api-model/models/link-carrier-account-response.d.ts +1 -1
  50. package/dist/types/src/api-model/models/linkable-account-type.d.ts +2 -2
  51. package/dist/types/src/api-model/models/linkable-carrier.d.ts +1 -1
  52. package/dist/types/src/api-model/models/one-click-shipment-request.d.ts +9 -9
  53. package/dist/types/src/api-model/models/one-click-shipment-response.d.ts +1 -1
  54. package/dist/types/src/api-model/models/one-click-shipment-result.d.ts +5 -5
  55. package/dist/types/src/api-model/models/one-click-shipment-value-added-service.d.ts +1 -1
  56. package/dist/types/src/api-model/models/operating-hours.d.ts +1 -1
  57. package/dist/types/src/api-model/models/package-document-detail.d.ts +1 -1
  58. package/dist/types/src/api-model/models/package-document.d.ts +2 -2
  59. package/dist/types/src/api-model/models/package.d.ts +5 -5
  60. package/dist/types/src/api-model/models/print-option.d.ts +1 -1
  61. package/dist/types/src/api-model/models/promise.d.ts +1 -1
  62. package/dist/types/src/api-model/models/purchase-shipment-request.d.ts +2 -2
  63. package/dist/types/src/api-model/models/purchase-shipment-response.d.ts +1 -1
  64. package/dist/types/src/api-model/models/purchase-shipment-result.d.ts +2 -2
  65. package/dist/types/src/api-model/models/rate-item.d.ts +3 -3
  66. package/dist/types/src/api-model/models/rate.d.ts +8 -8
  67. package/dist/types/src/api-model/models/requested-document-specification.d.ts +3 -3
  68. package/dist/types/src/api-model/models/supported-document-detail.d.ts +1 -1
  69. package/dist/types/src/api-model/models/supported-document-specification.d.ts +3 -3
  70. package/dist/types/src/api-model/models/tax-detail.d.ts +1 -1
  71. package/dist/types/src/api-model/models/tracking-summary.d.ts +1 -1
  72. package/dist/types/src/api-model/models/unlink-carrier-account-request.d.ts +1 -1
  73. package/dist/types/src/api-model/models/unmanifested-carrier-information.d.ts +1 -1
  74. package/dist/types/src/api-model/models/unmanifested-shipment-location.d.ts +1 -1
  75. package/dist/types/src/api-model/models/value-added-service-details.d.ts +1 -1
  76. package/dist/types/src/api-model/models/value-added-service.d.ts +1 -1
  77. package/package.json +5 -5
@@ -9,11 +9,11 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import { ChargeComponent } from './charge-component';
13
- import { Currency } from './currency';
14
- import { Dimensions } from './dimensions';
15
- import { Item } from './item';
16
- import { Weight } from './weight';
12
+ import type { ChargeComponent } from './charge-component';
13
+ import type { Currency } from './currency';
14
+ import type { Dimensions } from './dimensions';
15
+ import type { Item } from './item';
16
+ import type { Weight } from './weight';
17
17
  /**
18
18
  * A package to be shipped through a shipping service offering.
19
19
  * @export
@@ -9,7 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import { SupportedDocumentDetail } from './supported-document-detail';
12
+ import type { SupportedDocumentDetail } from './supported-document-detail';
13
13
  /**
14
14
  * The format options available for a label.
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 { TimeWindow } from './time-window';
12
+ import type { TimeWindow } from './time-window';
13
13
  /**
14
14
  * The time windows promised for pickup and delivery events.
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 { RequestedDocumentSpecification } from './requested-document-specification';
13
- import { RequestedValueAddedService } from './requested-value-added-service';
12
+ import type { RequestedDocumentSpecification } from './requested-document-specification';
13
+ import type { RequestedValueAddedService } from './requested-value-added-service';
14
14
  /**
15
15
  * The request schema for the purchaseShipment 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 { 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 { PackageDocumentDetail } from './package-document-detail';
13
- import { Promise } from './promise';
12
+ import type { PackageDocumentDetail } from './package-document-detail';
13
+ import type { Promise } from './promise';
14
14
  /**
15
15
  * The payload for the purchaseShipment operation.
16
16
  * @export
@@ -9,9 +9,9 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import { Currency } from './currency';
13
- import { RateItemID } from './rate-item-id';
14
- import { RateItemType } from './rate-item-type';
12
+ import type { Currency } from './currency';
13
+ import type { RateItemID } from './rate-item-id';
14
+ import type { RateItemType } from './rate-item-type';
15
15
  /**
16
16
  * Rate Item for shipping (base cost, transaction fee, confirmation, insurance, etc.) Data source definition:
17
17
  * @export
@@ -9,14 +9,14 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import { AvailableValueAddedServiceGroup } from './available-value-added-service-group';
13
- import { Benefits } from './benefits';
14
- import { Currency } from './currency';
15
- import { PaymentType } from './payment-type';
16
- import { Promise } from './promise';
17
- import { RateItem } from './rate-item';
18
- import { SupportedDocumentSpecification } from './supported-document-specification';
19
- import { Weight } from './weight';
12
+ import type { AvailableValueAddedServiceGroup } from './available-value-added-service-group';
13
+ import type { Benefits } from './benefits';
14
+ import type { Currency } from './currency';
15
+ import type { PaymentType } from './payment-type';
16
+ import type { Promise } from './promise';
17
+ import type { RateItem } from './rate-item';
18
+ import type { SupportedDocumentSpecification } from './supported-document-specification';
19
+ import type { Weight } from './weight';
20
20
  /**
21
21
  * The details of a shipping service offering.
22
22
  * @export
@@ -9,9 +9,9 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import { DocumentFormat } from './document-format';
13
- import { DocumentSize } from './document-size';
14
- import { DocumentType } from './document-type';
12
+ import type { DocumentFormat } from './document-format';
13
+ import type { DocumentSize } from './document-size';
14
+ import type { DocumentType } from './document-type';
15
15
  /**
16
16
  * The document specifications requested. For calls to the purchaseShipment operation, the shipment purchase fails if the specified document specifications are not among those returned in the response to 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 { DocumentType } from './document-type';
12
+ import type { DocumentType } from './document-type';
13
13
  /**
14
14
  * The supported document types for a service offering.
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 { DocumentFormat } from './document-format';
13
- import { DocumentSize } from './document-size';
14
- import { PrintOption } from './print-option';
12
+ import type { DocumentFormat } from './document-format';
13
+ import type { DocumentSize } from './document-size';
14
+ import type { PrintOption } from './print-option';
15
15
  /**
16
16
  * Document specification that is supported for a service offering.
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 { TaxType } from './tax-type';
12
+ import type { TaxType } from './tax-type';
13
13
  /**
14
14
  * Indicates the tax specifications associated with the shipment for customs compliance purposes in certain regions.
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 { Status } from './status';
12
+ import type { Status } from './status';
13
13
  /**
14
14
  * A package status summary.
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 { ClientReferenceDetail } from './client-reference-detail';
12
+ import type { ClientReferenceDetail } from './client-reference-detail';
13
13
  /**
14
14
  * The request schema for remove the Carrier Account associated with the provided merchant.
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 { UnmanifestedShipmentLocation } from './unmanifested-shipment-location';
12
+ import type { UnmanifestedShipmentLocation } from './unmanifested-shipment-location';
13
13
  /**
14
14
  * UnmanifestedCarrierInformation like carrierId CarrierName and Location
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 { Address } from './address';
12
+ import type { Address } from './address';
13
13
  /**
14
14
  * UnmanifestedShipmentLocation info
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 { CollectOnDelivery } from './collect-on-delivery';
12
+ import type { CollectOnDelivery } from './collect-on-delivery';
13
13
  /**
14
14
  * A collection of supported value-added services.
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 { Currency } from './currency';
12
+ import type { Currency } from './currency';
13
13
  /**
14
14
  * A value-added service available for purchase with a shipment service offering.
15
15
  * @export
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@sp-api-sdk/shipping-api-v2",
3
- "author": "Vincent Mesquita <vincent.mesquita@bizon.solutions>",
3
+ "author": "Bertrand Marron <bertrand@bizon.solutions>",
4
4
  "description": "The Amazon Shipping API is designed to support outbound shipping use cases both for orders originating on Amazon-owned marketplaces as well as external channels/marketplaces. With these APIs, you can request shipping rates, create shipments, cancel shipments, and track shipments.",
5
- "version": "1.1.2",
5
+ "version": "1.2.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.6",
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": "d757ce0353f64c34db7c46df5fc2bc2716a29f57"
43
+ "gitHead": "5a245a25a9f1765c825e2178668d4b0f4e44689b"
44
44
  }