@sp-api-sdk/amazon-warehousing-and-distribution-api-2024-05-09 4.1.3 → 4.1.4

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 (37) hide show
  1. package/dist/cjs/api-model/api/amazon-warehousing-and-distribution-api.js +18 -18
  2. package/dist/cjs/api-model/configuration.js +2 -2
  3. package/dist/cjs/api-model/models/carrier-code-type.js +1 -1
  4. package/dist/cjs/api-model/models/confirmation-mode.js +1 -1
  5. package/dist/cjs/api-model/models/dimension-unit-of-measurement.js +1 -1
  6. package/dist/cjs/api-model/models/distribution-package-type.js +1 -1
  7. package/dist/cjs/api-model/models/inbound-eligibility-status.js +1 -1
  8. package/dist/cjs/api-model/models/inbound-shipment-status.js +1 -1
  9. package/dist/cjs/api-model/models/inbound-status.js +1 -1
  10. package/dist/cjs/api-model/models/inventory-unit-of-measurement.js +1 -1
  11. package/dist/cjs/api-model/models/label-owner.js +1 -1
  12. package/dist/cjs/api-model/models/label-status.js +1 -1
  13. package/dist/cjs/api-model/models/outbound-shipment-status.js +1 -1
  14. package/dist/cjs/api-model/models/prep-category.js +1 -1
  15. package/dist/cjs/api-model/models/prep-owner.js +1 -1
  16. package/dist/cjs/api-model/models/replenishment-order-status.js +1 -1
  17. package/dist/cjs/api-model/models/volume-unit-of-measurement.js +1 -1
  18. package/dist/cjs/api-model/models/weight-unit-of-measurement.js +1 -1
  19. package/dist/es/api-model/api/amazon-warehousing-and-distribution-api.js +18 -18
  20. package/dist/es/api-model/configuration.js +2 -2
  21. package/dist/es/api-model/models/carrier-code-type.js +1 -1
  22. package/dist/es/api-model/models/confirmation-mode.js +1 -1
  23. package/dist/es/api-model/models/dimension-unit-of-measurement.js +1 -1
  24. package/dist/es/api-model/models/distribution-package-type.js +1 -1
  25. package/dist/es/api-model/models/inbound-eligibility-status.js +1 -1
  26. package/dist/es/api-model/models/inbound-shipment-status.js +1 -1
  27. package/dist/es/api-model/models/inbound-status.js +1 -1
  28. package/dist/es/api-model/models/inventory-unit-of-measurement.js +1 -1
  29. package/dist/es/api-model/models/label-owner.js +1 -1
  30. package/dist/es/api-model/models/label-status.js +1 -1
  31. package/dist/es/api-model/models/outbound-shipment-status.js +1 -1
  32. package/dist/es/api-model/models/prep-category.js +1 -1
  33. package/dist/es/api-model/models/prep-owner.js +1 -1
  34. package/dist/es/api-model/models/replenishment-order-status.js +1 -1
  35. package/dist/es/api-model/models/volume-unit-of-measurement.js +1 -1
  36. package/dist/es/api-model/models/weight-unit-of-measurement.js +1 -1
  37. package/package.json +4 -4
@@ -38,7 +38,7 @@ const AmazonWarehousingAndDistributionApiAxiosParamCreator = function (configura
38
38
  // verify required parameter 'orderId' is not null or undefined
39
39
  (0, common_1.assertParamExists)('cancelInbound', 'orderId', orderId);
40
40
  const localVarPath = `/awd/2024-05-09/inboundOrders/{orderId}/cancellation`
41
- .replace(`{${"orderId"}}`, encodeURIComponent(String(orderId)));
41
+ .replace('{orderId}', encodeURIComponent(String(orderId)));
42
42
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
43
43
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
44
44
  let baseOptions;
@@ -97,7 +97,7 @@ const AmazonWarehousingAndDistributionApiAxiosParamCreator = function (configura
97
97
  // verify required parameter 'orderId' is not null or undefined
98
98
  (0, common_1.assertParamExists)('confirmInbound', 'orderId', orderId);
99
99
  const localVarPath = `/awd/2024-05-09/inboundOrders/{orderId}/confirmation`
100
- .replace(`{${"orderId"}}`, encodeURIComponent(String(orderId)));
100
+ .replace('{orderId}', encodeURIComponent(String(orderId)));
101
101
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
102
102
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
103
103
  let baseOptions;
@@ -126,7 +126,7 @@ const AmazonWarehousingAndDistributionApiAxiosParamCreator = function (configura
126
126
  // verify required parameter 'orderId' is not null or undefined
127
127
  (0, common_1.assertParamExists)('confirmReplenishmentOrder', 'orderId', orderId);
128
128
  const localVarPath = `/awd/2024-05-09/replenishmentOrders/{orderId}/confirmation`
129
- .replace(`{${"orderId"}}`, encodeURIComponent(String(orderId)));
129
+ .replace('{orderId}', encodeURIComponent(String(orderId)));
130
130
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
131
131
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
132
132
  let baseOptions;
@@ -215,7 +215,7 @@ const AmazonWarehousingAndDistributionApiAxiosParamCreator = function (configura
215
215
  // verify required parameter 'orderId' is not null or undefined
216
216
  (0, common_1.assertParamExists)('getInbound', 'orderId', orderId);
217
217
  const localVarPath = `/awd/2024-05-09/inboundOrders/{orderId}`
218
- .replace(`{${"orderId"}}`, encodeURIComponent(String(orderId)));
218
+ .replace('{orderId}', encodeURIComponent(String(orderId)));
219
219
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
220
220
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
221
221
  let baseOptions;
@@ -245,7 +245,7 @@ const AmazonWarehousingAndDistributionApiAxiosParamCreator = function (configura
245
245
  // verify required parameter 'shipmentId' is not null or undefined
246
246
  (0, common_1.assertParamExists)('getInboundShipment', 'shipmentId', shipmentId);
247
247
  const localVarPath = `/awd/2024-05-09/inboundShipments/{shipmentId}`
248
- .replace(`{${"shipmentId"}}`, encodeURIComponent(String(shipmentId)));
248
+ .replace('{shipmentId}', encodeURIComponent(String(shipmentId)));
249
249
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
250
250
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
251
251
  let baseOptions;
@@ -279,7 +279,7 @@ const AmazonWarehousingAndDistributionApiAxiosParamCreator = function (configura
279
279
  // verify required parameter 'shipmentId' is not null or undefined
280
280
  (0, common_1.assertParamExists)('getInboundShipmentLabels', 'shipmentId', shipmentId);
281
281
  const localVarPath = `/awd/2024-05-09/inboundShipments/{shipmentId}/labels`
282
- .replace(`{${"shipmentId"}}`, encodeURIComponent(String(shipmentId)));
282
+ .replace('{shipmentId}', encodeURIComponent(String(shipmentId)));
283
283
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
284
284
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
285
285
  let baseOptions;
@@ -314,7 +314,7 @@ const AmazonWarehousingAndDistributionApiAxiosParamCreator = function (configura
314
314
  // verify required parameter 'orderId' is not null or undefined
315
315
  (0, common_1.assertParamExists)('getReplenishmentOrder', 'orderId', orderId);
316
316
  const localVarPath = `/awd/2024-05-09/replenishmentOrders/{orderId}`
317
- .replace(`{${"orderId"}}`, encodeURIComponent(String(orderId)));
317
+ .replace('{orderId}', encodeURIComponent(String(orderId)));
318
318
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
319
319
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
320
320
  let baseOptions;
@@ -497,7 +497,7 @@ const AmazonWarehousingAndDistributionApiAxiosParamCreator = function (configura
497
497
  // verify required parameter 'body' is not null or undefined
498
498
  (0, common_1.assertParamExists)('updateInbound', 'body', body);
499
499
  const localVarPath = `/awd/2024-05-09/inboundOrders/{orderId}`
500
- .replace(`{${"orderId"}}`, encodeURIComponent(String(orderId)));
500
+ .replace('{orderId}', encodeURIComponent(String(orderId)));
501
501
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
502
502
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
503
503
  let baseOptions;
@@ -531,7 +531,7 @@ const AmazonWarehousingAndDistributionApiAxiosParamCreator = function (configura
531
531
  // verify required parameter 'body' is not null or undefined
532
532
  (0, common_1.assertParamExists)('updateInboundShipmentTransportDetails', 'body', body);
533
533
  const localVarPath = `/awd/2024-05-09/inboundShipments/{shipmentId}/transport`
534
- .replace(`{${"shipmentId"}}`, encodeURIComponent(String(shipmentId)));
534
+ .replace('{shipmentId}', encodeURIComponent(String(shipmentId)));
535
535
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
536
536
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
537
537
  let baseOptions;
@@ -1050,23 +1050,23 @@ class AmazonWarehousingAndDistributionApi extends base_1.BaseAPI {
1050
1050
  exports.AmazonWarehousingAndDistributionApi = AmazonWarehousingAndDistributionApi;
1051
1051
  exports.GetInboundShipmentSkuQuantitiesEnum = {
1052
1052
  Show: 'SHOW',
1053
- Hide: 'HIDE'
1053
+ Hide: 'HIDE',
1054
1054
  };
1055
1055
  exports.GetInboundShipmentLabelsPageTypeEnum = {
1056
1056
  ThermalNonpcp: 'THERMAL_NONPCP',
1057
1057
  PlainPaper: 'PLAIN_PAPER',
1058
- Letter6: 'LETTER_6'
1058
+ Letter6: 'LETTER_6',
1059
1059
  };
1060
1060
  exports.GetInboundShipmentLabelsFormatTypeEnum = {
1061
- Pdf: 'PDF'
1061
+ Pdf: 'PDF',
1062
1062
  };
1063
1063
  exports.ListInboundShipmentsSortByEnum = {
1064
1064
  UpdatedAt: 'UPDATED_AT',
1065
- CreatedAt: 'CREATED_AT'
1065
+ CreatedAt: 'CREATED_AT',
1066
1066
  };
1067
1067
  exports.ListInboundShipmentsSortOrderEnum = {
1068
1068
  Ascending: 'ASCENDING',
1069
- Descending: 'DESCENDING'
1069
+ Descending: 'DESCENDING',
1070
1070
  };
1071
1071
  exports.ListInboundShipmentsShipmentStatusEnum = {
1072
1072
  Created: 'CREATED',
@@ -1075,17 +1075,17 @@ exports.ListInboundShipmentsShipmentStatusEnum = {
1075
1075
  Receiving: 'RECEIVING',
1076
1076
  Delivered: 'DELIVERED',
1077
1077
  Closed: 'CLOSED',
1078
- Cancelled: 'CANCELLED'
1078
+ Cancelled: 'CANCELLED',
1079
1079
  };
1080
1080
  exports.ListInventorySortOrderEnum = {
1081
1081
  Ascending: 'ASCENDING',
1082
- Descending: 'DESCENDING'
1082
+ Descending: 'DESCENDING',
1083
1083
  };
1084
1084
  exports.ListInventoryDetailsEnum = {
1085
1085
  Show: 'SHOW',
1086
- Hide: 'HIDE'
1086
+ Hide: 'HIDE',
1087
1087
  };
1088
1088
  exports.ListReplenishmentOrdersSortOrderEnum = {
1089
1089
  Ascending: 'ASCENDING',
1090
- Descending: 'DESCENDING'
1090
+ Descending: 'DESCENDING',
1091
1091
  };
@@ -91,8 +91,8 @@ class Configuration {
91
91
  * @return True if the given MIME is JSON, false otherwise.
92
92
  */
93
93
  isJsonMime(mime) {
94
- const jsonMime = new RegExp('^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$', 'i');
95
- return mime !== null && (jsonMime.test(mime) || mime.toLowerCase() === 'application/json-patch+json');
94
+ const jsonMime = /^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$/i;
95
+ return mime !== null && jsonMime.test(mime);
96
96
  }
97
97
  }
98
98
  exports.Configuration = Configuration;
@@ -18,5 +18,5 @@ exports.CarrierCodeType = void 0;
18
18
  * Denotes the type for the carrier.
19
19
  */
20
20
  exports.CarrierCodeType = {
21
- Scac: 'SCAC'
21
+ Scac: 'SCAC',
22
22
  };
@@ -19,5 +19,5 @@ exports.ConfirmationMode = void 0;
19
19
  */
20
20
  exports.ConfirmationMode = {
21
21
  Auto: 'AUTO',
22
- Manual: 'MANUAL'
22
+ Manual: 'MANUAL',
23
23
  };
@@ -19,5 +19,5 @@ exports.DimensionUnitOfMeasurement = void 0;
19
19
  */
20
20
  exports.DimensionUnitOfMeasurement = {
21
21
  Inches: 'INCHES',
22
- Centimeters: 'CENTIMETERS'
22
+ Centimeters: 'CENTIMETERS',
23
23
  };
@@ -19,5 +19,5 @@ exports.DistributionPackageType = void 0;
19
19
  */
20
20
  exports.DistributionPackageType = {
21
21
  Case: 'CASE',
22
- Pallet: 'PALLET'
22
+ Pallet: 'PALLET',
23
23
  };
@@ -19,5 +19,5 @@ exports.InboundEligibilityStatus = void 0;
19
19
  */
20
20
  exports.InboundEligibilityStatus = {
21
21
  Eligible: 'ELIGIBLE',
22
- Ineligible: 'INELIGIBLE'
22
+ Ineligible: 'INELIGIBLE',
23
23
  };
@@ -24,5 +24,5 @@ exports.InboundShipmentStatus = {
24
24
  Receiving: 'RECEIVING',
25
25
  Delivered: 'DELIVERED',
26
26
  Closed: 'CLOSED',
27
- Cancelled: 'CANCELLED'
27
+ Cancelled: 'CANCELLED',
28
28
  };
@@ -23,5 +23,5 @@ exports.InboundStatus = {
23
23
  Confirmed: 'CONFIRMED',
24
24
  Closed: 'CLOSED',
25
25
  Expired: 'EXPIRED',
26
- Cancelled: 'CANCELLED'
26
+ Cancelled: 'CANCELLED',
27
27
  };
@@ -20,5 +20,5 @@ exports.InventoryUnitOfMeasurement = void 0;
20
20
  exports.InventoryUnitOfMeasurement = {
21
21
  ProductUnits: 'PRODUCT_UNITS',
22
22
  Cases: 'CASES',
23
- Pallets: 'PALLETS'
23
+ Pallets: 'PALLETS',
24
24
  };
@@ -19,5 +19,5 @@ exports.LabelOwner = void 0;
19
19
  */
20
20
  exports.LabelOwner = {
21
21
  Amazon: 'AMAZON',
22
- Self: 'SELF'
22
+ Self: 'SELF',
23
23
  };
@@ -21,5 +21,5 @@ exports.LabelStatus = {
21
21
  Generating: 'GENERATING',
22
22
  Generated: 'GENERATED',
23
23
  GenerationFailed: 'GENERATION_FAILED',
24
- NotReady: 'NOT_READY'
24
+ NotReady: 'NOT_READY',
25
25
  };
@@ -25,5 +25,5 @@ exports.OutboundShipmentStatus = {
25
25
  Received: 'RECEIVED',
26
26
  Closed: 'CLOSED',
27
27
  Cancelled: 'CANCELLED',
28
- Failed: 'FAILED'
28
+ Failed: 'FAILED',
29
29
  };
@@ -31,5 +31,5 @@ exports.PrepCategory = {
31
31
  Small: 'SMALL',
32
32
  Textile: 'TEXTILE',
33
33
  NoPrep: 'NO_PREP',
34
- Unknown: 'UNKNOWN'
34
+ Unknown: 'UNKNOWN',
35
35
  };
@@ -19,5 +19,5 @@ exports.PrepOwner = void 0;
19
19
  */
20
20
  exports.PrepOwner = {
21
21
  Amazon: 'AMAZON',
22
- Self: 'SELF'
22
+ Self: 'SELF',
23
23
  };
@@ -26,5 +26,5 @@ exports.ReplenishmentOrderStatus = {
26
26
  Ineligible: 'INELIGIBLE',
27
27
  InventoryOutbound: 'INVENTORY_OUTBOUND',
28
28
  Success: 'SUCCESS',
29
- Validating: 'VALIDATING'
29
+ Validating: 'VALIDATING',
30
30
  };
@@ -20,5 +20,5 @@ exports.VolumeUnitOfMeasurement = void 0;
20
20
  exports.VolumeUnitOfMeasurement = {
21
21
  CuIn: 'CU_IN',
22
22
  Cbm: 'CBM',
23
- Cc: 'CC'
23
+ Cc: 'CC',
24
24
  };
@@ -19,5 +19,5 @@ exports.WeightUnitOfMeasurement = void 0;
19
19
  */
20
20
  exports.WeightUnitOfMeasurement = {
21
21
  Pounds: 'POUNDS',
22
- Kilograms: 'KILOGRAMS'
22
+ Kilograms: 'KILOGRAMS',
23
23
  };
@@ -32,7 +32,7 @@ export const AmazonWarehousingAndDistributionApiAxiosParamCreator = function (co
32
32
  // verify required parameter 'orderId' is not null or undefined
33
33
  assertParamExists('cancelInbound', 'orderId', orderId);
34
34
  const localVarPath = `/awd/2024-05-09/inboundOrders/{orderId}/cancellation`
35
- .replace(`{${"orderId"}}`, encodeURIComponent(String(orderId)));
35
+ .replace('{orderId}', encodeURIComponent(String(orderId)));
36
36
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
37
37
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
38
38
  let baseOptions;
@@ -91,7 +91,7 @@ export const AmazonWarehousingAndDistributionApiAxiosParamCreator = function (co
91
91
  // verify required parameter 'orderId' is not null or undefined
92
92
  assertParamExists('confirmInbound', 'orderId', orderId);
93
93
  const localVarPath = `/awd/2024-05-09/inboundOrders/{orderId}/confirmation`
94
- .replace(`{${"orderId"}}`, encodeURIComponent(String(orderId)));
94
+ .replace('{orderId}', encodeURIComponent(String(orderId)));
95
95
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
96
96
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
97
97
  let baseOptions;
@@ -120,7 +120,7 @@ export const AmazonWarehousingAndDistributionApiAxiosParamCreator = function (co
120
120
  // verify required parameter 'orderId' is not null or undefined
121
121
  assertParamExists('confirmReplenishmentOrder', 'orderId', orderId);
122
122
  const localVarPath = `/awd/2024-05-09/replenishmentOrders/{orderId}/confirmation`
123
- .replace(`{${"orderId"}}`, encodeURIComponent(String(orderId)));
123
+ .replace('{orderId}', encodeURIComponent(String(orderId)));
124
124
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
125
125
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
126
126
  let baseOptions;
@@ -209,7 +209,7 @@ export const AmazonWarehousingAndDistributionApiAxiosParamCreator = function (co
209
209
  // verify required parameter 'orderId' is not null or undefined
210
210
  assertParamExists('getInbound', 'orderId', orderId);
211
211
  const localVarPath = `/awd/2024-05-09/inboundOrders/{orderId}`
212
- .replace(`{${"orderId"}}`, encodeURIComponent(String(orderId)));
212
+ .replace('{orderId}', encodeURIComponent(String(orderId)));
213
213
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
214
214
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
215
215
  let baseOptions;
@@ -239,7 +239,7 @@ export const AmazonWarehousingAndDistributionApiAxiosParamCreator = function (co
239
239
  // verify required parameter 'shipmentId' is not null or undefined
240
240
  assertParamExists('getInboundShipment', 'shipmentId', shipmentId);
241
241
  const localVarPath = `/awd/2024-05-09/inboundShipments/{shipmentId}`
242
- .replace(`{${"shipmentId"}}`, encodeURIComponent(String(shipmentId)));
242
+ .replace('{shipmentId}', encodeURIComponent(String(shipmentId)));
243
243
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
244
244
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
245
245
  let baseOptions;
@@ -273,7 +273,7 @@ export const AmazonWarehousingAndDistributionApiAxiosParamCreator = function (co
273
273
  // verify required parameter 'shipmentId' is not null or undefined
274
274
  assertParamExists('getInboundShipmentLabels', 'shipmentId', shipmentId);
275
275
  const localVarPath = `/awd/2024-05-09/inboundShipments/{shipmentId}/labels`
276
- .replace(`{${"shipmentId"}}`, encodeURIComponent(String(shipmentId)));
276
+ .replace('{shipmentId}', encodeURIComponent(String(shipmentId)));
277
277
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
278
278
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
279
279
  let baseOptions;
@@ -308,7 +308,7 @@ export const AmazonWarehousingAndDistributionApiAxiosParamCreator = function (co
308
308
  // verify required parameter 'orderId' is not null or undefined
309
309
  assertParamExists('getReplenishmentOrder', 'orderId', orderId);
310
310
  const localVarPath = `/awd/2024-05-09/replenishmentOrders/{orderId}`
311
- .replace(`{${"orderId"}}`, encodeURIComponent(String(orderId)));
311
+ .replace('{orderId}', encodeURIComponent(String(orderId)));
312
312
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
313
313
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
314
314
  let baseOptions;
@@ -491,7 +491,7 @@ export const AmazonWarehousingAndDistributionApiAxiosParamCreator = function (co
491
491
  // verify required parameter 'body' is not null or undefined
492
492
  assertParamExists('updateInbound', 'body', body);
493
493
  const localVarPath = `/awd/2024-05-09/inboundOrders/{orderId}`
494
- .replace(`{${"orderId"}}`, encodeURIComponent(String(orderId)));
494
+ .replace('{orderId}', encodeURIComponent(String(orderId)));
495
495
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
496
496
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
497
497
  let baseOptions;
@@ -525,7 +525,7 @@ export const AmazonWarehousingAndDistributionApiAxiosParamCreator = function (co
525
525
  // verify required parameter 'body' is not null or undefined
526
526
  assertParamExists('updateInboundShipmentTransportDetails', 'body', body);
527
527
  const localVarPath = `/awd/2024-05-09/inboundShipments/{shipmentId}/transport`
528
- .replace(`{${"shipmentId"}}`, encodeURIComponent(String(shipmentId)));
528
+ .replace('{shipmentId}', encodeURIComponent(String(shipmentId)));
529
529
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
530
530
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
531
531
  let baseOptions;
@@ -1040,23 +1040,23 @@ export class AmazonWarehousingAndDistributionApi extends BaseAPI {
1040
1040
  }
1041
1041
  export const GetInboundShipmentSkuQuantitiesEnum = {
1042
1042
  Show: 'SHOW',
1043
- Hide: 'HIDE'
1043
+ Hide: 'HIDE',
1044
1044
  };
1045
1045
  export const GetInboundShipmentLabelsPageTypeEnum = {
1046
1046
  ThermalNonpcp: 'THERMAL_NONPCP',
1047
1047
  PlainPaper: 'PLAIN_PAPER',
1048
- Letter6: 'LETTER_6'
1048
+ Letter6: 'LETTER_6',
1049
1049
  };
1050
1050
  export const GetInboundShipmentLabelsFormatTypeEnum = {
1051
- Pdf: 'PDF'
1051
+ Pdf: 'PDF',
1052
1052
  };
1053
1053
  export const ListInboundShipmentsSortByEnum = {
1054
1054
  UpdatedAt: 'UPDATED_AT',
1055
- CreatedAt: 'CREATED_AT'
1055
+ CreatedAt: 'CREATED_AT',
1056
1056
  };
1057
1057
  export const ListInboundShipmentsSortOrderEnum = {
1058
1058
  Ascending: 'ASCENDING',
1059
- Descending: 'DESCENDING'
1059
+ Descending: 'DESCENDING',
1060
1060
  };
1061
1061
  export const ListInboundShipmentsShipmentStatusEnum = {
1062
1062
  Created: 'CREATED',
@@ -1065,17 +1065,17 @@ export const ListInboundShipmentsShipmentStatusEnum = {
1065
1065
  Receiving: 'RECEIVING',
1066
1066
  Delivered: 'DELIVERED',
1067
1067
  Closed: 'CLOSED',
1068
- Cancelled: 'CANCELLED'
1068
+ Cancelled: 'CANCELLED',
1069
1069
  };
1070
1070
  export const ListInventorySortOrderEnum = {
1071
1071
  Ascending: 'ASCENDING',
1072
- Descending: 'DESCENDING'
1072
+ Descending: 'DESCENDING',
1073
1073
  };
1074
1074
  export const ListInventoryDetailsEnum = {
1075
1075
  Show: 'SHOW',
1076
- Hide: 'HIDE'
1076
+ Hide: 'HIDE',
1077
1077
  };
1078
1078
  export const ListReplenishmentOrdersSortOrderEnum = {
1079
1079
  Ascending: 'ASCENDING',
1080
- Descending: 'DESCENDING'
1080
+ Descending: 'DESCENDING',
1081
1081
  };
@@ -88,7 +88,7 @@ export class Configuration {
88
88
  * @return True if the given MIME is JSON, false otherwise.
89
89
  */
90
90
  isJsonMime(mime) {
91
- const jsonMime = new RegExp('^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$', 'i');
92
- return mime !== null && (jsonMime.test(mime) || mime.toLowerCase() === 'application/json-patch+json');
91
+ const jsonMime = /^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$/i;
92
+ return mime !== null && jsonMime.test(mime);
93
93
  }
94
94
  }
@@ -15,5 +15,5 @@
15
15
  * Denotes the type for the carrier.
16
16
  */
17
17
  export const CarrierCodeType = {
18
- Scac: 'SCAC'
18
+ Scac: 'SCAC',
19
19
  };
@@ -16,5 +16,5 @@
16
16
  */
17
17
  export const ConfirmationMode = {
18
18
  Auto: 'AUTO',
19
- Manual: 'MANUAL'
19
+ Manual: 'MANUAL',
20
20
  };
@@ -16,5 +16,5 @@
16
16
  */
17
17
  export const DimensionUnitOfMeasurement = {
18
18
  Inches: 'INCHES',
19
- Centimeters: 'CENTIMETERS'
19
+ Centimeters: 'CENTIMETERS',
20
20
  };
@@ -16,5 +16,5 @@
16
16
  */
17
17
  export const DistributionPackageType = {
18
18
  Case: 'CASE',
19
- Pallet: 'PALLET'
19
+ Pallet: 'PALLET',
20
20
  };
@@ -16,5 +16,5 @@
16
16
  */
17
17
  export const InboundEligibilityStatus = {
18
18
  Eligible: 'ELIGIBLE',
19
- Ineligible: 'INELIGIBLE'
19
+ Ineligible: 'INELIGIBLE',
20
20
  };
@@ -21,5 +21,5 @@ export const InboundShipmentStatus = {
21
21
  Receiving: 'RECEIVING',
22
22
  Delivered: 'DELIVERED',
23
23
  Closed: 'CLOSED',
24
- Cancelled: 'CANCELLED'
24
+ Cancelled: 'CANCELLED',
25
25
  };
@@ -20,5 +20,5 @@ export const InboundStatus = {
20
20
  Confirmed: 'CONFIRMED',
21
21
  Closed: 'CLOSED',
22
22
  Expired: 'EXPIRED',
23
- Cancelled: 'CANCELLED'
23
+ Cancelled: 'CANCELLED',
24
24
  };
@@ -17,5 +17,5 @@
17
17
  export const InventoryUnitOfMeasurement = {
18
18
  ProductUnits: 'PRODUCT_UNITS',
19
19
  Cases: 'CASES',
20
- Pallets: 'PALLETS'
20
+ Pallets: 'PALLETS',
21
21
  };
@@ -16,5 +16,5 @@
16
16
  */
17
17
  export const LabelOwner = {
18
18
  Amazon: 'AMAZON',
19
- Self: 'SELF'
19
+ Self: 'SELF',
20
20
  };
@@ -18,5 +18,5 @@ export const LabelStatus = {
18
18
  Generating: 'GENERATING',
19
19
  Generated: 'GENERATED',
20
20
  GenerationFailed: 'GENERATION_FAILED',
21
- NotReady: 'NOT_READY'
21
+ NotReady: 'NOT_READY',
22
22
  };
@@ -22,5 +22,5 @@ export const OutboundShipmentStatus = {
22
22
  Received: 'RECEIVED',
23
23
  Closed: 'CLOSED',
24
24
  Cancelled: 'CANCELLED',
25
- Failed: 'FAILED'
25
+ Failed: 'FAILED',
26
26
  };
@@ -28,5 +28,5 @@ export const PrepCategory = {
28
28
  Small: 'SMALL',
29
29
  Textile: 'TEXTILE',
30
30
  NoPrep: 'NO_PREP',
31
- Unknown: 'UNKNOWN'
31
+ Unknown: 'UNKNOWN',
32
32
  };
@@ -16,5 +16,5 @@
16
16
  */
17
17
  export const PrepOwner = {
18
18
  Amazon: 'AMAZON',
19
- Self: 'SELF'
19
+ Self: 'SELF',
20
20
  };
@@ -23,5 +23,5 @@ export const ReplenishmentOrderStatus = {
23
23
  Ineligible: 'INELIGIBLE',
24
24
  InventoryOutbound: 'INVENTORY_OUTBOUND',
25
25
  Success: 'SUCCESS',
26
- Validating: 'VALIDATING'
26
+ Validating: 'VALIDATING',
27
27
  };
@@ -17,5 +17,5 @@
17
17
  export const VolumeUnitOfMeasurement = {
18
18
  CuIn: 'CU_IN',
19
19
  Cbm: 'CBM',
20
- Cc: 'CC'
20
+ Cc: 'CC',
21
21
  };
@@ -16,5 +16,5 @@
16
16
  */
17
17
  export const WeightUnitOfMeasurement = {
18
18
  Pounds: 'POUNDS',
19
- Kilograms: 'KILOGRAMS'
19
+ Kilograms: 'KILOGRAMS',
20
20
  };
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@sp-api-sdk/amazon-warehousing-and-distribution-api-2024-05-09",
3
3
  "author": "Bertrand Marron <bertrand@bizon.solutions>",
4
4
  "description": "The Selling Partner API for Amazon Warehousing and Distribution (AWD) provides programmatic access to information about AWD shipments and inventory.",
5
- "version": "4.1.3",
5
+ "version": "4.1.4",
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.1.30",
22
- "axios": "^1.13.6"
21
+ "@sp-api-sdk/common": "2.1.31",
22
+ "axios": "^1.15.2"
23
23
  },
24
24
  "repository": {
25
25
  "type": "git",
@@ -40,5 +40,5 @@
40
40
  "sp sdk",
41
41
  "amazon warehousing and distribution api"
42
42
  ],
43
- "gitHead": "ed62de76baf24107227aacb576cd494b2ecbf0b5"
43
+ "gitHead": "cc3ed7e58346bf7a4110ed8f1353aae840f294e2"
44
44
  }