@sp-api-sdk/catalog-items-api-v0 1.10.2 → 1.10.5

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 (25) hide show
  1. package/dist/cjs/src/api-model/api/catalog-api.js +3 -3
  2. package/dist/es/src/api-model/api/catalog-api.js +3 -3
  3. package/dist/types/src/api-model/api/catalog-api.d.ts +10 -10
  4. package/dist/types/src/api-model/base.d.ts +2 -2
  5. package/dist/types/src/api-model/common.d.ts +2 -2
  6. package/dist/types/src/api-model/models/asinidentifier.d.ts +2 -2
  7. package/dist/types/src/api-model/models/attribute-set-list-type.d.ts +96 -96
  8. package/dist/types/src/api-model/models/categories.d.ts +3 -3
  9. package/dist/types/src/api-model/models/creator-type.d.ts +2 -2
  10. package/dist/types/src/api-model/models/decimal-with-units.d.ts +2 -2
  11. package/dist/types/src/api-model/models/dimension-type.d.ts +4 -4
  12. package/dist/types/src/api-model/models/get-catalog-item-response.d.ts +2 -2
  13. package/dist/types/src/api-model/models/identifier-type.d.ts +2 -2
  14. package/dist/types/src/api-model/models/image.d.ts +3 -3
  15. package/dist/types/src/api-model/models/item.d.ts +4 -4
  16. package/dist/types/src/api-model/models/language-type.d.ts +3 -3
  17. package/dist/types/src/api-model/models/list-catalog-categories-response.d.ts +2 -2
  18. package/dist/types/src/api-model/models/list-catalog-items-response.d.ts +2 -2
  19. package/dist/types/src/api-model/models/list-matching-items-response.d.ts +1 -1
  20. package/dist/types/src/api-model/models/model-error.d.ts +3 -3
  21. package/dist/types/src/api-model/models/price.d.ts +2 -2
  22. package/dist/types/src/api-model/models/relationship-type.d.ts +23 -23
  23. package/dist/types/src/api-model/models/sales-rank-type.d.ts +2 -2
  24. package/dist/types/src/api-model/models/seller-skuidentifier.d.ts +3 -3
  25. package/package.json +5 -5
@@ -53,7 +53,7 @@ const CatalogApiAxiosParamCreator = function (configuration) {
53
53
  if (marketplaceId !== undefined) {
54
54
  localVarQueryParameter['MarketplaceId'] = marketplaceId;
55
55
  }
56
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
56
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
57
57
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
58
58
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
59
59
  return {
@@ -91,7 +91,7 @@ const CatalogApiAxiosParamCreator = function (configuration) {
91
91
  if (sellerSKU !== undefined) {
92
92
  localVarQueryParameter['SellerSKU'] = sellerSKU;
93
93
  }
94
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
94
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
95
95
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
96
96
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
97
97
  return {
@@ -149,7 +149,7 @@ const CatalogApiAxiosParamCreator = function (configuration) {
149
149
  if (jAN !== undefined) {
150
150
  localVarQueryParameter['JAN'] = jAN;
151
151
  }
152
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
152
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
153
153
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
154
154
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
155
155
  return {
@@ -49,7 +49,7 @@ export const CatalogApiAxiosParamCreator = function (configuration) {
49
49
  if (marketplaceId !== undefined) {
50
50
  localVarQueryParameter['MarketplaceId'] = marketplaceId;
51
51
  }
52
- setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
52
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
53
53
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
54
54
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
55
55
  return {
@@ -87,7 +87,7 @@ export const CatalogApiAxiosParamCreator = function (configuration) {
87
87
  if (sellerSKU !== undefined) {
88
88
  localVarQueryParameter['SellerSKU'] = sellerSKU;
89
89
  }
90
- setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
90
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
91
91
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
92
92
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
93
93
  return {
@@ -145,7 +145,7 @@ export const CatalogApiAxiosParamCreator = function (configuration) {
145
145
  if (jAN !== undefined) {
146
146
  localVarQueryParameter['JAN'] = jAN;
147
147
  }
148
- setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
148
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
149
149
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
150
150
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
151
151
  return {
@@ -9,7 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import { AxiosPromise, AxiosInstance } from 'axios';
12
+ import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
13
13
  import { Configuration } from '../configuration';
14
14
  import { RequestArgs, BaseAPI } from '../base';
15
15
  import { GetCatalogItemResponse } from '../models';
@@ -27,7 +27,7 @@ export declare const CatalogApiAxiosParamCreator: (configuration?: Configuration
27
27
  * @param {*} [options] Override http request option.
28
28
  * @throws {RequiredError}
29
29
  */
30
- getCatalogItem: (marketplaceId: string, asin: string, options?: any) => Promise<RequestArgs>;
30
+ getCatalogItem: (marketplaceId: string, asin: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
31
31
  /**
32
32
  * Returns the parent categories to which an item belongs, based on the specified ASIN or SellerSKU. **Usage Plans:** | Plan type | Rate (requests per second) | Burst | | ---- | ---- | ---- | |Default| 1 | 40 | |Selling partner specific| Variable | Variable | The x-amzn-RateLimit-Limit response header returns the usage plan rate limits that were applied to the requested operation. Rate limits for some selling partners will vary from the default rate and burst shown in the table above. For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
33
33
  * @param {string} marketplaceId A marketplace identifier. Specifies the marketplace for the item.
@@ -36,7 +36,7 @@ export declare const CatalogApiAxiosParamCreator: (configuration?: Configuration
36
36
  * @param {*} [options] Override http request option.
37
37
  * @throws {RequiredError}
38
38
  */
39
- listCatalogCategories: (marketplaceId: string, aSIN?: string | undefined, sellerSKU?: string | undefined, options?: any) => Promise<RequestArgs>;
39
+ listCatalogCategories: (marketplaceId: string, aSIN?: string | undefined, sellerSKU?: string | undefined, options?: AxiosRequestConfig) => Promise<RequestArgs>;
40
40
  /**
41
41
  * Returns a list of items and their attributes, based on a search query or item identifiers that you specify. When based on a search query, provide the Query parameter and optionally, the QueryContextId parameter. When based on item identifiers, provide a single appropriate parameter based on the identifier type, and specify the associated item value. MarketplaceId is always required. At least one of Query, SellerSKU, UPC, EAN, ISBN, JAN is also required. This operation returns a maximum of ten products and does not return non-buyable products. **Usage Plans:** | Plan type | Rate (requests per second) | Burst | | ---- | ---- | ---- | |Default| 6 | 40 | |Selling partner specific| Variable | Variable | The x-amzn-RateLimit-Limit response header returns the usage plan rate limits that were applied to the requested operation. Rate limits for some selling partners will vary from the default rate and burst shown in the table above. For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
42
42
  * @param {string} marketplaceId A marketplace identifier. Specifies the marketplace for which items are returned.
@@ -50,7 +50,7 @@ export declare const CatalogApiAxiosParamCreator: (configuration?: Configuration
50
50
  * @param {*} [options] Override http request option.
51
51
  * @throws {RequiredError}
52
52
  */
53
- listCatalogItems: (marketplaceId: string, query?: string | undefined, queryContextId?: string | undefined, sellerSKU?: string | undefined, uPC?: string | undefined, eAN?: string | undefined, iSBN?: string | undefined, jAN?: string | undefined, options?: any) => Promise<RequestArgs>;
53
+ listCatalogItems: (marketplaceId: string, query?: string | undefined, queryContextId?: string | undefined, sellerSKU?: string | undefined, uPC?: string | undefined, eAN?: string | undefined, iSBN?: string | undefined, jAN?: string | undefined, options?: AxiosRequestConfig) => Promise<RequestArgs>;
54
54
  };
55
55
  /**
56
56
  * CatalogApi - functional programming interface
@@ -64,7 +64,7 @@ export declare const CatalogApiFp: (configuration?: Configuration | undefined) =
64
64
  * @param {*} [options] Override http request option.
65
65
  * @throws {RequiredError}
66
66
  */
67
- getCatalogItem(marketplaceId: string, asin: string, options?: any): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise<GetCatalogItemResponse>>;
67
+ getCatalogItem(marketplaceId: string, asin: string, options?: AxiosRequestConfig<any> | undefined): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise<GetCatalogItemResponse>>;
68
68
  /**
69
69
  * Returns the parent categories to which an item belongs, based on the specified ASIN or SellerSKU. **Usage Plans:** | Plan type | Rate (requests per second) | Burst | | ---- | ---- | ---- | |Default| 1 | 40 | |Selling partner specific| Variable | Variable | The x-amzn-RateLimit-Limit response header returns the usage plan rate limits that were applied to the requested operation. Rate limits for some selling partners will vary from the default rate and burst shown in the table above. For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
70
70
  * @param {string} marketplaceId A marketplace identifier. Specifies the marketplace for the item.
@@ -73,7 +73,7 @@ export declare const CatalogApiFp: (configuration?: Configuration | undefined) =
73
73
  * @param {*} [options] Override http request option.
74
74
  * @throws {RequiredError}
75
75
  */
76
- listCatalogCategories(marketplaceId: string, aSIN?: string | undefined, sellerSKU?: string | undefined, options?: any): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise<ListCatalogCategoriesResponse>>;
76
+ listCatalogCategories(marketplaceId: string, aSIN?: string | undefined, sellerSKU?: string | undefined, options?: AxiosRequestConfig<any> | undefined): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise<ListCatalogCategoriesResponse>>;
77
77
  /**
78
78
  * Returns a list of items and their attributes, based on a search query or item identifiers that you specify. When based on a search query, provide the Query parameter and optionally, the QueryContextId parameter. When based on item identifiers, provide a single appropriate parameter based on the identifier type, and specify the associated item value. MarketplaceId is always required. At least one of Query, SellerSKU, UPC, EAN, ISBN, JAN is also required. This operation returns a maximum of ten products and does not return non-buyable products. **Usage Plans:** | Plan type | Rate (requests per second) | Burst | | ---- | ---- | ---- | |Default| 6 | 40 | |Selling partner specific| Variable | Variable | The x-amzn-RateLimit-Limit response header returns the usage plan rate limits that were applied to the requested operation. Rate limits for some selling partners will vary from the default rate and burst shown in the table above. For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
79
79
  * @param {string} marketplaceId A marketplace identifier. Specifies the marketplace for which items are returned.
@@ -87,7 +87,7 @@ export declare const CatalogApiFp: (configuration?: Configuration | undefined) =
87
87
  * @param {*} [options] Override http request option.
88
88
  * @throws {RequiredError}
89
89
  */
90
- listCatalogItems(marketplaceId: string, query?: string | undefined, queryContextId?: string | undefined, sellerSKU?: string | undefined, uPC?: string | undefined, eAN?: string | undefined, iSBN?: string | undefined, jAN?: string | undefined, options?: any): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise<ListCatalogItemsResponse>>;
90
+ listCatalogItems(marketplaceId: string, query?: string | undefined, queryContextId?: string | undefined, sellerSKU?: string | undefined, uPC?: string | undefined, eAN?: string | undefined, iSBN?: string | undefined, jAN?: string | undefined, options?: AxiosRequestConfig<any> | undefined): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise<ListCatalogItemsResponse>>;
91
91
  };
92
92
  /**
93
93
  * CatalogApi - factory interface
@@ -239,7 +239,7 @@ export declare class CatalogApi extends BaseAPI {
239
239
  * @throws {RequiredError}
240
240
  * @memberof CatalogApi
241
241
  */
242
- getCatalogItem(requestParameters: CatalogApiGetCatalogItemRequest, options?: any): Promise<import("axios").AxiosResponse<GetCatalogItemResponse, any>>;
242
+ getCatalogItem(requestParameters: CatalogApiGetCatalogItemRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetCatalogItemResponse, any>>;
243
243
  /**
244
244
  * Returns the parent categories to which an item belongs, based on the specified ASIN or SellerSKU. **Usage Plans:** | Plan type | Rate (requests per second) | Burst | | ---- | ---- | ---- | |Default| 1 | 40 | |Selling partner specific| Variable | Variable | The x-amzn-RateLimit-Limit response header returns the usage plan rate limits that were applied to the requested operation. Rate limits for some selling partners will vary from the default rate and burst shown in the table above. For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
245
245
  * @param {CatalogApiListCatalogCategoriesRequest} requestParameters Request parameters.
@@ -247,7 +247,7 @@ export declare class CatalogApi extends BaseAPI {
247
247
  * @throws {RequiredError}
248
248
  * @memberof CatalogApi
249
249
  */
250
- listCatalogCategories(requestParameters: CatalogApiListCatalogCategoriesRequest, options?: any): Promise<import("axios").AxiosResponse<ListCatalogCategoriesResponse, any>>;
250
+ listCatalogCategories(requestParameters: CatalogApiListCatalogCategoriesRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListCatalogCategoriesResponse, any>>;
251
251
  /**
252
252
  * Returns a list of items and their attributes, based on a search query or item identifiers that you specify. When based on a search query, provide the Query parameter and optionally, the QueryContextId parameter. When based on item identifiers, provide a single appropriate parameter based on the identifier type, and specify the associated item value. MarketplaceId is always required. At least one of Query, SellerSKU, UPC, EAN, ISBN, JAN is also required. This operation returns a maximum of ten products and does not return non-buyable products. **Usage Plans:** | Plan type | Rate (requests per second) | Burst | | ---- | ---- | ---- | |Default| 6 | 40 | |Selling partner specific| Variable | Variable | The x-amzn-RateLimit-Limit response header returns the usage plan rate limits that were applied to the requested operation. Rate limits for some selling partners will vary from the default rate and burst shown in the table above. For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
253
253
  * @param {CatalogApiListCatalogItemsRequest} requestParameters Request parameters.
@@ -255,5 +255,5 @@ export declare class CatalogApi extends BaseAPI {
255
255
  * @throws {RequiredError}
256
256
  * @memberof CatalogApi
257
257
  */
258
- listCatalogItems(requestParameters: CatalogApiListCatalogItemsRequest, options?: any): Promise<import("axios").AxiosResponse<ListCatalogItemsResponse, any>>;
258
+ listCatalogItems(requestParameters: CatalogApiListCatalogItemsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListCatalogItemsResponse, any>>;
259
259
  }
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import { Configuration } from "./configuration";
13
- import { AxiosInstance } from 'axios';
13
+ import { AxiosInstance, AxiosRequestConfig } 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: any;
32
+ options: AxiosRequestConfig;
33
33
  }
34
34
  /**
35
35
  *
@@ -11,7 +11,7 @@
11
11
  */
12
12
  import { Configuration } from "./configuration";
13
13
  import { RequestArgs } from "./base";
14
- import { AxiosInstance } from 'axios';
14
+ import { AxiosInstance, AxiosResponse } from 'axios';
15
15
  /**
16
16
  *
17
17
  * @export
@@ -62,4 +62,4 @@ export declare const toPathString: (url: URL) => string;
62
62
  *
63
63
  * @export
64
64
  */
65
- export declare const createRequestFunction: (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration | undefined) => (axios?: AxiosInstance, basePath?: string) => Promise<import("axios").AxiosResponse<any, any>>;
65
+ export declare const createRequestFunction: (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration | undefined) => <T = unknown, R = AxiosResponse<T, any>>(axios?: AxiosInstance, basePath?: string) => Promise<R>;
@@ -20,11 +20,11 @@ export interface ASINIdentifier {
20
20
  * @type {string}
21
21
  * @memberof ASINIdentifier
22
22
  */
23
- MarketplaceId: string;
23
+ 'MarketplaceId': string;
24
24
  /**
25
25
  * The Amazon Standard Identification Number (ASIN) of the item.
26
26
  * @type {string}
27
27
  * @memberof ASINIdentifier
28
28
  */
29
- ASIN: string;
29
+ 'ASIN': string;
30
30
  }