@sp-api-sdk/catalog-items-api-2022-04-01 5.0.0 → 5.1.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/index.cjs CHANGED
@@ -1,530 +1,479 @@
1
- "use strict";
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
+ //#region \0rolldown/runtime.js
2
3
  var __create = Object.create;
3
4
  var __defProp = Object.defineProperty;
4
5
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
6
  var __getOwnPropNames = Object.getOwnPropertyNames;
6
7
  var __getProtoOf = Object.getPrototypeOf;
7
8
  var __hasOwnProp = Object.prototype.hasOwnProperty;
8
- var __export = (target, all) => {
9
- for (var name in all)
10
- __defProp(target, name, { get: all[name], enumerable: true });
11
- };
12
9
  var __copyProps = (to, from, except, desc) => {
13
- if (from && typeof from === "object" || typeof from === "function") {
14
- for (let key of __getOwnPropNames(from))
15
- if (!__hasOwnProp.call(to, key) && key !== except)
16
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
- }
18
- return to;
10
+ if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
11
+ key = keys[i];
12
+ if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
13
+ get: ((k) => from[k]).bind(null, key),
14
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
15
+ });
16
+ }
17
+ return to;
19
18
  };
20
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
- // If the importer is in node compatibility mode or this is not an ESM
22
- // file that has been converted to a CommonJS file using a Babel-
23
- // compatible transform (i.e. "__esModule" has not been set), then set
24
- // "default" to the CommonJS "module.exports" for node compatibility.
25
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
- mod
27
- ));
28
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
-
30
- // src/index.ts
31
- var index_exports = {};
32
- __export(index_exports, {
33
- CatalogItemsApi: () => CatalogItemsApi,
34
- CatalogItemsApiAxiosParamCreator: () => CatalogItemsApiAxiosParamCreator,
35
- CatalogItemsApiClient: () => CatalogItemsApiClient,
36
- CatalogItemsApiFactory: () => CatalogItemsApiFactory,
37
- CatalogItemsApiFp: () => CatalogItemsApiFp,
38
- GetCatalogItemIncludedDataEnum: () => GetCatalogItemIncludedDataEnum,
39
- ItemImageVariantEnum: () => ItemImageVariantEnum,
40
- ItemRelationshipTypeEnum: () => ItemRelationshipTypeEnum,
41
- ItemSummaryByMarketplaceItemClassificationEnum: () => ItemSummaryByMarketplaceItemClassificationEnum,
42
- ItemVendorDetailsByMarketplaceReplenishmentCategoryEnum: () => ItemVendorDetailsByMarketplaceReplenishmentCategoryEnum,
43
- SearchCatalogItemsIdentifiersTypeEnum: () => SearchCatalogItemsIdentifiersTypeEnum,
44
- SearchCatalogItemsIncludedDataEnum: () => SearchCatalogItemsIncludedDataEnum,
45
- clientRateLimits: () => clientRateLimits
46
- });
47
- module.exports = __toCommonJS(index_exports);
48
-
49
- // src/client.ts
50
- var import_common2 = require("@sp-api-sdk/common");
51
-
52
- // src/api-model/api/catalog-items-api.ts
53
- var import_axios2 = __toESM(require("axios"), 1);
54
-
55
- // src/api-model/base.ts
56
- var import_axios = __toESM(require("axios"), 1);
57
- var BASE_PATH = "https://sellingpartnerapi-na.amazon.com".replace(/\/+$/, "");
58
- var COLLECTION_FORMATS = {
59
- csv: ",",
60
- ssv: " ",
61
- tsv: " ",
62
- pipes: "|"
19
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
20
+ value: mod,
21
+ enumerable: true
22
+ }) : target, mod));
23
+ //#endregion
24
+ let _sp_api_sdk_common = require("@sp-api-sdk/common");
25
+ let axios = require("axios");
26
+ axios = __toESM(axios, 1);
27
+ //#region src/api-model/base.ts
28
+ const BASE_PATH = "https://sellingpartnerapi-na.amazon.com".replace(/\/+$/, "");
29
+ const COLLECTION_FORMATS = {
30
+ csv: ",",
31
+ ssv: " ",
32
+ tsv: " ",
33
+ pipes: "|"
63
34
  };
64
35
  var BaseAPI = class {
65
- constructor(configuration, basePath = BASE_PATH, axios = import_axios.default) {
66
- this.basePath = basePath;
67
- this.axios = axios;
68
- if (configuration) {
69
- this.configuration = configuration;
70
- this.basePath = configuration.basePath ?? basePath;
71
- }
72
- }
73
- basePath;
74
- axios;
75
- configuration;
36
+ basePath;
37
+ axios;
38
+ configuration;
39
+ constructor(configuration, basePath = BASE_PATH, axios$4 = axios.default) {
40
+ this.basePath = basePath;
41
+ this.axios = axios$4;
42
+ if (configuration) {
43
+ this.configuration = configuration;
44
+ this.basePath = configuration.basePath ?? basePath;
45
+ }
46
+ }
76
47
  };
77
48
  var RequiredError = class extends Error {
78
- constructor(field, msg) {
79
- super(msg);
80
- this.field = field;
81
- this.name = "RequiredError";
82
- }
83
- field;
49
+ field;
50
+ constructor(field, msg) {
51
+ super(msg);
52
+ this.field = field;
53
+ this.name = "RequiredError";
54
+ }
84
55
  };
85
- var operationServerMap = {};
86
-
87
- // src/api-model/common.ts
88
- var DUMMY_BASE_URL = "https://example.com";
89
- var assertParamExists = function(functionName, paramName, paramValue) {
90
- if (paramValue === null || paramValue === void 0) {
91
- throw new RequiredError(paramName, `Required parameter ${paramName} was null or undefined when calling ${functionName}.`);
92
- }
56
+ const operationServerMap = {};
57
+ //#endregion
58
+ //#region src/api-model/common.ts
59
+ const DUMMY_BASE_URL = "https://example.com";
60
+ /**
61
+ *
62
+ * @throws {RequiredError}
63
+ */
64
+ const assertParamExists = function(functionName, paramName, paramValue) {
65
+ if (paramValue === null || paramValue === void 0) throw new RequiredError(paramName, `Required parameter ${paramName} was null or undefined when calling ${functionName}.`);
93
66
  };
94
67
  function setFlattenedQueryParams(urlSearchParams, parameter, key = "") {
95
- if (parameter == null) return;
96
- if (typeof parameter === "object") {
97
- if (Array.isArray(parameter) || parameter instanceof Set) {
98
- parameter.forEach((item) => setFlattenedQueryParams(urlSearchParams, item, key));
99
- } else {
100
- Object.keys(parameter).forEach(
101
- (currentKey) => setFlattenedQueryParams(urlSearchParams, parameter[currentKey], `${key}${key !== "" ? "." : ""}${currentKey}`)
102
- );
103
- }
104
- } else {
105
- if (urlSearchParams.has(key)) {
106
- urlSearchParams.append(key, parameter);
107
- } else {
108
- urlSearchParams.set(key, parameter);
109
- }
110
- }
68
+ if (parameter == null) return;
69
+ if (typeof parameter === "object") if (Array.isArray(parameter) || parameter instanceof Set) parameter.forEach((item) => setFlattenedQueryParams(urlSearchParams, item, key));
70
+ else Object.keys(parameter).forEach((currentKey) => setFlattenedQueryParams(urlSearchParams, parameter[currentKey], `${key}${key !== "" ? "." : ""}${currentKey}`));
71
+ else if (urlSearchParams.has(key)) urlSearchParams.append(key, parameter);
72
+ else urlSearchParams.set(key, parameter);
111
73
  }
112
- var setSearchParams = function(url, ...objects) {
113
- const searchParams = new URLSearchParams(url.search);
114
- setFlattenedQueryParams(searchParams, objects);
115
- url.search = searchParams.toString();
74
+ const setSearchParams = function(url, ...objects) {
75
+ const searchParams = new URLSearchParams(url.search);
76
+ setFlattenedQueryParams(searchParams, objects);
77
+ url.search = searchParams.toString();
116
78
  };
117
- var toPathString = function(url) {
118
- return url.pathname + url.search + url.hash;
79
+ const toPathString = function(url) {
80
+ return url.pathname + url.search + url.hash;
119
81
  };
120
- var createRequestFunction = function(axiosArgs, globalAxios3, BASE_PATH2, configuration) {
121
- return (axios = globalAxios3, basePath = BASE_PATH2) => {
122
- const axiosRequestArgs = { ...axiosArgs.options, url: (axios.defaults.baseURL ? "" : configuration?.basePath ?? basePath) + axiosArgs.url };
123
- return axios.request(axiosRequestArgs);
124
- };
82
+ const createRequestFunction = function(axiosArgs, globalAxios, BASE_PATH, configuration) {
83
+ return (axios = globalAxios, basePath = BASE_PATH) => {
84
+ const axiosRequestArgs = {
85
+ ...axiosArgs.options,
86
+ url: (axios.defaults.baseURL ? "" : configuration?.basePath ?? basePath) + axiosArgs.url
87
+ };
88
+ return axios.request(axiosRequestArgs);
89
+ };
125
90
  };
126
-
127
- // src/api-model/api/catalog-items-api.ts
128
- var CatalogItemsApiAxiosParamCreator = function(configuration) {
129
- return {
130
- /**
131
- * Retrieves details for an item in the Amazon catalog. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 2 | The `x-amzn-RateLimit-Limit` response header contains the usage plan rate limits for the operation, when available. The preceding table contains the default rate and burst values for this operation. Selling partners whose business demands require higher throughput might have higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
132
- * @param {string} asin The Amazon Standard Identification Number (ASIN) of the item.
133
- * @param {Array<string>} marketplaceIds A comma-delimited list of Amazon marketplace identifiers. To find the ID for your marketplace, refer to [Marketplace IDs](https://developer-docs.amazon.com/sp-api/docs/marketplace-ids).
134
- * @param {Array<GetCatalogItemIncludedDataEnum>} [includedData] A comma-delimited list of datasets to include in the response.
135
- * @param {string} [locale] The locale for which you want to retrieve localized summaries. Defaults to the primary locale of the marketplace.
136
- * @param {*} [options] Override http request option.
137
- * @throws {RequiredError}
138
- */
139
- getCatalogItem: async (asin, marketplaceIds, includedData, locale, options = {}) => {
140
- assertParamExists("getCatalogItem", "asin", asin);
141
- assertParamExists("getCatalogItem", "marketplaceIds", marketplaceIds);
142
- const localVarPath = `/catalog/2022-04-01/items/{asin}`.replace("{asin}", encodeURIComponent(String(asin)));
143
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
144
- let baseOptions;
145
- if (configuration) {
146
- baseOptions = configuration.baseOptions;
147
- }
148
- const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
149
- const localVarHeaderParameter = {};
150
- const localVarQueryParameter = {};
151
- if (marketplaceIds) {
152
- localVarQueryParameter["marketplaceIds"] = marketplaceIds.join(COLLECTION_FORMATS.csv);
153
- }
154
- if (includedData) {
155
- localVarQueryParameter["includedData"] = includedData.join(COLLECTION_FORMATS.csv);
156
- }
157
- if (locale !== void 0) {
158
- localVarQueryParameter["locale"] = locale;
159
- }
160
- localVarHeaderParameter["Accept"] = "application/json";
161
- setSearchParams(localVarUrlObj, localVarQueryParameter);
162
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
163
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
164
- return {
165
- url: toPathString(localVarUrlObj),
166
- options: localVarRequestOptions
167
- };
168
- },
169
- /**
170
- * Search for a list of Amazon catalog items and item-related information. You can search by identifier or by keywords. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 2 | The `x-amzn-RateLimit-Limit` response header contains the usage plan rate limits for the operation, when available. The preceding table contains the default rate and burst values for this operation. Selling partners whose business demands require higher throughput might have higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
171
- * @param {Array<string>} marketplaceIds A comma-delimited list of Amazon marketplace identifiers. To find the ID for your marketplace, refer to [Marketplace IDs](https://developer-docs.amazon.com/sp-api/docs/marketplace-ids).
172
- * @param {Array<string>} [identifiers] A comma-delimited list of product identifiers that you can use to search the Amazon catalog. **Note:** You cannot include &#x60;identifiers&#x60; and &#x60;keywords&#x60; in the same request.
173
- * @param {SearchCatalogItemsIdentifiersTypeEnum} [identifiersType] The type of product identifiers that you can use to search the Amazon catalog. **Note:** &#x60;identifiersType&#x60; is required when &#x60;identifiers&#x60; is in the request.
174
- * @param {Array<SearchCatalogItemsIncludedDataEnum>} [includedData] A comma-delimited list of datasets to include in the response.
175
- * @param {string} [locale] The locale for which you want to retrieve localized summaries. Defaults to the primary locale of the marketplace.
176
- * @param {string} [sellerId] A selling partner identifier, such as a seller account or vendor code. **Note:** Required when &#x60;identifiersType&#x60; is &#x60;SKU&#x60;.
177
- * @param {Array<string>} [keywords] A comma-delimited list of keywords that you can use to search the Amazon catalog. **Note:** You cannot include &#x60;keywords&#x60; and &#x60;identifiers&#x60; in the same request.
178
- * @param {Array<string>} [brandNames] A comma-delimited list of brand names that you can use to limit the search in queries based on &#x60;keywords&#x60;. **Note:** Cannot be used with &#x60;identifiers&#x60;.
179
- * @param {Array<string>} [classificationIds] A comma-delimited list of classification identifiers that you can use to limit the search in queries based on &#x60;keywords&#x60;. **Note:** Cannot be used with &#x60;identifiers&#x60;.
180
- * @param {number} [pageSize] The number of results to include on each page.
181
- * @param {string} [pageToken] A token that you can use to fetch a specific page when there are multiple pages of results.
182
- * @param {string} [keywordsLocale] The language of the keywords that are included in queries based on &#x60;keywords&#x60;. Defaults to the primary locale of the marketplace. **Note:** Cannot be used with &#x60;identifiers&#x60;.
183
- * @param {*} [options] Override http request option.
184
- * @throws {RequiredError}
185
- */
186
- searchCatalogItems: async (marketplaceIds, identifiers, identifiersType, includedData, locale, sellerId, keywords, brandNames, classificationIds, pageSize, pageToken, keywordsLocale, options = {}) => {
187
- assertParamExists("searchCatalogItems", "marketplaceIds", marketplaceIds);
188
- const localVarPath = `/catalog/2022-04-01/items`;
189
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
190
- let baseOptions;
191
- if (configuration) {
192
- baseOptions = configuration.baseOptions;
193
- }
194
- const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
195
- const localVarHeaderParameter = {};
196
- const localVarQueryParameter = {};
197
- if (identifiers) {
198
- localVarQueryParameter["identifiers"] = identifiers.join(COLLECTION_FORMATS.csv);
199
- }
200
- if (identifiersType !== void 0) {
201
- localVarQueryParameter["identifiersType"] = identifiersType;
202
- }
203
- if (marketplaceIds) {
204
- localVarQueryParameter["marketplaceIds"] = marketplaceIds.join(COLLECTION_FORMATS.csv);
205
- }
206
- if (includedData) {
207
- localVarQueryParameter["includedData"] = includedData.join(COLLECTION_FORMATS.csv);
208
- }
209
- if (locale !== void 0) {
210
- localVarQueryParameter["locale"] = locale;
211
- }
212
- if (sellerId !== void 0) {
213
- localVarQueryParameter["sellerId"] = sellerId;
214
- }
215
- if (keywords) {
216
- localVarQueryParameter["keywords"] = keywords.join(COLLECTION_FORMATS.csv);
217
- }
218
- if (brandNames) {
219
- localVarQueryParameter["brandNames"] = brandNames.join(COLLECTION_FORMATS.csv);
220
- }
221
- if (classificationIds) {
222
- localVarQueryParameter["classificationIds"] = classificationIds.join(COLLECTION_FORMATS.csv);
223
- }
224
- if (pageSize !== void 0) {
225
- localVarQueryParameter["pageSize"] = pageSize;
226
- }
227
- if (pageToken !== void 0) {
228
- localVarQueryParameter["pageToken"] = pageToken;
229
- }
230
- if (keywordsLocale !== void 0) {
231
- localVarQueryParameter["keywordsLocale"] = keywordsLocale;
232
- }
233
- localVarHeaderParameter["Accept"] = "application/json";
234
- setSearchParams(localVarUrlObj, localVarQueryParameter);
235
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
236
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
237
- return {
238
- url: toPathString(localVarUrlObj),
239
- options: localVarRequestOptions
240
- };
241
- }
242
- };
91
+ //#endregion
92
+ //#region src/api-model/api/catalog-items-api.ts
93
+ /**
94
+ * CatalogItemsApi - axios parameter creator
95
+ */
96
+ const CatalogItemsApiAxiosParamCreator = function(configuration) {
97
+ return {
98
+ /**
99
+ * Retrieves details for an item in the Amazon catalog. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 2 | The `x-amzn-RateLimit-Limit` response header contains the usage plan rate limits for the operation, when available. The preceding table contains the default rate and burst values for this operation. Selling partners whose business demands require higher throughput might have higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
100
+ * @param {string} asin The Amazon Standard Identification Number (ASIN) of the item.
101
+ * @param {Array<string>} marketplaceIds A comma-delimited list of Amazon marketplace identifiers. To find the ID for your marketplace, refer to [Marketplace IDs](https://developer-docs.amazon.com/sp-api/docs/marketplace-ids).
102
+ * @param {Array<GetCatalogItemIncludedDataEnum>} [includedData] A comma-delimited list of datasets to include in the response.
103
+ * @param {string} [locale] The locale for which you want to retrieve localized summaries. Defaults to the primary locale of the marketplace.
104
+ * @param {*} [options] Override http request option.
105
+ * @throws {RequiredError}
106
+ */
107
+ getCatalogItem: async (asin, marketplaceIds, includedData, locale, options = {}) => {
108
+ assertParamExists("getCatalogItem", "asin", asin);
109
+ assertParamExists("getCatalogItem", "marketplaceIds", marketplaceIds);
110
+ const localVarPath = `/catalog/2022-04-01/items/{asin}`.replace("{asin}", encodeURIComponent(String(asin)));
111
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
112
+ let baseOptions;
113
+ if (configuration) baseOptions = configuration.baseOptions;
114
+ const localVarRequestOptions = {
115
+ method: "GET",
116
+ ...baseOptions,
117
+ ...options
118
+ };
119
+ const localVarHeaderParameter = {};
120
+ const localVarQueryParameter = {};
121
+ if (marketplaceIds) localVarQueryParameter["marketplaceIds"] = marketplaceIds.join(COLLECTION_FORMATS.csv);
122
+ if (includedData) localVarQueryParameter["includedData"] = includedData.join(COLLECTION_FORMATS.csv);
123
+ if (locale !== void 0) localVarQueryParameter["locale"] = locale;
124
+ localVarHeaderParameter["Accept"] = "application/json";
125
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
126
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
127
+ localVarRequestOptions.headers = {
128
+ ...localVarHeaderParameter,
129
+ ...headersFromBaseOptions,
130
+ ...options.headers
131
+ };
132
+ return {
133
+ url: toPathString(localVarUrlObj),
134
+ options: localVarRequestOptions
135
+ };
136
+ },
137
+ /**
138
+ * Search for a list of Amazon catalog items and item-related information. You can search by identifier or by keywords. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 2 | The `x-amzn-RateLimit-Limit` response header contains the usage plan rate limits for the operation, when available. The preceding table contains the default rate and burst values for this operation. Selling partners whose business demands require higher throughput might have higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
139
+ * @param {Array<string>} marketplaceIds A comma-delimited list of Amazon marketplace identifiers. To find the ID for your marketplace, refer to [Marketplace IDs](https://developer-docs.amazon.com/sp-api/docs/marketplace-ids).
140
+ * @param {Array<string>} [identifiers] A comma-delimited list of product identifiers that you can use to search the Amazon catalog. **Note:** You cannot include &#x60;identifiers&#x60; and &#x60;keywords&#x60; in the same request.
141
+ * @param {SearchCatalogItemsIdentifiersTypeEnum} [identifiersType] The type of product identifiers that you can use to search the Amazon catalog. **Note:** &#x60;identifiersType&#x60; is required when &#x60;identifiers&#x60; is in the request.
142
+ * @param {Array<SearchCatalogItemsIncludedDataEnum>} [includedData] A comma-delimited list of datasets to include in the response.
143
+ * @param {string} [locale] The locale for which you want to retrieve localized summaries. Defaults to the primary locale of the marketplace.
144
+ * @param {string} [sellerId] A selling partner identifier, such as a seller account or vendor code. **Note:** Required when &#x60;identifiersType&#x60; is &#x60;SKU&#x60;.
145
+ * @param {Array<string>} [keywords] A comma-delimited list of keywords that you can use to search the Amazon catalog. **Note:** You cannot include &#x60;keywords&#x60; and &#x60;identifiers&#x60; in the same request.
146
+ * @param {Array<string>} [brandNames] A comma-delimited list of brand names that you can use to limit the search in queries based on &#x60;keywords&#x60;. **Note:** Cannot be used with &#x60;identifiers&#x60;.
147
+ * @param {Array<string>} [classificationIds] A comma-delimited list of classification identifiers that you can use to limit the search in queries based on &#x60;keywords&#x60;. **Note:** Cannot be used with &#x60;identifiers&#x60;.
148
+ * @param {number} [pageSize] The number of results to include on each page.
149
+ * @param {string} [pageToken] A token that you can use to fetch a specific page when there are multiple pages of results.
150
+ * @param {string} [keywordsLocale] The language of the keywords that are included in queries based on &#x60;keywords&#x60;. Defaults to the primary locale of the marketplace. **Note:** Cannot be used with &#x60;identifiers&#x60;.
151
+ * @param {*} [options] Override http request option.
152
+ * @throws {RequiredError}
153
+ */
154
+ searchCatalogItems: async (marketplaceIds, identifiers, identifiersType, includedData, locale, sellerId, keywords, brandNames, classificationIds, pageSize, pageToken, keywordsLocale, options = {}) => {
155
+ assertParamExists("searchCatalogItems", "marketplaceIds", marketplaceIds);
156
+ const localVarUrlObj = new URL(`/catalog/2022-04-01/items`, DUMMY_BASE_URL);
157
+ let baseOptions;
158
+ if (configuration) baseOptions = configuration.baseOptions;
159
+ const localVarRequestOptions = {
160
+ method: "GET",
161
+ ...baseOptions,
162
+ ...options
163
+ };
164
+ const localVarHeaderParameter = {};
165
+ const localVarQueryParameter = {};
166
+ if (identifiers) localVarQueryParameter["identifiers"] = identifiers.join(COLLECTION_FORMATS.csv);
167
+ if (identifiersType !== void 0) localVarQueryParameter["identifiersType"] = identifiersType;
168
+ if (marketplaceIds) localVarQueryParameter["marketplaceIds"] = marketplaceIds.join(COLLECTION_FORMATS.csv);
169
+ if (includedData) localVarQueryParameter["includedData"] = includedData.join(COLLECTION_FORMATS.csv);
170
+ if (locale !== void 0) localVarQueryParameter["locale"] = locale;
171
+ if (sellerId !== void 0) localVarQueryParameter["sellerId"] = sellerId;
172
+ if (keywords) localVarQueryParameter["keywords"] = keywords.join(COLLECTION_FORMATS.csv);
173
+ if (brandNames) localVarQueryParameter["brandNames"] = brandNames.join(COLLECTION_FORMATS.csv);
174
+ if (classificationIds) localVarQueryParameter["classificationIds"] = classificationIds.join(COLLECTION_FORMATS.csv);
175
+ if (pageSize !== void 0) localVarQueryParameter["pageSize"] = pageSize;
176
+ if (pageToken !== void 0) localVarQueryParameter["pageToken"] = pageToken;
177
+ if (keywordsLocale !== void 0) localVarQueryParameter["keywordsLocale"] = keywordsLocale;
178
+ localVarHeaderParameter["Accept"] = "application/json";
179
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
180
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
181
+ localVarRequestOptions.headers = {
182
+ ...localVarHeaderParameter,
183
+ ...headersFromBaseOptions,
184
+ ...options.headers
185
+ };
186
+ return {
187
+ url: toPathString(localVarUrlObj),
188
+ options: localVarRequestOptions
189
+ };
190
+ }
191
+ };
243
192
  };
244
- var CatalogItemsApiFp = function(configuration) {
245
- const localVarAxiosParamCreator = CatalogItemsApiAxiosParamCreator(configuration);
246
- return {
247
- /**
248
- * Retrieves details for an item in the Amazon catalog. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 2 | The `x-amzn-RateLimit-Limit` response header contains the usage plan rate limits for the operation, when available. The preceding table contains the default rate and burst values for this operation. Selling partners whose business demands require higher throughput might have higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
249
- * @param {string} asin The Amazon Standard Identification Number (ASIN) of the item.
250
- * @param {Array<string>} marketplaceIds A comma-delimited list of Amazon marketplace identifiers. To find the ID for your marketplace, refer to [Marketplace IDs](https://developer-docs.amazon.com/sp-api/docs/marketplace-ids).
251
- * @param {Array<GetCatalogItemIncludedDataEnum>} [includedData] A comma-delimited list of datasets to include in the response.
252
- * @param {string} [locale] The locale for which you want to retrieve localized summaries. Defaults to the primary locale of the marketplace.
253
- * @param {*} [options] Override http request option.
254
- * @throws {RequiredError}
255
- */
256
- async getCatalogItem(asin, marketplaceIds, includedData, locale, options) {
257
- const localVarAxiosArgs = await localVarAxiosParamCreator.getCatalogItem(asin, marketplaceIds, includedData, locale, options);
258
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
259
- const localVarOperationServerBasePath = operationServerMap["CatalogItemsApi.getCatalogItem"]?.[localVarOperationServerIndex]?.url;
260
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, import_axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
261
- },
262
- /**
263
- * Search for a list of Amazon catalog items and item-related information. You can search by identifier or by keywords. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 2 | The `x-amzn-RateLimit-Limit` response header contains the usage plan rate limits for the operation, when available. The preceding table contains the default rate and burst values for this operation. Selling partners whose business demands require higher throughput might have higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
264
- * @param {Array<string>} marketplaceIds A comma-delimited list of Amazon marketplace identifiers. To find the ID for your marketplace, refer to [Marketplace IDs](https://developer-docs.amazon.com/sp-api/docs/marketplace-ids).
265
- * @param {Array<string>} [identifiers] A comma-delimited list of product identifiers that you can use to search the Amazon catalog. **Note:** You cannot include &#x60;identifiers&#x60; and &#x60;keywords&#x60; in the same request.
266
- * @param {SearchCatalogItemsIdentifiersTypeEnum} [identifiersType] The type of product identifiers that you can use to search the Amazon catalog. **Note:** &#x60;identifiersType&#x60; is required when &#x60;identifiers&#x60; is in the request.
267
- * @param {Array<SearchCatalogItemsIncludedDataEnum>} [includedData] A comma-delimited list of datasets to include in the response.
268
- * @param {string} [locale] The locale for which you want to retrieve localized summaries. Defaults to the primary locale of the marketplace.
269
- * @param {string} [sellerId] A selling partner identifier, such as a seller account or vendor code. **Note:** Required when &#x60;identifiersType&#x60; is &#x60;SKU&#x60;.
270
- * @param {Array<string>} [keywords] A comma-delimited list of keywords that you can use to search the Amazon catalog. **Note:** You cannot include &#x60;keywords&#x60; and &#x60;identifiers&#x60; in the same request.
271
- * @param {Array<string>} [brandNames] A comma-delimited list of brand names that you can use to limit the search in queries based on &#x60;keywords&#x60;. **Note:** Cannot be used with &#x60;identifiers&#x60;.
272
- * @param {Array<string>} [classificationIds] A comma-delimited list of classification identifiers that you can use to limit the search in queries based on &#x60;keywords&#x60;. **Note:** Cannot be used with &#x60;identifiers&#x60;.
273
- * @param {number} [pageSize] The number of results to include on each page.
274
- * @param {string} [pageToken] A token that you can use to fetch a specific page when there are multiple pages of results.
275
- * @param {string} [keywordsLocale] The language of the keywords that are included in queries based on &#x60;keywords&#x60;. Defaults to the primary locale of the marketplace. **Note:** Cannot be used with &#x60;identifiers&#x60;.
276
- * @param {*} [options] Override http request option.
277
- * @throws {RequiredError}
278
- */
279
- async searchCatalogItems(marketplaceIds, identifiers, identifiersType, includedData, locale, sellerId, keywords, brandNames, classificationIds, pageSize, pageToken, keywordsLocale, options) {
280
- const localVarAxiosArgs = await localVarAxiosParamCreator.searchCatalogItems(marketplaceIds, identifiers, identifiersType, includedData, locale, sellerId, keywords, brandNames, classificationIds, pageSize, pageToken, keywordsLocale, options);
281
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
282
- const localVarOperationServerBasePath = operationServerMap["CatalogItemsApi.searchCatalogItems"]?.[localVarOperationServerIndex]?.url;
283
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, import_axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
284
- }
285
- };
193
+ /**
194
+ * CatalogItemsApi - functional programming interface
195
+ */
196
+ const CatalogItemsApiFp = function(configuration) {
197
+ const localVarAxiosParamCreator = CatalogItemsApiAxiosParamCreator(configuration);
198
+ return {
199
+ /**
200
+ * Retrieves details for an item in the Amazon catalog. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 2 | The `x-amzn-RateLimit-Limit` response header contains the usage plan rate limits for the operation, when available. The preceding table contains the default rate and burst values for this operation. Selling partners whose business demands require higher throughput might have higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
201
+ * @param {string} asin The Amazon Standard Identification Number (ASIN) of the item.
202
+ * @param {Array<string>} marketplaceIds A comma-delimited list of Amazon marketplace identifiers. To find the ID for your marketplace, refer to [Marketplace IDs](https://developer-docs.amazon.com/sp-api/docs/marketplace-ids).
203
+ * @param {Array<GetCatalogItemIncludedDataEnum>} [includedData] A comma-delimited list of datasets to include in the response.
204
+ * @param {string} [locale] The locale for which you want to retrieve localized summaries. Defaults to the primary locale of the marketplace.
205
+ * @param {*} [options] Override http request option.
206
+ * @throws {RequiredError}
207
+ */
208
+ async getCatalogItem(asin, marketplaceIds, includedData, locale, options) {
209
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getCatalogItem(asin, marketplaceIds, includedData, locale, options);
210
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
211
+ const localVarOperationServerBasePath = operationServerMap["CatalogItemsApi.getCatalogItem"]?.[localVarOperationServerIndex]?.url;
212
+ return (axios$1, basePath) => createRequestFunction(localVarAxiosArgs, axios.default, BASE_PATH, configuration)(axios$1, localVarOperationServerBasePath || basePath);
213
+ },
214
+ /**
215
+ * Search for a list of Amazon catalog items and item-related information. You can search by identifier or by keywords. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 2 | The `x-amzn-RateLimit-Limit` response header contains the usage plan rate limits for the operation, when available. The preceding table contains the default rate and burst values for this operation. Selling partners whose business demands require higher throughput might have higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
216
+ * @param {Array<string>} marketplaceIds A comma-delimited list of Amazon marketplace identifiers. To find the ID for your marketplace, refer to [Marketplace IDs](https://developer-docs.amazon.com/sp-api/docs/marketplace-ids).
217
+ * @param {Array<string>} [identifiers] A comma-delimited list of product identifiers that you can use to search the Amazon catalog. **Note:** You cannot include &#x60;identifiers&#x60; and &#x60;keywords&#x60; in the same request.
218
+ * @param {SearchCatalogItemsIdentifiersTypeEnum} [identifiersType] The type of product identifiers that you can use to search the Amazon catalog. **Note:** &#x60;identifiersType&#x60; is required when &#x60;identifiers&#x60; is in the request.
219
+ * @param {Array<SearchCatalogItemsIncludedDataEnum>} [includedData] A comma-delimited list of datasets to include in the response.
220
+ * @param {string} [locale] The locale for which you want to retrieve localized summaries. Defaults to the primary locale of the marketplace.
221
+ * @param {string} [sellerId] A selling partner identifier, such as a seller account or vendor code. **Note:** Required when &#x60;identifiersType&#x60; is &#x60;SKU&#x60;.
222
+ * @param {Array<string>} [keywords] A comma-delimited list of keywords that you can use to search the Amazon catalog. **Note:** You cannot include &#x60;keywords&#x60; and &#x60;identifiers&#x60; in the same request.
223
+ * @param {Array<string>} [brandNames] A comma-delimited list of brand names that you can use to limit the search in queries based on &#x60;keywords&#x60;. **Note:** Cannot be used with &#x60;identifiers&#x60;.
224
+ * @param {Array<string>} [classificationIds] A comma-delimited list of classification identifiers that you can use to limit the search in queries based on &#x60;keywords&#x60;. **Note:** Cannot be used with &#x60;identifiers&#x60;.
225
+ * @param {number} [pageSize] The number of results to include on each page.
226
+ * @param {string} [pageToken] A token that you can use to fetch a specific page when there are multiple pages of results.
227
+ * @param {string} [keywordsLocale] The language of the keywords that are included in queries based on &#x60;keywords&#x60;. Defaults to the primary locale of the marketplace. **Note:** Cannot be used with &#x60;identifiers&#x60;.
228
+ * @param {*} [options] Override http request option.
229
+ * @throws {RequiredError}
230
+ */
231
+ async searchCatalogItems(marketplaceIds, identifiers, identifiersType, includedData, locale, sellerId, keywords, brandNames, classificationIds, pageSize, pageToken, keywordsLocale, options) {
232
+ const localVarAxiosArgs = await localVarAxiosParamCreator.searchCatalogItems(marketplaceIds, identifiers, identifiersType, includedData, locale, sellerId, keywords, brandNames, classificationIds, pageSize, pageToken, keywordsLocale, options);
233
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
234
+ const localVarOperationServerBasePath = operationServerMap["CatalogItemsApi.searchCatalogItems"]?.[localVarOperationServerIndex]?.url;
235
+ return (axios$2, basePath) => createRequestFunction(localVarAxiosArgs, axios.default, BASE_PATH, configuration)(axios$2, localVarOperationServerBasePath || basePath);
236
+ }
237
+ };
286
238
  };
287
- var CatalogItemsApiFactory = function(configuration, basePath, axios) {
288
- const localVarFp = CatalogItemsApiFp(configuration);
289
- return {
290
- /**
291
- * Retrieves details for an item in the Amazon catalog. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 2 | The `x-amzn-RateLimit-Limit` response header contains the usage plan rate limits for the operation, when available. The preceding table contains the default rate and burst values for this operation. Selling partners whose business demands require higher throughput might have higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
292
- * @param {CatalogItemsApiGetCatalogItemRequest} requestParameters Request parameters.
293
- * @param {*} [options] Override http request option.
294
- * @throws {RequiredError}
295
- */
296
- getCatalogItem(requestParameters, options) {
297
- return localVarFp.getCatalogItem(requestParameters.asin, requestParameters.marketplaceIds, requestParameters.includedData, requestParameters.locale, options).then((request) => request(axios, basePath));
298
- },
299
- /**
300
- * Search for a list of Amazon catalog items and item-related information. You can search by identifier or by keywords. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 2 | The `x-amzn-RateLimit-Limit` response header contains the usage plan rate limits for the operation, when available. The preceding table contains the default rate and burst values for this operation. Selling partners whose business demands require higher throughput might have higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
301
- * @param {CatalogItemsApiSearchCatalogItemsRequest} requestParameters Request parameters.
302
- * @param {*} [options] Override http request option.
303
- * @throws {RequiredError}
304
- */
305
- searchCatalogItems(requestParameters, options) {
306
- return localVarFp.searchCatalogItems(requestParameters.marketplaceIds, requestParameters.identifiers, requestParameters.identifiersType, requestParameters.includedData, requestParameters.locale, requestParameters.sellerId, requestParameters.keywords, requestParameters.brandNames, requestParameters.classificationIds, requestParameters.pageSize, requestParameters.pageToken, requestParameters.keywordsLocale, options).then((request) => request(axios, basePath));
307
- }
308
- };
239
+ /**
240
+ * CatalogItemsApi - factory interface
241
+ */
242
+ const CatalogItemsApiFactory = function(configuration, basePath, axios$3) {
243
+ const localVarFp = CatalogItemsApiFp(configuration);
244
+ return {
245
+ /**
246
+ * Retrieves details for an item in the Amazon catalog. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 2 | The `x-amzn-RateLimit-Limit` response header contains the usage plan rate limits for the operation, when available. The preceding table contains the default rate and burst values for this operation. Selling partners whose business demands require higher throughput might have higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
247
+ * @param {CatalogItemsApiGetCatalogItemRequest} requestParameters Request parameters.
248
+ * @param {*} [options] Override http request option.
249
+ * @throws {RequiredError}
250
+ */
251
+ getCatalogItem(requestParameters, options) {
252
+ return localVarFp.getCatalogItem(requestParameters.asin, requestParameters.marketplaceIds, requestParameters.includedData, requestParameters.locale, options).then((request) => request(axios$3, basePath));
253
+ },
254
+ /**
255
+ * Search for a list of Amazon catalog items and item-related information. You can search by identifier or by keywords. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 2 | The `x-amzn-RateLimit-Limit` response header contains the usage plan rate limits for the operation, when available. The preceding table contains the default rate and burst values for this operation. Selling partners whose business demands require higher throughput might have higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
256
+ * @param {CatalogItemsApiSearchCatalogItemsRequest} requestParameters Request parameters.
257
+ * @param {*} [options] Override http request option.
258
+ * @throws {RequiredError}
259
+ */
260
+ searchCatalogItems(requestParameters, options) {
261
+ return localVarFp.searchCatalogItems(requestParameters.marketplaceIds, requestParameters.identifiers, requestParameters.identifiersType, requestParameters.includedData, requestParameters.locale, requestParameters.sellerId, requestParameters.keywords, requestParameters.brandNames, requestParameters.classificationIds, requestParameters.pageSize, requestParameters.pageToken, requestParameters.keywordsLocale, options).then((request) => request(axios$3, basePath));
262
+ }
263
+ };
309
264
  };
265
+ /**
266
+ * CatalogItemsApi - object-oriented interface
267
+ */
310
268
  var CatalogItemsApi = class extends BaseAPI {
311
- /**
312
- * Retrieves details for an item in the Amazon catalog. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 2 | The `x-amzn-RateLimit-Limit` response header contains the usage plan rate limits for the operation, when available. The preceding table contains the default rate and burst values for this operation. Selling partners whose business demands require higher throughput might have higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
313
- * @param {CatalogItemsApiGetCatalogItemRequest} requestParameters Request parameters.
314
- * @param {*} [options] Override http request option.
315
- * @throws {RequiredError}
316
- */
317
- getCatalogItem(requestParameters, options) {
318
- return CatalogItemsApiFp(this.configuration).getCatalogItem(requestParameters.asin, requestParameters.marketplaceIds, requestParameters.includedData, requestParameters.locale, options).then((request) => request(this.axios, this.basePath));
319
- }
320
- /**
321
- * Search for a list of Amazon catalog items and item-related information. You can search by identifier or by keywords. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 2 | The `x-amzn-RateLimit-Limit` response header contains the usage plan rate limits for the operation, when available. The preceding table contains the default rate and burst values for this operation. Selling partners whose business demands require higher throughput might have higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
322
- * @param {CatalogItemsApiSearchCatalogItemsRequest} requestParameters Request parameters.
323
- * @param {*} [options] Override http request option.
324
- * @throws {RequiredError}
325
- */
326
- searchCatalogItems(requestParameters, options) {
327
- return CatalogItemsApiFp(this.configuration).searchCatalogItems(requestParameters.marketplaceIds, requestParameters.identifiers, requestParameters.identifiersType, requestParameters.includedData, requestParameters.locale, requestParameters.sellerId, requestParameters.keywords, requestParameters.brandNames, requestParameters.classificationIds, requestParameters.pageSize, requestParameters.pageToken, requestParameters.keywordsLocale, options).then((request) => request(this.axios, this.basePath));
328
- }
269
+ /**
270
+ * Retrieves details for an item in the Amazon catalog. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 2 | The `x-amzn-RateLimit-Limit` response header contains the usage plan rate limits for the operation, when available. The preceding table contains the default rate and burst values for this operation. Selling partners whose business demands require higher throughput might have higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
271
+ * @param {CatalogItemsApiGetCatalogItemRequest} requestParameters Request parameters.
272
+ * @param {*} [options] Override http request option.
273
+ * @throws {RequiredError}
274
+ */
275
+ getCatalogItem(requestParameters, options) {
276
+ return CatalogItemsApiFp(this.configuration).getCatalogItem(requestParameters.asin, requestParameters.marketplaceIds, requestParameters.includedData, requestParameters.locale, options).then((request) => request(this.axios, this.basePath));
277
+ }
278
+ /**
279
+ * Search for a list of Amazon catalog items and item-related information. You can search by identifier or by keywords. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 2 | The `x-amzn-RateLimit-Limit` response header contains the usage plan rate limits for the operation, when available. The preceding table contains the default rate and burst values for this operation. Selling partners whose business demands require higher throughput might have higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
280
+ * @param {CatalogItemsApiSearchCatalogItemsRequest} requestParameters Request parameters.
281
+ * @param {*} [options] Override http request option.
282
+ * @throws {RequiredError}
283
+ */
284
+ searchCatalogItems(requestParameters, options) {
285
+ return CatalogItemsApiFp(this.configuration).searchCatalogItems(requestParameters.marketplaceIds, requestParameters.identifiers, requestParameters.identifiersType, requestParameters.includedData, requestParameters.locale, requestParameters.sellerId, requestParameters.keywords, requestParameters.brandNames, requestParameters.classificationIds, requestParameters.pageSize, requestParameters.pageToken, requestParameters.keywordsLocale, options).then((request) => request(this.axios, this.basePath));
286
+ }
329
287
  };
330
- var GetCatalogItemIncludedDataEnum = {
331
- Attributes: "attributes",
332
- Classifications: "classifications",
333
- Dimensions: "dimensions",
334
- Identifiers: "identifiers",
335
- Images: "images",
336
- ProductTypes: "productTypes",
337
- Relationships: "relationships",
338
- SalesRanks: "salesRanks",
339
- Summaries: "summaries",
340
- VendorDetails: "vendorDetails"
288
+ const GetCatalogItemIncludedDataEnum = {
289
+ Attributes: "attributes",
290
+ Classifications: "classifications",
291
+ Dimensions: "dimensions",
292
+ Identifiers: "identifiers",
293
+ Images: "images",
294
+ ProductTypes: "productTypes",
295
+ Relationships: "relationships",
296
+ SalesRanks: "salesRanks",
297
+ Summaries: "summaries",
298
+ VendorDetails: "vendorDetails"
341
299
  };
342
- var SearchCatalogItemsIdentifiersTypeEnum = {
343
- Asin: "ASIN",
344
- Ean: "EAN",
345
- Gtin: "GTIN",
346
- Isbn: "ISBN",
347
- Jan: "JAN",
348
- Minsan: "MINSAN",
349
- Sku: "SKU",
350
- Upc: "UPC"
300
+ const SearchCatalogItemsIdentifiersTypeEnum = {
301
+ Asin: "ASIN",
302
+ Ean: "EAN",
303
+ Gtin: "GTIN",
304
+ Isbn: "ISBN",
305
+ Jan: "JAN",
306
+ Minsan: "MINSAN",
307
+ Sku: "SKU",
308
+ Upc: "UPC"
351
309
  };
352
- var SearchCatalogItemsIncludedDataEnum = {
353
- Attributes: "attributes",
354
- Classifications: "classifications",
355
- Dimensions: "dimensions",
356
- Identifiers: "identifiers",
357
- Images: "images",
358
- ProductTypes: "productTypes",
359
- Relationships: "relationships",
360
- SalesRanks: "salesRanks",
361
- Summaries: "summaries",
362
- VendorDetails: "vendorDetails"
310
+ const SearchCatalogItemsIncludedDataEnum = {
311
+ Attributes: "attributes",
312
+ Classifications: "classifications",
313
+ Dimensions: "dimensions",
314
+ Identifiers: "identifiers",
315
+ Images: "images",
316
+ ProductTypes: "productTypes",
317
+ Relationships: "relationships",
318
+ SalesRanks: "salesRanks",
319
+ Summaries: "summaries",
320
+ VendorDetails: "vendorDetails"
363
321
  };
364
-
365
- // src/api-model/configuration.ts
322
+ //#endregion
323
+ //#region src/api-model/configuration.ts
366
324
  var Configuration = class {
367
- /**
368
- * parameter for apiKey security
369
- * @param name security name
370
- */
371
- apiKey;
372
- /**
373
- * parameter for basic security
374
- */
375
- username;
376
- /**
377
- * parameter for basic security
378
- */
379
- password;
380
- /**
381
- * parameter for oauth2 security
382
- * @param name security name
383
- * @param scopes oauth2 scope
384
- */
385
- accessToken;
386
- /**
387
- * parameter for aws4 signature security
388
- * @param {Object} AWS4Signature - AWS4 Signature security
389
- * @param {string} options.region - aws region
390
- * @param {string} options.service - name of the service.
391
- * @param {string} credentials.accessKeyId - aws access key id
392
- * @param {string} credentials.secretAccessKey - aws access key
393
- * @param {string} credentials.sessionToken - aws session token
394
- * @memberof Configuration
395
- */
396
- awsv4;
397
- /**
398
- * override base path
399
- */
400
- basePath;
401
- /**
402
- * override server index
403
- */
404
- serverIndex;
405
- /**
406
- * base options for axios calls
407
- */
408
- baseOptions;
409
- /**
410
- * The FormData constructor that will be used to create multipart form data
411
- * requests. You can inject this here so that execution environments that
412
- * do not support the FormData class can still run the generated client.
413
- *
414
- * @type {new () => FormData}
415
- */
416
- formDataCtor;
417
- constructor(param = {}) {
418
- this.apiKey = param.apiKey;
419
- this.username = param.username;
420
- this.password = param.password;
421
- this.accessToken = param.accessToken;
422
- this.awsv4 = param.awsv4;
423
- this.basePath = param.basePath;
424
- this.serverIndex = param.serverIndex;
425
- this.baseOptions = {
426
- ...param.baseOptions,
427
- headers: {
428
- ...param.baseOptions?.headers
429
- }
430
- };
431
- this.formDataCtor = param.formDataCtor;
432
- }
433
- /**
434
- * Check if the given MIME is a JSON MIME.
435
- * JSON MIME examples:
436
- * application/json
437
- * application/json; charset=UTF8
438
- * APPLICATION/JSON
439
- * application/vnd.company+json
440
- * @param mime - MIME (Multipurpose Internet Mail Extensions)
441
- * @return True if the given MIME is JSON, false otherwise.
442
- */
443
- isJsonMime(mime) {
444
- const jsonMime = /^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$/i;
445
- return mime !== null && jsonMime.test(mime);
446
- }
325
+ /**
326
+ * parameter for apiKey security
327
+ * @param name security name
328
+ */
329
+ apiKey;
330
+ /**
331
+ * parameter for basic security
332
+ */
333
+ username;
334
+ /**
335
+ * parameter for basic security
336
+ */
337
+ password;
338
+ /**
339
+ * parameter for oauth2 security
340
+ * @param name security name
341
+ * @param scopes oauth2 scope
342
+ */
343
+ accessToken;
344
+ /**
345
+ * parameter for aws4 signature security
346
+ * @param {Object} AWS4Signature - AWS4 Signature security
347
+ * @param {string} options.region - aws region
348
+ * @param {string} options.service - name of the service.
349
+ * @param {string} credentials.accessKeyId - aws access key id
350
+ * @param {string} credentials.secretAccessKey - aws access key
351
+ * @param {string} credentials.sessionToken - aws session token
352
+ * @memberof Configuration
353
+ */
354
+ awsv4;
355
+ /**
356
+ * override base path
357
+ */
358
+ basePath;
359
+ /**
360
+ * override server index
361
+ */
362
+ serverIndex;
363
+ /**
364
+ * base options for axios calls
365
+ */
366
+ baseOptions;
367
+ /**
368
+ * The FormData constructor that will be used to create multipart form data
369
+ * requests. You can inject this here so that execution environments that
370
+ * do not support the FormData class can still run the generated client.
371
+ *
372
+ * @type {new () => FormData}
373
+ */
374
+ formDataCtor;
375
+ constructor(param = {}) {
376
+ this.apiKey = param.apiKey;
377
+ this.username = param.username;
378
+ this.password = param.password;
379
+ this.accessToken = param.accessToken;
380
+ this.awsv4 = param.awsv4;
381
+ this.basePath = param.basePath;
382
+ this.serverIndex = param.serverIndex;
383
+ this.baseOptions = {
384
+ ...param.baseOptions,
385
+ headers: { ...param.baseOptions?.headers }
386
+ };
387
+ this.formDataCtor = param.formDataCtor;
388
+ }
389
+ /**
390
+ * Check if the given MIME is a JSON MIME.
391
+ * JSON MIME examples:
392
+ * application/json
393
+ * application/json; charset=UTF8
394
+ * APPLICATION/JSON
395
+ * application/vnd.company+json
396
+ * @param mime - MIME (Multipurpose Internet Mail Extensions)
397
+ * @return True if the given MIME is JSON, false otherwise.
398
+ */
399
+ isJsonMime(mime) {
400
+ return mime !== null && /^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$/i.test(mime);
401
+ }
447
402
  };
448
-
449
- // src/api-model/models/item-image.ts
450
- var ItemImageVariantEnum = {
451
- Main: "MAIN",
452
- Pt01: "PT01",
453
- Pt02: "PT02",
454
- Pt03: "PT03",
455
- Pt04: "PT04",
456
- Pt05: "PT05",
457
- Pt06: "PT06",
458
- Pt07: "PT07",
459
- Pt08: "PT08",
460
- Swch: "SWCH"
403
+ //#endregion
404
+ //#region src/api-model/models/item-image.ts
405
+ const ItemImageVariantEnum = {
406
+ Main: "MAIN",
407
+ Pt01: "PT01",
408
+ Pt02: "PT02",
409
+ Pt03: "PT03",
410
+ Pt04: "PT04",
411
+ Pt05: "PT05",
412
+ Pt06: "PT06",
413
+ Pt07: "PT07",
414
+ Pt08: "PT08",
415
+ Swch: "SWCH"
461
416
  };
462
-
463
- // src/api-model/models/item-relationship.ts
464
- var ItemRelationshipTypeEnum = {
465
- Variation: "VARIATION",
466
- PackageHierarchy: "PACKAGE_HIERARCHY"
417
+ //#endregion
418
+ //#region src/api-model/models/item-relationship.ts
419
+ const ItemRelationshipTypeEnum = {
420
+ Variation: "VARIATION",
421
+ PackageHierarchy: "PACKAGE_HIERARCHY"
467
422
  };
468
-
469
- // src/api-model/models/item-summary-by-marketplace.ts
470
- var ItemSummaryByMarketplaceItemClassificationEnum = {
471
- BaseProduct: "BASE_PRODUCT",
472
- Other: "OTHER",
473
- ProductBundle: "PRODUCT_BUNDLE",
474
- VariationParent: "VARIATION_PARENT"
423
+ //#endregion
424
+ //#region src/api-model/models/item-summary-by-marketplace.ts
425
+ const ItemSummaryByMarketplaceItemClassificationEnum = {
426
+ BaseProduct: "BASE_PRODUCT",
427
+ Other: "OTHER",
428
+ ProductBundle: "PRODUCT_BUNDLE",
429
+ VariationParent: "VARIATION_PARENT"
475
430
  };
476
-
477
- // src/api-model/models/item-vendor-details-by-marketplace.ts
478
- var ItemVendorDetailsByMarketplaceReplenishmentCategoryEnum = {
479
- Allocated: "ALLOCATED",
480
- BasicReplenishment: "BASIC_REPLENISHMENT",
481
- InSeason: "IN_SEASON",
482
- LimitedReplenishment: "LIMITED_REPLENISHMENT",
483
- ManufacturerOutOfStock: "MANUFACTURER_OUT_OF_STOCK",
484
- NewProduct: "NEW_PRODUCT",
485
- NonReplenishable: "NON_REPLENISHABLE",
486
- NonStockupable: "NON_STOCKUPABLE",
487
- Obsolete: "OBSOLETE",
488
- PlannedReplenishment: "PLANNED_REPLENISHMENT"
431
+ //#endregion
432
+ //#region src/api-model/models/item-vendor-details-by-marketplace.ts
433
+ const ItemVendorDetailsByMarketplaceReplenishmentCategoryEnum = {
434
+ Allocated: "ALLOCATED",
435
+ BasicReplenishment: "BASIC_REPLENISHMENT",
436
+ InSeason: "IN_SEASON",
437
+ LimitedReplenishment: "LIMITED_REPLENISHMENT",
438
+ ManufacturerOutOfStock: "MANUFACTURER_OUT_OF_STOCK",
439
+ NewProduct: "NEW_PRODUCT",
440
+ NonReplenishable: "NON_REPLENISHABLE",
441
+ NonStockupable: "NON_STOCKUPABLE",
442
+ Obsolete: "OBSOLETE",
443
+ PlannedReplenishment: "PLANNED_REPLENISHMENT"
489
444
  };
490
-
491
- // src/client.ts
492
- var clientRateLimits = [
493
- {
494
- method: "get",
495
- // eslint-disable-next-line prefer-regex-literals
496
- urlRegex: new RegExp("^/catalog/2022-04-01/items$"),
497
- rate: 2,
498
- burst: 2
499
- },
500
- {
501
- method: "get",
502
- // eslint-disable-next-line prefer-regex-literals
503
- urlRegex: new RegExp("^/catalog/2022-04-01/items/[^/]*$"),
504
- rate: 2,
505
- burst: 2
506
- }
507
- ];
445
+ //#endregion
446
+ //#region src/client.ts
447
+ const clientRateLimits = [{
448
+ method: "get",
449
+ urlRegex: /^\/catalog\/2022\u{2D}04\u{2D}01\/items$/v,
450
+ rate: 2,
451
+ burst: 2
452
+ }, {
453
+ method: "get",
454
+ urlRegex: /^\/catalog\/2022\u{2D}04\u{2D}01\/items\/[^\/]*$/v,
455
+ rate: 2,
456
+ burst: 2
457
+ }];
508
458
  var CatalogItemsApiClient = class extends CatalogItemsApi {
509
- constructor(configuration) {
510
- const { axios, endpoint } = (0, import_common2.createAxiosInstance)(configuration, clientRateLimits);
511
- super(new Configuration(), endpoint, axios);
512
- }
459
+ constructor(configuration) {
460
+ const { axios, endpoint } = (0, _sp_api_sdk_common.createAxiosInstance)(configuration, clientRateLimits);
461
+ super(new Configuration(), endpoint, axios);
462
+ }
513
463
  };
514
- // Annotate the CommonJS export names for ESM import in node:
515
- 0 && (module.exports = {
516
- CatalogItemsApi,
517
- CatalogItemsApiAxiosParamCreator,
518
- CatalogItemsApiClient,
519
- CatalogItemsApiFactory,
520
- CatalogItemsApiFp,
521
- GetCatalogItemIncludedDataEnum,
522
- ItemImageVariantEnum,
523
- ItemRelationshipTypeEnum,
524
- ItemSummaryByMarketplaceItemClassificationEnum,
525
- ItemVendorDetailsByMarketplaceReplenishmentCategoryEnum,
526
- SearchCatalogItemsIdentifiersTypeEnum,
527
- SearchCatalogItemsIncludedDataEnum,
528
- clientRateLimits
529
- });
464
+ //#endregion
465
+ exports.CatalogItemsApi = CatalogItemsApi;
466
+ exports.CatalogItemsApiAxiosParamCreator = CatalogItemsApiAxiosParamCreator;
467
+ exports.CatalogItemsApiClient = CatalogItemsApiClient;
468
+ exports.CatalogItemsApiFactory = CatalogItemsApiFactory;
469
+ exports.CatalogItemsApiFp = CatalogItemsApiFp;
470
+ exports.GetCatalogItemIncludedDataEnum = GetCatalogItemIncludedDataEnum;
471
+ exports.ItemImageVariantEnum = ItemImageVariantEnum;
472
+ exports.ItemRelationshipTypeEnum = ItemRelationshipTypeEnum;
473
+ exports.ItemSummaryByMarketplaceItemClassificationEnum = ItemSummaryByMarketplaceItemClassificationEnum;
474
+ exports.ItemVendorDetailsByMarketplaceReplenishmentCategoryEnum = ItemVendorDetailsByMarketplaceReplenishmentCategoryEnum;
475
+ exports.SearchCatalogItemsIdentifiersTypeEnum = SearchCatalogItemsIdentifiersTypeEnum;
476
+ exports.SearchCatalogItemsIncludedDataEnum = SearchCatalogItemsIncludedDataEnum;
477
+ exports.clientRateLimits = clientRateLimits;
478
+
530
479
  //# sourceMappingURL=index.cjs.map