@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.
- package/dist/cjs/api-model/api/amazon-warehousing-and-distribution-api.js +18 -18
- package/dist/cjs/api-model/configuration.js +2 -2
- package/dist/cjs/api-model/models/carrier-code-type.js +1 -1
- package/dist/cjs/api-model/models/confirmation-mode.js +1 -1
- package/dist/cjs/api-model/models/dimension-unit-of-measurement.js +1 -1
- package/dist/cjs/api-model/models/distribution-package-type.js +1 -1
- package/dist/cjs/api-model/models/inbound-eligibility-status.js +1 -1
- package/dist/cjs/api-model/models/inbound-shipment-status.js +1 -1
- package/dist/cjs/api-model/models/inbound-status.js +1 -1
- package/dist/cjs/api-model/models/inventory-unit-of-measurement.js +1 -1
- package/dist/cjs/api-model/models/label-owner.js +1 -1
- package/dist/cjs/api-model/models/label-status.js +1 -1
- package/dist/cjs/api-model/models/outbound-shipment-status.js +1 -1
- package/dist/cjs/api-model/models/prep-category.js +1 -1
- package/dist/cjs/api-model/models/prep-owner.js +1 -1
- package/dist/cjs/api-model/models/replenishment-order-status.js +1 -1
- package/dist/cjs/api-model/models/volume-unit-of-measurement.js +1 -1
- package/dist/cjs/api-model/models/weight-unit-of-measurement.js +1 -1
- package/dist/es/api-model/api/amazon-warehousing-and-distribution-api.js +18 -18
- package/dist/es/api-model/configuration.js +2 -2
- package/dist/es/api-model/models/carrier-code-type.js +1 -1
- package/dist/es/api-model/models/confirmation-mode.js +1 -1
- package/dist/es/api-model/models/dimension-unit-of-measurement.js +1 -1
- package/dist/es/api-model/models/distribution-package-type.js +1 -1
- package/dist/es/api-model/models/inbound-eligibility-status.js +1 -1
- package/dist/es/api-model/models/inbound-shipment-status.js +1 -1
- package/dist/es/api-model/models/inbound-status.js +1 -1
- package/dist/es/api-model/models/inventory-unit-of-measurement.js +1 -1
- package/dist/es/api-model/models/label-owner.js +1 -1
- package/dist/es/api-model/models/label-status.js +1 -1
- package/dist/es/api-model/models/outbound-shipment-status.js +1 -1
- package/dist/es/api-model/models/prep-category.js +1 -1
- package/dist/es/api-model/models/prep-owner.js +1 -1
- package/dist/es/api-model/models/replenishment-order-status.js +1 -1
- package/dist/es/api-model/models/volume-unit-of-measurement.js +1 -1
- package/dist/es/api-model/models/weight-unit-of-measurement.js +1 -1
- 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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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 =
|
|
95
|
-
return mime !== null &&
|
|
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;
|
|
@@ -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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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 =
|
|
92
|
-
return mime !== null &&
|
|
91
|
+
const jsonMime = /^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$/i;
|
|
92
|
+
return mime !== null && jsonMime.test(mime);
|
|
93
93
|
}
|
|
94
94
|
}
|
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.
|
|
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.
|
|
22
|
-
"axios": "^1.
|
|
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": "
|
|
43
|
+
"gitHead": "cc3ed7e58346bf7a4110ed8f1353aae840f294e2"
|
|
44
44
|
}
|