@sp-api-sdk/fba-inventory-api-v1 2.1.1 → 2.2.1
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/src/api-model/api/fba-inventory-api.js +197 -4
- package/dist/cjs/src/api-model/models/add-inventory-request.js +15 -0
- package/dist/cjs/src/api-model/models/add-inventory-response.js +15 -0
- package/dist/cjs/src/api-model/models/create-inventory-item-request.js +15 -0
- package/dist/cjs/src/api-model/models/create-inventory-item-response.js +15 -0
- package/dist/cjs/src/api-model/models/delete-inventory-item-response.js +15 -0
- package/dist/cjs/src/api-model/models/index.js +6 -0
- package/dist/cjs/src/api-model/models/inventory-item.js +15 -0
- package/dist/es/src/api-model/api/fba-inventory-api.js +198 -5
- package/dist/es/src/api-model/models/add-inventory-request.js +14 -0
- package/dist/es/src/api-model/models/add-inventory-response.js +14 -0
- package/dist/es/src/api-model/models/create-inventory-item-request.js +14 -0
- package/dist/es/src/api-model/models/create-inventory-item-response.js +14 -0
- package/dist/es/src/api-model/models/delete-inventory-item-response.js +14 -0
- package/dist/es/src/api-model/models/index.js +6 -0
- package/dist/es/src/api-model/models/inventory-item.js +14 -0
- package/dist/types/src/api-model/api/fba-inventory-api.d.ts +151 -4
- package/dist/types/src/api-model/common.d.ts +0 -1
- package/dist/types/src/api-model/models/add-inventory-request.d.ts +25 -0
- package/dist/types/src/api-model/models/add-inventory-response.d.ts +24 -0
- package/dist/types/src/api-model/models/create-inventory-item-request.d.ts +36 -0
- package/dist/types/src/api-model/models/create-inventory-item-response.d.ts +24 -0
- package/dist/types/src/api-model/models/delete-inventory-item-response.d.ts +24 -0
- package/dist/types/src/api-model/models/index.d.ts +6 -0
- package/dist/types/src/api-model/models/inventory-item.d.ts +36 -0
- package/package.json +3 -3
|
@@ -30,7 +30,105 @@ const base_1 = require("../base");
|
|
|
30
30
|
const FbaInventoryApiAxiosParamCreator = function (configuration) {
|
|
31
31
|
return {
|
|
32
32
|
/**
|
|
33
|
-
*
|
|
33
|
+
* Requests that Amazon add items to the Sandbox Inventory with desired amount of quantity in the sandbox environment. This is a sandbox-only operation and must be directed to a sandbox endpoint. Refer to [Selling Partner API sandbox](https://developer-docs.amazon.com/sp-api/docs/the-selling-partner-api-sandbox) for more information.
|
|
34
|
+
* @param {string} xAmznIdempotencyToken A unique token/requestId provided with each call to ensure idempotency.
|
|
35
|
+
* @param {AddInventoryRequest} addInventoryRequestBody List of items to add to Sandbox inventory.
|
|
36
|
+
* @param {*} [options] Override http request option.
|
|
37
|
+
* @throws {RequiredError}
|
|
38
|
+
*/
|
|
39
|
+
addInventory: async (xAmznIdempotencyToken, addInventoryRequestBody, options = {}) => {
|
|
40
|
+
// verify required parameter 'xAmznIdempotencyToken' is not null or undefined
|
|
41
|
+
(0, common_1.assertParamExists)('addInventory', 'xAmznIdempotencyToken', xAmznIdempotencyToken);
|
|
42
|
+
// verify required parameter 'addInventoryRequestBody' is not null or undefined
|
|
43
|
+
(0, common_1.assertParamExists)('addInventory', 'addInventoryRequestBody', addInventoryRequestBody);
|
|
44
|
+
const localVarPath = `/fba/inventory/v1/items/inventory`;
|
|
45
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
46
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
47
|
+
let baseOptions;
|
|
48
|
+
if (configuration) {
|
|
49
|
+
baseOptions = configuration.baseOptions;
|
|
50
|
+
}
|
|
51
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
52
|
+
const localVarHeaderParameter = {};
|
|
53
|
+
const localVarQueryParameter = {};
|
|
54
|
+
if (xAmznIdempotencyToken != null) {
|
|
55
|
+
localVarHeaderParameter['x-amzn-idempotency-token'] = String(xAmznIdempotencyToken);
|
|
56
|
+
}
|
|
57
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
58
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
59
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
60
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
61
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(addInventoryRequestBody, localVarRequestOptions, configuration);
|
|
62
|
+
return {
|
|
63
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
64
|
+
options: localVarRequestOptions,
|
|
65
|
+
};
|
|
66
|
+
},
|
|
67
|
+
/**
|
|
68
|
+
* Requests that Amazon create product-details in the Sandbox Inventory in the sandbox environment. This is a sandbox-only operation and must be directed to a sandbox endpoint. Refer to [Selling Partner API sandbox](https://developer-docs.amazon.com/sp-api/docs/the-selling-partner-api-sandbox) for more information.
|
|
69
|
+
* @param {CreateInventoryItemRequest} createInventoryItemRequestBody CreateInventoryItem Request Body Parameter.
|
|
70
|
+
* @param {*} [options] Override http request option.
|
|
71
|
+
* @throws {RequiredError}
|
|
72
|
+
*/
|
|
73
|
+
createInventoryItem: async (createInventoryItemRequestBody, options = {}) => {
|
|
74
|
+
// verify required parameter 'createInventoryItemRequestBody' is not null or undefined
|
|
75
|
+
(0, common_1.assertParamExists)('createInventoryItem', 'createInventoryItemRequestBody', createInventoryItemRequestBody);
|
|
76
|
+
const localVarPath = `/fba/inventory/v1/items`;
|
|
77
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
78
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
79
|
+
let baseOptions;
|
|
80
|
+
if (configuration) {
|
|
81
|
+
baseOptions = configuration.baseOptions;
|
|
82
|
+
}
|
|
83
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
84
|
+
const localVarHeaderParameter = {};
|
|
85
|
+
const localVarQueryParameter = {};
|
|
86
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
87
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
88
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
89
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
90
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createInventoryItemRequestBody, localVarRequestOptions, configuration);
|
|
91
|
+
return {
|
|
92
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
93
|
+
options: localVarRequestOptions,
|
|
94
|
+
};
|
|
95
|
+
},
|
|
96
|
+
/**
|
|
97
|
+
* Requests that Amazon Deletes an item from the Sandbox Inventory in the sandbox environment. This is a sandbox-only operation and must be directed to a sandbox endpoint. Refer to [Selling Partner API sandbox](https://developer-docs.amazon.com/sp-api/docs/the-selling-partner-api-sandbox) for more information.
|
|
98
|
+
* @param {string} sellerSku A single seller SKU used for querying the specified seller SKU inventory summaries.
|
|
99
|
+
* @param {string} marketplaceId The marketplace ID for the marketplace for which the sellerSku is to be deleted.
|
|
100
|
+
* @param {*} [options] Override http request option.
|
|
101
|
+
* @throws {RequiredError}
|
|
102
|
+
*/
|
|
103
|
+
deleteInventoryItem: async (sellerSku, marketplaceId, options = {}) => {
|
|
104
|
+
// verify required parameter 'sellerSku' is not null or undefined
|
|
105
|
+
(0, common_1.assertParamExists)('deleteInventoryItem', 'sellerSku', sellerSku);
|
|
106
|
+
// verify required parameter 'marketplaceId' is not null or undefined
|
|
107
|
+
(0, common_1.assertParamExists)('deleteInventoryItem', 'marketplaceId', marketplaceId);
|
|
108
|
+
const localVarPath = `/fba/inventory/v1/items/{sellerSku}`
|
|
109
|
+
.replace(`{${"sellerSku"}}`, encodeURIComponent(String(sellerSku)));
|
|
110
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
111
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
112
|
+
let baseOptions;
|
|
113
|
+
if (configuration) {
|
|
114
|
+
baseOptions = configuration.baseOptions;
|
|
115
|
+
}
|
|
116
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
|
|
117
|
+
const localVarHeaderParameter = {};
|
|
118
|
+
const localVarQueryParameter = {};
|
|
119
|
+
if (marketplaceId !== undefined) {
|
|
120
|
+
localVarQueryParameter['marketplaceId'] = marketplaceId;
|
|
121
|
+
}
|
|
122
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
123
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
124
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
125
|
+
return {
|
|
126
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
127
|
+
options: localVarRequestOptions,
|
|
128
|
+
};
|
|
129
|
+
},
|
|
130
|
+
/**
|
|
131
|
+
* Returns a list of inventory summaries. The summaries returned depend on the presence or absence of the startDateTime, sellerSkus and sellerSku parameters: - All inventory summaries with available details are returned when the startDateTime, sellerSkus and sellerSku parameters are omitted. - When startDateTime is provided, the operation returns inventory summaries that have had changes after the date and time specified. The sellerSkus and sellerSku parameters are ignored. Important: To avoid errors, use both startDateTime and nextToken to get the next page of inventory summaries that have changed after the date and time specified. - When the sellerSkus parameter is provided, the operation returns inventory summaries for only the specified sellerSkus. The sellerSku parameter is ignored. - When the sellerSku parameter is provided, the operation returns inventory summaries for only the specified sellerSku. Note: The parameters associated with this operation may contain special characters that must be encoded to successfully call the API. To avoid errors with SKUs when encoding URLs, refer to URL Encoding. Usage Plan: | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 2 | The x-amzn-RateLimit-Limit response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see Usage Plans and Rate Limits in the Selling Partner API.
|
|
34
132
|
* @param {GetInventorySummariesGranularityTypeEnum} granularityType The granularity type for the inventory aggregation level.
|
|
35
133
|
* @param {string} granularityId The granularity ID for the inventory aggregation level.
|
|
36
134
|
* @param {Array<string>} marketplaceIds The marketplace ID for the marketplace for which to return inventory summaries.
|
|
@@ -104,7 +202,45 @@ const FbaInventoryApiFp = function (configuration) {
|
|
|
104
202
|
const localVarAxiosParamCreator = (0, exports.FbaInventoryApiAxiosParamCreator)(configuration);
|
|
105
203
|
return {
|
|
106
204
|
/**
|
|
107
|
-
*
|
|
205
|
+
* Requests that Amazon add items to the Sandbox Inventory with desired amount of quantity in the sandbox environment. This is a sandbox-only operation and must be directed to a sandbox endpoint. Refer to [Selling Partner API sandbox](https://developer-docs.amazon.com/sp-api/docs/the-selling-partner-api-sandbox) for more information.
|
|
206
|
+
* @param {string} xAmznIdempotencyToken A unique token/requestId provided with each call to ensure idempotency.
|
|
207
|
+
* @param {AddInventoryRequest} addInventoryRequestBody List of items to add to Sandbox inventory.
|
|
208
|
+
* @param {*} [options] Override http request option.
|
|
209
|
+
* @throws {RequiredError}
|
|
210
|
+
*/
|
|
211
|
+
async addInventory(xAmznIdempotencyToken, addInventoryRequestBody, options) {
|
|
212
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.addInventory(xAmznIdempotencyToken, addInventoryRequestBody, options);
|
|
213
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
214
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['FbaInventoryApi.addInventory']?.[localVarOperationServerIndex]?.url;
|
|
215
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
216
|
+
},
|
|
217
|
+
/**
|
|
218
|
+
* Requests that Amazon create product-details in the Sandbox Inventory in the sandbox environment. This is a sandbox-only operation and must be directed to a sandbox endpoint. Refer to [Selling Partner API sandbox](https://developer-docs.amazon.com/sp-api/docs/the-selling-partner-api-sandbox) for more information.
|
|
219
|
+
* @param {CreateInventoryItemRequest} createInventoryItemRequestBody CreateInventoryItem Request Body Parameter.
|
|
220
|
+
* @param {*} [options] Override http request option.
|
|
221
|
+
* @throws {RequiredError}
|
|
222
|
+
*/
|
|
223
|
+
async createInventoryItem(createInventoryItemRequestBody, options) {
|
|
224
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createInventoryItem(createInventoryItemRequestBody, options);
|
|
225
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
226
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['FbaInventoryApi.createInventoryItem']?.[localVarOperationServerIndex]?.url;
|
|
227
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
228
|
+
},
|
|
229
|
+
/**
|
|
230
|
+
* Requests that Amazon Deletes an item from the Sandbox Inventory in the sandbox environment. This is a sandbox-only operation and must be directed to a sandbox endpoint. Refer to [Selling Partner API sandbox](https://developer-docs.amazon.com/sp-api/docs/the-selling-partner-api-sandbox) for more information.
|
|
231
|
+
* @param {string} sellerSku A single seller SKU used for querying the specified seller SKU inventory summaries.
|
|
232
|
+
* @param {string} marketplaceId The marketplace ID for the marketplace for which the sellerSku is to be deleted.
|
|
233
|
+
* @param {*} [options] Override http request option.
|
|
234
|
+
* @throws {RequiredError}
|
|
235
|
+
*/
|
|
236
|
+
async deleteInventoryItem(sellerSku, marketplaceId, options) {
|
|
237
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteInventoryItem(sellerSku, marketplaceId, options);
|
|
238
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
239
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['FbaInventoryApi.deleteInventoryItem']?.[localVarOperationServerIndex]?.url;
|
|
240
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
241
|
+
},
|
|
242
|
+
/**
|
|
243
|
+
* Returns a list of inventory summaries. The summaries returned depend on the presence or absence of the startDateTime, sellerSkus and sellerSku parameters: - All inventory summaries with available details are returned when the startDateTime, sellerSkus and sellerSku parameters are omitted. - When startDateTime is provided, the operation returns inventory summaries that have had changes after the date and time specified. The sellerSkus and sellerSku parameters are ignored. Important: To avoid errors, use both startDateTime and nextToken to get the next page of inventory summaries that have changed after the date and time specified. - When the sellerSkus parameter is provided, the operation returns inventory summaries for only the specified sellerSkus. The sellerSku parameter is ignored. - When the sellerSku parameter is provided, the operation returns inventory summaries for only the specified sellerSku. Note: The parameters associated with this operation may contain special characters that must be encoded to successfully call the API. To avoid errors with SKUs when encoding URLs, refer to URL Encoding. Usage Plan: | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 2 | The x-amzn-RateLimit-Limit response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see Usage Plans and Rate Limits in the Selling Partner API.
|
|
108
244
|
* @param {GetInventorySummariesGranularityTypeEnum} granularityType The granularity type for the inventory aggregation level.
|
|
109
245
|
* @param {string} granularityId The granularity ID for the inventory aggregation level.
|
|
110
246
|
* @param {Array<string>} marketplaceIds The marketplace ID for the marketplace for which to return inventory summaries.
|
|
@@ -133,7 +269,34 @@ const FbaInventoryApiFactory = function (configuration, basePath, axios) {
|
|
|
133
269
|
const localVarFp = (0, exports.FbaInventoryApiFp)(configuration);
|
|
134
270
|
return {
|
|
135
271
|
/**
|
|
136
|
-
*
|
|
272
|
+
* Requests that Amazon add items to the Sandbox Inventory with desired amount of quantity in the sandbox environment. This is a sandbox-only operation and must be directed to a sandbox endpoint. Refer to [Selling Partner API sandbox](https://developer-docs.amazon.com/sp-api/docs/the-selling-partner-api-sandbox) for more information.
|
|
273
|
+
* @param {FbaInventoryApiAddInventoryRequest} requestParameters Request parameters.
|
|
274
|
+
* @param {*} [options] Override http request option.
|
|
275
|
+
* @throws {RequiredError}
|
|
276
|
+
*/
|
|
277
|
+
addInventory(requestParameters, options) {
|
|
278
|
+
return localVarFp.addInventory(requestParameters.xAmznIdempotencyToken, requestParameters.addInventoryRequestBody, options).then((request) => request(axios, basePath));
|
|
279
|
+
},
|
|
280
|
+
/**
|
|
281
|
+
* Requests that Amazon create product-details in the Sandbox Inventory in the sandbox environment. This is a sandbox-only operation and must be directed to a sandbox endpoint. Refer to [Selling Partner API sandbox](https://developer-docs.amazon.com/sp-api/docs/the-selling-partner-api-sandbox) for more information.
|
|
282
|
+
* @param {FbaInventoryApiCreateInventoryItemRequest} requestParameters Request parameters.
|
|
283
|
+
* @param {*} [options] Override http request option.
|
|
284
|
+
* @throws {RequiredError}
|
|
285
|
+
*/
|
|
286
|
+
createInventoryItem(requestParameters, options) {
|
|
287
|
+
return localVarFp.createInventoryItem(requestParameters.createInventoryItemRequestBody, options).then((request) => request(axios, basePath));
|
|
288
|
+
},
|
|
289
|
+
/**
|
|
290
|
+
* Requests that Amazon Deletes an item from the Sandbox Inventory in the sandbox environment. This is a sandbox-only operation and must be directed to a sandbox endpoint. Refer to [Selling Partner API sandbox](https://developer-docs.amazon.com/sp-api/docs/the-selling-partner-api-sandbox) for more information.
|
|
291
|
+
* @param {FbaInventoryApiDeleteInventoryItemRequest} requestParameters Request parameters.
|
|
292
|
+
* @param {*} [options] Override http request option.
|
|
293
|
+
* @throws {RequiredError}
|
|
294
|
+
*/
|
|
295
|
+
deleteInventoryItem(requestParameters, options) {
|
|
296
|
+
return localVarFp.deleteInventoryItem(requestParameters.sellerSku, requestParameters.marketplaceId, options).then((request) => request(axios, basePath));
|
|
297
|
+
},
|
|
298
|
+
/**
|
|
299
|
+
* Returns a list of inventory summaries. The summaries returned depend on the presence or absence of the startDateTime, sellerSkus and sellerSku parameters: - All inventory summaries with available details are returned when the startDateTime, sellerSkus and sellerSku parameters are omitted. - When startDateTime is provided, the operation returns inventory summaries that have had changes after the date and time specified. The sellerSkus and sellerSku parameters are ignored. Important: To avoid errors, use both startDateTime and nextToken to get the next page of inventory summaries that have changed after the date and time specified. - When the sellerSkus parameter is provided, the operation returns inventory summaries for only the specified sellerSkus. The sellerSku parameter is ignored. - When the sellerSku parameter is provided, the operation returns inventory summaries for only the specified sellerSku. Note: The parameters associated with this operation may contain special characters that must be encoded to successfully call the API. To avoid errors with SKUs when encoding URLs, refer to URL Encoding. Usage Plan: | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 2 | The x-amzn-RateLimit-Limit response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see Usage Plans and Rate Limits in the Selling Partner API.
|
|
137
300
|
* @param {FbaInventoryApiGetInventorySummariesRequest} requestParameters Request parameters.
|
|
138
301
|
* @param {*} [options] Override http request option.
|
|
139
302
|
* @throws {RequiredError}
|
|
@@ -152,7 +315,37 @@ exports.FbaInventoryApiFactory = FbaInventoryApiFactory;
|
|
|
152
315
|
*/
|
|
153
316
|
class FbaInventoryApi extends base_1.BaseAPI {
|
|
154
317
|
/**
|
|
155
|
-
*
|
|
318
|
+
* Requests that Amazon add items to the Sandbox Inventory with desired amount of quantity in the sandbox environment. This is a sandbox-only operation and must be directed to a sandbox endpoint. Refer to [Selling Partner API sandbox](https://developer-docs.amazon.com/sp-api/docs/the-selling-partner-api-sandbox) for more information.
|
|
319
|
+
* @param {FbaInventoryApiAddInventoryRequest} requestParameters Request parameters.
|
|
320
|
+
* @param {*} [options] Override http request option.
|
|
321
|
+
* @throws {RequiredError}
|
|
322
|
+
* @memberof FbaInventoryApi
|
|
323
|
+
*/
|
|
324
|
+
addInventory(requestParameters, options) {
|
|
325
|
+
return (0, exports.FbaInventoryApiFp)(this.configuration).addInventory(requestParameters.xAmznIdempotencyToken, requestParameters.addInventoryRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
326
|
+
}
|
|
327
|
+
/**
|
|
328
|
+
* Requests that Amazon create product-details in the Sandbox Inventory in the sandbox environment. This is a sandbox-only operation and must be directed to a sandbox endpoint. Refer to [Selling Partner API sandbox](https://developer-docs.amazon.com/sp-api/docs/the-selling-partner-api-sandbox) for more information.
|
|
329
|
+
* @param {FbaInventoryApiCreateInventoryItemRequest} requestParameters Request parameters.
|
|
330
|
+
* @param {*} [options] Override http request option.
|
|
331
|
+
* @throws {RequiredError}
|
|
332
|
+
* @memberof FbaInventoryApi
|
|
333
|
+
*/
|
|
334
|
+
createInventoryItem(requestParameters, options) {
|
|
335
|
+
return (0, exports.FbaInventoryApiFp)(this.configuration).createInventoryItem(requestParameters.createInventoryItemRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
336
|
+
}
|
|
337
|
+
/**
|
|
338
|
+
* Requests that Amazon Deletes an item from the Sandbox Inventory in the sandbox environment. This is a sandbox-only operation and must be directed to a sandbox endpoint. Refer to [Selling Partner API sandbox](https://developer-docs.amazon.com/sp-api/docs/the-selling-partner-api-sandbox) for more information.
|
|
339
|
+
* @param {FbaInventoryApiDeleteInventoryItemRequest} requestParameters Request parameters.
|
|
340
|
+
* @param {*} [options] Override http request option.
|
|
341
|
+
* @throws {RequiredError}
|
|
342
|
+
* @memberof FbaInventoryApi
|
|
343
|
+
*/
|
|
344
|
+
deleteInventoryItem(requestParameters, options) {
|
|
345
|
+
return (0, exports.FbaInventoryApiFp)(this.configuration).deleteInventoryItem(requestParameters.sellerSku, requestParameters.marketplaceId, options).then((request) => request(this.axios, this.basePath));
|
|
346
|
+
}
|
|
347
|
+
/**
|
|
348
|
+
* Returns a list of inventory summaries. The summaries returned depend on the presence or absence of the startDateTime, sellerSkus and sellerSku parameters: - All inventory summaries with available details are returned when the startDateTime, sellerSkus and sellerSku parameters are omitted. - When startDateTime is provided, the operation returns inventory summaries that have had changes after the date and time specified. The sellerSkus and sellerSku parameters are ignored. Important: To avoid errors, use both startDateTime and nextToken to get the next page of inventory summaries that have changed after the date and time specified. - When the sellerSkus parameter is provided, the operation returns inventory summaries for only the specified sellerSkus. The sellerSku parameter is ignored. - When the sellerSku parameter is provided, the operation returns inventory summaries for only the specified sellerSku. Note: The parameters associated with this operation may contain special characters that must be encoded to successfully call the API. To avoid errors with SKUs when encoding URLs, refer to URL Encoding. Usage Plan: | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 2 | The x-amzn-RateLimit-Limit response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see Usage Plans and Rate Limits in the Selling Partner API.
|
|
156
349
|
* @param {FbaInventoryApiGetInventorySummariesRequest} requestParameters Request parameters.
|
|
157
350
|
* @param {*} [options] Override http request option.
|
|
158
351
|
* @throws {RequiredError}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Selling Partner API for FBA Inventory
|
|
6
|
+
* The Selling Partner API for FBA Inventory lets you programmatically retrieve information about inventory in Amazon\'s fulfillment network.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: v1
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Selling Partner API for FBA Inventory
|
|
6
|
+
* The Selling Partner API for FBA Inventory lets you programmatically retrieve information about inventory in Amazon\'s fulfillment network.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: v1
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Selling Partner API for FBA Inventory
|
|
6
|
+
* The Selling Partner API for FBA Inventory lets you programmatically retrieve information about inventory in Amazon\'s fulfillment network.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: v1
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Selling Partner API for FBA Inventory
|
|
6
|
+
* The Selling Partner API for FBA Inventory lets you programmatically retrieve information about inventory in Amazon\'s fulfillment network.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: v1
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Selling Partner API for FBA Inventory
|
|
6
|
+
* The Selling Partner API for FBA Inventory lets you programmatically retrieve information about inventory in Amazon\'s fulfillment network.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: v1
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -14,10 +14,16 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./add-inventory-request"), exports);
|
|
18
|
+
__exportStar(require("./add-inventory-response"), exports);
|
|
19
|
+
__exportStar(require("./create-inventory-item-request"), exports);
|
|
20
|
+
__exportStar(require("./create-inventory-item-response"), exports);
|
|
21
|
+
__exportStar(require("./delete-inventory-item-response"), exports);
|
|
17
22
|
__exportStar(require("./get-inventory-summaries-response"), exports);
|
|
18
23
|
__exportStar(require("./get-inventory-summaries-result"), exports);
|
|
19
24
|
__exportStar(require("./granularity"), exports);
|
|
20
25
|
__exportStar(require("./inventory-details"), exports);
|
|
26
|
+
__exportStar(require("./inventory-item"), exports);
|
|
21
27
|
__exportStar(require("./inventory-summary"), exports);
|
|
22
28
|
__exportStar(require("./model-error"), exports);
|
|
23
29
|
__exportStar(require("./pagination"), exports);
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Selling Partner API for FBA Inventory
|
|
6
|
+
* The Selling Partner API for FBA Inventory lets you programmatically retrieve information about inventory in Amazon\'s fulfillment network.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: v1
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
import globalAxios from 'axios';
|
|
15
15
|
// Some imports not used depending on template conditions
|
|
16
16
|
// @ts-ignore
|
|
17
|
-
import { DUMMY_BASE_URL, assertParamExists, setSearchParams, toPathString, createRequestFunction } from '../common';
|
|
17
|
+
import { DUMMY_BASE_URL, assertParamExists, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
|
|
18
18
|
// @ts-ignore
|
|
19
19
|
import { BASE_PATH, COLLECTION_FORMATS, BaseAPI, operationServerMap } from '../base';
|
|
20
20
|
/**
|
|
@@ -24,7 +24,105 @@ import { BASE_PATH, COLLECTION_FORMATS, BaseAPI, operationServerMap } from '../b
|
|
|
24
24
|
export const FbaInventoryApiAxiosParamCreator = function (configuration) {
|
|
25
25
|
return {
|
|
26
26
|
/**
|
|
27
|
-
*
|
|
27
|
+
* Requests that Amazon add items to the Sandbox Inventory with desired amount of quantity in the sandbox environment. This is a sandbox-only operation and must be directed to a sandbox endpoint. Refer to [Selling Partner API sandbox](https://developer-docs.amazon.com/sp-api/docs/the-selling-partner-api-sandbox) for more information.
|
|
28
|
+
* @param {string} xAmznIdempotencyToken A unique token/requestId provided with each call to ensure idempotency.
|
|
29
|
+
* @param {AddInventoryRequest} addInventoryRequestBody List of items to add to Sandbox inventory.
|
|
30
|
+
* @param {*} [options] Override http request option.
|
|
31
|
+
* @throws {RequiredError}
|
|
32
|
+
*/
|
|
33
|
+
addInventory: async (xAmznIdempotencyToken, addInventoryRequestBody, options = {}) => {
|
|
34
|
+
// verify required parameter 'xAmznIdempotencyToken' is not null or undefined
|
|
35
|
+
assertParamExists('addInventory', 'xAmznIdempotencyToken', xAmznIdempotencyToken);
|
|
36
|
+
// verify required parameter 'addInventoryRequestBody' is not null or undefined
|
|
37
|
+
assertParamExists('addInventory', 'addInventoryRequestBody', addInventoryRequestBody);
|
|
38
|
+
const localVarPath = `/fba/inventory/v1/items/inventory`;
|
|
39
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
40
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
41
|
+
let baseOptions;
|
|
42
|
+
if (configuration) {
|
|
43
|
+
baseOptions = configuration.baseOptions;
|
|
44
|
+
}
|
|
45
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
46
|
+
const localVarHeaderParameter = {};
|
|
47
|
+
const localVarQueryParameter = {};
|
|
48
|
+
if (xAmznIdempotencyToken != null) {
|
|
49
|
+
localVarHeaderParameter['x-amzn-idempotency-token'] = String(xAmznIdempotencyToken);
|
|
50
|
+
}
|
|
51
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
52
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
53
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
54
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
55
|
+
localVarRequestOptions.data = serializeDataIfNeeded(addInventoryRequestBody, localVarRequestOptions, configuration);
|
|
56
|
+
return {
|
|
57
|
+
url: toPathString(localVarUrlObj),
|
|
58
|
+
options: localVarRequestOptions,
|
|
59
|
+
};
|
|
60
|
+
},
|
|
61
|
+
/**
|
|
62
|
+
* Requests that Amazon create product-details in the Sandbox Inventory in the sandbox environment. This is a sandbox-only operation and must be directed to a sandbox endpoint. Refer to [Selling Partner API sandbox](https://developer-docs.amazon.com/sp-api/docs/the-selling-partner-api-sandbox) for more information.
|
|
63
|
+
* @param {CreateInventoryItemRequest} createInventoryItemRequestBody CreateInventoryItem Request Body Parameter.
|
|
64
|
+
* @param {*} [options] Override http request option.
|
|
65
|
+
* @throws {RequiredError}
|
|
66
|
+
*/
|
|
67
|
+
createInventoryItem: async (createInventoryItemRequestBody, options = {}) => {
|
|
68
|
+
// verify required parameter 'createInventoryItemRequestBody' is not null or undefined
|
|
69
|
+
assertParamExists('createInventoryItem', 'createInventoryItemRequestBody', createInventoryItemRequestBody);
|
|
70
|
+
const localVarPath = `/fba/inventory/v1/items`;
|
|
71
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
72
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
73
|
+
let baseOptions;
|
|
74
|
+
if (configuration) {
|
|
75
|
+
baseOptions = configuration.baseOptions;
|
|
76
|
+
}
|
|
77
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
78
|
+
const localVarHeaderParameter = {};
|
|
79
|
+
const localVarQueryParameter = {};
|
|
80
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
81
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
82
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
83
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
84
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createInventoryItemRequestBody, localVarRequestOptions, configuration);
|
|
85
|
+
return {
|
|
86
|
+
url: toPathString(localVarUrlObj),
|
|
87
|
+
options: localVarRequestOptions,
|
|
88
|
+
};
|
|
89
|
+
},
|
|
90
|
+
/**
|
|
91
|
+
* Requests that Amazon Deletes an item from the Sandbox Inventory in the sandbox environment. This is a sandbox-only operation and must be directed to a sandbox endpoint. Refer to [Selling Partner API sandbox](https://developer-docs.amazon.com/sp-api/docs/the-selling-partner-api-sandbox) for more information.
|
|
92
|
+
* @param {string} sellerSku A single seller SKU used for querying the specified seller SKU inventory summaries.
|
|
93
|
+
* @param {string} marketplaceId The marketplace ID for the marketplace for which the sellerSku is to be deleted.
|
|
94
|
+
* @param {*} [options] Override http request option.
|
|
95
|
+
* @throws {RequiredError}
|
|
96
|
+
*/
|
|
97
|
+
deleteInventoryItem: async (sellerSku, marketplaceId, options = {}) => {
|
|
98
|
+
// verify required parameter 'sellerSku' is not null or undefined
|
|
99
|
+
assertParamExists('deleteInventoryItem', 'sellerSku', sellerSku);
|
|
100
|
+
// verify required parameter 'marketplaceId' is not null or undefined
|
|
101
|
+
assertParamExists('deleteInventoryItem', 'marketplaceId', marketplaceId);
|
|
102
|
+
const localVarPath = `/fba/inventory/v1/items/{sellerSku}`
|
|
103
|
+
.replace(`{${"sellerSku"}}`, encodeURIComponent(String(sellerSku)));
|
|
104
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
105
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
106
|
+
let baseOptions;
|
|
107
|
+
if (configuration) {
|
|
108
|
+
baseOptions = configuration.baseOptions;
|
|
109
|
+
}
|
|
110
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
|
|
111
|
+
const localVarHeaderParameter = {};
|
|
112
|
+
const localVarQueryParameter = {};
|
|
113
|
+
if (marketplaceId !== undefined) {
|
|
114
|
+
localVarQueryParameter['marketplaceId'] = marketplaceId;
|
|
115
|
+
}
|
|
116
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
117
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
118
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
119
|
+
return {
|
|
120
|
+
url: toPathString(localVarUrlObj),
|
|
121
|
+
options: localVarRequestOptions,
|
|
122
|
+
};
|
|
123
|
+
},
|
|
124
|
+
/**
|
|
125
|
+
* Returns a list of inventory summaries. The summaries returned depend on the presence or absence of the startDateTime, sellerSkus and sellerSku parameters: - All inventory summaries with available details are returned when the startDateTime, sellerSkus and sellerSku parameters are omitted. - When startDateTime is provided, the operation returns inventory summaries that have had changes after the date and time specified. The sellerSkus and sellerSku parameters are ignored. Important: To avoid errors, use both startDateTime and nextToken to get the next page of inventory summaries that have changed after the date and time specified. - When the sellerSkus parameter is provided, the operation returns inventory summaries for only the specified sellerSkus. The sellerSku parameter is ignored. - When the sellerSku parameter is provided, the operation returns inventory summaries for only the specified sellerSku. Note: The parameters associated with this operation may contain special characters that must be encoded to successfully call the API. To avoid errors with SKUs when encoding URLs, refer to URL Encoding. Usage Plan: | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 2 | The x-amzn-RateLimit-Limit response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see Usage Plans and Rate Limits in the Selling Partner API.
|
|
28
126
|
* @param {GetInventorySummariesGranularityTypeEnum} granularityType The granularity type for the inventory aggregation level.
|
|
29
127
|
* @param {string} granularityId The granularity ID for the inventory aggregation level.
|
|
30
128
|
* @param {Array<string>} marketplaceIds The marketplace ID for the marketplace for which to return inventory summaries.
|
|
@@ -97,7 +195,45 @@ export const FbaInventoryApiFp = function (configuration) {
|
|
|
97
195
|
const localVarAxiosParamCreator = FbaInventoryApiAxiosParamCreator(configuration);
|
|
98
196
|
return {
|
|
99
197
|
/**
|
|
100
|
-
*
|
|
198
|
+
* Requests that Amazon add items to the Sandbox Inventory with desired amount of quantity in the sandbox environment. This is a sandbox-only operation and must be directed to a sandbox endpoint. Refer to [Selling Partner API sandbox](https://developer-docs.amazon.com/sp-api/docs/the-selling-partner-api-sandbox) for more information.
|
|
199
|
+
* @param {string} xAmznIdempotencyToken A unique token/requestId provided with each call to ensure idempotency.
|
|
200
|
+
* @param {AddInventoryRequest} addInventoryRequestBody List of items to add to Sandbox inventory.
|
|
201
|
+
* @param {*} [options] Override http request option.
|
|
202
|
+
* @throws {RequiredError}
|
|
203
|
+
*/
|
|
204
|
+
async addInventory(xAmznIdempotencyToken, addInventoryRequestBody, options) {
|
|
205
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.addInventory(xAmznIdempotencyToken, addInventoryRequestBody, options);
|
|
206
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
207
|
+
const localVarOperationServerBasePath = operationServerMap['FbaInventoryApi.addInventory']?.[localVarOperationServerIndex]?.url;
|
|
208
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
209
|
+
},
|
|
210
|
+
/**
|
|
211
|
+
* Requests that Amazon create product-details in the Sandbox Inventory in the sandbox environment. This is a sandbox-only operation and must be directed to a sandbox endpoint. Refer to [Selling Partner API sandbox](https://developer-docs.amazon.com/sp-api/docs/the-selling-partner-api-sandbox) for more information.
|
|
212
|
+
* @param {CreateInventoryItemRequest} createInventoryItemRequestBody CreateInventoryItem Request Body Parameter.
|
|
213
|
+
* @param {*} [options] Override http request option.
|
|
214
|
+
* @throws {RequiredError}
|
|
215
|
+
*/
|
|
216
|
+
async createInventoryItem(createInventoryItemRequestBody, options) {
|
|
217
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createInventoryItem(createInventoryItemRequestBody, options);
|
|
218
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
219
|
+
const localVarOperationServerBasePath = operationServerMap['FbaInventoryApi.createInventoryItem']?.[localVarOperationServerIndex]?.url;
|
|
220
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
221
|
+
},
|
|
222
|
+
/**
|
|
223
|
+
* Requests that Amazon Deletes an item from the Sandbox Inventory in the sandbox environment. This is a sandbox-only operation and must be directed to a sandbox endpoint. Refer to [Selling Partner API sandbox](https://developer-docs.amazon.com/sp-api/docs/the-selling-partner-api-sandbox) for more information.
|
|
224
|
+
* @param {string} sellerSku A single seller SKU used for querying the specified seller SKU inventory summaries.
|
|
225
|
+
* @param {string} marketplaceId The marketplace ID for the marketplace for which the sellerSku is to be deleted.
|
|
226
|
+
* @param {*} [options] Override http request option.
|
|
227
|
+
* @throws {RequiredError}
|
|
228
|
+
*/
|
|
229
|
+
async deleteInventoryItem(sellerSku, marketplaceId, options) {
|
|
230
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteInventoryItem(sellerSku, marketplaceId, options);
|
|
231
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
232
|
+
const localVarOperationServerBasePath = operationServerMap['FbaInventoryApi.deleteInventoryItem']?.[localVarOperationServerIndex]?.url;
|
|
233
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
234
|
+
},
|
|
235
|
+
/**
|
|
236
|
+
* Returns a list of inventory summaries. The summaries returned depend on the presence or absence of the startDateTime, sellerSkus and sellerSku parameters: - All inventory summaries with available details are returned when the startDateTime, sellerSkus and sellerSku parameters are omitted. - When startDateTime is provided, the operation returns inventory summaries that have had changes after the date and time specified. The sellerSkus and sellerSku parameters are ignored. Important: To avoid errors, use both startDateTime and nextToken to get the next page of inventory summaries that have changed after the date and time specified. - When the sellerSkus parameter is provided, the operation returns inventory summaries for only the specified sellerSkus. The sellerSku parameter is ignored. - When the sellerSku parameter is provided, the operation returns inventory summaries for only the specified sellerSku. Note: The parameters associated with this operation may contain special characters that must be encoded to successfully call the API. To avoid errors with SKUs when encoding URLs, refer to URL Encoding. Usage Plan: | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 2 | The x-amzn-RateLimit-Limit response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see Usage Plans and Rate Limits in the Selling Partner API.
|
|
101
237
|
* @param {GetInventorySummariesGranularityTypeEnum} granularityType The granularity type for the inventory aggregation level.
|
|
102
238
|
* @param {string} granularityId The granularity ID for the inventory aggregation level.
|
|
103
239
|
* @param {Array<string>} marketplaceIds The marketplace ID for the marketplace for which to return inventory summaries.
|
|
@@ -125,7 +261,34 @@ export const FbaInventoryApiFactory = function (configuration, basePath, axios)
|
|
|
125
261
|
const localVarFp = FbaInventoryApiFp(configuration);
|
|
126
262
|
return {
|
|
127
263
|
/**
|
|
128
|
-
*
|
|
264
|
+
* Requests that Amazon add items to the Sandbox Inventory with desired amount of quantity in the sandbox environment. This is a sandbox-only operation and must be directed to a sandbox endpoint. Refer to [Selling Partner API sandbox](https://developer-docs.amazon.com/sp-api/docs/the-selling-partner-api-sandbox) for more information.
|
|
265
|
+
* @param {FbaInventoryApiAddInventoryRequest} requestParameters Request parameters.
|
|
266
|
+
* @param {*} [options] Override http request option.
|
|
267
|
+
* @throws {RequiredError}
|
|
268
|
+
*/
|
|
269
|
+
addInventory(requestParameters, options) {
|
|
270
|
+
return localVarFp.addInventory(requestParameters.xAmznIdempotencyToken, requestParameters.addInventoryRequestBody, options).then((request) => request(axios, basePath));
|
|
271
|
+
},
|
|
272
|
+
/**
|
|
273
|
+
* Requests that Amazon create product-details in the Sandbox Inventory in the sandbox environment. This is a sandbox-only operation and must be directed to a sandbox endpoint. Refer to [Selling Partner API sandbox](https://developer-docs.amazon.com/sp-api/docs/the-selling-partner-api-sandbox) for more information.
|
|
274
|
+
* @param {FbaInventoryApiCreateInventoryItemRequest} requestParameters Request parameters.
|
|
275
|
+
* @param {*} [options] Override http request option.
|
|
276
|
+
* @throws {RequiredError}
|
|
277
|
+
*/
|
|
278
|
+
createInventoryItem(requestParameters, options) {
|
|
279
|
+
return localVarFp.createInventoryItem(requestParameters.createInventoryItemRequestBody, options).then((request) => request(axios, basePath));
|
|
280
|
+
},
|
|
281
|
+
/**
|
|
282
|
+
* Requests that Amazon Deletes an item from the Sandbox Inventory in the sandbox environment. This is a sandbox-only operation and must be directed to a sandbox endpoint. Refer to [Selling Partner API sandbox](https://developer-docs.amazon.com/sp-api/docs/the-selling-partner-api-sandbox) for more information.
|
|
283
|
+
* @param {FbaInventoryApiDeleteInventoryItemRequest} requestParameters Request parameters.
|
|
284
|
+
* @param {*} [options] Override http request option.
|
|
285
|
+
* @throws {RequiredError}
|
|
286
|
+
*/
|
|
287
|
+
deleteInventoryItem(requestParameters, options) {
|
|
288
|
+
return localVarFp.deleteInventoryItem(requestParameters.sellerSku, requestParameters.marketplaceId, options).then((request) => request(axios, basePath));
|
|
289
|
+
},
|
|
290
|
+
/**
|
|
291
|
+
* Returns a list of inventory summaries. The summaries returned depend on the presence or absence of the startDateTime, sellerSkus and sellerSku parameters: - All inventory summaries with available details are returned when the startDateTime, sellerSkus and sellerSku parameters are omitted. - When startDateTime is provided, the operation returns inventory summaries that have had changes after the date and time specified. The sellerSkus and sellerSku parameters are ignored. Important: To avoid errors, use both startDateTime and nextToken to get the next page of inventory summaries that have changed after the date and time specified. - When the sellerSkus parameter is provided, the operation returns inventory summaries for only the specified sellerSkus. The sellerSku parameter is ignored. - When the sellerSku parameter is provided, the operation returns inventory summaries for only the specified sellerSku. Note: The parameters associated with this operation may contain special characters that must be encoded to successfully call the API. To avoid errors with SKUs when encoding URLs, refer to URL Encoding. Usage Plan: | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 2 | The x-amzn-RateLimit-Limit response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see Usage Plans and Rate Limits in the Selling Partner API.
|
|
129
292
|
* @param {FbaInventoryApiGetInventorySummariesRequest} requestParameters Request parameters.
|
|
130
293
|
* @param {*} [options] Override http request option.
|
|
131
294
|
* @throws {RequiredError}
|
|
@@ -143,7 +306,37 @@ export const FbaInventoryApiFactory = function (configuration, basePath, axios)
|
|
|
143
306
|
*/
|
|
144
307
|
export class FbaInventoryApi extends BaseAPI {
|
|
145
308
|
/**
|
|
146
|
-
*
|
|
309
|
+
* Requests that Amazon add items to the Sandbox Inventory with desired amount of quantity in the sandbox environment. This is a sandbox-only operation and must be directed to a sandbox endpoint. Refer to [Selling Partner API sandbox](https://developer-docs.amazon.com/sp-api/docs/the-selling-partner-api-sandbox) for more information.
|
|
310
|
+
* @param {FbaInventoryApiAddInventoryRequest} requestParameters Request parameters.
|
|
311
|
+
* @param {*} [options] Override http request option.
|
|
312
|
+
* @throws {RequiredError}
|
|
313
|
+
* @memberof FbaInventoryApi
|
|
314
|
+
*/
|
|
315
|
+
addInventory(requestParameters, options) {
|
|
316
|
+
return FbaInventoryApiFp(this.configuration).addInventory(requestParameters.xAmznIdempotencyToken, requestParameters.addInventoryRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
317
|
+
}
|
|
318
|
+
/**
|
|
319
|
+
* Requests that Amazon create product-details in the Sandbox Inventory in the sandbox environment. This is a sandbox-only operation and must be directed to a sandbox endpoint. Refer to [Selling Partner API sandbox](https://developer-docs.amazon.com/sp-api/docs/the-selling-partner-api-sandbox) for more information.
|
|
320
|
+
* @param {FbaInventoryApiCreateInventoryItemRequest} requestParameters Request parameters.
|
|
321
|
+
* @param {*} [options] Override http request option.
|
|
322
|
+
* @throws {RequiredError}
|
|
323
|
+
* @memberof FbaInventoryApi
|
|
324
|
+
*/
|
|
325
|
+
createInventoryItem(requestParameters, options) {
|
|
326
|
+
return FbaInventoryApiFp(this.configuration).createInventoryItem(requestParameters.createInventoryItemRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
327
|
+
}
|
|
328
|
+
/**
|
|
329
|
+
* Requests that Amazon Deletes an item from the Sandbox Inventory in the sandbox environment. This is a sandbox-only operation and must be directed to a sandbox endpoint. Refer to [Selling Partner API sandbox](https://developer-docs.amazon.com/sp-api/docs/the-selling-partner-api-sandbox) for more information.
|
|
330
|
+
* @param {FbaInventoryApiDeleteInventoryItemRequest} requestParameters Request parameters.
|
|
331
|
+
* @param {*} [options] Override http request option.
|
|
332
|
+
* @throws {RequiredError}
|
|
333
|
+
* @memberof FbaInventoryApi
|
|
334
|
+
*/
|
|
335
|
+
deleteInventoryItem(requestParameters, options) {
|
|
336
|
+
return FbaInventoryApiFp(this.configuration).deleteInventoryItem(requestParameters.sellerSku, requestParameters.marketplaceId, options).then((request) => request(this.axios, this.basePath));
|
|
337
|
+
}
|
|
338
|
+
/**
|
|
339
|
+
* Returns a list of inventory summaries. The summaries returned depend on the presence or absence of the startDateTime, sellerSkus and sellerSku parameters: - All inventory summaries with available details are returned when the startDateTime, sellerSkus and sellerSku parameters are omitted. - When startDateTime is provided, the operation returns inventory summaries that have had changes after the date and time specified. The sellerSkus and sellerSku parameters are ignored. Important: To avoid errors, use both startDateTime and nextToken to get the next page of inventory summaries that have changed after the date and time specified. - When the sellerSkus parameter is provided, the operation returns inventory summaries for only the specified sellerSkus. The sellerSku parameter is ignored. - When the sellerSku parameter is provided, the operation returns inventory summaries for only the specified sellerSku. Note: The parameters associated with this operation may contain special characters that must be encoded to successfully call the API. To avoid errors with SKUs when encoding URLs, refer to URL Encoding. Usage Plan: | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 2 | The x-amzn-RateLimit-Limit response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see Usage Plans and Rate Limits in the Selling Partner API.
|
|
147
340
|
* @param {FbaInventoryApiGetInventorySummariesRequest} requestParameters Request parameters.
|
|
148
341
|
* @param {*} [options] Override http request option.
|
|
149
342
|
* @throws {RequiredError}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Selling Partner API for FBA Inventory
|
|
5
|
+
* The Selling Partner API for FBA Inventory lets you programmatically retrieve information about inventory in Amazon\'s fulfillment network.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: v1
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Selling Partner API for FBA Inventory
|
|
5
|
+
* The Selling Partner API for FBA Inventory lets you programmatically retrieve information about inventory in Amazon\'s fulfillment network.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: v1
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Selling Partner API for FBA Inventory
|
|
5
|
+
* The Selling Partner API for FBA Inventory lets you programmatically retrieve information about inventory in Amazon\'s fulfillment network.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: v1
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Selling Partner API for FBA Inventory
|
|
5
|
+
* The Selling Partner API for FBA Inventory lets you programmatically retrieve information about inventory in Amazon\'s fulfillment network.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: v1
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Selling Partner API for FBA Inventory
|
|
5
|
+
* The Selling Partner API for FBA Inventory lets you programmatically retrieve information about inventory in Amazon\'s fulfillment network.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: v1
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
export {};
|
|
@@ -1,7 +1,13 @@
|
|
|
1
|
+
export * from './add-inventory-request';
|
|
2
|
+
export * from './add-inventory-response';
|
|
3
|
+
export * from './create-inventory-item-request';
|
|
4
|
+
export * from './create-inventory-item-response';
|
|
5
|
+
export * from './delete-inventory-item-response';
|
|
1
6
|
export * from './get-inventory-summaries-response';
|
|
2
7
|
export * from './get-inventory-summaries-result';
|
|
3
8
|
export * from './granularity';
|
|
4
9
|
export * from './inventory-details';
|
|
10
|
+
export * from './inventory-item';
|
|
5
11
|
export * from './inventory-summary';
|
|
6
12
|
export * from './model-error';
|
|
7
13
|
export * from './pagination';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Selling Partner API for FBA Inventory
|
|
5
|
+
* The Selling Partner API for FBA Inventory lets you programmatically retrieve information about inventory in Amazon\'s fulfillment network.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: v1
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
export {};
|
|
@@ -13,6 +13,11 @@ import type { Configuration } from '../configuration';
|
|
|
13
13
|
import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
14
14
|
import globalAxios from 'axios';
|
|
15
15
|
import { type RequestArgs, BaseAPI } from '../base';
|
|
16
|
+
import type { AddInventoryRequest } from '../models';
|
|
17
|
+
import type { AddInventoryResponse } from '../models';
|
|
18
|
+
import type { CreateInventoryItemRequest } from '../models';
|
|
19
|
+
import type { CreateInventoryItemResponse } from '../models';
|
|
20
|
+
import type { DeleteInventoryItemResponse } from '../models';
|
|
16
21
|
import type { GetInventorySummariesResponse } from '../models';
|
|
17
22
|
/**
|
|
18
23
|
* FbaInventoryApi - axios parameter creator
|
|
@@ -20,7 +25,30 @@ import type { GetInventorySummariesResponse } from '../models';
|
|
|
20
25
|
*/
|
|
21
26
|
export declare const FbaInventoryApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
22
27
|
/**
|
|
23
|
-
*
|
|
28
|
+
* Requests that Amazon add items to the Sandbox Inventory with desired amount of quantity in the sandbox environment. This is a sandbox-only operation and must be directed to a sandbox endpoint. Refer to [Selling Partner API sandbox](https://developer-docs.amazon.com/sp-api/docs/the-selling-partner-api-sandbox) for more information.
|
|
29
|
+
* @param {string} xAmznIdempotencyToken A unique token/requestId provided with each call to ensure idempotency.
|
|
30
|
+
* @param {AddInventoryRequest} addInventoryRequestBody List of items to add to Sandbox inventory.
|
|
31
|
+
* @param {*} [options] Override http request option.
|
|
32
|
+
* @throws {RequiredError}
|
|
33
|
+
*/
|
|
34
|
+
addInventory: (xAmznIdempotencyToken: string, addInventoryRequestBody: AddInventoryRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
35
|
+
/**
|
|
36
|
+
* Requests that Amazon create product-details in the Sandbox Inventory in the sandbox environment. This is a sandbox-only operation and must be directed to a sandbox endpoint. Refer to [Selling Partner API sandbox](https://developer-docs.amazon.com/sp-api/docs/the-selling-partner-api-sandbox) for more information.
|
|
37
|
+
* @param {CreateInventoryItemRequest} createInventoryItemRequestBody CreateInventoryItem Request Body Parameter.
|
|
38
|
+
* @param {*} [options] Override http request option.
|
|
39
|
+
* @throws {RequiredError}
|
|
40
|
+
*/
|
|
41
|
+
createInventoryItem: (createInventoryItemRequestBody: CreateInventoryItemRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
42
|
+
/**
|
|
43
|
+
* Requests that Amazon Deletes an item from the Sandbox Inventory in the sandbox environment. This is a sandbox-only operation and must be directed to a sandbox endpoint. Refer to [Selling Partner API sandbox](https://developer-docs.amazon.com/sp-api/docs/the-selling-partner-api-sandbox) for more information.
|
|
44
|
+
* @param {string} sellerSku A single seller SKU used for querying the specified seller SKU inventory summaries.
|
|
45
|
+
* @param {string} marketplaceId The marketplace ID for the marketplace for which the sellerSku is to be deleted.
|
|
46
|
+
* @param {*} [options] Override http request option.
|
|
47
|
+
* @throws {RequiredError}
|
|
48
|
+
*/
|
|
49
|
+
deleteInventoryItem: (sellerSku: string, marketplaceId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
50
|
+
/**
|
|
51
|
+
* Returns a list of inventory summaries. The summaries returned depend on the presence or absence of the startDateTime, sellerSkus and sellerSku parameters: - All inventory summaries with available details are returned when the startDateTime, sellerSkus and sellerSku parameters are omitted. - When startDateTime is provided, the operation returns inventory summaries that have had changes after the date and time specified. The sellerSkus and sellerSku parameters are ignored. Important: To avoid errors, use both startDateTime and nextToken to get the next page of inventory summaries that have changed after the date and time specified. - When the sellerSkus parameter is provided, the operation returns inventory summaries for only the specified sellerSkus. The sellerSku parameter is ignored. - When the sellerSku parameter is provided, the operation returns inventory summaries for only the specified sellerSku. Note: The parameters associated with this operation may contain special characters that must be encoded to successfully call the API. To avoid errors with SKUs when encoding URLs, refer to URL Encoding. Usage Plan: | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 2 | The x-amzn-RateLimit-Limit response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see Usage Plans and Rate Limits in the Selling Partner API.
|
|
24
52
|
* @param {GetInventorySummariesGranularityTypeEnum} granularityType The granularity type for the inventory aggregation level.
|
|
25
53
|
* @param {string} granularityId The granularity ID for the inventory aggregation level.
|
|
26
54
|
* @param {Array<string>} marketplaceIds The marketplace ID for the marketplace for which to return inventory summaries.
|
|
@@ -40,7 +68,30 @@ export declare const FbaInventoryApiAxiosParamCreator: (configuration?: Configur
|
|
|
40
68
|
*/
|
|
41
69
|
export declare const FbaInventoryApiFp: (configuration?: Configuration) => {
|
|
42
70
|
/**
|
|
43
|
-
*
|
|
71
|
+
* Requests that Amazon add items to the Sandbox Inventory with desired amount of quantity in the sandbox environment. This is a sandbox-only operation and must be directed to a sandbox endpoint. Refer to [Selling Partner API sandbox](https://developer-docs.amazon.com/sp-api/docs/the-selling-partner-api-sandbox) for more information.
|
|
72
|
+
* @param {string} xAmznIdempotencyToken A unique token/requestId provided with each call to ensure idempotency.
|
|
73
|
+
* @param {AddInventoryRequest} addInventoryRequestBody List of items to add to Sandbox inventory.
|
|
74
|
+
* @param {*} [options] Override http request option.
|
|
75
|
+
* @throws {RequiredError}
|
|
76
|
+
*/
|
|
77
|
+
addInventory(xAmznIdempotencyToken: string, addInventoryRequestBody: AddInventoryRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AddInventoryResponse>>;
|
|
78
|
+
/**
|
|
79
|
+
* Requests that Amazon create product-details in the Sandbox Inventory in the sandbox environment. This is a sandbox-only operation and must be directed to a sandbox endpoint. Refer to [Selling Partner API sandbox](https://developer-docs.amazon.com/sp-api/docs/the-selling-partner-api-sandbox) for more information.
|
|
80
|
+
* @param {CreateInventoryItemRequest} createInventoryItemRequestBody CreateInventoryItem Request Body Parameter.
|
|
81
|
+
* @param {*} [options] Override http request option.
|
|
82
|
+
* @throws {RequiredError}
|
|
83
|
+
*/
|
|
84
|
+
createInventoryItem(createInventoryItemRequestBody: CreateInventoryItemRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateInventoryItemResponse>>;
|
|
85
|
+
/**
|
|
86
|
+
* Requests that Amazon Deletes an item from the Sandbox Inventory in the sandbox environment. This is a sandbox-only operation and must be directed to a sandbox endpoint. Refer to [Selling Partner API sandbox](https://developer-docs.amazon.com/sp-api/docs/the-selling-partner-api-sandbox) for more information.
|
|
87
|
+
* @param {string} sellerSku A single seller SKU used for querying the specified seller SKU inventory summaries.
|
|
88
|
+
* @param {string} marketplaceId The marketplace ID for the marketplace for which the sellerSku is to be deleted.
|
|
89
|
+
* @param {*} [options] Override http request option.
|
|
90
|
+
* @throws {RequiredError}
|
|
91
|
+
*/
|
|
92
|
+
deleteInventoryItem(sellerSku: string, marketplaceId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DeleteInventoryItemResponse>>;
|
|
93
|
+
/**
|
|
94
|
+
* Returns a list of inventory summaries. The summaries returned depend on the presence or absence of the startDateTime, sellerSkus and sellerSku parameters: - All inventory summaries with available details are returned when the startDateTime, sellerSkus and sellerSku parameters are omitted. - When startDateTime is provided, the operation returns inventory summaries that have had changes after the date and time specified. The sellerSkus and sellerSku parameters are ignored. Important: To avoid errors, use both startDateTime and nextToken to get the next page of inventory summaries that have changed after the date and time specified. - When the sellerSkus parameter is provided, the operation returns inventory summaries for only the specified sellerSkus. The sellerSku parameter is ignored. - When the sellerSku parameter is provided, the operation returns inventory summaries for only the specified sellerSku. Note: The parameters associated with this operation may contain special characters that must be encoded to successfully call the API. To avoid errors with SKUs when encoding URLs, refer to URL Encoding. Usage Plan: | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 2 | The x-amzn-RateLimit-Limit response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see Usage Plans and Rate Limits in the Selling Partner API.
|
|
44
95
|
* @param {GetInventorySummariesGranularityTypeEnum} granularityType The granularity type for the inventory aggregation level.
|
|
45
96
|
* @param {string} granularityId The granularity ID for the inventory aggregation level.
|
|
46
97
|
* @param {Array<string>} marketplaceIds The marketplace ID for the marketplace for which to return inventory summaries.
|
|
@@ -60,13 +111,85 @@ export declare const FbaInventoryApiFp: (configuration?: Configuration) => {
|
|
|
60
111
|
*/
|
|
61
112
|
export declare const FbaInventoryApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
62
113
|
/**
|
|
63
|
-
*
|
|
114
|
+
* Requests that Amazon add items to the Sandbox Inventory with desired amount of quantity in the sandbox environment. This is a sandbox-only operation and must be directed to a sandbox endpoint. Refer to [Selling Partner API sandbox](https://developer-docs.amazon.com/sp-api/docs/the-selling-partner-api-sandbox) for more information.
|
|
115
|
+
* @param {FbaInventoryApiAddInventoryRequest} requestParameters Request parameters.
|
|
116
|
+
* @param {*} [options] Override http request option.
|
|
117
|
+
* @throws {RequiredError}
|
|
118
|
+
*/
|
|
119
|
+
addInventory(requestParameters: FbaInventoryApiAddInventoryRequest, options?: RawAxiosRequestConfig): AxiosPromise<AddInventoryResponse>;
|
|
120
|
+
/**
|
|
121
|
+
* Requests that Amazon create product-details in the Sandbox Inventory in the sandbox environment. This is a sandbox-only operation and must be directed to a sandbox endpoint. Refer to [Selling Partner API sandbox](https://developer-docs.amazon.com/sp-api/docs/the-selling-partner-api-sandbox) for more information.
|
|
122
|
+
* @param {FbaInventoryApiCreateInventoryItemRequest} requestParameters Request parameters.
|
|
123
|
+
* @param {*} [options] Override http request option.
|
|
124
|
+
* @throws {RequiredError}
|
|
125
|
+
*/
|
|
126
|
+
createInventoryItem(requestParameters: FbaInventoryApiCreateInventoryItemRequest, options?: RawAxiosRequestConfig): AxiosPromise<CreateInventoryItemResponse>;
|
|
127
|
+
/**
|
|
128
|
+
* Requests that Amazon Deletes an item from the Sandbox Inventory in the sandbox environment. This is a sandbox-only operation and must be directed to a sandbox endpoint. Refer to [Selling Partner API sandbox](https://developer-docs.amazon.com/sp-api/docs/the-selling-partner-api-sandbox) for more information.
|
|
129
|
+
* @param {FbaInventoryApiDeleteInventoryItemRequest} requestParameters Request parameters.
|
|
130
|
+
* @param {*} [options] Override http request option.
|
|
131
|
+
* @throws {RequiredError}
|
|
132
|
+
*/
|
|
133
|
+
deleteInventoryItem(requestParameters: FbaInventoryApiDeleteInventoryItemRequest, options?: RawAxiosRequestConfig): AxiosPromise<DeleteInventoryItemResponse>;
|
|
134
|
+
/**
|
|
135
|
+
* Returns a list of inventory summaries. The summaries returned depend on the presence or absence of the startDateTime, sellerSkus and sellerSku parameters: - All inventory summaries with available details are returned when the startDateTime, sellerSkus and sellerSku parameters are omitted. - When startDateTime is provided, the operation returns inventory summaries that have had changes after the date and time specified. The sellerSkus and sellerSku parameters are ignored. Important: To avoid errors, use both startDateTime and nextToken to get the next page of inventory summaries that have changed after the date and time specified. - When the sellerSkus parameter is provided, the operation returns inventory summaries for only the specified sellerSkus. The sellerSku parameter is ignored. - When the sellerSku parameter is provided, the operation returns inventory summaries for only the specified sellerSku. Note: The parameters associated with this operation may contain special characters that must be encoded to successfully call the API. To avoid errors with SKUs when encoding URLs, refer to URL Encoding. Usage Plan: | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 2 | The x-amzn-RateLimit-Limit response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see Usage Plans and Rate Limits in the Selling Partner API.
|
|
64
136
|
* @param {FbaInventoryApiGetInventorySummariesRequest} requestParameters Request parameters.
|
|
65
137
|
* @param {*} [options] Override http request option.
|
|
66
138
|
* @throws {RequiredError}
|
|
67
139
|
*/
|
|
68
140
|
getInventorySummaries(requestParameters: FbaInventoryApiGetInventorySummariesRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetInventorySummariesResponse>;
|
|
69
141
|
};
|
|
142
|
+
/**
|
|
143
|
+
* Request parameters for addInventory operation in FbaInventoryApi.
|
|
144
|
+
* @export
|
|
145
|
+
* @interface FbaInventoryApiAddInventoryRequest
|
|
146
|
+
*/
|
|
147
|
+
export interface FbaInventoryApiAddInventoryRequest {
|
|
148
|
+
/**
|
|
149
|
+
* A unique token/requestId provided with each call to ensure idempotency.
|
|
150
|
+
* @type {string}
|
|
151
|
+
* @memberof FbaInventoryApiAddInventory
|
|
152
|
+
*/
|
|
153
|
+
readonly xAmznIdempotencyToken: string;
|
|
154
|
+
/**
|
|
155
|
+
* List of items to add to Sandbox inventory.
|
|
156
|
+
* @type {AddInventoryRequest}
|
|
157
|
+
* @memberof FbaInventoryApiAddInventory
|
|
158
|
+
*/
|
|
159
|
+
readonly addInventoryRequestBody: AddInventoryRequest;
|
|
160
|
+
}
|
|
161
|
+
/**
|
|
162
|
+
* Request parameters for createInventoryItem operation in FbaInventoryApi.
|
|
163
|
+
* @export
|
|
164
|
+
* @interface FbaInventoryApiCreateInventoryItemRequest
|
|
165
|
+
*/
|
|
166
|
+
export interface FbaInventoryApiCreateInventoryItemRequest {
|
|
167
|
+
/**
|
|
168
|
+
* CreateInventoryItem Request Body Parameter.
|
|
169
|
+
* @type {CreateInventoryItemRequest}
|
|
170
|
+
* @memberof FbaInventoryApiCreateInventoryItem
|
|
171
|
+
*/
|
|
172
|
+
readonly createInventoryItemRequestBody: CreateInventoryItemRequest;
|
|
173
|
+
}
|
|
174
|
+
/**
|
|
175
|
+
* Request parameters for deleteInventoryItem operation in FbaInventoryApi.
|
|
176
|
+
* @export
|
|
177
|
+
* @interface FbaInventoryApiDeleteInventoryItemRequest
|
|
178
|
+
*/
|
|
179
|
+
export interface FbaInventoryApiDeleteInventoryItemRequest {
|
|
180
|
+
/**
|
|
181
|
+
* A single seller SKU used for querying the specified seller SKU inventory summaries.
|
|
182
|
+
* @type {string}
|
|
183
|
+
* @memberof FbaInventoryApiDeleteInventoryItem
|
|
184
|
+
*/
|
|
185
|
+
readonly sellerSku: string;
|
|
186
|
+
/**
|
|
187
|
+
* The marketplace ID for the marketplace for which the sellerSku is to be deleted.
|
|
188
|
+
* @type {string}
|
|
189
|
+
* @memberof FbaInventoryApiDeleteInventoryItem
|
|
190
|
+
*/
|
|
191
|
+
readonly marketplaceId: string;
|
|
192
|
+
}
|
|
70
193
|
/**
|
|
71
194
|
* Request parameters for getInventorySummaries operation in FbaInventoryApi.
|
|
72
195
|
* @export
|
|
@@ -130,7 +253,31 @@ export interface FbaInventoryApiGetInventorySummariesRequest {
|
|
|
130
253
|
*/
|
|
131
254
|
export declare class FbaInventoryApi extends BaseAPI {
|
|
132
255
|
/**
|
|
133
|
-
*
|
|
256
|
+
* Requests that Amazon add items to the Sandbox Inventory with desired amount of quantity in the sandbox environment. This is a sandbox-only operation and must be directed to a sandbox endpoint. Refer to [Selling Partner API sandbox](https://developer-docs.amazon.com/sp-api/docs/the-selling-partner-api-sandbox) for more information.
|
|
257
|
+
* @param {FbaInventoryApiAddInventoryRequest} requestParameters Request parameters.
|
|
258
|
+
* @param {*} [options] Override http request option.
|
|
259
|
+
* @throws {RequiredError}
|
|
260
|
+
* @memberof FbaInventoryApi
|
|
261
|
+
*/
|
|
262
|
+
addInventory(requestParameters: FbaInventoryApiAddInventoryRequest, options?: RawAxiosRequestConfig): Promise<globalAxios.AxiosResponse<AddInventoryResponse, any>>;
|
|
263
|
+
/**
|
|
264
|
+
* Requests that Amazon create product-details in the Sandbox Inventory in the sandbox environment. This is a sandbox-only operation and must be directed to a sandbox endpoint. Refer to [Selling Partner API sandbox](https://developer-docs.amazon.com/sp-api/docs/the-selling-partner-api-sandbox) for more information.
|
|
265
|
+
* @param {FbaInventoryApiCreateInventoryItemRequest} requestParameters Request parameters.
|
|
266
|
+
* @param {*} [options] Override http request option.
|
|
267
|
+
* @throws {RequiredError}
|
|
268
|
+
* @memberof FbaInventoryApi
|
|
269
|
+
*/
|
|
270
|
+
createInventoryItem(requestParameters: FbaInventoryApiCreateInventoryItemRequest, options?: RawAxiosRequestConfig): Promise<globalAxios.AxiosResponse<CreateInventoryItemResponse, any>>;
|
|
271
|
+
/**
|
|
272
|
+
* Requests that Amazon Deletes an item from the Sandbox Inventory in the sandbox environment. This is a sandbox-only operation and must be directed to a sandbox endpoint. Refer to [Selling Partner API sandbox](https://developer-docs.amazon.com/sp-api/docs/the-selling-partner-api-sandbox) for more information.
|
|
273
|
+
* @param {FbaInventoryApiDeleteInventoryItemRequest} requestParameters Request parameters.
|
|
274
|
+
* @param {*} [options] Override http request option.
|
|
275
|
+
* @throws {RequiredError}
|
|
276
|
+
* @memberof FbaInventoryApi
|
|
277
|
+
*/
|
|
278
|
+
deleteInventoryItem(requestParameters: FbaInventoryApiDeleteInventoryItemRequest, options?: RawAxiosRequestConfig): Promise<globalAxios.AxiosResponse<DeleteInventoryItemResponse, any>>;
|
|
279
|
+
/**
|
|
280
|
+
* Returns a list of inventory summaries. The summaries returned depend on the presence or absence of the startDateTime, sellerSkus and sellerSku parameters: - All inventory summaries with available details are returned when the startDateTime, sellerSkus and sellerSku parameters are omitted. - When startDateTime is provided, the operation returns inventory summaries that have had changes after the date and time specified. The sellerSkus and sellerSku parameters are ignored. Important: To avoid errors, use both startDateTime and nextToken to get the next page of inventory summaries that have changed after the date and time specified. - When the sellerSkus parameter is provided, the operation returns inventory summaries for only the specified sellerSkus. The sellerSku parameter is ignored. - When the sellerSku parameter is provided, the operation returns inventory summaries for only the specified sellerSku. Note: The parameters associated with this operation may contain special characters that must be encoded to successfully call the API. To avoid errors with SKUs when encoding URLs, refer to URL Encoding. Usage Plan: | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 2 | The x-amzn-RateLimit-Limit response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see Usage Plans and Rate Limits in the Selling Partner API.
|
|
134
281
|
* @param {FbaInventoryApiGetInventorySummariesRequest} requestParameters Request parameters.
|
|
135
282
|
* @param {*} [options] Override http request option.
|
|
136
283
|
* @throws {RequiredError}
|
|
@@ -9,7 +9,6 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
/// <reference types="node" />
|
|
13
12
|
import type { Configuration } from "./configuration";
|
|
14
13
|
import type { RequestArgs } from "./base";
|
|
15
14
|
import type { AxiosInstance, AxiosResponse } from 'axios';
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Selling Partner API for FBA Inventory
|
|
3
|
+
* The Selling Partner API for FBA Inventory lets you programmatically retrieve information about inventory in Amazon\'s fulfillment network.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: v1
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { InventoryItem } from './inventory-item';
|
|
13
|
+
/**
|
|
14
|
+
* The object with the list of Inventory to be added
|
|
15
|
+
* @export
|
|
16
|
+
* @interface AddInventoryRequest
|
|
17
|
+
*/
|
|
18
|
+
export interface AddInventoryRequest {
|
|
19
|
+
/**
|
|
20
|
+
* List of Inventory to be added
|
|
21
|
+
* @type {Array<InventoryItem>}
|
|
22
|
+
* @memberof AddInventoryRequest
|
|
23
|
+
*/
|
|
24
|
+
'inventoryItems'?: Array<InventoryItem>;
|
|
25
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Selling Partner API for FBA Inventory
|
|
3
|
+
* The Selling Partner API for FBA Inventory lets you programmatically retrieve information about inventory in Amazon\'s fulfillment network.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: v1
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* The response schema for the AddInventory operation.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface AddInventoryResponse
|
|
16
|
+
*/
|
|
17
|
+
export interface AddInventoryResponse {
|
|
18
|
+
/**
|
|
19
|
+
* A list of error responses returned when a request is unsuccessful.
|
|
20
|
+
* @type {Array<Error>}
|
|
21
|
+
* @memberof AddInventoryResponse
|
|
22
|
+
*/
|
|
23
|
+
'errors'?: Array<Error>;
|
|
24
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Selling Partner API for FBA Inventory
|
|
3
|
+
* The Selling Partner API for FBA Inventory lets you programmatically retrieve information about inventory in Amazon\'s fulfillment network.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: v1
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* An item to be created in the inventory.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface CreateInventoryItemRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface CreateInventoryItemRequest {
|
|
18
|
+
/**
|
|
19
|
+
* The seller SKU of the item.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof CreateInventoryItemRequest
|
|
22
|
+
*/
|
|
23
|
+
'sellerSku': string;
|
|
24
|
+
/**
|
|
25
|
+
* The marketplaceId.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof CreateInventoryItemRequest
|
|
28
|
+
*/
|
|
29
|
+
'marketplaceId': string;
|
|
30
|
+
/**
|
|
31
|
+
* The name of the item.
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof CreateInventoryItemRequest
|
|
34
|
+
*/
|
|
35
|
+
'productName': string;
|
|
36
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Selling Partner API for FBA Inventory
|
|
3
|
+
* The Selling Partner API for FBA Inventory lets you programmatically retrieve information about inventory in Amazon\'s fulfillment network.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: v1
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* The response schema for the CreateInventoryItem operation.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface CreateInventoryItemResponse
|
|
16
|
+
*/
|
|
17
|
+
export interface CreateInventoryItemResponse {
|
|
18
|
+
/**
|
|
19
|
+
* A list of error responses returned when a request is unsuccessful.
|
|
20
|
+
* @type {Array<Error>}
|
|
21
|
+
* @memberof CreateInventoryItemResponse
|
|
22
|
+
*/
|
|
23
|
+
'errors'?: Array<Error>;
|
|
24
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Selling Partner API for FBA Inventory
|
|
3
|
+
* The Selling Partner API for FBA Inventory lets you programmatically retrieve information about inventory in Amazon\'s fulfillment network.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: v1
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* The response schema for the DeleteInventoryItem operation.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface DeleteInventoryItemResponse
|
|
16
|
+
*/
|
|
17
|
+
export interface DeleteInventoryItemResponse {
|
|
18
|
+
/**
|
|
19
|
+
* A list of error responses returned when a request is unsuccessful.
|
|
20
|
+
* @type {Array<Error>}
|
|
21
|
+
* @memberof DeleteInventoryItemResponse
|
|
22
|
+
*/
|
|
23
|
+
'errors'?: Array<Error>;
|
|
24
|
+
}
|
|
@@ -1,7 +1,13 @@
|
|
|
1
|
+
export * from './add-inventory-request';
|
|
2
|
+
export * from './add-inventory-response';
|
|
3
|
+
export * from './create-inventory-item-request';
|
|
4
|
+
export * from './create-inventory-item-response';
|
|
5
|
+
export * from './delete-inventory-item-response';
|
|
1
6
|
export * from './get-inventory-summaries-response';
|
|
2
7
|
export * from './get-inventory-summaries-result';
|
|
3
8
|
export * from './granularity';
|
|
4
9
|
export * from './inventory-details';
|
|
10
|
+
export * from './inventory-item';
|
|
5
11
|
export * from './inventory-summary';
|
|
6
12
|
export * from './model-error';
|
|
7
13
|
export * from './pagination';
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Selling Partner API for FBA Inventory
|
|
3
|
+
* The Selling Partner API for FBA Inventory lets you programmatically retrieve information about inventory in Amazon\'s fulfillment network.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: v1
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* An item in the list of inventory to be added.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface InventoryItem
|
|
16
|
+
*/
|
|
17
|
+
export interface InventoryItem {
|
|
18
|
+
/**
|
|
19
|
+
* The seller SKU of the item.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof InventoryItem
|
|
22
|
+
*/
|
|
23
|
+
'sellerSku': string;
|
|
24
|
+
/**
|
|
25
|
+
* The marketplaceId.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof InventoryItem
|
|
28
|
+
*/
|
|
29
|
+
'marketplaceId': string;
|
|
30
|
+
/**
|
|
31
|
+
* The quantity of item to add.
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof InventoryItem
|
|
34
|
+
*/
|
|
35
|
+
'quantity': number;
|
|
36
|
+
}
|
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": "2.
|
|
5
|
+
"version": "2.2.1",
|
|
6
6
|
"main": "dist/cjs/index.js",
|
|
7
7
|
"module": "dist/es/index.js",
|
|
8
8
|
"types": "dist/types/index.d.ts",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"dist/**/*.d.ts"
|
|
19
19
|
],
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@sp-api-sdk/common": "2.0.
|
|
21
|
+
"@sp-api-sdk/common": "2.0.10",
|
|
22
22
|
"axios": "^1.7.2"
|
|
23
23
|
},
|
|
24
24
|
"repository": {
|
|
@@ -40,5 +40,5 @@
|
|
|
40
40
|
"sp sdk",
|
|
41
41
|
"fba inventory api"
|
|
42
42
|
],
|
|
43
|
-
"gitHead": "
|
|
43
|
+
"gitHead": "c646647a684e625c54e35ff8c141791efd60417c"
|
|
44
44
|
}
|