@sp-api-sdk/external-fulfillment-inventory-api-2024-09-11 1.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.
Files changed (66) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +99 -0
  3. package/dist/cjs/api-model/api/external-fulfillment-inventory-api.js +116 -0
  4. package/dist/cjs/api-model/api.js +30 -0
  5. package/dist/cjs/api-model/base.js +52 -0
  6. package/dist/cjs/api-model/common.js +108 -0
  7. package/dist/cjs/api-model/configuration.js +87 -0
  8. package/dist/cjs/api-model/index.js +32 -0
  9. package/dist/cjs/api-model/models/actionable-error.js +15 -0
  10. package/dist/cjs/api-model/models/batch-inventory-request.js +15 -0
  11. package/dist/cjs/api-model/models/batch-inventory-response.js +15 -0
  12. package/dist/cjs/api-model/models/error-list.js +15 -0
  13. package/dist/cjs/api-model/models/http-method.js +23 -0
  14. package/dist/cjs/api-model/models/http-status-line.js +15 -0
  15. package/dist/cjs/api-model/models/index.js +28 -0
  16. package/dist/cjs/api-model/models/inventory-request-params.js +15 -0
  17. package/dist/cjs/api-model/models/inventory-request.js +15 -0
  18. package/dist/cjs/api-model/models/inventory-response-body.js +15 -0
  19. package/dist/cjs/api-model/models/inventory-response.js +15 -0
  20. package/dist/cjs/api-model/models/marketplace-attributes.js +21 -0
  21. package/dist/cjs/api-model/models/model-error.js +15 -0
  22. package/dist/cjs/client.js +13 -0
  23. package/dist/cjs/index.js +19 -0
  24. package/dist/es/api-model/api/external-fulfillment-inventory-api.js +106 -0
  25. package/dist/es/api-model/api.js +14 -0
  26. package/dist/es/api-model/base.js +44 -0
  27. package/dist/es/api-model/common.js +96 -0
  28. package/dist/es/api-model/configuration.js +83 -0
  29. package/dist/es/api-model/index.js +16 -0
  30. package/dist/es/api-model/models/actionable-error.js +14 -0
  31. package/dist/es/api-model/models/batch-inventory-request.js +14 -0
  32. package/dist/es/api-model/models/batch-inventory-response.js +14 -0
  33. package/dist/es/api-model/models/error-list.js +14 -0
  34. package/dist/es/api-model/models/http-method.js +20 -0
  35. package/dist/es/api-model/models/http-status-line.js +14 -0
  36. package/dist/es/api-model/models/index.js +12 -0
  37. package/dist/es/api-model/models/inventory-request-params.js +14 -0
  38. package/dist/es/api-model/models/inventory-request.js +14 -0
  39. package/dist/es/api-model/models/inventory-response-body.js +14 -0
  40. package/dist/es/api-model/models/inventory-response.js +14 -0
  41. package/dist/es/api-model/models/marketplace-attributes.js +18 -0
  42. package/dist/es/api-model/models/model-error.js +14 -0
  43. package/dist/es/client.js +9 -0
  44. package/dist/es/index.js +3 -0
  45. package/dist/types/api-model/api/external-fulfillment-inventory-api.d.ts +74 -0
  46. package/dist/types/api-model/api.d.ts +12 -0
  47. package/dist/types/api-model/base.d.ts +42 -0
  48. package/dist/types/api-model/common.d.ts +28 -0
  49. package/dist/types/api-model/configuration.d.ts +74 -0
  50. package/dist/types/api-model/index.d.ts +14 -0
  51. package/dist/types/api-model/models/actionable-error.d.ts +24 -0
  52. package/dist/types/api-model/models/batch-inventory-request.d.ts +21 -0
  53. package/dist/types/api-model/models/batch-inventory-response.d.ts +21 -0
  54. package/dist/types/api-model/models/error-list.d.ts +20 -0
  55. package/dist/types/api-model/models/http-method.d.ts +19 -0
  56. package/dist/types/api-model/models/http-status-line.d.ts +24 -0
  57. package/dist/types/api-model/models/index.d.ts +12 -0
  58. package/dist/types/api-model/models/inventory-request-params.d.ts +26 -0
  59. package/dist/types/api-model/models/inventory-request.d.ts +24 -0
  60. package/dist/types/api-model/models/inventory-response-body.d.ts +43 -0
  61. package/dist/types/api-model/models/inventory-response.d.ts +20 -0
  62. package/dist/types/api-model/models/marketplace-attributes.d.ts +30 -0
  63. package/dist/types/api-model/models/model-error.d.ts +28 -0
  64. package/dist/types/client.d.ts +6 -0
  65. package/dist/types/index.d.ts +3 -0
  66. package/package.json +44 -0
@@ -0,0 +1,14 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * The Selling Partner API for External Fulfillment Inventory Management
5
+ * 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.
6
+ *
7
+ * The version of the OpenAPI document: 2024-09-11
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
+ * The Selling Partner API for External Fulfillment Inventory Management
5
+ * 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.
6
+ *
7
+ * The version of the OpenAPI document: 2024-09-11
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
+ * The Selling Partner API for External Fulfillment Inventory Management
5
+ * 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.
6
+ *
7
+ * The version of the OpenAPI document: 2024-09-11
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,18 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * The Selling Partner API for External Fulfillment Inventory Management
5
+ * 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.
6
+ *
7
+ * The version of the OpenAPI document: 2024-09-11
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 const MarketplaceAttributesChannelNameEnum = {
15
+ Fba: 'FBA',
16
+ Mfn: 'MFN',
17
+ Df: 'DF'
18
+ };
@@ -0,0 +1,14 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * The Selling Partner API for External Fulfillment Inventory Management
5
+ * 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.
6
+ *
7
+ * The version of the OpenAPI document: 2024-09-11
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,9 @@
1
+ import { createAxiosInstance } from '@sp-api-sdk/common';
2
+ import { Configuration, ExternalFulfillmentInventoryApi } from './api-model';
3
+ export const clientRateLimits = [];
4
+ export class ExternalFulfillmentInventoryApiClient extends ExternalFulfillmentInventoryApi {
5
+ constructor(configuration) {
6
+ const { axios, endpoint } = createAxiosInstance(configuration, clientRateLimits);
7
+ super(new Configuration(), endpoint, axios);
8
+ }
9
+ }
@@ -0,0 +1,3 @@
1
+ export * from './client';
2
+ export * from './api-model/api';
3
+ export * from './api-model/models';
@@ -0,0 +1,74 @@
1
+ /**
2
+ * The Selling Partner API for External Fulfillment Inventory Management
3
+ * 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.
4
+ *
5
+ * The version of the OpenAPI document: 2024-09-11
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 { Configuration } from '../configuration';
13
+ import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
14
+ import globalAxios from 'axios';
15
+ import { type RequestArgs, BaseAPI } from '../base';
16
+ import type { BatchInventoryRequest } from '../models';
17
+ import type { BatchInventoryResponse } from '../models';
18
+ /**
19
+ * ExternalFulfillmentInventoryApi - axios parameter creator
20
+ */
21
+ export declare const ExternalFulfillmentInventoryApiAxiosParamCreator: (configuration?: Configuration) => {
22
+ /**
23
+ * 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.
24
+ * @param {BatchInventoryRequest} body A list of inventory requests.
25
+ * @param {*} [options] Override http request option.
26
+ * @throws {RequiredError}
27
+ */
28
+ batchInventory: (body: BatchInventoryRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
29
+ };
30
+ /**
31
+ * ExternalFulfillmentInventoryApi - functional programming interface
32
+ */
33
+ export declare const ExternalFulfillmentInventoryApiFp: (configuration?: Configuration) => {
34
+ /**
35
+ * 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.
36
+ * @param {BatchInventoryRequest} body A list of inventory requests.
37
+ * @param {*} [options] Override http request option.
38
+ * @throws {RequiredError}
39
+ */
40
+ batchInventory(body: BatchInventoryRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BatchInventoryResponse>>;
41
+ };
42
+ /**
43
+ * ExternalFulfillmentInventoryApi - factory interface
44
+ */
45
+ export declare const ExternalFulfillmentInventoryApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
46
+ /**
47
+ * 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.
48
+ * @param {ExternalFulfillmentInventoryApiBatchInventoryRequest} requestParameters Request parameters.
49
+ * @param {*} [options] Override http request option.
50
+ * @throws {RequiredError}
51
+ */
52
+ batchInventory(requestParameters: ExternalFulfillmentInventoryApiBatchInventoryRequest, options?: RawAxiosRequestConfig): AxiosPromise<BatchInventoryResponse>;
53
+ };
54
+ /**
55
+ * Request parameters for batchInventory operation in ExternalFulfillmentInventoryApi.
56
+ */
57
+ export interface ExternalFulfillmentInventoryApiBatchInventoryRequest {
58
+ /**
59
+ * A list of inventory requests.
60
+ */
61
+ readonly body: BatchInventoryRequest;
62
+ }
63
+ /**
64
+ * ExternalFulfillmentInventoryApi - object-oriented interface
65
+ */
66
+ export declare class ExternalFulfillmentInventoryApi extends BaseAPI {
67
+ /**
68
+ * 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.
69
+ * @param {ExternalFulfillmentInventoryApiBatchInventoryRequest} requestParameters Request parameters.
70
+ * @param {*} [options] Override http request option.
71
+ * @throws {RequiredError}
72
+ */
73
+ batchInventory(requestParameters: ExternalFulfillmentInventoryApiBatchInventoryRequest, options?: RawAxiosRequestConfig): Promise<globalAxios.AxiosResponse<BatchInventoryResponse, any, {}>>;
74
+ }
@@ -0,0 +1,12 @@
1
+ /**
2
+ * The Selling Partner API for External Fulfillment Inventory Management
3
+ * 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.
4
+ *
5
+ * The version of the OpenAPI document: 2024-09-11
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
+ export * from './api/external-fulfillment-inventory-api';
@@ -0,0 +1,42 @@
1
+ /**
2
+ * The Selling Partner API for External Fulfillment Inventory Management
3
+ * 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.
4
+ *
5
+ * The version of the OpenAPI document: 2024-09-11
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 { Configuration } from './configuration';
13
+ import type { AxiosInstance, RawAxiosRequestConfig } from 'axios';
14
+ export declare const BASE_PATH: string;
15
+ export declare const COLLECTION_FORMATS: {
16
+ csv: string;
17
+ ssv: string;
18
+ tsv: string;
19
+ pipes: string;
20
+ };
21
+ export interface RequestArgs {
22
+ url: string;
23
+ options: RawAxiosRequestConfig;
24
+ }
25
+ export declare class BaseAPI {
26
+ protected basePath: string;
27
+ protected axios: AxiosInstance;
28
+ protected configuration: Configuration | undefined;
29
+ constructor(configuration?: Configuration, basePath?: string, axios?: AxiosInstance);
30
+ }
31
+ export declare class RequiredError extends Error {
32
+ field: string;
33
+ constructor(field: string, msg?: string);
34
+ }
35
+ interface ServerMap {
36
+ [key: string]: {
37
+ url: string;
38
+ description: string;
39
+ }[];
40
+ }
41
+ export declare const operationServerMap: ServerMap;
42
+ export {};
@@ -0,0 +1,28 @@
1
+ /**
2
+ * The Selling Partner API for External Fulfillment Inventory Management
3
+ * 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.
4
+ *
5
+ * The version of the OpenAPI document: 2024-09-11
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 { Configuration } from "./configuration";
13
+ import type { RequestArgs } from "./base";
14
+ import type { AxiosInstance, AxiosResponse } from 'axios';
15
+ export declare const DUMMY_BASE_URL = "https://example.com";
16
+ /**
17
+ *
18
+ * @throws {RequiredError}
19
+ */
20
+ export declare const assertParamExists: (functionName: string, paramName: string, paramValue: unknown) => void;
21
+ export declare const setApiKeyToObject: (object: any, keyParamName: string, configuration?: Configuration) => Promise<void>;
22
+ export declare const setBasicAuthToObject: (object: any, configuration?: Configuration) => void;
23
+ export declare const setBearerAuthToObject: (object: any, configuration?: Configuration) => Promise<void>;
24
+ export declare const setOAuthToObject: (object: any, name: string, scopes: string[], configuration?: Configuration) => Promise<void>;
25
+ export declare const setSearchParams: (url: URL, ...objects: any[]) => void;
26
+ export declare const serializeDataIfNeeded: (value: any, requestOptions: any, configuration?: Configuration) => any;
27
+ export declare const toPathString: (url: URL) => string;
28
+ export declare const createRequestFunction: (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) => <T = unknown, R = AxiosResponse<T>>(axios?: AxiosInstance, basePath?: string) => Promise<R>;
@@ -0,0 +1,74 @@
1
+ /**
2
+ * The Selling Partner API for External Fulfillment Inventory Management
3
+ * 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.
4
+ *
5
+ * The version of the OpenAPI document: 2024-09-11
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
+ export interface ConfigurationParameters {
13
+ apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
14
+ username?: string;
15
+ password?: string;
16
+ accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
17
+ basePath?: string;
18
+ serverIndex?: number;
19
+ baseOptions?: any;
20
+ formDataCtor?: new () => any;
21
+ }
22
+ export declare class Configuration {
23
+ /**
24
+ * parameter for apiKey security
25
+ * @param name security name
26
+ */
27
+ apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
28
+ /**
29
+ * parameter for basic security
30
+ */
31
+ username?: string;
32
+ /**
33
+ * parameter for basic security
34
+ */
35
+ password?: string;
36
+ /**
37
+ * parameter for oauth2 security
38
+ * @param name security name
39
+ * @param scopes oauth2 scope
40
+ */
41
+ accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
42
+ /**
43
+ * override base path
44
+ */
45
+ basePath?: string;
46
+ /**
47
+ * override server index
48
+ */
49
+ serverIndex?: number;
50
+ /**
51
+ * base options for axios calls
52
+ */
53
+ baseOptions?: any;
54
+ /**
55
+ * The FormData constructor that will be used to create multipart form data
56
+ * requests. You can inject this here so that execution environments that
57
+ * do not support the FormData class can still run the generated client.
58
+ *
59
+ * @type {new () => FormData}
60
+ */
61
+ formDataCtor?: new () => any;
62
+ constructor(param?: ConfigurationParameters);
63
+ /**
64
+ * Check if the given MIME is a JSON MIME.
65
+ * JSON MIME examples:
66
+ * application/json
67
+ * application/json; charset=UTF8
68
+ * APPLICATION/JSON
69
+ * application/vnd.company+json
70
+ * @param mime - MIME (Multipurpose Internet Mail Extensions)
71
+ * @return True if the given MIME is JSON, false otherwise.
72
+ */
73
+ isJsonMime(mime: string): boolean;
74
+ }
@@ -0,0 +1,14 @@
1
+ /**
2
+ * The Selling Partner API for External Fulfillment Inventory Management
3
+ * 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.
4
+ *
5
+ * The version of the OpenAPI document: 2024-09-11
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
+ export * from "./api";
13
+ export * from "./configuration";
14
+ export * from "./models";
@@ -0,0 +1,24 @@
1
+ /**
2
+ * The Selling Partner API for External Fulfillment Inventory Management
3
+ * 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.
4
+ *
5
+ * The version of the OpenAPI document: 2024-09-11
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
+ * Error details you can take action on.
14
+ */
15
+ export interface ActionableError {
16
+ /**
17
+ * The top level error type that may contain multiple error subtypes.
18
+ */
19
+ 'errorType'?: string;
20
+ /**
21
+ * The secondary level error type.
22
+ */
23
+ 'errorSubType'?: string;
24
+ }
@@ -0,0 +1,21 @@
1
+ /**
2
+ * The Selling Partner API for External Fulfillment Inventory Management
3
+ * 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.
4
+ *
5
+ * The version of the OpenAPI document: 2024-09-11
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 { InventoryRequest } from './inventory-request';
13
+ /**
14
+ * A list of inventory requests.
15
+ */
16
+ export interface BatchInventoryRequest {
17
+ /**
18
+ * A list of inventory requests.
19
+ */
20
+ 'requests'?: Array<InventoryRequest>;
21
+ }
@@ -0,0 +1,21 @@
1
+ /**
2
+ * The Selling Partner API for External Fulfillment Inventory Management
3
+ * 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.
4
+ *
5
+ * The version of the OpenAPI document: 2024-09-11
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 { InventoryResponse } from './inventory-response';
13
+ /**
14
+ * The response of the `batchInventory` operation.
15
+ */
16
+ export interface BatchInventoryResponse {
17
+ /**
18
+ * A list of inventory request responses.
19
+ */
20
+ 'responses'?: Array<InventoryResponse>;
21
+ }
@@ -0,0 +1,20 @@
1
+ /**
2
+ * The Selling Partner API for External Fulfillment Inventory Management
3
+ * 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.
4
+ *
5
+ * The version of the OpenAPI document: 2024-09-11
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 object containing a list of error responses returned when a request is unsuccessful.
14
+ */
15
+ export interface ErrorList {
16
+ /**
17
+ * A list of error responses returned when a request is unsuccessful.
18
+ */
19
+ 'errors': Array<Error>;
20
+ }
@@ -0,0 +1,19 @@
1
+ /**
2
+ * The Selling Partner API for External Fulfillment Inventory Management
3
+ * 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.
4
+ *
5
+ * The version of the OpenAPI document: 2024-09-11
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 HTTP method associated with an individual request within a batch.
14
+ */
15
+ export declare const HttpMethod: {
16
+ readonly Get: "GET";
17
+ readonly Post: "POST";
18
+ };
19
+ export type HttpMethod = typeof HttpMethod[keyof typeof HttpMethod];
@@ -0,0 +1,24 @@
1
+ /**
2
+ * The Selling Partner API for External Fulfillment Inventory Management
3
+ * 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.
4
+ *
5
+ * The version of the OpenAPI document: 2024-09-11
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 HTTP status associated with the response for an individual request within a batch.
14
+ */
15
+ export interface HttpStatusLine {
16
+ /**
17
+ * The HTTP response status code.
18
+ */
19
+ 'statusCode'?: number;
20
+ /**
21
+ * The HTTP response reason phrase.
22
+ */
23
+ 'reasonPhrase'?: string;
24
+ }
@@ -0,0 +1,12 @@
1
+ export * from './actionable-error';
2
+ export * from './batch-inventory-request';
3
+ export * from './batch-inventory-response';
4
+ export * from './error-list';
5
+ export * from './http-method';
6
+ export * from './http-status-line';
7
+ export * from './inventory-request';
8
+ export * from './inventory-request-params';
9
+ export * from './inventory-response';
10
+ export * from './inventory-response-body';
11
+ export * from './marketplace-attributes';
12
+ export * from './model-error';
@@ -0,0 +1,26 @@
1
+ /**
2
+ * The Selling Partner API for External Fulfillment Inventory Management
3
+ * 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.
4
+ *
5
+ * The version of the OpenAPI document: 2024-09-11
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 { MarketplaceAttributes } from './marketplace-attributes';
13
+ /**
14
+ * The parameters for an individual request.
15
+ */
16
+ export interface InventoryRequestParams {
17
+ /**
18
+ * The latest sequence number for the inventory update operation. You find this value in the `clientSequenceNumber` property in the response to the `batchInventory` operation.
19
+ */
20
+ 'clientSequenceNumber'?: number;
21
+ /**
22
+ * The absolute inventory quantity.
23
+ */
24
+ 'quantity'?: number;
25
+ 'marketplaceAttributes'?: MarketplaceAttributes;
26
+ }
@@ -0,0 +1,24 @@
1
+ /**
2
+ * The Selling Partner API for External Fulfillment Inventory Management
3
+ * 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.
4
+ *
5
+ * The version of the OpenAPI document: 2024-09-11
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 { HttpMethod } from './http-method';
13
+ import type { InventoryRequestParams } from './inventory-request-params';
14
+ /**
15
+ * An inventory request.
16
+ */
17
+ export interface InventoryRequest {
18
+ /**
19
+ * 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.
20
+ */
21
+ 'uri': string;
22
+ 'method': HttpMethod;
23
+ 'body'?: InventoryRequestParams;
24
+ }
@@ -0,0 +1,43 @@
1
+ /**
2
+ * The Selling Partner API for External Fulfillment Inventory Management
3
+ * 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.
4
+ *
5
+ * The version of the OpenAPI document: 2024-09-11
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 { ActionableError } from './actionable-error';
13
+ import type { MarketplaceAttributes } from './marketplace-attributes';
14
+ /**
15
+ * The response to an inventory request.
16
+ */
17
+ export interface InventoryResponseBody {
18
+ /**
19
+ * Latest sequence number for an inventory update.
20
+ */
21
+ 'clientSequenceNumber'?: number;
22
+ /**
23
+ * The location where inventory is updated or retrieved.
24
+ */
25
+ 'locationId'?: string;
26
+ /**
27
+ * The SKU ID for which inventory is updated or retrieved
28
+ */
29
+ 'skuId'?: string;
30
+ /**
31
+ * The number of items of the specified SKU that are available for purchase.
32
+ */
33
+ 'sellableQuantity'?: number;
34
+ /**
35
+ * The number of items of the specified SKU created in any marketplace that are reserved for shipment and yet to be fulfilled.
36
+ */
37
+ 'reservedQuantity'?: number;
38
+ 'marketplaceAttributes'?: MarketplaceAttributes;
39
+ /**
40
+ * Inventory operation errors that require seller action before retrying the inventory request.
41
+ */
42
+ 'actionableErrors'?: Array<ActionableError>;
43
+ }
@@ -0,0 +1,20 @@
1
+ /**
2
+ * The Selling Partner API for External Fulfillment Inventory Management
3
+ * 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.
4
+ *
5
+ * The version of the OpenAPI document: 2024-09-11
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 { HttpStatusLine } from './http-status-line';
13
+ import type { InventoryResponseBody } from './inventory-response-body';
14
+ /**
15
+ * A response to an individual inventory request.
16
+ */
17
+ export interface InventoryResponse {
18
+ 'status': HttpStatusLine;
19
+ 'body': InventoryResponseBody;
20
+ }
@@ -0,0 +1,30 @@
1
+ /**
2
+ * The Selling Partner API for External Fulfillment Inventory Management
3
+ * 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.
4
+ *
5
+ * The version of the OpenAPI document: 2024-09-11
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 channel name and marketplace ID. This is required only when multiple channels have the same location ID.
14
+ */
15
+ export interface MarketplaceAttributes {
16
+ /**
17
+ * The name of the fulfillment channel in which to update inventory.
18
+ */
19
+ 'channelName'?: MarketplaceAttributesChannelNameEnum;
20
+ /**
21
+ * The marketplace ID of the marketplace where you want to update inventory.
22
+ */
23
+ 'marketplaceId'?: string;
24
+ }
25
+ export declare const MarketplaceAttributesChannelNameEnum: {
26
+ readonly Fba: "FBA";
27
+ readonly Mfn: "MFN";
28
+ readonly Df: "DF";
29
+ };
30
+ export type MarketplaceAttributesChannelNameEnum = typeof MarketplaceAttributesChannelNameEnum[keyof typeof MarketplaceAttributesChannelNameEnum];