@sp-api-sdk/external-fulfillment-inventory-api-2024-09-11 2.0.0 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -4
- package/dist/index.cjs +283 -288
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +250 -319
- package/dist/index.d.ts +250 -319
- package/dist/index.js +258 -250
- package/dist/index.js.map +1 -1
- package/package.json +7 -4
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { ClientConfiguration, RateLimit } from
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { ClientConfiguration, RateLimit } from "@sp-api-sdk/common";
|
|
2
|
+
import { AxiosInstance, AxiosPromise, RawAxiosRequestConfig } from "axios";
|
|
3
|
+
//#region src/api-model/configuration.d.ts
|
|
5
4
|
/**
|
|
6
5
|
* The Selling Partner API for External Fulfillment Inventory Management
|
|
7
6
|
* You can use the Amazon External Fulfillment Inventory API to manage inventory operations in Amazon\'s External Fulfillment network, including batch inventory updates and retrievals.
|
|
@@ -14,115 +13,105 @@ import { AxiosInstance, RawAxiosRequestConfig, AxiosPromise } from 'axios';
|
|
|
14
13
|
* Do not edit the class manually.
|
|
15
14
|
*/
|
|
16
15
|
interface AWSv4Configuration {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
16
|
+
options?: {
|
|
17
|
+
region?: string;
|
|
18
|
+
service?: string;
|
|
19
|
+
};
|
|
20
|
+
credentials?: {
|
|
21
|
+
accessKeyId?: string;
|
|
22
|
+
secretAccessKey?: string;
|
|
23
|
+
sessionToken?: string;
|
|
24
|
+
};
|
|
26
25
|
}
|
|
27
26
|
interface ConfigurationParameters {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
27
|
+
apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
|
|
28
|
+
username?: string;
|
|
29
|
+
password?: string;
|
|
30
|
+
accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
|
|
31
|
+
awsv4?: AWSv4Configuration;
|
|
32
|
+
basePath?: string;
|
|
33
|
+
serverIndex?: number;
|
|
34
|
+
baseOptions?: any;
|
|
35
|
+
formDataCtor?: new () => any;
|
|
37
36
|
}
|
|
38
37
|
declare class Configuration {
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
38
|
+
/**
|
|
39
|
+
* parameter for apiKey security
|
|
40
|
+
* @param name security name
|
|
41
|
+
*/
|
|
42
|
+
apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
|
|
43
|
+
/**
|
|
44
|
+
* parameter for basic security
|
|
45
|
+
*/
|
|
46
|
+
username?: string;
|
|
47
|
+
/**
|
|
48
|
+
* parameter for basic security
|
|
49
|
+
*/
|
|
50
|
+
password?: string;
|
|
51
|
+
/**
|
|
52
|
+
* parameter for oauth2 security
|
|
53
|
+
* @param name security name
|
|
54
|
+
* @param scopes oauth2 scope
|
|
55
|
+
*/
|
|
56
|
+
accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
|
|
57
|
+
/**
|
|
58
|
+
* parameter for aws4 signature security
|
|
59
|
+
* @param {Object} AWS4Signature - AWS4 Signature security
|
|
60
|
+
* @param {string} options.region - aws region
|
|
61
|
+
* @param {string} options.service - name of the service.
|
|
62
|
+
* @param {string} credentials.accessKeyId - aws access key id
|
|
63
|
+
* @param {string} credentials.secretAccessKey - aws access key
|
|
64
|
+
* @param {string} credentials.sessionToken - aws session token
|
|
65
|
+
* @memberof Configuration
|
|
66
|
+
*/
|
|
67
|
+
awsv4?: AWSv4Configuration;
|
|
68
|
+
/**
|
|
69
|
+
* override base path
|
|
70
|
+
*/
|
|
71
|
+
basePath?: string;
|
|
72
|
+
/**
|
|
73
|
+
* override server index
|
|
74
|
+
*/
|
|
75
|
+
serverIndex?: number;
|
|
76
|
+
/**
|
|
77
|
+
* base options for axios calls
|
|
78
|
+
*/
|
|
79
|
+
baseOptions?: any;
|
|
80
|
+
/**
|
|
81
|
+
* The FormData constructor that will be used to create multipart form data
|
|
82
|
+
* requests. You can inject this here so that execution environments that
|
|
83
|
+
* do not support the FormData class can still run the generated client.
|
|
84
|
+
*
|
|
85
|
+
* @type {new () => FormData}
|
|
86
|
+
*/
|
|
87
|
+
formDataCtor?: new () => any;
|
|
88
|
+
constructor(param?: ConfigurationParameters);
|
|
89
|
+
/**
|
|
90
|
+
* Check if the given MIME is a JSON MIME.
|
|
91
|
+
* JSON MIME examples:
|
|
92
|
+
* application/json
|
|
93
|
+
* application/json; charset=UTF8
|
|
94
|
+
* APPLICATION/JSON
|
|
95
|
+
* application/vnd.company+json
|
|
96
|
+
* @param mime - MIME (Multipurpose Internet Mail Extensions)
|
|
97
|
+
* @return True if the given MIME is JSON, false otherwise.
|
|
98
|
+
*/
|
|
99
|
+
isJsonMime(mime: string): boolean;
|
|
101
100
|
}
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
* The Selling Partner API for External Fulfillment Inventory Management
|
|
105
|
-
* You can use the Amazon External Fulfillment Inventory API to manage inventory operations in Amazon\'s External Fulfillment network, including batch inventory updates and retrievals.
|
|
106
|
-
*
|
|
107
|
-
* The version of the OpenAPI document: 2024-09-11
|
|
108
|
-
*
|
|
109
|
-
*
|
|
110
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
111
|
-
* https://openapi-generator.tech
|
|
112
|
-
* Do not edit the class manually.
|
|
113
|
-
*/
|
|
114
|
-
|
|
101
|
+
//#endregion
|
|
102
|
+
//#region src/api-model/base.d.ts
|
|
115
103
|
interface RequestArgs {
|
|
116
|
-
|
|
117
|
-
|
|
104
|
+
url: string;
|
|
105
|
+
options: RawAxiosRequestConfig;
|
|
118
106
|
}
|
|
119
107
|
declare class BaseAPI {
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
108
|
+
protected basePath: string;
|
|
109
|
+
protected axios: AxiosInstance;
|
|
110
|
+
protected configuration: Configuration | undefined;
|
|
111
|
+
constructor(configuration?: Configuration, basePath?: string, axios?: AxiosInstance);
|
|
124
112
|
}
|
|
125
|
-
|
|
113
|
+
//#endregion
|
|
114
|
+
//#region src/api-model/models/actionable-error.d.ts
|
|
126
115
|
/**
|
|
127
116
|
* The Selling Partner API for External Fulfillment Inventory Management
|
|
128
117
|
* You can use the Amazon External Fulfillment Inventory API to manage inventory operations in Amazon\'s External Fulfillment network, including batch inventory updates and retrievals.
|
|
@@ -138,16 +127,17 @@ declare class BaseAPI {
|
|
|
138
127
|
* Error details you can take action on.
|
|
139
128
|
*/
|
|
140
129
|
interface ActionableError {
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
130
|
+
/**
|
|
131
|
+
* The top level error type that may contain multiple error subtypes.
|
|
132
|
+
*/
|
|
133
|
+
'errorType'?: string;
|
|
134
|
+
/**
|
|
135
|
+
* The secondary level error type.
|
|
136
|
+
*/
|
|
137
|
+
'errorSubType'?: string;
|
|
149
138
|
}
|
|
150
|
-
|
|
139
|
+
//#endregion
|
|
140
|
+
//#region src/api-model/models/http-method.d.ts
|
|
151
141
|
/**
|
|
152
142
|
* The Selling Partner API for External Fulfillment Inventory Management
|
|
153
143
|
* You can use the Amazon External Fulfillment Inventory API to manage inventory operations in Amazon\'s External Fulfillment network, including batch inventory updates and retrievals.
|
|
@@ -163,11 +153,12 @@ interface ActionableError {
|
|
|
163
153
|
* The HTTP method associated with an individual request within a batch.
|
|
164
154
|
*/
|
|
165
155
|
declare const HttpMethod: {
|
|
166
|
-
|
|
167
|
-
|
|
156
|
+
readonly Get: "GET";
|
|
157
|
+
readonly Post: "POST";
|
|
168
158
|
};
|
|
169
159
|
type HttpMethod = typeof HttpMethod[keyof typeof HttpMethod];
|
|
170
|
-
|
|
160
|
+
//#endregion
|
|
161
|
+
//#region src/api-model/models/marketplace-attributes.d.ts
|
|
171
162
|
/**
|
|
172
163
|
* The Selling Partner API for External Fulfillment Inventory Management
|
|
173
164
|
* You can use the Amazon External Fulfillment Inventory API to manage inventory operations in Amazon\'s External Fulfillment network, including batch inventory updates and retrievals.
|
|
@@ -183,95 +174,63 @@ type HttpMethod = typeof HttpMethod[keyof typeof HttpMethod];
|
|
|
183
174
|
* The channel name and marketplace ID. This is required only when multiple channels have the same location ID.
|
|
184
175
|
*/
|
|
185
176
|
interface MarketplaceAttributes {
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
177
|
+
/**
|
|
178
|
+
* The name of the fulfillment channel in which to update inventory.
|
|
179
|
+
*/
|
|
180
|
+
'channelName'?: MarketplaceAttributesChannelNameEnum;
|
|
181
|
+
/**
|
|
182
|
+
* The marketplace ID of the marketplace where you want to update inventory.
|
|
183
|
+
*/
|
|
184
|
+
'marketplaceId'?: string;
|
|
194
185
|
}
|
|
195
186
|
declare const MarketplaceAttributesChannelNameEnum: {
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
187
|
+
readonly Fba: "FBA";
|
|
188
|
+
readonly Mfn: "MFN";
|
|
189
|
+
readonly Df: "DF";
|
|
199
190
|
};
|
|
200
191
|
type MarketplaceAttributesChannelNameEnum = typeof MarketplaceAttributesChannelNameEnum[keyof typeof MarketplaceAttributesChannelNameEnum];
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
* The Selling Partner API for External Fulfillment Inventory Management
|
|
204
|
-
* You can use the Amazon External Fulfillment Inventory API to manage inventory operations in Amazon\'s External Fulfillment network, including batch inventory updates and retrievals.
|
|
205
|
-
*
|
|
206
|
-
* The version of the OpenAPI document: 2024-09-11
|
|
207
|
-
*
|
|
208
|
-
*
|
|
209
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
210
|
-
* https://openapi-generator.tech
|
|
211
|
-
* Do not edit the class manually.
|
|
212
|
-
*/
|
|
213
|
-
|
|
192
|
+
//#endregion
|
|
193
|
+
//#region src/api-model/models/inventory-request-params.d.ts
|
|
214
194
|
/**
|
|
215
195
|
* The parameters for an individual request.
|
|
216
196
|
*/
|
|
217
197
|
interface InventoryRequestParams {
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
198
|
+
/**
|
|
199
|
+
* The latest sequence number for the inventory update operation. You find this value in the `clientSequenceNumber` property in the response to the `batchInventory` operation.
|
|
200
|
+
*/
|
|
201
|
+
'clientSequenceNumber'?: number;
|
|
202
|
+
/**
|
|
203
|
+
* The absolute inventory quantity.
|
|
204
|
+
*/
|
|
205
|
+
'quantity'?: number;
|
|
206
|
+
'marketplaceAttributes'?: MarketplaceAttributes;
|
|
227
207
|
}
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
* The Selling Partner API for External Fulfillment Inventory Management
|
|
231
|
-
* You can use the Amazon External Fulfillment Inventory API to manage inventory operations in Amazon\'s External Fulfillment network, including batch inventory updates and retrievals.
|
|
232
|
-
*
|
|
233
|
-
* The version of the OpenAPI document: 2024-09-11
|
|
234
|
-
*
|
|
235
|
-
*
|
|
236
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
237
|
-
* https://openapi-generator.tech
|
|
238
|
-
* Do not edit the class manually.
|
|
239
|
-
*/
|
|
240
|
-
|
|
208
|
+
//#endregion
|
|
209
|
+
//#region src/api-model/models/inventory-request.d.ts
|
|
241
210
|
/**
|
|
242
211
|
* An inventory request.
|
|
243
212
|
*/
|
|
244
213
|
interface InventoryRequest {
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
214
|
+
/**
|
|
215
|
+
* The URI associated with the individual APIs from the batch request. The user must provide the resource identifier for the operation they want to use.
|
|
216
|
+
*/
|
|
217
|
+
'uri': string;
|
|
218
|
+
'method': HttpMethod;
|
|
219
|
+
'body'?: InventoryRequestParams;
|
|
251
220
|
}
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
* The Selling Partner API for External Fulfillment Inventory Management
|
|
255
|
-
* You can use the Amazon External Fulfillment Inventory API to manage inventory operations in Amazon\'s External Fulfillment network, including batch inventory updates and retrievals.
|
|
256
|
-
*
|
|
257
|
-
* The version of the OpenAPI document: 2024-09-11
|
|
258
|
-
*
|
|
259
|
-
*
|
|
260
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
261
|
-
* https://openapi-generator.tech
|
|
262
|
-
* Do not edit the class manually.
|
|
263
|
-
*/
|
|
264
|
-
|
|
221
|
+
//#endregion
|
|
222
|
+
//#region src/api-model/models/batch-inventory-request.d.ts
|
|
265
223
|
/**
|
|
266
224
|
* A list of inventory requests.
|
|
267
225
|
*/
|
|
268
226
|
interface BatchInventoryRequest {
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
227
|
+
/**
|
|
228
|
+
* A list of inventory requests.
|
|
229
|
+
*/
|
|
230
|
+
'requests'?: Array<InventoryRequest>;
|
|
273
231
|
}
|
|
274
|
-
|
|
232
|
+
//#endregion
|
|
233
|
+
//#region src/api-model/models/http-status-line.d.ts
|
|
275
234
|
/**
|
|
276
235
|
* The Selling Partner API for External Fulfillment Inventory Management
|
|
277
236
|
* You can use the Amazon External Fulfillment Inventory API to manage inventory operations in Amazon\'s External Fulfillment network, including batch inventory updates and retrievals.
|
|
@@ -287,101 +246,69 @@ interface BatchInventoryRequest {
|
|
|
287
246
|
* The HTTP status associated with the response for an individual request within a batch.
|
|
288
247
|
*/
|
|
289
248
|
interface HttpStatusLine {
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
249
|
+
/**
|
|
250
|
+
* The HTTP response status code.
|
|
251
|
+
*/
|
|
252
|
+
'statusCode'?: number;
|
|
253
|
+
/**
|
|
254
|
+
* The HTTP response reason phrase.
|
|
255
|
+
*/
|
|
256
|
+
'reasonPhrase'?: string;
|
|
298
257
|
}
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
* The Selling Partner API for External Fulfillment Inventory Management
|
|
302
|
-
* You can use the Amazon External Fulfillment Inventory API to manage inventory operations in Amazon\'s External Fulfillment network, including batch inventory updates and retrievals.
|
|
303
|
-
*
|
|
304
|
-
* The version of the OpenAPI document: 2024-09-11
|
|
305
|
-
*
|
|
306
|
-
*
|
|
307
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
308
|
-
* https://openapi-generator.tech
|
|
309
|
-
* Do not edit the class manually.
|
|
310
|
-
*/
|
|
311
|
-
|
|
258
|
+
//#endregion
|
|
259
|
+
//#region src/api-model/models/inventory-response-body.d.ts
|
|
312
260
|
/**
|
|
313
261
|
* The response to an inventory request.
|
|
314
262
|
*/
|
|
315
263
|
interface InventoryResponseBody {
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
264
|
+
/**
|
|
265
|
+
* Latest sequence number for an inventory update.
|
|
266
|
+
*/
|
|
267
|
+
'clientSequenceNumber'?: number;
|
|
268
|
+
/**
|
|
269
|
+
* The location where inventory is updated or retrieved.
|
|
270
|
+
*/
|
|
271
|
+
'locationId'?: string;
|
|
272
|
+
/**
|
|
273
|
+
* The SKU ID for which inventory is updated or retrieved
|
|
274
|
+
*/
|
|
275
|
+
'skuId'?: string;
|
|
276
|
+
/**
|
|
277
|
+
* The number of items of the specified SKU that are available for purchase.
|
|
278
|
+
*/
|
|
279
|
+
'sellableQuantity'?: number;
|
|
280
|
+
/**
|
|
281
|
+
* The number of items of the specified SKU created in any marketplace that are reserved for shipment and yet to be fulfilled.
|
|
282
|
+
*/
|
|
283
|
+
'reservedQuantity'?: number;
|
|
284
|
+
'marketplaceAttributes'?: MarketplaceAttributes;
|
|
285
|
+
/**
|
|
286
|
+
* Inventory operation errors that require seller action before retrying the inventory request.
|
|
287
|
+
*/
|
|
288
|
+
'actionableErrors'?: Array<ActionableError>;
|
|
341
289
|
}
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
* The Selling Partner API for External Fulfillment Inventory Management
|
|
345
|
-
* You can use the Amazon External Fulfillment Inventory API to manage inventory operations in Amazon\'s External Fulfillment network, including batch inventory updates and retrievals.
|
|
346
|
-
*
|
|
347
|
-
* The version of the OpenAPI document: 2024-09-11
|
|
348
|
-
*
|
|
349
|
-
*
|
|
350
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
351
|
-
* https://openapi-generator.tech
|
|
352
|
-
* Do not edit the class manually.
|
|
353
|
-
*/
|
|
354
|
-
|
|
290
|
+
//#endregion
|
|
291
|
+
//#region src/api-model/models/inventory-response.d.ts
|
|
355
292
|
/**
|
|
356
293
|
* A response to an individual inventory request.
|
|
357
294
|
*/
|
|
358
295
|
interface InventoryResponse {
|
|
359
|
-
|
|
360
|
-
|
|
296
|
+
'status': HttpStatusLine;
|
|
297
|
+
'body': InventoryResponseBody;
|
|
361
298
|
}
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
* The Selling Partner API for External Fulfillment Inventory Management
|
|
365
|
-
* You can use the Amazon External Fulfillment Inventory API to manage inventory operations in Amazon\'s External Fulfillment network, including batch inventory updates and retrievals.
|
|
366
|
-
*
|
|
367
|
-
* The version of the OpenAPI document: 2024-09-11
|
|
368
|
-
*
|
|
369
|
-
*
|
|
370
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
371
|
-
* https://openapi-generator.tech
|
|
372
|
-
* Do not edit the class manually.
|
|
373
|
-
*/
|
|
374
|
-
|
|
299
|
+
//#endregion
|
|
300
|
+
//#region src/api-model/models/batch-inventory-response.d.ts
|
|
375
301
|
/**
|
|
376
302
|
* The response of the `batchInventory` operation.
|
|
377
303
|
*/
|
|
378
304
|
interface BatchInventoryResponse {
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
305
|
+
/**
|
|
306
|
+
* A list of inventory request responses.
|
|
307
|
+
*/
|
|
308
|
+
'responses'?: Array<InventoryResponse>;
|
|
383
309
|
}
|
|
384
|
-
|
|
310
|
+
//#endregion
|
|
311
|
+
//#region src/api-model/models/error-list.d.ts
|
|
385
312
|
/**
|
|
386
313
|
* The Selling Partner API for External Fulfillment Inventory Management
|
|
387
314
|
* You can use the Amazon External Fulfillment Inventory API to manage inventory operations in Amazon\'s External Fulfillment network, including batch inventory updates and retrievals.
|
|
@@ -397,12 +324,13 @@ interface BatchInventoryResponse {
|
|
|
397
324
|
* An object containing a list of error responses returned when a request is unsuccessful.
|
|
398
325
|
*/
|
|
399
326
|
interface ErrorList {
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
327
|
+
/**
|
|
328
|
+
* A list of error responses returned when a request is unsuccessful.
|
|
329
|
+
*/
|
|
330
|
+
'errors': Array<Error>;
|
|
404
331
|
}
|
|
405
|
-
|
|
332
|
+
//#endregion
|
|
333
|
+
//#region src/api-model/models/model-error.d.ts
|
|
406
334
|
/**
|
|
407
335
|
* The Selling Partner API for External Fulfillment Inventory Management
|
|
408
336
|
* You can use the Amazon External Fulfillment Inventory API to manage inventory operations in Amazon\'s External Fulfillment network, including batch inventory updates and retrievals.
|
|
@@ -418,81 +346,84 @@ interface ErrorList {
|
|
|
418
346
|
* Error response returned when the request is unsuccessful.
|
|
419
347
|
*/
|
|
420
348
|
interface ModelError {
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
349
|
+
/**
|
|
350
|
+
* An error code that identifies the type of error that occurred.
|
|
351
|
+
*/
|
|
352
|
+
'code': string;
|
|
353
|
+
/**
|
|
354
|
+
* A message that describes the error condition.
|
|
355
|
+
*/
|
|
356
|
+
'message': string;
|
|
357
|
+
/**
|
|
358
|
+
* Additional details that can help the caller understand or fix the issue.
|
|
359
|
+
*/
|
|
360
|
+
'details'?: string;
|
|
433
361
|
}
|
|
434
|
-
|
|
362
|
+
//#endregion
|
|
363
|
+
//#region src/api-model/api/external-fulfillment-inventory-api.d.ts
|
|
435
364
|
/**
|
|
436
365
|
* ExternalFulfillmentInventoryApi - axios parameter creator
|
|
437
366
|
*/
|
|
438
367
|
declare const ExternalFulfillmentInventoryApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
368
|
+
/**
|
|
369
|
+
* Make up to 10 inventory requests. The response includes the set of responses that correspond to requests. The response for each successful request in the set includes the inventory count for the provided `sku` and `locationId` pair.
|
|
370
|
+
* @param {BatchInventoryRequest} body A list of inventory requests.
|
|
371
|
+
* @param {*} [options] Override http request option.
|
|
372
|
+
* @throws {RequiredError}
|
|
373
|
+
*/
|
|
374
|
+
batchInventory: (body: BatchInventoryRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
446
375
|
};
|
|
447
376
|
/**
|
|
448
377
|
* ExternalFulfillmentInventoryApi - functional programming interface
|
|
449
378
|
*/
|
|
450
379
|
declare const ExternalFulfillmentInventoryApiFp: (configuration?: Configuration) => {
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
380
|
+
/**
|
|
381
|
+
* Make up to 10 inventory requests. The response includes the set of responses that correspond to requests. The response for each successful request in the set includes the inventory count for the provided `sku` and `locationId` pair.
|
|
382
|
+
* @param {BatchInventoryRequest} body A list of inventory requests.
|
|
383
|
+
* @param {*} [options] Override http request option.
|
|
384
|
+
* @throws {RequiredError}
|
|
385
|
+
*/
|
|
386
|
+
batchInventory(body: BatchInventoryRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BatchInventoryResponse>>;
|
|
458
387
|
};
|
|
459
388
|
/**
|
|
460
389
|
* ExternalFulfillmentInventoryApi - factory interface
|
|
461
390
|
*/
|
|
462
391
|
declare const ExternalFulfillmentInventoryApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
392
|
+
/**
|
|
393
|
+
* Make up to 10 inventory requests. The response includes the set of responses that correspond to requests. The response for each successful request in the set includes the inventory count for the provided `sku` and `locationId` pair.
|
|
394
|
+
* @param {ExternalFulfillmentInventoryApiBatchInventoryRequest} requestParameters Request parameters.
|
|
395
|
+
* @param {*} [options] Override http request option.
|
|
396
|
+
* @throws {RequiredError}
|
|
397
|
+
*/
|
|
398
|
+
batchInventory(requestParameters: ExternalFulfillmentInventoryApiBatchInventoryRequest, options?: RawAxiosRequestConfig): AxiosPromise<BatchInventoryResponse>;
|
|
470
399
|
};
|
|
471
400
|
/**
|
|
472
401
|
* Request parameters for batchInventory operation in ExternalFulfillmentInventoryApi.
|
|
473
402
|
*/
|
|
474
403
|
interface ExternalFulfillmentInventoryApiBatchInventoryRequest {
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
404
|
+
/**
|
|
405
|
+
* A list of inventory requests.
|
|
406
|
+
*/
|
|
407
|
+
readonly body: BatchInventoryRequest;
|
|
479
408
|
}
|
|
480
409
|
/**
|
|
481
410
|
* ExternalFulfillmentInventoryApi - object-oriented interface
|
|
482
411
|
*/
|
|
483
412
|
declare class ExternalFulfillmentInventoryApi extends BaseAPI {
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
413
|
+
/**
|
|
414
|
+
* Make up to 10 inventory requests. The response includes the set of responses that correspond to requests. The response for each successful request in the set includes the inventory count for the provided `sku` and `locationId` pair.
|
|
415
|
+
* @param {ExternalFulfillmentInventoryApiBatchInventoryRequest} requestParameters Request parameters.
|
|
416
|
+
* @param {*} [options] Override http request option.
|
|
417
|
+
* @throws {RequiredError}
|
|
418
|
+
*/
|
|
419
|
+
batchInventory(requestParameters: ExternalFulfillmentInventoryApiBatchInventoryRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<BatchInventoryResponse, any, {}>>;
|
|
491
420
|
}
|
|
492
|
-
|
|
421
|
+
//#endregion
|
|
422
|
+
//#region src/client.d.ts
|
|
493
423
|
declare const clientRateLimits: RateLimit[];
|
|
494
424
|
declare class ExternalFulfillmentInventoryApiClient extends ExternalFulfillmentInventoryApi {
|
|
495
|
-
|
|
425
|
+
constructor(configuration: ClientConfiguration);
|
|
496
426
|
}
|
|
497
|
-
|
|
498
|
-
export {
|
|
427
|
+
//#endregion
|
|
428
|
+
export { ActionableError, BatchInventoryRequest, BatchInventoryResponse, ErrorList, ExternalFulfillmentInventoryApi, ExternalFulfillmentInventoryApiAxiosParamCreator, ExternalFulfillmentInventoryApiBatchInventoryRequest, ExternalFulfillmentInventoryApiClient, ExternalFulfillmentInventoryApiFactory, ExternalFulfillmentInventoryApiFp, HttpMethod, HttpStatusLine, InventoryRequest, InventoryRequestParams, InventoryResponse, InventoryResponseBody, MarketplaceAttributes, MarketplaceAttributesChannelNameEnum, ModelError, clientRateLimits };
|
|
429
|
+
//# sourceMappingURL=index.d.ts.map
|