@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,28 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./actionable-error"), exports);
18
+ __exportStar(require("./batch-inventory-request"), exports);
19
+ __exportStar(require("./batch-inventory-response"), exports);
20
+ __exportStar(require("./error-list"), exports);
21
+ __exportStar(require("./http-method"), exports);
22
+ __exportStar(require("./http-status-line"), exports);
23
+ __exportStar(require("./inventory-request"), exports);
24
+ __exportStar(require("./inventory-request-params"), exports);
25
+ __exportStar(require("./inventory-response"), exports);
26
+ __exportStar(require("./inventory-response-body"), exports);
27
+ __exportStar(require("./marketplace-attributes"), exports);
28
+ __exportStar(require("./model-error"), exports);
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * The Selling Partner API for External Fulfillment Inventory Management
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.
7
+ *
8
+ * The version of the OpenAPI document: 2024-09-11
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
+ * The Selling Partner API for External Fulfillment Inventory Management
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.
7
+ *
8
+ * The version of the OpenAPI document: 2024-09-11
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
+ * The Selling Partner API for External Fulfillment Inventory Management
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.
7
+ *
8
+ * The version of the OpenAPI document: 2024-09-11
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
+ * The Selling Partner API for External Fulfillment Inventory Management
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.
7
+ *
8
+ * The version of the OpenAPI document: 2024-09-11
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,21 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * The Selling Partner API for External Fulfillment Inventory Management
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.
7
+ *
8
+ * The version of the OpenAPI document: 2024-09-11
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 });
16
+ exports.MarketplaceAttributesChannelNameEnum = void 0;
17
+ exports.MarketplaceAttributesChannelNameEnum = {
18
+ Fba: 'FBA',
19
+ Mfn: 'MFN',
20
+ Df: 'DF'
21
+ };
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * The Selling Partner API for External Fulfillment Inventory Management
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.
7
+ *
8
+ * The version of the OpenAPI document: 2024-09-11
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,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ExternalFulfillmentInventoryApiClient = exports.clientRateLimits = void 0;
4
+ const common_1 = require("@sp-api-sdk/common");
5
+ const api_model_1 = require("./api-model");
6
+ exports.clientRateLimits = [];
7
+ class ExternalFulfillmentInventoryApiClient extends api_model_1.ExternalFulfillmentInventoryApi {
8
+ constructor(configuration) {
9
+ const { axios, endpoint } = (0, common_1.createAxiosInstance)(configuration, exports.clientRateLimits);
10
+ super(new api_model_1.Configuration(), endpoint, axios);
11
+ }
12
+ }
13
+ exports.ExternalFulfillmentInventoryApiClient = ExternalFulfillmentInventoryApiClient;
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./client"), exports);
18
+ __exportStar(require("./api-model/api"), exports);
19
+ __exportStar(require("./api-model/models"), exports);
@@ -0,0 +1,106 @@
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
+ import globalAxios from 'axios';
15
+ // Some imports not used depending on template conditions
16
+ // @ts-ignore
17
+ import { DUMMY_BASE_URL, assertParamExists, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
18
+ // @ts-ignore
19
+ import { BASE_PATH, BaseAPI, operationServerMap } from '../base';
20
+ /**
21
+ * ExternalFulfillmentInventoryApi - axios parameter creator
22
+ */
23
+ export const ExternalFulfillmentInventoryApiAxiosParamCreator = function (configuration) {
24
+ return {
25
+ /**
26
+ * 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.
27
+ * @param {BatchInventoryRequest} body A list of inventory requests.
28
+ * @param {*} [options] Override http request option.
29
+ * @throws {RequiredError}
30
+ */
31
+ batchInventory: async (body, options = {}) => {
32
+ // verify required parameter 'body' is not null or undefined
33
+ assertParamExists('batchInventory', 'body', body);
34
+ const localVarPath = `/externalFulfillment/inventory/2024-09-11/inventories`;
35
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
36
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
37
+ let baseOptions;
38
+ if (configuration) {
39
+ baseOptions = configuration.baseOptions;
40
+ }
41
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
42
+ const localVarHeaderParameter = {};
43
+ const localVarQueryParameter = {};
44
+ localVarHeaderParameter['Content-Type'] = 'application/json';
45
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
46
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
47
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
48
+ localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration);
49
+ return {
50
+ url: toPathString(localVarUrlObj),
51
+ options: localVarRequestOptions,
52
+ };
53
+ },
54
+ };
55
+ };
56
+ /**
57
+ * ExternalFulfillmentInventoryApi - functional programming interface
58
+ */
59
+ export const ExternalFulfillmentInventoryApiFp = function (configuration) {
60
+ const localVarAxiosParamCreator = ExternalFulfillmentInventoryApiAxiosParamCreator(configuration);
61
+ return {
62
+ /**
63
+ * 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.
64
+ * @param {BatchInventoryRequest} body A list of inventory requests.
65
+ * @param {*} [options] Override http request option.
66
+ * @throws {RequiredError}
67
+ */
68
+ async batchInventory(body, options) {
69
+ const localVarAxiosArgs = await localVarAxiosParamCreator.batchInventory(body, options);
70
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
71
+ const localVarOperationServerBasePath = operationServerMap['ExternalFulfillmentInventoryApi.batchInventory']?.[localVarOperationServerIndex]?.url;
72
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
73
+ },
74
+ };
75
+ };
76
+ /**
77
+ * ExternalFulfillmentInventoryApi - factory interface
78
+ */
79
+ export const ExternalFulfillmentInventoryApiFactory = function (configuration, basePath, axios) {
80
+ const localVarFp = ExternalFulfillmentInventoryApiFp(configuration);
81
+ return {
82
+ /**
83
+ * 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.
84
+ * @param {ExternalFulfillmentInventoryApiBatchInventoryRequest} requestParameters Request parameters.
85
+ * @param {*} [options] Override http request option.
86
+ * @throws {RequiredError}
87
+ */
88
+ batchInventory(requestParameters, options) {
89
+ return localVarFp.batchInventory(requestParameters.body, options).then((request) => request(axios, basePath));
90
+ },
91
+ };
92
+ };
93
+ /**
94
+ * ExternalFulfillmentInventoryApi - object-oriented interface
95
+ */
96
+ export class ExternalFulfillmentInventoryApi extends BaseAPI {
97
+ /**
98
+ * 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.
99
+ * @param {ExternalFulfillmentInventoryApiBatchInventoryRequest} requestParameters Request parameters.
100
+ * @param {*} [options] Override http request option.
101
+ * @throws {RequiredError}
102
+ */
103
+ batchInventory(requestParameters, options) {
104
+ return ExternalFulfillmentInventoryApiFp(this.configuration).batchInventory(requestParameters.body, options).then((request) => request(this.axios, this.basePath));
105
+ }
106
+ }
@@ -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 * from './api/external-fulfillment-inventory-api';
@@ -0,0 +1,44 @@
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
+ import globalAxios from 'axios';
15
+ export const BASE_PATH = "https://sellingpartnerapi-na.amazon.com".replace(/\/+$/, "");
16
+ export const COLLECTION_FORMATS = {
17
+ csv: ",",
18
+ ssv: " ",
19
+ tsv: "\t",
20
+ pipes: "|",
21
+ };
22
+ export class BaseAPI {
23
+ basePath;
24
+ axios;
25
+ configuration;
26
+ constructor(configuration, basePath = BASE_PATH, axios = globalAxios) {
27
+ this.basePath = basePath;
28
+ this.axios = axios;
29
+ if (configuration) {
30
+ this.configuration = configuration;
31
+ this.basePath = configuration.basePath ?? basePath;
32
+ }
33
+ }
34
+ }
35
+ ;
36
+ export class RequiredError extends Error {
37
+ field;
38
+ constructor(field, msg) {
39
+ super(msg);
40
+ this.field = field;
41
+ this.name = "RequiredError";
42
+ }
43
+ }
44
+ export const operationServerMap = {};
@@ -0,0 +1,96 @@
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
+ import { RequiredError } from "./base";
15
+ export const DUMMY_BASE_URL = 'https://example.com';
16
+ /**
17
+ *
18
+ * @throws {RequiredError}
19
+ */
20
+ export const assertParamExists = function (functionName, paramName, paramValue) {
21
+ if (paramValue === null || paramValue === undefined) {
22
+ throw new RequiredError(paramName, `Required parameter ${paramName} was null or undefined when calling ${functionName}.`);
23
+ }
24
+ };
25
+ export const setApiKeyToObject = async function (object, keyParamName, configuration) {
26
+ if (configuration && configuration.apiKey) {
27
+ const localVarApiKeyValue = typeof configuration.apiKey === 'function'
28
+ ? await configuration.apiKey(keyParamName)
29
+ : await configuration.apiKey;
30
+ object[keyParamName] = localVarApiKeyValue;
31
+ }
32
+ };
33
+ export const setBasicAuthToObject = function (object, configuration) {
34
+ if (configuration && (configuration.username || configuration.password)) {
35
+ object["auth"] = { username: configuration.username, password: configuration.password };
36
+ }
37
+ };
38
+ export const setBearerAuthToObject = async function (object, configuration) {
39
+ if (configuration && configuration.accessToken) {
40
+ const accessToken = typeof configuration.accessToken === 'function'
41
+ ? await configuration.accessToken()
42
+ : await configuration.accessToken;
43
+ object["Authorization"] = "Bearer " + accessToken;
44
+ }
45
+ };
46
+ export const setOAuthToObject = async function (object, name, scopes, configuration) {
47
+ if (configuration && configuration.accessToken) {
48
+ const localVarAccessTokenValue = typeof configuration.accessToken === 'function'
49
+ ? await configuration.accessToken(name, scopes)
50
+ : await configuration.accessToken;
51
+ object["Authorization"] = "Bearer " + localVarAccessTokenValue;
52
+ }
53
+ };
54
+ function setFlattenedQueryParams(urlSearchParams, parameter, key = "") {
55
+ if (parameter == null)
56
+ return;
57
+ if (typeof parameter === "object") {
58
+ if (Array.isArray(parameter)) {
59
+ parameter.forEach(item => setFlattenedQueryParams(urlSearchParams, item, key));
60
+ }
61
+ else {
62
+ Object.keys(parameter).forEach(currentKey => setFlattenedQueryParams(urlSearchParams, parameter[currentKey], `${key}${key !== '' ? '.' : ''}${currentKey}`));
63
+ }
64
+ }
65
+ else {
66
+ if (urlSearchParams.has(key)) {
67
+ urlSearchParams.append(key, parameter);
68
+ }
69
+ else {
70
+ urlSearchParams.set(key, parameter);
71
+ }
72
+ }
73
+ }
74
+ export const setSearchParams = function (url, ...objects) {
75
+ const searchParams = new URLSearchParams(url.search);
76
+ setFlattenedQueryParams(searchParams, objects);
77
+ url.search = searchParams.toString();
78
+ };
79
+ export const serializeDataIfNeeded = function (value, requestOptions, configuration) {
80
+ const nonString = typeof value !== 'string';
81
+ const needsSerialization = nonString && configuration && configuration.isJsonMime
82
+ ? configuration.isJsonMime(requestOptions.headers['Content-Type'])
83
+ : nonString;
84
+ return needsSerialization
85
+ ? JSON.stringify(value !== undefined ? value : {})
86
+ : (value || "");
87
+ };
88
+ export const toPathString = function (url) {
89
+ return url.pathname + url.search + url.hash;
90
+ };
91
+ export const createRequestFunction = function (axiosArgs, globalAxios, BASE_PATH, configuration) {
92
+ return (axios = globalAxios, basePath = BASE_PATH) => {
93
+ const axiosRequestArgs = { ...axiosArgs.options, url: (axios.defaults.baseURL ? '' : configuration?.basePath ?? basePath) + axiosArgs.url };
94
+ return axios.request(axiosRequestArgs);
95
+ };
96
+ };
@@ -0,0 +1,83 @@
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 class Configuration {
15
+ /**
16
+ * parameter for apiKey security
17
+ * @param name security name
18
+ */
19
+ apiKey;
20
+ /**
21
+ * parameter for basic security
22
+ */
23
+ username;
24
+ /**
25
+ * parameter for basic security
26
+ */
27
+ password;
28
+ /**
29
+ * parameter for oauth2 security
30
+ * @param name security name
31
+ * @param scopes oauth2 scope
32
+ */
33
+ accessToken;
34
+ /**
35
+ * override base path
36
+ */
37
+ basePath;
38
+ /**
39
+ * override server index
40
+ */
41
+ serverIndex;
42
+ /**
43
+ * base options for axios calls
44
+ */
45
+ baseOptions;
46
+ /**
47
+ * The FormData constructor that will be used to create multipart form data
48
+ * requests. You can inject this here so that execution environments that
49
+ * do not support the FormData class can still run the generated client.
50
+ *
51
+ * @type {new () => FormData}
52
+ */
53
+ formDataCtor;
54
+ constructor(param = {}) {
55
+ this.apiKey = param.apiKey;
56
+ this.username = param.username;
57
+ this.password = param.password;
58
+ this.accessToken = param.accessToken;
59
+ this.basePath = param.basePath;
60
+ this.serverIndex = param.serverIndex;
61
+ this.baseOptions = {
62
+ ...param.baseOptions,
63
+ headers: {
64
+ ...param.baseOptions?.headers,
65
+ },
66
+ };
67
+ this.formDataCtor = param.formDataCtor;
68
+ }
69
+ /**
70
+ * Check if the given MIME is a JSON MIME.
71
+ * JSON MIME examples:
72
+ * application/json
73
+ * application/json; charset=UTF8
74
+ * APPLICATION/JSON
75
+ * application/vnd.company+json
76
+ * @param mime - MIME (Multipurpose Internet Mail Extensions)
77
+ * @return True if the given MIME is JSON, false otherwise.
78
+ */
79
+ isJsonMime(mime) {
80
+ const jsonMime = new RegExp('^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$', 'i');
81
+ return mime !== null && (jsonMime.test(mime) || mime.toLowerCase() === 'application/json-patch+json');
82
+ }
83
+ }
@@ -0,0 +1,16 @@
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 * from "./api";
15
+ export * from "./configuration";
16
+ export * from "./models";
@@ -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,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,20 @@
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
+ /**
15
+ * The HTTP method associated with an individual request within a batch.
16
+ */
17
+ export const HttpMethod = {
18
+ Get: 'GET',
19
+ Post: 'POST'
20
+ };
@@ -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,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,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 {};