@sp-api-sdk/fulfillment-inbound-api-v0 4.1.13 → 4.1.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.
- package/dist/cjs/api-model/api/fulfillment-inbound-api.js +8 -8
- package/dist/cjs/api-model/common.js +1 -0
- package/dist/cjs/api-model/configuration.js +2 -2
- package/dist/cjs/api-model/models/barcode-instruction.js +1 -1
- package/dist/cjs/api-model/models/box-contents-source.js +1 -1
- package/dist/cjs/api-model/models/currency-code.js +1 -1
- package/dist/cjs/api-model/models/error-reason.js +1 -1
- package/dist/cjs/api-model/models/label-prep-type.js +1 -1
- package/dist/cjs/api-model/models/prep-guidance.js +1 -1
- package/dist/cjs/api-model/models/prep-instruction.js +1 -1
- package/dist/cjs/api-model/models/prep-owner.js +1 -1
- package/dist/cjs/api-model/models/shipment-status.js +1 -1
- package/dist/es/api-model/api/fulfillment-inbound-api.js +8 -8
- package/dist/es/api-model/common.js +1 -0
- package/dist/es/api-model/configuration.js +2 -2
- package/dist/es/api-model/models/barcode-instruction.js +1 -1
- package/dist/es/api-model/models/box-contents-source.js +1 -1
- package/dist/es/api-model/models/currency-code.js +1 -1
- package/dist/es/api-model/models/error-reason.js +1 -1
- package/dist/es/api-model/models/label-prep-type.js +1 -1
- package/dist/es/api-model/models/prep-guidance.js +1 -1
- package/dist/es/api-model/models/prep-instruction.js +1 -1
- package/dist/es/api-model/models/prep-owner.js +1 -1
- package/dist/es/api-model/models/shipment-status.js +1 -1
- package/dist/types/api-model/common.d.ts +1 -1
- package/package.json +4 -4
|
@@ -38,7 +38,7 @@ const FulfillmentInboundApiAxiosParamCreator = function (configuration) {
|
|
|
38
38
|
// verify required parameter 'shipmentId' is not null or undefined
|
|
39
39
|
(0, common_1.assertParamExists)('getBillOfLading', 'shipmentId', shipmentId);
|
|
40
40
|
const localVarPath = `/fba/inbound/v0/shipments/{shipmentId}/billOfLading`
|
|
41
|
-
.replace(
|
|
41
|
+
.replace('{shipmentId}', encodeURIComponent(String(shipmentId)));
|
|
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;
|
|
@@ -78,7 +78,7 @@ const FulfillmentInboundApiAxiosParamCreator = function (configuration) {
|
|
|
78
78
|
// verify required parameter 'labelType' is not null or undefined
|
|
79
79
|
(0, common_1.assertParamExists)('getLabels', 'labelType', labelType);
|
|
80
80
|
const localVarPath = `/fba/inbound/v0/shipments/{shipmentId}/labels`
|
|
81
|
-
.replace(
|
|
81
|
+
.replace('{shipmentId}', encodeURIComponent(String(shipmentId)));
|
|
82
82
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
83
83
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
84
84
|
let baseOptions;
|
|
@@ -221,7 +221,7 @@ const FulfillmentInboundApiAxiosParamCreator = function (configuration) {
|
|
|
221
221
|
// verify required parameter 'shipmentId' is not null or undefined
|
|
222
222
|
(0, common_1.assertParamExists)('getShipmentItemsByShipmentId', 'shipmentId', shipmentId);
|
|
223
223
|
const localVarPath = `/fba/inbound/v0/shipments/{shipmentId}/items`
|
|
224
|
-
.replace(
|
|
224
|
+
.replace('{shipmentId}', encodeURIComponent(String(shipmentId)));
|
|
225
225
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
226
226
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
227
227
|
let baseOptions;
|
|
@@ -543,21 +543,21 @@ exports.GetLabelsPageTypeEnum = {
|
|
|
543
543
|
PackageLabelThermal: 'PackageLabel_Thermal',
|
|
544
544
|
PackageLabelThermalUnified: 'PackageLabel_Thermal_Unified',
|
|
545
545
|
PackageLabelThermalNonPcp: 'PackageLabel_Thermal_NonPCP',
|
|
546
|
-
PackageLabelThermalNoCarrierRotation: 'PackageLabel_Thermal_No_Carrier_Rotation'
|
|
546
|
+
PackageLabelThermalNoCarrierRotation: 'PackageLabel_Thermal_No_Carrier_Rotation',
|
|
547
547
|
};
|
|
548
548
|
exports.GetLabelsLabelTypeEnum = {
|
|
549
549
|
Barcode2D: 'BARCODE_2D',
|
|
550
550
|
Unique: 'UNIQUE',
|
|
551
|
-
Pallet: 'PALLET'
|
|
551
|
+
Pallet: 'PALLET',
|
|
552
552
|
};
|
|
553
553
|
exports.GetShipmentItemsQueryTypeEnum = {
|
|
554
554
|
DateRange: 'DATE_RANGE',
|
|
555
|
-
NextToken: 'NEXT_TOKEN'
|
|
555
|
+
NextToken: 'NEXT_TOKEN',
|
|
556
556
|
};
|
|
557
557
|
exports.GetShipmentsQueryTypeEnum = {
|
|
558
558
|
Shipment: 'SHIPMENT',
|
|
559
559
|
DateRange: 'DATE_RANGE',
|
|
560
|
-
NextToken: 'NEXT_TOKEN'
|
|
560
|
+
NextToken: 'NEXT_TOKEN',
|
|
561
561
|
};
|
|
562
562
|
exports.GetShipmentsShipmentStatusListEnum = {
|
|
563
563
|
Working: 'WORKING',
|
|
@@ -570,5 +570,5 @@ exports.GetShipmentsShipmentStatusListEnum = {
|
|
|
570
570
|
Error: 'ERROR',
|
|
571
571
|
InTransit: 'IN_TRANSIT',
|
|
572
572
|
Delivered: 'DELIVERED',
|
|
573
|
-
CheckedIn: 'CHECKED_IN'
|
|
573
|
+
CheckedIn: 'CHECKED_IN',
|
|
574
574
|
};
|
|
@@ -90,6 +90,7 @@ exports.setSearchParams = setSearchParams;
|
|
|
90
90
|
* This function will run for every key-value pair encountered by JSON.stringify while traversing an object.
|
|
91
91
|
* Converting a set to a string will return an empty object, so an intermediate conversion to an array is required.
|
|
92
92
|
*/
|
|
93
|
+
// @ts-ignore
|
|
93
94
|
const replaceWithSerializableTypeIfNeeded = function (key, value) {
|
|
94
95
|
if (value instanceof Set) {
|
|
95
96
|
return Array.from(value);
|
|
@@ -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;
|
|
@@ -20,5 +20,5 @@ exports.BarcodeInstruction = void 0;
|
|
|
20
20
|
exports.BarcodeInstruction = {
|
|
21
21
|
RequiresFnskuLabel: 'RequiresFNSKULabel',
|
|
22
22
|
CanUseOriginalBarcode: 'CanUseOriginalBarcode',
|
|
23
|
-
MustProvideSellerSku: 'MustProvideSellerSKU'
|
|
23
|
+
MustProvideSellerSku: 'MustProvideSellerSKU',
|
|
24
24
|
};
|
|
@@ -20,5 +20,5 @@ exports.PrepGuidance = void 0;
|
|
|
20
20
|
exports.PrepGuidance = {
|
|
21
21
|
ConsultHelpDocuments: 'ConsultHelpDocuments',
|
|
22
22
|
NoAdditionalPrepRequired: 'NoAdditionalPrepRequired',
|
|
23
|
-
SeePrepInstructionsList: 'SeePrepInstructionsList'
|
|
23
|
+
SeePrepInstructionsList: 'SeePrepInstructionsList',
|
|
24
24
|
};
|
|
@@ -32,7 +32,7 @@ export const FulfillmentInboundApiAxiosParamCreator = function (configuration) {
|
|
|
32
32
|
// verify required parameter 'shipmentId' is not null or undefined
|
|
33
33
|
assertParamExists('getBillOfLading', 'shipmentId', shipmentId);
|
|
34
34
|
const localVarPath = `/fba/inbound/v0/shipments/{shipmentId}/billOfLading`
|
|
35
|
-
.replace(
|
|
35
|
+
.replace('{shipmentId}', encodeURIComponent(String(shipmentId)));
|
|
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;
|
|
@@ -72,7 +72,7 @@ export const FulfillmentInboundApiAxiosParamCreator = function (configuration) {
|
|
|
72
72
|
// verify required parameter 'labelType' is not null or undefined
|
|
73
73
|
assertParamExists('getLabels', 'labelType', labelType);
|
|
74
74
|
const localVarPath = `/fba/inbound/v0/shipments/{shipmentId}/labels`
|
|
75
|
-
.replace(
|
|
75
|
+
.replace('{shipmentId}', encodeURIComponent(String(shipmentId)));
|
|
76
76
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
77
77
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
78
78
|
let baseOptions;
|
|
@@ -215,7 +215,7 @@ export const FulfillmentInboundApiAxiosParamCreator = function (configuration) {
|
|
|
215
215
|
// verify required parameter 'shipmentId' is not null or undefined
|
|
216
216
|
assertParamExists('getShipmentItemsByShipmentId', 'shipmentId', shipmentId);
|
|
217
217
|
const localVarPath = `/fba/inbound/v0/shipments/{shipmentId}/items`
|
|
218
|
-
.replace(
|
|
218
|
+
.replace('{shipmentId}', encodeURIComponent(String(shipmentId)));
|
|
219
219
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
220
220
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
221
221
|
let baseOptions;
|
|
@@ -533,21 +533,21 @@ export const GetLabelsPageTypeEnum = {
|
|
|
533
533
|
PackageLabelThermal: 'PackageLabel_Thermal',
|
|
534
534
|
PackageLabelThermalUnified: 'PackageLabel_Thermal_Unified',
|
|
535
535
|
PackageLabelThermalNonPcp: 'PackageLabel_Thermal_NonPCP',
|
|
536
|
-
PackageLabelThermalNoCarrierRotation: 'PackageLabel_Thermal_No_Carrier_Rotation'
|
|
536
|
+
PackageLabelThermalNoCarrierRotation: 'PackageLabel_Thermal_No_Carrier_Rotation',
|
|
537
537
|
};
|
|
538
538
|
export const GetLabelsLabelTypeEnum = {
|
|
539
539
|
Barcode2D: 'BARCODE_2D',
|
|
540
540
|
Unique: 'UNIQUE',
|
|
541
|
-
Pallet: 'PALLET'
|
|
541
|
+
Pallet: 'PALLET',
|
|
542
542
|
};
|
|
543
543
|
export const GetShipmentItemsQueryTypeEnum = {
|
|
544
544
|
DateRange: 'DATE_RANGE',
|
|
545
|
-
NextToken: 'NEXT_TOKEN'
|
|
545
|
+
NextToken: 'NEXT_TOKEN',
|
|
546
546
|
};
|
|
547
547
|
export const GetShipmentsQueryTypeEnum = {
|
|
548
548
|
Shipment: 'SHIPMENT',
|
|
549
549
|
DateRange: 'DATE_RANGE',
|
|
550
|
-
NextToken: 'NEXT_TOKEN'
|
|
550
|
+
NextToken: 'NEXT_TOKEN',
|
|
551
551
|
};
|
|
552
552
|
export const GetShipmentsShipmentStatusListEnum = {
|
|
553
553
|
Working: 'WORKING',
|
|
@@ -560,5 +560,5 @@ export const GetShipmentsShipmentStatusListEnum = {
|
|
|
560
560
|
Error: 'ERROR',
|
|
561
561
|
InTransit: 'IN_TRANSIT',
|
|
562
562
|
Delivered: 'DELIVERED',
|
|
563
|
-
CheckedIn: 'CHECKED_IN'
|
|
563
|
+
CheckedIn: 'CHECKED_IN',
|
|
564
564
|
};
|
|
@@ -81,6 +81,7 @@ export const setSearchParams = function (url, ...objects) {
|
|
|
81
81
|
* This function will run for every key-value pair encountered by JSON.stringify while traversing an object.
|
|
82
82
|
* Converting a set to a string will return an empty object, so an intermediate conversion to an array is required.
|
|
83
83
|
*/
|
|
84
|
+
// @ts-ignore
|
|
84
85
|
export const replaceWithSerializableTypeIfNeeded = function (key, value) {
|
|
85
86
|
if (value instanceof Set) {
|
|
86
87
|
return Array.from(value);
|
|
@@ -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
|
}
|
|
@@ -28,7 +28,7 @@ export declare const setSearchParams: (url: URL, ...objects: any[]) => void;
|
|
|
28
28
|
* This function will run for every key-value pair encountered by JSON.stringify while traversing an object.
|
|
29
29
|
* Converting a set to a string will return an empty object, so an intermediate conversion to an array is required.
|
|
30
30
|
*/
|
|
31
|
-
export declare const replaceWithSerializableTypeIfNeeded: (key:
|
|
31
|
+
export declare const replaceWithSerializableTypeIfNeeded: (key: string, value: any) => any;
|
|
32
32
|
export declare const serializeDataIfNeeded: (value: any, requestOptions: any, configuration?: Configuration) => any;
|
|
33
33
|
export declare const toPathString: (url: URL) => string;
|
|
34
34
|
export declare const createRequestFunction: (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) => <T = unknown, R = AxiosResponse<T>>(axios?: AxiosInstance, basePath?: string) => Promise<R>;
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@sp-api-sdk/fulfillment-inbound-api-v0",
|
|
3
3
|
"author": "Bertrand Marron <bertrand@bizon.solutions>",
|
|
4
4
|
"description": "The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon's fulfillment network.",
|
|
5
|
-
"version": "4.1.
|
|
5
|
+
"version": "4.1.15",
|
|
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
|
"fulfillment inbound api"
|
|
42
42
|
],
|
|
43
|
-
"gitHead": "
|
|
43
|
+
"gitHead": "cc3ed7e58346bf7a4110ed8f1353aae840f294e2"
|
|
44
44
|
}
|