@sp-api-sdk/product-type-definitions-api-2020-09-01 1.9.3 → 1.9.6

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.
@@ -73,7 +73,7 @@ const DefinitionsApiAxiosParamCreator = function (configuration) {
73
73
  if (locale !== undefined) {
74
74
  localVarQueryParameter['locale'] = locale;
75
75
  }
76
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
76
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
77
77
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
78
78
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
79
79
  return {
@@ -107,7 +107,7 @@ const DefinitionsApiAxiosParamCreator = function (configuration) {
107
107
  if (marketplaceIds) {
108
108
  localVarQueryParameter['marketplaceIds'] = marketplaceIds.join(base_1.COLLECTION_FORMATS.csv);
109
109
  }
110
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
110
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
111
111
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
112
112
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
113
113
  return {
@@ -14,22 +14,12 @@
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.ProductTypeDefinitionRequirementsEnforcedEnum = exports.ProductTypeDefinitionRequirementsEnum = void 0;
17
- /**
18
- * @export
19
- * @enum {string}
20
- */
21
- var ProductTypeDefinitionRequirementsEnum;
22
- (function (ProductTypeDefinitionRequirementsEnum) {
23
- ProductTypeDefinitionRequirementsEnum["Listing"] = "LISTING";
24
- ProductTypeDefinitionRequirementsEnum["ListingProductOnly"] = "LISTING_PRODUCT_ONLY";
25
- ProductTypeDefinitionRequirementsEnum["ListingOfferOnly"] = "LISTING_OFFER_ONLY";
26
- })(ProductTypeDefinitionRequirementsEnum = exports.ProductTypeDefinitionRequirementsEnum || (exports.ProductTypeDefinitionRequirementsEnum = {}));
27
- /**
28
- * @export
29
- * @enum {string}
30
- */
31
- var ProductTypeDefinitionRequirementsEnforcedEnum;
32
- (function (ProductTypeDefinitionRequirementsEnforcedEnum) {
33
- ProductTypeDefinitionRequirementsEnforcedEnum["Enforced"] = "ENFORCED";
34
- ProductTypeDefinitionRequirementsEnforcedEnum["NotEnforced"] = "NOT_ENFORCED";
35
- })(ProductTypeDefinitionRequirementsEnforcedEnum = exports.ProductTypeDefinitionRequirementsEnforcedEnum || (exports.ProductTypeDefinitionRequirementsEnforcedEnum = {}));
17
+ exports.ProductTypeDefinitionRequirementsEnum = {
18
+ Listing: 'LISTING',
19
+ ListingProductOnly: 'LISTING_PRODUCT_ONLY',
20
+ ListingOfferOnly: 'LISTING_OFFER_ONLY'
21
+ };
22
+ exports.ProductTypeDefinitionRequirementsEnforcedEnum = {
23
+ Enforced: 'ENFORCED',
24
+ NotEnforced: 'NOT_ENFORCED'
25
+ };
@@ -14,11 +14,6 @@
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.SchemaLinkLinkVerbEnum = void 0;
17
- /**
18
- * @export
19
- * @enum {string}
20
- */
21
- var SchemaLinkLinkVerbEnum;
22
- (function (SchemaLinkLinkVerbEnum) {
23
- SchemaLinkLinkVerbEnum["Get"] = "GET";
24
- })(SchemaLinkLinkVerbEnum = exports.SchemaLinkLinkVerbEnum || (exports.SchemaLinkLinkVerbEnum = {}));
17
+ exports.SchemaLinkLinkVerbEnum = {
18
+ Get: 'GET'
19
+ };
@@ -69,7 +69,7 @@ export const DefinitionsApiAxiosParamCreator = function (configuration) {
69
69
  if (locale !== undefined) {
70
70
  localVarQueryParameter['locale'] = locale;
71
71
  }
72
- setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
72
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
73
73
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
74
74
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
75
75
  return {
@@ -103,7 +103,7 @@ export const DefinitionsApiAxiosParamCreator = function (configuration) {
103
103
  if (marketplaceIds) {
104
104
  localVarQueryParameter['marketplaceIds'] = marketplaceIds.join(COLLECTION_FORMATS.csv);
105
105
  }
106
- setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
106
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
107
107
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
108
108
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
109
109
  return {
@@ -11,22 +11,12 @@
11
11
  * https://openapi-generator.tech
12
12
  * Do not edit the class manually.
13
13
  */
14
- /**
15
- * @export
16
- * @enum {string}
17
- */
18
- export var ProductTypeDefinitionRequirementsEnum;
19
- (function (ProductTypeDefinitionRequirementsEnum) {
20
- ProductTypeDefinitionRequirementsEnum["Listing"] = "LISTING";
21
- ProductTypeDefinitionRequirementsEnum["ListingProductOnly"] = "LISTING_PRODUCT_ONLY";
22
- ProductTypeDefinitionRequirementsEnum["ListingOfferOnly"] = "LISTING_OFFER_ONLY";
23
- })(ProductTypeDefinitionRequirementsEnum || (ProductTypeDefinitionRequirementsEnum = {}));
24
- /**
25
- * @export
26
- * @enum {string}
27
- */
28
- export var ProductTypeDefinitionRequirementsEnforcedEnum;
29
- (function (ProductTypeDefinitionRequirementsEnforcedEnum) {
30
- ProductTypeDefinitionRequirementsEnforcedEnum["Enforced"] = "ENFORCED";
31
- ProductTypeDefinitionRequirementsEnforcedEnum["NotEnforced"] = "NOT_ENFORCED";
32
- })(ProductTypeDefinitionRequirementsEnforcedEnum || (ProductTypeDefinitionRequirementsEnforcedEnum = {}));
14
+ export const ProductTypeDefinitionRequirementsEnum = {
15
+ Listing: 'LISTING',
16
+ ListingProductOnly: 'LISTING_PRODUCT_ONLY',
17
+ ListingOfferOnly: 'LISTING_OFFER_ONLY'
18
+ };
19
+ export const ProductTypeDefinitionRequirementsEnforcedEnum = {
20
+ Enforced: 'ENFORCED',
21
+ NotEnforced: 'NOT_ENFORCED'
22
+ };
@@ -11,11 +11,6 @@
11
11
  * https://openapi-generator.tech
12
12
  * Do not edit the class manually.
13
13
  */
14
- /**
15
- * @export
16
- * @enum {string}
17
- */
18
- export var SchemaLinkLinkVerbEnum;
19
- (function (SchemaLinkLinkVerbEnum) {
20
- SchemaLinkLinkVerbEnum["Get"] = "GET";
21
- })(SchemaLinkLinkVerbEnum || (SchemaLinkLinkVerbEnum = {}));
14
+ export const SchemaLinkLinkVerbEnum = {
15
+ Get: 'GET'
16
+ };
@@ -9,7 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import { AxiosPromise, AxiosInstance } from 'axios';
12
+ import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
13
13
  import { Configuration } from '../configuration';
14
14
  import { RequestArgs, BaseAPI } from '../base';
15
15
  import { ProductTypeDefinition } from '../models';
@@ -18,7 +18,7 @@ import { ProductTypeList } from '../models';
18
18
  * DefinitionsApi - axios parameter creator
19
19
  * @export
20
20
  */
21
- export declare const DefinitionsApiAxiosParamCreator: (configuration?: Configuration | undefined) => {
21
+ export declare const DefinitionsApiAxiosParamCreator: (configuration?: Configuration) => {
22
22
  /**
23
23
  * 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).
24
24
  * @param {string} productType The Amazon product type name.
@@ -31,7 +31,7 @@ export declare const DefinitionsApiAxiosParamCreator: (configuration?: Configura
31
31
  * @param {*} [options] Override http request option.
32
32
  * @throws {RequiredError}
33
33
  */
34
- getDefinitionsProductType: (productType: string, marketplaceIds: Array<string>, sellerId?: string | undefined, productTypeVersion?: string | undefined, requirements?: "LISTING" | "LISTING_PRODUCT_ONLY" | "LISTING_OFFER_ONLY" | undefined, requirementsEnforced?: "ENFORCED" | "NOT_ENFORCED" | undefined, locale?: "DEFAULT" | "ar" | "ar_AE" | "de" | "de_DE" | "en" | "en_AE" | "en_AU" | "en_CA" | "en_GB" | "en_IN" | "en_SG" | "en_US" | "es" | "es_ES" | "es_MX" | "es_US" | "fr" | "fr_CA" | "fr_FR" | "it" | "it_IT" | "ja" | "ja_JP" | "nl" | "nl_NL" | "pl" | "pl_PL" | "pt" | "pt_BR" | "pt_PT" | "sv" | "sv_SE" | "tr" | "tr_TR" | "zh" | "zh_CN" | "zh_TW" | undefined, options?: any) => Promise<RequestArgs>;
34
+ getDefinitionsProductType: (productType: string, marketplaceIds: Array<string>, sellerId?: string, productTypeVersion?: string, requirements?: 'LISTING' | 'LISTING_PRODUCT_ONLY' | 'LISTING_OFFER_ONLY', requirementsEnforced?: 'ENFORCED' | 'NOT_ENFORCED', locale?: 'DEFAULT' | 'ar' | 'ar_AE' | 'de' | 'de_DE' | 'en' | 'en_AE' | 'en_AU' | 'en_CA' | 'en_GB' | 'en_IN' | 'en_SG' | 'en_US' | 'es' | 'es_ES' | 'es_MX' | 'es_US' | 'fr' | 'fr_CA' | 'fr_FR' | 'it' | 'it_IT' | 'ja' | 'ja_JP' | 'nl' | 'nl_NL' | 'pl' | 'pl_PL' | 'pt' | 'pt_BR' | 'pt_PT' | 'sv' | 'sv_SE' | 'tr' | 'tr_TR' | 'zh' | 'zh_CN' | 'zh_TW', options?: AxiosRequestConfig) => Promise<RequestArgs>;
35
35
  /**
36
36
  * 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).
37
37
  * @param {Array<string>} marketplaceIds A comma-delimited list of Amazon marketplace identifiers for the request.
@@ -39,13 +39,13 @@ export declare const DefinitionsApiAxiosParamCreator: (configuration?: Configura
39
39
  * @param {*} [options] Override http request option.
40
40
  * @throws {RequiredError}
41
41
  */
42
- searchDefinitionsProductTypes: (marketplaceIds: Array<string>, keywords?: string[] | undefined, options?: any) => Promise<RequestArgs>;
42
+ searchDefinitionsProductTypes: (marketplaceIds: Array<string>, keywords?: Array<string>, options?: AxiosRequestConfig) => Promise<RequestArgs>;
43
43
  };
44
44
  /**
45
45
  * DefinitionsApi - functional programming interface
46
46
  * @export
47
47
  */
48
- export declare const DefinitionsApiFp: (configuration?: Configuration | undefined) => {
48
+ export declare const DefinitionsApiFp: (configuration?: Configuration) => {
49
49
  /**
50
50
  * 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).
51
51
  * @param {string} productType The Amazon product type name.
@@ -58,7 +58,7 @@ export declare const DefinitionsApiFp: (configuration?: Configuration | undefine
58
58
  * @param {*} [options] Override http request option.
59
59
  * @throws {RequiredError}
60
60
  */
61
- getDefinitionsProductType(productType: string, marketplaceIds: Array<string>, sellerId?: string | undefined, productTypeVersion?: string | undefined, requirements?: "LISTING" | "LISTING_PRODUCT_ONLY" | "LISTING_OFFER_ONLY" | undefined, requirementsEnforced?: "ENFORCED" | "NOT_ENFORCED" | undefined, locale?: "DEFAULT" | "ar" | "ar_AE" | "de" | "de_DE" | "en" | "en_AE" | "en_AU" | "en_CA" | "en_GB" | "en_IN" | "en_SG" | "en_US" | "es" | "es_ES" | "es_MX" | "es_US" | "fr" | "fr_CA" | "fr_FR" | "it" | "it_IT" | "ja" | "ja_JP" | "nl" | "nl_NL" | "pl" | "pl_PL" | "pt" | "pt_BR" | "pt_PT" | "sv" | "sv_SE" | "tr" | "tr_TR" | "zh" | "zh_CN" | "zh_TW" | undefined, options?: any): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise<ProductTypeDefinition>>;
61
+ getDefinitionsProductType(productType: string, marketplaceIds: Array<string>, sellerId?: string, productTypeVersion?: string, requirements?: 'LISTING' | 'LISTING_PRODUCT_ONLY' | 'LISTING_OFFER_ONLY', requirementsEnforced?: 'ENFORCED' | 'NOT_ENFORCED', locale?: 'DEFAULT' | 'ar' | 'ar_AE' | 'de' | 'de_DE' | 'en' | 'en_AE' | 'en_AU' | 'en_CA' | 'en_GB' | 'en_IN' | 'en_SG' | 'en_US' | 'es' | 'es_ES' | 'es_MX' | 'es_US' | 'fr' | 'fr_CA' | 'fr_FR' | 'it' | 'it_IT' | 'ja' | 'ja_JP' | 'nl' | 'nl_NL' | 'pl' | 'pl_PL' | 'pt' | 'pt_BR' | 'pt_PT' | 'sv' | 'sv_SE' | 'tr' | 'tr_TR' | 'zh' | 'zh_CN' | 'zh_TW', options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProductTypeDefinition>>;
62
62
  /**
63
63
  * 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).
64
64
  * @param {Array<string>} marketplaceIds A comma-delimited list of Amazon marketplace identifiers for the request.
@@ -66,13 +66,13 @@ export declare const DefinitionsApiFp: (configuration?: Configuration | undefine
66
66
  * @param {*} [options] Override http request option.
67
67
  * @throws {RequiredError}
68
68
  */
69
- searchDefinitionsProductTypes(marketplaceIds: Array<string>, keywords?: string[] | undefined, options?: any): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise<ProductTypeList>>;
69
+ searchDefinitionsProductTypes(marketplaceIds: Array<string>, keywords?: Array<string>, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProductTypeList>>;
70
70
  };
71
71
  /**
72
72
  * DefinitionsApi - factory interface
73
73
  * @export
74
74
  */
75
- export declare const DefinitionsApiFactory: (configuration?: Configuration | undefined, basePath?: string | undefined, axios?: AxiosInstance | undefined) => {
75
+ export declare const DefinitionsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
76
76
  /**
77
77
  * 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).
78
78
  * @param {string} productType The Amazon product type name.
@@ -85,7 +85,7 @@ export declare const DefinitionsApiFactory: (configuration?: Configuration | und
85
85
  * @param {*} [options] Override http request option.
86
86
  * @throws {RequiredError}
87
87
  */
88
- getDefinitionsProductType(productType: string, marketplaceIds: Array<string>, sellerId?: string | undefined, productTypeVersion?: string | undefined, requirements?: "LISTING" | "LISTING_PRODUCT_ONLY" | "LISTING_OFFER_ONLY" | undefined, requirementsEnforced?: "ENFORCED" | "NOT_ENFORCED" | undefined, locale?: "DEFAULT" | "ar" | "ar_AE" | "de" | "de_DE" | "en" | "en_AE" | "en_AU" | "en_CA" | "en_GB" | "en_IN" | "en_SG" | "en_US" | "es" | "es_ES" | "es_MX" | "es_US" | "fr" | "fr_CA" | "fr_FR" | "it" | "it_IT" | "ja" | "ja_JP" | "nl" | "nl_NL" | "pl" | "pl_PL" | "pt" | "pt_BR" | "pt_PT" | "sv" | "sv_SE" | "tr" | "tr_TR" | "zh" | "zh_CN" | "zh_TW" | undefined, options?: any): AxiosPromise<ProductTypeDefinition>;
88
+ getDefinitionsProductType(productType: string, marketplaceIds: Array<string>, sellerId?: string, productTypeVersion?: string, requirements?: 'LISTING' | 'LISTING_PRODUCT_ONLY' | 'LISTING_OFFER_ONLY', requirementsEnforced?: 'ENFORCED' | 'NOT_ENFORCED', locale?: 'DEFAULT' | 'ar' | 'ar_AE' | 'de' | 'de_DE' | 'en' | 'en_AE' | 'en_AU' | 'en_CA' | 'en_GB' | 'en_IN' | 'en_SG' | 'en_US' | 'es' | 'es_ES' | 'es_MX' | 'es_US' | 'fr' | 'fr_CA' | 'fr_FR' | 'it' | 'it_IT' | 'ja' | 'ja_JP' | 'nl' | 'nl_NL' | 'pl' | 'pl_PL' | 'pt' | 'pt_BR' | 'pt_PT' | 'sv' | 'sv_SE' | 'tr' | 'tr_TR' | 'zh' | 'zh_CN' | 'zh_TW', options?: any): AxiosPromise<ProductTypeDefinition>;
89
89
  /**
90
90
  * 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).
91
91
  * @param {Array<string>} marketplaceIds A comma-delimited list of Amazon marketplace identifiers for the request.
@@ -93,7 +93,7 @@ export declare const DefinitionsApiFactory: (configuration?: Configuration | und
93
93
  * @param {*} [options] Override http request option.
94
94
  * @throws {RequiredError}
95
95
  */
96
- searchDefinitionsProductTypes(marketplaceIds: Array<string>, keywords?: string[] | undefined, options?: any): AxiosPromise<ProductTypeList>;
96
+ searchDefinitionsProductTypes(marketplaceIds: Array<string>, keywords?: Array<string>, options?: any): AxiosPromise<ProductTypeList>;
97
97
  };
98
98
  /**
99
99
  * Request parameters for getDefinitionsProductType operation in DefinitionsApi.
@@ -177,7 +177,7 @@ export declare class DefinitionsApi extends BaseAPI {
177
177
  * @throws {RequiredError}
178
178
  * @memberof DefinitionsApi
179
179
  */
180
- getDefinitionsProductType(requestParameters: DefinitionsApiGetDefinitionsProductTypeRequest, options?: any): Promise<import("axios").AxiosResponse<ProductTypeDefinition, any>>;
180
+ getDefinitionsProductType(requestParameters: DefinitionsApiGetDefinitionsProductTypeRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ProductTypeDefinition, any>>;
181
181
  /**
182
182
  * 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).
183
183
  * @param {DefinitionsApiSearchDefinitionsProductTypesRequest} requestParameters Request parameters.
@@ -185,5 +185,5 @@ export declare class DefinitionsApi extends BaseAPI {
185
185
  * @throws {RequiredError}
186
186
  * @memberof DefinitionsApi
187
187
  */
188
- searchDefinitionsProductTypes(requestParameters: DefinitionsApiSearchDefinitionsProductTypesRequest, options?: any): Promise<import("axios").AxiosResponse<ProductTypeList, any>>;
188
+ searchDefinitionsProductTypes(requestParameters: DefinitionsApiSearchDefinitionsProductTypesRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ProductTypeList, any>>;
189
189
  }
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import { Configuration } from "./configuration";
13
- import { AxiosInstance } from 'axios';
13
+ import { AxiosInstance, AxiosRequestConfig } from 'axios';
14
14
  export declare const BASE_PATH: string;
15
15
  /**
16
16
  *
@@ -29,7 +29,7 @@ export declare const COLLECTION_FORMATS: {
29
29
  */
30
30
  export interface RequestArgs {
31
31
  url: string;
32
- options: any;
32
+ options: AxiosRequestConfig;
33
33
  }
34
34
  /**
35
35
  *
@@ -11,7 +11,7 @@
11
11
  */
12
12
  import { Configuration } from "./configuration";
13
13
  import { RequestArgs } from "./base";
14
- import { AxiosInstance } from 'axios';
14
+ import { AxiosInstance, AxiosResponse } from 'axios';
15
15
  /**
16
16
  *
17
17
  * @export
@@ -27,22 +27,22 @@ export declare const assertParamExists: (functionName: string, paramName: string
27
27
  *
28
28
  * @export
29
29
  */
30
- export declare const setApiKeyToObject: (object: any, keyParamName: string, configuration?: Configuration | undefined) => Promise<void>;
30
+ export declare const setApiKeyToObject: (object: any, keyParamName: string, configuration?: Configuration) => Promise<void>;
31
31
  /**
32
32
  *
33
33
  * @export
34
34
  */
35
- export declare const setBasicAuthToObject: (object: any, configuration?: Configuration | undefined) => void;
35
+ export declare const setBasicAuthToObject: (object: any, configuration?: Configuration) => void;
36
36
  /**
37
37
  *
38
38
  * @export
39
39
  */
40
- export declare const setBearerAuthToObject: (object: any, configuration?: Configuration | undefined) => Promise<void>;
40
+ export declare const setBearerAuthToObject: (object: any, configuration?: Configuration) => Promise<void>;
41
41
  /**
42
42
  *
43
43
  * @export
44
44
  */
45
- export declare const setOAuthToObject: (object: any, name: string, scopes: string[], configuration?: Configuration | undefined) => Promise<void>;
45
+ export declare const setOAuthToObject: (object: any, name: string, scopes: string[], configuration?: Configuration) => Promise<void>;
46
46
  /**
47
47
  *
48
48
  * @export
@@ -52,7 +52,7 @@ export declare const setSearchParams: (url: URL, ...objects: any[]) => void;
52
52
  *
53
53
  * @export
54
54
  */
55
- export declare const serializeDataIfNeeded: (value: any, requestOptions: any, configuration?: Configuration | undefined) => any;
55
+ export declare const serializeDataIfNeeded: (value: any, requestOptions: any, configuration?: Configuration) => any;
56
56
  /**
57
57
  *
58
58
  * @export
@@ -62,4 +62,4 @@ export declare const toPathString: (url: URL) => string;
62
62
  *
63
63
  * @export
64
64
  */
65
- export declare const createRequestFunction: (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration | undefined) => (axios?: AxiosInstance, basePath?: string) => Promise<import("axios").AxiosResponse<any, any>>;
65
+ export declare const createRequestFunction: (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) => <T = unknown, R = AxiosResponse<T, any>>(axios?: AxiosInstance, basePath?: string) => Promise<R>;
@@ -20,5 +20,5 @@ export interface ErrorList {
20
20
  * @type {Array<Error>}
21
21
  * @memberof ErrorList
22
22
  */
23
- errors: Array<Error>;
23
+ 'errors': Array<Error>;
24
24
  }
@@ -20,17 +20,17 @@ export interface ModelError {
20
20
  * @type {string}
21
21
  * @memberof ModelError
22
22
  */
23
- code: string;
23
+ 'code': string;
24
24
  /**
25
25
  * A message that describes the error condition.
26
26
  * @type {string}
27
27
  * @memberof ModelError
28
28
  */
29
- message: string;
29
+ 'message': string;
30
30
  /**
31
31
  * Additional details that can help the caller understand or fix the issue.
32
32
  * @type {string}
33
33
  * @memberof ModelError
34
34
  */
35
- details?: string;
35
+ 'details'?: string;
36
36
  }
@@ -23,31 +23,31 @@ export interface ProductTypeDefinition {
23
23
  * @type {SchemaLink}
24
24
  * @memberof ProductTypeDefinition
25
25
  */
26
- metaSchema?: SchemaLink;
26
+ 'metaSchema'?: SchemaLink;
27
27
  /**
28
28
  *
29
29
  * @type {SchemaLink}
30
30
  * @memberof ProductTypeDefinition
31
31
  */
32
- schema: SchemaLink;
32
+ 'schema': SchemaLink;
33
33
  /**
34
34
  * Name of the requirements set represented in this product type definition.
35
35
  * @type {string}
36
36
  * @memberof ProductTypeDefinition
37
37
  */
38
- requirements: ProductTypeDefinitionRequirementsEnum;
38
+ 'requirements': ProductTypeDefinitionRequirementsEnum;
39
39
  /**
40
40
  * 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).
41
41
  * @type {string}
42
42
  * @memberof ProductTypeDefinition
43
43
  */
44
- requirementsEnforced: ProductTypeDefinitionRequirementsEnforcedEnum;
44
+ 'requirementsEnforced': ProductTypeDefinitionRequirementsEnforcedEnum;
45
45
  /**
46
46
  * 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.
47
47
  * @type {{ [key: string]: PropertyGroup; }}
48
48
  * @memberof ProductTypeDefinition
49
49
  */
50
- propertyGroups: {
50
+ 'propertyGroups': {
51
51
  [key: string]: PropertyGroup;
52
52
  };
53
53
  /**
@@ -55,40 +55,34 @@ export interface ProductTypeDefinition {
55
55
  * @type {string}
56
56
  * @memberof ProductTypeDefinition
57
57
  */
58
- locale: string;
58
+ 'locale': string;
59
59
  /**
60
60
  * Amazon marketplace identifiers for which the product type definition is applicable.
61
61
  * @type {Array<string>}
62
62
  * @memberof ProductTypeDefinition
63
63
  */
64
- marketplaceIds: Array<string>;
64
+ 'marketplaceIds': Array<string>;
65
65
  /**
66
66
  * The name of the Amazon product type that this product type definition applies to.
67
67
  * @type {string}
68
68
  * @memberof ProductTypeDefinition
69
69
  */
70
- productType: string;
70
+ 'productType': string;
71
71
  /**
72
72
  *
73
73
  * @type {ProductTypeVersion}
74
74
  * @memberof ProductTypeDefinition
75
75
  */
76
- productTypeVersion: ProductTypeVersion;
77
- }
78
- /**
79
- * @export
80
- * @enum {string}
81
- */
82
- export declare enum ProductTypeDefinitionRequirementsEnum {
83
- Listing = "LISTING",
84
- ListingProductOnly = "LISTING_PRODUCT_ONLY",
85
- ListingOfferOnly = "LISTING_OFFER_ONLY"
86
- }
87
- /**
88
- * @export
89
- * @enum {string}
90
- */
91
- export declare enum ProductTypeDefinitionRequirementsEnforcedEnum {
92
- Enforced = "ENFORCED",
93
- NotEnforced = "NOT_ENFORCED"
76
+ 'productTypeVersion': ProductTypeVersion;
94
77
  }
78
+ export declare const ProductTypeDefinitionRequirementsEnum: {
79
+ readonly Listing: "LISTING";
80
+ readonly ListingProductOnly: "LISTING_PRODUCT_ONLY";
81
+ readonly ListingOfferOnly: "LISTING_OFFER_ONLY";
82
+ };
83
+ export declare type ProductTypeDefinitionRequirementsEnum = typeof ProductTypeDefinitionRequirementsEnum[keyof typeof ProductTypeDefinitionRequirementsEnum];
84
+ export declare const ProductTypeDefinitionRequirementsEnforcedEnum: {
85
+ readonly Enforced: "ENFORCED";
86
+ readonly NotEnforced: "NOT_ENFORCED";
87
+ };
88
+ export declare type ProductTypeDefinitionRequirementsEnforcedEnum = typeof ProductTypeDefinitionRequirementsEnforcedEnum[keyof typeof ProductTypeDefinitionRequirementsEnforcedEnum];
@@ -21,5 +21,5 @@ export interface ProductTypeList {
21
21
  * @type {Array<ProductType>}
22
22
  * @memberof ProductTypeList
23
23
  */
24
- productTypes: Array<ProductType>;
24
+ 'productTypes': Array<ProductType>;
25
25
  }
@@ -20,17 +20,17 @@ export interface ProductTypeVersion {
20
20
  * @type {string}
21
21
  * @memberof ProductTypeVersion
22
22
  */
23
- version: string;
23
+ 'version': string;
24
24
  /**
25
25
  * When true, the version indicated by the version identifier is the latest available for the Amazon product type.
26
26
  * @type {boolean}
27
27
  * @memberof ProductTypeVersion
28
28
  */
29
- latest: boolean;
29
+ 'latest': boolean;
30
30
  /**
31
31
  * When true, the version indicated by the version identifier is the prerelease (release candidate) for the Amazon product type.
32
32
  * @type {boolean}
33
33
  * @memberof ProductTypeVersion
34
34
  */
35
- releaseCandidate?: boolean;
35
+ 'releaseCandidate'?: boolean;
36
36
  }
@@ -20,11 +20,11 @@ export interface ProductType {
20
20
  * @type {string}
21
21
  * @memberof ProductType
22
22
  */
23
- name: string;
23
+ 'name': string;
24
24
  /**
25
25
  * The Amazon marketplace identifiers for which the product type definition is available.
26
26
  * @type {Array<string>}
27
27
  * @memberof ProductType
28
28
  */
29
- marketplaceIds: Array<string>;
29
+ 'marketplaceIds': Array<string>;
30
30
  }
@@ -20,17 +20,17 @@ export interface PropertyGroup {
20
20
  * @type {string}
21
21
  * @memberof PropertyGroup
22
22
  */
23
- title?: string;
23
+ 'title'?: string;
24
24
  /**
25
25
  * The description of the property group.
26
26
  * @type {string}
27
27
  * @memberof PropertyGroup
28
28
  */
29
- description?: string;
29
+ 'description'?: string;
30
30
  /**
31
31
  * The names of the schema properties for the property group.
32
32
  * @type {Array<string>}
33
33
  * @memberof PropertyGroup
34
34
  */
35
- propertyNames?: Array<string>;
35
+ 'propertyNames'?: Array<string>;
36
36
  }
@@ -20,18 +20,15 @@ export interface SchemaLinkLink {
20
20
  * @type {string}
21
21
  * @memberof SchemaLinkLink
22
22
  */
23
- resource: string;
23
+ 'resource': string;
24
24
  /**
25
25
  * HTTP method for the link operation.
26
26
  * @type {string}
27
27
  * @memberof SchemaLinkLink
28
28
  */
29
- verb: SchemaLinkLinkVerbEnum;
30
- }
31
- /**
32
- * @export
33
- * @enum {string}
34
- */
35
- export declare enum SchemaLinkLinkVerbEnum {
36
- Get = "GET"
29
+ 'verb': SchemaLinkLinkVerbEnum;
37
30
  }
31
+ export declare const SchemaLinkLinkVerbEnum: {
32
+ readonly Get: "GET";
33
+ };
34
+ export declare type SchemaLinkLinkVerbEnum = typeof SchemaLinkLinkVerbEnum[keyof typeof SchemaLinkLinkVerbEnum];
@@ -21,11 +21,11 @@ export interface SchemaLink {
21
21
  * @type {SchemaLinkLink}
22
22
  * @memberof SchemaLink
23
23
  */
24
- link: SchemaLinkLink;
24
+ 'link': SchemaLinkLink;
25
25
  /**
26
26
  * Checksum hash of the schema (Base64 MD5). Can be used to verify schema contents, identify changes between schema versions, and for caching.
27
27
  * @type {string}
28
28
  * @memberof SchemaLink
29
29
  */
30
- checksum: string;
30
+ 'checksum': string;
31
31
  }
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@sp-api-sdk/product-type-definitions-api-2020-09-01",
3
3
  "author": "Vincent Mesquita <vincent.mesquita@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": "1.9.3",
5
+ "version": "1.9.6",
6
6
  "main": "dist/cjs/index.js",
7
7
  "module": "dist/es/index.js",
8
8
  "types": "dist/types/index.d.ts",
@@ -27,8 +27,8 @@
27
27
  "test": "jest"
28
28
  },
29
29
  "dependencies": {
30
- "@sp-api-sdk/auth": "^1.9.16",
31
- "@sp-api-sdk/common": "^1.9.2",
30
+ "@sp-api-sdk/auth": "^1.9.18",
31
+ "@sp-api-sdk/common": "^1.9.4",
32
32
  "axios": "^0.27.2"
33
33
  },
34
34
  "repository": {
@@ -50,5 +50,5 @@
50
50
  "sp sdk",
51
51
  "product type definitions api"
52
52
  ],
53
- "gitHead": "a7c5d10323f6fbaea18fe0669afb4c66a5898554"
53
+ "gitHead": "18efdada205f63f94bd5c11e163e758adbb93257"
54
54
  }