@sp-api-sdk/catalog-items-api-v0 1.12.4 → 1.12.6
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.
|
@@ -28,7 +28,7 @@ const base_1 = require("../base");
|
|
|
28
28
|
const CatalogApiAxiosParamCreator = function (configuration) {
|
|
29
29
|
return {
|
|
30
30
|
/**
|
|
31
|
-
*
|
|
31
|
+
* Effective September 30, 2022, the `getCatalogItem` operation will no longer be available in the Selling Partner API for Catalog Items v0. This operation is available in the latest version of the [Selling Partner API for Catalog Items v2022-04-01](https://developer-docs.amazon.com/sp-api/docs/catalog-items-api-v2022-04-01-reference). Integrations that rely on this operation should migrate to the latest version to avoid service disruption. _Note:_ The [`listCatalogCategories`](#get-catalogv0categories) operation is not being deprecated and you can continue to make calls to it.
|
|
32
32
|
* @param {string} marketplaceId A marketplace identifier. Specifies the marketplace for the item.
|
|
33
33
|
* @param {string} asin The Amazon Standard Identification Number (ASIN) of the item.
|
|
34
34
|
* @param {*} [options] Override http request option.
|
|
@@ -100,7 +100,7 @@ const CatalogApiAxiosParamCreator = function (configuration) {
|
|
|
100
100
|
};
|
|
101
101
|
},
|
|
102
102
|
/**
|
|
103
|
-
*
|
|
103
|
+
* Effective September 30, 2022, the `listCatalogItems` operation will no longer be available in the Selling Partner API for Catalog Items v0. As an alternative, `searchCatalogItems` is available in the latest version of the [Selling Partner API for Catalog Items v2022-04-01](https://developer-docs.amazon.com/sp-api/docs/catalog-items-api-v2022-04-01-reference). Integrations that rely on the `listCatalogItems` operation should migrate to the `searchCatalogItems`operation to avoid service disruption. _Note:_ The [`listCatalogCategories`](#get-catalogv0categories) operation is not being deprecated and you can continue to make calls to it.
|
|
104
104
|
* @param {string} marketplaceId A marketplace identifier. Specifies the marketplace for which items are returned.
|
|
105
105
|
* @param {string} [query] Keyword(s) to use to search for items in the catalog. Example: \'harry potter books\'.
|
|
106
106
|
* @param {string} [queryContextId] An identifier for the context within which the given search will be performed. A marketplace might provide mechanisms for constraining a search to a subset of potential items. For example, the retail marketplace allows queries to be constrained to a specific category. The QueryContextId parameter specifies such a subset. If it is omitted, the search will be performed using the default context for the marketplace, which will typically contain the largest set of items.
|
|
@@ -168,7 +168,7 @@ const CatalogApiFp = function (configuration) {
|
|
|
168
168
|
const localVarAxiosParamCreator = (0, exports.CatalogApiAxiosParamCreator)(configuration);
|
|
169
169
|
return {
|
|
170
170
|
/**
|
|
171
|
-
*
|
|
171
|
+
* Effective September 30, 2022, the `getCatalogItem` operation will no longer be available in the Selling Partner API for Catalog Items v0. This operation is available in the latest version of the [Selling Partner API for Catalog Items v2022-04-01](https://developer-docs.amazon.com/sp-api/docs/catalog-items-api-v2022-04-01-reference). Integrations that rely on this operation should migrate to the latest version to avoid service disruption. _Note:_ The [`listCatalogCategories`](#get-catalogv0categories) operation is not being deprecated and you can continue to make calls to it.
|
|
172
172
|
* @param {string} marketplaceId A marketplace identifier. Specifies the marketplace for the item.
|
|
173
173
|
* @param {string} asin The Amazon Standard Identification Number (ASIN) of the item.
|
|
174
174
|
* @param {*} [options] Override http request option.
|
|
@@ -191,7 +191,7 @@ const CatalogApiFp = function (configuration) {
|
|
|
191
191
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
192
192
|
},
|
|
193
193
|
/**
|
|
194
|
-
*
|
|
194
|
+
* Effective September 30, 2022, the `listCatalogItems` operation will no longer be available in the Selling Partner API for Catalog Items v0. As an alternative, `searchCatalogItems` is available in the latest version of the [Selling Partner API for Catalog Items v2022-04-01](https://developer-docs.amazon.com/sp-api/docs/catalog-items-api-v2022-04-01-reference). Integrations that rely on the `listCatalogItems` operation should migrate to the `searchCatalogItems`operation to avoid service disruption. _Note:_ The [`listCatalogCategories`](#get-catalogv0categories) operation is not being deprecated and you can continue to make calls to it.
|
|
195
195
|
* @param {string} marketplaceId A marketplace identifier. Specifies the marketplace for which items are returned.
|
|
196
196
|
* @param {string} [query] Keyword(s) to use to search for items in the catalog. Example: \'harry potter books\'.
|
|
197
197
|
* @param {string} [queryContextId] An identifier for the context within which the given search will be performed. A marketplace might provide mechanisms for constraining a search to a subset of potential items. For example, the retail marketplace allows queries to be constrained to a specific category. The QueryContextId parameter specifies such a subset. If it is omitted, the search will be performed using the default context for the marketplace, which will typically contain the largest set of items.
|
|
@@ -218,7 +218,7 @@ const CatalogApiFactory = function (configuration, basePath, axios) {
|
|
|
218
218
|
const localVarFp = (0, exports.CatalogApiFp)(configuration);
|
|
219
219
|
return {
|
|
220
220
|
/**
|
|
221
|
-
*
|
|
221
|
+
* Effective September 30, 2022, the `getCatalogItem` operation will no longer be available in the Selling Partner API for Catalog Items v0. This operation is available in the latest version of the [Selling Partner API for Catalog Items v2022-04-01](https://developer-docs.amazon.com/sp-api/docs/catalog-items-api-v2022-04-01-reference). Integrations that rely on this operation should migrate to the latest version to avoid service disruption. _Note:_ The [`listCatalogCategories`](#get-catalogv0categories) operation is not being deprecated and you can continue to make calls to it.
|
|
222
222
|
* @param {string} marketplaceId A marketplace identifier. Specifies the marketplace for the item.
|
|
223
223
|
* @param {string} asin The Amazon Standard Identification Number (ASIN) of the item.
|
|
224
224
|
* @param {*} [options] Override http request option.
|
|
@@ -239,7 +239,7 @@ const CatalogApiFactory = function (configuration, basePath, axios) {
|
|
|
239
239
|
return localVarFp.listCatalogCategories(marketplaceId, aSIN, sellerSKU, options).then((request) => request(axios, basePath));
|
|
240
240
|
},
|
|
241
241
|
/**
|
|
242
|
-
*
|
|
242
|
+
* Effective September 30, 2022, the `listCatalogItems` operation will no longer be available in the Selling Partner API for Catalog Items v0. As an alternative, `searchCatalogItems` is available in the latest version of the [Selling Partner API for Catalog Items v2022-04-01](https://developer-docs.amazon.com/sp-api/docs/catalog-items-api-v2022-04-01-reference). Integrations that rely on the `listCatalogItems` operation should migrate to the `searchCatalogItems`operation to avoid service disruption. _Note:_ The [`listCatalogCategories`](#get-catalogv0categories) operation is not being deprecated and you can continue to make calls to it.
|
|
243
243
|
* @param {string} marketplaceId A marketplace identifier. Specifies the marketplace for which items are returned.
|
|
244
244
|
* @param {string} [query] Keyword(s) to use to search for items in the catalog. Example: \'harry potter books\'.
|
|
245
245
|
* @param {string} [queryContextId] An identifier for the context within which the given search will be performed. A marketplace might provide mechanisms for constraining a search to a subset of potential items. For example, the retail marketplace allows queries to be constrained to a specific category. The QueryContextId parameter specifies such a subset. If it is omitted, the search will be performed using the default context for the marketplace, which will typically contain the largest set of items.
|
|
@@ -265,7 +265,7 @@ exports.CatalogApiFactory = CatalogApiFactory;
|
|
|
265
265
|
*/
|
|
266
266
|
class CatalogApi extends base_1.BaseAPI {
|
|
267
267
|
/**
|
|
268
|
-
*
|
|
268
|
+
* Effective September 30, 2022, the `getCatalogItem` operation will no longer be available in the Selling Partner API for Catalog Items v0. This operation is available in the latest version of the [Selling Partner API for Catalog Items v2022-04-01](https://developer-docs.amazon.com/sp-api/docs/catalog-items-api-v2022-04-01-reference). Integrations that rely on this operation should migrate to the latest version to avoid service disruption. _Note:_ The [`listCatalogCategories`](#get-catalogv0categories) operation is not being deprecated and you can continue to make calls to it.
|
|
269
269
|
* @param {CatalogApiGetCatalogItemRequest} requestParameters Request parameters.
|
|
270
270
|
* @param {*} [options] Override http request option.
|
|
271
271
|
* @throws {RequiredError}
|
|
@@ -285,7 +285,7 @@ class CatalogApi extends base_1.BaseAPI {
|
|
|
285
285
|
return (0, exports.CatalogApiFp)(this.configuration).listCatalogCategories(requestParameters.marketplaceId, requestParameters.aSIN, requestParameters.sellerSKU, options).then((request) => request(this.axios, this.basePath));
|
|
286
286
|
}
|
|
287
287
|
/**
|
|
288
|
-
*
|
|
288
|
+
* Effective September 30, 2022, the `listCatalogItems` operation will no longer be available in the Selling Partner API for Catalog Items v0. As an alternative, `searchCatalogItems` is available in the latest version of the [Selling Partner API for Catalog Items v2022-04-01](https://developer-docs.amazon.com/sp-api/docs/catalog-items-api-v2022-04-01-reference). Integrations that rely on the `listCatalogItems` operation should migrate to the `searchCatalogItems`operation to avoid service disruption. _Note:_ The [`listCatalogCategories`](#get-catalogv0categories) operation is not being deprecated and you can continue to make calls to it.
|
|
289
289
|
* @param {CatalogApiListCatalogItemsRequest} requestParameters Request parameters.
|
|
290
290
|
* @param {*} [options] Override http request option.
|
|
291
291
|
* @throws {RequiredError}
|
|
@@ -80,25 +80,31 @@ const setOAuthToObject = async function (object, name, scopes, configuration) {
|
|
|
80
80
|
}
|
|
81
81
|
};
|
|
82
82
|
exports.setOAuthToObject = setOAuthToObject;
|
|
83
|
+
function setFlattenedQueryParams(urlSearchParams, parameter, key = "") {
|
|
84
|
+
if (typeof parameter === "object") {
|
|
85
|
+
if (Array.isArray(parameter)) {
|
|
86
|
+
parameter.forEach(item => setFlattenedQueryParams(urlSearchParams, item, key));
|
|
87
|
+
}
|
|
88
|
+
else {
|
|
89
|
+
Object.keys(parameter).forEach(currentKey => setFlattenedQueryParams(urlSearchParams, parameter[currentKey], `${key}${key !== '' ? '.' : ''}${currentKey}`));
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
else {
|
|
93
|
+
if (urlSearchParams.has(key)) {
|
|
94
|
+
urlSearchParams.append(key, parameter);
|
|
95
|
+
}
|
|
96
|
+
else {
|
|
97
|
+
urlSearchParams.set(key, parameter);
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
}
|
|
83
101
|
/**
|
|
84
102
|
*
|
|
85
103
|
* @export
|
|
86
104
|
*/
|
|
87
105
|
const setSearchParams = function (url, ...objects) {
|
|
88
106
|
const searchParams = new URLSearchParams(url.search);
|
|
89
|
-
|
|
90
|
-
for (const key in object) {
|
|
91
|
-
if (Array.isArray(object[key])) {
|
|
92
|
-
searchParams.delete(key);
|
|
93
|
-
for (const item of object[key]) {
|
|
94
|
-
searchParams.append(key, item);
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
else {
|
|
98
|
-
searchParams.set(key, object[key]);
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
}
|
|
107
|
+
setFlattenedQueryParams(searchParams, objects);
|
|
102
108
|
url.search = searchParams.toString();
|
|
103
109
|
};
|
|
104
110
|
exports.setSearchParams = setSearchParams;
|
|
@@ -24,7 +24,7 @@ import { BASE_PATH, BaseAPI } from '../base';
|
|
|
24
24
|
export const CatalogApiAxiosParamCreator = function (configuration) {
|
|
25
25
|
return {
|
|
26
26
|
/**
|
|
27
|
-
*
|
|
27
|
+
* Effective September 30, 2022, the `getCatalogItem` operation will no longer be available in the Selling Partner API for Catalog Items v0. This operation is available in the latest version of the [Selling Partner API for Catalog Items v2022-04-01](https://developer-docs.amazon.com/sp-api/docs/catalog-items-api-v2022-04-01-reference). Integrations that rely on this operation should migrate to the latest version to avoid service disruption. _Note:_ The [`listCatalogCategories`](#get-catalogv0categories) operation is not being deprecated and you can continue to make calls to it.
|
|
28
28
|
* @param {string} marketplaceId A marketplace identifier. Specifies the marketplace for the item.
|
|
29
29
|
* @param {string} asin The Amazon Standard Identification Number (ASIN) of the item.
|
|
30
30
|
* @param {*} [options] Override http request option.
|
|
@@ -96,7 +96,7 @@ export const CatalogApiAxiosParamCreator = function (configuration) {
|
|
|
96
96
|
};
|
|
97
97
|
},
|
|
98
98
|
/**
|
|
99
|
-
*
|
|
99
|
+
* Effective September 30, 2022, the `listCatalogItems` operation will no longer be available in the Selling Partner API for Catalog Items v0. As an alternative, `searchCatalogItems` is available in the latest version of the [Selling Partner API for Catalog Items v2022-04-01](https://developer-docs.amazon.com/sp-api/docs/catalog-items-api-v2022-04-01-reference). Integrations that rely on the `listCatalogItems` operation should migrate to the `searchCatalogItems`operation to avoid service disruption. _Note:_ The [`listCatalogCategories`](#get-catalogv0categories) operation is not being deprecated and you can continue to make calls to it.
|
|
100
100
|
* @param {string} marketplaceId A marketplace identifier. Specifies the marketplace for which items are returned.
|
|
101
101
|
* @param {string} [query] Keyword(s) to use to search for items in the catalog. Example: \'harry potter books\'.
|
|
102
102
|
* @param {string} [queryContextId] An identifier for the context within which the given search will be performed. A marketplace might provide mechanisms for constraining a search to a subset of potential items. For example, the retail marketplace allows queries to be constrained to a specific category. The QueryContextId parameter specifies such a subset. If it is omitted, the search will be performed using the default context for the marketplace, which will typically contain the largest set of items.
|
|
@@ -163,7 +163,7 @@ export const CatalogApiFp = function (configuration) {
|
|
|
163
163
|
const localVarAxiosParamCreator = CatalogApiAxiosParamCreator(configuration);
|
|
164
164
|
return {
|
|
165
165
|
/**
|
|
166
|
-
*
|
|
166
|
+
* Effective September 30, 2022, the `getCatalogItem` operation will no longer be available in the Selling Partner API for Catalog Items v0. This operation is available in the latest version of the [Selling Partner API for Catalog Items v2022-04-01](https://developer-docs.amazon.com/sp-api/docs/catalog-items-api-v2022-04-01-reference). Integrations that rely on this operation should migrate to the latest version to avoid service disruption. _Note:_ The [`listCatalogCategories`](#get-catalogv0categories) operation is not being deprecated and you can continue to make calls to it.
|
|
167
167
|
* @param {string} marketplaceId A marketplace identifier. Specifies the marketplace for the item.
|
|
168
168
|
* @param {string} asin The Amazon Standard Identification Number (ASIN) of the item.
|
|
169
169
|
* @param {*} [options] Override http request option.
|
|
@@ -186,7 +186,7 @@ export const CatalogApiFp = function (configuration) {
|
|
|
186
186
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
187
187
|
},
|
|
188
188
|
/**
|
|
189
|
-
*
|
|
189
|
+
* Effective September 30, 2022, the `listCatalogItems` operation will no longer be available in the Selling Partner API for Catalog Items v0. As an alternative, `searchCatalogItems` is available in the latest version of the [Selling Partner API for Catalog Items v2022-04-01](https://developer-docs.amazon.com/sp-api/docs/catalog-items-api-v2022-04-01-reference). Integrations that rely on the `listCatalogItems` operation should migrate to the `searchCatalogItems`operation to avoid service disruption. _Note:_ The [`listCatalogCategories`](#get-catalogv0categories) operation is not being deprecated and you can continue to make calls to it.
|
|
190
190
|
* @param {string} marketplaceId A marketplace identifier. Specifies the marketplace for which items are returned.
|
|
191
191
|
* @param {string} [query] Keyword(s) to use to search for items in the catalog. Example: \'harry potter books\'.
|
|
192
192
|
* @param {string} [queryContextId] An identifier for the context within which the given search will be performed. A marketplace might provide mechanisms for constraining a search to a subset of potential items. For example, the retail marketplace allows queries to be constrained to a specific category. The QueryContextId parameter specifies such a subset. If it is omitted, the search will be performed using the default context for the marketplace, which will typically contain the largest set of items.
|
|
@@ -212,7 +212,7 @@ export const CatalogApiFactory = function (configuration, basePath, axios) {
|
|
|
212
212
|
const localVarFp = CatalogApiFp(configuration);
|
|
213
213
|
return {
|
|
214
214
|
/**
|
|
215
|
-
*
|
|
215
|
+
* Effective September 30, 2022, the `getCatalogItem` operation will no longer be available in the Selling Partner API for Catalog Items v0. This operation is available in the latest version of the [Selling Partner API for Catalog Items v2022-04-01](https://developer-docs.amazon.com/sp-api/docs/catalog-items-api-v2022-04-01-reference). Integrations that rely on this operation should migrate to the latest version to avoid service disruption. _Note:_ The [`listCatalogCategories`](#get-catalogv0categories) operation is not being deprecated and you can continue to make calls to it.
|
|
216
216
|
* @param {string} marketplaceId A marketplace identifier. Specifies the marketplace for the item.
|
|
217
217
|
* @param {string} asin The Amazon Standard Identification Number (ASIN) of the item.
|
|
218
218
|
* @param {*} [options] Override http request option.
|
|
@@ -233,7 +233,7 @@ export const CatalogApiFactory = function (configuration, basePath, axios) {
|
|
|
233
233
|
return localVarFp.listCatalogCategories(marketplaceId, aSIN, sellerSKU, options).then((request) => request(axios, basePath));
|
|
234
234
|
},
|
|
235
235
|
/**
|
|
236
|
-
*
|
|
236
|
+
* Effective September 30, 2022, the `listCatalogItems` operation will no longer be available in the Selling Partner API for Catalog Items v0. As an alternative, `searchCatalogItems` is available in the latest version of the [Selling Partner API for Catalog Items v2022-04-01](https://developer-docs.amazon.com/sp-api/docs/catalog-items-api-v2022-04-01-reference). Integrations that rely on the `listCatalogItems` operation should migrate to the `searchCatalogItems`operation to avoid service disruption. _Note:_ The [`listCatalogCategories`](#get-catalogv0categories) operation is not being deprecated and you can continue to make calls to it.
|
|
237
237
|
* @param {string} marketplaceId A marketplace identifier. Specifies the marketplace for which items are returned.
|
|
238
238
|
* @param {string} [query] Keyword(s) to use to search for items in the catalog. Example: \'harry potter books\'.
|
|
239
239
|
* @param {string} [queryContextId] An identifier for the context within which the given search will be performed. A marketplace might provide mechanisms for constraining a search to a subset of potential items. For example, the retail marketplace allows queries to be constrained to a specific category. The QueryContextId parameter specifies such a subset. If it is omitted, the search will be performed using the default context for the marketplace, which will typically contain the largest set of items.
|
|
@@ -258,7 +258,7 @@ export const CatalogApiFactory = function (configuration, basePath, axios) {
|
|
|
258
258
|
*/
|
|
259
259
|
export class CatalogApi extends BaseAPI {
|
|
260
260
|
/**
|
|
261
|
-
*
|
|
261
|
+
* Effective September 30, 2022, the `getCatalogItem` operation will no longer be available in the Selling Partner API for Catalog Items v0. This operation is available in the latest version of the [Selling Partner API for Catalog Items v2022-04-01](https://developer-docs.amazon.com/sp-api/docs/catalog-items-api-v2022-04-01-reference). Integrations that rely on this operation should migrate to the latest version to avoid service disruption. _Note:_ The [`listCatalogCategories`](#get-catalogv0categories) operation is not being deprecated and you can continue to make calls to it.
|
|
262
262
|
* @param {CatalogApiGetCatalogItemRequest} requestParameters Request parameters.
|
|
263
263
|
* @param {*} [options] Override http request option.
|
|
264
264
|
* @throws {RequiredError}
|
|
@@ -278,7 +278,7 @@ export class CatalogApi extends BaseAPI {
|
|
|
278
278
|
return CatalogApiFp(this.configuration).listCatalogCategories(requestParameters.marketplaceId, requestParameters.aSIN, requestParameters.sellerSKU, options).then((request) => request(this.axios, this.basePath));
|
|
279
279
|
}
|
|
280
280
|
/**
|
|
281
|
-
*
|
|
281
|
+
* Effective September 30, 2022, the `listCatalogItems` operation will no longer be available in the Selling Partner API for Catalog Items v0. As an alternative, `searchCatalogItems` is available in the latest version of the [Selling Partner API for Catalog Items v2022-04-01](https://developer-docs.amazon.com/sp-api/docs/catalog-items-api-v2022-04-01-reference). Integrations that rely on the `listCatalogItems` operation should migrate to the `searchCatalogItems`operation to avoid service disruption. _Note:_ The [`listCatalogCategories`](#get-catalogv0categories) operation is not being deprecated and you can continue to make calls to it.
|
|
282
282
|
* @param {CatalogApiListCatalogItemsRequest} requestParameters Request parameters.
|
|
283
283
|
* @param {*} [options] Override http request option.
|
|
284
284
|
* @throws {RequiredError}
|
|
@@ -72,25 +72,31 @@ export const setOAuthToObject = async function (object, name, scopes, configurat
|
|
|
72
72
|
object["Authorization"] = "Bearer " + localVarAccessTokenValue;
|
|
73
73
|
}
|
|
74
74
|
};
|
|
75
|
+
function setFlattenedQueryParams(urlSearchParams, parameter, key = "") {
|
|
76
|
+
if (typeof parameter === "object") {
|
|
77
|
+
if (Array.isArray(parameter)) {
|
|
78
|
+
parameter.forEach(item => setFlattenedQueryParams(urlSearchParams, item, key));
|
|
79
|
+
}
|
|
80
|
+
else {
|
|
81
|
+
Object.keys(parameter).forEach(currentKey => setFlattenedQueryParams(urlSearchParams, parameter[currentKey], `${key}${key !== '' ? '.' : ''}${currentKey}`));
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
else {
|
|
85
|
+
if (urlSearchParams.has(key)) {
|
|
86
|
+
urlSearchParams.append(key, parameter);
|
|
87
|
+
}
|
|
88
|
+
else {
|
|
89
|
+
urlSearchParams.set(key, parameter);
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
}
|
|
75
93
|
/**
|
|
76
94
|
*
|
|
77
95
|
* @export
|
|
78
96
|
*/
|
|
79
97
|
export const setSearchParams = function (url, ...objects) {
|
|
80
98
|
const searchParams = new URLSearchParams(url.search);
|
|
81
|
-
|
|
82
|
-
for (const key in object) {
|
|
83
|
-
if (Array.isArray(object[key])) {
|
|
84
|
-
searchParams.delete(key);
|
|
85
|
-
for (const item of object[key]) {
|
|
86
|
-
searchParams.append(key, item);
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
else {
|
|
90
|
-
searchParams.set(key, object[key]);
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
}
|
|
99
|
+
setFlattenedQueryParams(searchParams, objects);
|
|
94
100
|
url.search = searchParams.toString();
|
|
95
101
|
};
|
|
96
102
|
/**
|
|
@@ -21,7 +21,7 @@ import { ListCatalogItemsResponse } from '../models';
|
|
|
21
21
|
*/
|
|
22
22
|
export declare const CatalogApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
23
23
|
/**
|
|
24
|
-
*
|
|
24
|
+
* Effective September 30, 2022, the `getCatalogItem` operation will no longer be available in the Selling Partner API for Catalog Items v0. This operation is available in the latest version of the [Selling Partner API for Catalog Items v2022-04-01](https://developer-docs.amazon.com/sp-api/docs/catalog-items-api-v2022-04-01-reference). Integrations that rely on this operation should migrate to the latest version to avoid service disruption. _Note:_ The [`listCatalogCategories`](#get-catalogv0categories) operation is not being deprecated and you can continue to make calls to it.
|
|
25
25
|
* @param {string} marketplaceId A marketplace identifier. Specifies the marketplace for the item.
|
|
26
26
|
* @param {string} asin The Amazon Standard Identification Number (ASIN) of the item.
|
|
27
27
|
* @param {*} [options] Override http request option.
|
|
@@ -38,7 +38,7 @@ export declare const CatalogApiAxiosParamCreator: (configuration?: Configuration
|
|
|
38
38
|
*/
|
|
39
39
|
listCatalogCategories: (marketplaceId: string, aSIN?: string, sellerSKU?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
40
40
|
/**
|
|
41
|
-
*
|
|
41
|
+
* Effective September 30, 2022, the `listCatalogItems` operation will no longer be available in the Selling Partner API for Catalog Items v0. As an alternative, `searchCatalogItems` is available in the latest version of the [Selling Partner API for Catalog Items v2022-04-01](https://developer-docs.amazon.com/sp-api/docs/catalog-items-api-v2022-04-01-reference). Integrations that rely on the `listCatalogItems` operation should migrate to the `searchCatalogItems`operation to avoid service disruption. _Note:_ The [`listCatalogCategories`](#get-catalogv0categories) operation is not being deprecated and you can continue to make calls to it.
|
|
42
42
|
* @param {string} marketplaceId A marketplace identifier. Specifies the marketplace for which items are returned.
|
|
43
43
|
* @param {string} [query] Keyword(s) to use to search for items in the catalog. Example: \'harry potter books\'.
|
|
44
44
|
* @param {string} [queryContextId] An identifier for the context within which the given search will be performed. A marketplace might provide mechanisms for constraining a search to a subset of potential items. For example, the retail marketplace allows queries to be constrained to a specific category. The QueryContextId parameter specifies such a subset. If it is omitted, the search will be performed using the default context for the marketplace, which will typically contain the largest set of items.
|
|
@@ -58,7 +58,7 @@ export declare const CatalogApiAxiosParamCreator: (configuration?: Configuration
|
|
|
58
58
|
*/
|
|
59
59
|
export declare const CatalogApiFp: (configuration?: Configuration) => {
|
|
60
60
|
/**
|
|
61
|
-
*
|
|
61
|
+
* Effective September 30, 2022, the `getCatalogItem` operation will no longer be available in the Selling Partner API for Catalog Items v0. This operation is available in the latest version of the [Selling Partner API for Catalog Items v2022-04-01](https://developer-docs.amazon.com/sp-api/docs/catalog-items-api-v2022-04-01-reference). Integrations that rely on this operation should migrate to the latest version to avoid service disruption. _Note:_ The [`listCatalogCategories`](#get-catalogv0categories) operation is not being deprecated and you can continue to make calls to it.
|
|
62
62
|
* @param {string} marketplaceId A marketplace identifier. Specifies the marketplace for the item.
|
|
63
63
|
* @param {string} asin The Amazon Standard Identification Number (ASIN) of the item.
|
|
64
64
|
* @param {*} [options] Override http request option.
|
|
@@ -75,7 +75,7 @@ export declare const CatalogApiFp: (configuration?: Configuration) => {
|
|
|
75
75
|
*/
|
|
76
76
|
listCatalogCategories(marketplaceId: string, aSIN?: string, sellerSKU?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListCatalogCategoriesResponse>>;
|
|
77
77
|
/**
|
|
78
|
-
*
|
|
78
|
+
* Effective September 30, 2022, the `listCatalogItems` operation will no longer be available in the Selling Partner API for Catalog Items v0. As an alternative, `searchCatalogItems` is available in the latest version of the [Selling Partner API for Catalog Items v2022-04-01](https://developer-docs.amazon.com/sp-api/docs/catalog-items-api-v2022-04-01-reference). Integrations that rely on the `listCatalogItems` operation should migrate to the `searchCatalogItems`operation to avoid service disruption. _Note:_ The [`listCatalogCategories`](#get-catalogv0categories) operation is not being deprecated and you can continue to make calls to it.
|
|
79
79
|
* @param {string} marketplaceId A marketplace identifier. Specifies the marketplace for which items are returned.
|
|
80
80
|
* @param {string} [query] Keyword(s) to use to search for items in the catalog. Example: \'harry potter books\'.
|
|
81
81
|
* @param {string} [queryContextId] An identifier for the context within which the given search will be performed. A marketplace might provide mechanisms for constraining a search to a subset of potential items. For example, the retail marketplace allows queries to be constrained to a specific category. The QueryContextId parameter specifies such a subset. If it is omitted, the search will be performed using the default context for the marketplace, which will typically contain the largest set of items.
|
|
@@ -95,7 +95,7 @@ export declare const CatalogApiFp: (configuration?: Configuration) => {
|
|
|
95
95
|
*/
|
|
96
96
|
export declare const CatalogApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
97
97
|
/**
|
|
98
|
-
*
|
|
98
|
+
* Effective September 30, 2022, the `getCatalogItem` operation will no longer be available in the Selling Partner API for Catalog Items v0. This operation is available in the latest version of the [Selling Partner API for Catalog Items v2022-04-01](https://developer-docs.amazon.com/sp-api/docs/catalog-items-api-v2022-04-01-reference). Integrations that rely on this operation should migrate to the latest version to avoid service disruption. _Note:_ The [`listCatalogCategories`](#get-catalogv0categories) operation is not being deprecated and you can continue to make calls to it.
|
|
99
99
|
* @param {string} marketplaceId A marketplace identifier. Specifies the marketplace for the item.
|
|
100
100
|
* @param {string} asin The Amazon Standard Identification Number (ASIN) of the item.
|
|
101
101
|
* @param {*} [options] Override http request option.
|
|
@@ -112,7 +112,7 @@ export declare const CatalogApiFactory: (configuration?: Configuration, basePath
|
|
|
112
112
|
*/
|
|
113
113
|
listCatalogCategories(marketplaceId: string, aSIN?: string, sellerSKU?: string, options?: any): AxiosPromise<ListCatalogCategoriesResponse>;
|
|
114
114
|
/**
|
|
115
|
-
*
|
|
115
|
+
* Effective September 30, 2022, the `listCatalogItems` operation will no longer be available in the Selling Partner API for Catalog Items v0. As an alternative, `searchCatalogItems` is available in the latest version of the [Selling Partner API for Catalog Items v2022-04-01](https://developer-docs.amazon.com/sp-api/docs/catalog-items-api-v2022-04-01-reference). Integrations that rely on the `listCatalogItems` operation should migrate to the `searchCatalogItems`operation to avoid service disruption. _Note:_ The [`listCatalogCategories`](#get-catalogv0categories) operation is not being deprecated and you can continue to make calls to it.
|
|
116
116
|
* @param {string} marketplaceId A marketplace identifier. Specifies the marketplace for which items are returned.
|
|
117
117
|
* @param {string} [query] Keyword(s) to use to search for items in the catalog. Example: \'harry potter books\'.
|
|
118
118
|
* @param {string} [queryContextId] An identifier for the context within which the given search will be performed. A marketplace might provide mechanisms for constraining a search to a subset of potential items. For example, the retail marketplace allows queries to be constrained to a specific category. The QueryContextId parameter specifies such a subset. If it is omitted, the search will be performed using the default context for the marketplace, which will typically contain the largest set of items.
|
|
@@ -233,7 +233,7 @@ export interface CatalogApiListCatalogItemsRequest {
|
|
|
233
233
|
*/
|
|
234
234
|
export declare class CatalogApi extends BaseAPI {
|
|
235
235
|
/**
|
|
236
|
-
*
|
|
236
|
+
* Effective September 30, 2022, the `getCatalogItem` operation will no longer be available in the Selling Partner API for Catalog Items v0. This operation is available in the latest version of the [Selling Partner API for Catalog Items v2022-04-01](https://developer-docs.amazon.com/sp-api/docs/catalog-items-api-v2022-04-01-reference). Integrations that rely on this operation should migrate to the latest version to avoid service disruption. _Note:_ The [`listCatalogCategories`](#get-catalogv0categories) operation is not being deprecated and you can continue to make calls to it.
|
|
237
237
|
* @param {CatalogApiGetCatalogItemRequest} requestParameters Request parameters.
|
|
238
238
|
* @param {*} [options] Override http request option.
|
|
239
239
|
* @throws {RequiredError}
|
|
@@ -249,7 +249,7 @@ export declare class CatalogApi extends BaseAPI {
|
|
|
249
249
|
*/
|
|
250
250
|
listCatalogCategories(requestParameters: CatalogApiListCatalogCategoriesRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListCatalogCategoriesResponse, any>>;
|
|
251
251
|
/**
|
|
252
|
-
*
|
|
252
|
+
* Effective September 30, 2022, the `listCatalogItems` operation will no longer be available in the Selling Partner API for Catalog Items v0. As an alternative, `searchCatalogItems` is available in the latest version of the [Selling Partner API for Catalog Items v2022-04-01](https://developer-docs.amazon.com/sp-api/docs/catalog-items-api-v2022-04-01-reference). Integrations that rely on the `listCatalogItems` operation should migrate to the `searchCatalogItems`operation to avoid service disruption. _Note:_ The [`listCatalogCategories`](#get-catalogv0categories) operation is not being deprecated and you can continue to make calls to it.
|
|
253
253
|
* @param {CatalogApiListCatalogItemsRequest} requestParameters Request parameters.
|
|
254
254
|
* @param {*} [options] Override http request option.
|
|
255
255
|
* @throws {RequiredError}
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@sp-api-sdk/catalog-items-api-v0",
|
|
3
3
|
"author": "Vincent Mesquita <vincent.mesquita@bizon.solutions>",
|
|
4
4
|
"description": "The Selling Partner API for Catalog Items helps you programmatically retrieve item details for items in the catalog.",
|
|
5
|
-
"version": "1.12.
|
|
5
|
+
"version": "1.12.6",
|
|
6
6
|
"main": "dist/cjs/index.js",
|
|
7
7
|
"module": "dist/es/index.js",
|
|
8
8
|
"types": "dist/types/index.d.ts",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"test": "jest"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@sp-api-sdk/common": "^1.9.
|
|
29
|
+
"@sp-api-sdk/common": "^1.9.18",
|
|
30
30
|
"axios": "^0.27.2"
|
|
31
31
|
},
|
|
32
32
|
"repository": {
|
|
@@ -51,5 +51,5 @@
|
|
|
51
51
|
"typedoc": {
|
|
52
52
|
"entryPoint": "./index.ts"
|
|
53
53
|
},
|
|
54
|
-
"gitHead": "
|
|
54
|
+
"gitHead": "59d4ae523f7261bbee380ef3bd43a368266a55a6"
|
|
55
55
|
}
|