@sp-api-sdk/catalog-items-api-2022-04-01 5.0.0 → 5.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -4
- package/dist/index.cjs +443 -494
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +747 -895
- package/dist/index.d.ts +747 -895
- package/dist/index.js +413 -451
- package/dist/index.js.map +1 -1
- package/package.json +7 -4
package/dist/index.cjs
CHANGED
|
@@ -1,530 +1,479 @@
|
|
|
1
|
-
"
|
|
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
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
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
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
)
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
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
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
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
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
49
|
+
field;
|
|
50
|
+
constructor(field, msg) {
|
|
51
|
+
super(msg);
|
|
52
|
+
this.field = field;
|
|
53
|
+
this.name = "RequiredError";
|
|
54
|
+
}
|
|
84
55
|
};
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
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
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
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
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
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
|
-
|
|
118
|
-
|
|
79
|
+
const toPathString = function(url) {
|
|
80
|
+
return url.pathname + url.search + url.hash;
|
|
119
81
|
};
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
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
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
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 `identifiers` and `keywords` in the same request.
|
|
141
|
+
* @param {SearchCatalogItemsIdentifiersTypeEnum} [identifiersType] The type of product identifiers that you can use to search the Amazon catalog. **Note:** `identifiersType` is required when `identifiers` 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 `identifiersType` is `SKU`.
|
|
145
|
+
* @param {Array<string>} [keywords] A comma-delimited list of keywords that you can use to search the Amazon catalog. **Note:** You cannot include `keywords` and `identifiers` 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 `keywords`. **Note:** Cannot be used with `identifiers`.
|
|
147
|
+
* @param {Array<string>} [classificationIds] A comma-delimited list of classification identifiers that you can use to limit the search in queries based on `keywords`. **Note:** Cannot be used with `identifiers`.
|
|
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 `keywords`. Defaults to the primary locale of the marketplace. **Note:** Cannot be used with `identifiers`.
|
|
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
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
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 `identifiers` and `keywords` in the same request.
|
|
218
|
+
* @param {SearchCatalogItemsIdentifiersTypeEnum} [identifiersType] The type of product identifiers that you can use to search the Amazon catalog. **Note:** `identifiersType` is required when `identifiers` 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 `identifiersType` is `SKU`.
|
|
222
|
+
* @param {Array<string>} [keywords] A comma-delimited list of keywords that you can use to search the Amazon catalog. **Note:** You cannot include `keywords` and `identifiers` 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 `keywords`. **Note:** Cannot be used with `identifiers`.
|
|
224
|
+
* @param {Array<string>} [classificationIds] A comma-delimited list of classification identifiers that you can use to limit the search in queries based on `keywords`. **Note:** Cannot be used with `identifiers`.
|
|
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 `keywords`. Defaults to the primary locale of the marketplace. **Note:** Cannot be used with `identifiers`.
|
|
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
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
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
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
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
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
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
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
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
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
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
|
-
|
|
322
|
+
//#endregion
|
|
323
|
+
//#region src/api-model/configuration.ts
|
|
366
324
|
var Configuration = class {
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
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
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
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
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
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
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
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
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
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
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
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
|
-
|
|
510
|
-
|
|
511
|
-
|
|
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
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
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
|