@sp-api-sdk/catalog-items-api-v0 3.0.4 → 4.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (64) hide show
  1. package/dist/cjs/api-model/api/catalog-items-api.js +134 -0
  2. package/dist/cjs/api-model/api.js +1 -1
  3. package/dist/cjs/api-model/models/index.js +0 -16
  4. package/dist/cjs/client.js +1 -1
  5. package/dist/es/api-model/api/catalog-items-api.js +124 -0
  6. package/dist/es/api-model/api.js +1 -1
  7. package/dist/es/api-model/models/index.js +0 -16
  8. package/dist/es/client.js +2 -2
  9. package/dist/types/api-model/api/catalog-items-api.d.ts +100 -0
  10. package/dist/types/api-model/api.d.ts +1 -1
  11. package/dist/types/api-model/models/index.d.ts +0 -16
  12. package/dist/types/client.d.ts +2 -2
  13. package/package.json +4 -4
  14. package/dist/cjs/api-model/api/catalog-api.js +0 -296
  15. package/dist/cjs/api-model/models/asinidentifier.js +0 -15
  16. package/dist/cjs/api-model/models/attribute-set-list-type.js +0 -15
  17. package/dist/cjs/api-model/models/creator-type.js +0 -15
  18. package/dist/cjs/api-model/models/decimal-with-units.js +0 -15
  19. package/dist/cjs/api-model/models/dimension-type.js +0 -15
  20. package/dist/cjs/api-model/models/get-catalog-item-response.js +0 -15
  21. package/dist/cjs/api-model/models/identifier-type.js +0 -15
  22. package/dist/cjs/api-model/models/image.js +0 -15
  23. package/dist/cjs/api-model/models/item.js +0 -15
  24. package/dist/cjs/api-model/models/language-type.js +0 -15
  25. package/dist/cjs/api-model/models/list-catalog-items-response.js +0 -15
  26. package/dist/cjs/api-model/models/list-matching-items-response.js +0 -15
  27. package/dist/cjs/api-model/models/price.js +0 -15
  28. package/dist/cjs/api-model/models/relationship-type.js +0 -15
  29. package/dist/cjs/api-model/models/sales-rank-type.js +0 -15
  30. package/dist/cjs/api-model/models/seller-skuidentifier.js +0 -15
  31. package/dist/es/api-model/api/catalog-api.js +0 -286
  32. package/dist/es/api-model/models/asinidentifier.js +0 -14
  33. package/dist/es/api-model/models/attribute-set-list-type.js +0 -14
  34. package/dist/es/api-model/models/creator-type.js +0 -14
  35. package/dist/es/api-model/models/decimal-with-units.js +0 -14
  36. package/dist/es/api-model/models/dimension-type.js +0 -14
  37. package/dist/es/api-model/models/get-catalog-item-response.js +0 -14
  38. package/dist/es/api-model/models/identifier-type.js +0 -14
  39. package/dist/es/api-model/models/image.js +0 -14
  40. package/dist/es/api-model/models/item.js +0 -14
  41. package/dist/es/api-model/models/language-type.js +0 -14
  42. package/dist/es/api-model/models/list-catalog-items-response.js +0 -14
  43. package/dist/es/api-model/models/list-matching-items-response.js +0 -14
  44. package/dist/es/api-model/models/price.js +0 -14
  45. package/dist/es/api-model/models/relationship-type.js +0 -14
  46. package/dist/es/api-model/models/sales-rank-type.js +0 -14
  47. package/dist/es/api-model/models/seller-skuidentifier.js +0 -14
  48. package/dist/types/api-model/api/catalog-api.d.ts +0 -250
  49. package/dist/types/api-model/models/asinidentifier.d.ts +0 -30
  50. package/dist/types/api-model/models/attribute-set-list-type.d.ts +0 -600
  51. package/dist/types/api-model/models/creator-type.d.ts +0 -30
  52. package/dist/types/api-model/models/decimal-with-units.d.ts +0 -30
  53. package/dist/types/api-model/models/dimension-type.d.ts +0 -43
  54. package/dist/types/api-model/models/get-catalog-item-response.d.ts +0 -31
  55. package/dist/types/api-model/models/identifier-type.d.ts +0 -32
  56. package/dist/types/api-model/models/image.d.ts +0 -37
  57. package/dist/types/api-model/models/item.d.ts +0 -46
  58. package/dist/types/api-model/models/language-type.d.ts +0 -36
  59. package/dist/types/api-model/models/list-catalog-items-response.d.ts +0 -31
  60. package/dist/types/api-model/models/list-matching-items-response.d.ts +0 -25
  61. package/dist/types/api-model/models/price.d.ts +0 -30
  62. package/dist/types/api-model/models/relationship-type.d.ts +0 -159
  63. package/dist/types/api-model/models/sales-rank-type.d.ts +0 -30
  64. package/dist/types/api-model/models/seller-skuidentifier.d.ts +0 -36
@@ -0,0 +1,134 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Selling Partner API for Catalog Items
6
+ * The Selling Partner API for Catalog Items helps you programmatically retrieve item details for items in the catalog.
7
+ *
8
+ * The version of the OpenAPI document: v0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ var __importDefault = (this && this.__importDefault) || function (mod) {
16
+ return (mod && mod.__esModule) ? mod : { "default": mod };
17
+ };
18
+ Object.defineProperty(exports, "__esModule", { value: true });
19
+ exports.CatalogItemsApi = exports.CatalogItemsApiFactory = exports.CatalogItemsApiFp = exports.CatalogItemsApiAxiosParamCreator = void 0;
20
+ const axios_1 = __importDefault(require("axios"));
21
+ // Some imports not used depending on template conditions
22
+ // @ts-ignore
23
+ const common_1 = require("../common");
24
+ // @ts-ignore
25
+ const base_1 = require("../base");
26
+ /**
27
+ * CatalogItemsApi - axios parameter creator
28
+ * @export
29
+ */
30
+ const CatalogItemsApiAxiosParamCreator = function (configuration) {
31
+ return {
32
+ /**
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
+ * @param {string} marketplaceId A marketplace identifier. Specifies the marketplace for the item.
35
+ * @param {string} [aSIN] The Amazon Standard Identification Number (ASIN) of the item.
36
+ * @param {string} [sellerSKU] Used to identify items in the given marketplace. SellerSKU is qualified by the seller\'s SellerId, which is included with every operation that you submit.
37
+ * @param {*} [options] Override http request option.
38
+ * @throws {RequiredError}
39
+ */
40
+ listCatalogCategories: async (marketplaceId, aSIN, sellerSKU, options = {}) => {
41
+ // verify required parameter 'marketplaceId' is not null or undefined
42
+ (0, common_1.assertParamExists)('listCatalogCategories', 'marketplaceId', marketplaceId);
43
+ const localVarPath = `/catalog/v0/categories`;
44
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
45
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
46
+ let baseOptions;
47
+ if (configuration) {
48
+ baseOptions = configuration.baseOptions;
49
+ }
50
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
51
+ const localVarHeaderParameter = {};
52
+ const localVarQueryParameter = {};
53
+ if (marketplaceId !== undefined) {
54
+ localVarQueryParameter['MarketplaceId'] = marketplaceId;
55
+ }
56
+ if (aSIN !== undefined) {
57
+ localVarQueryParameter['ASIN'] = aSIN;
58
+ }
59
+ if (sellerSKU !== undefined) {
60
+ localVarQueryParameter['SellerSKU'] = sellerSKU;
61
+ }
62
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
63
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
64
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
65
+ return {
66
+ url: (0, common_1.toPathString)(localVarUrlObj),
67
+ options: localVarRequestOptions,
68
+ };
69
+ },
70
+ };
71
+ };
72
+ exports.CatalogItemsApiAxiosParamCreator = CatalogItemsApiAxiosParamCreator;
73
+ /**
74
+ * CatalogItemsApi - functional programming interface
75
+ * @export
76
+ */
77
+ const CatalogItemsApiFp = function (configuration) {
78
+ const localVarAxiosParamCreator = (0, exports.CatalogItemsApiAxiosParamCreator)(configuration);
79
+ return {
80
+ /**
81
+ * 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).
82
+ * @param {string} marketplaceId A marketplace identifier. Specifies the marketplace for the item.
83
+ * @param {string} [aSIN] The Amazon Standard Identification Number (ASIN) of the item.
84
+ * @param {string} [sellerSKU] Used to identify items in the given marketplace. SellerSKU is qualified by the seller\'s SellerId, which is included with every operation that you submit.
85
+ * @param {*} [options] Override http request option.
86
+ * @throws {RequiredError}
87
+ */
88
+ async listCatalogCategories(marketplaceId, aSIN, sellerSKU, options) {
89
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listCatalogCategories(marketplaceId, aSIN, sellerSKU, options);
90
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
91
+ const localVarOperationServerBasePath = base_1.operationServerMap['CatalogItemsApi.listCatalogCategories']?.[localVarOperationServerIndex]?.url;
92
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
93
+ },
94
+ };
95
+ };
96
+ exports.CatalogItemsApiFp = CatalogItemsApiFp;
97
+ /**
98
+ * CatalogItemsApi - factory interface
99
+ * @export
100
+ */
101
+ const CatalogItemsApiFactory = function (configuration, basePath, axios) {
102
+ const localVarFp = (0, exports.CatalogItemsApiFp)(configuration);
103
+ return {
104
+ /**
105
+ * 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).
106
+ * @param {CatalogItemsApiListCatalogCategoriesRequest} requestParameters Request parameters.
107
+ * @param {*} [options] Override http request option.
108
+ * @throws {RequiredError}
109
+ */
110
+ listCatalogCategories(requestParameters, options) {
111
+ return localVarFp.listCatalogCategories(requestParameters.marketplaceId, requestParameters.aSIN, requestParameters.sellerSKU, options).then((request) => request(axios, basePath));
112
+ },
113
+ };
114
+ };
115
+ exports.CatalogItemsApiFactory = CatalogItemsApiFactory;
116
+ /**
117
+ * CatalogItemsApi - object-oriented interface
118
+ * @export
119
+ * @class CatalogItemsApi
120
+ * @extends {BaseAPI}
121
+ */
122
+ class CatalogItemsApi extends base_1.BaseAPI {
123
+ /**
124
+ * 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).
125
+ * @param {CatalogItemsApiListCatalogCategoriesRequest} requestParameters Request parameters.
126
+ * @param {*} [options] Override http request option.
127
+ * @throws {RequiredError}
128
+ * @memberof CatalogItemsApi
129
+ */
130
+ listCatalogCategories(requestParameters, options) {
131
+ return (0, exports.CatalogItemsApiFp)(this.configuration).listCatalogCategories(requestParameters.marketplaceId, requestParameters.aSIN, requestParameters.sellerSKU, options).then((request) => request(this.axios, this.basePath));
132
+ }
133
+ }
134
+ exports.CatalogItemsApi = CatalogItemsApi;
@@ -27,4 +27,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
27
27
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
28
28
  };
29
29
  Object.defineProperty(exports, "__esModule", { value: true });
30
- __exportStar(require("./api/catalog-api"), exports);
30
+ __exportStar(require("./api/catalog-items-api"), exports);
@@ -14,22 +14,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./asinidentifier"), exports);
18
- __exportStar(require("./attribute-set-list-type"), exports);
19
17
  __exportStar(require("./categories"), exports);
20
- __exportStar(require("./creator-type"), exports);
21
- __exportStar(require("./decimal-with-units"), exports);
22
- __exportStar(require("./dimension-type"), exports);
23
- __exportStar(require("./get-catalog-item-response"), exports);
24
- __exportStar(require("./identifier-type"), exports);
25
- __exportStar(require("./image"), exports);
26
- __exportStar(require("./item"), exports);
27
- __exportStar(require("./language-type"), exports);
28
18
  __exportStar(require("./list-catalog-categories-response"), exports);
29
- __exportStar(require("./list-catalog-items-response"), exports);
30
- __exportStar(require("./list-matching-items-response"), exports);
31
19
  __exportStar(require("./model-error"), exports);
32
- __exportStar(require("./price"), exports);
33
- __exportStar(require("./relationship-type"), exports);
34
- __exportStar(require("./sales-rank-type"), exports);
35
- __exportStar(require("./seller-skuidentifier"), exports);
@@ -12,7 +12,7 @@ exports.clientRateLimits = [
12
12
  burst: 2,
13
13
  },
14
14
  ];
15
- class CatalogItemsApiClient extends api_model_1.CatalogApi {
15
+ class CatalogItemsApiClient extends api_model_1.CatalogItemsApi {
16
16
  constructor(configuration) {
17
17
  const { axios, endpoint } = (0, common_1.createAxiosInstance)(configuration, exports.clientRateLimits);
18
18
  super(new api_model_1.Configuration(), endpoint, axios);
@@ -0,0 +1,124 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Selling Partner API for Catalog Items
5
+ * The Selling Partner API for Catalog Items helps you programmatically retrieve item details for items in the catalog.
6
+ *
7
+ * The version of the OpenAPI document: v0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ import globalAxios from 'axios';
15
+ // Some imports not used depending on template conditions
16
+ // @ts-ignore
17
+ import { DUMMY_BASE_URL, assertParamExists, setSearchParams, toPathString, createRequestFunction } from '../common';
18
+ // @ts-ignore
19
+ import { BASE_PATH, BaseAPI, operationServerMap } from '../base';
20
+ /**
21
+ * CatalogItemsApi - axios parameter creator
22
+ * @export
23
+ */
24
+ export const CatalogItemsApiAxiosParamCreator = function (configuration) {
25
+ return {
26
+ /**
27
+ * 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).
28
+ * @param {string} marketplaceId A marketplace identifier. Specifies the marketplace for the item.
29
+ * @param {string} [aSIN] The Amazon Standard Identification Number (ASIN) of the item.
30
+ * @param {string} [sellerSKU] Used to identify items in the given marketplace. SellerSKU is qualified by the seller\'s SellerId, which is included with every operation that you submit.
31
+ * @param {*} [options] Override http request option.
32
+ * @throws {RequiredError}
33
+ */
34
+ listCatalogCategories: async (marketplaceId, aSIN, sellerSKU, options = {}) => {
35
+ // verify required parameter 'marketplaceId' is not null or undefined
36
+ assertParamExists('listCatalogCategories', 'marketplaceId', marketplaceId);
37
+ const localVarPath = `/catalog/v0/categories`;
38
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
39
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
40
+ let baseOptions;
41
+ if (configuration) {
42
+ baseOptions = configuration.baseOptions;
43
+ }
44
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
45
+ const localVarHeaderParameter = {};
46
+ const localVarQueryParameter = {};
47
+ if (marketplaceId !== undefined) {
48
+ localVarQueryParameter['MarketplaceId'] = marketplaceId;
49
+ }
50
+ if (aSIN !== undefined) {
51
+ localVarQueryParameter['ASIN'] = aSIN;
52
+ }
53
+ if (sellerSKU !== undefined) {
54
+ localVarQueryParameter['SellerSKU'] = sellerSKU;
55
+ }
56
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
57
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
58
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
59
+ return {
60
+ url: toPathString(localVarUrlObj),
61
+ options: localVarRequestOptions,
62
+ };
63
+ },
64
+ };
65
+ };
66
+ /**
67
+ * CatalogItemsApi - functional programming interface
68
+ * @export
69
+ */
70
+ export const CatalogItemsApiFp = function (configuration) {
71
+ const localVarAxiosParamCreator = CatalogItemsApiAxiosParamCreator(configuration);
72
+ return {
73
+ /**
74
+ * 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).
75
+ * @param {string} marketplaceId A marketplace identifier. Specifies the marketplace for the item.
76
+ * @param {string} [aSIN] The Amazon Standard Identification Number (ASIN) of the item.
77
+ * @param {string} [sellerSKU] Used to identify items in the given marketplace. SellerSKU is qualified by the seller\'s SellerId, which is included with every operation that you submit.
78
+ * @param {*} [options] Override http request option.
79
+ * @throws {RequiredError}
80
+ */
81
+ async listCatalogCategories(marketplaceId, aSIN, sellerSKU, options) {
82
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listCatalogCategories(marketplaceId, aSIN, sellerSKU, options);
83
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
84
+ const localVarOperationServerBasePath = operationServerMap['CatalogItemsApi.listCatalogCategories']?.[localVarOperationServerIndex]?.url;
85
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
86
+ },
87
+ };
88
+ };
89
+ /**
90
+ * CatalogItemsApi - factory interface
91
+ * @export
92
+ */
93
+ export const CatalogItemsApiFactory = function (configuration, basePath, axios) {
94
+ const localVarFp = CatalogItemsApiFp(configuration);
95
+ return {
96
+ /**
97
+ * 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).
98
+ * @param {CatalogItemsApiListCatalogCategoriesRequest} requestParameters Request parameters.
99
+ * @param {*} [options] Override http request option.
100
+ * @throws {RequiredError}
101
+ */
102
+ listCatalogCategories(requestParameters, options) {
103
+ return localVarFp.listCatalogCategories(requestParameters.marketplaceId, requestParameters.aSIN, requestParameters.sellerSKU, options).then((request) => request(axios, basePath));
104
+ },
105
+ };
106
+ };
107
+ /**
108
+ * CatalogItemsApi - object-oriented interface
109
+ * @export
110
+ * @class CatalogItemsApi
111
+ * @extends {BaseAPI}
112
+ */
113
+ export class CatalogItemsApi extends BaseAPI {
114
+ /**
115
+ * 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).
116
+ * @param {CatalogItemsApiListCatalogCategoriesRequest} requestParameters Request parameters.
117
+ * @param {*} [options] Override http request option.
118
+ * @throws {RequiredError}
119
+ * @memberof CatalogItemsApi
120
+ */
121
+ listCatalogCategories(requestParameters, options) {
122
+ return CatalogItemsApiFp(this.configuration).listCatalogCategories(requestParameters.marketplaceId, requestParameters.aSIN, requestParameters.sellerSKU, options).then((request) => request(this.axios, this.basePath));
123
+ }
124
+ }
@@ -11,4 +11,4 @@
11
11
  * https://openapi-generator.tech
12
12
  * Do not edit the class manually.
13
13
  */
14
- export * from './api/catalog-api';
14
+ export * from './api/catalog-items-api';
@@ -1,19 +1,3 @@
1
- export * from './asinidentifier';
2
- export * from './attribute-set-list-type';
3
1
  export * from './categories';
4
- export * from './creator-type';
5
- export * from './decimal-with-units';
6
- export * from './dimension-type';
7
- export * from './get-catalog-item-response';
8
- export * from './identifier-type';
9
- export * from './image';
10
- export * from './item';
11
- export * from './language-type';
12
2
  export * from './list-catalog-categories-response';
13
- export * from './list-catalog-items-response';
14
- export * from './list-matching-items-response';
15
3
  export * from './model-error';
16
- export * from './price';
17
- export * from './relationship-type';
18
- export * from './sales-rank-type';
19
- export * from './seller-skuidentifier';
package/dist/es/client.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { createAxiosInstance } from '@sp-api-sdk/common';
2
- import { CatalogApi, Configuration } from './api-model';
2
+ import { CatalogItemsApi, Configuration } from './api-model';
3
3
  export const clientRateLimits = [
4
4
  {
5
5
  method: 'get',
@@ -9,7 +9,7 @@ export const clientRateLimits = [
9
9
  burst: 2,
10
10
  },
11
11
  ];
12
- export class CatalogItemsApiClient extends CatalogApi {
12
+ export class CatalogItemsApiClient extends CatalogItemsApi {
13
13
  constructor(configuration) {
14
14
  const { axios, endpoint } = createAxiosInstance(configuration, clientRateLimits);
15
15
  super(new Configuration(), endpoint, axios);
@@ -0,0 +1,100 @@
1
+ /**
2
+ * Selling Partner API for Catalog Items
3
+ * The Selling Partner API for Catalog Items helps you programmatically retrieve item details for items in the catalog.
4
+ *
5
+ * The version of the OpenAPI document: v0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { Configuration } from '../configuration';
13
+ import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
14
+ import globalAxios from 'axios';
15
+ import { type RequestArgs, BaseAPI } from '../base';
16
+ import type { ListCatalogCategoriesResponse } from '../models';
17
+ /**
18
+ * CatalogItemsApi - axios parameter creator
19
+ * @export
20
+ */
21
+ export declare const CatalogItemsApiAxiosParamCreator: (configuration?: Configuration) => {
22
+ /**
23
+ * 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).
24
+ * @param {string} marketplaceId A marketplace identifier. Specifies the marketplace for the item.
25
+ * @param {string} [aSIN] The Amazon Standard Identification Number (ASIN) of the item.
26
+ * @param {string} [sellerSKU] Used to identify items in the given marketplace. SellerSKU is qualified by the seller\'s SellerId, which is included with every operation that you submit.
27
+ * @param {*} [options] Override http request option.
28
+ * @throws {RequiredError}
29
+ */
30
+ listCatalogCategories: (marketplaceId: string, aSIN?: string, sellerSKU?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
31
+ };
32
+ /**
33
+ * CatalogItemsApi - functional programming interface
34
+ * @export
35
+ */
36
+ export declare const CatalogItemsApiFp: (configuration?: Configuration) => {
37
+ /**
38
+ * 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).
39
+ * @param {string} marketplaceId A marketplace identifier. Specifies the marketplace for the item.
40
+ * @param {string} [aSIN] The Amazon Standard Identification Number (ASIN) of the item.
41
+ * @param {string} [sellerSKU] Used to identify items in the given marketplace. SellerSKU is qualified by the seller\&#39;s SellerId, which is included with every operation that you submit.
42
+ * @param {*} [options] Override http request option.
43
+ * @throws {RequiredError}
44
+ */
45
+ listCatalogCategories(marketplaceId: string, aSIN?: string, sellerSKU?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListCatalogCategoriesResponse>>;
46
+ };
47
+ /**
48
+ * CatalogItemsApi - factory interface
49
+ * @export
50
+ */
51
+ export declare const CatalogItemsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
52
+ /**
53
+ * 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).
54
+ * @param {CatalogItemsApiListCatalogCategoriesRequest} requestParameters Request parameters.
55
+ * @param {*} [options] Override http request option.
56
+ * @throws {RequiredError}
57
+ */
58
+ listCatalogCategories(requestParameters: CatalogItemsApiListCatalogCategoriesRequest, options?: RawAxiosRequestConfig): AxiosPromise<ListCatalogCategoriesResponse>;
59
+ };
60
+ /**
61
+ * Request parameters for listCatalogCategories operation in CatalogItemsApi.
62
+ * @export
63
+ * @interface CatalogItemsApiListCatalogCategoriesRequest
64
+ */
65
+ export interface CatalogItemsApiListCatalogCategoriesRequest {
66
+ /**
67
+ * A marketplace identifier. Specifies the marketplace for the item.
68
+ * @type {string}
69
+ * @memberof CatalogItemsApiListCatalogCategories
70
+ */
71
+ readonly marketplaceId: string;
72
+ /**
73
+ * The Amazon Standard Identification Number (ASIN) of the item.
74
+ * @type {string}
75
+ * @memberof CatalogItemsApiListCatalogCategories
76
+ */
77
+ readonly aSIN?: string;
78
+ /**
79
+ * Used to identify items in the given marketplace. SellerSKU is qualified by the seller\&#39;s SellerId, which is included with every operation that you submit.
80
+ * @type {string}
81
+ * @memberof CatalogItemsApiListCatalogCategories
82
+ */
83
+ readonly sellerSKU?: string;
84
+ }
85
+ /**
86
+ * CatalogItemsApi - object-oriented interface
87
+ * @export
88
+ * @class CatalogItemsApi
89
+ * @extends {BaseAPI}
90
+ */
91
+ export declare class CatalogItemsApi extends BaseAPI {
92
+ /**
93
+ * 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).
94
+ * @param {CatalogItemsApiListCatalogCategoriesRequest} requestParameters Request parameters.
95
+ * @param {*} [options] Override http request option.
96
+ * @throws {RequiredError}
97
+ * @memberof CatalogItemsApi
98
+ */
99
+ listCatalogCategories(requestParameters: CatalogItemsApiListCatalogCategoriesRequest, options?: RawAxiosRequestConfig): Promise<globalAxios.AxiosResponse<ListCatalogCategoriesResponse, any>>;
100
+ }
@@ -9,4 +9,4 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- export * from './api/catalog-api';
12
+ export * from './api/catalog-items-api';
@@ -1,19 +1,3 @@
1
- export * from './asinidentifier';
2
- export * from './attribute-set-list-type';
3
1
  export * from './categories';
4
- export * from './creator-type';
5
- export * from './decimal-with-units';
6
- export * from './dimension-type';
7
- export * from './get-catalog-item-response';
8
- export * from './identifier-type';
9
- export * from './image';
10
- export * from './item';
11
- export * from './language-type';
12
2
  export * from './list-catalog-categories-response';
13
- export * from './list-catalog-items-response';
14
- export * from './list-matching-items-response';
15
3
  export * from './model-error';
16
- export * from './price';
17
- export * from './relationship-type';
18
- export * from './sales-rank-type';
19
- export * from './seller-skuidentifier';
@@ -1,6 +1,6 @@
1
1
  import { type ClientConfiguration, type RateLimit } from '@sp-api-sdk/common';
2
- import { CatalogApi } from './api-model';
2
+ import { CatalogItemsApi } from './api-model';
3
3
  export declare const clientRateLimits: RateLimit[];
4
- export declare class CatalogItemsApiClient extends CatalogApi {
4
+ export declare class CatalogItemsApiClient extends CatalogItemsApi {
5
5
  constructor(configuration: ClientConfiguration);
6
6
  }
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@sp-api-sdk/catalog-items-api-v0",
3
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": "3.0.4",
5
+ "version": "4.0.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.1.13",
22
- "axios": "^1.8.4"
21
+ "@sp-api-sdk/common": "2.1.14",
22
+ "axios": "^1.9.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": "287508bdc050a25bac20889ed0afb6d3f6518cd6"
43
+ "gitHead": "773f45c3f4aab28e0bd9f6033045988800d7f258"
44
44
  }