@sp-api-sdk/vendor-shipments-api-v1 1.6.15

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 (117) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +58 -0
  3. package/dist/cjs/index.js +6 -0
  4. package/dist/cjs/src/api-model/api/vendor-shipping-api.js +119 -0
  5. package/dist/cjs/src/api-model/api.js +17 -0
  6. package/dist/cjs/src/api-model/base.js +62 -0
  7. package/dist/cjs/src/api-model/common.js +137 -0
  8. package/dist/cjs/src/api-model/configuration.js +42 -0
  9. package/dist/cjs/src/api-model/index.js +19 -0
  10. package/dist/cjs/src/api-model/models/address.js +15 -0
  11. package/dist/cjs/src/api-model/models/carton-reference-details.js +15 -0
  12. package/dist/cjs/src/api-model/models/carton.js +15 -0
  13. package/dist/cjs/src/api-model/models/container-identification.js +28 -0
  14. package/dist/cjs/src/api-model/models/container-item.js +15 -0
  15. package/dist/cjs/src/api-model/models/dimensions.js +27 -0
  16. package/dist/cjs/src/api-model/models/duration.js +25 -0
  17. package/dist/cjs/src/api-model/models/expiry.js +15 -0
  18. package/dist/cjs/src/api-model/models/import-details.js +29 -0
  19. package/dist/cjs/src/api-model/models/index.js +31 -0
  20. package/dist/cjs/src/api-model/models/item-details.js +27 -0
  21. package/dist/cjs/src/api-model/models/item-quantity.js +25 -0
  22. package/dist/cjs/src/api-model/models/item.js +15 -0
  23. package/dist/cjs/src/api-model/models/location.js +15 -0
  24. package/dist/cjs/src/api-model/models/model-error.js +15 -0
  25. package/dist/cjs/src/api-model/models/money.js +15 -0
  26. package/dist/cjs/src/api-model/models/pallet.js +15 -0
  27. package/dist/cjs/src/api-model/models/party-identification.js +15 -0
  28. package/dist/cjs/src/api-model/models/route.js +15 -0
  29. package/dist/cjs/src/api-model/models/shipment-confirmation.js +49 -0
  30. package/dist/cjs/src/api-model/models/shipment-measurements.js +15 -0
  31. package/dist/cjs/src/api-model/models/stop.js +26 -0
  32. package/dist/cjs/src/api-model/models/submit-shipment-confirmations-request.js +15 -0
  33. package/dist/cjs/src/api-model/models/submit-shipment-confirmations-response.js +15 -0
  34. package/dist/cjs/src/api-model/models/tax-registration-details.js +25 -0
  35. package/dist/cjs/src/api-model/models/transaction-reference.js +15 -0
  36. package/dist/cjs/src/api-model/models/transportation-details.js +26 -0
  37. package/dist/cjs/src/api-model/models/volume.js +27 -0
  38. package/dist/cjs/src/api-model/models/weight.js +27 -0
  39. package/dist/cjs/src/client.js +35 -0
  40. package/dist/cjs/src/error.js +10 -0
  41. package/dist/es/index.js +3 -0
  42. package/dist/es/src/api-model/api/vendor-shipping-api.js +111 -0
  43. package/dist/es/src/api-model/api.js +14 -0
  44. package/dist/es/src/api-model/base.js +56 -0
  45. package/dist/es/src/api-model/common.js +125 -0
  46. package/dist/es/src/api-model/configuration.js +38 -0
  47. package/dist/es/src/api-model/index.js +16 -0
  48. package/dist/es/src/api-model/models/address.js +14 -0
  49. package/dist/es/src/api-model/models/carton-reference-details.js +14 -0
  50. package/dist/es/src/api-model/models/carton.js +14 -0
  51. package/dist/es/src/api-model/models/container-identification.js +25 -0
  52. package/dist/es/src/api-model/models/container-item.js +14 -0
  53. package/dist/es/src/api-model/models/dimensions.js +24 -0
  54. package/dist/es/src/api-model/models/duration.js +22 -0
  55. package/dist/es/src/api-model/models/expiry.js +14 -0
  56. package/dist/es/src/api-model/models/import-details.js +26 -0
  57. package/dist/es/src/api-model/models/index.js +28 -0
  58. package/dist/es/src/api-model/models/item-details.js +24 -0
  59. package/dist/es/src/api-model/models/item-quantity.js +22 -0
  60. package/dist/es/src/api-model/models/item.js +14 -0
  61. package/dist/es/src/api-model/models/location.js +14 -0
  62. package/dist/es/src/api-model/models/model-error.js +14 -0
  63. package/dist/es/src/api-model/models/money.js +14 -0
  64. package/dist/es/src/api-model/models/pallet.js +14 -0
  65. package/dist/es/src/api-model/models/party-identification.js +14 -0
  66. package/dist/es/src/api-model/models/route.js +14 -0
  67. package/dist/es/src/api-model/models/shipment-confirmation.js +46 -0
  68. package/dist/es/src/api-model/models/shipment-measurements.js +14 -0
  69. package/dist/es/src/api-model/models/stop.js +23 -0
  70. package/dist/es/src/api-model/models/submit-shipment-confirmations-request.js +14 -0
  71. package/dist/es/src/api-model/models/submit-shipment-confirmations-response.js +14 -0
  72. package/dist/es/src/api-model/models/tax-registration-details.js +22 -0
  73. package/dist/es/src/api-model/models/transaction-reference.js +14 -0
  74. package/dist/es/src/api-model/models/transportation-details.js +23 -0
  75. package/dist/es/src/api-model/models/volume.js +24 -0
  76. package/dist/es/src/api-model/models/weight.js +24 -0
  77. package/dist/es/src/client.js +31 -0
  78. package/dist/es/src/error.js +6 -0
  79. package/dist/types/index.d.ts +3 -0
  80. package/dist/types/src/api-model/api/vendor-shipping-api.d.ts +84 -0
  81. package/dist/types/src/api-model/api.d.ts +12 -0
  82. package/dist/types/src/api-model/base.d.ts +55 -0
  83. package/dist/types/src/api-model/common.d.ts +65 -0
  84. package/dist/types/src/api-model/configuration.d.ts +83 -0
  85. package/dist/types/src/api-model/index.d.ts +14 -0
  86. package/dist/types/src/api-model/models/address.d.ts +84 -0
  87. package/dist/types/src/api-model/models/carton-reference-details.d.ts +30 -0
  88. package/dist/types/src/api-model/models/carton.d.ts +58 -0
  89. package/dist/types/src/api-model/models/container-identification.d.ts +41 -0
  90. package/dist/types/src/api-model/models/container-item.d.ts +38 -0
  91. package/dist/types/src/api-model/models/dimensions.d.ts +52 -0
  92. package/dist/types/src/api-model/models/duration.d.ts +38 -0
  93. package/dist/types/src/api-model/models/expiry.d.ts +37 -0
  94. package/dist/types/src/api-model/models/import-details.d.ts +68 -0
  95. package/dist/types/src/api-model/models/index.d.ts +28 -0
  96. package/dist/types/src/api-model/models/item-details.d.ts +60 -0
  97. package/dist/types/src/api-model/models/item-quantity.d.ts +44 -0
  98. package/dist/types/src/api-model/models/item.d.ts +50 -0
  99. package/dist/types/src/api-model/models/location.d.ts +36 -0
  100. package/dist/types/src/api-model/models/model-error.d.ts +36 -0
  101. package/dist/types/src/api-model/models/money.d.ts +30 -0
  102. package/dist/types/src/api-model/models/pallet.d.ts +65 -0
  103. package/dist/types/src/api-model/models/party-identification.d.ts +38 -0
  104. package/dist/types/src/api-model/models/route.d.ts +25 -0
  105. package/dist/types/src/api-model/models/shipment-confirmation.d.ts +157 -0
  106. package/dist/types/src/api-model/models/shipment-measurements.d.ts +44 -0
  107. package/dist/types/src/api-model/models/stop.d.ts +52 -0
  108. package/dist/types/src/api-model/models/submit-shipment-confirmations-request.d.ts +25 -0
  109. package/dist/types/src/api-model/models/submit-shipment-confirmations-response.d.ts +31 -0
  110. package/dist/types/src/api-model/models/tax-registration-details.d.ts +38 -0
  111. package/dist/types/src/api-model/models/transaction-reference.d.ts +24 -0
  112. package/dist/types/src/api-model/models/transportation-details.d.ts +51 -0
  113. package/dist/types/src/api-model/models/volume.d.ts +40 -0
  114. package/dist/types/src/api-model/models/weight.d.ts +40 -0
  115. package/dist/types/src/client.d.ts +13 -0
  116. package/dist/types/src/error.d.ts +3 -0
  117. package/package.json +53 -0
@@ -0,0 +1,14 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Selling Partner API for Retail Procurement Shipments
5
+ * The Selling Partner API for Retail Procurement Shipments provides programmatic access to retail shipping data for vendors.
6
+ *
7
+ * The version of the OpenAPI document: v1
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ export {};
@@ -0,0 +1,14 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Selling Partner API for Retail Procurement Shipments
5
+ * The Selling Partner API for Retail Procurement Shipments provides programmatic access to retail shipping data for vendors.
6
+ *
7
+ * The version of the OpenAPI document: v1
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ export {};
@@ -0,0 +1,14 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Selling Partner API for Retail Procurement Shipments
5
+ * The Selling Partner API for Retail Procurement Shipments provides programmatic access to retail shipping data for vendors.
6
+ *
7
+ * The version of the OpenAPI document: v1
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ export {};
@@ -0,0 +1,14 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Selling Partner API for Retail Procurement Shipments
5
+ * The Selling Partner API for Retail Procurement Shipments provides programmatic access to retail shipping data for vendors.
6
+ *
7
+ * The version of the OpenAPI document: v1
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ export {};
@@ -0,0 +1,14 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Selling Partner API for Retail Procurement Shipments
5
+ * The Selling Partner API for Retail Procurement Shipments provides programmatic access to retail shipping data for vendors.
6
+ *
7
+ * The version of the OpenAPI document: v1
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ export {};
@@ -0,0 +1,14 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Selling Partner API for Retail Procurement Shipments
5
+ * The Selling Partner API for Retail Procurement Shipments provides programmatic access to retail shipping data for vendors.
6
+ *
7
+ * The version of the OpenAPI document: v1
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ export {};
@@ -0,0 +1,14 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Selling Partner API for Retail Procurement Shipments
5
+ * The Selling Partner API for Retail Procurement Shipments provides programmatic access to retail shipping data for vendors.
6
+ *
7
+ * The version of the OpenAPI document: v1
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ export {};
@@ -0,0 +1,46 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Selling Partner API for Retail Procurement Shipments
5
+ * The Selling Partner API for Retail Procurement Shipments provides programmatic access to retail shipping data for vendors.
6
+ *
7
+ * The version of the OpenAPI document: v1
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ /**
15
+ * @export
16
+ * @enum {string}
17
+ */
18
+ export var ShipmentConfirmationShipmentConfirmationTypeEnum;
19
+ (function (ShipmentConfirmationShipmentConfirmationTypeEnum) {
20
+ ShipmentConfirmationShipmentConfirmationTypeEnum["Original"] = "Original";
21
+ ShipmentConfirmationShipmentConfirmationTypeEnum["Replace"] = "Replace";
22
+ })(ShipmentConfirmationShipmentConfirmationTypeEnum || (ShipmentConfirmationShipmentConfirmationTypeEnum = {}));
23
+ /**
24
+ * @export
25
+ * @enum {string}
26
+ */
27
+ export var ShipmentConfirmationShipmentTypeEnum;
28
+ (function (ShipmentConfirmationShipmentTypeEnum) {
29
+ ShipmentConfirmationShipmentTypeEnum["TruckLoad"] = "TruckLoad";
30
+ ShipmentConfirmationShipmentTypeEnum["LessThanTruckLoad"] = "LessThanTruckLoad";
31
+ ShipmentConfirmationShipmentTypeEnum["SmallParcel"] = "SmallParcel";
32
+ })(ShipmentConfirmationShipmentTypeEnum || (ShipmentConfirmationShipmentTypeEnum = {}));
33
+ /**
34
+ * @export
35
+ * @enum {string}
36
+ */
37
+ export var ShipmentConfirmationShipmentStructureEnum;
38
+ (function (ShipmentConfirmationShipmentStructureEnum) {
39
+ ShipmentConfirmationShipmentStructureEnum["PalletizedAssortmentCase"] = "PalletizedAssortmentCase";
40
+ ShipmentConfirmationShipmentStructureEnum["LooseAssortmentCase"] = "LooseAssortmentCase";
41
+ ShipmentConfirmationShipmentStructureEnum["PalletOfItems"] = "PalletOfItems";
42
+ ShipmentConfirmationShipmentStructureEnum["PalletizedStandardCase"] = "PalletizedStandardCase";
43
+ ShipmentConfirmationShipmentStructureEnum["LooseStandardCase"] = "LooseStandardCase";
44
+ ShipmentConfirmationShipmentStructureEnum["MasterPallet"] = "MasterPallet";
45
+ ShipmentConfirmationShipmentStructureEnum["MasterCase"] = "MasterCase";
46
+ })(ShipmentConfirmationShipmentStructureEnum || (ShipmentConfirmationShipmentStructureEnum = {}));
@@ -0,0 +1,14 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Selling Partner API for Retail Procurement Shipments
5
+ * The Selling Partner API for Retail Procurement Shipments provides programmatic access to retail shipping data for vendors.
6
+ *
7
+ * The version of the OpenAPI document: v1
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ export {};
@@ -0,0 +1,23 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Selling Partner API for Retail Procurement Shipments
5
+ * The Selling Partner API for Retail Procurement Shipments provides programmatic access to retail shipping data for vendors.
6
+ *
7
+ * The version of the OpenAPI document: v1
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ /**
15
+ * @export
16
+ * @enum {string}
17
+ */
18
+ export var StopFunctionCodeEnum;
19
+ (function (StopFunctionCodeEnum) {
20
+ StopFunctionCodeEnum["PortOfDischarge"] = "PortOfDischarge";
21
+ StopFunctionCodeEnum["FreightPayableAt"] = "FreightPayableAt";
22
+ StopFunctionCodeEnum["PortOfLoading"] = "PortOfLoading";
23
+ })(StopFunctionCodeEnum || (StopFunctionCodeEnum = {}));
@@ -0,0 +1,14 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Selling Partner API for Retail Procurement Shipments
5
+ * The Selling Partner API for Retail Procurement Shipments provides programmatic access to retail shipping data for vendors.
6
+ *
7
+ * The version of the OpenAPI document: v1
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ export {};
@@ -0,0 +1,14 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Selling Partner API for Retail Procurement Shipments
5
+ * The Selling Partner API for Retail Procurement Shipments provides programmatic access to retail shipping data for vendors.
6
+ *
7
+ * The version of the OpenAPI document: v1
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ export {};
@@ -0,0 +1,22 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Selling Partner API for Retail Procurement Shipments
5
+ * The Selling Partner API for Retail Procurement Shipments provides programmatic access to retail shipping data for vendors.
6
+ *
7
+ * The version of the OpenAPI document: v1
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ /**
15
+ * @export
16
+ * @enum {string}
17
+ */
18
+ export var TaxRegistrationDetailsTaxRegistrationTypeEnum;
19
+ (function (TaxRegistrationDetailsTaxRegistrationTypeEnum) {
20
+ TaxRegistrationDetailsTaxRegistrationTypeEnum["Vat"] = "VAT";
21
+ TaxRegistrationDetailsTaxRegistrationTypeEnum["Gst"] = "GST";
22
+ })(TaxRegistrationDetailsTaxRegistrationTypeEnum || (TaxRegistrationDetailsTaxRegistrationTypeEnum = {}));
@@ -0,0 +1,14 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Selling Partner API for Retail Procurement Shipments
5
+ * The Selling Partner API for Retail Procurement Shipments provides programmatic access to retail shipping data for vendors.
6
+ *
7
+ * The version of the OpenAPI document: v1
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ export {};
@@ -0,0 +1,23 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Selling Partner API for Retail Procurement Shipments
5
+ * The Selling Partner API for Retail Procurement Shipments provides programmatic access to retail shipping data for vendors.
6
+ *
7
+ * The version of the OpenAPI document: v1
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ /**
15
+ * @export
16
+ * @enum {string}
17
+ */
18
+ export var TransportationDetailsTransportationModeEnum;
19
+ (function (TransportationDetailsTransportationModeEnum) {
20
+ TransportationDetailsTransportationModeEnum["Road"] = "Road";
21
+ TransportationDetailsTransportationModeEnum["Air"] = "Air";
22
+ TransportationDetailsTransportationModeEnum["Ocean"] = "Ocean";
23
+ })(TransportationDetailsTransportationModeEnum || (TransportationDetailsTransportationModeEnum = {}));
@@ -0,0 +1,24 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Selling Partner API for Retail Procurement Shipments
5
+ * The Selling Partner API for Retail Procurement Shipments provides programmatic access to retail shipping data for vendors.
6
+ *
7
+ * The version of the OpenAPI document: v1
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ /**
15
+ * @export
16
+ * @enum {string}
17
+ */
18
+ export var VolumeUnitOfMeasureEnum;
19
+ (function (VolumeUnitOfMeasureEnum) {
20
+ VolumeUnitOfMeasureEnum["CuFt"] = "CuFt";
21
+ VolumeUnitOfMeasureEnum["CuIn"] = "CuIn";
22
+ VolumeUnitOfMeasureEnum["CuM"] = "CuM";
23
+ VolumeUnitOfMeasureEnum["CuY"] = "CuY";
24
+ })(VolumeUnitOfMeasureEnum || (VolumeUnitOfMeasureEnum = {}));
@@ -0,0 +1,24 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Selling Partner API for Retail Procurement Shipments
5
+ * The Selling Partner API for Retail Procurement Shipments provides programmatic access to retail shipping data for vendors.
6
+ *
7
+ * The version of the OpenAPI document: v1
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ /**
15
+ * @export
16
+ * @enum {string}
17
+ */
18
+ export var WeightUnitOfMeasureEnum;
19
+ (function (WeightUnitOfMeasureEnum) {
20
+ WeightUnitOfMeasureEnum["G"] = "G";
21
+ WeightUnitOfMeasureEnum["Kg"] = "Kg";
22
+ WeightUnitOfMeasureEnum["Oz"] = "Oz";
23
+ WeightUnitOfMeasureEnum["Lb"] = "Lb";
24
+ })(WeightUnitOfMeasureEnum || (WeightUnitOfMeasureEnum = {}));
@@ -0,0 +1,31 @@
1
+ /* eslint-disable prefer-regex-literals */
2
+ import { endpoints, awsRegionByCode, createAxiosInstance } from '@sp-api-sdk/common';
3
+ import { Configuration, VendorShippingApi } from './api-model';
4
+ import { VendorShipmentsApiError } from './error';
5
+ export const RATE_LIMITS = [
6
+ {
7
+ method: 'post',
8
+ urlRegex: new RegExp('^/vendor/shipping/v1/shipmentConfirmations$'),
9
+ rate: 10,
10
+ burst: 10,
11
+ },
12
+ ];
13
+ export class VendorShipmentsApiClient extends VendorShippingApi {
14
+ constructor(parameters) {
15
+ const region = awsRegionByCode[parameters.region] ?? parameters.region;
16
+ const { rateLimiting, ...clientParameters } = parameters;
17
+ const axiosParameters = { ...clientParameters, region };
18
+ if (rateLimiting?.retry) {
19
+ axiosParameters.rateLimits = RATE_LIMITS;
20
+ axiosParameters.onRetry = rateLimiting.onRetry;
21
+ }
22
+ const axiosInstance = createAxiosInstance(axiosParameters);
23
+ const configuration = new Configuration();
24
+ const environment = parameters.sandbox ? 'sandbox' : 'production';
25
+ const endpoint = endpoints[environment][region];
26
+ if (!endpoint) {
27
+ throw new VendorShipmentsApiError(`Unknown region : ${region}`);
28
+ }
29
+ super(configuration, endpoint, axiosInstance);
30
+ }
31
+ }
@@ -0,0 +1,6 @@
1
+ export class VendorShipmentsApiError extends Error {
2
+ constructor(message) {
3
+ super(message);
4
+ this.name = 'VendorShipmentsApiError';
5
+ }
6
+ }
@@ -0,0 +1,3 @@
1
+ export * from './src/client';
2
+ export * from './src/error';
3
+ export * from './src/api-model/models';
@@ -0,0 +1,84 @@
1
+ /**
2
+ * Selling Partner API for Retail Procurement Shipments
3
+ * The Selling Partner API for Retail Procurement Shipments provides programmatic access to retail shipping data for vendors.
4
+ *
5
+ * The version of the OpenAPI document: v1
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import { AxiosPromise, AxiosInstance } from 'axios';
13
+ import { Configuration } from '../configuration';
14
+ import { RequestArgs, BaseAPI } from '../base';
15
+ import { SubmitShipmentConfirmationsRequest } from '../models';
16
+ import { SubmitShipmentConfirmationsResponse } from '../models';
17
+ /**
18
+ * VendorShippingApi - axios parameter creator
19
+ * @export
20
+ */
21
+ export declare const VendorShippingApiAxiosParamCreator: (configuration?: Configuration | undefined) => {
22
+ /**
23
+ * Submits one or more shipment confirmations for vendor orders. **Usage Plans:** | Plan type | Rate (requests per second) | Burst | | ---- | ---- | ---- | |Default| 10 | 10 | |Selling partner specific| Variable | Variable | The x-amzn-RateLimit-Limit response header returns the usage plan rate limits that were applied to the requested operation. Rate limits for some selling partners will vary from the default rate and burst shown in the table above. For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
24
+ * @param {SubmitShipmentConfirmationsRequest} body
25
+ * @param {*} [options] Override http request option.
26
+ * @throws {RequiredError}
27
+ */
28
+ submitShipmentConfirmations: (body: SubmitShipmentConfirmationsRequest, options?: any) => Promise<RequestArgs>;
29
+ };
30
+ /**
31
+ * VendorShippingApi - functional programming interface
32
+ * @export
33
+ */
34
+ export declare const VendorShippingApiFp: (configuration?: Configuration | undefined) => {
35
+ /**
36
+ * Submits one or more shipment confirmations for vendor orders. **Usage Plans:** | Plan type | Rate (requests per second) | Burst | | ---- | ---- | ---- | |Default| 10 | 10 | |Selling partner specific| Variable | Variable | The x-amzn-RateLimit-Limit response header returns the usage plan rate limits that were applied to the requested operation. Rate limits for some selling partners will vary from the default rate and burst shown in the table above. For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
37
+ * @param {SubmitShipmentConfirmationsRequest} body
38
+ * @param {*} [options] Override http request option.
39
+ * @throws {RequiredError}
40
+ */
41
+ submitShipmentConfirmations(body: SubmitShipmentConfirmationsRequest, options?: any): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise<SubmitShipmentConfirmationsResponse>>;
42
+ };
43
+ /**
44
+ * VendorShippingApi - factory interface
45
+ * @export
46
+ */
47
+ export declare const VendorShippingApiFactory: (configuration?: Configuration | undefined, basePath?: string | undefined, axios?: AxiosInstance | undefined) => {
48
+ /**
49
+ * Submits one or more shipment confirmations for vendor orders. **Usage Plans:** | Plan type | Rate (requests per second) | Burst | | ---- | ---- | ---- | |Default| 10 | 10 | |Selling partner specific| Variable | Variable | The x-amzn-RateLimit-Limit response header returns the usage plan rate limits that were applied to the requested operation. Rate limits for some selling partners will vary from the default rate and burst shown in the table above. For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
50
+ * @param {SubmitShipmentConfirmationsRequest} body
51
+ * @param {*} [options] Override http request option.
52
+ * @throws {RequiredError}
53
+ */
54
+ submitShipmentConfirmations(body: SubmitShipmentConfirmationsRequest, options?: any): AxiosPromise<SubmitShipmentConfirmationsResponse>;
55
+ };
56
+ /**
57
+ * Request parameters for submitShipmentConfirmations operation in VendorShippingApi.
58
+ * @export
59
+ * @interface VendorShippingApiSubmitShipmentConfirmationsRequest
60
+ */
61
+ export interface VendorShippingApiSubmitShipmentConfirmationsRequest {
62
+ /**
63
+ *
64
+ * @type {SubmitShipmentConfirmationsRequest}
65
+ * @memberof VendorShippingApiSubmitShipmentConfirmations
66
+ */
67
+ readonly body: SubmitShipmentConfirmationsRequest;
68
+ }
69
+ /**
70
+ * VendorShippingApi - object-oriented interface
71
+ * @export
72
+ * @class VendorShippingApi
73
+ * @extends {BaseAPI}
74
+ */
75
+ export declare class VendorShippingApi extends BaseAPI {
76
+ /**
77
+ * Submits one or more shipment confirmations for vendor orders. **Usage Plans:** | Plan type | Rate (requests per second) | Burst | | ---- | ---- | ---- | |Default| 10 | 10 | |Selling partner specific| Variable | Variable | The x-amzn-RateLimit-Limit response header returns the usage plan rate limits that were applied to the requested operation. Rate limits for some selling partners will vary from the default rate and burst shown in the table above. For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
78
+ * @param {VendorShippingApiSubmitShipmentConfirmationsRequest} requestParameters Request parameters.
79
+ * @param {*} [options] Override http request option.
80
+ * @throws {RequiredError}
81
+ * @memberof VendorShippingApi
82
+ */
83
+ submitShipmentConfirmations(requestParameters: VendorShippingApiSubmitShipmentConfirmationsRequest, options?: any): Promise<import("axios").AxiosResponse<SubmitShipmentConfirmationsResponse>>;
84
+ }