@sp-api-sdk/product-type-definitions-api-2020-09-01 5.0.0 → 5.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -31,6 +31,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
31
31
  var index_exports = {};
32
32
  __export(index_exports, {
33
33
  GetDefinitionsProductTypeLocaleEnum: () => GetDefinitionsProductTypeLocaleEnum,
34
+ GetDefinitionsProductTypeParentageLevelEnum: () => GetDefinitionsProductTypeParentageLevelEnum,
34
35
  GetDefinitionsProductTypeRequirementsEnforcedEnum: () => GetDefinitionsProductTypeRequirementsEnforcedEnum,
35
36
  GetDefinitionsProductTypeRequirementsEnum: () => GetDefinitionsProductTypeRequirementsEnum,
36
37
  ProductTypeDefinitionRequirementsEnforcedEnum: () => ProductTypeDefinitionRequirementsEnforcedEnum,
@@ -131,14 +132,15 @@ var ProductTypeDefinitionsApiAxiosParamCreator = function(configuration) {
131
132
  * @param {string} productType The Amazon product type name.
132
133
  * @param {Array<string>} marketplaceIds A comma-delimited list of Amazon marketplace identifiers for the request. Note: This parameter is limited to one marketplaceId at this time.
133
134
  * @param {string} [sellerId] A selling partner identifier. When provided, seller-specific requirements and values are populated within the product type definition schema, such as brand names associated with the selling partner.
134
- * @param {string} [productTypeVersion] The version of the Amazon product type to retrieve. Defaults to \&quot;LATEST\&quot;,. Prerelease versions of product type definitions may be retrieved with \&quot;RELEASE_CANDIDATE\&quot;. If no prerelease version is currently available, the \&quot;LATEST\&quot; live version will be provided.
135
+ * @param {string} [productTypeVersion] The version of the Amazon product type to retrieve. Defaults to \&quot;LATEST\&quot;. Prerelease versions of product type definitions may be retrieved with \&quot;RELEASE_CANDIDATE\&quot;. If no prerelease version is currently available, the \&quot;LATEST\&quot; live version will be provided.
135
136
  * @param {GetDefinitionsProductTypeRequirementsEnum} [requirements] The name of the requirements set to retrieve requirements for.
136
137
  * @param {GetDefinitionsProductTypeRequirementsEnforcedEnum} [requirementsEnforced] Identifies if the required attributes for a requirements set are enforced by the product type definition schema. Non-enforced requirements enable structural validation of individual attributes without all the required attributes being present (such as for partial updates).
137
138
  * @param {GetDefinitionsProductTypeLocaleEnum} [locale] Locale for retrieving display labels and other presentation details. Defaults to the default language of the first marketplace in the request.
139
+ * @param {GetDefinitionsProductTypeParentageLevelEnum} [parentageLevel] The parentage level of the listing to retrieve a schema for. When provided, the schema is simplified by resolving all conditional logic related to the specified parentage level, resulting in a smaller schema with fewer conditions.
138
140
  * @param {*} [options] Override http request option.
139
141
  * @throws {RequiredError}
140
142
  */
141
- getDefinitionsProductType: async (productType, marketplaceIds, sellerId, productTypeVersion, requirements, requirementsEnforced, locale, options = {}) => {
143
+ getDefinitionsProductType: async (productType, marketplaceIds, sellerId, productTypeVersion, requirements, requirementsEnforced, locale, parentageLevel, options = {}) => {
142
144
  assertParamExists("getDefinitionsProductType", "productType", productType);
143
145
  assertParamExists("getDefinitionsProductType", "marketplaceIds", marketplaceIds);
144
146
  const localVarPath = `/definitions/2020-09-01/productTypes/{productType}`.replace("{productType}", encodeURIComponent(String(productType)));
@@ -168,6 +170,9 @@ var ProductTypeDefinitionsApiAxiosParamCreator = function(configuration) {
168
170
  if (locale !== void 0) {
169
171
  localVarQueryParameter["locale"] = locale;
170
172
  }
173
+ if (parentageLevel !== void 0) {
174
+ localVarQueryParameter["parentageLevel"] = parentageLevel;
175
+ }
171
176
  localVarHeaderParameter["Accept"] = "application/json";
172
177
  setSearchParams(localVarUrlObj, localVarQueryParameter);
173
178
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -181,9 +186,9 @@ var ProductTypeDefinitionsApiAxiosParamCreator = function(configuration) {
181
186
  * Search for and return a list of Amazon product types that have definitions available. **Usage Plans:** | Plan type | Rate (requests per second) | Burst | | ---- | ---- | ---- | |Default| 5 | 10 | |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](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
182
187
  * @param {Array<string>} marketplaceIds A comma-delimited list of Amazon marketplace identifiers for the request.
183
188
  * @param {Array<string>} [keywords] A comma-delimited list of keywords to search product types. **Note:** Cannot be used with &#x60;itemName&#x60;.
184
- * @param {string} [itemName] The title of the ASIN to get the product type recommendation. **Note:** Cannot be used with &#x60;keywords&#x60;.
185
- * @param {string} [locale] The locale for the display names in the response. Defaults to the primary locale of the marketplace.
186
- * @param {string} [searchLocale] The locale used for the &#x60;keywords&#x60; and &#x60;itemName&#x60; parameters. Defaults to the primary locale of the marketplace.
189
+ * @param {string} [itemName] Title of ASIN to get product type recommendation. **Note:** Cannot be used with &#x60;keywords&#x60;.
190
+ * @param {string} [locale] Locale for display names in response. Defaults to primary locale of the marketplace.
191
+ * @param {string} [searchLocale] Language used for &#x60;keywords&#x60; or &#x60;itemName&#x60; parameters. Defaults to primary locale of the marketplace.
187
192
  * @param {*} [options] Override http request option.
188
193
  * @throws {RequiredError}
189
194
  */
@@ -232,15 +237,16 @@ var ProductTypeDefinitionsApiFp = function(configuration) {
232
237
  * @param {string} productType The Amazon product type name.
233
238
  * @param {Array<string>} marketplaceIds A comma-delimited list of Amazon marketplace identifiers for the request. Note: This parameter is limited to one marketplaceId at this time.
234
239
  * @param {string} [sellerId] A selling partner identifier. When provided, seller-specific requirements and values are populated within the product type definition schema, such as brand names associated with the selling partner.
235
- * @param {string} [productTypeVersion] The version of the Amazon product type to retrieve. Defaults to \&quot;LATEST\&quot;,. Prerelease versions of product type definitions may be retrieved with \&quot;RELEASE_CANDIDATE\&quot;. If no prerelease version is currently available, the \&quot;LATEST\&quot; live version will be provided.
240
+ * @param {string} [productTypeVersion] The version of the Amazon product type to retrieve. Defaults to \&quot;LATEST\&quot;. Prerelease versions of product type definitions may be retrieved with \&quot;RELEASE_CANDIDATE\&quot;. If no prerelease version is currently available, the \&quot;LATEST\&quot; live version will be provided.
236
241
  * @param {GetDefinitionsProductTypeRequirementsEnum} [requirements] The name of the requirements set to retrieve requirements for.
237
242
  * @param {GetDefinitionsProductTypeRequirementsEnforcedEnum} [requirementsEnforced] Identifies if the required attributes for a requirements set are enforced by the product type definition schema. Non-enforced requirements enable structural validation of individual attributes without all the required attributes being present (such as for partial updates).
238
243
  * @param {GetDefinitionsProductTypeLocaleEnum} [locale] Locale for retrieving display labels and other presentation details. Defaults to the default language of the first marketplace in the request.
244
+ * @param {GetDefinitionsProductTypeParentageLevelEnum} [parentageLevel] The parentage level of the listing to retrieve a schema for. When provided, the schema is simplified by resolving all conditional logic related to the specified parentage level, resulting in a smaller schema with fewer conditions.
239
245
  * @param {*} [options] Override http request option.
240
246
  * @throws {RequiredError}
241
247
  */
242
- async getDefinitionsProductType(productType, marketplaceIds, sellerId, productTypeVersion, requirements, requirementsEnforced, locale, options) {
243
- const localVarAxiosArgs = await localVarAxiosParamCreator.getDefinitionsProductType(productType, marketplaceIds, sellerId, productTypeVersion, requirements, requirementsEnforced, locale, options);
248
+ async getDefinitionsProductType(productType, marketplaceIds, sellerId, productTypeVersion, requirements, requirementsEnforced, locale, parentageLevel, options) {
249
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getDefinitionsProductType(productType, marketplaceIds, sellerId, productTypeVersion, requirements, requirementsEnforced, locale, parentageLevel, options);
244
250
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
245
251
  const localVarOperationServerBasePath = operationServerMap["ProductTypeDefinitionsApi.getDefinitionsProductType"]?.[localVarOperationServerIndex]?.url;
246
252
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, import_axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -249,9 +255,9 @@ var ProductTypeDefinitionsApiFp = function(configuration) {
249
255
  * Search for and return a list of Amazon product types that have definitions available. **Usage Plans:** | Plan type | Rate (requests per second) | Burst | | ---- | ---- | ---- | |Default| 5 | 10 | |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](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
250
256
  * @param {Array<string>} marketplaceIds A comma-delimited list of Amazon marketplace identifiers for the request.
251
257
  * @param {Array<string>} [keywords] A comma-delimited list of keywords to search product types. **Note:** Cannot be used with &#x60;itemName&#x60;.
252
- * @param {string} [itemName] The title of the ASIN to get the product type recommendation. **Note:** Cannot be used with &#x60;keywords&#x60;.
253
- * @param {string} [locale] The locale for the display names in the response. Defaults to the primary locale of the marketplace.
254
- * @param {string} [searchLocale] The locale used for the &#x60;keywords&#x60; and &#x60;itemName&#x60; parameters. Defaults to the primary locale of the marketplace.
258
+ * @param {string} [itemName] Title of ASIN to get product type recommendation. **Note:** Cannot be used with &#x60;keywords&#x60;.
259
+ * @param {string} [locale] Locale for display names in response. Defaults to primary locale of the marketplace.
260
+ * @param {string} [searchLocale] Language used for &#x60;keywords&#x60; or &#x60;itemName&#x60; parameters. Defaults to primary locale of the marketplace.
255
261
  * @param {*} [options] Override http request option.
256
262
  * @throws {RequiredError}
257
263
  */
@@ -273,7 +279,7 @@ var ProductTypeDefinitionsApiFactory = function(configuration, basePath, axios)
273
279
  * @throws {RequiredError}
274
280
  */
275
281
  getDefinitionsProductType(requestParameters, options) {
276
- return localVarFp.getDefinitionsProductType(requestParameters.productType, requestParameters.marketplaceIds, requestParameters.sellerId, requestParameters.productTypeVersion, requestParameters.requirements, requestParameters.requirementsEnforced, requestParameters.locale, options).then((request) => request(axios, basePath));
282
+ return localVarFp.getDefinitionsProductType(requestParameters.productType, requestParameters.marketplaceIds, requestParameters.sellerId, requestParameters.productTypeVersion, requestParameters.requirements, requestParameters.requirementsEnforced, requestParameters.locale, requestParameters.parentageLevel, options).then((request) => request(axios, basePath));
277
283
  },
278
284
  /**
279
285
  * Search for and return a list of Amazon product types that have definitions available. **Usage Plans:** | Plan type | Rate (requests per second) | Burst | | ---- | ---- | ---- | |Default| 5 | 10 | |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](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
@@ -294,7 +300,7 @@ var ProductTypeDefinitionsApi = class extends BaseAPI {
294
300
  * @throws {RequiredError}
295
301
  */
296
302
  getDefinitionsProductType(requestParameters, options) {
297
- return ProductTypeDefinitionsApiFp(this.configuration).getDefinitionsProductType(requestParameters.productType, requestParameters.marketplaceIds, requestParameters.sellerId, requestParameters.productTypeVersion, requestParameters.requirements, requestParameters.requirementsEnforced, requestParameters.locale, options).then((request) => request(this.axios, this.basePath));
303
+ return ProductTypeDefinitionsApiFp(this.configuration).getDefinitionsProductType(requestParameters.productType, requestParameters.marketplaceIds, requestParameters.sellerId, requestParameters.productTypeVersion, requestParameters.requirements, requestParameters.requirementsEnforced, requestParameters.locale, requestParameters.parentageLevel, options).then((request) => request(this.axios, this.basePath));
298
304
  }
299
305
  /**
300
306
  * Search for and return a list of Amazon product types that have definitions available. **Usage Plans:** | Plan type | Rate (requests per second) | Burst | | ---- | ---- | ---- | |Default| 5 | 10 | |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](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
@@ -355,6 +361,11 @@ var GetDefinitionsProductTypeLocaleEnum = {
355
361
  ZhCn: "zh_CN",
356
362
  ZhTw: "zh_TW"
357
363
  };
364
+ var GetDefinitionsProductTypeParentageLevelEnum = {
365
+ None: "NONE",
366
+ Child: "CHILD",
367
+ Parent: "PARENT"
368
+ };
358
369
 
359
370
  // src/api-model/configuration.ts
360
371
  var Configuration = class {
@@ -482,6 +493,7 @@ var ProductTypeDefinitionsApiClient = class extends ProductTypeDefinitionsApi {
482
493
  // Annotate the CommonJS export names for ESM import in node:
483
494
  0 && (module.exports = {
484
495
  GetDefinitionsProductTypeLocaleEnum,
496
+ GetDefinitionsProductTypeParentageLevelEnum,
485
497
  GetDefinitionsProductTypeRequirementsEnforcedEnum,
486
498
  GetDefinitionsProductTypeRequirementsEnum,
487
499
  ProductTypeDefinitionRequirementsEnforcedEnum,
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/index.ts","../src/client.ts","../src/api-model/api/product-type-definitions-api.ts","../src/api-model/base.ts","../src/api-model/common.ts","../src/api-model/configuration.ts","../src/api-model/models/product-type-definition.ts","../src/api-model/models/schema-link-link.ts"],"sourcesContent":["export * from './client.js'\nexport * from './api-model/api.js'\nexport * from './api-model/models/index.js'\n","import {type ClientConfiguration, createAxiosInstance, type RateLimit} from '@sp-api-sdk/common'\n\nimport {Configuration, ProductTypeDefinitionsApi} from './api-model/index.js'\n\nexport const clientRateLimits: RateLimit[] = [\n {\n method: 'get',\n // eslint-disable-next-line prefer-regex-literals\n urlRegex: new RegExp('^/definitions/2020-09-01/productTypes$'),\n rate: 5,\n burst: 10,\n },\n {\n method: 'get',\n // eslint-disable-next-line prefer-regex-literals\n urlRegex: new RegExp('^/definitions/2020-09-01/productTypes/[^/]*$'),\n rate: 5,\n burst: 10,\n },\n]\n\nexport class ProductTypeDefinitionsApiClient extends ProductTypeDefinitionsApi {\n constructor(configuration: ClientConfiguration) {\n const {axios, endpoint} = createAxiosInstance(configuration, clientRateLimits)\n\n super(new Configuration(), endpoint, axios)\n }\n}\n","/* tslint:disable */\n/* eslint-disable */\n/**\n * Selling Partner API for Product Type Definitions\n * The Selling Partner API for Product Type Definitions provides programmatic access to attribute and data requirements for product types in the Amazon catalog. Use this API to return the JSON Schema for a product type that you can then use with other Selling Partner APIs, such as the Selling Partner API for Listings Items, the Selling Partner API for Catalog Items, and the Selling Partner API for Feeds (for JSON-based listing feeds). For more information, see the [Product Type Definitions API Use Case Guide](https://developer-docs.amazon.com/sp-api/docs/product-type-api-use-case-guide).\n *\n * The version of the OpenAPI document: 2020-09-01\n * \n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\n\nimport type { Configuration } from '../configuration.js';\nimport type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';\nimport globalAxios from 'axios';\n// Some imports not used depending on template conditions\n// @ts-ignore\nimport { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction, replaceWithSerializableTypeIfNeeded } from '../common.js';\n// @ts-ignore\nimport { BASE_PATH, COLLECTION_FORMATS, type RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base.js';\n// @ts-ignore\nimport type { ErrorList } from '../models/index.js';\n// @ts-ignore\nimport type { ProductTypeDefinition } from '../models/index.js';\n// @ts-ignore\nimport type { ProductTypeList } from '../models/index.js';\n/**\n * ProductTypeDefinitionsApi - axios parameter creator\n */\nexport const ProductTypeDefinitionsApiAxiosParamCreator = function (configuration?: Configuration) {\n return {\n /**\n * Retrieve an Amazon product type definition. **Usage Plans:** | Plan type | Rate (requests per second) | Burst | | ---- | ---- | ---- | |Default| 5 | 10 | |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](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).\n * @param {string} productType The Amazon product type name.\n * @param {Array<string>} marketplaceIds A comma-delimited list of Amazon marketplace identifiers for the request. Note: This parameter is limited to one marketplaceId at this time.\n * @param {string} [sellerId] A selling partner identifier. When provided, seller-specific requirements and values are populated within the product type definition schema, such as brand names associated with the selling partner.\n * @param {string} [productTypeVersion] The version of the Amazon product type to retrieve. Defaults to \\&quot;LATEST\\&quot;,. Prerelease versions of product type definitions may be retrieved with \\&quot;RELEASE_CANDIDATE\\&quot;. If no prerelease version is currently available, the \\&quot;LATEST\\&quot; live version will be provided.\n * @param {GetDefinitionsProductTypeRequirementsEnum} [requirements] The name of the requirements set to retrieve requirements for.\n * @param {GetDefinitionsProductTypeRequirementsEnforcedEnum} [requirementsEnforced] Identifies if the required attributes for a requirements set are enforced by the product type definition schema. Non-enforced requirements enable structural validation of individual attributes without all the required attributes being present (such as for partial updates).\n * @param {GetDefinitionsProductTypeLocaleEnum} [locale] Locale for retrieving display labels and other presentation details. Defaults to the default language of the first marketplace in the request.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n getDefinitionsProductType: async (productType: string, marketplaceIds: Array<string>, sellerId?: string, productTypeVersion?: string, requirements?: GetDefinitionsProductTypeRequirementsEnum, requirementsEnforced?: GetDefinitionsProductTypeRequirementsEnforcedEnum, locale?: GetDefinitionsProductTypeLocaleEnum, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {\n // verify required parameter 'productType' is not null or undefined\n assertParamExists('getDefinitionsProductType', 'productType', productType)\n // verify required parameter 'marketplaceIds' is not null or undefined\n assertParamExists('getDefinitionsProductType', 'marketplaceIds', marketplaceIds)\n const localVarPath = `/definitions/2020-09-01/productTypes/{productType}`\n .replace('{productType}', encodeURIComponent(String(productType)));\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n if (sellerId !== undefined) {\n localVarQueryParameter['sellerId'] = sellerId;\n }\n\n if (marketplaceIds) {\n localVarQueryParameter['marketplaceIds'] = marketplaceIds.join(COLLECTION_FORMATS.csv);\n }\n\n if (productTypeVersion !== undefined) {\n localVarQueryParameter['productTypeVersion'] = productTypeVersion;\n }\n\n if (requirements !== undefined) {\n localVarQueryParameter['requirements'] = requirements;\n }\n\n if (requirementsEnforced !== undefined) {\n localVarQueryParameter['requirementsEnforced'] = requirementsEnforced;\n }\n\n if (locale !== undefined) {\n localVarQueryParameter['locale'] = locale;\n }\n\n localVarHeaderParameter['Accept'] = 'application/json';\n\n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * Search for and return a list of Amazon product types that have definitions available. **Usage Plans:** | Plan type | Rate (requests per second) | Burst | | ---- | ---- | ---- | |Default| 5 | 10 | |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](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).\n * @param {Array<string>} marketplaceIds A comma-delimited list of Amazon marketplace identifiers for the request.\n * @param {Array<string>} [keywords] A comma-delimited list of keywords to search product types. **Note:** Cannot be used with &#x60;itemName&#x60;.\n * @param {string} [itemName] The title of the ASIN to get the product type recommendation. **Note:** Cannot be used with &#x60;keywords&#x60;.\n * @param {string} [locale] The locale for the display names in the response. Defaults to the primary locale of the marketplace.\n * @param {string} [searchLocale] The locale used for the &#x60;keywords&#x60; and &#x60;itemName&#x60; parameters. Defaults to the primary locale of the marketplace.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n searchDefinitionsProductTypes: async (marketplaceIds: Array<string>, keywords?: Array<string>, itemName?: string, locale?: string, searchLocale?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {\n // verify required parameter 'marketplaceIds' is not null or undefined\n assertParamExists('searchDefinitionsProductTypes', 'marketplaceIds', marketplaceIds)\n const localVarPath = `/definitions/2020-09-01/productTypes`;\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n if (keywords) {\n localVarQueryParameter['keywords'] = keywords.join(COLLECTION_FORMATS.csv);\n }\n\n if (marketplaceIds) {\n localVarQueryParameter['marketplaceIds'] = marketplaceIds.join(COLLECTION_FORMATS.csv);\n }\n\n if (itemName !== undefined) {\n localVarQueryParameter['itemName'] = itemName;\n }\n\n if (locale !== undefined) {\n localVarQueryParameter['locale'] = locale;\n }\n\n if (searchLocale !== undefined) {\n localVarQueryParameter['searchLocale'] = searchLocale;\n }\n\n localVarHeaderParameter['Accept'] = 'application/json';\n\n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n }\n};\n\n/**\n * ProductTypeDefinitionsApi - functional programming interface\n */\nexport const ProductTypeDefinitionsApiFp = function(configuration?: Configuration) {\n const localVarAxiosParamCreator = ProductTypeDefinitionsApiAxiosParamCreator(configuration)\n return {\n /**\n * Retrieve an Amazon product type definition. **Usage Plans:** | Plan type | Rate (requests per second) | Burst | | ---- | ---- | ---- | |Default| 5 | 10 | |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](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).\n * @param {string} productType The Amazon product type name.\n * @param {Array<string>} marketplaceIds A comma-delimited list of Amazon marketplace identifiers for the request. Note: This parameter is limited to one marketplaceId at this time.\n * @param {string} [sellerId] A selling partner identifier. When provided, seller-specific requirements and values are populated within the product type definition schema, such as brand names associated with the selling partner.\n * @param {string} [productTypeVersion] The version of the Amazon product type to retrieve. Defaults to \\&quot;LATEST\\&quot;,. Prerelease versions of product type definitions may be retrieved with \\&quot;RELEASE_CANDIDATE\\&quot;. If no prerelease version is currently available, the \\&quot;LATEST\\&quot; live version will be provided.\n * @param {GetDefinitionsProductTypeRequirementsEnum} [requirements] The name of the requirements set to retrieve requirements for.\n * @param {GetDefinitionsProductTypeRequirementsEnforcedEnum} [requirementsEnforced] Identifies if the required attributes for a requirements set are enforced by the product type definition schema. Non-enforced requirements enable structural validation of individual attributes without all the required attributes being present (such as for partial updates).\n * @param {GetDefinitionsProductTypeLocaleEnum} [locale] Locale for retrieving display labels and other presentation details. Defaults to the default language of the first marketplace in the request.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async getDefinitionsProductType(productType: string, marketplaceIds: Array<string>, sellerId?: string, productTypeVersion?: string, requirements?: GetDefinitionsProductTypeRequirementsEnum, requirementsEnforced?: GetDefinitionsProductTypeRequirementsEnforcedEnum, locale?: GetDefinitionsProductTypeLocaleEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProductTypeDefinition>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.getDefinitionsProductType(productType, marketplaceIds, sellerId, productTypeVersion, requirements, requirementsEnforced, locale, options);\n const localVarOperationServerIndex = configuration?.serverIndex ?? 0;\n const localVarOperationServerBasePath = operationServerMap['ProductTypeDefinitionsApi.getDefinitionsProductType']?.[localVarOperationServerIndex]?.url;\n return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);\n },\n /**\n * Search for and return a list of Amazon product types that have definitions available. **Usage Plans:** | Plan type | Rate (requests per second) | Burst | | ---- | ---- | ---- | |Default| 5 | 10 | |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](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).\n * @param {Array<string>} marketplaceIds A comma-delimited list of Amazon marketplace identifiers for the request.\n * @param {Array<string>} [keywords] A comma-delimited list of keywords to search product types. **Note:** Cannot be used with &#x60;itemName&#x60;.\n * @param {string} [itemName] The title of the ASIN to get the product type recommendation. **Note:** Cannot be used with &#x60;keywords&#x60;.\n * @param {string} [locale] The locale for the display names in the response. Defaults to the primary locale of the marketplace.\n * @param {string} [searchLocale] The locale used for the &#x60;keywords&#x60; and &#x60;itemName&#x60; parameters. Defaults to the primary locale of the marketplace.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async searchDefinitionsProductTypes(marketplaceIds: Array<string>, keywords?: Array<string>, itemName?: string, locale?: string, searchLocale?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProductTypeList>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.searchDefinitionsProductTypes(marketplaceIds, keywords, itemName, locale, searchLocale, options);\n const localVarOperationServerIndex = configuration?.serverIndex ?? 0;\n const localVarOperationServerBasePath = operationServerMap['ProductTypeDefinitionsApi.searchDefinitionsProductTypes']?.[localVarOperationServerIndex]?.url;\n return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);\n },\n }\n};\n\n/**\n * ProductTypeDefinitionsApi - factory interface\n */\nexport const ProductTypeDefinitionsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {\n const localVarFp = ProductTypeDefinitionsApiFp(configuration)\n return {\n /**\n * Retrieve an Amazon product type definition. **Usage Plans:** | Plan type | Rate (requests per second) | Burst | | ---- | ---- | ---- | |Default| 5 | 10 | |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](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).\n * @param {ProductTypeDefinitionsApiGetDefinitionsProductTypeRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n getDefinitionsProductType(requestParameters: ProductTypeDefinitionsApiGetDefinitionsProductTypeRequest, options?: RawAxiosRequestConfig): AxiosPromise<ProductTypeDefinition> {\n return localVarFp.getDefinitionsProductType(requestParameters.productType, requestParameters.marketplaceIds, requestParameters.sellerId, requestParameters.productTypeVersion, requestParameters.requirements, requestParameters.requirementsEnforced, requestParameters.locale, options).then((request) => request(axios, basePath));\n },\n /**\n * Search for and return a list of Amazon product types that have definitions available. **Usage Plans:** | Plan type | Rate (requests per second) | Burst | | ---- | ---- | ---- | |Default| 5 | 10 | |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](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).\n * @param {ProductTypeDefinitionsApiSearchDefinitionsProductTypesRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n searchDefinitionsProductTypes(requestParameters: ProductTypeDefinitionsApiSearchDefinitionsProductTypesRequest, options?: RawAxiosRequestConfig): AxiosPromise<ProductTypeList> {\n return localVarFp.searchDefinitionsProductTypes(requestParameters.marketplaceIds, requestParameters.keywords, requestParameters.itemName, requestParameters.locale, requestParameters.searchLocale, options).then((request) => request(axios, basePath));\n },\n };\n};\n\n/**\n * Request parameters for getDefinitionsProductType operation in ProductTypeDefinitionsApi.\n */\nexport interface ProductTypeDefinitionsApiGetDefinitionsProductTypeRequest {\n /**\n * The Amazon product type name.\n */\n readonly productType: string\n\n /**\n * A comma-delimited list of Amazon marketplace identifiers for the request. Note: This parameter is limited to one marketplaceId at this time.\n */\n readonly marketplaceIds: Array<string>\n\n /**\n * A selling partner identifier. When provided, seller-specific requirements and values are populated within the product type definition schema, such as brand names associated with the selling partner.\n */\n readonly sellerId?: string\n\n /**\n * The version of the Amazon product type to retrieve. Defaults to \\&quot;LATEST\\&quot;,. Prerelease versions of product type definitions may be retrieved with \\&quot;RELEASE_CANDIDATE\\&quot;. If no prerelease version is currently available, the \\&quot;LATEST\\&quot; live version will be provided.\n */\n readonly productTypeVersion?: string\n\n /**\n * The name of the requirements set to retrieve requirements for.\n */\n readonly requirements?: GetDefinitionsProductTypeRequirementsEnum\n\n /**\n * Identifies if the required attributes for a requirements set are enforced by the product type definition schema. Non-enforced requirements enable structural validation of individual attributes without all the required attributes being present (such as for partial updates).\n */\n readonly requirementsEnforced?: GetDefinitionsProductTypeRequirementsEnforcedEnum\n\n /**\n * Locale for retrieving display labels and other presentation details. Defaults to the default language of the first marketplace in the request.\n */\n readonly locale?: GetDefinitionsProductTypeLocaleEnum\n}\n\n/**\n * Request parameters for searchDefinitionsProductTypes operation in ProductTypeDefinitionsApi.\n */\nexport interface ProductTypeDefinitionsApiSearchDefinitionsProductTypesRequest {\n /**\n * A comma-delimited list of Amazon marketplace identifiers for the request.\n */\n readonly marketplaceIds: Array<string>\n\n /**\n * A comma-delimited list of keywords to search product types. **Note:** Cannot be used with &#x60;itemName&#x60;.\n */\n readonly keywords?: Array<string>\n\n /**\n * The title of the ASIN to get the product type recommendation. **Note:** Cannot be used with &#x60;keywords&#x60;.\n */\n readonly itemName?: string\n\n /**\n * The locale for the display names in the response. Defaults to the primary locale of the marketplace.\n */\n readonly locale?: string\n\n /**\n * The locale used for the &#x60;keywords&#x60; and &#x60;itemName&#x60; parameters. Defaults to the primary locale of the marketplace.\n */\n readonly searchLocale?: string\n}\n\n/**\n * ProductTypeDefinitionsApi - object-oriented interface\n */\nexport class ProductTypeDefinitionsApi extends BaseAPI {\n /**\n * Retrieve an Amazon product type definition. **Usage Plans:** | Plan type | Rate (requests per second) | Burst | | ---- | ---- | ---- | |Default| 5 | 10 | |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](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).\n * @param {ProductTypeDefinitionsApiGetDefinitionsProductTypeRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n public getDefinitionsProductType(requestParameters: ProductTypeDefinitionsApiGetDefinitionsProductTypeRequest, options?: RawAxiosRequestConfig) {\n return ProductTypeDefinitionsApiFp(this.configuration).getDefinitionsProductType(requestParameters.productType, requestParameters.marketplaceIds, requestParameters.sellerId, requestParameters.productTypeVersion, requestParameters.requirements, requestParameters.requirementsEnforced, requestParameters.locale, options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * Search for and return a list of Amazon product types that have definitions available. **Usage Plans:** | Plan type | Rate (requests per second) | Burst | | ---- | ---- | ---- | |Default| 5 | 10 | |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](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).\n * @param {ProductTypeDefinitionsApiSearchDefinitionsProductTypesRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n public searchDefinitionsProductTypes(requestParameters: ProductTypeDefinitionsApiSearchDefinitionsProductTypesRequest, options?: RawAxiosRequestConfig) {\n return ProductTypeDefinitionsApiFp(this.configuration).searchDefinitionsProductTypes(requestParameters.marketplaceIds, requestParameters.keywords, requestParameters.itemName, requestParameters.locale, requestParameters.searchLocale, options).then((request) => request(this.axios, this.basePath));\n }\n}\n\nexport const GetDefinitionsProductTypeRequirementsEnum = {\n Listing: 'LISTING',\n ListingProductOnly: 'LISTING_PRODUCT_ONLY',\n ListingOfferOnly: 'LISTING_OFFER_ONLY',\n} as const;\nexport type GetDefinitionsProductTypeRequirementsEnum = typeof GetDefinitionsProductTypeRequirementsEnum[keyof typeof GetDefinitionsProductTypeRequirementsEnum];\nexport const GetDefinitionsProductTypeRequirementsEnforcedEnum = {\n Enforced: 'ENFORCED',\n NotEnforced: 'NOT_ENFORCED',\n} as const;\nexport type GetDefinitionsProductTypeRequirementsEnforcedEnum = typeof GetDefinitionsProductTypeRequirementsEnforcedEnum[keyof typeof GetDefinitionsProductTypeRequirementsEnforcedEnum];\nexport const GetDefinitionsProductTypeLocaleEnum = {\n Default: 'DEFAULT',\n Ar: 'ar',\n ArAe: 'ar_AE',\n De: 'de',\n DeDe: 'de_DE',\n En: 'en',\n EnAe: 'en_AE',\n EnAu: 'en_AU',\n EnCa: 'en_CA',\n EnGb: 'en_GB',\n EnIn: 'en_IN',\n EnSg: 'en_SG',\n EnUs: 'en_US',\n Es: 'es',\n EsEs: 'es_ES',\n EsMx: 'es_MX',\n EsUs: 'es_US',\n Fr: 'fr',\n FrCa: 'fr_CA',\n FrFr: 'fr_FR',\n It: 'it',\n ItIt: 'it_IT',\n Ja: 'ja',\n JaJp: 'ja_JP',\n Nl: 'nl',\n NlNl: 'nl_NL',\n Pl: 'pl',\n PlPl: 'pl_PL',\n Pt: 'pt',\n PtBr: 'pt_BR',\n PtPt: 'pt_PT',\n Sv: 'sv',\n SvSe: 'sv_SE',\n Tr: 'tr',\n TrTr: 'tr_TR',\n Zh: 'zh',\n ZhCn: 'zh_CN',\n ZhTw: 'zh_TW',\n} as const;\nexport type GetDefinitionsProductTypeLocaleEnum = typeof GetDefinitionsProductTypeLocaleEnum[keyof typeof GetDefinitionsProductTypeLocaleEnum];\n","/* tslint:disable */\n/* eslint-disable */\n/**\n * Selling Partner API for Product Type Definitions\n * The Selling Partner API for Product Type Definitions provides programmatic access to attribute and data requirements for product types in the Amazon catalog. Use this API to return the JSON Schema for a product type that you can then use with other Selling Partner APIs, such as the Selling Partner API for Listings Items, the Selling Partner API for Catalog Items, and the Selling Partner API for Feeds (for JSON-based listing feeds). For more information, see the [Product Type Definitions API Use Case Guide](https://developer-docs.amazon.com/sp-api/docs/product-type-api-use-case-guide).\n *\n * The version of the OpenAPI document: 2020-09-01\n * \n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\n\nimport type { Configuration } from './configuration.js';\n// Some imports not used depending on template conditions\n// @ts-ignore\nimport type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';\nimport globalAxios from 'axios';\n\nexport const BASE_PATH = \"https://sellingpartnerapi-na.amazon.com\".replace(/\\/+$/, \"\");\n\nexport const COLLECTION_FORMATS = {\n csv: \",\",\n ssv: \" \",\n tsv: \"\\t\",\n pipes: \"|\",\n};\n\nexport interface RequestArgs {\n url: string;\n options: RawAxiosRequestConfig;\n}\n\nexport class BaseAPI {\n protected configuration: Configuration | undefined;\n\n constructor(configuration?: Configuration, protected basePath: string = BASE_PATH, protected axios: AxiosInstance = globalAxios) {\n if (configuration) {\n this.configuration = configuration;\n this.basePath = configuration.basePath ?? basePath;\n }\n }\n};\n\nexport class RequiredError extends Error {\n constructor(public field: string, msg?: string) {\n super(msg);\n this.name = \"RequiredError\"\n }\n}\n\ninterface ServerMap {\n [key: string]: {\n url: string,\n description: string,\n }[];\n}\n\nexport const operationServerMap: ServerMap = {\n}\n","/* tslint:disable */\n/* eslint-disable */\n/**\n * Selling Partner API for Product Type Definitions\n * The Selling Partner API for Product Type Definitions provides programmatic access to attribute and data requirements for product types in the Amazon catalog. Use this API to return the JSON Schema for a product type that you can then use with other Selling Partner APIs, such as the Selling Partner API for Listings Items, the Selling Partner API for Catalog Items, and the Selling Partner API for Feeds (for JSON-based listing feeds). For more information, see the [Product Type Definitions API Use Case Guide](https://developer-docs.amazon.com/sp-api/docs/product-type-api-use-case-guide).\n *\n * The version of the OpenAPI document: 2020-09-01\n * \n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\nimport type { Configuration } from \"./configuration.js\";\nimport type { RequestArgs } from \"./base.js\";\nimport type { AxiosInstance, AxiosResponse } from 'axios';\nimport { RequiredError } from \"./base.js\";\n\nexport const DUMMY_BASE_URL = 'https://example.com'\n\n/**\n *\n * @throws {RequiredError}\n */\nexport const assertParamExists = function (functionName: string, paramName: string, paramValue: unknown) {\n if (paramValue === null || paramValue === undefined) {\n throw new RequiredError(paramName, `Required parameter ${paramName} was null or undefined when calling ${functionName}.`);\n }\n}\n\nexport const setApiKeyToObject = async function (object: any, keyParamName: string, configuration?: Configuration) {\n if (configuration && configuration.apiKey) {\n const localVarApiKeyValue = typeof configuration.apiKey === 'function'\n ? await configuration.apiKey(keyParamName)\n : await configuration.apiKey;\n object[keyParamName] = localVarApiKeyValue;\n }\n}\n\nexport const setBasicAuthToObject = function (object: any, configuration?: Configuration) {\n if (configuration && (configuration.username || configuration.password)) {\n object[\"auth\"] = { username: configuration.username, password: configuration.password };\n }\n}\n\nexport const setBearerAuthToObject = async function (object: any, configuration?: Configuration) {\n if (configuration && configuration.accessToken) {\n const accessToken = typeof configuration.accessToken === 'function'\n ? await configuration.accessToken()\n : await configuration.accessToken;\n object[\"Authorization\"] = \"Bearer \" + accessToken;\n }\n}\n\nexport const setOAuthToObject = async function (object: any, name: string, scopes: string[], configuration?: Configuration) {\n if (configuration && configuration.accessToken) {\n const localVarAccessTokenValue = typeof configuration.accessToken === 'function'\n ? await configuration.accessToken(name, scopes)\n : await configuration.accessToken;\n object[\"Authorization\"] = \"Bearer \" + localVarAccessTokenValue;\n }\n}\n\n\nfunction setFlattenedQueryParams(urlSearchParams: URLSearchParams, parameter: any, key: string = \"\"): void {\n if (parameter == null) return;\n if (typeof parameter === \"object\") {\n if (Array.isArray(parameter) || parameter instanceof Set) {\n (parameter as any[]).forEach(item => setFlattenedQueryParams(urlSearchParams, item, key));\n }\n else {\n Object.keys(parameter).forEach(currentKey =>\n setFlattenedQueryParams(urlSearchParams, parameter[currentKey], `${key}${key !== '' ? '.' : ''}${currentKey}`)\n );\n }\n }\n else {\n if (urlSearchParams.has(key)) {\n urlSearchParams.append(key, parameter);\n }\n else {\n urlSearchParams.set(key, parameter);\n }\n }\n}\n\nexport const setSearchParams = function (url: URL, ...objects: any[]) {\n const searchParams = new URLSearchParams(url.search);\n setFlattenedQueryParams(searchParams, objects);\n url.search = searchParams.toString();\n}\n\n/**\n * JSON serialization helper function which replaces instances of unserializable types with serializable ones.\n * This function will run for every key-value pair encountered by JSON.stringify while traversing an object.\n * Converting a set to a string will return an empty object, so an intermediate conversion to an array is required.\n */\n// @ts-ignore\nexport const replaceWithSerializableTypeIfNeeded = function(key: string, value: any) {\n if (value instanceof Set) {\n return Array.from(value);\n } else {\n return value;\n }\n}\n\nexport const serializeDataIfNeeded = function (value: any, requestOptions: any, configuration?: Configuration) {\n const nonString = typeof value !== 'string';\n const needsSerialization = nonString && configuration && configuration.isJsonMime\n ? configuration.isJsonMime(requestOptions.headers['Content-Type'])\n : nonString;\n return needsSerialization\n ? JSON.stringify(value !== undefined ? value : {}, replaceWithSerializableTypeIfNeeded)\n : (value || \"\");\n}\n\nexport const toPathString = function (url: URL) {\n return url.pathname + url.search + url.hash\n}\n\nexport const createRequestFunction = function (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) {\n return <T = unknown, R = AxiosResponse<T>>(axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {\n const axiosRequestArgs = {...axiosArgs.options, url: (axios.defaults.baseURL ? '' : configuration?.basePath ?? basePath) + axiosArgs.url};\n return axios.request<T, R>(axiosRequestArgs);\n };\n}\n","/* tslint:disable */\n/**\n * Selling Partner API for Product Type Definitions\n * The Selling Partner API for Product Type Definitions provides programmatic access to attribute and data requirements for product types in the Amazon catalog. Use this API to return the JSON Schema for a product type that you can then use with other Selling Partner APIs, such as the Selling Partner API for Listings Items, the Selling Partner API for Catalog Items, and the Selling Partner API for Feeds (for JSON-based listing feeds). For more information, see the [Product Type Definitions API Use Case Guide](https://developer-docs.amazon.com/sp-api/docs/product-type-api-use-case-guide).\n *\n * The version of the OpenAPI document: 2020-09-01\n * \n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\ninterface AWSv4Configuration {\n options?: {\n region?: string\n service?: string\n }\n credentials?: {\n accessKeyId?: string\n secretAccessKey?: string,\n sessionToken?: string\n }\n}\n\nexport interface ConfigurationParameters {\n apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);\n username?: string;\n password?: string;\n accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);\n awsv4?: AWSv4Configuration;\n basePath?: string;\n serverIndex?: number;\n baseOptions?: any;\n formDataCtor?: new () => any;\n}\n\nexport class Configuration {\n /**\n * parameter for apiKey security\n * @param name security name\n */\n apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);\n /**\n * parameter for basic security\n */\n username?: string;\n /**\n * parameter for basic security\n */\n password?: string;\n /**\n * parameter for oauth2 security\n * @param name security name\n * @param scopes oauth2 scope\n */\n accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);\n /**\n * parameter for aws4 signature security\n * @param {Object} AWS4Signature - AWS4 Signature security\n * @param {string} options.region - aws region\n * @param {string} options.service - name of the service.\n * @param {string} credentials.accessKeyId - aws access key id\n * @param {string} credentials.secretAccessKey - aws access key\n * @param {string} credentials.sessionToken - aws session token\n * @memberof Configuration\n */\n awsv4?: AWSv4Configuration;\n /**\n * override base path\n */\n basePath?: string;\n /**\n * override server index\n */\n serverIndex?: number;\n /**\n * base options for axios calls\n */\n baseOptions?: any;\n /**\n * The FormData constructor that will be used to create multipart form data\n * requests. You can inject this here so that execution environments that\n * do not support the FormData class can still run the generated client.\n *\n * @type {new () => FormData}\n */\n formDataCtor?: new () => any;\n\n constructor(param: ConfigurationParameters = {}) {\n this.apiKey = param.apiKey;\n this.username = param.username;\n this.password = param.password;\n this.accessToken = param.accessToken;\n this.awsv4 = param.awsv4;\n this.basePath = param.basePath;\n this.serverIndex = param.serverIndex;\n this.baseOptions = {\n ...param.baseOptions,\n headers: {\n ...param.baseOptions?.headers,\n },\n };\n this.formDataCtor = param.formDataCtor;\n }\n\n /**\n * Check if the given MIME is a JSON MIME.\n * JSON MIME examples:\n * application/json\n * application/json; charset=UTF8\n * APPLICATION/JSON\n * application/vnd.company+json\n * @param mime - MIME (Multipurpose Internet Mail Extensions)\n * @return True if the given MIME is JSON, false otherwise.\n */\n public isJsonMime(mime: string): boolean {\n const jsonMime: RegExp = /^(application\\/json|[^;/ \\t]+\\/[^;/ \\t]+[+]json)[ \\t]*(;.*)?$/i;\n return mime !== null && jsonMime.test(mime);\n }\n}\n","/* tslint:disable */\n/* eslint-disable */\n/**\n * Selling Partner API for Product Type Definitions\n * The Selling Partner API for Product Type Definitions provides programmatic access to attribute and data requirements for product types in the Amazon catalog. Use this API to return the JSON Schema for a product type that you can then use with other Selling Partner APIs, such as the Selling Partner API for Listings Items, the Selling Partner API for Catalog Items, and the Selling Partner API for Feeds (for JSON-based listing feeds). For more information, see the [Product Type Definitions API Use Case Guide](https://developer-docs.amazon.com/sp-api/docs/product-type-api-use-case-guide).\n *\n * The version of the OpenAPI document: 2020-09-01\n * \n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\n\n// May contain unused imports in some cases\n// @ts-ignore\nimport type { ProductTypeVersion } from './product-type-version.js';\n// May contain unused imports in some cases\n// @ts-ignore\nimport type { PropertyGroup } from './property-group.js';\n// May contain unused imports in some cases\n// @ts-ignore\nimport type { SchemaLink } from './schema-link.js';\n\n/**\n * A product type definition represents the attributes and data requirements for a product type in the Amazon catalog. Product type definitions are used interchangeably between the Selling Partner API for Listings Items, Selling Partner API for Catalog Items, and JSON-based listings feeds in the Selling Partner API for Feeds.\n */\nexport interface ProductTypeDefinition {\n 'metaSchema'?: SchemaLink;\n 'schema': SchemaLink;\n /**\n * Name of the requirements set represented in this product type definition.\n */\n 'requirements': ProductTypeDefinitionRequirementsEnum;\n /**\n * Identifies if the required attributes for a requirements set are enforced by the product type definition schema. Non-enforced requirements enable structural validation of individual attributes without all of the required attributes being present (such as for partial updates).\n */\n 'requirementsEnforced': ProductTypeDefinitionRequirementsEnforcedEnum;\n /**\n * Mapping of property group names to property groups. Property groups represent logical groupings of schema properties that can be used for display or informational purposes.\n */\n 'propertyGroups': { [key: string]: PropertyGroup; };\n /**\n * Locale of the display elements contained in the product type definition.\n */\n 'locale': string;\n /**\n * Amazon marketplace identifiers for which the product type definition is applicable.\n */\n 'marketplaceIds': Array<string>;\n /**\n * The name of the Amazon product type that this product type definition applies to.\n */\n 'productType': string;\n /**\n * Human-readable and localized description of the Amazon product type.\n */\n 'displayName': string;\n 'productTypeVersion': ProductTypeVersion;\n}\n\nexport const ProductTypeDefinitionRequirementsEnum = {\n Listing: 'LISTING',\n ListingProductOnly: 'LISTING_PRODUCT_ONLY',\n ListingOfferOnly: 'LISTING_OFFER_ONLY',\n} as const;\n\nexport type ProductTypeDefinitionRequirementsEnum = typeof ProductTypeDefinitionRequirementsEnum[keyof typeof ProductTypeDefinitionRequirementsEnum];\nexport const ProductTypeDefinitionRequirementsEnforcedEnum = {\n Enforced: 'ENFORCED',\n NotEnforced: 'NOT_ENFORCED',\n} as const;\n\nexport type ProductTypeDefinitionRequirementsEnforcedEnum = typeof ProductTypeDefinitionRequirementsEnforcedEnum[keyof typeof ProductTypeDefinitionRequirementsEnforcedEnum];\n\n\n","/* tslint:disable */\n/* eslint-disable */\n/**\n * Selling Partner API for Product Type Definitions\n * The Selling Partner API for Product Type Definitions provides programmatic access to attribute and data requirements for product types in the Amazon catalog. Use this API to return the JSON Schema for a product type that you can then use with other Selling Partner APIs, such as the Selling Partner API for Listings Items, the Selling Partner API for Catalog Items, and the Selling Partner API for Feeds (for JSON-based listing feeds). For more information, see the [Product Type Definitions API Use Case Guide](https://developer-docs.amazon.com/sp-api/docs/product-type-api-use-case-guide).\n *\n * The version of the OpenAPI document: 2020-09-01\n * \n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\n\n\n/**\n * Link to retrieve the schema.\n */\nexport interface SchemaLinkLink {\n /**\n * URI resource for the link.\n */\n 'resource': string;\n /**\n * HTTP method for the link operation.\n */\n 'verb': SchemaLinkLinkVerbEnum;\n}\n\nexport const SchemaLinkLinkVerbEnum = {\n Get: 'GET',\n} as const;\n\nexport type SchemaLinkLinkVerbEnum = typeof SchemaLinkLinkVerbEnum[keyof typeof SchemaLinkLinkVerbEnum];\n\n\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,IAAAA,iBAA4E;;;ACiB5E,IAAAC,g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ACnE,MAAM;AAAA,IACN,OAAO;AAAA,EACT;AACF;AAEO,IAAM,kCAAN,cAA8C,0BAA0B;AAAA,EAC7E,YAAY,eAAoC;AAC9C,UAAM,EAAC,OAAO,SAAQ,QAAI,oCAAoB,eAAe,gBAAgB;AAE7E,UAAM,IAAI,cAAc,GAAG,UAAU,KAAK;AAAA,EAC5C;AACF;","names":["import_common","import_axios","globalAxios","globalAxios","BASE_PATH","globalAxios"]}
1
+ {"version":3,"sources":["../src/index.ts","../src/client.ts","../src/api-model/api/product-type-definitions-api.ts","../src/api-model/base.ts","../src/api-model/common.ts","../src/api-model/configuration.ts","../src/api-model/models/product-type-definition.ts","../src/api-model/models/schema-link-link.ts"],"sourcesContent":["export * from './client.js'\nexport * from './api-model/api.js'\nexport * from './api-model/models/index.js'\n","import {type ClientConfiguration, createAxiosInstance, type RateLimit} from '@sp-api-sdk/common'\n\nimport {Configuration, ProductTypeDefinitionsApi} from './api-model/index.js'\n\nexport const clientRateLimits: RateLimit[] = [\n {\n method: 'get',\n // eslint-disable-next-line prefer-regex-literals\n urlRegex: new RegExp('^/definitions/2020-09-01/productTypes$'),\n rate: 5,\n burst: 10,\n },\n {\n method: 'get',\n // eslint-disable-next-line prefer-regex-literals\n urlRegex: new RegExp('^/definitions/2020-09-01/productTypes/[^/]*$'),\n rate: 5,\n burst: 10,\n },\n]\n\nexport class ProductTypeDefinitionsApiClient extends ProductTypeDefinitionsApi {\n constructor(configuration: ClientConfiguration) {\n const {axios, endpoint} = createAxiosInstance(configuration, clientRateLimits)\n\n super(new Configuration(), endpoint, axios)\n }\n}\n","/* tslint:disable */\n/* eslint-disable */\n/**\n * Selling Partner API for Product Type Definitions\n * The Selling Partner API for Product Type Definitions provides programmatic access to attribute and data requirements for product types in the Amazon catalog. Use this API to return the JSON Schema for a product type that you can then use with other Selling Partner APIs, such as the Selling Partner API for Listings Items, the Selling Partner API for Catalog Items, and the Selling Partner API for Feeds (for JSON-based listing feeds). For more information, see the [Product Type Definitions API Use Case Guide](https://developer-docs.amazon.com/sp-api/docs/product-type-api-use-case-guide).\n *\n * The version of the OpenAPI document: 2020-09-01\n * \n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\n\nimport type { Configuration } from '../configuration.js';\nimport type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';\nimport globalAxios from 'axios';\n// Some imports not used depending on template conditions\n// @ts-ignore\nimport { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction, replaceWithSerializableTypeIfNeeded } from '../common.js';\n// @ts-ignore\nimport { BASE_PATH, COLLECTION_FORMATS, type RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base.js';\n// @ts-ignore\nimport type { ErrorList } from '../models/index.js';\n// @ts-ignore\nimport type { ProductTypeDefinition } from '../models/index.js';\n// @ts-ignore\nimport type { ProductTypeList } from '../models/index.js';\n/**\n * ProductTypeDefinitionsApi - axios parameter creator\n */\nexport const ProductTypeDefinitionsApiAxiosParamCreator = function (configuration?: Configuration) {\n return {\n /**\n * Retrieve an Amazon product type definition. **Usage Plans:** | Plan type | Rate (requests per second) | Burst | | ---- | ---- | ---- | |Default| 5 | 10 | |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](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).\n * @param {string} productType The Amazon product type name.\n * @param {Array<string>} marketplaceIds A comma-delimited list of Amazon marketplace identifiers for the request. Note: This parameter is limited to one marketplaceId at this time.\n * @param {string} [sellerId] A selling partner identifier. When provided, seller-specific requirements and values are populated within the product type definition schema, such as brand names associated with the selling partner.\n * @param {string} [productTypeVersion] The version of the Amazon product type to retrieve. Defaults to \\&quot;LATEST\\&quot;. Prerelease versions of product type definitions may be retrieved with \\&quot;RELEASE_CANDIDATE\\&quot;. If no prerelease version is currently available, the \\&quot;LATEST\\&quot; live version will be provided.\n * @param {GetDefinitionsProductTypeRequirementsEnum} [requirements] The name of the requirements set to retrieve requirements for.\n * @param {GetDefinitionsProductTypeRequirementsEnforcedEnum} [requirementsEnforced] Identifies if the required attributes for a requirements set are enforced by the product type definition schema. Non-enforced requirements enable structural validation of individual attributes without all the required attributes being present (such as for partial updates).\n * @param {GetDefinitionsProductTypeLocaleEnum} [locale] Locale for retrieving display labels and other presentation details. Defaults to the default language of the first marketplace in the request.\n * @param {GetDefinitionsProductTypeParentageLevelEnum} [parentageLevel] The parentage level of the listing to retrieve a schema for. When provided, the schema is simplified by resolving all conditional logic related to the specified parentage level, resulting in a smaller schema with fewer conditions.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n getDefinitionsProductType: async (productType: string, marketplaceIds: Array<string>, sellerId?: string, productTypeVersion?: string, requirements?: GetDefinitionsProductTypeRequirementsEnum, requirementsEnforced?: GetDefinitionsProductTypeRequirementsEnforcedEnum, locale?: GetDefinitionsProductTypeLocaleEnum, parentageLevel?: GetDefinitionsProductTypeParentageLevelEnum, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {\n // verify required parameter 'productType' is not null or undefined\n assertParamExists('getDefinitionsProductType', 'productType', productType)\n // verify required parameter 'marketplaceIds' is not null or undefined\n assertParamExists('getDefinitionsProductType', 'marketplaceIds', marketplaceIds)\n const localVarPath = `/definitions/2020-09-01/productTypes/{productType}`\n .replace('{productType}', encodeURIComponent(String(productType)));\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n if (sellerId !== undefined) {\n localVarQueryParameter['sellerId'] = sellerId;\n }\n\n if (marketplaceIds) {\n localVarQueryParameter['marketplaceIds'] = marketplaceIds.join(COLLECTION_FORMATS.csv);\n }\n\n if (productTypeVersion !== undefined) {\n localVarQueryParameter['productTypeVersion'] = productTypeVersion;\n }\n\n if (requirements !== undefined) {\n localVarQueryParameter['requirements'] = requirements;\n }\n\n if (requirementsEnforced !== undefined) {\n localVarQueryParameter['requirementsEnforced'] = requirementsEnforced;\n }\n\n if (locale !== undefined) {\n localVarQueryParameter['locale'] = locale;\n }\n\n if (parentageLevel !== undefined) {\n localVarQueryParameter['parentageLevel'] = parentageLevel;\n }\n\n localVarHeaderParameter['Accept'] = 'application/json';\n\n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * Search for and return a list of Amazon product types that have definitions available. **Usage Plans:** | Plan type | Rate (requests per second) | Burst | | ---- | ---- | ---- | |Default| 5 | 10 | |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](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).\n * @param {Array<string>} marketplaceIds A comma-delimited list of Amazon marketplace identifiers for the request.\n * @param {Array<string>} [keywords] A comma-delimited list of keywords to search product types. **Note:** Cannot be used with &#x60;itemName&#x60;.\n * @param {string} [itemName] Title of ASIN to get product type recommendation. **Note:** Cannot be used with &#x60;keywords&#x60;.\n * @param {string} [locale] Locale for display names in response. Defaults to primary locale of the marketplace.\n * @param {string} [searchLocale] Language used for &#x60;keywords&#x60; or &#x60;itemName&#x60; parameters. Defaults to primary locale of the marketplace.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n searchDefinitionsProductTypes: async (marketplaceIds: Array<string>, keywords?: Array<string>, itemName?: string, locale?: string, searchLocale?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {\n // verify required parameter 'marketplaceIds' is not null or undefined\n assertParamExists('searchDefinitionsProductTypes', 'marketplaceIds', marketplaceIds)\n const localVarPath = `/definitions/2020-09-01/productTypes`;\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n if (keywords) {\n localVarQueryParameter['keywords'] = keywords.join(COLLECTION_FORMATS.csv);\n }\n\n if (marketplaceIds) {\n localVarQueryParameter['marketplaceIds'] = marketplaceIds.join(COLLECTION_FORMATS.csv);\n }\n\n if (itemName !== undefined) {\n localVarQueryParameter['itemName'] = itemName;\n }\n\n if (locale !== undefined) {\n localVarQueryParameter['locale'] = locale;\n }\n\n if (searchLocale !== undefined) {\n localVarQueryParameter['searchLocale'] = searchLocale;\n }\n\n localVarHeaderParameter['Accept'] = 'application/json';\n\n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n }\n};\n\n/**\n * ProductTypeDefinitionsApi - functional programming interface\n */\nexport const ProductTypeDefinitionsApiFp = function(configuration?: Configuration) {\n const localVarAxiosParamCreator = ProductTypeDefinitionsApiAxiosParamCreator(configuration)\n return {\n /**\n * Retrieve an Amazon product type definition. **Usage Plans:** | Plan type | Rate (requests per second) | Burst | | ---- | ---- | ---- | |Default| 5 | 10 | |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](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).\n * @param {string} productType The Amazon product type name.\n * @param {Array<string>} marketplaceIds A comma-delimited list of Amazon marketplace identifiers for the request. Note: This parameter is limited to one marketplaceId at this time.\n * @param {string} [sellerId] A selling partner identifier. When provided, seller-specific requirements and values are populated within the product type definition schema, such as brand names associated with the selling partner.\n * @param {string} [productTypeVersion] The version of the Amazon product type to retrieve. Defaults to \\&quot;LATEST\\&quot;. Prerelease versions of product type definitions may be retrieved with \\&quot;RELEASE_CANDIDATE\\&quot;. If no prerelease version is currently available, the \\&quot;LATEST\\&quot; live version will be provided.\n * @param {GetDefinitionsProductTypeRequirementsEnum} [requirements] The name of the requirements set to retrieve requirements for.\n * @param {GetDefinitionsProductTypeRequirementsEnforcedEnum} [requirementsEnforced] Identifies if the required attributes for a requirements set are enforced by the product type definition schema. Non-enforced requirements enable structural validation of individual attributes without all the required attributes being present (such as for partial updates).\n * @param {GetDefinitionsProductTypeLocaleEnum} [locale] Locale for retrieving display labels and other presentation details. Defaults to the default language of the first marketplace in the request.\n * @param {GetDefinitionsProductTypeParentageLevelEnum} [parentageLevel] The parentage level of the listing to retrieve a schema for. When provided, the schema is simplified by resolving all conditional logic related to the specified parentage level, resulting in a smaller schema with fewer conditions.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async getDefinitionsProductType(productType: string, marketplaceIds: Array<string>, sellerId?: string, productTypeVersion?: string, requirements?: GetDefinitionsProductTypeRequirementsEnum, requirementsEnforced?: GetDefinitionsProductTypeRequirementsEnforcedEnum, locale?: GetDefinitionsProductTypeLocaleEnum, parentageLevel?: GetDefinitionsProductTypeParentageLevelEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProductTypeDefinition>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.getDefinitionsProductType(productType, marketplaceIds, sellerId, productTypeVersion, requirements, requirementsEnforced, locale, parentageLevel, options);\n const localVarOperationServerIndex = configuration?.serverIndex ?? 0;\n const localVarOperationServerBasePath = operationServerMap['ProductTypeDefinitionsApi.getDefinitionsProductType']?.[localVarOperationServerIndex]?.url;\n return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);\n },\n /**\n * Search for and return a list of Amazon product types that have definitions available. **Usage Plans:** | Plan type | Rate (requests per second) | Burst | | ---- | ---- | ---- | |Default| 5 | 10 | |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](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).\n * @param {Array<string>} marketplaceIds A comma-delimited list of Amazon marketplace identifiers for the request.\n * @param {Array<string>} [keywords] A comma-delimited list of keywords to search product types. **Note:** Cannot be used with &#x60;itemName&#x60;.\n * @param {string} [itemName] Title of ASIN to get product type recommendation. **Note:** Cannot be used with &#x60;keywords&#x60;.\n * @param {string} [locale] Locale for display names in response. Defaults to primary locale of the marketplace.\n * @param {string} [searchLocale] Language used for &#x60;keywords&#x60; or &#x60;itemName&#x60; parameters. Defaults to primary locale of the marketplace.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async searchDefinitionsProductTypes(marketplaceIds: Array<string>, keywords?: Array<string>, itemName?: string, locale?: string, searchLocale?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProductTypeList>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.searchDefinitionsProductTypes(marketplaceIds, keywords, itemName, locale, searchLocale, options);\n const localVarOperationServerIndex = configuration?.serverIndex ?? 0;\n const localVarOperationServerBasePath = operationServerMap['ProductTypeDefinitionsApi.searchDefinitionsProductTypes']?.[localVarOperationServerIndex]?.url;\n return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);\n },\n }\n};\n\n/**\n * ProductTypeDefinitionsApi - factory interface\n */\nexport const ProductTypeDefinitionsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {\n const localVarFp = ProductTypeDefinitionsApiFp(configuration)\n return {\n /**\n * Retrieve an Amazon product type definition. **Usage Plans:** | Plan type | Rate (requests per second) | Burst | | ---- | ---- | ---- | |Default| 5 | 10 | |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](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).\n * @param {ProductTypeDefinitionsApiGetDefinitionsProductTypeRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n getDefinitionsProductType(requestParameters: ProductTypeDefinitionsApiGetDefinitionsProductTypeRequest, options?: RawAxiosRequestConfig): AxiosPromise<ProductTypeDefinition> {\n return localVarFp.getDefinitionsProductType(requestParameters.productType, requestParameters.marketplaceIds, requestParameters.sellerId, requestParameters.productTypeVersion, requestParameters.requirements, requestParameters.requirementsEnforced, requestParameters.locale, requestParameters.parentageLevel, options).then((request) => request(axios, basePath));\n },\n /**\n * Search for and return a list of Amazon product types that have definitions available. **Usage Plans:** | Plan type | Rate (requests per second) | Burst | | ---- | ---- | ---- | |Default| 5 | 10 | |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](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).\n * @param {ProductTypeDefinitionsApiSearchDefinitionsProductTypesRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n searchDefinitionsProductTypes(requestParameters: ProductTypeDefinitionsApiSearchDefinitionsProductTypesRequest, options?: RawAxiosRequestConfig): AxiosPromise<ProductTypeList> {\n return localVarFp.searchDefinitionsProductTypes(requestParameters.marketplaceIds, requestParameters.keywords, requestParameters.itemName, requestParameters.locale, requestParameters.searchLocale, options).then((request) => request(axios, basePath));\n },\n };\n};\n\n/**\n * Request parameters for getDefinitionsProductType operation in ProductTypeDefinitionsApi.\n */\nexport interface ProductTypeDefinitionsApiGetDefinitionsProductTypeRequest {\n /**\n * The Amazon product type name.\n */\n readonly productType: string\n\n /**\n * A comma-delimited list of Amazon marketplace identifiers for the request. Note: This parameter is limited to one marketplaceId at this time.\n */\n readonly marketplaceIds: Array<string>\n\n /**\n * A selling partner identifier. When provided, seller-specific requirements and values are populated within the product type definition schema, such as brand names associated with the selling partner.\n */\n readonly sellerId?: string\n\n /**\n * The version of the Amazon product type to retrieve. Defaults to \\&quot;LATEST\\&quot;. Prerelease versions of product type definitions may be retrieved with \\&quot;RELEASE_CANDIDATE\\&quot;. If no prerelease version is currently available, the \\&quot;LATEST\\&quot; live version will be provided.\n */\n readonly productTypeVersion?: string\n\n /**\n * The name of the requirements set to retrieve requirements for.\n */\n readonly requirements?: GetDefinitionsProductTypeRequirementsEnum\n\n /**\n * Identifies if the required attributes for a requirements set are enforced by the product type definition schema. Non-enforced requirements enable structural validation of individual attributes without all the required attributes being present (such as for partial updates).\n */\n readonly requirementsEnforced?: GetDefinitionsProductTypeRequirementsEnforcedEnum\n\n /**\n * Locale for retrieving display labels and other presentation details. Defaults to the default language of the first marketplace in the request.\n */\n readonly locale?: GetDefinitionsProductTypeLocaleEnum\n\n /**\n * The parentage level of the listing to retrieve a schema for. When provided, the schema is simplified by resolving all conditional logic related to the specified parentage level, resulting in a smaller schema with fewer conditions.\n */\n readonly parentageLevel?: GetDefinitionsProductTypeParentageLevelEnum\n}\n\n/**\n * Request parameters for searchDefinitionsProductTypes operation in ProductTypeDefinitionsApi.\n */\nexport interface ProductTypeDefinitionsApiSearchDefinitionsProductTypesRequest {\n /**\n * A comma-delimited list of Amazon marketplace identifiers for the request.\n */\n readonly marketplaceIds: Array<string>\n\n /**\n * A comma-delimited list of keywords to search product types. **Note:** Cannot be used with &#x60;itemName&#x60;.\n */\n readonly keywords?: Array<string>\n\n /**\n * Title of ASIN to get product type recommendation. **Note:** Cannot be used with &#x60;keywords&#x60;.\n */\n readonly itemName?: string\n\n /**\n * Locale for display names in response. Defaults to primary locale of the marketplace.\n */\n readonly locale?: string\n\n /**\n * Language used for &#x60;keywords&#x60; or &#x60;itemName&#x60; parameters. Defaults to primary locale of the marketplace.\n */\n readonly searchLocale?: string\n}\n\n/**\n * ProductTypeDefinitionsApi - object-oriented interface\n */\nexport class ProductTypeDefinitionsApi extends BaseAPI {\n /**\n * Retrieve an Amazon product type definition. **Usage Plans:** | Plan type | Rate (requests per second) | Burst | | ---- | ---- | ---- | |Default| 5 | 10 | |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](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).\n * @param {ProductTypeDefinitionsApiGetDefinitionsProductTypeRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n public getDefinitionsProductType(requestParameters: ProductTypeDefinitionsApiGetDefinitionsProductTypeRequest, options?: RawAxiosRequestConfig) {\n return ProductTypeDefinitionsApiFp(this.configuration).getDefinitionsProductType(requestParameters.productType, requestParameters.marketplaceIds, requestParameters.sellerId, requestParameters.productTypeVersion, requestParameters.requirements, requestParameters.requirementsEnforced, requestParameters.locale, requestParameters.parentageLevel, options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * Search for and return a list of Amazon product types that have definitions available. **Usage Plans:** | Plan type | Rate (requests per second) | Burst | | ---- | ---- | ---- | |Default| 5 | 10 | |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](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).\n * @param {ProductTypeDefinitionsApiSearchDefinitionsProductTypesRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n public searchDefinitionsProductTypes(requestParameters: ProductTypeDefinitionsApiSearchDefinitionsProductTypesRequest, options?: RawAxiosRequestConfig) {\n return ProductTypeDefinitionsApiFp(this.configuration).searchDefinitionsProductTypes(requestParameters.marketplaceIds, requestParameters.keywords, requestParameters.itemName, requestParameters.locale, requestParameters.searchLocale, options).then((request) => request(this.axios, this.basePath));\n }\n}\n\nexport const GetDefinitionsProductTypeRequirementsEnum = {\n Listing: 'LISTING',\n ListingProductOnly: 'LISTING_PRODUCT_ONLY',\n ListingOfferOnly: 'LISTING_OFFER_ONLY',\n} as const;\nexport type GetDefinitionsProductTypeRequirementsEnum = typeof GetDefinitionsProductTypeRequirementsEnum[keyof typeof GetDefinitionsProductTypeRequirementsEnum];\nexport const GetDefinitionsProductTypeRequirementsEnforcedEnum = {\n Enforced: 'ENFORCED',\n NotEnforced: 'NOT_ENFORCED',\n} as const;\nexport type GetDefinitionsProductTypeRequirementsEnforcedEnum = typeof GetDefinitionsProductTypeRequirementsEnforcedEnum[keyof typeof GetDefinitionsProductTypeRequirementsEnforcedEnum];\nexport const GetDefinitionsProductTypeLocaleEnum = {\n Default: 'DEFAULT',\n Ar: 'ar',\n ArAe: 'ar_AE',\n De: 'de',\n DeDe: 'de_DE',\n En: 'en',\n EnAe: 'en_AE',\n EnAu: 'en_AU',\n EnCa: 'en_CA',\n EnGb: 'en_GB',\n EnIn: 'en_IN',\n EnSg: 'en_SG',\n EnUs: 'en_US',\n Es: 'es',\n EsEs: 'es_ES',\n EsMx: 'es_MX',\n EsUs: 'es_US',\n Fr: 'fr',\n FrCa: 'fr_CA',\n FrFr: 'fr_FR',\n It: 'it',\n ItIt: 'it_IT',\n Ja: 'ja',\n JaJp: 'ja_JP',\n Nl: 'nl',\n NlNl: 'nl_NL',\n Pl: 'pl',\n PlPl: 'pl_PL',\n Pt: 'pt',\n PtBr: 'pt_BR',\n PtPt: 'pt_PT',\n Sv: 'sv',\n SvSe: 'sv_SE',\n Tr: 'tr',\n TrTr: 'tr_TR',\n Zh: 'zh',\n ZhCn: 'zh_CN',\n ZhTw: 'zh_TW',\n} as const;\nexport type GetDefinitionsProductTypeLocaleEnum = typeof GetDefinitionsProductTypeLocaleEnum[keyof typeof GetDefinitionsProductTypeLocaleEnum];\nexport const GetDefinitionsProductTypeParentageLevelEnum = {\n None: 'NONE',\n Child: 'CHILD',\n Parent: 'PARENT',\n} as const;\nexport type GetDefinitionsProductTypeParentageLevelEnum = typeof GetDefinitionsProductTypeParentageLevelEnum[keyof typeof GetDefinitionsProductTypeParentageLevelEnum];\n","/* tslint:disable */\n/* eslint-disable */\n/**\n * Selling Partner API for Product Type Definitions\n * The Selling Partner API for Product Type Definitions provides programmatic access to attribute and data requirements for product types in the Amazon catalog. Use this API to return the JSON Schema for a product type that you can then use with other Selling Partner APIs, such as the Selling Partner API for Listings Items, the Selling Partner API for Catalog Items, and the Selling Partner API for Feeds (for JSON-based listing feeds). For more information, see the [Product Type Definitions API Use Case Guide](https://developer-docs.amazon.com/sp-api/docs/product-type-api-use-case-guide).\n *\n * The version of the OpenAPI document: 2020-09-01\n * \n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\n\nimport type { Configuration } from './configuration.js';\n// Some imports not used depending on template conditions\n// @ts-ignore\nimport type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';\nimport globalAxios from 'axios';\n\nexport const BASE_PATH = \"https://sellingpartnerapi-na.amazon.com\".replace(/\\/+$/, \"\");\n\nexport const COLLECTION_FORMATS = {\n csv: \",\",\n ssv: \" \",\n tsv: \"\\t\",\n pipes: \"|\",\n};\n\nexport interface RequestArgs {\n url: string;\n options: RawAxiosRequestConfig;\n}\n\nexport class BaseAPI {\n protected configuration: Configuration | undefined;\n\n constructor(configuration?: Configuration, protected basePath: string = BASE_PATH, protected axios: AxiosInstance = globalAxios) {\n if (configuration) {\n this.configuration = configuration;\n this.basePath = configuration.basePath ?? basePath;\n }\n }\n};\n\nexport class RequiredError extends Error {\n constructor(public field: string, msg?: string) {\n super(msg);\n this.name = \"RequiredError\"\n }\n}\n\ninterface ServerMap {\n [key: string]: {\n url: string,\n description: string,\n }[];\n}\n\nexport const operationServerMap: ServerMap = {\n}\n","/* tslint:disable */\n/* eslint-disable */\n/**\n * Selling Partner API for Product Type Definitions\n * The Selling Partner API for Product Type Definitions provides programmatic access to attribute and data requirements for product types in the Amazon catalog. Use this API to return the JSON Schema for a product type that you can then use with other Selling Partner APIs, such as the Selling Partner API for Listings Items, the Selling Partner API for Catalog Items, and the Selling Partner API for Feeds (for JSON-based listing feeds). For more information, see the [Product Type Definitions API Use Case Guide](https://developer-docs.amazon.com/sp-api/docs/product-type-api-use-case-guide).\n *\n * The version of the OpenAPI document: 2020-09-01\n * \n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\nimport type { Configuration } from \"./configuration.js\";\nimport type { RequestArgs } from \"./base.js\";\nimport type { AxiosInstance, AxiosResponse } from 'axios';\nimport { RequiredError } from \"./base.js\";\n\nexport const DUMMY_BASE_URL = 'https://example.com'\n\n/**\n *\n * @throws {RequiredError}\n */\nexport const assertParamExists = function (functionName: string, paramName: string, paramValue: unknown) {\n if (paramValue === null || paramValue === undefined) {\n throw new RequiredError(paramName, `Required parameter ${paramName} was null or undefined when calling ${functionName}.`);\n }\n}\n\nexport const setApiKeyToObject = async function (object: any, keyParamName: string, configuration?: Configuration) {\n if (configuration && configuration.apiKey) {\n const localVarApiKeyValue = typeof configuration.apiKey === 'function'\n ? await configuration.apiKey(keyParamName)\n : await configuration.apiKey;\n object[keyParamName] = localVarApiKeyValue;\n }\n}\n\nexport const setBasicAuthToObject = function (object: any, configuration?: Configuration) {\n if (configuration && (configuration.username || configuration.password)) {\n object[\"auth\"] = { username: configuration.username, password: configuration.password };\n }\n}\n\nexport const setBearerAuthToObject = async function (object: any, configuration?: Configuration) {\n if (configuration && configuration.accessToken) {\n const accessToken = typeof configuration.accessToken === 'function'\n ? await configuration.accessToken()\n : await configuration.accessToken;\n object[\"Authorization\"] = \"Bearer \" + accessToken;\n }\n}\n\nexport const setOAuthToObject = async function (object: any, name: string, scopes: string[], configuration?: Configuration) {\n if (configuration && configuration.accessToken) {\n const localVarAccessTokenValue = typeof configuration.accessToken === 'function'\n ? await configuration.accessToken(name, scopes)\n : await configuration.accessToken;\n object[\"Authorization\"] = \"Bearer \" + localVarAccessTokenValue;\n }\n}\n\n\nfunction setFlattenedQueryParams(urlSearchParams: URLSearchParams, parameter: any, key: string = \"\"): void {\n if (parameter == null) return;\n if (typeof parameter === \"object\") {\n if (Array.isArray(parameter) || parameter instanceof Set) {\n (parameter as any[]).forEach(item => setFlattenedQueryParams(urlSearchParams, item, key));\n }\n else {\n Object.keys(parameter).forEach(currentKey =>\n setFlattenedQueryParams(urlSearchParams, parameter[currentKey], `${key}${key !== '' ? '.' : ''}${currentKey}`)\n );\n }\n }\n else {\n if (urlSearchParams.has(key)) {\n urlSearchParams.append(key, parameter);\n }\n else {\n urlSearchParams.set(key, parameter);\n }\n }\n}\n\nexport const setSearchParams = function (url: URL, ...objects: any[]) {\n const searchParams = new URLSearchParams(url.search);\n setFlattenedQueryParams(searchParams, objects);\n url.search = searchParams.toString();\n}\n\n/**\n * JSON serialization helper function which replaces instances of unserializable types with serializable ones.\n * This function will run for every key-value pair encountered by JSON.stringify while traversing an object.\n * Converting a set to a string will return an empty object, so an intermediate conversion to an array is required.\n */\n// @ts-ignore\nexport const replaceWithSerializableTypeIfNeeded = function(key: string, value: any) {\n if (value instanceof Set) {\n return Array.from(value);\n } else {\n return value;\n }\n}\n\nexport const serializeDataIfNeeded = function (value: any, requestOptions: any, configuration?: Configuration) {\n const nonString = typeof value !== 'string';\n const needsSerialization = nonString && configuration && configuration.isJsonMime\n ? configuration.isJsonMime(requestOptions.headers['Content-Type'])\n : nonString;\n return needsSerialization\n ? JSON.stringify(value !== undefined ? value : {}, replaceWithSerializableTypeIfNeeded)\n : (value || \"\");\n}\n\nexport const toPathString = function (url: URL) {\n return url.pathname + url.search + url.hash\n}\n\nexport const createRequestFunction = function (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) {\n return <T = unknown, R = AxiosResponse<T>>(axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {\n const axiosRequestArgs = {...axiosArgs.options, url: (axios.defaults.baseURL ? '' : configuration?.basePath ?? basePath) + axiosArgs.url};\n return axios.request<T, R>(axiosRequestArgs);\n };\n}\n","/* tslint:disable */\n/**\n * Selling Partner API for Product Type Definitions\n * The Selling Partner API for Product Type Definitions provides programmatic access to attribute and data requirements for product types in the Amazon catalog. Use this API to return the JSON Schema for a product type that you can then use with other Selling Partner APIs, such as the Selling Partner API for Listings Items, the Selling Partner API for Catalog Items, and the Selling Partner API for Feeds (for JSON-based listing feeds). For more information, see the [Product Type Definitions API Use Case Guide](https://developer-docs.amazon.com/sp-api/docs/product-type-api-use-case-guide).\n *\n * The version of the OpenAPI document: 2020-09-01\n * \n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\ninterface AWSv4Configuration {\n options?: {\n region?: string\n service?: string\n }\n credentials?: {\n accessKeyId?: string\n secretAccessKey?: string,\n sessionToken?: string\n }\n}\n\nexport interface ConfigurationParameters {\n apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);\n username?: string;\n password?: string;\n accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);\n awsv4?: AWSv4Configuration;\n basePath?: string;\n serverIndex?: number;\n baseOptions?: any;\n formDataCtor?: new () => any;\n}\n\nexport class Configuration {\n /**\n * parameter for apiKey security\n * @param name security name\n */\n apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);\n /**\n * parameter for basic security\n */\n username?: string;\n /**\n * parameter for basic security\n */\n password?: string;\n /**\n * parameter for oauth2 security\n * @param name security name\n * @param scopes oauth2 scope\n */\n accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);\n /**\n * parameter for aws4 signature security\n * @param {Object} AWS4Signature - AWS4 Signature security\n * @param {string} options.region - aws region\n * @param {string} options.service - name of the service.\n * @param {string} credentials.accessKeyId - aws access key id\n * @param {string} credentials.secretAccessKey - aws access key\n * @param {string} credentials.sessionToken - aws session token\n * @memberof Configuration\n */\n awsv4?: AWSv4Configuration;\n /**\n * override base path\n */\n basePath?: string;\n /**\n * override server index\n */\n serverIndex?: number;\n /**\n * base options for axios calls\n */\n baseOptions?: any;\n /**\n * The FormData constructor that will be used to create multipart form data\n * requests. You can inject this here so that execution environments that\n * do not support the FormData class can still run the generated client.\n *\n * @type {new () => FormData}\n */\n formDataCtor?: new () => any;\n\n constructor(param: ConfigurationParameters = {}) {\n this.apiKey = param.apiKey;\n this.username = param.username;\n this.password = param.password;\n this.accessToken = param.accessToken;\n this.awsv4 = param.awsv4;\n this.basePath = param.basePath;\n this.serverIndex = param.serverIndex;\n this.baseOptions = {\n ...param.baseOptions,\n headers: {\n ...param.baseOptions?.headers,\n },\n };\n this.formDataCtor = param.formDataCtor;\n }\n\n /**\n * Check if the given MIME is a JSON MIME.\n * JSON MIME examples:\n * application/json\n * application/json; charset=UTF8\n * APPLICATION/JSON\n * application/vnd.company+json\n * @param mime - MIME (Multipurpose Internet Mail Extensions)\n * @return True if the given MIME is JSON, false otherwise.\n */\n public isJsonMime(mime: string): boolean {\n const jsonMime: RegExp = /^(application\\/json|[^;/ \\t]+\\/[^;/ \\t]+[+]json)[ \\t]*(;.*)?$/i;\n return mime !== null && jsonMime.test(mime);\n }\n}\n","/* tslint:disable */\n/* eslint-disable */\n/**\n * Selling Partner API for Product Type Definitions\n * The Selling Partner API for Product Type Definitions provides programmatic access to attribute and data requirements for product types in the Amazon catalog. Use this API to return the JSON Schema for a product type that you can then use with other Selling Partner APIs, such as the Selling Partner API for Listings Items, the Selling Partner API for Catalog Items, and the Selling Partner API for Feeds (for JSON-based listing feeds). For more information, see the [Product Type Definitions API Use Case Guide](https://developer-docs.amazon.com/sp-api/docs/product-type-api-use-case-guide).\n *\n * The version of the OpenAPI document: 2020-09-01\n * \n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\n\n// May contain unused imports in some cases\n// @ts-ignore\nimport type { ProductTypeVersion } from './product-type-version.js';\n// May contain unused imports in some cases\n// @ts-ignore\nimport type { PropertyGroup } from './property-group.js';\n// May contain unused imports in some cases\n// @ts-ignore\nimport type { SchemaLink } from './schema-link.js';\n\n/**\n * A product type definition represents the attributes and data requirements for a product type in the Amazon catalog. Product type definitions are used interchangeably between the Selling Partner API for Listings Items, Selling Partner API for Catalog Items, and JSON-based listings feeds in the Selling Partner API for Feeds.\n */\nexport interface ProductTypeDefinition {\n 'metaSchema'?: SchemaLink;\n 'schema': SchemaLink;\n /**\n * Name of the requirements set represented in this product type definition.\n */\n 'requirements': ProductTypeDefinitionRequirementsEnum;\n /**\n * Identifies if the required attributes for a requirements set are enforced by the product type definition schema. Non-enforced requirements enable structural validation of individual attributes without all of the required attributes being present (such as for partial updates).\n */\n 'requirementsEnforced': ProductTypeDefinitionRequirementsEnforcedEnum;\n /**\n * Mapping of property group names to property groups. Property groups represent logical groupings of schema properties that can be used for display or informational purposes.\n */\n 'propertyGroups': { [key: string]: PropertyGroup; };\n /**\n * Locale of the display elements contained in the product type definition.\n */\n 'locale': string;\n /**\n * Amazon marketplace identifiers for which the product type definition is applicable.\n */\n 'marketplaceIds': Array<string>;\n /**\n * The name of the Amazon product type that this product type definition applies to.\n */\n 'productType': string;\n /**\n * Human-readable and localized description of the Amazon product type.\n */\n 'displayName': string;\n 'productTypeVersion': ProductTypeVersion;\n}\n\nexport const ProductTypeDefinitionRequirementsEnum = {\n Listing: 'LISTING',\n ListingProductOnly: 'LISTING_PRODUCT_ONLY',\n ListingOfferOnly: 'LISTING_OFFER_ONLY',\n} as const;\n\nexport type ProductTypeDefinitionRequirementsEnum = typeof ProductTypeDefinitionRequirementsEnum[keyof typeof ProductTypeDefinitionRequirementsEnum];\nexport const ProductTypeDefinitionRequirementsEnforcedEnum = {\n Enforced: 'ENFORCED',\n NotEnforced: 'NOT_ENFORCED',\n} as const;\n\nexport type ProductTypeDefinitionRequirementsEnforcedEnum = typeof ProductTypeDefinitionRequirementsEnforcedEnum[keyof typeof ProductTypeDefinitionRequirementsEnforcedEnum];\n\n\n","/* tslint:disable */\n/* eslint-disable */\n/**\n * Selling Partner API for Product Type Definitions\n * The Selling Partner API for Product Type Definitions provides programmatic access to attribute and data requirements for product types in the Amazon catalog. Use this API to return the JSON Schema for a product type that you can then use with other Selling Partner APIs, such as the Selling Partner API for Listings Items, the Selling Partner API for Catalog Items, and the Selling Partner API for Feeds (for JSON-based listing feeds). For more information, see the [Product Type Definitions API Use Case Guide](https://developer-docs.amazon.com/sp-api/docs/product-type-api-use-case-guide).\n *\n * The version of the OpenAPI document: 2020-09-01\n * \n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\n\n\n/**\n * Link to retrieve the schema.\n */\nexport interface SchemaLinkLink {\n /**\n * URI resource for the link.\n */\n 'resource': string;\n /**\n * HTTP method for the link operation.\n */\n 'verb': SchemaLinkLinkVerbEnum;\n}\n\nexport const SchemaLinkLinkVerbEnum = {\n Get: 'GET',\n} as const;\n\nexport type SchemaLinkLinkVerbEnum = typeof SchemaLinkLinkVerbEnum[keyof typeof SchemaLinkLinkVerbEnum];\n\n\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,IAAAA,iBAA4E;;;ACiB5E,IAAAC,gBAAwB;;;ACExB,mBAAwB;AAEjB,IAAM,YAAY,0CAA0C,QAAQ,QAAQ,EAAE;AAE9E,IAAM,qBAAqB;AAAA,EAC9B,KAAK;AAAA,EACL,KAAK;AAAA,EACL,KAAK;AAAA,EACL,OAAO;AACX;AAOO,IAAM,UAAN,MAAc;AAAA,EAGjB,YAAY,eAAyC,WAAmB,WAAqB,QAAuB,aAAAC,SAAa;AAA5E;AAAwC;AACzF,QAAI,eAAe;AACf,WAAK,gBAAgB;AACrB,WAAK,WAAW,cAAc,YAAY;AAAA,IAC9C;AAAA,EACJ;AAAA,EALqD;AAAA,EAAwC;AAAA,EAFnF;AAQd;AAEO,IAAM,gBAAN,cAA4B,MAAM;AAAA,EACrC,YAAmB,OAAe,KAAc;AAC5C,UAAM,GAAG;AADM;AAEf,SAAK,OAAO;AAAA,EAChB;AAAA,EAHmB;AAIvB;AASO,IAAM,qBAAgC,CAC7C;;;AC1CO,IAAM,iBAAiB;AAMvB,IAAM,oBAAoB,SAAU,cAAsB,WAAmB,YAAqB;AACrG,MAAI,eAAe,QAAQ,eAA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ACnB,SAAK,WAAW,MAAM;AACtB,SAAK,cAAc,MAAM;AACzB,SAAK,cAAc;AAAA,MACf,GAAG,MAAM;AAAA,MACT,SAAS;AAAA,QACL,GAAG,MAAM,aAAa;AAAA,MAC1B;AAAA,IACJ;AACA,SAAK,eAAe,MAAM;AAAA,EAC9B;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAYO,WAAW,MAAuB;AACrC,UAAM,WAAmB;AACzB,WAAO,SAAS,QAAQ,SAAS,KAAK,IAAI;AAAA,EAC9C;AACJ;;;AC1DO,IAAM,wCAAwC;AAAA,EACjD,SAAS;AAAA,EACT,oBAAoB;AAAA,EACpB,kBAAkB;AACtB;AAGO,IAAM,gDAAgD;AAAA,EACzD,UAAU;AAAA,EACV,aAAa;AACjB;;;AC1CO,IAAM,yBAAyB;AAAA,EAClC,KAAK;AACT;;;AN5BO,IAAM,mBAAgC;AAAA,EAC3C;AAAA,IACE,QAAQ;AAAA;AAAA,IAER,UAAU,IAAI,OAAO,wCAAwC;AAAA,IAC7D,MAAM;AAAA,IACN,OAAO;AAAA,EACT;AAAA,EACA;AAAA,IACE,QAAQ;AAAA;AAAA,IAER,UAAU,IAAI,OAAO,8CAA8C;AAAA,IACnE,MAAM;AAAA,IACN,OAAO;AAAA,EACT;AACF;AAEO,IAAM,kCAAN,cAA8C,0BAA0B;AAAA,EAC7E,YAAY,eAAoC;AAC9C,UAAM,EAAC,OAAO,SAAQ,QAAI,oCAAoB,eAAe,gBAAgB;AAE7E,UAAM,IAAI,cAAc,GAAG,UAAU,KAAK;AAAA,EAC5C;AACF;","names":["import_common","import_axios","globalAxios","globalAxios","BASE_PATH","globalAxios"]}
package/dist/index.d.cts CHANGED
@@ -138,6 +138,9 @@ declare class BaseAPI {
138
138
  * A list of error responses returned when a request is unsuccessful.
139
139
  */
140
140
  interface ErrorList {
141
+ /**
142
+ * A list of error responses.
143
+ */
141
144
  'errors': Array<Error>;
142
145
  }
143
146
 
@@ -190,7 +193,7 @@ interface ProductType {
190
193
  */
191
194
  'name': string;
192
195
  /**
193
- * The human-readable and localized description of the Amazon product type.
196
+ * Human-readable and localized description of the Amazon product type.
194
197
  */
195
198
  'displayName': string;
196
199
  /**
@@ -298,10 +301,13 @@ type SchemaLinkLinkVerbEnum = typeof SchemaLinkLinkVerbEnum[keyof typeof SchemaL
298
301
  * Do not edit the class manually.
299
302
  */
300
303
 
304
+ /**
305
+ * A link to metadata schema.
306
+ */
301
307
  interface SchemaLink {
302
308
  'link': SchemaLinkLink;
303
309
  /**
304
- * Checksum hash of the schema (Base64 MD5). Can be used to verify schema contents, identify changes between schema versions, and for caching.
310
+ * Checksum hash of the schema (Base64 MD5). Use this to verify schema contents, identify changes between schema versions, and for caching.
305
311
  */
306
312
  'checksum': string;
307
313
  }
@@ -384,6 +390,9 @@ type ProductTypeDefinitionRequirementsEnforcedEnum = typeof ProductTypeDefinitio
384
390
  * A list of Amazon product types with definitions available.
385
391
  */
386
392
  interface ProductTypeList {
393
+ /**
394
+ * A list of product types.
395
+ */
387
396
  'productTypes': Array<ProductType>;
388
397
  /**
389
398
  * Amazon product type version identifier.
@@ -400,21 +409,22 @@ declare const ProductTypeDefinitionsApiAxiosParamCreator: (configuration?: Confi
400
409
  * @param {string} productType The Amazon product type name.
401
410
  * @param {Array<string>} marketplaceIds A comma-delimited list of Amazon marketplace identifiers for the request. Note: This parameter is limited to one marketplaceId at this time.
402
411
  * @param {string} [sellerId] A selling partner identifier. When provided, seller-specific requirements and values are populated within the product type definition schema, such as brand names associated with the selling partner.
403
- * @param {string} [productTypeVersion] The version of the Amazon product type to retrieve. Defaults to \&quot;LATEST\&quot;,. Prerelease versions of product type definitions may be retrieved with \&quot;RELEASE_CANDIDATE\&quot;. If no prerelease version is currently available, the \&quot;LATEST\&quot; live version will be provided.
412
+ * @param {string} [productTypeVersion] The version of the Amazon product type to retrieve. Defaults to \&quot;LATEST\&quot;. Prerelease versions of product type definitions may be retrieved with \&quot;RELEASE_CANDIDATE\&quot;. If no prerelease version is currently available, the \&quot;LATEST\&quot; live version will be provided.
404
413
  * @param {GetDefinitionsProductTypeRequirementsEnum} [requirements] The name of the requirements set to retrieve requirements for.
405
414
  * @param {GetDefinitionsProductTypeRequirementsEnforcedEnum} [requirementsEnforced] Identifies if the required attributes for a requirements set are enforced by the product type definition schema. Non-enforced requirements enable structural validation of individual attributes without all the required attributes being present (such as for partial updates).
406
415
  * @param {GetDefinitionsProductTypeLocaleEnum} [locale] Locale for retrieving display labels and other presentation details. Defaults to the default language of the first marketplace in the request.
416
+ * @param {GetDefinitionsProductTypeParentageLevelEnum} [parentageLevel] The parentage level of the listing to retrieve a schema for. When provided, the schema is simplified by resolving all conditional logic related to the specified parentage level, resulting in a smaller schema with fewer conditions.
407
417
  * @param {*} [options] Override http request option.
408
418
  * @throws {RequiredError}
409
419
  */
410
- getDefinitionsProductType: (productType: string, marketplaceIds: Array<string>, sellerId?: string, productTypeVersion?: string, requirements?: GetDefinitionsProductTypeRequirementsEnum, requirementsEnforced?: GetDefinitionsProductTypeRequirementsEnforcedEnum, locale?: GetDefinitionsProductTypeLocaleEnum, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
420
+ getDefinitionsProductType: (productType: string, marketplaceIds: Array<string>, sellerId?: string, productTypeVersion?: string, requirements?: GetDefinitionsProductTypeRequirementsEnum, requirementsEnforced?: GetDefinitionsProductTypeRequirementsEnforcedEnum, locale?: GetDefinitionsProductTypeLocaleEnum, parentageLevel?: GetDefinitionsProductTypeParentageLevelEnum, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
411
421
  /**
412
422
  * Search for and return a list of Amazon product types that have definitions available. **Usage Plans:** | Plan type | Rate (requests per second) | Burst | | ---- | ---- | ---- | |Default| 5 | 10 | |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](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
413
423
  * @param {Array<string>} marketplaceIds A comma-delimited list of Amazon marketplace identifiers for the request.
414
424
  * @param {Array<string>} [keywords] A comma-delimited list of keywords to search product types. **Note:** Cannot be used with &#x60;itemName&#x60;.
415
- * @param {string} [itemName] The title of the ASIN to get the product type recommendation. **Note:** Cannot be used with &#x60;keywords&#x60;.
416
- * @param {string} [locale] The locale for the display names in the response. Defaults to the primary locale of the marketplace.
417
- * @param {string} [searchLocale] The locale used for the &#x60;keywords&#x60; and &#x60;itemName&#x60; parameters. Defaults to the primary locale of the marketplace.
425
+ * @param {string} [itemName] Title of ASIN to get product type recommendation. **Note:** Cannot be used with &#x60;keywords&#x60;.
426
+ * @param {string} [locale] Locale for display names in response. Defaults to primary locale of the marketplace.
427
+ * @param {string} [searchLocale] Language used for &#x60;keywords&#x60; or &#x60;itemName&#x60; parameters. Defaults to primary locale of the marketplace.
418
428
  * @param {*} [options] Override http request option.
419
429
  * @throws {RequiredError}
420
430
  */
@@ -429,21 +439,22 @@ declare const ProductTypeDefinitionsApiFp: (configuration?: Configuration) => {
429
439
  * @param {string} productType The Amazon product type name.
430
440
  * @param {Array<string>} marketplaceIds A comma-delimited list of Amazon marketplace identifiers for the request. Note: This parameter is limited to one marketplaceId at this time.
431
441
  * @param {string} [sellerId] A selling partner identifier. When provided, seller-specific requirements and values are populated within the product type definition schema, such as brand names associated with the selling partner.
432
- * @param {string} [productTypeVersion] The version of the Amazon product type to retrieve. Defaults to \&quot;LATEST\&quot;,. Prerelease versions of product type definitions may be retrieved with \&quot;RELEASE_CANDIDATE\&quot;. If no prerelease version is currently available, the \&quot;LATEST\&quot; live version will be provided.
442
+ * @param {string} [productTypeVersion] The version of the Amazon product type to retrieve. Defaults to \&quot;LATEST\&quot;. Prerelease versions of product type definitions may be retrieved with \&quot;RELEASE_CANDIDATE\&quot;. If no prerelease version is currently available, the \&quot;LATEST\&quot; live version will be provided.
433
443
  * @param {GetDefinitionsProductTypeRequirementsEnum} [requirements] The name of the requirements set to retrieve requirements for.
434
444
  * @param {GetDefinitionsProductTypeRequirementsEnforcedEnum} [requirementsEnforced] Identifies if the required attributes for a requirements set are enforced by the product type definition schema. Non-enforced requirements enable structural validation of individual attributes without all the required attributes being present (such as for partial updates).
435
445
  * @param {GetDefinitionsProductTypeLocaleEnum} [locale] Locale for retrieving display labels and other presentation details. Defaults to the default language of the first marketplace in the request.
446
+ * @param {GetDefinitionsProductTypeParentageLevelEnum} [parentageLevel] The parentage level of the listing to retrieve a schema for. When provided, the schema is simplified by resolving all conditional logic related to the specified parentage level, resulting in a smaller schema with fewer conditions.
436
447
  * @param {*} [options] Override http request option.
437
448
  * @throws {RequiredError}
438
449
  */
439
- getDefinitionsProductType(productType: string, marketplaceIds: Array<string>, sellerId?: string, productTypeVersion?: string, requirements?: GetDefinitionsProductTypeRequirementsEnum, requirementsEnforced?: GetDefinitionsProductTypeRequirementsEnforcedEnum, locale?: GetDefinitionsProductTypeLocaleEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProductTypeDefinition>>;
450
+ getDefinitionsProductType(productType: string, marketplaceIds: Array<string>, sellerId?: string, productTypeVersion?: string, requirements?: GetDefinitionsProductTypeRequirementsEnum, requirementsEnforced?: GetDefinitionsProductTypeRequirementsEnforcedEnum, locale?: GetDefinitionsProductTypeLocaleEnum, parentageLevel?: GetDefinitionsProductTypeParentageLevelEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProductTypeDefinition>>;
440
451
  /**
441
452
  * Search for and return a list of Amazon product types that have definitions available. **Usage Plans:** | Plan type | Rate (requests per second) | Burst | | ---- | ---- | ---- | |Default| 5 | 10 | |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](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
442
453
  * @param {Array<string>} marketplaceIds A comma-delimited list of Amazon marketplace identifiers for the request.
443
454
  * @param {Array<string>} [keywords] A comma-delimited list of keywords to search product types. **Note:** Cannot be used with &#x60;itemName&#x60;.
444
- * @param {string} [itemName] The title of the ASIN to get the product type recommendation. **Note:** Cannot be used with &#x60;keywords&#x60;.
445
- * @param {string} [locale] The locale for the display names in the response. Defaults to the primary locale of the marketplace.
446
- * @param {string} [searchLocale] The locale used for the &#x60;keywords&#x60; and &#x60;itemName&#x60; parameters. Defaults to the primary locale of the marketplace.
455
+ * @param {string} [itemName] Title of ASIN to get product type recommendation. **Note:** Cannot be used with &#x60;keywords&#x60;.
456
+ * @param {string} [locale] Locale for display names in response. Defaults to primary locale of the marketplace.
457
+ * @param {string} [searchLocale] Language used for &#x60;keywords&#x60; or &#x60;itemName&#x60; parameters. Defaults to primary locale of the marketplace.
447
458
  * @param {*} [options] Override http request option.
448
459
  * @throws {RequiredError}
449
460
  */
@@ -485,7 +496,7 @@ interface ProductTypeDefinitionsApiGetDefinitionsProductTypeRequest {
485
496
  */
486
497
  readonly sellerId?: string;
487
498
  /**
488
- * The version of the Amazon product type to retrieve. Defaults to \&quot;LATEST\&quot;,. Prerelease versions of product type definitions may be retrieved with \&quot;RELEASE_CANDIDATE\&quot;. If no prerelease version is currently available, the \&quot;LATEST\&quot; live version will be provided.
499
+ * The version of the Amazon product type to retrieve. Defaults to \&quot;LATEST\&quot;. Prerelease versions of product type definitions may be retrieved with \&quot;RELEASE_CANDIDATE\&quot;. If no prerelease version is currently available, the \&quot;LATEST\&quot; live version will be provided.
489
500
  */
490
501
  readonly productTypeVersion?: string;
491
502
  /**
@@ -500,6 +511,10 @@ interface ProductTypeDefinitionsApiGetDefinitionsProductTypeRequest {
500
511
  * Locale for retrieving display labels and other presentation details. Defaults to the default language of the first marketplace in the request.
501
512
  */
502
513
  readonly locale?: GetDefinitionsProductTypeLocaleEnum;
514
+ /**
515
+ * The parentage level of the listing to retrieve a schema for. When provided, the schema is simplified by resolving all conditional logic related to the specified parentage level, resulting in a smaller schema with fewer conditions.
516
+ */
517
+ readonly parentageLevel?: GetDefinitionsProductTypeParentageLevelEnum;
503
518
  }
504
519
  /**
505
520
  * Request parameters for searchDefinitionsProductTypes operation in ProductTypeDefinitionsApi.
@@ -514,15 +529,15 @@ interface ProductTypeDefinitionsApiSearchDefinitionsProductTypesRequest {
514
529
  */
515
530
  readonly keywords?: Array<string>;
516
531
  /**
517
- * The title of the ASIN to get the product type recommendation. **Note:** Cannot be used with &#x60;keywords&#x60;.
532
+ * Title of ASIN to get product type recommendation. **Note:** Cannot be used with &#x60;keywords&#x60;.
518
533
  */
519
534
  readonly itemName?: string;
520
535
  /**
521
- * The locale for the display names in the response. Defaults to the primary locale of the marketplace.
536
+ * Locale for display names in response. Defaults to primary locale of the marketplace.
522
537
  */
523
538
  readonly locale?: string;
524
539
  /**
525
- * The locale used for the &#x60;keywords&#x60; and &#x60;itemName&#x60; parameters. Defaults to the primary locale of the marketplace.
540
+ * Language used for &#x60;keywords&#x60; or &#x60;itemName&#x60; parameters. Defaults to primary locale of the marketplace.
526
541
  */
527
542
  readonly searchLocale?: string;
528
543
  }
@@ -597,10 +612,16 @@ declare const GetDefinitionsProductTypeLocaleEnum: {
597
612
  readonly ZhTw: "zh_TW";
598
613
  };
599
614
  type GetDefinitionsProductTypeLocaleEnum = typeof GetDefinitionsProductTypeLocaleEnum[keyof typeof GetDefinitionsProductTypeLocaleEnum];
615
+ declare const GetDefinitionsProductTypeParentageLevelEnum: {
616
+ readonly None: "NONE";
617
+ readonly Child: "CHILD";
618
+ readonly Parent: "PARENT";
619
+ };
620
+ type GetDefinitionsProductTypeParentageLevelEnum = typeof GetDefinitionsProductTypeParentageLevelEnum[keyof typeof GetDefinitionsProductTypeParentageLevelEnum];
600
621
 
601
622
  declare const clientRateLimits: RateLimit[];
602
623
  declare class ProductTypeDefinitionsApiClient extends ProductTypeDefinitionsApi {
603
624
  constructor(configuration: ClientConfiguration);
604
625
  }
605
626
 
606
- export { type ErrorList, GetDefinitionsProductTypeLocaleEnum, GetDefinitionsProductTypeRequirementsEnforcedEnum, GetDefinitionsProductTypeRequirementsEnum, type ModelError, type ProductType, type ProductTypeDefinition, ProductTypeDefinitionRequirementsEnforcedEnum, ProductTypeDefinitionRequirementsEnum, ProductTypeDefinitionsApi, ProductTypeDefinitionsApiAxiosParamCreator, ProductTypeDefinitionsApiClient, ProductTypeDefinitionsApiFactory, ProductTypeDefinitionsApiFp, type ProductTypeDefinitionsApiGetDefinitionsProductTypeRequest, type ProductTypeDefinitionsApiSearchDefinitionsProductTypesRequest, type ProductTypeList, type ProductTypeVersion, type PropertyGroup, type SchemaLink, type SchemaLinkLink, SchemaLinkLinkVerbEnum, clientRateLimits };
627
+ export { type ErrorList, GetDefinitionsProductTypeLocaleEnum, GetDefinitionsProductTypeParentageLevelEnum, GetDefinitionsProductTypeRequirementsEnforcedEnum, GetDefinitionsProductTypeRequirementsEnum, type ModelError, type ProductType, type ProductTypeDefinition, ProductTypeDefinitionRequirementsEnforcedEnum, ProductTypeDefinitionRequirementsEnum, ProductTypeDefinitionsApi, ProductTypeDefinitionsApiAxiosParamCreator, ProductTypeDefinitionsApiClient, ProductTypeDefinitionsApiFactory, ProductTypeDefinitionsApiFp, type ProductTypeDefinitionsApiGetDefinitionsProductTypeRequest, type ProductTypeDefinitionsApiSearchDefinitionsProductTypesRequest, type ProductTypeList, type ProductTypeVersion, type PropertyGroup, type SchemaLink, type SchemaLinkLink, SchemaLinkLinkVerbEnum, clientRateLimits };
package/dist/index.d.ts CHANGED
@@ -138,6 +138,9 @@ declare class BaseAPI {
138
138
  * A list of error responses returned when a request is unsuccessful.
139
139
  */
140
140
  interface ErrorList {
141
+ /**
142
+ * A list of error responses.
143
+ */
141
144
  'errors': Array<Error>;
142
145
  }
143
146
 
@@ -190,7 +193,7 @@ interface ProductType {
190
193
  */
191
194
  'name': string;
192
195
  /**
193
- * The human-readable and localized description of the Amazon product type.
196
+ * Human-readable and localized description of the Amazon product type.
194
197
  */
195
198
  'displayName': string;
196
199
  /**
@@ -298,10 +301,13 @@ type SchemaLinkLinkVerbEnum = typeof SchemaLinkLinkVerbEnum[keyof typeof SchemaL
298
301
  * Do not edit the class manually.
299
302
  */
300
303
 
304
+ /**
305
+ * A link to metadata schema.
306
+ */
301
307
  interface SchemaLink {
302
308
  'link': SchemaLinkLink;
303
309
  /**
304
- * Checksum hash of the schema (Base64 MD5). Can be used to verify schema contents, identify changes between schema versions, and for caching.
310
+ * Checksum hash of the schema (Base64 MD5). Use this to verify schema contents, identify changes between schema versions, and for caching.
305
311
  */
306
312
  'checksum': string;
307
313
  }
@@ -384,6 +390,9 @@ type ProductTypeDefinitionRequirementsEnforcedEnum = typeof ProductTypeDefinitio
384
390
  * A list of Amazon product types with definitions available.
385
391
  */
386
392
  interface ProductTypeList {
393
+ /**
394
+ * A list of product types.
395
+ */
387
396
  'productTypes': Array<ProductType>;
388
397
  /**
389
398
  * Amazon product type version identifier.
@@ -400,21 +409,22 @@ declare const ProductTypeDefinitionsApiAxiosParamCreator: (configuration?: Confi
400
409
  * @param {string} productType The Amazon product type name.
401
410
  * @param {Array<string>} marketplaceIds A comma-delimited list of Amazon marketplace identifiers for the request. Note: This parameter is limited to one marketplaceId at this time.
402
411
  * @param {string} [sellerId] A selling partner identifier. When provided, seller-specific requirements and values are populated within the product type definition schema, such as brand names associated with the selling partner.
403
- * @param {string} [productTypeVersion] The version of the Amazon product type to retrieve. Defaults to \&quot;LATEST\&quot;,. Prerelease versions of product type definitions may be retrieved with \&quot;RELEASE_CANDIDATE\&quot;. If no prerelease version is currently available, the \&quot;LATEST\&quot; live version will be provided.
412
+ * @param {string} [productTypeVersion] The version of the Amazon product type to retrieve. Defaults to \&quot;LATEST\&quot;. Prerelease versions of product type definitions may be retrieved with \&quot;RELEASE_CANDIDATE\&quot;. If no prerelease version is currently available, the \&quot;LATEST\&quot; live version will be provided.
404
413
  * @param {GetDefinitionsProductTypeRequirementsEnum} [requirements] The name of the requirements set to retrieve requirements for.
405
414
  * @param {GetDefinitionsProductTypeRequirementsEnforcedEnum} [requirementsEnforced] Identifies if the required attributes for a requirements set are enforced by the product type definition schema. Non-enforced requirements enable structural validation of individual attributes without all the required attributes being present (such as for partial updates).
406
415
  * @param {GetDefinitionsProductTypeLocaleEnum} [locale] Locale for retrieving display labels and other presentation details. Defaults to the default language of the first marketplace in the request.
416
+ * @param {GetDefinitionsProductTypeParentageLevelEnum} [parentageLevel] The parentage level of the listing to retrieve a schema for. When provided, the schema is simplified by resolving all conditional logic related to the specified parentage level, resulting in a smaller schema with fewer conditions.
407
417
  * @param {*} [options] Override http request option.
408
418
  * @throws {RequiredError}
409
419
  */
410
- getDefinitionsProductType: (productType: string, marketplaceIds: Array<string>, sellerId?: string, productTypeVersion?: string, requirements?: GetDefinitionsProductTypeRequirementsEnum, requirementsEnforced?: GetDefinitionsProductTypeRequirementsEnforcedEnum, locale?: GetDefinitionsProductTypeLocaleEnum, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
420
+ getDefinitionsProductType: (productType: string, marketplaceIds: Array<string>, sellerId?: string, productTypeVersion?: string, requirements?: GetDefinitionsProductTypeRequirementsEnum, requirementsEnforced?: GetDefinitionsProductTypeRequirementsEnforcedEnum, locale?: GetDefinitionsProductTypeLocaleEnum, parentageLevel?: GetDefinitionsProductTypeParentageLevelEnum, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
411
421
  /**
412
422
  * Search for and return a list of Amazon product types that have definitions available. **Usage Plans:** | Plan type | Rate (requests per second) | Burst | | ---- | ---- | ---- | |Default| 5 | 10 | |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](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
413
423
  * @param {Array<string>} marketplaceIds A comma-delimited list of Amazon marketplace identifiers for the request.
414
424
  * @param {Array<string>} [keywords] A comma-delimited list of keywords to search product types. **Note:** Cannot be used with &#x60;itemName&#x60;.
415
- * @param {string} [itemName] The title of the ASIN to get the product type recommendation. **Note:** Cannot be used with &#x60;keywords&#x60;.
416
- * @param {string} [locale] The locale for the display names in the response. Defaults to the primary locale of the marketplace.
417
- * @param {string} [searchLocale] The locale used for the &#x60;keywords&#x60; and &#x60;itemName&#x60; parameters. Defaults to the primary locale of the marketplace.
425
+ * @param {string} [itemName] Title of ASIN to get product type recommendation. **Note:** Cannot be used with &#x60;keywords&#x60;.
426
+ * @param {string} [locale] Locale for display names in response. Defaults to primary locale of the marketplace.
427
+ * @param {string} [searchLocale] Language used for &#x60;keywords&#x60; or &#x60;itemName&#x60; parameters. Defaults to primary locale of the marketplace.
418
428
  * @param {*} [options] Override http request option.
419
429
  * @throws {RequiredError}
420
430
  */
@@ -429,21 +439,22 @@ declare const ProductTypeDefinitionsApiFp: (configuration?: Configuration) => {
429
439
  * @param {string} productType The Amazon product type name.
430
440
  * @param {Array<string>} marketplaceIds A comma-delimited list of Amazon marketplace identifiers for the request. Note: This parameter is limited to one marketplaceId at this time.
431
441
  * @param {string} [sellerId] A selling partner identifier. When provided, seller-specific requirements and values are populated within the product type definition schema, such as brand names associated with the selling partner.
432
- * @param {string} [productTypeVersion] The version of the Amazon product type to retrieve. Defaults to \&quot;LATEST\&quot;,. Prerelease versions of product type definitions may be retrieved with \&quot;RELEASE_CANDIDATE\&quot;. If no prerelease version is currently available, the \&quot;LATEST\&quot; live version will be provided.
442
+ * @param {string} [productTypeVersion] The version of the Amazon product type to retrieve. Defaults to \&quot;LATEST\&quot;. Prerelease versions of product type definitions may be retrieved with \&quot;RELEASE_CANDIDATE\&quot;. If no prerelease version is currently available, the \&quot;LATEST\&quot; live version will be provided.
433
443
  * @param {GetDefinitionsProductTypeRequirementsEnum} [requirements] The name of the requirements set to retrieve requirements for.
434
444
  * @param {GetDefinitionsProductTypeRequirementsEnforcedEnum} [requirementsEnforced] Identifies if the required attributes for a requirements set are enforced by the product type definition schema. Non-enforced requirements enable structural validation of individual attributes without all the required attributes being present (such as for partial updates).
435
445
  * @param {GetDefinitionsProductTypeLocaleEnum} [locale] Locale for retrieving display labels and other presentation details. Defaults to the default language of the first marketplace in the request.
446
+ * @param {GetDefinitionsProductTypeParentageLevelEnum} [parentageLevel] The parentage level of the listing to retrieve a schema for. When provided, the schema is simplified by resolving all conditional logic related to the specified parentage level, resulting in a smaller schema with fewer conditions.
436
447
  * @param {*} [options] Override http request option.
437
448
  * @throws {RequiredError}
438
449
  */
439
- getDefinitionsProductType(productType: string, marketplaceIds: Array<string>, sellerId?: string, productTypeVersion?: string, requirements?: GetDefinitionsProductTypeRequirementsEnum, requirementsEnforced?: GetDefinitionsProductTypeRequirementsEnforcedEnum, locale?: GetDefinitionsProductTypeLocaleEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProductTypeDefinition>>;
450
+ getDefinitionsProductType(productType: string, marketplaceIds: Array<string>, sellerId?: string, productTypeVersion?: string, requirements?: GetDefinitionsProductTypeRequirementsEnum, requirementsEnforced?: GetDefinitionsProductTypeRequirementsEnforcedEnum, locale?: GetDefinitionsProductTypeLocaleEnum, parentageLevel?: GetDefinitionsProductTypeParentageLevelEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProductTypeDefinition>>;
440
451
  /**
441
452
  * Search for and return a list of Amazon product types that have definitions available. **Usage Plans:** | Plan type | Rate (requests per second) | Burst | | ---- | ---- | ---- | |Default| 5 | 10 | |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](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
442
453
  * @param {Array<string>} marketplaceIds A comma-delimited list of Amazon marketplace identifiers for the request.
443
454
  * @param {Array<string>} [keywords] A comma-delimited list of keywords to search product types. **Note:** Cannot be used with &#x60;itemName&#x60;.
444
- * @param {string} [itemName] The title of the ASIN to get the product type recommendation. **Note:** Cannot be used with &#x60;keywords&#x60;.
445
- * @param {string} [locale] The locale for the display names in the response. Defaults to the primary locale of the marketplace.
446
- * @param {string} [searchLocale] The locale used for the &#x60;keywords&#x60; and &#x60;itemName&#x60; parameters. Defaults to the primary locale of the marketplace.
455
+ * @param {string} [itemName] Title of ASIN to get product type recommendation. **Note:** Cannot be used with &#x60;keywords&#x60;.
456
+ * @param {string} [locale] Locale for display names in response. Defaults to primary locale of the marketplace.
457
+ * @param {string} [searchLocale] Language used for &#x60;keywords&#x60; or &#x60;itemName&#x60; parameters. Defaults to primary locale of the marketplace.
447
458
  * @param {*} [options] Override http request option.
448
459
  * @throws {RequiredError}
449
460
  */
@@ -485,7 +496,7 @@ interface ProductTypeDefinitionsApiGetDefinitionsProductTypeRequest {
485
496
  */
486
497
  readonly sellerId?: string;
487
498
  /**
488
- * The version of the Amazon product type to retrieve. Defaults to \&quot;LATEST\&quot;,. Prerelease versions of product type definitions may be retrieved with \&quot;RELEASE_CANDIDATE\&quot;. If no prerelease version is currently available, the \&quot;LATEST\&quot; live version will be provided.
499
+ * The version of the Amazon product type to retrieve. Defaults to \&quot;LATEST\&quot;. Prerelease versions of product type definitions may be retrieved with \&quot;RELEASE_CANDIDATE\&quot;. If no prerelease version is currently available, the \&quot;LATEST\&quot; live version will be provided.
489
500
  */
490
501
  readonly productTypeVersion?: string;
491
502
  /**
@@ -500,6 +511,10 @@ interface ProductTypeDefinitionsApiGetDefinitionsProductTypeRequest {
500
511
  * Locale for retrieving display labels and other presentation details. Defaults to the default language of the first marketplace in the request.
501
512
  */
502
513
  readonly locale?: GetDefinitionsProductTypeLocaleEnum;
514
+ /**
515
+ * The parentage level of the listing to retrieve a schema for. When provided, the schema is simplified by resolving all conditional logic related to the specified parentage level, resulting in a smaller schema with fewer conditions.
516
+ */
517
+ readonly parentageLevel?: GetDefinitionsProductTypeParentageLevelEnum;
503
518
  }
504
519
  /**
505
520
  * Request parameters for searchDefinitionsProductTypes operation in ProductTypeDefinitionsApi.
@@ -514,15 +529,15 @@ interface ProductTypeDefinitionsApiSearchDefinitionsProductTypesRequest {
514
529
  */
515
530
  readonly keywords?: Array<string>;
516
531
  /**
517
- * The title of the ASIN to get the product type recommendation. **Note:** Cannot be used with &#x60;keywords&#x60;.
532
+ * Title of ASIN to get product type recommendation. **Note:** Cannot be used with &#x60;keywords&#x60;.
518
533
  */
519
534
  readonly itemName?: string;
520
535
  /**
521
- * The locale for the display names in the response. Defaults to the primary locale of the marketplace.
536
+ * Locale for display names in response. Defaults to primary locale of the marketplace.
522
537
  */
523
538
  readonly locale?: string;
524
539
  /**
525
- * The locale used for the &#x60;keywords&#x60; and &#x60;itemName&#x60; parameters. Defaults to the primary locale of the marketplace.
540
+ * Language used for &#x60;keywords&#x60; or &#x60;itemName&#x60; parameters. Defaults to primary locale of the marketplace.
526
541
  */
527
542
  readonly searchLocale?: string;
528
543
  }
@@ -597,10 +612,16 @@ declare const GetDefinitionsProductTypeLocaleEnum: {
597
612
  readonly ZhTw: "zh_TW";
598
613
  };
599
614
  type GetDefinitionsProductTypeLocaleEnum = typeof GetDefinitionsProductTypeLocaleEnum[keyof typeof GetDefinitionsProductTypeLocaleEnum];
615
+ declare const GetDefinitionsProductTypeParentageLevelEnum: {
616
+ readonly None: "NONE";
617
+ readonly Child: "CHILD";
618
+ readonly Parent: "PARENT";
619
+ };
620
+ type GetDefinitionsProductTypeParentageLevelEnum = typeof GetDefinitionsProductTypeParentageLevelEnum[keyof typeof GetDefinitionsProductTypeParentageLevelEnum];
600
621
 
601
622
  declare const clientRateLimits: RateLimit[];
602
623
  declare class ProductTypeDefinitionsApiClient extends ProductTypeDefinitionsApi {
603
624
  constructor(configuration: ClientConfiguration);
604
625
  }
605
626
 
606
- export { type ErrorList, GetDefinitionsProductTypeLocaleEnum, GetDefinitionsProductTypeRequirementsEnforcedEnum, GetDefinitionsProductTypeRequirementsEnum, type ModelError, type ProductType, type ProductTypeDefinition, ProductTypeDefinitionRequirementsEnforcedEnum, ProductTypeDefinitionRequirementsEnum, ProductTypeDefinitionsApi, ProductTypeDefinitionsApiAxiosParamCreator, ProductTypeDefinitionsApiClient, ProductTypeDefinitionsApiFactory, ProductTypeDefinitionsApiFp, type ProductTypeDefinitionsApiGetDefinitionsProductTypeRequest, type ProductTypeDefinitionsApiSearchDefinitionsProductTypesRequest, type ProductTypeList, type ProductTypeVersion, type PropertyGroup, type SchemaLink, type SchemaLinkLink, SchemaLinkLinkVerbEnum, clientRateLimits };
627
+ export { type ErrorList, GetDefinitionsProductTypeLocaleEnum, GetDefinitionsProductTypeParentageLevelEnum, GetDefinitionsProductTypeRequirementsEnforcedEnum, GetDefinitionsProductTypeRequirementsEnum, type ModelError, type ProductType, type ProductTypeDefinition, ProductTypeDefinitionRequirementsEnforcedEnum, ProductTypeDefinitionRequirementsEnum, ProductTypeDefinitionsApi, ProductTypeDefinitionsApiAxiosParamCreator, ProductTypeDefinitionsApiClient, ProductTypeDefinitionsApiFactory, ProductTypeDefinitionsApiFp, type ProductTypeDefinitionsApiGetDefinitionsProductTypeRequest, type ProductTypeDefinitionsApiSearchDefinitionsProductTypesRequest, type ProductTypeList, type ProductTypeVersion, type PropertyGroup, type SchemaLink, type SchemaLinkLink, SchemaLinkLinkVerbEnum, clientRateLimits };
package/dist/index.js CHANGED
@@ -84,14 +84,15 @@ var ProductTypeDefinitionsApiAxiosParamCreator = function(configuration) {
84
84
  * @param {string} productType The Amazon product type name.
85
85
  * @param {Array<string>} marketplaceIds A comma-delimited list of Amazon marketplace identifiers for the request. Note: This parameter is limited to one marketplaceId at this time.
86
86
  * @param {string} [sellerId] A selling partner identifier. When provided, seller-specific requirements and values are populated within the product type definition schema, such as brand names associated with the selling partner.
87
- * @param {string} [productTypeVersion] The version of the Amazon product type to retrieve. Defaults to \&quot;LATEST\&quot;,. Prerelease versions of product type definitions may be retrieved with \&quot;RELEASE_CANDIDATE\&quot;. If no prerelease version is currently available, the \&quot;LATEST\&quot; live version will be provided.
87
+ * @param {string} [productTypeVersion] The version of the Amazon product type to retrieve. Defaults to \&quot;LATEST\&quot;. Prerelease versions of product type definitions may be retrieved with \&quot;RELEASE_CANDIDATE\&quot;. If no prerelease version is currently available, the \&quot;LATEST\&quot; live version will be provided.
88
88
  * @param {GetDefinitionsProductTypeRequirementsEnum} [requirements] The name of the requirements set to retrieve requirements for.
89
89
  * @param {GetDefinitionsProductTypeRequirementsEnforcedEnum} [requirementsEnforced] Identifies if the required attributes for a requirements set are enforced by the product type definition schema. Non-enforced requirements enable structural validation of individual attributes without all the required attributes being present (such as for partial updates).
90
90
  * @param {GetDefinitionsProductTypeLocaleEnum} [locale] Locale for retrieving display labels and other presentation details. Defaults to the default language of the first marketplace in the request.
91
+ * @param {GetDefinitionsProductTypeParentageLevelEnum} [parentageLevel] The parentage level of the listing to retrieve a schema for. When provided, the schema is simplified by resolving all conditional logic related to the specified parentage level, resulting in a smaller schema with fewer conditions.
91
92
  * @param {*} [options] Override http request option.
92
93
  * @throws {RequiredError}
93
94
  */
94
- getDefinitionsProductType: async (productType, marketplaceIds, sellerId, productTypeVersion, requirements, requirementsEnforced, locale, options = {}) => {
95
+ getDefinitionsProductType: async (productType, marketplaceIds, sellerId, productTypeVersion, requirements, requirementsEnforced, locale, parentageLevel, options = {}) => {
95
96
  assertParamExists("getDefinitionsProductType", "productType", productType);
96
97
  assertParamExists("getDefinitionsProductType", "marketplaceIds", marketplaceIds);
97
98
  const localVarPath = `/definitions/2020-09-01/productTypes/{productType}`.replace("{productType}", encodeURIComponent(String(productType)));
@@ -121,6 +122,9 @@ var ProductTypeDefinitionsApiAxiosParamCreator = function(configuration) {
121
122
  if (locale !== void 0) {
122
123
  localVarQueryParameter["locale"] = locale;
123
124
  }
125
+ if (parentageLevel !== void 0) {
126
+ localVarQueryParameter["parentageLevel"] = parentageLevel;
127
+ }
124
128
  localVarHeaderParameter["Accept"] = "application/json";
125
129
  setSearchParams(localVarUrlObj, localVarQueryParameter);
126
130
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -134,9 +138,9 @@ var ProductTypeDefinitionsApiAxiosParamCreator = function(configuration) {
134
138
  * Search for and return a list of Amazon product types that have definitions available. **Usage Plans:** | Plan type | Rate (requests per second) | Burst | | ---- | ---- | ---- | |Default| 5 | 10 | |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](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
135
139
  * @param {Array<string>} marketplaceIds A comma-delimited list of Amazon marketplace identifiers for the request.
136
140
  * @param {Array<string>} [keywords] A comma-delimited list of keywords to search product types. **Note:** Cannot be used with &#x60;itemName&#x60;.
137
- * @param {string} [itemName] The title of the ASIN to get the product type recommendation. **Note:** Cannot be used with &#x60;keywords&#x60;.
138
- * @param {string} [locale] The locale for the display names in the response. Defaults to the primary locale of the marketplace.
139
- * @param {string} [searchLocale] The locale used for the &#x60;keywords&#x60; and &#x60;itemName&#x60; parameters. Defaults to the primary locale of the marketplace.
141
+ * @param {string} [itemName] Title of ASIN to get product type recommendation. **Note:** Cannot be used with &#x60;keywords&#x60;.
142
+ * @param {string} [locale] Locale for display names in response. Defaults to primary locale of the marketplace.
143
+ * @param {string} [searchLocale] Language used for &#x60;keywords&#x60; or &#x60;itemName&#x60; parameters. Defaults to primary locale of the marketplace.
140
144
  * @param {*} [options] Override http request option.
141
145
  * @throws {RequiredError}
142
146
  */
@@ -185,15 +189,16 @@ var ProductTypeDefinitionsApiFp = function(configuration) {
185
189
  * @param {string} productType The Amazon product type name.
186
190
  * @param {Array<string>} marketplaceIds A comma-delimited list of Amazon marketplace identifiers for the request. Note: This parameter is limited to one marketplaceId at this time.
187
191
  * @param {string} [sellerId] A selling partner identifier. When provided, seller-specific requirements and values are populated within the product type definition schema, such as brand names associated with the selling partner.
188
- * @param {string} [productTypeVersion] The version of the Amazon product type to retrieve. Defaults to \&quot;LATEST\&quot;,. Prerelease versions of product type definitions may be retrieved with \&quot;RELEASE_CANDIDATE\&quot;. If no prerelease version is currently available, the \&quot;LATEST\&quot; live version will be provided.
192
+ * @param {string} [productTypeVersion] The version of the Amazon product type to retrieve. Defaults to \&quot;LATEST\&quot;. Prerelease versions of product type definitions may be retrieved with \&quot;RELEASE_CANDIDATE\&quot;. If no prerelease version is currently available, the \&quot;LATEST\&quot; live version will be provided.
189
193
  * @param {GetDefinitionsProductTypeRequirementsEnum} [requirements] The name of the requirements set to retrieve requirements for.
190
194
  * @param {GetDefinitionsProductTypeRequirementsEnforcedEnum} [requirementsEnforced] Identifies if the required attributes for a requirements set are enforced by the product type definition schema. Non-enforced requirements enable structural validation of individual attributes without all the required attributes being present (such as for partial updates).
191
195
  * @param {GetDefinitionsProductTypeLocaleEnum} [locale] Locale for retrieving display labels and other presentation details. Defaults to the default language of the first marketplace in the request.
196
+ * @param {GetDefinitionsProductTypeParentageLevelEnum} [parentageLevel] The parentage level of the listing to retrieve a schema for. When provided, the schema is simplified by resolving all conditional logic related to the specified parentage level, resulting in a smaller schema with fewer conditions.
192
197
  * @param {*} [options] Override http request option.
193
198
  * @throws {RequiredError}
194
199
  */
195
- async getDefinitionsProductType(productType, marketplaceIds, sellerId, productTypeVersion, requirements, requirementsEnforced, locale, options) {
196
- const localVarAxiosArgs = await localVarAxiosParamCreator.getDefinitionsProductType(productType, marketplaceIds, sellerId, productTypeVersion, requirements, requirementsEnforced, locale, options);
200
+ async getDefinitionsProductType(productType, marketplaceIds, sellerId, productTypeVersion, requirements, requirementsEnforced, locale, parentageLevel, options) {
201
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getDefinitionsProductType(productType, marketplaceIds, sellerId, productTypeVersion, requirements, requirementsEnforced, locale, parentageLevel, options);
197
202
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
198
203
  const localVarOperationServerBasePath = operationServerMap["ProductTypeDefinitionsApi.getDefinitionsProductType"]?.[localVarOperationServerIndex]?.url;
199
204
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -202,9 +207,9 @@ var ProductTypeDefinitionsApiFp = function(configuration) {
202
207
  * Search for and return a list of Amazon product types that have definitions available. **Usage Plans:** | Plan type | Rate (requests per second) | Burst | | ---- | ---- | ---- | |Default| 5 | 10 | |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](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
203
208
  * @param {Array<string>} marketplaceIds A comma-delimited list of Amazon marketplace identifiers for the request.
204
209
  * @param {Array<string>} [keywords] A comma-delimited list of keywords to search product types. **Note:** Cannot be used with &#x60;itemName&#x60;.
205
- * @param {string} [itemName] The title of the ASIN to get the product type recommendation. **Note:** Cannot be used with &#x60;keywords&#x60;.
206
- * @param {string} [locale] The locale for the display names in the response. Defaults to the primary locale of the marketplace.
207
- * @param {string} [searchLocale] The locale used for the &#x60;keywords&#x60; and &#x60;itemName&#x60; parameters. Defaults to the primary locale of the marketplace.
210
+ * @param {string} [itemName] Title of ASIN to get product type recommendation. **Note:** Cannot be used with &#x60;keywords&#x60;.
211
+ * @param {string} [locale] Locale for display names in response. Defaults to primary locale of the marketplace.
212
+ * @param {string} [searchLocale] Language used for &#x60;keywords&#x60; or &#x60;itemName&#x60; parameters. Defaults to primary locale of the marketplace.
208
213
  * @param {*} [options] Override http request option.
209
214
  * @throws {RequiredError}
210
215
  */
@@ -226,7 +231,7 @@ var ProductTypeDefinitionsApiFactory = function(configuration, basePath, axios)
226
231
  * @throws {RequiredError}
227
232
  */
228
233
  getDefinitionsProductType(requestParameters, options) {
229
- return localVarFp.getDefinitionsProductType(requestParameters.productType, requestParameters.marketplaceIds, requestParameters.sellerId, requestParameters.productTypeVersion, requestParameters.requirements, requestParameters.requirementsEnforced, requestParameters.locale, options).then((request) => request(axios, basePath));
234
+ return localVarFp.getDefinitionsProductType(requestParameters.productType, requestParameters.marketplaceIds, requestParameters.sellerId, requestParameters.productTypeVersion, requestParameters.requirements, requestParameters.requirementsEnforced, requestParameters.locale, requestParameters.parentageLevel, options).then((request) => request(axios, basePath));
230
235
  },
231
236
  /**
232
237
  * Search for and return a list of Amazon product types that have definitions available. **Usage Plans:** | Plan type | Rate (requests per second) | Burst | | ---- | ---- | ---- | |Default| 5 | 10 | |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](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
@@ -247,7 +252,7 @@ var ProductTypeDefinitionsApi = class extends BaseAPI {
247
252
  * @throws {RequiredError}
248
253
  */
249
254
  getDefinitionsProductType(requestParameters, options) {
250
- return ProductTypeDefinitionsApiFp(this.configuration).getDefinitionsProductType(requestParameters.productType, requestParameters.marketplaceIds, requestParameters.sellerId, requestParameters.productTypeVersion, requestParameters.requirements, requestParameters.requirementsEnforced, requestParameters.locale, options).then((request) => request(this.axios, this.basePath));
255
+ return ProductTypeDefinitionsApiFp(this.configuration).getDefinitionsProductType(requestParameters.productType, requestParameters.marketplaceIds, requestParameters.sellerId, requestParameters.productTypeVersion, requestParameters.requirements, requestParameters.requirementsEnforced, requestParameters.locale, requestParameters.parentageLevel, options).then((request) => request(this.axios, this.basePath));
251
256
  }
252
257
  /**
253
258
  * Search for and return a list of Amazon product types that have definitions available. **Usage Plans:** | Plan type | Rate (requests per second) | Burst | | ---- | ---- | ---- | |Default| 5 | 10 | |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](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
@@ -308,6 +313,11 @@ var GetDefinitionsProductTypeLocaleEnum = {
308
313
  ZhCn: "zh_CN",
309
314
  ZhTw: "zh_TW"
310
315
  };
316
+ var GetDefinitionsProductTypeParentageLevelEnum = {
317
+ None: "NONE",
318
+ Child: "CHILD",
319
+ Parent: "PARENT"
320
+ };
311
321
 
312
322
  // src/api-model/configuration.ts
313
323
  var Configuration = class {
@@ -434,6 +444,7 @@ var ProductTypeDefinitionsApiClient = class extends ProductTypeDefinitionsApi {
434
444
  };
435
445
  export {
436
446
  GetDefinitionsProductTypeLocaleEnum,
447
+ GetDefinitionsProductTypeParentageLevelEnum,
437
448
  GetDefinitionsProductTypeRequirementsEnforcedEnum,
438
449
  GetDefinitionsProductTypeRequirementsEnum,
439
450
  ProductTypeDefinitionRequirementsEnforcedEnum,
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/client.ts","../src/api-model/api/product-type-definitions-api.ts","../src/api-model/base.ts","../src/api-model/common.ts","../src/api-model/configuration.ts","../src/api-model/models/product-type-definition.ts","../src/api-model/models/schema-link-link.ts"],"sourcesContent":["import {type ClientConfiguration, createAxiosInstance, type RateLimit} from '@sp-api-sdk/common'\n\nimport {Configuration, ProductTypeDefinitionsApi} from './api-model/index.js'\n\nexport const clientRateLimits: RateLimit[] = [\n {\n method: 'get',\n // eslint-disable-next-line prefer-regex-literals\n urlRegex: new RegExp('^/definitions/2020-09-01/productTypes$'),\n rate: 5,\n burst: 10,\n },\n {\n method: 'get',\n // eslint-disable-next-line prefer-regex-literals\n urlRegex: new RegExp('^/definitions/2020-09-01/productTypes/[^/]*$'),\n rate: 5,\n burst: 10,\n },\n]\n\nexport class ProductTypeDefinitionsApiClient extends ProductTypeDefinitionsApi {\n constructor(configuration: ClientConfiguration) {\n const {axios, endpoint} = createAxiosInstance(configuration, clientRateLimits)\n\n super(new Configuration(), endpoint, axios)\n }\n}\n","/* tslint:disable */\n/* eslint-disable */\n/**\n * Selling Partner API for Product Type Definitions\n * The Selling Partner API for Product Type Definitions provides programmatic access to attribute and data requirements for product types in the Amazon catalog. Use this API to return the JSON Schema for a product type that you can then use with other Selling Partner APIs, such as the Selling Partner API for Listings Items, the Selling Partner API for Catalog Items, and the Selling Partner API for Feeds (for JSON-based listing feeds). For more information, see the [Product Type Definitions API Use Case Guide](https://developer-docs.amazon.com/sp-api/docs/product-type-api-use-case-guide).\n *\n * The version of the OpenAPI document: 2020-09-01\n * \n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\n\nimport type { Configuration } from '../configuration.js';\nimport type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';\nimport globalAxios from 'axios';\n// Some imports not used depending on template conditions\n// @ts-ignore\nimport { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction, replaceWithSerializableTypeIfNeeded } from '../common.js';\n// @ts-ignore\nimport { BASE_PATH, COLLECTION_FORMATS, type RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base.js';\n// @ts-ignore\nimport type { ErrorList } from '../models/index.js';\n// @ts-ignore\nimport type { ProductTypeDefinition } from '../models/index.js';\n// @ts-ignore\nimport type { ProductTypeList } from '../models/index.js';\n/**\n * ProductTypeDefinitionsApi - axios parameter creator\n */\nexport const ProductTypeDefinitionsApiAxiosParamCreator = function (configuration?: Configuration) {\n return {\n /**\n * Retrieve an Amazon product type definition. **Usage Plans:** | Plan type | Rate (requests per second) | Burst | | ---- | ---- | ---- | |Default| 5 | 10 | |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](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).\n * @param {string} productType The Amazon product type name.\n * @param {Array<string>} marketplaceIds A comma-delimited list of Amazon marketplace identifiers for the request. Note: This parameter is limited to one marketplaceId at this time.\n * @param {string} [sellerId] A selling partner identifier. When provided, seller-specific requirements and values are populated within the product type definition schema, such as brand names associated with the selling partner.\n * @param {string} [productTypeVersion] The version of the Amazon product type to retrieve. Defaults to \\&quot;LATEST\\&quot;,. Prerelease versions of product type definitions may be retrieved with \\&quot;RELEASE_CANDIDATE\\&quot;. If no prerelease version is currently available, the \\&quot;LATEST\\&quot; live version will be provided.\n * @param {GetDefinitionsProductTypeRequirementsEnum} [requirements] The name of the requirements set to retrieve requirements for.\n * @param {GetDefinitionsProductTypeRequirementsEnforcedEnum} [requirementsEnforced] Identifies if the required attributes for a requirements set are enforced by the product type definition schema. Non-enforced requirements enable structural validation of individual attributes without all the required attributes being present (such as for partial updates).\n * @param {GetDefinitionsProductTypeLocaleEnum} [locale] Locale for retrieving display labels and other presentation details. Defaults to the default language of the first marketplace in the request.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n getDefinitionsProductType: async (productType: string, marketplaceIds: Array<string>, sellerId?: string, productTypeVersion?: string, requirements?: GetDefinitionsProductTypeRequirementsEnum, requirementsEnforced?: GetDefinitionsProductTypeRequirementsEnforcedEnum, locale?: GetDefinitionsProductTypeLocaleEnum, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {\n // verify required parameter 'productType' is not null or undefined\n assertParamExists('getDefinitionsProductType', 'productType', productType)\n // verify required parameter 'marketplaceIds' is not null or undefined\n assertParamExists('getDefinitionsProductType', 'marketplaceIds', marketplaceIds)\n const localVarPath = `/definitions/2020-09-01/productTypes/{productType}`\n .replace('{productType}', encodeURIComponent(String(productType)));\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n if (sellerId !== undefined) {\n localVarQueryParameter['sellerId'] = sellerId;\n }\n\n if (marketplaceIds) {\n localVarQueryParameter['marketplaceIds'] = marketplaceIds.join(COLLECTION_FORMATS.csv);\n }\n\n if (productTypeVersion !== undefined) {\n localVarQueryParameter['productTypeVersion'] = productTypeVersion;\n }\n\n if (requirements !== undefined) {\n localVarQueryParameter['requirements'] = requirements;\n }\n\n if (requirementsEnforced !== undefined) {\n localVarQueryParameter['requirementsEnforced'] = requirementsEnforced;\n }\n\n if (locale !== undefined) {\n localVarQueryParameter['locale'] = locale;\n }\n\n localVarHeaderParameter['Accept'] = 'application/json';\n\n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * Search for and return a list of Amazon product types that have definitions available. **Usage Plans:** | Plan type | Rate (requests per second) | Burst | | ---- | ---- | ---- | |Default| 5 | 10 | |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](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).\n * @param {Array<string>} marketplaceIds A comma-delimited list of Amazon marketplace identifiers for the request.\n * @param {Array<string>} [keywords] A comma-delimited list of keywords to search product types. **Note:** Cannot be used with &#x60;itemName&#x60;.\n * @param {string} [itemName] The title of the ASIN to get the product type recommendation. **Note:** Cannot be used with &#x60;keywords&#x60;.\n * @param {string} [locale] The locale for the display names in the response. Defaults to the primary locale of the marketplace.\n * @param {string} [searchLocale] The locale used for the &#x60;keywords&#x60; and &#x60;itemName&#x60; parameters. Defaults to the primary locale of the marketplace.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n searchDefinitionsProductTypes: async (marketplaceIds: Array<string>, keywords?: Array<string>, itemName?: string, locale?: string, searchLocale?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {\n // verify required parameter 'marketplaceIds' is not null or undefined\n assertParamExists('searchDefinitionsProductTypes', 'marketplaceIds', marketplaceIds)\n const localVarPath = `/definitions/2020-09-01/productTypes`;\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n if (keywords) {\n localVarQueryParameter['keywords'] = keywords.join(COLLECTION_FORMATS.csv);\n }\n\n if (marketplaceIds) {\n localVarQueryParameter['marketplaceIds'] = marketplaceIds.join(COLLECTION_FORMATS.csv);\n }\n\n if (itemName !== undefined) {\n localVarQueryParameter['itemName'] = itemName;\n }\n\n if (locale !== undefined) {\n localVarQueryParameter['locale'] = locale;\n }\n\n if (searchLocale !== undefined) {\n localVarQueryParameter['searchLocale'] = searchLocale;\n }\n\n localVarHeaderParameter['Accept'] = 'application/json';\n\n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n }\n};\n\n/**\n * ProductTypeDefinitionsApi - functional programming interface\n */\nexport const ProductTypeDefinitionsApiFp = function(configuration?: Configuration) {\n const localVarAxiosParamCreator = ProductTypeDefinitionsApiAxiosParamCreator(configuration)\n return {\n /**\n * Retrieve an Amazon product type definition. **Usage Plans:** | Plan type | Rate (requests per second) | Burst | | ---- | ---- | ---- | |Default| 5 | 10 | |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](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).\n * @param {string} productType The Amazon product type name.\n * @param {Array<string>} marketplaceIds A comma-delimited list of Amazon marketplace identifiers for the request. Note: This parameter is limited to one marketplaceId at this time.\n * @param {string} [sellerId] A selling partner identifier. When provided, seller-specific requirements and values are populated within the product type definition schema, such as brand names associated with the selling partner.\n * @param {string} [productTypeVersion] The version of the Amazon product type to retrieve. Defaults to \\&quot;LATEST\\&quot;,. Prerelease versions of product type definitions may be retrieved with \\&quot;RELEASE_CANDIDATE\\&quot;. If no prerelease version is currently available, the \\&quot;LATEST\\&quot; live version will be provided.\n * @param {GetDefinitionsProductTypeRequirementsEnum} [requirements] The name of the requirements set to retrieve requirements for.\n * @param {GetDefinitionsProductTypeRequirementsEnforcedEnum} [requirementsEnforced] Identifies if the required attributes for a requirements set are enforced by the product type definition schema. Non-enforced requirements enable structural validation of individual attributes without all the required attributes being present (such as for partial updates).\n * @param {GetDefinitionsProductTypeLocaleEnum} [locale] Locale for retrieving display labels and other presentation details. Defaults to the default language of the first marketplace in the request.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async getDefinitionsProductType(productType: string, marketplaceIds: Array<string>, sellerId?: string, productTypeVersion?: string, requirements?: GetDefinitionsProductTypeRequirementsEnum, requirementsEnforced?: GetDefinitionsProductTypeRequirementsEnforcedEnum, locale?: GetDefinitionsProductTypeLocaleEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProductTypeDefinition>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.getDefinitionsProductType(productType, marketplaceIds, sellerId, productTypeVersion, requirements, requirementsEnforced, locale, options);\n const localVarOperationServerIndex = configuration?.serverIndex ?? 0;\n const localVarOperationServerBasePath = operationServerMap['ProductTypeDefinitionsApi.getDefinitionsProductType']?.[localVarOperationServerIndex]?.url;\n return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);\n },\n /**\n * Search for and return a list of Amazon product types that have definitions available. **Usage Plans:** | Plan type | Rate (requests per second) | Burst | | ---- | ---- | ---- | |Default| 5 | 10 | |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](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).\n * @param {Array<string>} marketplaceIds A comma-delimited list of Amazon marketplace identifiers for the request.\n * @param {Array<string>} [keywords] A comma-delimited list of keywords to search product types. **Note:** Cannot be used with &#x60;itemName&#x60;.\n * @param {string} [itemName] The title of the ASIN to get the product type recommendation. **Note:** Cannot be used with &#x60;keywords&#x60;.\n * @param {string} [locale] The locale for the display names in the response. Defaults to the primary locale of the marketplace.\n * @param {string} [searchLocale] The locale used for the &#x60;keywords&#x60; and &#x60;itemName&#x60; parameters. Defaults to the primary locale of the marketplace.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async searchDefinitionsProductTypes(marketplaceIds: Array<string>, keywords?: Array<string>, itemName?: string, locale?: string, searchLocale?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProductTypeList>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.searchDefinitionsProductTypes(marketplaceIds, keywords, itemName, locale, searchLocale, options);\n const localVarOperationServerIndex = configuration?.serverIndex ?? 0;\n const localVarOperationServerBasePath = operationServerMap['ProductTypeDefinitionsApi.searchDefinitionsProductTypes']?.[localVarOperationServerIndex]?.url;\n return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);\n },\n }\n};\n\n/**\n * ProductTypeDefinitionsApi - factory interface\n */\nexport const ProductTypeDefinitionsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {\n const localVarFp = ProductTypeDefinitionsApiFp(configuration)\n return {\n /**\n * Retrieve an Amazon product type definition. **Usage Plans:** | Plan type | Rate (requests per second) | Burst | | ---- | ---- | ---- | |Default| 5 | 10 | |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](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).\n * @param {ProductTypeDefinitionsApiGetDefinitionsProductTypeRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n getDefinitionsProductType(requestParameters: ProductTypeDefinitionsApiGetDefinitionsProductTypeRequest, options?: RawAxiosRequestConfig): AxiosPromise<ProductTypeDefinition> {\n return localVarFp.getDefinitionsProductType(requestParameters.productType, requestParameters.marketplaceIds, requestParameters.sellerId, requestParameters.productTypeVersion, requestParameters.requirements, requestParameters.requirementsEnforced, requestParameters.locale, options).then((request) => request(axios, basePath));\n },\n /**\n * Search for and return a list of Amazon product types that have definitions available. **Usage Plans:** | Plan type | Rate (requests per second) | Burst | | ---- | ---- | ---- | |Default| 5 | 10 | |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](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).\n * @param {ProductTypeDefinitionsApiSearchDefinitionsProductTypesRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n searchDefinitionsProductTypes(requestParameters: ProductTypeDefinitionsApiSearchDefinitionsProductTypesRequest, options?: RawAxiosRequestConfig): AxiosPromise<ProductTypeList> {\n return localVarFp.searchDefinitionsProductTypes(requestParameters.marketplaceIds, requestParameters.keywords, requestParameters.itemName, requestParameters.locale, requestParameters.searchLocale, options).then((request) => request(axios, basePath));\n },\n };\n};\n\n/**\n * Request parameters for getDefinitionsProductType operation in ProductTypeDefinitionsApi.\n */\nexport interface ProductTypeDefinitionsApiGetDefinitionsProductTypeRequest {\n /**\n * The Amazon product type name.\n */\n readonly productType: string\n\n /**\n * A comma-delimited list of Amazon marketplace identifiers for the request. Note: This parameter is limited to one marketplaceId at this time.\n */\n readonly marketplaceIds: Array<string>\n\n /**\n * A selling partner identifier. When provided, seller-specific requirements and values are populated within the product type definition schema, such as brand names associated with the selling partner.\n */\n readonly sellerId?: string\n\n /**\n * The version of the Amazon product type to retrieve. Defaults to \\&quot;LATEST\\&quot;,. Prerelease versions of product type definitions may be retrieved with \\&quot;RELEASE_CANDIDATE\\&quot;. If no prerelease version is currently available, the \\&quot;LATEST\\&quot; live version will be provided.\n */\n readonly productTypeVersion?: string\n\n /**\n * The name of the requirements set to retrieve requirements for.\n */\n readonly requirements?: GetDefinitionsProductTypeRequirementsEnum\n\n /**\n * Identifies if the required attributes for a requirements set are enforced by the product type definition schema. Non-enforced requirements enable structural validation of individual attributes without all the required attributes being present (such as for partial updates).\n */\n readonly requirementsEnforced?: GetDefinitionsProductTypeRequirementsEnforcedEnum\n\n /**\n * Locale for retrieving display labels and other presentation details. Defaults to the default language of the first marketplace in the request.\n */\n readonly locale?: GetDefinitionsProductTypeLocaleEnum\n}\n\n/**\n * Request parameters for searchDefinitionsProductTypes operation in ProductTypeDefinitionsApi.\n */\nexport interface ProductTypeDefinitionsApiSearchDefinitionsProductTypesRequest {\n /**\n * A comma-delimited list of Amazon marketplace identifiers for the request.\n */\n readonly marketplaceIds: Array<string>\n\n /**\n * A comma-delimited list of keywords to search product types. **Note:** Cannot be used with &#x60;itemName&#x60;.\n */\n readonly keywords?: Array<string>\n\n /**\n * The title of the ASIN to get the product type recommendation. **Note:** Cannot be used with &#x60;keywords&#x60;.\n */\n readonly itemName?: string\n\n /**\n * The locale for the display names in the response. Defaults to the primary locale of the marketplace.\n */\n readonly locale?: string\n\n /**\n * The locale used for the &#x60;keywords&#x60; and &#x60;itemName&#x60; parameters. Defaults to the primary locale of the marketplace.\n */\n readonly searchLocale?: string\n}\n\n/**\n * ProductTypeDefinitionsApi - object-oriented interface\n */\nexport class ProductTypeDefinitionsApi extends BaseAPI {\n /**\n * Retrieve an Amazon product type definition. **Usage Plans:** | Plan type | Rate (requests per second) | Burst | | ---- | ---- | ---- | |Default| 5 | 10 | |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](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).\n * @param {ProductTypeDefinitionsApiGetDefinitionsProductTypeRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n public getDefinitionsProductType(requestParameters: ProductTypeDefinitionsApiGetDefinitionsProductTypeRequest, options?: RawAxiosRequestConfig) {\n return ProductTypeDefinitionsApiFp(this.configuration).getDefinitionsProductType(requestParameters.productType, requestParameters.marketplaceIds, requestParameters.sellerId, requestParameters.productTypeVersion, requestParameters.requirements, requestParameters.requirementsEnforced, requestParameters.locale, options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * Search for and return a list of Amazon product types that have definitions available. **Usage Plans:** | Plan type | Rate (requests per second) | Burst | | ---- | ---- | ---- | |Default| 5 | 10 | |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](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).\n * @param {ProductTypeDefinitionsApiSearchDefinitionsProductTypesRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n public searchDefinitionsProductTypes(requestParameters: ProductTypeDefinitionsApiSearchDefinitionsProductTypesRequest, options?: RawAxiosRequestConfig) {\n return ProductTypeDefinitionsApiFp(this.configuration).searchDefinitionsProductTypes(requestParameters.marketplaceIds, requestParameters.keywords, requestParameters.itemName, requestParameters.locale, requestParameters.searchLocale, options).then((request) => request(this.axios, this.basePath));\n }\n}\n\nexport const GetDefinitionsProductTypeRequirementsEnum = {\n Listing: 'LISTING',\n ListingProductOnly: 'LISTING_PRODUCT_ONLY',\n ListingOfferOnly: 'LISTING_OFFER_ONLY',\n} as const;\nexport type GetDefinitionsProductTypeRequirementsEnum = typeof GetDefinitionsProductTypeRequirementsEnum[keyof typeof GetDefinitionsProductTypeRequirementsEnum];\nexport const GetDefinitionsProductTypeRequirementsEnforcedEnum = {\n Enforced: 'ENFORCED',\n NotEnforced: 'NOT_ENFORCED',\n} as const;\nexport type GetDefinitionsProductTypeRequirementsEnforcedEnum = typeof GetDefinitionsProductTypeRequirementsEnforcedEnum[keyof typeof GetDefinitionsProductTypeRequirementsEnforcedEnum];\nexport const GetDefinitionsProductTypeLocaleEnum = {\n Default: 'DEFAULT',\n Ar: 'ar',\n ArAe: 'ar_AE',\n De: 'de',\n DeDe: 'de_DE',\n En: 'en',\n EnAe: 'en_AE',\n EnAu: 'en_AU',\n EnCa: 'en_CA',\n EnGb: 'en_GB',\n EnIn: 'en_IN',\n EnSg: 'en_SG',\n EnUs: 'en_US',\n Es: 'es',\n EsEs: 'es_ES',\n EsMx: 'es_MX',\n EsUs: 'es_US',\n Fr: 'fr',\n FrCa: 'fr_CA',\n FrFr: 'fr_FR',\n It: 'it',\n ItIt: 'it_IT',\n Ja: 'ja',\n JaJp: 'ja_JP',\n Nl: 'nl',\n NlNl: 'nl_NL',\n Pl: 'pl',\n PlPl: 'pl_PL',\n Pt: 'pt',\n PtBr: 'pt_BR',\n PtPt: 'pt_PT',\n Sv: 'sv',\n SvSe: 'sv_SE',\n Tr: 'tr',\n TrTr: 'tr_TR',\n Zh: 'zh',\n ZhCn: 'zh_CN',\n ZhTw: 'zh_TW',\n} as const;\nexport type GetDefinitionsProductTypeLocaleEnum = typeof GetDefinitionsProductTypeLocaleEnum[keyof typeof GetDefinitionsProductTypeLocaleEnum];\n","/* tslint:disable */\n/* eslint-disable */\n/**\n * Selling Partner API for Product Type Definitions\n * The Selling Partner API for Product Type Definitions provides programmatic access to attribute and data requirements for product types in the Amazon catalog. Use this API to return the JSON Schema for a product type that you can then use with other Selling Partner APIs, such as the Selling Partner API for Listings Items, the Selling Partner API for Catalog Items, and the Selling Partner API for Feeds (for JSON-based listing feeds). For more information, see the [Product Type Definitions API Use Case Guide](https://developer-docs.amazon.com/sp-api/docs/product-type-api-use-case-guide).\n *\n * The version of the OpenAPI document: 2020-09-01\n * \n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\n\nimport type { Configuration } from './configuration.js';\n// Some imports not used depending on template conditions\n// @ts-ignore\nimport type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';\nimport globalAxios from 'axios';\n\nexport const BASE_PATH = \"https://sellingpartnerapi-na.amazon.com\".replace(/\\/+$/, \"\");\n\nexport const COLLECTION_FORMATS = {\n csv: \",\",\n ssv: \" \",\n tsv: \"\\t\",\n pipes: \"|\",\n};\n\nexport interface RequestArgs {\n url: string;\n options: RawAxiosRequestConfig;\n}\n\nexport class BaseAPI {\n protected configuration: Configuration | undefined;\n\n constructor(configuration?: Configuration, protected basePath: string = BASE_PATH, protected axios: AxiosInstance = globalAxios) {\n if (configuration) {\n this.configuration = configuration;\n this.basePath = configuration.basePath ?? basePath;\n }\n }\n};\n\nexport class RequiredError extends Error {\n constructor(public field: string, msg?: string) {\n super(msg);\n this.name = \"RequiredError\"\n }\n}\n\ninterface ServerMap {\n [key: string]: {\n url: string,\n description: string,\n }[];\n}\n\nexport const operationServerMap: ServerMap = {\n}\n","/* tslint:disable */\n/* eslint-disable */\n/**\n * Selling Partner API for Product Type Definitions\n * The Selling Partner API for Product Type Definitions provides programmatic access to attribute and data requirements for product types in the Amazon catalog. Use this API to return the JSON Schema for a product type that you can then use with other Selling Partner APIs, such as the Selling Partner API for Listings Items, the Selling Partner API for Catalog Items, and the Selling Partner API for Feeds (for JSON-based listing feeds). For more information, see the [Product Type Definitions API Use Case Guide](https://developer-docs.amazon.com/sp-api/docs/product-type-api-use-case-guide).\n *\n * The version of the OpenAPI document: 2020-09-01\n * \n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\nimport type { Configuration } from \"./configuration.js\";\nimport type { RequestArgs } from \"./base.js\";\nimport type { AxiosInstance, AxiosResponse } from 'axios';\nimport { RequiredError } from \"./base.js\";\n\nexport const DUMMY_BASE_URL = 'https://example.com'\n\n/**\n *\n * @throws {RequiredError}\n */\nexport const assertParamExists = function (functionName: string, paramName: string, paramValue: unknown) {\n if (paramValue === null || paramValue === undefined) {\n throw new RequiredError(paramName, `Required parameter ${paramName} was null or undefined when calling ${functionName}.`);\n }\n}\n\nexport const setApiKeyToObject = async function (object: any, keyParamName: string, configuration?: Configuration) {\n if (configuration && configuration.apiKey) {\n const localVarApiKeyValue = typeof configuration.apiKey === 'function'\n ? await configuration.apiKey(keyParamName)\n : await configuration.apiKey;\n object[keyParamName] = localVarApiKeyValue;\n }\n}\n\nexport const setBasicAuthToObject = function (object: any, configuration?: Configuration) {\n if (configuration && (configuration.username || configuration.password)) {\n object[\"auth\"] = { username: configuration.username, password: configuration.password };\n }\n}\n\nexport const setBearerAuthToObject = async function (object: any, configuration?: Configuration) {\n if (configuration && configuration.accessToken) {\n const accessToken = typeof configuration.accessToken === 'function'\n ? await configuration.accessToken()\n : await configuration.accessToken;\n object[\"Authorization\"] = \"Bearer \" + accessToken;\n }\n}\n\nexport const setOAuthToObject = async function (object: any, name: string, scopes: string[], configuration?: Configuration) {\n if (configuration && configuration.accessToken) {\n const localVarAccessTokenValue = typeof configuration.accessToken === 'function'\n ? await configuration.accessToken(name, scopes)\n : await configuration.accessToken;\n object[\"Authorization\"] = \"Bearer \" + localVarAccessTokenValue;\n }\n}\n\n\nfunction setFlattenedQueryParams(urlSearchParams: URLSearchParams, parameter: any, key: string = \"\"): void {\n if (parameter == null) return;\n if (typeof parameter === \"object\") {\n if (Array.isArray(parameter) || parameter instanceof Set) {\n (parameter as any[]).forEach(item => setFlattenedQueryParams(urlSearchParams, item, key));\n }\n else {\n Object.keys(parameter).forEach(currentKey =>\n setFlattenedQueryParams(urlSearchParams, parameter[currentKey], `${key}${key !== '' ? '.' : ''}${currentKey}`)\n );\n }\n }\n else {\n if (urlSearchParams.has(key)) {\n urlSearchParams.append(key, parameter);\n }\n else {\n urlSearchParams.set(key, parameter);\n }\n }\n}\n\nexport const setSearchParams = function (url: URL, ...objects: any[]) {\n const searchParams = new URLSearchParams(url.search);\n setFlattenedQueryParams(searchParams, objects);\n url.search = searchParams.toString();\n}\n\n/**\n * JSON serialization helper function which replaces instances of unserializable types with serializable ones.\n * This function will run for every key-value pair encountered by JSON.stringify while traversing an object.\n * Converting a set to a string will return an empty object, so an intermediate conversion to an array is required.\n */\n// @ts-ignore\nexport const replaceWithSerializableTypeIfNeeded = function(key: string, value: any) {\n if (value instanceof Set) {\n return Array.from(value);\n } else {\n return value;\n }\n}\n\nexport const serializeDataIfNeeded = function (value: any, requestOptions: any, configuration?: Configuration) {\n const nonString = typeof value !== 'string';\n const needsSerialization = nonString && configuration && configuration.isJsonMime\n ? configuration.isJsonMime(requestOptions.headers['Content-Type'])\n : nonString;\n return needsSerialization\n ? JSON.stringify(value !== undefined ? value : {}, replaceWithSerializableTypeIfNeeded)\n : (value || \"\");\n}\n\nexport const toPathString = function (url: URL) {\n return url.pathname + url.search + url.hash\n}\n\nexport const createRequestFunction = function (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) {\n return <T = unknown, R = AxiosResponse<T>>(axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {\n const axiosRequestArgs = {...axiosArgs.options, url: (axios.defaults.baseURL ? '' : configuration?.basePath ?? basePath) + axiosArgs.url};\n return axios.request<T, R>(axiosRequestArgs);\n };\n}\n","/* tslint:disable */\n/**\n * Selling Partner API for Product Type Definitions\n * The Selling Partner API for Product Type Definitions provides programmatic access to attribute and data requirements for product types in the Amazon catalog. Use this API to return the JSON Schema for a product type that you can then use with other Selling Partner APIs, such as the Selling Partner API for Listings Items, the Selling Partner API for Catalog Items, and the Selling Partner API for Feeds (for JSON-based listing feeds). For more information, see the [Product Type Definitions API Use Case Guide](https://developer-docs.amazon.com/sp-api/docs/product-type-api-use-case-guide).\n *\n * The version of the OpenAPI document: 2020-09-01\n * \n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\ninterface AWSv4Configuration {\n options?: {\n region?: string\n service?: string\n }\n credentials?: {\n accessKeyId?: string\n secretAccessKey?: string,\n sessionToken?: string\n }\n}\n\nexport interface ConfigurationParameters {\n apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);\n username?: string;\n password?: string;\n accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);\n awsv4?: AWSv4Configuration;\n basePath?: string;\n serverIndex?: number;\n baseOptions?: any;\n formDataCtor?: new () => any;\n}\n\nexport class Configuration {\n /**\n * parameter for apiKey security\n * @param name security name\n */\n apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);\n /**\n * parameter for basic security\n */\n username?: string;\n /**\n * parameter for basic security\n */\n password?: string;\n /**\n * parameter for oauth2 security\n * @param name security name\n * @param scopes oauth2 scope\n */\n accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);\n /**\n * parameter for aws4 signature security\n * @param {Object} AWS4Signature - AWS4 Signature security\n * @param {string} options.region - aws region\n * @param {string} options.service - name of the service.\n * @param {string} credentials.accessKeyId - aws access key id\n * @param {string} credentials.secretAccessKey - aws access key\n * @param {string} credentials.sessionToken - aws session token\n * @memberof Configuration\n */\n awsv4?: AWSv4Configuration;\n /**\n * override base path\n */\n basePath?: string;\n /**\n * override server index\n */\n serverIndex?: number;\n /**\n * base options for axios calls\n */\n baseOptions?: any;\n /**\n * The FormData constructor that will be used to create multipart form data\n * requests. You can inject this here so that execution environments that\n * do not support the FormData class can still run the generated client.\n *\n * @type {new () => FormData}\n */\n formDataCtor?: new () => any;\n\n constructor(param: ConfigurationParameters = {}) {\n this.apiKey = param.apiKey;\n this.username = param.username;\n this.password = param.password;\n this.accessToken = param.accessToken;\n this.awsv4 = param.awsv4;\n this.basePath = param.basePath;\n this.serverIndex = param.serverIndex;\n this.baseOptions = {\n ...param.baseOptions,\n headers: {\n ...param.baseOptions?.headers,\n },\n };\n this.formDataCtor = param.formDataCtor;\n }\n\n /**\n * Check if the given MIME is a JSON MIME.\n * JSON MIME examples:\n * application/json\n * application/json; charset=UTF8\n * APPLICATION/JSON\n * application/vnd.company+json\n * @param mime - MIME (Multipurpose Internet Mail Extensions)\n * @return True if the given MIME is JSON, false otherwise.\n */\n public isJsonMime(mime: string): boolean {\n const jsonMime: RegExp = /^(application\\/json|[^;/ \\t]+\\/[^;/ \\t]+[+]json)[ \\t]*(;.*)?$/i;\n return mime !== null && jsonMime.test(mime);\n }\n}\n","/* tslint:disable */\n/* eslint-disable */\n/**\n * Selling Partner API for Product Type Definitions\n * The Selling Partner API for Product Type Definitions provides programmatic access to attribute and data requirements for product types in the Amazon catalog. Use this API to return the JSON Schema for a product type that you can then use with other Selling Partner APIs, such as the Selling Partner API for Listings Items, the Selling Partner API for Catalog Items, and the Selling Partner API for Feeds (for JSON-based listing feeds). For more information, see the [Product Type Definitions API Use Case Guide](https://developer-docs.amazon.com/sp-api/docs/product-type-api-use-case-guide).\n *\n * The version of the OpenAPI document: 2020-09-01\n * \n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\n\n// May contain unused imports in some cases\n// @ts-ignore\nimport type { ProductTypeVersion } from './product-type-version.js';\n// May contain unused imports in some cases\n// @ts-ignore\nimport type { PropertyGroup } from './property-group.js';\n// May contain unused imports in some cases\n// @ts-ignore\nimport type { SchemaLink } from './schema-link.js';\n\n/**\n * A product type definition represents the attributes and data requirements for a product type in the Amazon catalog. Product type definitions are used interchangeably between the Selling Partner API for Listings Items, Selling Partner API for Catalog Items, and JSON-based listings feeds in the Selling Partner API for Feeds.\n */\nexport interface ProductTypeDefinition {\n 'metaSchema'?: SchemaLink;\n 'schema': SchemaLink;\n /**\n * Name of the requirements set represented in this product type definition.\n */\n 'requirements': ProductTypeDefinitionRequirementsEnum;\n /**\n * Identifies if the required attributes for a requirements set are enforced by the product type definition schema. Non-enforced requirements enable structural validation of individual attributes without all of the required attributes being present (such as for partial updates).\n */\n 'requirementsEnforced': ProductTypeDefinitionRequirementsEnforcedEnum;\n /**\n * Mapping of property group names to property groups. Property groups represent logical groupings of schema properties that can be used for display or informational purposes.\n */\n 'propertyGroups': { [key: string]: PropertyGroup; };\n /**\n * Locale of the display elements contained in the product type definition.\n */\n 'locale': string;\n /**\n * Amazon marketplace identifiers for which the product type definition is applicable.\n */\n 'marketplaceIds': Array<string>;\n /**\n * The name of the Amazon product type that this product type definition applies to.\n */\n 'productType': string;\n /**\n * Human-readable and localized description of the Amazon product type.\n */\n 'displayName': string;\n 'productTypeVersion': ProductTypeVersion;\n}\n\nexport const ProductTypeDefinitionRequirementsEnum = {\n Listing: 'LISTING',\n ListingProductOnly: 'LISTING_PRODUCT_ONLY',\n ListingOfferOnly: 'LISTING_OFFER_ONLY',\n} as const;\n\nexport type ProductTypeDefinitionRequirementsEnum = typeof ProductTypeDefinitionRequirementsEnum[keyof typeof ProductTypeDefinitionRequirementsEnum];\nexport const ProductTypeDefinitionRequirementsEnforcedEnum = {\n Enforced: 'ENFORCED',\n NotEnforced: 'NOT_ENFORCED',\n} as const;\n\nexport type ProductTypeDefinitionRequirementsEnforcedEnum = typeof ProductTypeDefinitionRequirementsEnforcedEnum[keyof typeof ProductTypeDefinitionRequirementsEnforcedEnum];\n\n\n","/* tslint:disable */\n/* eslint-disable */\n/**\n * Selling Partner API for Product Type Definitions\n * The Selling Partner API for Product Type Definitions provides programmatic access to attribute and data requirements for product types in the Amazon catalog. Use this API to return the JSON Schema for a product type that you can then use with other Selling Partner APIs, such as the Selling Partner API for Listings Items, the Selling Partner API for Catalog Items, and the Selling Partner API for Feeds (for JSON-based listing feeds). For more information, see the [Product Type Definitions API Use Case Guide](https://developer-docs.amazon.com/sp-api/docs/product-type-api-use-case-guide).\n *\n * The version of the OpenAPI document: 2020-09-01\n * \n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\n\n\n/**\n * Link to retrieve the schema.\n */\nexport interface SchemaLinkLink {\n /**\n * URI resource for the link.\n */\n 'resource': string;\n /**\n * HTTP method for the link operation.\n */\n 'verb': SchemaLinkLinkVerbEnum;\n}\n\nexport const SchemaLinkLinkVerbEnum = {\n Get: 'GET',\n} as const;\n\nexport type SchemaLinkLinkVerbEnum = typeof SchemaLinkLinkVerbEnum[keyof typeof SchemaLinkLinkVerbEnum];\n\n\n"],"mappings":";AAAA,SAAkC,2BAA0C;;;ACiB5E,OAAOA,kBAAiB;;;ACExB,OAAO,iBAAiB;AAEjB,IAAM,YAAY,0CAA0C,QAAQ,QAAQ,EAAE;AAE9E,IAAM,qBAAqB;AAAA,EAC9B,KAAK;AAAA,EACL,KAAK;AAAA,EACL,KAAK;AAAA,EACL,OAAO;AACX;AAOO,IAAM,UAAN,MAAc;AAAA,EAGjB,YAAY,eAAyC,WAAmB,WAAqB,QAAuB,aAAa;AAA5E;AAAwC;AACzF,QAAI,eAAe;AACf,WAAK,gBAAgB;AACrB,WAAK,WAAW,cAAc,YAAY;AAAA,IAC9C;AAAA,EACJ;AAAA,EALqD;AAAA,EAAwC;AAAA,EAFnF;AAQd;AAEO,IAAM,gBAAN,cAA4B,MAAM;AAAA,EACrC,YAAmB,OAAe,KAAc;AAC5C,UAAM,GAAG;AADM;AAEf,SAAK,OAAO;AAAA,EAChB;AAAA,EAHmB;AAIvB;AASO,IAAM,qBAAgC,CAC7C;;;AC1CO,IAAM,iBAAiB;AAMvB,IAAM,oBAAoB,SAAU,cAAsB,WAAmB,YAAqB;AACrG,MAAI,eAAe,QAAQ,eAAe,QAAW;AACjD,UAAM,IAAI,cAAc,WAAW,sBAAsB,SAAS,uCAAuC,YAAY,GAAG;AAAA,EAC5H;AACJ;AAoCA,SAAS,wBAAwB,iBAAkC,WAAgB,MAAc,IAAU;AACvG,MAAI,aAAa,KAAM;AACvB,MAAI,OAAO,cAAc,UAAU;AAC/B,QAAI,MAAM,QAAQ,SAAS,KAAK,qBAAqB,KAAK;AACtD,MAAC,UAAoB,QAAQ,UAAQ,wBAAwB,iBAAiB,MAAM,GAAG,CAAC;AAAA,IAC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5BO,IAAM,mBAAgC;AAAA,EAC3C;AAAA,IACE,QAAQ;AAAA;AAAA,IAER,UAAU,IAAI,OAAO,wCAAwC;AAAA,IAC7D,MAAM;AAAA,IACN,OAAO;AAAA,EACT;AAAA,EACA;AAAA,IACE,QAAQ;AAAA;AAAA,IAER,UAAU,IAAI,OAAO,8CAA8C;AAAA,IACnE,MAAM;AAAA,IACN,OAAO;AAAA,EACT;AACF;AAEO,IAAM,kCAAN,cAA8C,0BAA0B;AAAA,EAC7E,YAAY,eAAoC;AAC9C,UAAM,EAAC,OAAO,SAAQ,IAAI,oBAAoB,eAAe,gBAAgB;AAE7E,UAAM,IAAI,cAAc,GAAG,UAAU,KAAK;AAAA,EAC5C;AACF;","names":["globalAxios","globalAxios","BASE_PATH","globalAxios"]}
1
+ {"version":3,"sources":["../src/client.ts","../src/api-model/api/product-type-definitions-api.ts","../src/api-model/base.ts","../src/api-model/common.ts","../src/api-model/configuration.ts","../src/api-model/models/product-type-definition.ts","../src/api-model/models/schema-link-link.ts"],"sourcesContent":["import {type ClientConfiguration, createAxiosInstance, type RateLimit} from '@sp-api-sdk/common'\n\nimport {Configuration, ProductTypeDefinitionsApi} from './api-model/index.js'\n\nexport const clientRateLimits: RateLimit[] = [\n {\n method: 'get',\n // eslint-disable-next-line prefer-regex-literals\n urlRegex: new RegExp('^/definitions/2020-09-01/productTypes$'),\n rate: 5,\n burst: 10,\n },\n {\n method: 'get',\n // eslint-disable-next-line prefer-regex-literals\n urlRegex: new RegExp('^/definitions/2020-09-01/productTypes/[^/]*$'),\n rate: 5,\n burst: 10,\n },\n]\n\nexport class ProductTypeDefinitionsApiClient extends ProductTypeDefinitionsApi {\n constructor(configuration: ClientConfiguration) {\n const {axios, endpoint} = createAxiosInstance(configuration, clientRateLimits)\n\n super(new Configuration(), endpoint, axios)\n }\n}\n","/* tslint:disable */\n/* eslint-disable */\n/**\n * Selling Partner API for Product Type Definitions\n * The Selling Partner API for Product Type Definitions provides programmatic access to attribute and data requirements for product types in the Amazon catalog. Use this API to return the JSON Schema for a product type that you can then use with other Selling Partner APIs, such as the Selling Partner API for Listings Items, the Selling Partner API for Catalog Items, and the Selling Partner API for Feeds (for JSON-based listing feeds). For more information, see the [Product Type Definitions API Use Case Guide](https://developer-docs.amazon.com/sp-api/docs/product-type-api-use-case-guide).\n *\n * The version of the OpenAPI document: 2020-09-01\n * \n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\n\nimport type { Configuration } from '../configuration.js';\nimport type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';\nimport globalAxios from 'axios';\n// Some imports not used depending on template conditions\n// @ts-ignore\nimport { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction, replaceWithSerializableTypeIfNeeded } from '../common.js';\n// @ts-ignore\nimport { BASE_PATH, COLLECTION_FORMATS, type RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base.js';\n// @ts-ignore\nimport type { ErrorList } from '../models/index.js';\n// @ts-ignore\nimport type { ProductTypeDefinition } from '../models/index.js';\n// @ts-ignore\nimport type { ProductTypeList } from '../models/index.js';\n/**\n * ProductTypeDefinitionsApi - axios parameter creator\n */\nexport const ProductTypeDefinitionsApiAxiosParamCreator = function (configuration?: Configuration) {\n return {\n /**\n * Retrieve an Amazon product type definition. **Usage Plans:** | Plan type | Rate (requests per second) | Burst | | ---- | ---- | ---- | |Default| 5 | 10 | |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](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).\n * @param {string} productType The Amazon product type name.\n * @param {Array<string>} marketplaceIds A comma-delimited list of Amazon marketplace identifiers for the request. Note: This parameter is limited to one marketplaceId at this time.\n * @param {string} [sellerId] A selling partner identifier. When provided, seller-specific requirements and values are populated within the product type definition schema, such as brand names associated with the selling partner.\n * @param {string} [productTypeVersion] The version of the Amazon product type to retrieve. Defaults to \\&quot;LATEST\\&quot;. Prerelease versions of product type definitions may be retrieved with \\&quot;RELEASE_CANDIDATE\\&quot;. If no prerelease version is currently available, the \\&quot;LATEST\\&quot; live version will be provided.\n * @param {GetDefinitionsProductTypeRequirementsEnum} [requirements] The name of the requirements set to retrieve requirements for.\n * @param {GetDefinitionsProductTypeRequirementsEnforcedEnum} [requirementsEnforced] Identifies if the required attributes for a requirements set are enforced by the product type definition schema. Non-enforced requirements enable structural validation of individual attributes without all the required attributes being present (such as for partial updates).\n * @param {GetDefinitionsProductTypeLocaleEnum} [locale] Locale for retrieving display labels and other presentation details. Defaults to the default language of the first marketplace in the request.\n * @param {GetDefinitionsProductTypeParentageLevelEnum} [parentageLevel] The parentage level of the listing to retrieve a schema for. When provided, the schema is simplified by resolving all conditional logic related to the specified parentage level, resulting in a smaller schema with fewer conditions.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n getDefinitionsProductType: async (productType: string, marketplaceIds: Array<string>, sellerId?: string, productTypeVersion?: string, requirements?: GetDefinitionsProductTypeRequirementsEnum, requirementsEnforced?: GetDefinitionsProductTypeRequirementsEnforcedEnum, locale?: GetDefinitionsProductTypeLocaleEnum, parentageLevel?: GetDefinitionsProductTypeParentageLevelEnum, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {\n // verify required parameter 'productType' is not null or undefined\n assertParamExists('getDefinitionsProductType', 'productType', productType)\n // verify required parameter 'marketplaceIds' is not null or undefined\n assertParamExists('getDefinitionsProductType', 'marketplaceIds', marketplaceIds)\n const localVarPath = `/definitions/2020-09-01/productTypes/{productType}`\n .replace('{productType}', encodeURIComponent(String(productType)));\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n if (sellerId !== undefined) {\n localVarQueryParameter['sellerId'] = sellerId;\n }\n\n if (marketplaceIds) {\n localVarQueryParameter['marketplaceIds'] = marketplaceIds.join(COLLECTION_FORMATS.csv);\n }\n\n if (productTypeVersion !== undefined) {\n localVarQueryParameter['productTypeVersion'] = productTypeVersion;\n }\n\n if (requirements !== undefined) {\n localVarQueryParameter['requirements'] = requirements;\n }\n\n if (requirementsEnforced !== undefined) {\n localVarQueryParameter['requirementsEnforced'] = requirementsEnforced;\n }\n\n if (locale !== undefined) {\n localVarQueryParameter['locale'] = locale;\n }\n\n if (parentageLevel !== undefined) {\n localVarQueryParameter['parentageLevel'] = parentageLevel;\n }\n\n localVarHeaderParameter['Accept'] = 'application/json';\n\n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * Search for and return a list of Amazon product types that have definitions available. **Usage Plans:** | Plan type | Rate (requests per second) | Burst | | ---- | ---- | ---- | |Default| 5 | 10 | |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](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).\n * @param {Array<string>} marketplaceIds A comma-delimited list of Amazon marketplace identifiers for the request.\n * @param {Array<string>} [keywords] A comma-delimited list of keywords to search product types. **Note:** Cannot be used with &#x60;itemName&#x60;.\n * @param {string} [itemName] Title of ASIN to get product type recommendation. **Note:** Cannot be used with &#x60;keywords&#x60;.\n * @param {string} [locale] Locale for display names in response. Defaults to primary locale of the marketplace.\n * @param {string} [searchLocale] Language used for &#x60;keywords&#x60; or &#x60;itemName&#x60; parameters. Defaults to primary locale of the marketplace.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n searchDefinitionsProductTypes: async (marketplaceIds: Array<string>, keywords?: Array<string>, itemName?: string, locale?: string, searchLocale?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {\n // verify required parameter 'marketplaceIds' is not null or undefined\n assertParamExists('searchDefinitionsProductTypes', 'marketplaceIds', marketplaceIds)\n const localVarPath = `/definitions/2020-09-01/productTypes`;\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n if (keywords) {\n localVarQueryParameter['keywords'] = keywords.join(COLLECTION_FORMATS.csv);\n }\n\n if (marketplaceIds) {\n localVarQueryParameter['marketplaceIds'] = marketplaceIds.join(COLLECTION_FORMATS.csv);\n }\n\n if (itemName !== undefined) {\n localVarQueryParameter['itemName'] = itemName;\n }\n\n if (locale !== undefined) {\n localVarQueryParameter['locale'] = locale;\n }\n\n if (searchLocale !== undefined) {\n localVarQueryParameter['searchLocale'] = searchLocale;\n }\n\n localVarHeaderParameter['Accept'] = 'application/json';\n\n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n }\n};\n\n/**\n * ProductTypeDefinitionsApi - functional programming interface\n */\nexport const ProductTypeDefinitionsApiFp = function(configuration?: Configuration) {\n const localVarAxiosParamCreator = ProductTypeDefinitionsApiAxiosParamCreator(configuration)\n return {\n /**\n * Retrieve an Amazon product type definition. **Usage Plans:** | Plan type | Rate (requests per second) | Burst | | ---- | ---- | ---- | |Default| 5 | 10 | |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](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).\n * @param {string} productType The Amazon product type name.\n * @param {Array<string>} marketplaceIds A comma-delimited list of Amazon marketplace identifiers for the request. Note: This parameter is limited to one marketplaceId at this time.\n * @param {string} [sellerId] A selling partner identifier. When provided, seller-specific requirements and values are populated within the product type definition schema, such as brand names associated with the selling partner.\n * @param {string} [productTypeVersion] The version of the Amazon product type to retrieve. Defaults to \\&quot;LATEST\\&quot;. Prerelease versions of product type definitions may be retrieved with \\&quot;RELEASE_CANDIDATE\\&quot;. If no prerelease version is currently available, the \\&quot;LATEST\\&quot; live version will be provided.\n * @param {GetDefinitionsProductTypeRequirementsEnum} [requirements] The name of the requirements set to retrieve requirements for.\n * @param {GetDefinitionsProductTypeRequirementsEnforcedEnum} [requirementsEnforced] Identifies if the required attributes for a requirements set are enforced by the product type definition schema. Non-enforced requirements enable structural validation of individual attributes without all the required attributes being present (such as for partial updates).\n * @param {GetDefinitionsProductTypeLocaleEnum} [locale] Locale for retrieving display labels and other presentation details. Defaults to the default language of the first marketplace in the request.\n * @param {GetDefinitionsProductTypeParentageLevelEnum} [parentageLevel] The parentage level of the listing to retrieve a schema for. When provided, the schema is simplified by resolving all conditional logic related to the specified parentage level, resulting in a smaller schema with fewer conditions.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async getDefinitionsProductType(productType: string, marketplaceIds: Array<string>, sellerId?: string, productTypeVersion?: string, requirements?: GetDefinitionsProductTypeRequirementsEnum, requirementsEnforced?: GetDefinitionsProductTypeRequirementsEnforcedEnum, locale?: GetDefinitionsProductTypeLocaleEnum, parentageLevel?: GetDefinitionsProductTypeParentageLevelEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProductTypeDefinition>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.getDefinitionsProductType(productType, marketplaceIds, sellerId, productTypeVersion, requirements, requirementsEnforced, locale, parentageLevel, options);\n const localVarOperationServerIndex = configuration?.serverIndex ?? 0;\n const localVarOperationServerBasePath = operationServerMap['ProductTypeDefinitionsApi.getDefinitionsProductType']?.[localVarOperationServerIndex]?.url;\n return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);\n },\n /**\n * Search for and return a list of Amazon product types that have definitions available. **Usage Plans:** | Plan type | Rate (requests per second) | Burst | | ---- | ---- | ---- | |Default| 5 | 10 | |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](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).\n * @param {Array<string>} marketplaceIds A comma-delimited list of Amazon marketplace identifiers for the request.\n * @param {Array<string>} [keywords] A comma-delimited list of keywords to search product types. **Note:** Cannot be used with &#x60;itemName&#x60;.\n * @param {string} [itemName] Title of ASIN to get product type recommendation. **Note:** Cannot be used with &#x60;keywords&#x60;.\n * @param {string} [locale] Locale for display names in response. Defaults to primary locale of the marketplace.\n * @param {string} [searchLocale] Language used for &#x60;keywords&#x60; or &#x60;itemName&#x60; parameters. Defaults to primary locale of the marketplace.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async searchDefinitionsProductTypes(marketplaceIds: Array<string>, keywords?: Array<string>, itemName?: string, locale?: string, searchLocale?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProductTypeList>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.searchDefinitionsProductTypes(marketplaceIds, keywords, itemName, locale, searchLocale, options);\n const localVarOperationServerIndex = configuration?.serverIndex ?? 0;\n const localVarOperationServerBasePath = operationServerMap['ProductTypeDefinitionsApi.searchDefinitionsProductTypes']?.[localVarOperationServerIndex]?.url;\n return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);\n },\n }\n};\n\n/**\n * ProductTypeDefinitionsApi - factory interface\n */\nexport const ProductTypeDefinitionsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {\n const localVarFp = ProductTypeDefinitionsApiFp(configuration)\n return {\n /**\n * Retrieve an Amazon product type definition. **Usage Plans:** | Plan type | Rate (requests per second) | Burst | | ---- | ---- | ---- | |Default| 5 | 10 | |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](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).\n * @param {ProductTypeDefinitionsApiGetDefinitionsProductTypeRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n getDefinitionsProductType(requestParameters: ProductTypeDefinitionsApiGetDefinitionsProductTypeRequest, options?: RawAxiosRequestConfig): AxiosPromise<ProductTypeDefinition> {\n return localVarFp.getDefinitionsProductType(requestParameters.productType, requestParameters.marketplaceIds, requestParameters.sellerId, requestParameters.productTypeVersion, requestParameters.requirements, requestParameters.requirementsEnforced, requestParameters.locale, requestParameters.parentageLevel, options).then((request) => request(axios, basePath));\n },\n /**\n * Search for and return a list of Amazon product types that have definitions available. **Usage Plans:** | Plan type | Rate (requests per second) | Burst | | ---- | ---- | ---- | |Default| 5 | 10 | |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](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).\n * @param {ProductTypeDefinitionsApiSearchDefinitionsProductTypesRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n searchDefinitionsProductTypes(requestParameters: ProductTypeDefinitionsApiSearchDefinitionsProductTypesRequest, options?: RawAxiosRequestConfig): AxiosPromise<ProductTypeList> {\n return localVarFp.searchDefinitionsProductTypes(requestParameters.marketplaceIds, requestParameters.keywords, requestParameters.itemName, requestParameters.locale, requestParameters.searchLocale, options).then((request) => request(axios, basePath));\n },\n };\n};\n\n/**\n * Request parameters for getDefinitionsProductType operation in ProductTypeDefinitionsApi.\n */\nexport interface ProductTypeDefinitionsApiGetDefinitionsProductTypeRequest {\n /**\n * The Amazon product type name.\n */\n readonly productType: string\n\n /**\n * A comma-delimited list of Amazon marketplace identifiers for the request. Note: This parameter is limited to one marketplaceId at this time.\n */\n readonly marketplaceIds: Array<string>\n\n /**\n * A selling partner identifier. When provided, seller-specific requirements and values are populated within the product type definition schema, such as brand names associated with the selling partner.\n */\n readonly sellerId?: string\n\n /**\n * The version of the Amazon product type to retrieve. Defaults to \\&quot;LATEST\\&quot;. Prerelease versions of product type definitions may be retrieved with \\&quot;RELEASE_CANDIDATE\\&quot;. If no prerelease version is currently available, the \\&quot;LATEST\\&quot; live version will be provided.\n */\n readonly productTypeVersion?: string\n\n /**\n * The name of the requirements set to retrieve requirements for.\n */\n readonly requirements?: GetDefinitionsProductTypeRequirementsEnum\n\n /**\n * Identifies if the required attributes for a requirements set are enforced by the product type definition schema. Non-enforced requirements enable structural validation of individual attributes without all the required attributes being present (such as for partial updates).\n */\n readonly requirementsEnforced?: GetDefinitionsProductTypeRequirementsEnforcedEnum\n\n /**\n * Locale for retrieving display labels and other presentation details. Defaults to the default language of the first marketplace in the request.\n */\n readonly locale?: GetDefinitionsProductTypeLocaleEnum\n\n /**\n * The parentage level of the listing to retrieve a schema for. When provided, the schema is simplified by resolving all conditional logic related to the specified parentage level, resulting in a smaller schema with fewer conditions.\n */\n readonly parentageLevel?: GetDefinitionsProductTypeParentageLevelEnum\n}\n\n/**\n * Request parameters for searchDefinitionsProductTypes operation in ProductTypeDefinitionsApi.\n */\nexport interface ProductTypeDefinitionsApiSearchDefinitionsProductTypesRequest {\n /**\n * A comma-delimited list of Amazon marketplace identifiers for the request.\n */\n readonly marketplaceIds: Array<string>\n\n /**\n * A comma-delimited list of keywords to search product types. **Note:** Cannot be used with &#x60;itemName&#x60;.\n */\n readonly keywords?: Array<string>\n\n /**\n * Title of ASIN to get product type recommendation. **Note:** Cannot be used with &#x60;keywords&#x60;.\n */\n readonly itemName?: string\n\n /**\n * Locale for display names in response. Defaults to primary locale of the marketplace.\n */\n readonly locale?: string\n\n /**\n * Language used for &#x60;keywords&#x60; or &#x60;itemName&#x60; parameters. Defaults to primary locale of the marketplace.\n */\n readonly searchLocale?: string\n}\n\n/**\n * ProductTypeDefinitionsApi - object-oriented interface\n */\nexport class ProductTypeDefinitionsApi extends BaseAPI {\n /**\n * Retrieve an Amazon product type definition. **Usage Plans:** | Plan type | Rate (requests per second) | Burst | | ---- | ---- | ---- | |Default| 5 | 10 | |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](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).\n * @param {ProductTypeDefinitionsApiGetDefinitionsProductTypeRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n public getDefinitionsProductType(requestParameters: ProductTypeDefinitionsApiGetDefinitionsProductTypeRequest, options?: RawAxiosRequestConfig) {\n return ProductTypeDefinitionsApiFp(this.configuration).getDefinitionsProductType(requestParameters.productType, requestParameters.marketplaceIds, requestParameters.sellerId, requestParameters.productTypeVersion, requestParameters.requirements, requestParameters.requirementsEnforced, requestParameters.locale, requestParameters.parentageLevel, options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * Search for and return a list of Amazon product types that have definitions available. **Usage Plans:** | Plan type | Rate (requests per second) | Burst | | ---- | ---- | ---- | |Default| 5 | 10 | |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](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).\n * @param {ProductTypeDefinitionsApiSearchDefinitionsProductTypesRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n public searchDefinitionsProductTypes(requestParameters: ProductTypeDefinitionsApiSearchDefinitionsProductTypesRequest, options?: RawAxiosRequestConfig) {\n return ProductTypeDefinitionsApiFp(this.configuration).searchDefinitionsProductTypes(requestParameters.marketplaceIds, requestParameters.keywords, requestParameters.itemName, requestParameters.locale, requestParameters.searchLocale, options).then((request) => request(this.axios, this.basePath));\n }\n}\n\nexport const GetDefinitionsProductTypeRequirementsEnum = {\n Listing: 'LISTING',\n ListingProductOnly: 'LISTING_PRODUCT_ONLY',\n ListingOfferOnly: 'LISTING_OFFER_ONLY',\n} as const;\nexport type GetDefinitionsProductTypeRequirementsEnum = typeof GetDefinitionsProductTypeRequirementsEnum[keyof typeof GetDefinitionsProductTypeRequirementsEnum];\nexport const GetDefinitionsProductTypeRequirementsEnforcedEnum = {\n Enforced: 'ENFORCED',\n NotEnforced: 'NOT_ENFORCED',\n} as const;\nexport type GetDefinitionsProductTypeRequirementsEnforcedEnum = typeof GetDefinitionsProductTypeRequirementsEnforcedEnum[keyof typeof GetDefinitionsProductTypeRequirementsEnforcedEnum];\nexport const GetDefinitionsProductTypeLocaleEnum = {\n Default: 'DEFAULT',\n Ar: 'ar',\n ArAe: 'ar_AE',\n De: 'de',\n DeDe: 'de_DE',\n En: 'en',\n EnAe: 'en_AE',\n EnAu: 'en_AU',\n EnCa: 'en_CA',\n EnGb: 'en_GB',\n EnIn: 'en_IN',\n EnSg: 'en_SG',\n EnUs: 'en_US',\n Es: 'es',\n EsEs: 'es_ES',\n EsMx: 'es_MX',\n EsUs: 'es_US',\n Fr: 'fr',\n FrCa: 'fr_CA',\n FrFr: 'fr_FR',\n It: 'it',\n ItIt: 'it_IT',\n Ja: 'ja',\n JaJp: 'ja_JP',\n Nl: 'nl',\n NlNl: 'nl_NL',\n Pl: 'pl',\n PlPl: 'pl_PL',\n Pt: 'pt',\n PtBr: 'pt_BR',\n PtPt: 'pt_PT',\n Sv: 'sv',\n SvSe: 'sv_SE',\n Tr: 'tr',\n TrTr: 'tr_TR',\n Zh: 'zh',\n ZhCn: 'zh_CN',\n ZhTw: 'zh_TW',\n} as const;\nexport type GetDefinitionsProductTypeLocaleEnum = typeof GetDefinitionsProductTypeLocaleEnum[keyof typeof GetDefinitionsProductTypeLocaleEnum];\nexport const GetDefinitionsProductTypeParentageLevelEnum = {\n None: 'NONE',\n Child: 'CHILD',\n Parent: 'PARENT',\n} as const;\nexport type GetDefinitionsProductTypeParentageLevelEnum = typeof GetDefinitionsProductTypeParentageLevelEnum[keyof typeof GetDefinitionsProductTypeParentageLevelEnum];\n","/* tslint:disable */\n/* eslint-disable */\n/**\n * Selling Partner API for Product Type Definitions\n * The Selling Partner API for Product Type Definitions provides programmatic access to attribute and data requirements for product types in the Amazon catalog. Use this API to return the JSON Schema for a product type that you can then use with other Selling Partner APIs, such as the Selling Partner API for Listings Items, the Selling Partner API for Catalog Items, and the Selling Partner API for Feeds (for JSON-based listing feeds). For more information, see the [Product Type Definitions API Use Case Guide](https://developer-docs.amazon.com/sp-api/docs/product-type-api-use-case-guide).\n *\n * The version of the OpenAPI document: 2020-09-01\n * \n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\n\nimport type { Configuration } from './configuration.js';\n// Some imports not used depending on template conditions\n// @ts-ignore\nimport type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';\nimport globalAxios from 'axios';\n\nexport const BASE_PATH = \"https://sellingpartnerapi-na.amazon.com\".replace(/\\/+$/, \"\");\n\nexport const COLLECTION_FORMATS = {\n csv: \",\",\n ssv: \" \",\n tsv: \"\\t\",\n pipes: \"|\",\n};\n\nexport interface RequestArgs {\n url: string;\n options: RawAxiosRequestConfig;\n}\n\nexport class BaseAPI {\n protected configuration: Configuration | undefined;\n\n constructor(configuration?: Configuration, protected basePath: string = BASE_PATH, protected axios: AxiosInstance = globalAxios) {\n if (configuration) {\n this.configuration = configuration;\n this.basePath = configuration.basePath ?? basePath;\n }\n }\n};\n\nexport class RequiredError extends Error {\n constructor(public field: string, msg?: string) {\n super(msg);\n this.name = \"RequiredError\"\n }\n}\n\ninterface ServerMap {\n [key: string]: {\n url: string,\n description: string,\n }[];\n}\n\nexport const operationServerMap: ServerMap = {\n}\n","/* tslint:disable */\n/* eslint-disable */\n/**\n * Selling Partner API for Product Type Definitions\n * The Selling Partner API for Product Type Definitions provides programmatic access to attribute and data requirements for product types in the Amazon catalog. Use this API to return the JSON Schema for a product type that you can then use with other Selling Partner APIs, such as the Selling Partner API for Listings Items, the Selling Partner API for Catalog Items, and the Selling Partner API for Feeds (for JSON-based listing feeds). For more information, see the [Product Type Definitions API Use Case Guide](https://developer-docs.amazon.com/sp-api/docs/product-type-api-use-case-guide).\n *\n * The version of the OpenAPI document: 2020-09-01\n * \n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\nimport type { Configuration } from \"./configuration.js\";\nimport type { RequestArgs } from \"./base.js\";\nimport type { AxiosInstance, AxiosResponse } from 'axios';\nimport { RequiredError } from \"./base.js\";\n\nexport const DUMMY_BASE_URL = 'https://example.com'\n\n/**\n *\n * @throws {RequiredError}\n */\nexport const assertParamExists = function (functionName: string, paramName: string, paramValue: unknown) {\n if (paramValue === null || paramValue === undefined) {\n throw new RequiredError(paramName, `Required parameter ${paramName} was null or undefined when calling ${functionName}.`);\n }\n}\n\nexport const setApiKeyToObject = async function (object: any, keyParamName: string, configuration?: Configuration) {\n if (configuration && configuration.apiKey) {\n const localVarApiKeyValue = typeof configuration.apiKey === 'function'\n ? await configuration.apiKey(keyParamName)\n : await configuration.apiKey;\n object[keyParamName] = localVarApiKeyValue;\n }\n}\n\nexport const setBasicAuthToObject = function (object: any, configuration?: Configuration) {\n if (configuration && (configuration.username || configuration.password)) {\n object[\"auth\"] = { username: configuration.username, password: configuration.password };\n }\n}\n\nexport const setBearerAuthToObject = async function (object: any, configuration?: Configuration) {\n if (configuration && configuration.accessToken) {\n const accessToken = typeof configuration.accessToken === 'function'\n ? await configuration.accessToken()\n : await configuration.accessToken;\n object[\"Authorization\"] = \"Bearer \" + accessToken;\n }\n}\n\nexport const setOAuthToObject = async function (object: any, name: string, scopes: string[], configuration?: Configuration) {\n if (configuration && configuration.accessToken) {\n const localVarAccessTokenValue = typeof configuration.accessToken === 'function'\n ? await configuration.accessToken(name, scopes)\n : await configuration.accessToken;\n object[\"Authorization\"] = \"Bearer \" + localVarAccessTokenValue;\n }\n}\n\n\nfunction setFlattenedQueryParams(urlSearchParams: URLSearchParams, parameter: any, key: string = \"\"): void {\n if (parameter == null) return;\n if (typeof parameter === \"object\") {\n if (Array.isArray(parameter) || parameter instanceof Set) {\n (parameter as any[]).forEach(item => setFlattenedQueryParams(urlSearchParams, item, key));\n }\n else {\n Object.keys(parameter).forEach(currentKey =>\n setFlattenedQueryParams(urlSearchParams, parameter[currentKey], `${key}${key !== '' ? '.' : ''}${currentKey}`)\n );\n }\n }\n else {\n if (urlSearchParams.has(key)) {\n urlSearchParams.append(key, parameter);\n }\n else {\n urlSearchParams.set(key, parameter);\n }\n }\n}\n\nexport const setSearchParams = function (url: URL, ...objects: any[]) {\n const searchParams = new URLSearchParams(url.search);\n setFlattenedQueryParams(searchParams, objects);\n url.search = searchParams.toString();\n}\n\n/**\n * JSON serialization helper function which replaces instances of unserializable types with serializable ones.\n * This function will run for every key-value pair encountered by JSON.stringify while traversing an object.\n * Converting a set to a string will return an empty object, so an intermediate conversion to an array is required.\n */\n// @ts-ignore\nexport const replaceWithSerializableTypeIfNeeded = function(key: string, value: any) {\n if (value instanceof Set) {\n return Array.from(value);\n } else {\n return value;\n }\n}\n\nexport const serializeDataIfNeeded = function (value: any, requestOptions: any, configuration?: Configuration) {\n const nonString = typeof value !== 'string';\n const needsSerialization = nonString && configuration && configuration.isJsonMime\n ? configuration.isJsonMime(requestOptions.headers['Content-Type'])\n : nonString;\n return needsSerialization\n ? JSON.stringify(value !== undefined ? value : {}, replaceWithSerializableTypeIfNeeded)\n : (value || \"\");\n}\n\nexport const toPathString = function (url: URL) {\n return url.pathname + url.search + url.hash\n}\n\nexport const createRequestFunction = function (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) {\n return <T = unknown, R = AxiosResponse<T>>(axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {\n const axiosRequestArgs = {...axiosArgs.options, url: (axios.defaults.baseURL ? '' : configuration?.basePath ?? basePath) + axiosArgs.url};\n return axios.request<T, R>(axiosRequestArgs);\n };\n}\n","/* tslint:disable */\n/**\n * Selling Partner API for Product Type Definitions\n * The Selling Partner API for Product Type Definitions provides programmatic access to attribute and data requirements for product types in the Amazon catalog. Use this API to return the JSON Schema for a product type that you can then use with other Selling Partner APIs, such as the Selling Partner API for Listings Items, the Selling Partner API for Catalog Items, and the Selling Partner API for Feeds (for JSON-based listing feeds). For more information, see the [Product Type Definitions API Use Case Guide](https://developer-docs.amazon.com/sp-api/docs/product-type-api-use-case-guide).\n *\n * The version of the OpenAPI document: 2020-09-01\n * \n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\ninterface AWSv4Configuration {\n options?: {\n region?: string\n service?: string\n }\n credentials?: {\n accessKeyId?: string\n secretAccessKey?: string,\n sessionToken?: string\n }\n}\n\nexport interface ConfigurationParameters {\n apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);\n username?: string;\n password?: string;\n accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);\n awsv4?: AWSv4Configuration;\n basePath?: string;\n serverIndex?: number;\n baseOptions?: any;\n formDataCtor?: new () => any;\n}\n\nexport class Configuration {\n /**\n * parameter for apiKey security\n * @param name security name\n */\n apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);\n /**\n * parameter for basic security\n */\n username?: string;\n /**\n * parameter for basic security\n */\n password?: string;\n /**\n * parameter for oauth2 security\n * @param name security name\n * @param scopes oauth2 scope\n */\n accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);\n /**\n * parameter for aws4 signature security\n * @param {Object} AWS4Signature - AWS4 Signature security\n * @param {string} options.region - aws region\n * @param {string} options.service - name of the service.\n * @param {string} credentials.accessKeyId - aws access key id\n * @param {string} credentials.secretAccessKey - aws access key\n * @param {string} credentials.sessionToken - aws session token\n * @memberof Configuration\n */\n awsv4?: AWSv4Configuration;\n /**\n * override base path\n */\n basePath?: string;\n /**\n * override server index\n */\n serverIndex?: number;\n /**\n * base options for axios calls\n */\n baseOptions?: any;\n /**\n * The FormData constructor that will be used to create multipart form data\n * requests. You can inject this here so that execution environments that\n * do not support the FormData class can still run the generated client.\n *\n * @type {new () => FormData}\n */\n formDataCtor?: new () => any;\n\n constructor(param: ConfigurationParameters = {}) {\n this.apiKey = param.apiKey;\n this.username = param.username;\n this.password = param.password;\n this.accessToken = param.accessToken;\n this.awsv4 = param.awsv4;\n this.basePath = param.basePath;\n this.serverIndex = param.serverIndex;\n this.baseOptions = {\n ...param.baseOptions,\n headers: {\n ...param.baseOptions?.headers,\n },\n };\n this.formDataCtor = param.formDataCtor;\n }\n\n /**\n * Check if the given MIME is a JSON MIME.\n * JSON MIME examples:\n * application/json\n * application/json; charset=UTF8\n * APPLICATION/JSON\n * application/vnd.company+json\n * @param mime - MIME (Multipurpose Internet Mail Extensions)\n * @return True if the given MIME is JSON, false otherwise.\n */\n public isJsonMime(mime: string): boolean {\n const jsonMime: RegExp = /^(application\\/json|[^;/ \\t]+\\/[^;/ \\t]+[+]json)[ \\t]*(;.*)?$/i;\n return mime !== null && jsonMime.test(mime);\n }\n}\n","/* tslint:disable */\n/* eslint-disable */\n/**\n * Selling Partner API for Product Type Definitions\n * The Selling Partner API for Product Type Definitions provides programmatic access to attribute and data requirements for product types in the Amazon catalog. Use this API to return the JSON Schema for a product type that you can then use with other Selling Partner APIs, such as the Selling Partner API for Listings Items, the Selling Partner API for Catalog Items, and the Selling Partner API for Feeds (for JSON-based listing feeds). For more information, see the [Product Type Definitions API Use Case Guide](https://developer-docs.amazon.com/sp-api/docs/product-type-api-use-case-guide).\n *\n * The version of the OpenAPI document: 2020-09-01\n * \n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\n\n// May contain unused imports in some cases\n// @ts-ignore\nimport type { ProductTypeVersion } from './product-type-version.js';\n// May contain unused imports in some cases\n// @ts-ignore\nimport type { PropertyGroup } from './property-group.js';\n// May contain unused imports in some cases\n// @ts-ignore\nimport type { SchemaLink } from './schema-link.js';\n\n/**\n * A product type definition represents the attributes and data requirements for a product type in the Amazon catalog. Product type definitions are used interchangeably between the Selling Partner API for Listings Items, Selling Partner API for Catalog Items, and JSON-based listings feeds in the Selling Partner API for Feeds.\n */\nexport interface ProductTypeDefinition {\n 'metaSchema'?: SchemaLink;\n 'schema': SchemaLink;\n /**\n * Name of the requirements set represented in this product type definition.\n */\n 'requirements': ProductTypeDefinitionRequirementsEnum;\n /**\n * Identifies if the required attributes for a requirements set are enforced by the product type definition schema. Non-enforced requirements enable structural validation of individual attributes without all of the required attributes being present (such as for partial updates).\n */\n 'requirementsEnforced': ProductTypeDefinitionRequirementsEnforcedEnum;\n /**\n * Mapping of property group names to property groups. Property groups represent logical groupings of schema properties that can be used for display or informational purposes.\n */\n 'propertyGroups': { [key: string]: PropertyGroup; };\n /**\n * Locale of the display elements contained in the product type definition.\n */\n 'locale': string;\n /**\n * Amazon marketplace identifiers for which the product type definition is applicable.\n */\n 'marketplaceIds': Array<string>;\n /**\n * The name of the Amazon product type that this product type definition applies to.\n */\n 'productType': string;\n /**\n * Human-readable and localized description of the Amazon product type.\n */\n 'displayName': string;\n 'productTypeVersion': ProductTypeVersion;\n}\n\nexport const ProductTypeDefinitionRequirementsEnum = {\n Listing: 'LISTING',\n ListingProductOnly: 'LISTING_PRODUCT_ONLY',\n ListingOfferOnly: 'LISTING_OFFER_ONLY',\n} as const;\n\nexport type ProductTypeDefinitionRequirementsEnum = typeof ProductTypeDefinitionRequirementsEnum[keyof typeof ProductTypeDefinitionRequirementsEnum];\nexport const ProductTypeDefinitionRequirementsEnforcedEnum = {\n Enforced: 'ENFORCED',\n NotEnforced: 'NOT_ENFORCED',\n} as const;\n\nexport type ProductTypeDefinitionRequirementsEnforcedEnum = typeof ProductTypeDefinitionRequirementsEnforcedEnum[keyof typeof ProductTypeDefinitionRequirementsEnforcedEnum];\n\n\n","/* tslint:disable */\n/* eslint-disable */\n/**\n * Selling Partner API for Product Type Definitions\n * The Selling Partner API for Product Type Definitions provides programmatic access to attribute and data requirements for product types in the Amazon catalog. Use this API to return the JSON Schema for a product type that you can then use with other Selling Partner APIs, such as the Selling Partner API for Listings Items, the Selling Partner API for Catalog Items, and the Selling Partner API for Feeds (for JSON-based listing feeds). For more information, see the [Product Type Definitions API Use Case Guide](https://developer-docs.amazon.com/sp-api/docs/product-type-api-use-case-guide).\n *\n * The version of the OpenAPI document: 2020-09-01\n * \n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\n\n\n/**\n * Link to retrieve the schema.\n */\nexport interface SchemaLinkLink {\n /**\n * URI resource for the link.\n */\n 'resource': string;\n /**\n * HTTP method for the link operation.\n */\n 'verb': SchemaLinkLinkVerbEnum;\n}\n\nexport const SchemaLinkLinkVerbEnum = {\n Get: 'GET',\n} as const;\n\nexport type SchemaLinkLinkVerbEnum = typeof SchemaLinkLinkVerbEnum[keyof typeof SchemaLinkLinkVerbEnum];\n\n\n"],"mappings":";AAAA,SAAkC,2BAA0C;;;ACiB5E,OAAOA,kBAAiB;;;ACExB,OAAO,iBAAiB;AAEjB,IAAM,YAAY,0CAA0C,QAAQ,QAAQ,EAAE;AAE9E,IAAM,qBAAqB;AAAA,EAC9B,KAAK;AAAA,EACL,KAAK;AAAA,EACL,KAAK;AAAA,EACL,OAAO;AACX;AAOO,IAAM,UAAN,MAAc;AAAA,EAGjB,YAAY,eAAyC,WAAmB,WAAqB,QAAuB,aAAa;AAA5E;AAAwC;AACzF,QAAI,eAAe;AACf,WAAK,gBAAgB;AACrB,WAAK,WAAW,cAAc,YAAY;AAAA,IAC9C;AAAA,EACJ;AAAA,EALqD;AAAA,EAAwC;AAAA,EAFnF;AAQd;AAEO,IAAM,gBAAN,cAA4B,MAAM;AAAA,EACrC,YAAmB,OAAe,KAAc;AAC5C,UAAM,GAAG;AADM;AAEf,SAAK,OAAO;AAAA,EAChB;AAAA,EAHmB;AAIvB;AASO,IAAM,qBAAgC,CAC7C;;;AC1CO,IAAM,iBAAiB;AAMvB,IAAM,oBAAoB,SAAU,cAAsB,WAAmB,YAAqB;AACrG,MAAI,eAAe,QAA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SAAK,WAAW,MAAM;AACtB,SAAK,cAAc,MAAM;AACzB,SAAK,cAAc;AAAA,MACf,GAAG,MAAM;AAAA,MACT,SAAS;AAAA,QACL,GAAG,MAAM,aAAa;AAAA,MAC1B;AAAA,IACJ;AACA,SAAK,eAAe,MAAM;AAAA,EAC9B;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAYO,WAAW,MAAuB;AACrC,UAAM,WAAmB;AACzB,WAAO,SAAS,QAAQ,SAAS,KAAK,IAAI;AAAA,EAC9C;AACJ;;;AC1DO,IAAM,wCAAwC;AAAA,EACjD,SAAS;AAAA,EACT,oBAAoB;AAAA,EACpB,kBAAkB;AACtB;AAGO,IAAM,gDAAgD;AAAA,EACzD,UAAU;AAAA,EACV,aAAa;AACjB;;;AC1CO,IAAM,yBAAyB;AAAA,EAClC,KAAK;AACT;;;AN5BO,IAAM,mBAAgC;AAAA,EAC3C;AAAA,IACE,QAAQ;AAAA;AAAA,IAER,UAAU,IAAI,OAAO,wCAAwC;AAAA,IAC7D,MAAM;AAAA,IACN,OAAO;AAAA,EACT;AAAA,EACA;AAAA,IACE,QAAQ;AAAA;AAAA,IAER,UAAU,IAAI,OAAO,8CAA8C;AAAA,IACnE,MAAM;AAAA,IACN,OAAO;AAAA,EACT;AACF;AAEO,IAAM,kCAAN,cAA8C,0BAA0B;AAAA,EAC7E,YAAY,eAAoC;AAC9C,UAAM,EAAC,OAAO,SAAQ,IAAI,oBAAoB,eAAe,gBAAgB;AAE7E,UAAM,IAAI,cAAc,GAAG,UAAU,KAAK;AAAA,EAC5C;AACF;","names":["globalAxios","globalAxios","BASE_PATH","globalAxios"]}
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@sp-api-sdk/product-type-definitions-api-2020-09-01",
3
3
  "author": "Bertrand Marron <bertrand@bizon.solutions>",
4
4
  "description": "The Selling Partner API for Product Type Definitions provides programmatic access to attribute and data requirements for product types in the Amazon catalog. Use this API to return the JSON Schema for a product type that you can then use with other Selling Partner APIs, such as the Selling Partner API for Listings Items, the Selling Partner API for Catalog Items, and the Selling Partner API for Feeds (for JSON-based listing feeds). For more information, see the Product Type Definitions API Use Case Guide.",
5
- "version": "5.0.0",
5
+ "version": "5.1.0",
6
6
  "license": "MIT",
7
7
  "type": "module",
8
8
  "sideEffects": false,
@@ -51,5 +51,5 @@
51
51
  "sp sdk",
52
52
  "product type definitions api"
53
53
  ],
54
- "gitHead": "fc6f28dc89089e9987831b8a1a008f1871e55289"
54
+ "gitHead": "cd5577c842e631edc4491d26e73b27f2f11b3ab1"
55
55
  }