@sp-api-sdk/catalog-items-api-v0 2.0.6 → 2.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.
@@ -178,7 +178,9 @@ const CatalogApiFp = function (configuration) {
178
178
  */
179
179
  async getCatalogItem(marketplaceId, asin, options) {
180
180
  const localVarAxiosArgs = await localVarAxiosParamCreator.getCatalogItem(marketplaceId, asin, options);
181
- return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
181
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
182
+ const localVarOperationServerBasePath = base_1.operationServerMap['CatalogApi.getCatalogItem']?.[localVarOperationServerIndex]?.url;
183
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
182
184
  },
183
185
  /**
184
186
  * Returns the parent categories to which an item belongs, based on the specified ASIN or SellerSKU. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 2 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
@@ -190,7 +192,9 @@ const CatalogApiFp = function (configuration) {
190
192
  */
191
193
  async listCatalogCategories(marketplaceId, aSIN, sellerSKU, options) {
192
194
  const localVarAxiosArgs = await localVarAxiosParamCreator.listCatalogCategories(marketplaceId, aSIN, sellerSKU, options);
193
- return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
195
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
196
+ const localVarOperationServerBasePath = base_1.operationServerMap['CatalogApi.listCatalogCategories']?.[localVarOperationServerIndex]?.url;
197
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
194
198
  },
195
199
  /**
196
200
  * 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.
@@ -207,7 +211,9 @@ const CatalogApiFp = function (configuration) {
207
211
  */
208
212
  async listCatalogItems(marketplaceId, query, queryContextId, sellerSKU, uPC, eAN, iSBN, jAN, options) {
209
213
  const localVarAxiosArgs = await localVarAxiosParamCreator.listCatalogItems(marketplaceId, query, queryContextId, sellerSKU, uPC, eAN, iSBN, jAN, options);
210
- return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
214
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
215
+ const localVarOperationServerBasePath = base_1.operationServerMap['CatalogApi.listCatalogItems']?.[localVarOperationServerIndex]?.url;
216
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
211
217
  },
212
218
  };
213
219
  };
@@ -16,7 +16,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
16
16
  return (mod && mod.__esModule) ? mod : { "default": mod };
17
17
  };
18
18
  Object.defineProperty(exports, "__esModule", { value: true });
19
- exports.RequiredError = exports.BaseAPI = exports.COLLECTION_FORMATS = exports.BASE_PATH = void 0;
19
+ exports.operationServerMap = exports.RequiredError = exports.BaseAPI = exports.COLLECTION_FORMATS = exports.BASE_PATH = void 0;
20
20
  const axios_1 = __importDefault(require("axios"));
21
21
  exports.BASE_PATH = "https://sellingpartnerapi-na.amazon.com".replace(/\/+$/, "");
22
22
  /**
@@ -43,7 +43,7 @@ class BaseAPI {
43
43
  this.axios = axios;
44
44
  if (configuration) {
45
45
  this.configuration = configuration;
46
- this.basePath = configuration.basePath || this.basePath;
46
+ this.basePath = configuration.basePath ?? basePath;
47
47
  }
48
48
  }
49
49
  }
@@ -64,3 +64,8 @@ class RequiredError extends Error {
64
64
  }
65
65
  }
66
66
  exports.RequiredError = RequiredError;
67
+ /**
68
+ *
69
+ * @export
70
+ */
71
+ exports.operationServerMap = {};
@@ -138,7 +138,7 @@ exports.toPathString = toPathString;
138
138
  */
139
139
  const createRequestFunction = function (axiosArgs, globalAxios, BASE_PATH, configuration) {
140
140
  return (axios = globalAxios, basePath = BASE_PATH) => {
141
- const axiosRequestArgs = { ...axiosArgs.options, url: (configuration?.basePath || basePath) + axiosArgs.url };
141
+ const axiosRequestArgs = { ...axiosArgs.options, url: (axios.defaults.baseURL ? '' : configuration?.basePath ?? basePath) + axiosArgs.url };
142
142
  return axios.request(axiosRequestArgs);
143
143
  };
144
144
  };
@@ -49,6 +49,13 @@ class Configuration {
49
49
  * @memberof Configuration
50
50
  */
51
51
  basePath;
52
+ /**
53
+ * override server index
54
+ *
55
+ * @type {number}
56
+ * @memberof Configuration
57
+ */
58
+ serverIndex;
52
59
  /**
53
60
  * base options for axios calls
54
61
  *
@@ -70,6 +77,7 @@ class Configuration {
70
77
  this.password = param.password;
71
78
  this.accessToken = param.accessToken;
72
79
  this.basePath = param.basePath;
80
+ this.serverIndex = param.serverIndex;
73
81
  this.baseOptions = param.baseOptions;
74
82
  this.formDataCtor = param.formDataCtor;
75
83
  }
@@ -16,7 +16,7 @@ import globalAxios from 'axios';
16
16
  // @ts-ignore
17
17
  import { DUMMY_BASE_URL, assertParamExists, setSearchParams, toPathString, createRequestFunction } from '../common';
18
18
  // @ts-ignore
19
- import { BASE_PATH, BaseAPI } from '../base';
19
+ import { BASE_PATH, BaseAPI, operationServerMap } from '../base';
20
20
  /**
21
21
  * CatalogApi - axios parameter creator
22
22
  * @export
@@ -171,7 +171,9 @@ export const CatalogApiFp = function (configuration) {
171
171
  */
172
172
  async getCatalogItem(marketplaceId, asin, options) {
173
173
  const localVarAxiosArgs = await localVarAxiosParamCreator.getCatalogItem(marketplaceId, asin, options);
174
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
174
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
175
+ const localVarOperationServerBasePath = operationServerMap['CatalogApi.getCatalogItem']?.[localVarOperationServerIndex]?.url;
176
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
175
177
  },
176
178
  /**
177
179
  * Returns the parent categories to which an item belongs, based on the specified ASIN or SellerSKU. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 2 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
@@ -183,7 +185,9 @@ export const CatalogApiFp = function (configuration) {
183
185
  */
184
186
  async listCatalogCategories(marketplaceId, aSIN, sellerSKU, options) {
185
187
  const localVarAxiosArgs = await localVarAxiosParamCreator.listCatalogCategories(marketplaceId, aSIN, sellerSKU, options);
186
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
188
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
189
+ const localVarOperationServerBasePath = operationServerMap['CatalogApi.listCatalogCategories']?.[localVarOperationServerIndex]?.url;
190
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
187
191
  },
188
192
  /**
189
193
  * 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.
@@ -200,7 +204,9 @@ export const CatalogApiFp = function (configuration) {
200
204
  */
201
205
  async listCatalogItems(marketplaceId, query, queryContextId, sellerSKU, uPC, eAN, iSBN, jAN, options) {
202
206
  const localVarAxiosArgs = await localVarAxiosParamCreator.listCatalogItems(marketplaceId, query, queryContextId, sellerSKU, uPC, eAN, iSBN, jAN, options);
203
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
207
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
208
+ const localVarOperationServerBasePath = operationServerMap['CatalogApi.listCatalogItems']?.[localVarOperationServerIndex]?.url;
209
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
204
210
  },
205
211
  };
206
212
  };
@@ -37,7 +37,7 @@ export class BaseAPI {
37
37
  this.axios = axios;
38
38
  if (configuration) {
39
39
  this.configuration = configuration;
40
- this.basePath = configuration.basePath || this.basePath;
40
+ this.basePath = configuration.basePath ?? basePath;
41
41
  }
42
42
  }
43
43
  }
@@ -56,3 +56,8 @@ export class RequiredError extends Error {
56
56
  this.name = "RequiredError";
57
57
  }
58
58
  }
59
+ /**
60
+ *
61
+ * @export
62
+ */
63
+ export const operationServerMap = {};
@@ -127,7 +127,7 @@ export const toPathString = function (url) {
127
127
  */
128
128
  export const createRequestFunction = function (axiosArgs, globalAxios, BASE_PATH, configuration) {
129
129
  return (axios = globalAxios, basePath = BASE_PATH) => {
130
- const axiosRequestArgs = { ...axiosArgs.options, url: (configuration?.basePath || basePath) + axiosArgs.url };
130
+ const axiosRequestArgs = { ...axiosArgs.options, url: (axios.defaults.baseURL ? '' : configuration?.basePath ?? basePath) + axiosArgs.url };
131
131
  return axios.request(axiosRequestArgs);
132
132
  };
133
133
  };
@@ -46,6 +46,13 @@ export class Configuration {
46
46
  * @memberof Configuration
47
47
  */
48
48
  basePath;
49
+ /**
50
+ * override server index
51
+ *
52
+ * @type {number}
53
+ * @memberof Configuration
54
+ */
55
+ serverIndex;
49
56
  /**
50
57
  * base options for axios calls
51
58
  *
@@ -67,6 +74,7 @@ export class Configuration {
67
74
  this.password = param.password;
68
75
  this.accessToken = param.accessToken;
69
76
  this.basePath = param.basePath;
77
+ this.serverIndex = param.serverIndex;
70
78
  this.baseOptions = param.baseOptions;
71
79
  this.formDataCtor = param.formDataCtor;
72
80
  }
@@ -10,12 +10,12 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import type { Configuration } from '../configuration';
13
- import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
13
+ import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
14
14
  import globalAxios from 'axios';
15
- import { RequestArgs, BaseAPI } from '../base';
16
- import { GetCatalogItemResponse } from '../models';
17
- import { ListCatalogCategoriesResponse } from '../models';
18
- import { ListCatalogItemsResponse } from '../models';
15
+ import { type RequestArgs, BaseAPI } from '../base';
16
+ import type { GetCatalogItemResponse } from '../models';
17
+ import type { ListCatalogCategoriesResponse } from '../models';
18
+ import type { ListCatalogItemsResponse } from '../models';
19
19
  /**
20
20
  * CatalogApi - axios parameter creator
21
21
  * @export
@@ -28,7 +28,7 @@ export declare const CatalogApiAxiosParamCreator: (configuration?: Configuration
28
28
  * @param {*} [options] Override http request option.
29
29
  * @throws {RequiredError}
30
30
  */
31
- getCatalogItem: (marketplaceId: string, asin: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
31
+ getCatalogItem: (marketplaceId: string, asin: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
32
32
  /**
33
33
  * Returns the parent categories to which an item belongs, based on the specified ASIN or SellerSKU. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 2 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
34
34
  * @param {string} marketplaceId A marketplace identifier. Specifies the marketplace for the item.
@@ -37,7 +37,7 @@ export declare const CatalogApiAxiosParamCreator: (configuration?: Configuration
37
37
  * @param {*} [options] Override http request option.
38
38
  * @throws {RequiredError}
39
39
  */
40
- listCatalogCategories: (marketplaceId: string, aSIN?: string, sellerSKU?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
40
+ listCatalogCategories: (marketplaceId: string, aSIN?: string, sellerSKU?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
41
41
  /**
42
42
  * 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.
43
43
  * @param {string} marketplaceId A marketplace identifier. Specifies the marketplace for which items are returned.
@@ -51,7 +51,7 @@ export declare const CatalogApiAxiosParamCreator: (configuration?: Configuration
51
51
  * @param {*} [options] Override http request option.
52
52
  * @throws {RequiredError}
53
53
  */
54
- listCatalogItems: (marketplaceId: string, query?: string, queryContextId?: string, sellerSKU?: string, uPC?: string, eAN?: string, iSBN?: string, jAN?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
54
+ listCatalogItems: (marketplaceId: string, query?: string, queryContextId?: string, sellerSKU?: string, uPC?: string, eAN?: string, iSBN?: string, jAN?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
55
55
  };
56
56
  /**
57
57
  * CatalogApi - functional programming interface
@@ -65,7 +65,7 @@ export declare const CatalogApiFp: (configuration?: Configuration) => {
65
65
  * @param {*} [options] Override http request option.
66
66
  * @throws {RequiredError}
67
67
  */
68
- getCatalogItem(marketplaceId: string, asin: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetCatalogItemResponse>>;
68
+ getCatalogItem(marketplaceId: string, asin: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetCatalogItemResponse>>;
69
69
  /**
70
70
  * Returns the parent categories to which an item belongs, based on the specified ASIN or SellerSKU. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 2 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
71
71
  * @param {string} marketplaceId A marketplace identifier. Specifies the marketplace for the item.
@@ -74,7 +74,7 @@ export declare const CatalogApiFp: (configuration?: Configuration) => {
74
74
  * @param {*} [options] Override http request option.
75
75
  * @throws {RequiredError}
76
76
  */
77
- listCatalogCategories(marketplaceId: string, aSIN?: string, sellerSKU?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListCatalogCategoriesResponse>>;
77
+ listCatalogCategories(marketplaceId: string, aSIN?: string, sellerSKU?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListCatalogCategoriesResponse>>;
78
78
  /**
79
79
  * 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.
80
80
  * @param {string} marketplaceId A marketplace identifier. Specifies the marketplace for which items are returned.
@@ -88,7 +88,7 @@ export declare const CatalogApiFp: (configuration?: Configuration) => {
88
88
  * @param {*} [options] Override http request option.
89
89
  * @throws {RequiredError}
90
90
  */
91
- listCatalogItems(marketplaceId: string, query?: string, queryContextId?: string, sellerSKU?: string, uPC?: string, eAN?: string, iSBN?: string, jAN?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListCatalogItemsResponse>>;
91
+ listCatalogItems(marketplaceId: string, query?: string, queryContextId?: string, sellerSKU?: string, uPC?: string, eAN?: string, iSBN?: string, jAN?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListCatalogItemsResponse>>;
92
92
  };
93
93
  /**
94
94
  * CatalogApi - factory interface
@@ -101,21 +101,21 @@ export declare const CatalogApiFactory: (configuration?: Configuration, basePath
101
101
  * @param {*} [options] Override http request option.
102
102
  * @throws {RequiredError}
103
103
  */
104
- getCatalogItem(requestParameters: CatalogApiGetCatalogItemRequest, options?: AxiosRequestConfig): AxiosPromise<GetCatalogItemResponse>;
104
+ getCatalogItem(requestParameters: CatalogApiGetCatalogItemRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetCatalogItemResponse>;
105
105
  /**
106
106
  * Returns the parent categories to which an item belongs, based on the specified ASIN or SellerSKU. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 2 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
107
107
  * @param {CatalogApiListCatalogCategoriesRequest} requestParameters Request parameters.
108
108
  * @param {*} [options] Override http request option.
109
109
  * @throws {RequiredError}
110
110
  */
111
- listCatalogCategories(requestParameters: CatalogApiListCatalogCategoriesRequest, options?: AxiosRequestConfig): AxiosPromise<ListCatalogCategoriesResponse>;
111
+ listCatalogCategories(requestParameters: CatalogApiListCatalogCategoriesRequest, options?: RawAxiosRequestConfig): AxiosPromise<ListCatalogCategoriesResponse>;
112
112
  /**
113
113
  * 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.
114
114
  * @param {CatalogApiListCatalogItemsRequest} requestParameters Request parameters.
115
115
  * @param {*} [options] Override http request option.
116
116
  * @throws {RequiredError}
117
117
  */
118
- listCatalogItems(requestParameters: CatalogApiListCatalogItemsRequest, options?: AxiosRequestConfig): AxiosPromise<ListCatalogItemsResponse>;
118
+ listCatalogItems(requestParameters: CatalogApiListCatalogItemsRequest, options?: RawAxiosRequestConfig): AxiosPromise<ListCatalogItemsResponse>;
119
119
  };
120
120
  /**
121
121
  * Request parameters for getCatalogItem operation in CatalogApi.
@@ -230,7 +230,7 @@ export declare class CatalogApi extends BaseAPI {
230
230
  * @throws {RequiredError}
231
231
  * @memberof CatalogApi
232
232
  */
233
- getCatalogItem(requestParameters: CatalogApiGetCatalogItemRequest, options?: AxiosRequestConfig): Promise<globalAxios.AxiosResponse<GetCatalogItemResponse, any>>;
233
+ getCatalogItem(requestParameters: CatalogApiGetCatalogItemRequest, options?: RawAxiosRequestConfig): Promise<globalAxios.AxiosResponse<GetCatalogItemResponse, any>>;
234
234
  /**
235
235
  * Returns the parent categories to which an item belongs, based on the specified ASIN or SellerSKU. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 2 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
236
236
  * @param {CatalogApiListCatalogCategoriesRequest} requestParameters Request parameters.
@@ -238,7 +238,7 @@ export declare class CatalogApi extends BaseAPI {
238
238
  * @throws {RequiredError}
239
239
  * @memberof CatalogApi
240
240
  */
241
- listCatalogCategories(requestParameters: CatalogApiListCatalogCategoriesRequest, options?: AxiosRequestConfig): Promise<globalAxios.AxiosResponse<ListCatalogCategoriesResponse, any>>;
241
+ listCatalogCategories(requestParameters: CatalogApiListCatalogCategoriesRequest, options?: RawAxiosRequestConfig): Promise<globalAxios.AxiosResponse<ListCatalogCategoriesResponse, any>>;
242
242
  /**
243
243
  * 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.
244
244
  * @param {CatalogApiListCatalogItemsRequest} requestParameters Request parameters.
@@ -246,5 +246,5 @@ export declare class CatalogApi extends BaseAPI {
246
246
  * @throws {RequiredError}
247
247
  * @memberof CatalogApi
248
248
  */
249
- listCatalogItems(requestParameters: CatalogApiListCatalogItemsRequest, options?: AxiosRequestConfig): Promise<globalAxios.AxiosResponse<ListCatalogItemsResponse, any>>;
249
+ listCatalogItems(requestParameters: CatalogApiListCatalogItemsRequest, options?: RawAxiosRequestConfig): Promise<globalAxios.AxiosResponse<ListCatalogItemsResponse, any>>;
250
250
  }
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import type { Configuration } from './configuration';
13
- import type { AxiosInstance, AxiosRequestConfig } from 'axios';
13
+ import type { AxiosInstance, RawAxiosRequestConfig } from 'axios';
14
14
  export declare const BASE_PATH: string;
15
15
  /**
16
16
  *
@@ -29,7 +29,7 @@ export declare const COLLECTION_FORMATS: {
29
29
  */
30
30
  export interface RequestArgs {
31
31
  url: string;
32
- options: AxiosRequestConfig;
32
+ options: RawAxiosRequestConfig;
33
33
  }
34
34
  /**
35
35
  *
@@ -52,3 +52,15 @@ export declare class RequiredError extends Error {
52
52
  field: string;
53
53
  constructor(field: string, msg?: string);
54
54
  }
55
+ interface ServerMap {
56
+ [key: string]: {
57
+ url: string;
58
+ description: string;
59
+ }[];
60
+ }
61
+ /**
62
+ *
63
+ * @export
64
+ */
65
+ export declare const operationServerMap: ServerMap;
66
+ export {};
@@ -15,6 +15,7 @@ export interface ConfigurationParameters {
15
15
  password?: string;
16
16
  accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
17
17
  basePath?: string;
18
+ serverIndex?: number;
18
19
  baseOptions?: any;
19
20
  formDataCtor?: new () => any;
20
21
  }
@@ -53,6 +54,13 @@ export declare class Configuration {
53
54
  * @memberof Configuration
54
55
  */
55
56
  basePath?: string;
57
+ /**
58
+ * override server index
59
+ *
60
+ * @type {number}
61
+ * @memberof Configuration
62
+ */
63
+ serverIndex?: number;
56
64
  /**
57
65
  * base options for axios calls
58
66
  *
@@ -9,12 +9,12 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import { CreatorType } from './creator-type';
13
- import { DecimalWithUnits } from './decimal-with-units';
14
- import { DimensionType } from './dimension-type';
15
- import { Image } from './image';
16
- import { LanguageType } from './language-type';
17
- import { Price } from './price';
12
+ import type { CreatorType } from './creator-type';
13
+ import type { DecimalWithUnits } from './decimal-with-units';
14
+ import type { DimensionType } from './dimension-type';
15
+ import type { Image } from './image';
16
+ import type { LanguageType } from './language-type';
17
+ import type { Price } from './price';
18
18
  /**
19
19
  * The attributes of the item.
20
20
  * @export
@@ -9,7 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import { DecimalWithUnits } from './decimal-with-units';
12
+ import type { DecimalWithUnits } from './decimal-with-units';
13
13
  /**
14
14
  * The dimension type attribute of an item.
15
15
  * @export
@@ -9,7 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import { Item } from './item';
12
+ import type { Item } from './item';
13
13
  /**
14
14
  *
15
15
  * @export
@@ -9,8 +9,8 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import { ASINIdentifier } from './asinidentifier';
13
- import { SellerSKUIdentifier } from './seller-skuidentifier';
12
+ import type { ASINIdentifier } from './asinidentifier';
13
+ import type { SellerSKUIdentifier } from './seller-skuidentifier';
14
14
  /**
15
15
  *
16
16
  * @export
@@ -9,7 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import { DecimalWithUnits } from './decimal-with-units';
12
+ import type { DecimalWithUnits } from './decimal-with-units';
13
13
  /**
14
14
  * The image attribute of the item.
15
15
  * @export
@@ -9,10 +9,10 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import { AttributeSetListType } from './attribute-set-list-type';
13
- import { IdentifierType } from './identifier-type';
14
- import { RelationshipType } from './relationship-type';
15
- import { SalesRankType } from './sales-rank-type';
12
+ import type { AttributeSetListType } from './attribute-set-list-type';
13
+ import type { IdentifierType } from './identifier-type';
14
+ import type { RelationshipType } from './relationship-type';
15
+ import type { SalesRankType } from './sales-rank-type';
16
16
  /**
17
17
  * An item in the Amazon catalog.
18
18
  * @export
@@ -9,7 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import { Categories } from './categories';
12
+ import type { Categories } from './categories';
13
13
  /**
14
14
  *
15
15
  * @export
@@ -9,7 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import { ListMatchingItemsResponse } from './list-matching-items-response';
12
+ import type { ListMatchingItemsResponse } from './list-matching-items-response';
13
13
  /**
14
14
  *
15
15
  * @export
@@ -9,7 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import { Item } from './item';
12
+ import type { Item } from './item';
13
13
  /**
14
14
  *
15
15
  * @export
@@ -9,9 +9,9 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import { DecimalWithUnits } from './decimal-with-units';
13
- import { DimensionType } from './dimension-type';
14
- import { IdentifierType } from './identifier-type';
12
+ import type { DecimalWithUnits } from './decimal-with-units';
13
+ import type { DimensionType } from './dimension-type';
14
+ import type { IdentifierType } from './identifier-type';
15
15
  /**
16
16
  * Specific variations of the item.
17
17
  * @export
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@sp-api-sdk/catalog-items-api-v0",
3
- "author": "Vincent Mesquita <vincent.mesquita@bizon.solutions>",
3
+ "author": "Bertrand Marron <bertrand@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": "2.0.6",
5
+ "version": "2.1.0",
6
6
  "main": "dist/cjs/index.js",
7
7
  "module": "dist/es/index.js",
8
8
  "types": "dist/types/index.d.ts",
@@ -18,8 +18,8 @@
18
18
  "dist/**/*.d.ts"
19
19
  ],
20
20
  "dependencies": {
21
- "@sp-api-sdk/common": "2.0.6",
22
- "axios": "^1.6.8"
21
+ "@sp-api-sdk/common": "2.0.8",
22
+ "axios": "^1.7.0"
23
23
  },
24
24
  "repository": {
25
25
  "type": "git",
@@ -40,5 +40,5 @@
40
40
  "sp sdk",
41
41
  "catalog items api"
42
42
  ],
43
- "gitHead": "d757ce0353f64c34db7c46df5fc2bc2716a29f57"
43
+ "gitHead": "5a245a25a9f1765c825e2178668d4b0f4e44689b"
44
44
  }