@sp-api-sdk/fba-inventory-api-v1 3.0.20 → 3.0.22
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/fba-inventory-api.js +2 -2
- package/dist/cjs/api-model/common.js +1 -0
- package/dist/cjs/api-model/configuration.js +2 -2
- package/dist/cjs/api-model/models/researching-quantity-entry.js +1 -1
- package/dist/es/api-model/api/fba-inventory-api.js +2 -2
- package/dist/es/api-model/common.js +1 -0
- package/dist/es/api-model/configuration.js +2 -2
- package/dist/es/api-model/models/researching-quantity-entry.js +1 -1
- package/dist/types/api-model/common.d.ts +1 -1
- package/package.json +4 -4
|
@@ -107,7 +107,7 @@ const FbaInventoryApiAxiosParamCreator = function (configuration) {
|
|
|
107
107
|
// verify required parameter 'marketplaceId' is not null or undefined
|
|
108
108
|
(0, common_1.assertParamExists)('deleteInventoryItem', 'marketplaceId', marketplaceId);
|
|
109
109
|
const localVarPath = `/fba/inventory/v1/items/{sellerSku}`
|
|
110
|
-
.replace(
|
|
110
|
+
.replace('{sellerSku}', encodeURIComponent(String(sellerSku)));
|
|
111
111
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
112
112
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
113
113
|
let baseOptions;
|
|
@@ -351,5 +351,5 @@ class FbaInventoryApi extends base_1.BaseAPI {
|
|
|
351
351
|
}
|
|
352
352
|
exports.FbaInventoryApi = FbaInventoryApi;
|
|
353
353
|
exports.GetInventorySummariesGranularityTypeEnum = {
|
|
354
|
-
Marketplace: 'Marketplace'
|
|
354
|
+
Marketplace: 'Marketplace',
|
|
355
355
|
};
|
|
@@ -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;
|
|
@@ -17,5 +17,5 @@ exports.ResearchingQuantityEntryNameEnum = void 0;
|
|
|
17
17
|
exports.ResearchingQuantityEntryNameEnum = {
|
|
18
18
|
ResearchingQuantityInShortTerm: 'researchingQuantityInShortTerm',
|
|
19
19
|
ResearchingQuantityInMidTerm: 'researchingQuantityInMidTerm',
|
|
20
|
-
ResearchingQuantityInLongTerm: 'researchingQuantityInLongTerm'
|
|
20
|
+
ResearchingQuantityInLongTerm: 'researchingQuantityInLongTerm',
|
|
21
21
|
};
|
|
@@ -101,7 +101,7 @@ export const FbaInventoryApiAxiosParamCreator = function (configuration) {
|
|
|
101
101
|
// verify required parameter 'marketplaceId' is not null or undefined
|
|
102
102
|
assertParamExists('deleteInventoryItem', 'marketplaceId', marketplaceId);
|
|
103
103
|
const localVarPath = `/fba/inventory/v1/items/{sellerSku}`
|
|
104
|
-
.replace(
|
|
104
|
+
.replace('{sellerSku}', encodeURIComponent(String(sellerSku)));
|
|
105
105
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
106
106
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
107
107
|
let baseOptions;
|
|
@@ -341,5 +341,5 @@ export class FbaInventoryApi extends BaseAPI {
|
|
|
341
341
|
}
|
|
342
342
|
}
|
|
343
343
|
export const GetInventorySummariesGranularityTypeEnum = {
|
|
344
|
-
Marketplace: 'Marketplace'
|
|
344
|
+
Marketplace: 'Marketplace',
|
|
345
345
|
};
|
|
@@ -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
|
}
|
|
@@ -14,5 +14,5 @@
|
|
|
14
14
|
export const ResearchingQuantityEntryNameEnum = {
|
|
15
15
|
ResearchingQuantityInShortTerm: 'researchingQuantityInShortTerm',
|
|
16
16
|
ResearchingQuantityInMidTerm: 'researchingQuantityInMidTerm',
|
|
17
|
-
ResearchingQuantityInLongTerm: 'researchingQuantityInLongTerm'
|
|
17
|
+
ResearchingQuantityInLongTerm: 'researchingQuantityInLongTerm',
|
|
18
18
|
};
|
|
@@ -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/fba-inventory-api-v1",
|
|
3
3
|
"author": "Bertrand Marron <bertrand@bizon.solutions>",
|
|
4
4
|
"description": "The Selling Partner API for FBA Inventory lets you programmatically retrieve information about inventory in Amazon's fulfillment network.",
|
|
5
|
-
"version": "3.0.
|
|
5
|
+
"version": "3.0.22",
|
|
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
|
"fba inventory api"
|
|
42
42
|
],
|
|
43
|
-
"gitHead": "
|
|
43
|
+
"gitHead": "cc3ed7e58346bf7a4110ed8f1353aae840f294e2"
|
|
44
44
|
}
|