@sp-api-sdk/fulfillment-outbound-api-2020-07-01 4.6.0 → 4.7.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.
- package/dist/cjs/api-model/api/fulfillment-outbound-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/additional-location-info.js +1 -1
- package/dist/cjs/api-model/models/amount.js +1 -1
- package/dist/cjs/api-model/models/current-status.js +1 -1
- package/dist/cjs/api-model/models/drop-off-location.js +1 -1
- package/dist/cjs/api-model/models/event-code.js +3 -1
- package/dist/cjs/api-model/models/feature-settings.js +1 -1
- package/dist/cjs/api-model/models/fee.js +1 -1
- package/dist/cjs/api-model/models/fulfillment-action.js +1 -1
- package/dist/cjs/api-model/models/fulfillment-order-status.js +1 -1
- package/dist/cjs/api-model/models/fulfillment-policy.js +1 -1
- package/dist/cjs/api-model/models/fulfillment-preview-item.js +1 -1
- package/dist/cjs/api-model/models/fulfillment-return-item-status.js +1 -1
- package/dist/cjs/api-model/models/fulfillment-shipment.js +1 -1
- package/dist/cjs/api-model/models/invalid-item-reason-code.js +1 -1
- package/dist/cjs/api-model/models/return-item-disposition.js +1 -1
- package/dist/cjs/api-model/models/shipping-speed-category.js +1 -1
- package/dist/cjs/api-model/models/weight.js +1 -1
- package/dist/es/api-model/api/fulfillment-outbound-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/additional-location-info.js +1 -1
- package/dist/es/api-model/models/amount.js +1 -1
- package/dist/es/api-model/models/current-status.js +1 -1
- package/dist/es/api-model/models/drop-off-location.js +1 -1
- package/dist/es/api-model/models/event-code.js +3 -1
- package/dist/es/api-model/models/feature-settings.js +1 -1
- package/dist/es/api-model/models/fee.js +1 -1
- package/dist/es/api-model/models/fulfillment-action.js +1 -1
- package/dist/es/api-model/models/fulfillment-order-status.js +1 -1
- package/dist/es/api-model/models/fulfillment-policy.js +1 -1
- package/dist/es/api-model/models/fulfillment-preview-item.js +1 -1
- package/dist/es/api-model/models/fulfillment-return-item-status.js +1 -1
- package/dist/es/api-model/models/fulfillment-shipment.js +1 -1
- package/dist/es/api-model/models/invalid-item-reason-code.js +1 -1
- package/dist/es/api-model/models/return-item-disposition.js +1 -1
- package/dist/es/api-model/models/shipping-speed-category.js +1 -1
- package/dist/es/api-model/models/weight.js +1 -1
- package/dist/types/api-model/common.d.ts +1 -1
- package/dist/types/api-model/models/event-code.d.ts +2 -0
- package/package.json +4 -4
|
@@ -38,7 +38,7 @@ const FulfillmentOutboundApiAxiosParamCreator = function (configuration) {
|
|
|
38
38
|
// verify required parameter 'sellerFulfillmentOrderId' is not null or undefined
|
|
39
39
|
(0, common_1.assertParamExists)('cancelFulfillmentOrder', 'sellerFulfillmentOrderId', sellerFulfillmentOrderId);
|
|
40
40
|
const localVarPath = `/fba/outbound/2020-07-01/fulfillmentOrders/{sellerFulfillmentOrderId}/cancel`
|
|
41
|
-
.replace(
|
|
41
|
+
.replace('{sellerFulfillmentOrderId}', encodeURIComponent(String(sellerFulfillmentOrderId)));
|
|
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;
|
|
@@ -100,7 +100,7 @@ const FulfillmentOutboundApiAxiosParamCreator = function (configuration) {
|
|
|
100
100
|
// verify required parameter 'body' is not null or undefined
|
|
101
101
|
(0, common_1.assertParamExists)('createFulfillmentReturn', 'body', body);
|
|
102
102
|
const localVarPath = `/fba/outbound/2020-07-01/fulfillmentOrders/{sellerFulfillmentOrderId}/return`
|
|
103
|
-
.replace(
|
|
103
|
+
.replace('{sellerFulfillmentOrderId}', encodeURIComponent(String(sellerFulfillmentOrderId)));
|
|
104
104
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
105
105
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
106
106
|
let baseOptions;
|
|
@@ -166,7 +166,7 @@ const FulfillmentOutboundApiAxiosParamCreator = function (configuration) {
|
|
|
166
166
|
// verify required parameter 'featureName' is not null or undefined
|
|
167
167
|
(0, common_1.assertParamExists)('getFeatureInventory', 'featureName', featureName);
|
|
168
168
|
const localVarPath = `/fba/outbound/2020-07-01/features/inventory/{featureName}`
|
|
169
|
-
.replace(
|
|
169
|
+
.replace('{featureName}', encodeURIComponent(String(featureName)));
|
|
170
170
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
171
171
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
172
172
|
let baseOptions;
|
|
@@ -212,8 +212,8 @@ const FulfillmentOutboundApiAxiosParamCreator = function (configuration) {
|
|
|
212
212
|
// verify required parameter 'sellerSku' is not null or undefined
|
|
213
213
|
(0, common_1.assertParamExists)('getFeatureSKU', 'sellerSku', sellerSku);
|
|
214
214
|
const localVarPath = `/fba/outbound/2020-07-01/features/inventory/{featureName}/{sellerSku}`
|
|
215
|
-
.replace(
|
|
216
|
-
.replace(
|
|
215
|
+
.replace('{featureName}', encodeURIComponent(String(featureName)))
|
|
216
|
+
.replace('{sellerSku}', encodeURIComponent(String(sellerSku)));
|
|
217
217
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
218
218
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
219
219
|
let baseOptions;
|
|
@@ -276,7 +276,7 @@ const FulfillmentOutboundApiAxiosParamCreator = function (configuration) {
|
|
|
276
276
|
// verify required parameter 'sellerFulfillmentOrderId' is not null or undefined
|
|
277
277
|
(0, common_1.assertParamExists)('getFulfillmentOrder', 'sellerFulfillmentOrderId', sellerFulfillmentOrderId);
|
|
278
278
|
const localVarPath = `/fba/outbound/2020-07-01/fulfillmentOrders/{sellerFulfillmentOrderId}`
|
|
279
|
-
.replace(
|
|
279
|
+
.replace('{sellerFulfillmentOrderId}', encodeURIComponent(String(sellerFulfillmentOrderId)));
|
|
280
280
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
281
281
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
282
282
|
let baseOptions;
|
|
@@ -447,7 +447,7 @@ const FulfillmentOutboundApiAxiosParamCreator = function (configuration) {
|
|
|
447
447
|
// verify required parameter 'body' is not null or undefined
|
|
448
448
|
(0, common_1.assertParamExists)('submitFulfillmentOrderStatusUpdate', 'body', body);
|
|
449
449
|
const localVarPath = `/fba/outbound/2020-07-01/fulfillmentOrders/{sellerFulfillmentOrderId}/status`
|
|
450
|
-
.replace(
|
|
450
|
+
.replace('{sellerFulfillmentOrderId}', encodeURIComponent(String(sellerFulfillmentOrderId)));
|
|
451
451
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
452
452
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
453
453
|
let baseOptions;
|
|
@@ -481,7 +481,7 @@ const FulfillmentOutboundApiAxiosParamCreator = function (configuration) {
|
|
|
481
481
|
// verify required parameter 'body' is not null or undefined
|
|
482
482
|
(0, common_1.assertParamExists)('updateFulfillmentOrder', 'body', body);
|
|
483
483
|
const localVarPath = `/fba/outbound/2020-07-01/fulfillmentOrders/{sellerFulfillmentOrderId}`
|
|
484
|
-
.replace(
|
|
484
|
+
.replace('{sellerFulfillmentOrderId}', encodeURIComponent(String(sellerFulfillmentOrderId)));
|
|
485
485
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
486
486
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
487
487
|
let baseOptions;
|
|
@@ -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;
|
|
@@ -16,5 +16,5 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
16
16
|
exports.FeatureSettingsFeatureFulfillmentPolicyEnum = void 0;
|
|
17
17
|
exports.FeatureSettingsFeatureFulfillmentPolicyEnum = {
|
|
18
18
|
Required: 'Required',
|
|
19
|
-
NotRequired: 'NotRequired'
|
|
19
|
+
NotRequired: 'NotRequired',
|
|
20
20
|
};
|
|
@@ -18,5 +18,5 @@ exports.FeeNameEnum = {
|
|
|
18
18
|
FbaPerUnitFulfillmentFee: 'FBAPerUnitFulfillmentFee',
|
|
19
19
|
FbaPerOrderFulfillmentFee: 'FBAPerOrderFulfillmentFee',
|
|
20
20
|
FbaTransportationFee: 'FBATransportationFee',
|
|
21
|
-
FbaFulfillmentCodFee: 'FBAFulfillmentCODFee'
|
|
21
|
+
FbaFulfillmentCodFee: 'FBAFulfillmentCODFee',
|
|
22
22
|
};
|
|
@@ -16,5 +16,5 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
16
16
|
exports.FulfillmentPreviewItemShippingWeightCalculationMethodEnum = void 0;
|
|
17
17
|
exports.FulfillmentPreviewItemShippingWeightCalculationMethodEnum = {
|
|
18
18
|
Package: 'Package',
|
|
19
|
-
Dimensional: 'Dimensional'
|
|
19
|
+
Dimensional: 'Dimensional',
|
|
20
20
|
};
|
|
@@ -32,7 +32,7 @@ export const FulfillmentOutboundApiAxiosParamCreator = function (configuration)
|
|
|
32
32
|
// verify required parameter 'sellerFulfillmentOrderId' is not null or undefined
|
|
33
33
|
assertParamExists('cancelFulfillmentOrder', 'sellerFulfillmentOrderId', sellerFulfillmentOrderId);
|
|
34
34
|
const localVarPath = `/fba/outbound/2020-07-01/fulfillmentOrders/{sellerFulfillmentOrderId}/cancel`
|
|
35
|
-
.replace(
|
|
35
|
+
.replace('{sellerFulfillmentOrderId}', encodeURIComponent(String(sellerFulfillmentOrderId)));
|
|
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;
|
|
@@ -94,7 +94,7 @@ export const FulfillmentOutboundApiAxiosParamCreator = function (configuration)
|
|
|
94
94
|
// verify required parameter 'body' is not null or undefined
|
|
95
95
|
assertParamExists('createFulfillmentReturn', 'body', body);
|
|
96
96
|
const localVarPath = `/fba/outbound/2020-07-01/fulfillmentOrders/{sellerFulfillmentOrderId}/return`
|
|
97
|
-
.replace(
|
|
97
|
+
.replace('{sellerFulfillmentOrderId}', encodeURIComponent(String(sellerFulfillmentOrderId)));
|
|
98
98
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
99
99
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
100
100
|
let baseOptions;
|
|
@@ -160,7 +160,7 @@ export const FulfillmentOutboundApiAxiosParamCreator = function (configuration)
|
|
|
160
160
|
// verify required parameter 'featureName' is not null or undefined
|
|
161
161
|
assertParamExists('getFeatureInventory', 'featureName', featureName);
|
|
162
162
|
const localVarPath = `/fba/outbound/2020-07-01/features/inventory/{featureName}`
|
|
163
|
-
.replace(
|
|
163
|
+
.replace('{featureName}', encodeURIComponent(String(featureName)));
|
|
164
164
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
165
165
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
166
166
|
let baseOptions;
|
|
@@ -206,8 +206,8 @@ export const FulfillmentOutboundApiAxiosParamCreator = function (configuration)
|
|
|
206
206
|
// verify required parameter 'sellerSku' is not null or undefined
|
|
207
207
|
assertParamExists('getFeatureSKU', 'sellerSku', sellerSku);
|
|
208
208
|
const localVarPath = `/fba/outbound/2020-07-01/features/inventory/{featureName}/{sellerSku}`
|
|
209
|
-
.replace(
|
|
210
|
-
.replace(
|
|
209
|
+
.replace('{featureName}', encodeURIComponent(String(featureName)))
|
|
210
|
+
.replace('{sellerSku}', encodeURIComponent(String(sellerSku)));
|
|
211
211
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
212
212
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
213
213
|
let baseOptions;
|
|
@@ -270,7 +270,7 @@ export const FulfillmentOutboundApiAxiosParamCreator = function (configuration)
|
|
|
270
270
|
// verify required parameter 'sellerFulfillmentOrderId' is not null or undefined
|
|
271
271
|
assertParamExists('getFulfillmentOrder', 'sellerFulfillmentOrderId', sellerFulfillmentOrderId);
|
|
272
272
|
const localVarPath = `/fba/outbound/2020-07-01/fulfillmentOrders/{sellerFulfillmentOrderId}`
|
|
273
|
-
.replace(
|
|
273
|
+
.replace('{sellerFulfillmentOrderId}', encodeURIComponent(String(sellerFulfillmentOrderId)));
|
|
274
274
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
275
275
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
276
276
|
let baseOptions;
|
|
@@ -441,7 +441,7 @@ export const FulfillmentOutboundApiAxiosParamCreator = function (configuration)
|
|
|
441
441
|
// verify required parameter 'body' is not null or undefined
|
|
442
442
|
assertParamExists('submitFulfillmentOrderStatusUpdate', 'body', body);
|
|
443
443
|
const localVarPath = `/fba/outbound/2020-07-01/fulfillmentOrders/{sellerFulfillmentOrderId}/status`
|
|
444
|
-
.replace(
|
|
444
|
+
.replace('{sellerFulfillmentOrderId}', encodeURIComponent(String(sellerFulfillmentOrderId)));
|
|
445
445
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
446
446
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
447
447
|
let baseOptions;
|
|
@@ -475,7 +475,7 @@ export const FulfillmentOutboundApiAxiosParamCreator = function (configuration)
|
|
|
475
475
|
// verify required parameter 'body' is not null or undefined
|
|
476
476
|
assertParamExists('updateFulfillmentOrder', 'body', body);
|
|
477
477
|
const localVarPath = `/fba/outbound/2020-07-01/fulfillmentOrders/{sellerFulfillmentOrderId}`
|
|
478
|
-
.replace(
|
|
478
|
+
.replace('{sellerFulfillmentOrderId}', encodeURIComponent(String(sellerFulfillmentOrderId)));
|
|
479
479
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
480
480
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
481
481
|
let baseOptions;
|
|
@@ -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
|
}
|
|
@@ -15,5 +15,5 @@ export const FeeNameEnum = {
|
|
|
15
15
|
FbaPerUnitFulfillmentFee: 'FBAPerUnitFulfillmentFee',
|
|
16
16
|
FbaPerOrderFulfillmentFee: 'FBAPerOrderFulfillmentFee',
|
|
17
17
|
FbaTransportationFee: 'FBATransportationFee',
|
|
18
|
-
FbaFulfillmentCodFee: 'FBAFulfillmentCODFee'
|
|
18
|
+
FbaFulfillmentCodFee: 'FBAFulfillmentCODFee',
|
|
19
19
|
};
|
|
@@ -18,5 +18,5 @@ export const InvalidItemReasonCode = {
|
|
|
18
18
|
InvalidValues: 'InvalidValues',
|
|
19
19
|
DuplicateRequest: 'DuplicateRequest',
|
|
20
20
|
NoCompletedShipItems: 'NoCompletedShipItems',
|
|
21
|
-
NoReturnableQuantity: 'NoReturnableQuantity'
|
|
21
|
+
NoReturnableQuantity: 'NoReturnableQuantity',
|
|
22
22
|
};
|
|
@@ -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>;
|
|
@@ -46,5 +46,7 @@ export declare const EventCode: {
|
|
|
46
46
|
readonly Event417: "EVENT_417";
|
|
47
47
|
readonly Event418: "EVENT_418";
|
|
48
48
|
readonly Event419: "EVENT_419";
|
|
49
|
+
readonly Event801: "EVENT_801";
|
|
50
|
+
readonly Event804: "EVENT_804";
|
|
49
51
|
};
|
|
50
52
|
export type EventCode = typeof EventCode[keyof typeof EventCode];
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@sp-api-sdk/fulfillment-outbound-api-2020-07-01",
|
|
3
3
|
"author": "Bertrand Marron <bertrand@bizon.solutions>",
|
|
4
4
|
"description": "The Selling Partner API for Fulfillment Outbound lets you create applications that help a seller fulfill Multi-Channel Fulfillment orders using their inventory in Amazon's fulfillment network. You can get information on both potential and existing fulfillment orders.",
|
|
5
|
-
"version": "4.
|
|
5
|
+
"version": "4.7.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.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 outbound api"
|
|
42
42
|
],
|
|
43
|
-
"gitHead": "
|
|
43
|
+
"gitHead": "cc3ed7e58346bf7a4110ed8f1353aae840f294e2"
|
|
44
44
|
}
|