{"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,WA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