@sp-api-sdk/product-type-definitions-api-2020-09-01 2.2.3 → 2.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/src/api-model/api/definitions-api.js +71 -9
- package/dist/cjs/src/api-model/base.js +7 -2
- package/dist/cjs/src/api-model/common.js +1 -1
- package/dist/cjs/src/api-model/configuration.js +8 -0
- package/dist/es/src/api-model/api/definitions-api.js +71 -9
- package/dist/es/src/api-model/base.js +6 -1
- package/dist/es/src/api-model/common.js +1 -1
- package/dist/es/src/api-model/configuration.js +8 -0
- package/dist/types/src/api-model/api/definitions-api.d.ts +82 -21
- package/dist/types/src/api-model/base.d.ts +14 -2
- package/dist/types/src/api-model/configuration.d.ts +8 -0
- package/dist/types/src/api-model/models/product-type-definition.d.ts +3 -3
- package/dist/types/src/api-model/models/product-type-list.d.ts +1 -1
- package/dist/types/src/api-model/models/schema-link.d.ts +1 -1
- package/package.json +4 -4
|
@@ -16,7 +16,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
16
16
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
17
17
|
};
|
|
18
18
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
|
-
exports.DefinitionsApi = exports.DefinitionsApiFactory = exports.DefinitionsApiFp = exports.DefinitionsApiAxiosParamCreator = void 0;
|
|
19
|
+
exports.GetDefinitionsProductTypeLocaleEnum = exports.GetDefinitionsProductTypeRequirementsEnforcedEnum = exports.GetDefinitionsProductTypeRequirementsEnum = exports.DefinitionsApi = exports.DefinitionsApiFactory = exports.DefinitionsApiFp = exports.DefinitionsApiAxiosParamCreator = void 0;
|
|
20
20
|
const axios_1 = __importDefault(require("axios"));
|
|
21
21
|
// Some imports not used depending on template conditions
|
|
22
22
|
// @ts-ignore
|
|
@@ -35,9 +35,9 @@ const DefinitionsApiAxiosParamCreator = function (configuration) {
|
|
|
35
35
|
* @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.
|
|
36
36
|
* @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.
|
|
37
37
|
* @param {string} [productTypeVersion] The version of the Amazon product type to retrieve. Defaults to \"LATEST\",. Prerelease versions of product type definitions may be retrieved with \"RELEASE_CANDIDATE\". If no prerelease version is currently available, the \"LATEST\" live version will be provided.
|
|
38
|
-
* @param {
|
|
39
|
-
* @param {
|
|
40
|
-
* @param {
|
|
38
|
+
* @param {GetDefinitionsProductTypeRequirementsEnum} [requirements] The name of the requirements set to retrieve requirements for.
|
|
39
|
+
* @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).
|
|
40
|
+
* @param {GetDefinitionsProductTypeLocaleEnum} [locale] Locale for retrieving display labels and other presentation details. Defaults to the default language of the first marketplace in the request.
|
|
41
41
|
* @param {*} [options] Override http request option.
|
|
42
42
|
* @throws {RequiredError}
|
|
43
43
|
*/
|
|
@@ -145,15 +145,17 @@ const DefinitionsApiFp = function (configuration) {
|
|
|
145
145
|
* @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.
|
|
146
146
|
* @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.
|
|
147
147
|
* @param {string} [productTypeVersion] The version of the Amazon product type to retrieve. Defaults to \"LATEST\",. Prerelease versions of product type definitions may be retrieved with \"RELEASE_CANDIDATE\". If no prerelease version is currently available, the \"LATEST\" live version will be provided.
|
|
148
|
-
* @param {
|
|
149
|
-
* @param {
|
|
150
|
-
* @param {
|
|
148
|
+
* @param {GetDefinitionsProductTypeRequirementsEnum} [requirements] The name of the requirements set to retrieve requirements for.
|
|
149
|
+
* @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).
|
|
150
|
+
* @param {GetDefinitionsProductTypeLocaleEnum} [locale] Locale for retrieving display labels and other presentation details. Defaults to the default language of the first marketplace in the request.
|
|
151
151
|
* @param {*} [options] Override http request option.
|
|
152
152
|
* @throws {RequiredError}
|
|
153
153
|
*/
|
|
154
154
|
async getDefinitionsProductType(productType, marketplaceIds, sellerId, productTypeVersion, requirements, requirementsEnforced, locale, options) {
|
|
155
155
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getDefinitionsProductType(productType, marketplaceIds, sellerId, productTypeVersion, requirements, requirementsEnforced, locale, options);
|
|
156
|
-
|
|
156
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
157
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['DefinitionsApi.getDefinitionsProductType']?.[localVarOperationServerIndex]?.url;
|
|
158
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
157
159
|
},
|
|
158
160
|
/**
|
|
159
161
|
* 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).
|
|
@@ -167,7 +169,9 @@ const DefinitionsApiFp = function (configuration) {
|
|
|
167
169
|
*/
|
|
168
170
|
async searchDefinitionsProductTypes(marketplaceIds, keywords, itemName, locale, searchLocale, options) {
|
|
169
171
|
const localVarAxiosArgs = await localVarAxiosParamCreator.searchDefinitionsProductTypes(marketplaceIds, keywords, itemName, locale, searchLocale, options);
|
|
170
|
-
|
|
172
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
173
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['DefinitionsApi.searchDefinitionsProductTypes']?.[localVarOperationServerIndex]?.url;
|
|
174
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
171
175
|
},
|
|
172
176
|
};
|
|
173
177
|
};
|
|
@@ -229,3 +233,61 @@ class DefinitionsApi extends base_1.BaseAPI {
|
|
|
229
233
|
}
|
|
230
234
|
}
|
|
231
235
|
exports.DefinitionsApi = DefinitionsApi;
|
|
236
|
+
/**
|
|
237
|
+
* @export
|
|
238
|
+
*/
|
|
239
|
+
exports.GetDefinitionsProductTypeRequirementsEnum = {
|
|
240
|
+
Listing: 'LISTING',
|
|
241
|
+
ListingProductOnly: 'LISTING_PRODUCT_ONLY',
|
|
242
|
+
ListingOfferOnly: 'LISTING_OFFER_ONLY'
|
|
243
|
+
};
|
|
244
|
+
/**
|
|
245
|
+
* @export
|
|
246
|
+
*/
|
|
247
|
+
exports.GetDefinitionsProductTypeRequirementsEnforcedEnum = {
|
|
248
|
+
Enforced: 'ENFORCED',
|
|
249
|
+
NotEnforced: 'NOT_ENFORCED'
|
|
250
|
+
};
|
|
251
|
+
/**
|
|
252
|
+
* @export
|
|
253
|
+
*/
|
|
254
|
+
exports.GetDefinitionsProductTypeLocaleEnum = {
|
|
255
|
+
Default: 'DEFAULT',
|
|
256
|
+
Ar: 'ar',
|
|
257
|
+
ArAe: 'ar_AE',
|
|
258
|
+
De: 'de',
|
|
259
|
+
DeDe: 'de_DE',
|
|
260
|
+
En: 'en',
|
|
261
|
+
EnAe: 'en_AE',
|
|
262
|
+
EnAu: 'en_AU',
|
|
263
|
+
EnCa: 'en_CA',
|
|
264
|
+
EnGb: 'en_GB',
|
|
265
|
+
EnIn: 'en_IN',
|
|
266
|
+
EnSg: 'en_SG',
|
|
267
|
+
EnUs: 'en_US',
|
|
268
|
+
Es: 'es',
|
|
269
|
+
EsEs: 'es_ES',
|
|
270
|
+
EsMx: 'es_MX',
|
|
271
|
+
EsUs: 'es_US',
|
|
272
|
+
Fr: 'fr',
|
|
273
|
+
FrCa: 'fr_CA',
|
|
274
|
+
FrFr: 'fr_FR',
|
|
275
|
+
It: 'it',
|
|
276
|
+
ItIt: 'it_IT',
|
|
277
|
+
Ja: 'ja',
|
|
278
|
+
JaJp: 'ja_JP',
|
|
279
|
+
Nl: 'nl',
|
|
280
|
+
NlNl: 'nl_NL',
|
|
281
|
+
Pl: 'pl',
|
|
282
|
+
PlPl: 'pl_PL',
|
|
283
|
+
Pt: 'pt',
|
|
284
|
+
PtBr: 'pt_BR',
|
|
285
|
+
PtPt: 'pt_PT',
|
|
286
|
+
Sv: 'sv',
|
|
287
|
+
SvSe: 'sv_SE',
|
|
288
|
+
Tr: 'tr',
|
|
289
|
+
TrTr: 'tr_TR',
|
|
290
|
+
Zh: 'zh',
|
|
291
|
+
ZhCn: 'zh_CN',
|
|
292
|
+
ZhTw: 'zh_TW'
|
|
293
|
+
};
|
|
@@ -16,7 +16,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
16
16
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
17
17
|
};
|
|
18
18
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
|
-
exports.RequiredError = exports.BaseAPI = exports.COLLECTION_FORMATS = exports.BASE_PATH = void 0;
|
|
19
|
+
exports.operationServerMap = exports.RequiredError = exports.BaseAPI = exports.COLLECTION_FORMATS = exports.BASE_PATH = void 0;
|
|
20
20
|
const axios_1 = __importDefault(require("axios"));
|
|
21
21
|
exports.BASE_PATH = "https://sellingpartnerapi-na.amazon.com".replace(/\/+$/, "");
|
|
22
22
|
/**
|
|
@@ -43,7 +43,7 @@ class BaseAPI {
|
|
|
43
43
|
this.axios = axios;
|
|
44
44
|
if (configuration) {
|
|
45
45
|
this.configuration = configuration;
|
|
46
|
-
this.basePath = configuration.basePath
|
|
46
|
+
this.basePath = configuration.basePath ?? basePath;
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
49
|
}
|
|
@@ -64,3 +64,8 @@ class RequiredError extends Error {
|
|
|
64
64
|
}
|
|
65
65
|
}
|
|
66
66
|
exports.RequiredError = RequiredError;
|
|
67
|
+
/**
|
|
68
|
+
*
|
|
69
|
+
* @export
|
|
70
|
+
*/
|
|
71
|
+
exports.operationServerMap = {};
|
|
@@ -138,7 +138,7 @@ exports.toPathString = toPathString;
|
|
|
138
138
|
*/
|
|
139
139
|
const createRequestFunction = function (axiosArgs, globalAxios, BASE_PATH, configuration) {
|
|
140
140
|
return (axios = globalAxios, basePath = BASE_PATH) => {
|
|
141
|
-
const axiosRequestArgs = { ...axiosArgs.options, url: (configuration?.basePath
|
|
141
|
+
const axiosRequestArgs = { ...axiosArgs.options, url: (axios.defaults.baseURL ? '' : configuration?.basePath ?? basePath) + axiosArgs.url };
|
|
142
142
|
return axios.request(axiosRequestArgs);
|
|
143
143
|
};
|
|
144
144
|
};
|
|
@@ -49,6 +49,13 @@ class Configuration {
|
|
|
49
49
|
* @memberof Configuration
|
|
50
50
|
*/
|
|
51
51
|
basePath;
|
|
52
|
+
/**
|
|
53
|
+
* override server index
|
|
54
|
+
*
|
|
55
|
+
* @type {number}
|
|
56
|
+
* @memberof Configuration
|
|
57
|
+
*/
|
|
58
|
+
serverIndex;
|
|
52
59
|
/**
|
|
53
60
|
* base options for axios calls
|
|
54
61
|
*
|
|
@@ -70,6 +77,7 @@ class Configuration {
|
|
|
70
77
|
this.password = param.password;
|
|
71
78
|
this.accessToken = param.accessToken;
|
|
72
79
|
this.basePath = param.basePath;
|
|
80
|
+
this.serverIndex = param.serverIndex;
|
|
73
81
|
this.baseOptions = param.baseOptions;
|
|
74
82
|
this.formDataCtor = param.formDataCtor;
|
|
75
83
|
}
|
|
@@ -16,7 +16,7 @@ import globalAxios from 'axios';
|
|
|
16
16
|
// @ts-ignore
|
|
17
17
|
import { DUMMY_BASE_URL, assertParamExists, setSearchParams, toPathString, createRequestFunction } from '../common';
|
|
18
18
|
// @ts-ignore
|
|
19
|
-
import { BASE_PATH, COLLECTION_FORMATS, BaseAPI } from '../base';
|
|
19
|
+
import { BASE_PATH, COLLECTION_FORMATS, BaseAPI, operationServerMap } from '../base';
|
|
20
20
|
/**
|
|
21
21
|
* DefinitionsApi - axios parameter creator
|
|
22
22
|
* @export
|
|
@@ -29,9 +29,9 @@ export const DefinitionsApiAxiosParamCreator = function (configuration) {
|
|
|
29
29
|
* @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.
|
|
30
30
|
* @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.
|
|
31
31
|
* @param {string} [productTypeVersion] The version of the Amazon product type to retrieve. Defaults to \"LATEST\",. Prerelease versions of product type definitions may be retrieved with \"RELEASE_CANDIDATE\". If no prerelease version is currently available, the \"LATEST\" live version will be provided.
|
|
32
|
-
* @param {
|
|
33
|
-
* @param {
|
|
34
|
-
* @param {
|
|
32
|
+
* @param {GetDefinitionsProductTypeRequirementsEnum} [requirements] The name of the requirements set to retrieve requirements for.
|
|
33
|
+
* @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).
|
|
34
|
+
* @param {GetDefinitionsProductTypeLocaleEnum} [locale] Locale for retrieving display labels and other presentation details. Defaults to the default language of the first marketplace in the request.
|
|
35
35
|
* @param {*} [options] Override http request option.
|
|
36
36
|
* @throws {RequiredError}
|
|
37
37
|
*/
|
|
@@ -138,15 +138,17 @@ export const DefinitionsApiFp = function (configuration) {
|
|
|
138
138
|
* @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.
|
|
139
139
|
* @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.
|
|
140
140
|
* @param {string} [productTypeVersion] The version of the Amazon product type to retrieve. Defaults to \"LATEST\",. Prerelease versions of product type definitions may be retrieved with \"RELEASE_CANDIDATE\". If no prerelease version is currently available, the \"LATEST\" live version will be provided.
|
|
141
|
-
* @param {
|
|
142
|
-
* @param {
|
|
143
|
-
* @param {
|
|
141
|
+
* @param {GetDefinitionsProductTypeRequirementsEnum} [requirements] The name of the requirements set to retrieve requirements for.
|
|
142
|
+
* @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).
|
|
143
|
+
* @param {GetDefinitionsProductTypeLocaleEnum} [locale] Locale for retrieving display labels and other presentation details. Defaults to the default language of the first marketplace in the request.
|
|
144
144
|
* @param {*} [options] Override http request option.
|
|
145
145
|
* @throws {RequiredError}
|
|
146
146
|
*/
|
|
147
147
|
async getDefinitionsProductType(productType, marketplaceIds, sellerId, productTypeVersion, requirements, requirementsEnforced, locale, options) {
|
|
148
148
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getDefinitionsProductType(productType, marketplaceIds, sellerId, productTypeVersion, requirements, requirementsEnforced, locale, options);
|
|
149
|
-
|
|
149
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
150
|
+
const localVarOperationServerBasePath = operationServerMap['DefinitionsApi.getDefinitionsProductType']?.[localVarOperationServerIndex]?.url;
|
|
151
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
150
152
|
},
|
|
151
153
|
/**
|
|
152
154
|
* 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).
|
|
@@ -160,7 +162,9 @@ export const DefinitionsApiFp = function (configuration) {
|
|
|
160
162
|
*/
|
|
161
163
|
async searchDefinitionsProductTypes(marketplaceIds, keywords, itemName, locale, searchLocale, options) {
|
|
162
164
|
const localVarAxiosArgs = await localVarAxiosParamCreator.searchDefinitionsProductTypes(marketplaceIds, keywords, itemName, locale, searchLocale, options);
|
|
163
|
-
|
|
165
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
166
|
+
const localVarOperationServerBasePath = operationServerMap['DefinitionsApi.searchDefinitionsProductTypes']?.[localVarOperationServerIndex]?.url;
|
|
167
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
164
168
|
},
|
|
165
169
|
};
|
|
166
170
|
};
|
|
@@ -219,3 +223,61 @@ export class DefinitionsApi extends BaseAPI {
|
|
|
219
223
|
return DefinitionsApiFp(this.configuration).searchDefinitionsProductTypes(requestParameters.marketplaceIds, requestParameters.keywords, requestParameters.itemName, requestParameters.locale, requestParameters.searchLocale, options).then((request) => request(this.axios, this.basePath));
|
|
220
224
|
}
|
|
221
225
|
}
|
|
226
|
+
/**
|
|
227
|
+
* @export
|
|
228
|
+
*/
|
|
229
|
+
export const GetDefinitionsProductTypeRequirementsEnum = {
|
|
230
|
+
Listing: 'LISTING',
|
|
231
|
+
ListingProductOnly: 'LISTING_PRODUCT_ONLY',
|
|
232
|
+
ListingOfferOnly: 'LISTING_OFFER_ONLY'
|
|
233
|
+
};
|
|
234
|
+
/**
|
|
235
|
+
* @export
|
|
236
|
+
*/
|
|
237
|
+
export const GetDefinitionsProductTypeRequirementsEnforcedEnum = {
|
|
238
|
+
Enforced: 'ENFORCED',
|
|
239
|
+
NotEnforced: 'NOT_ENFORCED'
|
|
240
|
+
};
|
|
241
|
+
/**
|
|
242
|
+
* @export
|
|
243
|
+
*/
|
|
244
|
+
export const GetDefinitionsProductTypeLocaleEnum = {
|
|
245
|
+
Default: 'DEFAULT',
|
|
246
|
+
Ar: 'ar',
|
|
247
|
+
ArAe: 'ar_AE',
|
|
248
|
+
De: 'de',
|
|
249
|
+
DeDe: 'de_DE',
|
|
250
|
+
En: 'en',
|
|
251
|
+
EnAe: 'en_AE',
|
|
252
|
+
EnAu: 'en_AU',
|
|
253
|
+
EnCa: 'en_CA',
|
|
254
|
+
EnGb: 'en_GB',
|
|
255
|
+
EnIn: 'en_IN',
|
|
256
|
+
EnSg: 'en_SG',
|
|
257
|
+
EnUs: 'en_US',
|
|
258
|
+
Es: 'es',
|
|
259
|
+
EsEs: 'es_ES',
|
|
260
|
+
EsMx: 'es_MX',
|
|
261
|
+
EsUs: 'es_US',
|
|
262
|
+
Fr: 'fr',
|
|
263
|
+
FrCa: 'fr_CA',
|
|
264
|
+
FrFr: 'fr_FR',
|
|
265
|
+
It: 'it',
|
|
266
|
+
ItIt: 'it_IT',
|
|
267
|
+
Ja: 'ja',
|
|
268
|
+
JaJp: 'ja_JP',
|
|
269
|
+
Nl: 'nl',
|
|
270
|
+
NlNl: 'nl_NL',
|
|
271
|
+
Pl: 'pl',
|
|
272
|
+
PlPl: 'pl_PL',
|
|
273
|
+
Pt: 'pt',
|
|
274
|
+
PtBr: 'pt_BR',
|
|
275
|
+
PtPt: 'pt_PT',
|
|
276
|
+
Sv: 'sv',
|
|
277
|
+
SvSe: 'sv_SE',
|
|
278
|
+
Tr: 'tr',
|
|
279
|
+
TrTr: 'tr_TR',
|
|
280
|
+
Zh: 'zh',
|
|
281
|
+
ZhCn: 'zh_CN',
|
|
282
|
+
ZhTw: 'zh_TW'
|
|
283
|
+
};
|
|
@@ -37,7 +37,7 @@ export class BaseAPI {
|
|
|
37
37
|
this.axios = axios;
|
|
38
38
|
if (configuration) {
|
|
39
39
|
this.configuration = configuration;
|
|
40
|
-
this.basePath = configuration.basePath
|
|
40
|
+
this.basePath = configuration.basePath ?? basePath;
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
43
|
}
|
|
@@ -56,3 +56,8 @@ export class RequiredError extends Error {
|
|
|
56
56
|
this.name = "RequiredError";
|
|
57
57
|
}
|
|
58
58
|
}
|
|
59
|
+
/**
|
|
60
|
+
*
|
|
61
|
+
* @export
|
|
62
|
+
*/
|
|
63
|
+
export const operationServerMap = {};
|
|
@@ -127,7 +127,7 @@ export const toPathString = function (url) {
|
|
|
127
127
|
*/
|
|
128
128
|
export const createRequestFunction = function (axiosArgs, globalAxios, BASE_PATH, configuration) {
|
|
129
129
|
return (axios = globalAxios, basePath = BASE_PATH) => {
|
|
130
|
-
const axiosRequestArgs = { ...axiosArgs.options, url: (configuration?.basePath
|
|
130
|
+
const axiosRequestArgs = { ...axiosArgs.options, url: (axios.defaults.baseURL ? '' : configuration?.basePath ?? basePath) + axiosArgs.url };
|
|
131
131
|
return axios.request(axiosRequestArgs);
|
|
132
132
|
};
|
|
133
133
|
};
|
|
@@ -46,6 +46,13 @@ export class Configuration {
|
|
|
46
46
|
* @memberof Configuration
|
|
47
47
|
*/
|
|
48
48
|
basePath;
|
|
49
|
+
/**
|
|
50
|
+
* override server index
|
|
51
|
+
*
|
|
52
|
+
* @type {number}
|
|
53
|
+
* @memberof Configuration
|
|
54
|
+
*/
|
|
55
|
+
serverIndex;
|
|
49
56
|
/**
|
|
50
57
|
* base options for axios calls
|
|
51
58
|
*
|
|
@@ -67,6 +74,7 @@ export class Configuration {
|
|
|
67
74
|
this.password = param.password;
|
|
68
75
|
this.accessToken = param.accessToken;
|
|
69
76
|
this.basePath = param.basePath;
|
|
77
|
+
this.serverIndex = param.serverIndex;
|
|
70
78
|
this.baseOptions = param.baseOptions;
|
|
71
79
|
this.formDataCtor = param.formDataCtor;
|
|
72
80
|
}
|
|
@@ -10,11 +10,11 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { Configuration } from '../configuration';
|
|
13
|
-
import type { AxiosPromise, AxiosInstance,
|
|
13
|
+
import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
14
14
|
import globalAxios from 'axios';
|
|
15
|
-
import { RequestArgs, BaseAPI } from '../base';
|
|
16
|
-
import { ProductTypeDefinition } from '../models';
|
|
17
|
-
import { ProductTypeList } from '../models';
|
|
15
|
+
import { type RequestArgs, BaseAPI } from '../base';
|
|
16
|
+
import type { ProductTypeDefinition } from '../models';
|
|
17
|
+
import type { ProductTypeList } from '../models';
|
|
18
18
|
/**
|
|
19
19
|
* DefinitionsApi - axios parameter creator
|
|
20
20
|
* @export
|
|
@@ -26,13 +26,13 @@ export declare const DefinitionsApiAxiosParamCreator: (configuration?: Configura
|
|
|
26
26
|
* @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.
|
|
27
27
|
* @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.
|
|
28
28
|
* @param {string} [productTypeVersion] The version of the Amazon product type to retrieve. Defaults to \"LATEST\",. Prerelease versions of product type definitions may be retrieved with \"RELEASE_CANDIDATE\". If no prerelease version is currently available, the \"LATEST\" live version will be provided.
|
|
29
|
-
* @param {
|
|
30
|
-
* @param {
|
|
31
|
-
* @param {
|
|
29
|
+
* @param {GetDefinitionsProductTypeRequirementsEnum} [requirements] The name of the requirements set to retrieve requirements for.
|
|
30
|
+
* @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).
|
|
31
|
+
* @param {GetDefinitionsProductTypeLocaleEnum} [locale] Locale for retrieving display labels and other presentation details. Defaults to the default language of the first marketplace in the request.
|
|
32
32
|
* @param {*} [options] Override http request option.
|
|
33
33
|
* @throws {RequiredError}
|
|
34
34
|
*/
|
|
35
|
-
getDefinitionsProductType: (productType: string, marketplaceIds: Array<string>, sellerId?: string, productTypeVersion?: string, requirements?:
|
|
35
|
+
getDefinitionsProductType: (productType: string, marketplaceIds: Array<string>, sellerId?: string, productTypeVersion?: string, requirements?: GetDefinitionsProductTypeRequirementsEnum, requirementsEnforced?: GetDefinitionsProductTypeRequirementsEnforcedEnum, locale?: GetDefinitionsProductTypeLocaleEnum, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
36
36
|
/**
|
|
37
37
|
* 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).
|
|
38
38
|
* @param {Array<string>} marketplaceIds A comma-delimited list of Amazon marketplace identifiers for the request.
|
|
@@ -43,7 +43,7 @@ export declare const DefinitionsApiAxiosParamCreator: (configuration?: Configura
|
|
|
43
43
|
* @param {*} [options] Override http request option.
|
|
44
44
|
* @throws {RequiredError}
|
|
45
45
|
*/
|
|
46
|
-
searchDefinitionsProductTypes: (marketplaceIds: Array<string>, keywords?: Array<string>, itemName?: string, locale?: string, searchLocale?: string, options?:
|
|
46
|
+
searchDefinitionsProductTypes: (marketplaceIds: Array<string>, keywords?: Array<string>, itemName?: string, locale?: string, searchLocale?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
47
47
|
};
|
|
48
48
|
/**
|
|
49
49
|
* DefinitionsApi - functional programming interface
|
|
@@ -56,13 +56,13 @@ export declare const DefinitionsApiFp: (configuration?: Configuration) => {
|
|
|
56
56
|
* @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.
|
|
57
57
|
* @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.
|
|
58
58
|
* @param {string} [productTypeVersion] The version of the Amazon product type to retrieve. Defaults to \"LATEST\",. Prerelease versions of product type definitions may be retrieved with \"RELEASE_CANDIDATE\". If no prerelease version is currently available, the \"LATEST\" live version will be provided.
|
|
59
|
-
* @param {
|
|
60
|
-
* @param {
|
|
61
|
-
* @param {
|
|
59
|
+
* @param {GetDefinitionsProductTypeRequirementsEnum} [requirements] The name of the requirements set to retrieve requirements for.
|
|
60
|
+
* @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).
|
|
61
|
+
* @param {GetDefinitionsProductTypeLocaleEnum} [locale] Locale for retrieving display labels and other presentation details. Defaults to the default language of the first marketplace in the request.
|
|
62
62
|
* @param {*} [options] Override http request option.
|
|
63
63
|
* @throws {RequiredError}
|
|
64
64
|
*/
|
|
65
|
-
getDefinitionsProductType(productType: string, marketplaceIds: Array<string>, sellerId?: string, productTypeVersion?: string, requirements?:
|
|
65
|
+
getDefinitionsProductType(productType: string, marketplaceIds: Array<string>, sellerId?: string, productTypeVersion?: string, requirements?: GetDefinitionsProductTypeRequirementsEnum, requirementsEnforced?: GetDefinitionsProductTypeRequirementsEnforcedEnum, locale?: GetDefinitionsProductTypeLocaleEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProductTypeDefinition>>;
|
|
66
66
|
/**
|
|
67
67
|
* 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).
|
|
68
68
|
* @param {Array<string>} marketplaceIds A comma-delimited list of Amazon marketplace identifiers for the request.
|
|
@@ -73,7 +73,7 @@ export declare const DefinitionsApiFp: (configuration?: Configuration) => {
|
|
|
73
73
|
* @param {*} [options] Override http request option.
|
|
74
74
|
* @throws {RequiredError}
|
|
75
75
|
*/
|
|
76
|
-
searchDefinitionsProductTypes(marketplaceIds: Array<string>, keywords?: Array<string>, itemName?: string, locale?: string, searchLocale?: string, options?:
|
|
76
|
+
searchDefinitionsProductTypes(marketplaceIds: Array<string>, keywords?: Array<string>, itemName?: string, locale?: string, searchLocale?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProductTypeList>>;
|
|
77
77
|
};
|
|
78
78
|
/**
|
|
79
79
|
* DefinitionsApi - factory interface
|
|
@@ -86,14 +86,14 @@ export declare const DefinitionsApiFactory: (configuration?: Configuration, base
|
|
|
86
86
|
* @param {*} [options] Override http request option.
|
|
87
87
|
* @throws {RequiredError}
|
|
88
88
|
*/
|
|
89
|
-
getDefinitionsProductType(requestParameters: DefinitionsApiGetDefinitionsProductTypeRequest, options?:
|
|
89
|
+
getDefinitionsProductType(requestParameters: DefinitionsApiGetDefinitionsProductTypeRequest, options?: RawAxiosRequestConfig): AxiosPromise<ProductTypeDefinition>;
|
|
90
90
|
/**
|
|
91
91
|
* 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).
|
|
92
92
|
* @param {DefinitionsApiSearchDefinitionsProductTypesRequest} requestParameters Request parameters.
|
|
93
93
|
* @param {*} [options] Override http request option.
|
|
94
94
|
* @throws {RequiredError}
|
|
95
95
|
*/
|
|
96
|
-
searchDefinitionsProductTypes(requestParameters: DefinitionsApiSearchDefinitionsProductTypesRequest, options?:
|
|
96
|
+
searchDefinitionsProductTypes(requestParameters: DefinitionsApiSearchDefinitionsProductTypesRequest, options?: RawAxiosRequestConfig): AxiosPromise<ProductTypeList>;
|
|
97
97
|
};
|
|
98
98
|
/**
|
|
99
99
|
* Request parameters for getDefinitionsProductType operation in DefinitionsApi.
|
|
@@ -130,19 +130,19 @@ export interface DefinitionsApiGetDefinitionsProductTypeRequest {
|
|
|
130
130
|
* @type {'LISTING' | 'LISTING_PRODUCT_ONLY' | 'LISTING_OFFER_ONLY'}
|
|
131
131
|
* @memberof DefinitionsApiGetDefinitionsProductType
|
|
132
132
|
*/
|
|
133
|
-
readonly requirements?:
|
|
133
|
+
readonly requirements?: GetDefinitionsProductTypeRequirementsEnum;
|
|
134
134
|
/**
|
|
135
135
|
* 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).
|
|
136
136
|
* @type {'ENFORCED' | 'NOT_ENFORCED'}
|
|
137
137
|
* @memberof DefinitionsApiGetDefinitionsProductType
|
|
138
138
|
*/
|
|
139
|
-
readonly requirementsEnforced?:
|
|
139
|
+
readonly requirementsEnforced?: GetDefinitionsProductTypeRequirementsEnforcedEnum;
|
|
140
140
|
/**
|
|
141
141
|
* Locale for retrieving display labels and other presentation details. Defaults to the default language of the first marketplace in the request.
|
|
142
142
|
* @type {'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'}
|
|
143
143
|
* @memberof DefinitionsApiGetDefinitionsProductType
|
|
144
144
|
*/
|
|
145
|
-
readonly locale?:
|
|
145
|
+
readonly locale?: GetDefinitionsProductTypeLocaleEnum;
|
|
146
146
|
}
|
|
147
147
|
/**
|
|
148
148
|
* Request parameters for searchDefinitionsProductTypes operation in DefinitionsApi.
|
|
@@ -195,7 +195,7 @@ export declare class DefinitionsApi extends BaseAPI {
|
|
|
195
195
|
* @throws {RequiredError}
|
|
196
196
|
* @memberof DefinitionsApi
|
|
197
197
|
*/
|
|
198
|
-
getDefinitionsProductType(requestParameters: DefinitionsApiGetDefinitionsProductTypeRequest, options?:
|
|
198
|
+
getDefinitionsProductType(requestParameters: DefinitionsApiGetDefinitionsProductTypeRequest, options?: RawAxiosRequestConfig): Promise<globalAxios.AxiosResponse<ProductTypeDefinition, any>>;
|
|
199
199
|
/**
|
|
200
200
|
* 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).
|
|
201
201
|
* @param {DefinitionsApiSearchDefinitionsProductTypesRequest} requestParameters Request parameters.
|
|
@@ -203,5 +203,66 @@ export declare class DefinitionsApi extends BaseAPI {
|
|
|
203
203
|
* @throws {RequiredError}
|
|
204
204
|
* @memberof DefinitionsApi
|
|
205
205
|
*/
|
|
206
|
-
searchDefinitionsProductTypes(requestParameters: DefinitionsApiSearchDefinitionsProductTypesRequest, options?:
|
|
206
|
+
searchDefinitionsProductTypes(requestParameters: DefinitionsApiSearchDefinitionsProductTypesRequest, options?: RawAxiosRequestConfig): Promise<globalAxios.AxiosResponse<ProductTypeList, any>>;
|
|
207
207
|
}
|
|
208
|
+
/**
|
|
209
|
+
* @export
|
|
210
|
+
*/
|
|
211
|
+
export declare const GetDefinitionsProductTypeRequirementsEnum: {
|
|
212
|
+
readonly Listing: "LISTING";
|
|
213
|
+
readonly ListingProductOnly: "LISTING_PRODUCT_ONLY";
|
|
214
|
+
readonly ListingOfferOnly: "LISTING_OFFER_ONLY";
|
|
215
|
+
};
|
|
216
|
+
export type GetDefinitionsProductTypeRequirementsEnum = typeof GetDefinitionsProductTypeRequirementsEnum[keyof typeof GetDefinitionsProductTypeRequirementsEnum];
|
|
217
|
+
/**
|
|
218
|
+
* @export
|
|
219
|
+
*/
|
|
220
|
+
export declare const GetDefinitionsProductTypeRequirementsEnforcedEnum: {
|
|
221
|
+
readonly Enforced: "ENFORCED";
|
|
222
|
+
readonly NotEnforced: "NOT_ENFORCED";
|
|
223
|
+
};
|
|
224
|
+
export type GetDefinitionsProductTypeRequirementsEnforcedEnum = typeof GetDefinitionsProductTypeRequirementsEnforcedEnum[keyof typeof GetDefinitionsProductTypeRequirementsEnforcedEnum];
|
|
225
|
+
/**
|
|
226
|
+
* @export
|
|
227
|
+
*/
|
|
228
|
+
export declare const GetDefinitionsProductTypeLocaleEnum: {
|
|
229
|
+
readonly Default: "DEFAULT";
|
|
230
|
+
readonly Ar: "ar";
|
|
231
|
+
readonly ArAe: "ar_AE";
|
|
232
|
+
readonly De: "de";
|
|
233
|
+
readonly DeDe: "de_DE";
|
|
234
|
+
readonly En: "en";
|
|
235
|
+
readonly EnAe: "en_AE";
|
|
236
|
+
readonly EnAu: "en_AU";
|
|
237
|
+
readonly EnCa: "en_CA";
|
|
238
|
+
readonly EnGb: "en_GB";
|
|
239
|
+
readonly EnIn: "en_IN";
|
|
240
|
+
readonly EnSg: "en_SG";
|
|
241
|
+
readonly EnUs: "en_US";
|
|
242
|
+
readonly Es: "es";
|
|
243
|
+
readonly EsEs: "es_ES";
|
|
244
|
+
readonly EsMx: "es_MX";
|
|
245
|
+
readonly EsUs: "es_US";
|
|
246
|
+
readonly Fr: "fr";
|
|
247
|
+
readonly FrCa: "fr_CA";
|
|
248
|
+
readonly FrFr: "fr_FR";
|
|
249
|
+
readonly It: "it";
|
|
250
|
+
readonly ItIt: "it_IT";
|
|
251
|
+
readonly Ja: "ja";
|
|
252
|
+
readonly JaJp: "ja_JP";
|
|
253
|
+
readonly Nl: "nl";
|
|
254
|
+
readonly NlNl: "nl_NL";
|
|
255
|
+
readonly Pl: "pl";
|
|
256
|
+
readonly PlPl: "pl_PL";
|
|
257
|
+
readonly Pt: "pt";
|
|
258
|
+
readonly PtBr: "pt_BR";
|
|
259
|
+
readonly PtPt: "pt_PT";
|
|
260
|
+
readonly Sv: "sv";
|
|
261
|
+
readonly SvSe: "sv_SE";
|
|
262
|
+
readonly Tr: "tr";
|
|
263
|
+
readonly TrTr: "tr_TR";
|
|
264
|
+
readonly Zh: "zh";
|
|
265
|
+
readonly ZhCn: "zh_CN";
|
|
266
|
+
readonly ZhTw: "zh_TW";
|
|
267
|
+
};
|
|
268
|
+
export type GetDefinitionsProductTypeLocaleEnum = typeof GetDefinitionsProductTypeLocaleEnum[keyof typeof GetDefinitionsProductTypeLocaleEnum];
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { Configuration } from './configuration';
|
|
13
|
-
import type { AxiosInstance,
|
|
13
|
+
import type { AxiosInstance, RawAxiosRequestConfig } 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: RawAxiosRequestConfig;
|
|
33
33
|
}
|
|
34
34
|
/**
|
|
35
35
|
*
|
|
@@ -52,3 +52,15 @@ export declare class RequiredError extends Error {
|
|
|
52
52
|
field: string;
|
|
53
53
|
constructor(field: string, msg?: string);
|
|
54
54
|
}
|
|
55
|
+
interface ServerMap {
|
|
56
|
+
[key: string]: {
|
|
57
|
+
url: string;
|
|
58
|
+
description: string;
|
|
59
|
+
}[];
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @export
|
|
64
|
+
*/
|
|
65
|
+
export declare const operationServerMap: ServerMap;
|
|
66
|
+
export {};
|
|
@@ -15,6 +15,7 @@ export interface ConfigurationParameters {
|
|
|
15
15
|
password?: string;
|
|
16
16
|
accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
|
|
17
17
|
basePath?: string;
|
|
18
|
+
serverIndex?: number;
|
|
18
19
|
baseOptions?: any;
|
|
19
20
|
formDataCtor?: new () => any;
|
|
20
21
|
}
|
|
@@ -53,6 +54,13 @@ export declare class Configuration {
|
|
|
53
54
|
* @memberof Configuration
|
|
54
55
|
*/
|
|
55
56
|
basePath?: string;
|
|
57
|
+
/**
|
|
58
|
+
* override server index
|
|
59
|
+
*
|
|
60
|
+
* @type {number}
|
|
61
|
+
* @memberof Configuration
|
|
62
|
+
*/
|
|
63
|
+
serverIndex?: number;
|
|
56
64
|
/**
|
|
57
65
|
* base options for axios calls
|
|
58
66
|
*
|
|
@@ -9,9 +9,9 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import { ProductTypeVersion } from './product-type-version';
|
|
13
|
-
import { PropertyGroup } from './property-group';
|
|
14
|
-
import { SchemaLink } from './schema-link';
|
|
12
|
+
import type { ProductTypeVersion } from './product-type-version';
|
|
13
|
+
import type { PropertyGroup } from './property-group';
|
|
14
|
+
import type { SchemaLink } from './schema-link';
|
|
15
15
|
/**
|
|
16
16
|
* 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.
|
|
17
17
|
* @export
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import { ProductType } from './product-type';
|
|
12
|
+
import type { ProductType } from './product-type';
|
|
13
13
|
/**
|
|
14
14
|
* A list of Amazon product types with definitions available.
|
|
15
15
|
* @export
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@sp-api-sdk/product-type-definitions-api-2020-09-01",
|
|
3
3
|
"author": "Bertrand Marron <bertrand@bizon.solutions>",
|
|
4
4
|
"description": "The Selling Partner API for Product Type Definitions provides programmatic access to attribute and data requirements for product types in the Amazon catalog. Use this API to return the JSON Schema for a product type that you can then use with other Selling Partner APIs, such as the Selling Partner API for Listings Items, the Selling Partner API for Catalog Items, and the Selling Partner API for Feeds (for JSON-based listing feeds). For more information, see the Product Type Definitions API Use Case Guide.",
|
|
5
|
-
"version": "2.
|
|
5
|
+
"version": "2.3.0",
|
|
6
6
|
"main": "dist/cjs/index.js",
|
|
7
7
|
"module": "dist/es/index.js",
|
|
8
8
|
"types": "dist/types/index.d.ts",
|
|
@@ -18,8 +18,8 @@
|
|
|
18
18
|
"dist/**/*.d.ts"
|
|
19
19
|
],
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@sp-api-sdk/common": "2.0.
|
|
22
|
-
"axios": "^1.
|
|
21
|
+
"@sp-api-sdk/common": "2.0.8",
|
|
22
|
+
"axios": "^1.7.0"
|
|
23
23
|
},
|
|
24
24
|
"repository": {
|
|
25
25
|
"type": "git",
|
|
@@ -40,5 +40,5 @@
|
|
|
40
40
|
"sp sdk",
|
|
41
41
|
"product type definitions api"
|
|
42
42
|
],
|
|
43
|
-
"gitHead": "
|
|
43
|
+
"gitHead": "5a245a25a9f1765c825e2178668d4b0f4e44689b"
|
|
44
44
|
}
|