@sp-api-sdk/catalog-items-api-2022-04-01 1.1.0 → 1.2.1
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/catalog-api.js +2 -2
- package/dist/cjs/src/api-model/models/{item-dimension.js → dimension.js} +0 -0
- package/dist/cjs/src/api-model/models/{item-dimensions.js → dimensions.js} +0 -0
- package/dist/cjs/src/api-model/models/index.js +2 -2
- package/dist/cjs/src/api-model/models/item-image.js +12 -17
- package/dist/cjs/src/api-model/models/item-relationship.js +4 -9
- package/dist/cjs/src/api-model/models/item-summary-by-marketplace.js +6 -11
- package/dist/cjs/src/api-model/models/item-vendor-details-by-marketplace.js +12 -17
- package/dist/es/src/api-model/api/catalog-api.js +2 -2
- package/dist/es/src/api-model/models/{item-dimension.js → dimension.js} +0 -0
- package/dist/es/src/api-model/models/{item-dimensions.js → dimensions.js} +0 -0
- package/dist/es/src/api-model/models/index.js +2 -2
- package/dist/es/src/api-model/models/item-image.js +12 -17
- package/dist/es/src/api-model/models/item-relationship.js +4 -9
- package/dist/es/src/api-model/models/item-summary-by-marketplace.js +6 -11
- package/dist/es/src/api-model/models/item-vendor-details-by-marketplace.js +12 -17
- package/dist/types/src/api-model/api/catalog-api.d.ts +12 -12
- package/dist/types/src/api-model/base.d.ts +2 -2
- package/dist/types/src/api-model/common.d.ts +7 -7
- package/dist/types/src/api-model/models/brand-refinement.d.ts +2 -2
- package/dist/types/src/api-model/models/classification-refinement.d.ts +3 -3
- package/dist/types/src/api-model/models/{item-dimension.d.ts → dimension.d.ts} +6 -6
- package/dist/types/src/api-model/models/{item-dimensions.d.ts → dimensions.d.ts} +15 -15
- package/dist/types/src/api-model/models/error-list.d.ts +1 -1
- package/dist/types/src/api-model/models/index.d.ts +2 -2
- package/dist/types/src/api-model/models/item-browse-classification.d.ts +2 -2
- package/dist/types/src/api-model/models/item-classification-sales-rank.d.ts +4 -4
- package/dist/types/src/api-model/models/item-dimensions-by-marketplace.d.ts +6 -6
- package/dist/types/src/api-model/models/item-display-group-sales-rank.d.ts +4 -4
- package/dist/types/src/api-model/models/item-identifier.d.ts +2 -2
- package/dist/types/src/api-model/models/item-identifiers-by-marketplace.d.ts +2 -2
- package/dist/types/src/api-model/models/item-image.d.ts +17 -20
- package/dist/types/src/api-model/models/item-images-by-marketplace.d.ts +2 -2
- package/dist/types/src/api-model/models/item-product-type-by-marketplace.d.ts +2 -2
- package/dist/types/src/api-model/models/item-relationship.d.ts +9 -12
- package/dist/types/src/api-model/models/item-relationships-by-marketplace.d.ts +2 -2
- package/dist/types/src/api-model/models/item-sales-ranks-by-marketplace.d.ts +3 -3
- package/dist/types/src/api-model/models/item-search-results.d.ts +4 -4
- package/dist/types/src/api-model/models/item-summary-by-marketplace.d.ts +20 -23
- package/dist/types/src/api-model/models/item-variation-theme.d.ts +2 -2
- package/dist/types/src/api-model/models/item-vendor-details-by-marketplace.d.ts +21 -24
- package/dist/types/src/api-model/models/item-vendor-details-category.d.ts +2 -2
- package/dist/types/src/api-model/models/item.d.ts +12 -12
- package/dist/types/src/api-model/models/model-error.d.ts +3 -3
- package/dist/types/src/api-model/models/pagination.d.ts +2 -2
- package/dist/types/src/api-model/models/refinements.d.ts +2 -2
- package/package.json +4 -4
|
@@ -61,7 +61,7 @@ const CatalogApiAxiosParamCreator = function (configuration) {
|
|
|
61
61
|
if (locale !== undefined) {
|
|
62
62
|
localVarQueryParameter['locale'] = locale;
|
|
63
63
|
}
|
|
64
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter
|
|
64
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
65
65
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
66
66
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
67
67
|
return {
|
|
@@ -135,7 +135,7 @@ const CatalogApiAxiosParamCreator = function (configuration) {
|
|
|
135
135
|
if (keywordsLocale !== undefined) {
|
|
136
136
|
localVarQueryParameter['keywordsLocale'] = keywordsLocale;
|
|
137
137
|
}
|
|
138
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter
|
|
138
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
139
139
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
140
140
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
141
141
|
return {
|
|
File without changes
|
|
File without changes
|
|
@@ -3,12 +3,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
4
|
tslib_1.__exportStar(require("./brand-refinement"), exports);
|
|
5
5
|
tslib_1.__exportStar(require("./classification-refinement"), exports);
|
|
6
|
+
tslib_1.__exportStar(require("./dimension"), exports);
|
|
7
|
+
tslib_1.__exportStar(require("./dimensions"), exports);
|
|
6
8
|
tslib_1.__exportStar(require("./error-list"), exports);
|
|
7
9
|
tslib_1.__exportStar(require("./item"), exports);
|
|
8
10
|
tslib_1.__exportStar(require("./item-browse-classification"), exports);
|
|
9
11
|
tslib_1.__exportStar(require("./item-classification-sales-rank"), exports);
|
|
10
|
-
tslib_1.__exportStar(require("./item-dimension"), exports);
|
|
11
|
-
tslib_1.__exportStar(require("./item-dimensions"), exports);
|
|
12
12
|
tslib_1.__exportStar(require("./item-dimensions-by-marketplace"), exports);
|
|
13
13
|
tslib_1.__exportStar(require("./item-display-group-sales-rank"), exports);
|
|
14
14
|
tslib_1.__exportStar(require("./item-identifier"), exports);
|
|
@@ -14,20 +14,15 @@
|
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.ItemImageVariantEnum = void 0;
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
ItemImageVariantEnum["Pt06"] = "PT06";
|
|
30
|
-
ItemImageVariantEnum["Pt07"] = "PT07";
|
|
31
|
-
ItemImageVariantEnum["Pt08"] = "PT08";
|
|
32
|
-
ItemImageVariantEnum["Swch"] = "SWCH";
|
|
33
|
-
})(ItemImageVariantEnum = exports.ItemImageVariantEnum || (exports.ItemImageVariantEnum = {}));
|
|
17
|
+
exports.ItemImageVariantEnum = {
|
|
18
|
+
Main: 'MAIN',
|
|
19
|
+
Pt01: 'PT01',
|
|
20
|
+
Pt02: 'PT02',
|
|
21
|
+
Pt03: 'PT03',
|
|
22
|
+
Pt04: 'PT04',
|
|
23
|
+
Pt05: 'PT05',
|
|
24
|
+
Pt06: 'PT06',
|
|
25
|
+
Pt07: 'PT07',
|
|
26
|
+
Pt08: 'PT08',
|
|
27
|
+
Swch: 'SWCH'
|
|
28
|
+
};
|
|
@@ -14,12 +14,7 @@
|
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.ItemRelationshipTypeEnum = void 0;
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
var ItemRelationshipTypeEnum;
|
|
22
|
-
(function (ItemRelationshipTypeEnum) {
|
|
23
|
-
ItemRelationshipTypeEnum["Variation"] = "VARIATION";
|
|
24
|
-
ItemRelationshipTypeEnum["PackageHierarchy"] = "PACKAGE_HIERARCHY";
|
|
25
|
-
})(ItemRelationshipTypeEnum = exports.ItemRelationshipTypeEnum || (exports.ItemRelationshipTypeEnum = {}));
|
|
17
|
+
exports.ItemRelationshipTypeEnum = {
|
|
18
|
+
Variation: 'VARIATION',
|
|
19
|
+
PackageHierarchy: 'PACKAGE_HIERARCHY'
|
|
20
|
+
};
|
|
@@ -14,14 +14,9 @@
|
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.ItemSummaryByMarketplaceItemClassificationEnum = void 0;
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
ItemSummaryByMarketplaceItemClassificationEnum["BaseProduct"] = "BASE_PRODUCT";
|
|
24
|
-
ItemSummaryByMarketplaceItemClassificationEnum["Other"] = "OTHER";
|
|
25
|
-
ItemSummaryByMarketplaceItemClassificationEnum["ProductBundle"] = "PRODUCT_BUNDLE";
|
|
26
|
-
ItemSummaryByMarketplaceItemClassificationEnum["VariationParent"] = "VARIATION_PARENT";
|
|
27
|
-
})(ItemSummaryByMarketplaceItemClassificationEnum = exports.ItemSummaryByMarketplaceItemClassificationEnum || (exports.ItemSummaryByMarketplaceItemClassificationEnum = {}));
|
|
17
|
+
exports.ItemSummaryByMarketplaceItemClassificationEnum = {
|
|
18
|
+
BaseProduct: 'BASE_PRODUCT',
|
|
19
|
+
Other: 'OTHER',
|
|
20
|
+
ProductBundle: 'PRODUCT_BUNDLE',
|
|
21
|
+
VariationParent: 'VARIATION_PARENT'
|
|
22
|
+
};
|
|
@@ -14,20 +14,15 @@
|
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.ItemVendorDetailsByMarketplaceReplenishmentCategoryEnum = void 0;
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
ItemVendorDetailsByMarketplaceReplenishmentCategoryEnum["NonReplenishable"] = "NON_REPLENISHABLE";
|
|
30
|
-
ItemVendorDetailsByMarketplaceReplenishmentCategoryEnum["NonStockupable"] = "NON_STOCKUPABLE";
|
|
31
|
-
ItemVendorDetailsByMarketplaceReplenishmentCategoryEnum["Obsolete"] = "OBSOLETE";
|
|
32
|
-
ItemVendorDetailsByMarketplaceReplenishmentCategoryEnum["PlannedReplenishment"] = "PLANNED_REPLENISHMENT";
|
|
33
|
-
})(ItemVendorDetailsByMarketplaceReplenishmentCategoryEnum = exports.ItemVendorDetailsByMarketplaceReplenishmentCategoryEnum || (exports.ItemVendorDetailsByMarketplaceReplenishmentCategoryEnum = {}));
|
|
17
|
+
exports.ItemVendorDetailsByMarketplaceReplenishmentCategoryEnum = {
|
|
18
|
+
Allocated: 'ALLOCATED',
|
|
19
|
+
BasicReplenishment: 'BASIC_REPLENISHMENT',
|
|
20
|
+
InSeason: 'IN_SEASON',
|
|
21
|
+
LimitedReplenishment: 'LIMITED_REPLENISHMENT',
|
|
22
|
+
ManufacturerOutOfStock: 'MANUFACTURER_OUT_OF_STOCK',
|
|
23
|
+
NewProduct: 'NEW_PRODUCT',
|
|
24
|
+
NonReplenishable: 'NON_REPLENISHABLE',
|
|
25
|
+
NonStockupable: 'NON_STOCKUPABLE',
|
|
26
|
+
Obsolete: 'OBSOLETE',
|
|
27
|
+
PlannedReplenishment: 'PLANNED_REPLENISHMENT'
|
|
28
|
+
};
|
|
@@ -57,7 +57,7 @@ export const CatalogApiAxiosParamCreator = function (configuration) {
|
|
|
57
57
|
if (locale !== undefined) {
|
|
58
58
|
localVarQueryParameter['locale'] = locale;
|
|
59
59
|
}
|
|
60
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter
|
|
60
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
61
61
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
62
62
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
63
63
|
return {
|
|
@@ -131,7 +131,7 @@ export const CatalogApiAxiosParamCreator = function (configuration) {
|
|
|
131
131
|
if (keywordsLocale !== undefined) {
|
|
132
132
|
localVarQueryParameter['keywordsLocale'] = keywordsLocale;
|
|
133
133
|
}
|
|
134
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter
|
|
134
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
135
135
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
136
136
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
137
137
|
return {
|
|
File without changes
|
|
File without changes
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
export * from './brand-refinement';
|
|
2
2
|
export * from './classification-refinement';
|
|
3
|
+
export * from './dimension';
|
|
4
|
+
export * from './dimensions';
|
|
3
5
|
export * from './error-list';
|
|
4
6
|
export * from './item';
|
|
5
7
|
export * from './item-browse-classification';
|
|
6
8
|
export * from './item-classification-sales-rank';
|
|
7
|
-
export * from './item-dimension';
|
|
8
|
-
export * from './item-dimensions';
|
|
9
9
|
export * from './item-dimensions-by-marketplace';
|
|
10
10
|
export * from './item-display-group-sales-rank';
|
|
11
11
|
export * from './item-identifier';
|
|
@@ -11,20 +11,15 @@
|
|
|
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
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
ItemImageVariantEnum["Pt06"] = "PT06";
|
|
27
|
-
ItemImageVariantEnum["Pt07"] = "PT07";
|
|
28
|
-
ItemImageVariantEnum["Pt08"] = "PT08";
|
|
29
|
-
ItemImageVariantEnum["Swch"] = "SWCH";
|
|
30
|
-
})(ItemImageVariantEnum || (ItemImageVariantEnum = {}));
|
|
14
|
+
export const ItemImageVariantEnum = {
|
|
15
|
+
Main: 'MAIN',
|
|
16
|
+
Pt01: 'PT01',
|
|
17
|
+
Pt02: 'PT02',
|
|
18
|
+
Pt03: 'PT03',
|
|
19
|
+
Pt04: 'PT04',
|
|
20
|
+
Pt05: 'PT05',
|
|
21
|
+
Pt06: 'PT06',
|
|
22
|
+
Pt07: 'PT07',
|
|
23
|
+
Pt08: 'PT08',
|
|
24
|
+
Swch: 'SWCH'
|
|
25
|
+
};
|
|
@@ -11,12 +11,7 @@
|
|
|
11
11
|
* https://openapi-generator.tech
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
export var ItemRelationshipTypeEnum;
|
|
19
|
-
(function (ItemRelationshipTypeEnum) {
|
|
20
|
-
ItemRelationshipTypeEnum["Variation"] = "VARIATION";
|
|
21
|
-
ItemRelationshipTypeEnum["PackageHierarchy"] = "PACKAGE_HIERARCHY";
|
|
22
|
-
})(ItemRelationshipTypeEnum || (ItemRelationshipTypeEnum = {}));
|
|
14
|
+
export const ItemRelationshipTypeEnum = {
|
|
15
|
+
Variation: 'VARIATION',
|
|
16
|
+
PackageHierarchy: 'PACKAGE_HIERARCHY'
|
|
17
|
+
};
|
|
@@ -11,14 +11,9 @@
|
|
|
11
11
|
* https://openapi-generator.tech
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
ItemSummaryByMarketplaceItemClassificationEnum["BaseProduct"] = "BASE_PRODUCT";
|
|
21
|
-
ItemSummaryByMarketplaceItemClassificationEnum["Other"] = "OTHER";
|
|
22
|
-
ItemSummaryByMarketplaceItemClassificationEnum["ProductBundle"] = "PRODUCT_BUNDLE";
|
|
23
|
-
ItemSummaryByMarketplaceItemClassificationEnum["VariationParent"] = "VARIATION_PARENT";
|
|
24
|
-
})(ItemSummaryByMarketplaceItemClassificationEnum || (ItemSummaryByMarketplaceItemClassificationEnum = {}));
|
|
14
|
+
export const ItemSummaryByMarketplaceItemClassificationEnum = {
|
|
15
|
+
BaseProduct: 'BASE_PRODUCT',
|
|
16
|
+
Other: 'OTHER',
|
|
17
|
+
ProductBundle: 'PRODUCT_BUNDLE',
|
|
18
|
+
VariationParent: 'VARIATION_PARENT'
|
|
19
|
+
};
|
|
@@ -11,20 +11,15 @@
|
|
|
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
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
ItemVendorDetailsByMarketplaceReplenishmentCategoryEnum["NonReplenishable"] = "NON_REPLENISHABLE";
|
|
27
|
-
ItemVendorDetailsByMarketplaceReplenishmentCategoryEnum["NonStockupable"] = "NON_STOCKUPABLE";
|
|
28
|
-
ItemVendorDetailsByMarketplaceReplenishmentCategoryEnum["Obsolete"] = "OBSOLETE";
|
|
29
|
-
ItemVendorDetailsByMarketplaceReplenishmentCategoryEnum["PlannedReplenishment"] = "PLANNED_REPLENISHMENT";
|
|
30
|
-
})(ItemVendorDetailsByMarketplaceReplenishmentCategoryEnum || (ItemVendorDetailsByMarketplaceReplenishmentCategoryEnum = {}));
|
|
14
|
+
export const ItemVendorDetailsByMarketplaceReplenishmentCategoryEnum = {
|
|
15
|
+
Allocated: 'ALLOCATED',
|
|
16
|
+
BasicReplenishment: 'BASIC_REPLENISHMENT',
|
|
17
|
+
InSeason: 'IN_SEASON',
|
|
18
|
+
LimitedReplenishment: 'LIMITED_REPLENISHMENT',
|
|
19
|
+
ManufacturerOutOfStock: 'MANUFACTURER_OUT_OF_STOCK',
|
|
20
|
+
NewProduct: 'NEW_PRODUCT',
|
|
21
|
+
NonReplenishable: 'NON_REPLENISHABLE',
|
|
22
|
+
NonStockupable: 'NON_STOCKUPABLE',
|
|
23
|
+
Obsolete: 'OBSOLETE',
|
|
24
|
+
PlannedReplenishment: 'PLANNED_REPLENISHMENT'
|
|
25
|
+
};
|
|
@@ -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 { Item } from '../models';
|
|
@@ -18,7 +18,7 @@ import { ItemSearchResults } from '../models';
|
|
|
18
18
|
* CatalogApi - axios parameter creator
|
|
19
19
|
* @export
|
|
20
20
|
*/
|
|
21
|
-
export declare const CatalogApiAxiosParamCreator: (configuration?: Configuration
|
|
21
|
+
export declare const CatalogApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
22
22
|
/**
|
|
23
23
|
* Retrieves details for an item in the Amazon catalog. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 5 | 5 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may observe higher rate and burst values than those shown here. For more information, refer to the [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} asin The Amazon Standard Identification Number (ASIN) of the item.
|
|
@@ -28,7 +28,7 @@ export declare const CatalogApiAxiosParamCreator: (configuration?: Configuration
|
|
|
28
28
|
* @param {*} [options] Override http request option.
|
|
29
29
|
* @throws {RequiredError}
|
|
30
30
|
*/
|
|
31
|
-
getCatalogItem: (asin: string, marketplaceIds: Array<string>, includedData?:
|
|
31
|
+
getCatalogItem: (asin: string, marketplaceIds: Array<string>, includedData?: Array<'attributes' | 'dimensions' | 'identifiers' | 'images' | 'productTypes' | 'relationships' | 'salesRanks' | 'summaries' | 'vendorDetails'>, locale?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
32
32
|
/**
|
|
33
33
|
* Search for and return a list of Amazon catalog items and associated information either by identifier or by keywords. **Usage Plans:** | Rate (requests per second) | Burst | | ---- | ---- | | 5 | 5 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may observe higher rate and burst values than those shown here. For more information, refer to the [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).
|
|
34
34
|
* @param {Array<string>} marketplaceIds A comma-delimited list of Amazon marketplace identifiers for the request.
|
|
@@ -46,13 +46,13 @@ export declare const CatalogApiAxiosParamCreator: (configuration?: Configuration
|
|
|
46
46
|
* @param {*} [options] Override http request option.
|
|
47
47
|
* @throws {RequiredError}
|
|
48
48
|
*/
|
|
49
|
-
searchCatalogItems: (marketplaceIds: Array<string>, identifiers?: string
|
|
49
|
+
searchCatalogItems: (marketplaceIds: Array<string>, identifiers?: Array<string>, identifiersType?: 'ASIN' | 'EAN' | 'GTIN' | 'ISBN' | 'JAN' | 'MINSAN' | 'SKU' | 'UPC', includedData?: Array<'attributes' | 'dimensions' | 'identifiers' | 'images' | 'productTypes' | 'relationships' | 'salesRanks' | 'summaries' | 'vendorDetails'>, locale?: string, sellerId?: string, keywords?: Array<string>, brandNames?: Array<string>, classificationIds?: Array<string>, pageSize?: number, pageToken?: string, keywordsLocale?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
50
50
|
};
|
|
51
51
|
/**
|
|
52
52
|
* CatalogApi - functional programming interface
|
|
53
53
|
* @export
|
|
54
54
|
*/
|
|
55
|
-
export declare const CatalogApiFp: (configuration?: Configuration
|
|
55
|
+
export declare const CatalogApiFp: (configuration?: Configuration) => {
|
|
56
56
|
/**
|
|
57
57
|
* Retrieves details for an item in the Amazon catalog. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 5 | 5 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may observe higher rate and burst values than those shown here. For more information, refer to the [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).
|
|
58
58
|
* @param {string} asin The Amazon Standard Identification Number (ASIN) of the item.
|
|
@@ -62,7 +62,7 @@ export declare const CatalogApiFp: (configuration?: Configuration | undefined) =
|
|
|
62
62
|
* @param {*} [options] Override http request option.
|
|
63
63
|
* @throws {RequiredError}
|
|
64
64
|
*/
|
|
65
|
-
getCatalogItem(asin: string, marketplaceIds: Array<string>, includedData?:
|
|
65
|
+
getCatalogItem(asin: string, marketplaceIds: Array<string>, includedData?: Array<'attributes' | 'dimensions' | 'identifiers' | 'images' | 'productTypes' | 'relationships' | 'salesRanks' | 'summaries' | 'vendorDetails'>, locale?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Item>>;
|
|
66
66
|
/**
|
|
67
67
|
* Search for and return a list of Amazon catalog items and associated information either by identifier or by keywords. **Usage Plans:** | Rate (requests per second) | Burst | | ---- | ---- | | 5 | 5 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may observe higher rate and burst values than those shown here. For more information, refer to the [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.
|
|
@@ -80,13 +80,13 @@ export declare const CatalogApiFp: (configuration?: Configuration | undefined) =
|
|
|
80
80
|
* @param {*} [options] Override http request option.
|
|
81
81
|
* @throws {RequiredError}
|
|
82
82
|
*/
|
|
83
|
-
searchCatalogItems(marketplaceIds: Array<string>, identifiers?: string
|
|
83
|
+
searchCatalogItems(marketplaceIds: Array<string>, identifiers?: Array<string>, identifiersType?: 'ASIN' | 'EAN' | 'GTIN' | 'ISBN' | 'JAN' | 'MINSAN' | 'SKU' | 'UPC', includedData?: Array<'attributes' | 'dimensions' | 'identifiers' | 'images' | 'productTypes' | 'relationships' | 'salesRanks' | 'summaries' | 'vendorDetails'>, locale?: string, sellerId?: string, keywords?: Array<string>, brandNames?: Array<string>, classificationIds?: Array<string>, pageSize?: number, pageToken?: string, keywordsLocale?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ItemSearchResults>>;
|
|
84
84
|
};
|
|
85
85
|
/**
|
|
86
86
|
* CatalogApi - factory interface
|
|
87
87
|
* @export
|
|
88
88
|
*/
|
|
89
|
-
export declare const CatalogApiFactory: (configuration?: Configuration
|
|
89
|
+
export declare const CatalogApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
90
90
|
/**
|
|
91
91
|
* Retrieves details for an item in the Amazon catalog. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 5 | 5 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may observe higher rate and burst values than those shown here. For more information, refer to the [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 {string} asin The Amazon Standard Identification Number (ASIN) of the item.
|
|
@@ -96,7 +96,7 @@ export declare const CatalogApiFactory: (configuration?: Configuration | undefin
|
|
|
96
96
|
* @param {*} [options] Override http request option.
|
|
97
97
|
* @throws {RequiredError}
|
|
98
98
|
*/
|
|
99
|
-
getCatalogItem(asin: string, marketplaceIds: Array<string>, includedData?:
|
|
99
|
+
getCatalogItem(asin: string, marketplaceIds: Array<string>, includedData?: Array<'attributes' | 'dimensions' | 'identifiers' | 'images' | 'productTypes' | 'relationships' | 'salesRanks' | 'summaries' | 'vendorDetails'>, locale?: string, options?: any): AxiosPromise<Item>;
|
|
100
100
|
/**
|
|
101
101
|
* Search for and return a list of Amazon catalog items and associated information either by identifier or by keywords. **Usage Plans:** | Rate (requests per second) | Burst | | ---- | ---- | | 5 | 5 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may observe higher rate and burst values than those shown here. For more information, refer to the [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).
|
|
102
102
|
* @param {Array<string>} marketplaceIds A comma-delimited list of Amazon marketplace identifiers for the request.
|
|
@@ -114,7 +114,7 @@ export declare const CatalogApiFactory: (configuration?: Configuration | undefin
|
|
|
114
114
|
* @param {*} [options] Override http request option.
|
|
115
115
|
* @throws {RequiredError}
|
|
116
116
|
*/
|
|
117
|
-
searchCatalogItems(marketplaceIds: Array<string>, identifiers?: string
|
|
117
|
+
searchCatalogItems(marketplaceIds: Array<string>, identifiers?: Array<string>, identifiersType?: 'ASIN' | 'EAN' | 'GTIN' | 'ISBN' | 'JAN' | 'MINSAN' | 'SKU' | 'UPC', includedData?: Array<'attributes' | 'dimensions' | 'identifiers' | 'images' | 'productTypes' | 'relationships' | 'salesRanks' | 'summaries' | 'vendorDetails'>, locale?: string, sellerId?: string, keywords?: Array<string>, brandNames?: Array<string>, classificationIds?: Array<string>, pageSize?: number, pageToken?: string, keywordsLocale?: string, options?: any): AxiosPromise<ItemSearchResults>;
|
|
118
118
|
};
|
|
119
119
|
/**
|
|
120
120
|
* Request parameters for getCatalogItem operation in CatalogApi.
|
|
@@ -240,7 +240,7 @@ export declare class CatalogApi extends BaseAPI {
|
|
|
240
240
|
* @throws {RequiredError}
|
|
241
241
|
* @memberof CatalogApi
|
|
242
242
|
*/
|
|
243
|
-
getCatalogItem(requestParameters: CatalogApiGetCatalogItemRequest, options?:
|
|
243
|
+
getCatalogItem(requestParameters: CatalogApiGetCatalogItemRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<Item, any>>;
|
|
244
244
|
/**
|
|
245
245
|
* Search for and return a list of Amazon catalog items and associated information either by identifier or by keywords. **Usage Plans:** | Rate (requests per second) | Burst | | ---- | ---- | | 5 | 5 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may observe higher rate and burst values than those shown here. For more information, refer to the [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).
|
|
246
246
|
* @param {CatalogApiSearchCatalogItemsRequest} requestParameters Request parameters.
|
|
@@ -248,5 +248,5 @@ export declare class CatalogApi extends BaseAPI {
|
|
|
248
248
|
* @throws {RequiredError}
|
|
249
249
|
* @memberof CatalogApi
|
|
250
250
|
*/
|
|
251
|
-
searchCatalogItems(requestParameters: CatalogApiSearchCatalogItemsRequest, options?:
|
|
251
|
+
searchCatalogItems(requestParameters: CatalogApiSearchCatalogItemsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ItemSearchResults, any>>;
|
|
252
252
|
}
|
|
@@ -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
|
|
@@ -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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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,11 +20,11 @@ export interface BrandRefinement {
|
|
|
20
20
|
* @type {number}
|
|
21
21
|
* @memberof BrandRefinement
|
|
22
22
|
*/
|
|
23
|
-
numberOfResults: number;
|
|
23
|
+
'numberOfResults': number;
|
|
24
24
|
/**
|
|
25
25
|
* Brand name. For display and can be used as a search refinement.
|
|
26
26
|
* @type {string}
|
|
27
27
|
* @memberof BrandRefinement
|
|
28
28
|
*/
|
|
29
|
-
brandName: string;
|
|
29
|
+
'brandName': string;
|
|
30
30
|
}
|
|
@@ -20,17 +20,17 @@ export interface ClassificationRefinement {
|
|
|
20
20
|
* @type {number}
|
|
21
21
|
* @memberof ClassificationRefinement
|
|
22
22
|
*/
|
|
23
|
-
numberOfResults: number;
|
|
23
|
+
'numberOfResults': number;
|
|
24
24
|
/**
|
|
25
25
|
* Display name for the classification.
|
|
26
26
|
* @type {string}
|
|
27
27
|
* @memberof ClassificationRefinement
|
|
28
28
|
*/
|
|
29
|
-
displayName: string;
|
|
29
|
+
'displayName': string;
|
|
30
30
|
/**
|
|
31
31
|
* Identifier for the classification that can be used for search refinement purposes.
|
|
32
32
|
* @type {string}
|
|
33
33
|
* @memberof ClassificationRefinement
|
|
34
34
|
*/
|
|
35
|
-
classificationId: string;
|
|
35
|
+
'classificationId': string;
|
|
36
36
|
}
|
|
@@ -12,19 +12,19 @@
|
|
|
12
12
|
/**
|
|
13
13
|
* Individual dimension value of an Amazon catalog item or item package.
|
|
14
14
|
* @export
|
|
15
|
-
* @interface
|
|
15
|
+
* @interface Dimension
|
|
16
16
|
*/
|
|
17
|
-
export interface
|
|
17
|
+
export interface Dimension {
|
|
18
18
|
/**
|
|
19
19
|
* Measurement unit of the dimension value.
|
|
20
20
|
* @type {string}
|
|
21
|
-
* @memberof
|
|
21
|
+
* @memberof Dimension
|
|
22
22
|
*/
|
|
23
|
-
unit?: string;
|
|
23
|
+
'unit'?: string;
|
|
24
24
|
/**
|
|
25
25
|
* Numeric dimension value.
|
|
26
26
|
* @type {number}
|
|
27
|
-
* @memberof
|
|
27
|
+
* @memberof Dimension
|
|
28
28
|
*/
|
|
29
|
-
value?: number;
|
|
29
|
+
'value'?: number;
|
|
30
30
|
}
|
|
@@ -9,35 +9,35 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import {
|
|
12
|
+
import { Dimension } from './dimension';
|
|
13
13
|
/**
|
|
14
14
|
* Dimensions of an Amazon catalog item or item in its packaging.
|
|
15
15
|
* @export
|
|
16
|
-
* @interface
|
|
16
|
+
* @interface Dimensions
|
|
17
17
|
*/
|
|
18
|
-
export interface
|
|
18
|
+
export interface Dimensions {
|
|
19
19
|
/**
|
|
20
20
|
*
|
|
21
|
-
* @type {
|
|
22
|
-
* @memberof
|
|
21
|
+
* @type {Dimension}
|
|
22
|
+
* @memberof Dimensions
|
|
23
23
|
*/
|
|
24
|
-
height?:
|
|
24
|
+
'height'?: Dimension;
|
|
25
25
|
/**
|
|
26
26
|
*
|
|
27
|
-
* @type {
|
|
28
|
-
* @memberof
|
|
27
|
+
* @type {Dimension}
|
|
28
|
+
* @memberof Dimensions
|
|
29
29
|
*/
|
|
30
|
-
length?:
|
|
30
|
+
'length'?: Dimension;
|
|
31
31
|
/**
|
|
32
32
|
*
|
|
33
|
-
* @type {
|
|
34
|
-
* @memberof
|
|
33
|
+
* @type {Dimension}
|
|
34
|
+
* @memberof Dimensions
|
|
35
35
|
*/
|
|
36
|
-
weight?:
|
|
36
|
+
'weight'?: Dimension;
|
|
37
37
|
/**
|
|
38
38
|
*
|
|
39
|
-
* @type {
|
|
40
|
-
* @memberof
|
|
39
|
+
* @type {Dimension}
|
|
40
|
+
* @memberof Dimensions
|
|
41
41
|
*/
|
|
42
|
-
width?:
|
|
42
|
+
'width'?: Dimension;
|
|
43
43
|
}
|