@sp-api-sdk/product-type-definitions-api-2020-09-01 1.9.4 → 1.9.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/src/api-model/api/definitions-api.js +2 -2
- package/dist/cjs/src/api-model/models/product-type-definition.js +9 -19
- package/dist/cjs/src/api-model/models/schema-link-link.js +3 -8
- package/dist/es/src/api-model/api/definitions-api.js +2 -2
- package/dist/es/src/api-model/models/product-type-definition.js +9 -19
- package/dist/es/src/api-model/models/schema-link-link.js +3 -8
- package/dist/types/src/api-model/api/definitions-api.d.ts +7 -7
- package/dist/types/src/api-model/base.d.ts +2 -2
- package/dist/types/src/api-model/common.d.ts +2 -2
- package/dist/types/src/api-model/models/error-list.d.ts +1 -1
- package/dist/types/src/api-model/models/model-error.d.ts +3 -3
- package/dist/types/src/api-model/models/product-type-definition.d.ts +20 -26
- package/dist/types/src/api-model/models/product-type-list.d.ts +1 -1
- package/dist/types/src/api-model/models/product-type-version.d.ts +3 -3
- package/dist/types/src/api-model/models/product-type.d.ts +2 -2
- package/dist/types/src/api-model/models/property-group.d.ts +3 -3
- package/dist/types/src/api-model/models/schema-link-link.d.ts +6 -9
- package/dist/types/src/api-model/models/schema-link.d.ts +2 -2
- package/package.json +2 -2
|
@@ -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
|
|
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
|
|
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
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
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
|
-
|
|
19
|
-
|
|
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
|
|
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
|
|
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
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
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
|
-
|
|
16
|
-
|
|
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';
|
|
@@ -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?:
|
|
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?: 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,7 +39,7 @@ 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?:
|
|
42
|
+
searchDefinitionsProductTypes: (marketplaceIds: Array<string>, keywords?: string[] | undefined, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
43
43
|
};
|
|
44
44
|
/**
|
|
45
45
|
* DefinitionsApi - functional programming interface
|
|
@@ -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 | 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?: AxiosRequestConfig<any> | undefined): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => 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,7 +66,7 @@ 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?: string[] | undefined, options?: AxiosRequestConfig<any> | undefined): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise<ProductTypeList>>;
|
|
70
70
|
};
|
|
71
71
|
/**
|
|
72
72
|
* DefinitionsApi - factory interface
|
|
@@ -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?:
|
|
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?:
|
|
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:
|
|
32
|
+
options: AxiosRequestConfig;
|
|
33
33
|
}
|
|
34
34
|
/**
|
|
35
35
|
*
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import { Configuration } from "./configuration";
|
|
13
13
|
import { RequestArgs } from "./base";
|
|
14
|
-
import { AxiosInstance } from 'axios';
|
|
14
|
+
import { AxiosInstance, AxiosResponse } from 'axios';
|
|
15
15
|
/**
|
|
16
16
|
*
|
|
17
17
|
* @export
|
|
@@ -62,4 +62,4 @@ export declare const toPathString: (url: URL) => string;
|
|
|
62
62
|
*
|
|
63
63
|
* @export
|
|
64
64
|
*/
|
|
65
|
-
export declare const createRequestFunction: (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration | undefined) => (axios?: AxiosInstance, basePath?: string) => Promise<
|
|
65
|
+
export declare const createRequestFunction: (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration | undefined) => <T = unknown, R = AxiosResponse<T, any>>(axios?: AxiosInstance, basePath?: string) => Promise<R>;
|
|
@@ -20,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];
|
|
@@ -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.
|
|
5
|
+
"version": "1.9.5",
|
|
6
6
|
"main": "dist/cjs/index.js",
|
|
7
7
|
"module": "dist/es/index.js",
|
|
8
8
|
"types": "dist/types/index.d.ts",
|
|
@@ -50,5 +50,5 @@
|
|
|
50
50
|
"sp sdk",
|
|
51
51
|
"product type definitions api"
|
|
52
52
|
],
|
|
53
|
-
"gitHead": "
|
|
53
|
+
"gitHead": "d4f265d3c6a4e05e45025a46effa023a56a54e9c"
|
|
54
54
|
}
|