@sp-api-sdk/catalog-items-api-2020-12-01
Advanced tools
Comparing version 1.7.4 to 1.7.5
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const tslib_1 = require("tslib"); | ||
tslib_1.__exportStar(require("./src/client"), exports); | ||
tslib_1.__exportStar(require("./src/error"), exports); | ||
tslib_1.__exportStar(require("./src/api-model/models"), exports); | ||
(0, tslib_1.__exportStar)(require("./src/client"), exports); | ||
(0, tslib_1.__exportStar)(require("./src/error"), exports); | ||
(0, tslib_1.__exportStar)(require("./src/api-model/models"), exports); |
@@ -17,2 +17,2 @@ "use strict"; | ||
const tslib_1 = require("tslib"); | ||
tslib_1.__exportStar(require("./api/catalog-api"), exports); | ||
(0, tslib_1.__exportStar)(require("./api/catalog-api"), exports); |
@@ -18,3 +18,3 @@ "use strict"; | ||
const tslib_1 = require("tslib"); | ||
const axios_1 = tslib_1.__importDefault(require("axios")); | ||
const axios_1 = (0, tslib_1.__importDefault)(require("axios")); | ||
// Some imports not used depending on template conditions | ||
@@ -42,5 +42,5 @@ // @ts-ignore | ||
// verify required parameter 'asin' is not null or undefined | ||
common_1.assertParamExists('getCatalogItem', 'asin', asin); | ||
(0, common_1.assertParamExists)('getCatalogItem', 'asin', asin); | ||
// verify required parameter 'marketplaceIds' is not null or undefined | ||
common_1.assertParamExists('getCatalogItem', 'marketplaceIds', marketplaceIds); | ||
(0, common_1.assertParamExists)('getCatalogItem', 'marketplaceIds', marketplaceIds); | ||
const localVarPath = `/catalog/2020-12-01/items/{asin}` | ||
@@ -66,7 +66,7 @@ .replace(`{${"asin"}}`, encodeURIComponent(String(asin))); | ||
} | ||
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); | ||
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query); | ||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; | ||
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }; | ||
return { | ||
url: common_1.toPathString(localVarUrlObj), | ||
url: (0, common_1.toPathString)(localVarUrlObj), | ||
options: localVarRequestOptions, | ||
@@ -91,5 +91,5 @@ }; | ||
// verify required parameter 'keywords' is not null or undefined | ||
common_1.assertParamExists('searchCatalogItems', 'keywords', keywords); | ||
(0, common_1.assertParamExists)('searchCatalogItems', 'keywords', keywords); | ||
// verify required parameter 'marketplaceIds' is not null or undefined | ||
common_1.assertParamExists('searchCatalogItems', 'marketplaceIds', marketplaceIds); | ||
(0, common_1.assertParamExists)('searchCatalogItems', 'marketplaceIds', marketplaceIds); | ||
const localVarPath = `/catalog/2020-12-01/items`; | ||
@@ -132,7 +132,7 @@ // use dummy base URL string because the URL constructor only accepts absolute URLs. | ||
} | ||
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); | ||
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query); | ||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; | ||
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }; | ||
return { | ||
url: common_1.toPathString(localVarUrlObj), | ||
url: (0, common_1.toPathString)(localVarUrlObj), | ||
options: localVarRequestOptions, | ||
@@ -149,3 +149,3 @@ }; | ||
const CatalogApiFp = function (configuration) { | ||
const localVarAxiosParamCreator = exports.CatalogApiAxiosParamCreator(configuration); | ||
const localVarAxiosParamCreator = (0, exports.CatalogApiAxiosParamCreator)(configuration); | ||
return { | ||
@@ -163,3 +163,3 @@ /** | ||
const localVarAxiosArgs = await localVarAxiosParamCreator.getCatalogItem(asin, marketplaceIds, includedData, locale, options); | ||
return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration); | ||
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration); | ||
}, | ||
@@ -182,3 +182,3 @@ /** | ||
const localVarAxiosArgs = await localVarAxiosParamCreator.searchCatalogItems(keywords, marketplaceIds, includedData, brandNames, classificationIds, pageSize, pageToken, keywordsLocale, locale, options); | ||
return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration); | ||
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration); | ||
}, | ||
@@ -193,3 +193,3 @@ }; | ||
const CatalogApiFactory = function (configuration, basePath, axios) { | ||
const localVarFp = exports.CatalogApiFp(configuration); | ||
const localVarFp = (0, exports.CatalogApiFp)(configuration); | ||
return { | ||
@@ -243,3 +243,3 @@ /** | ||
getCatalogItem(requestParameters, options) { | ||
return exports.CatalogApiFp(this.configuration).getCatalogItem(requestParameters.asin, requestParameters.marketplaceIds, requestParameters.includedData, requestParameters.locale, options).then((request) => request(this.axios, this.basePath)); | ||
return (0, exports.CatalogApiFp)(this.configuration).getCatalogItem(requestParameters.asin, requestParameters.marketplaceIds, requestParameters.includedData, requestParameters.locale, options).then((request) => request(this.axios, this.basePath)); | ||
} | ||
@@ -254,5 +254,5 @@ /** | ||
searchCatalogItems(requestParameters, options) { | ||
return exports.CatalogApiFp(this.configuration).searchCatalogItems(requestParameters.keywords, requestParameters.marketplaceIds, requestParameters.includedData, requestParameters.brandNames, requestParameters.classificationIds, requestParameters.pageSize, requestParameters.pageToken, requestParameters.keywordsLocale, requestParameters.locale, options).then((request) => request(this.axios, this.basePath)); | ||
return (0, exports.CatalogApiFp)(this.configuration).searchCatalogItems(requestParameters.keywords, requestParameters.marketplaceIds, requestParameters.includedData, requestParameters.brandNames, requestParameters.classificationIds, requestParameters.pageSize, requestParameters.pageToken, requestParameters.keywordsLocale, requestParameters.locale, options).then((request) => request(this.axios, this.basePath)); | ||
} | ||
} | ||
exports.CatalogApi = CatalogApi; |
@@ -20,3 +20,3 @@ "use strict"; | ||
// @ts-ignore | ||
const axios_1 = tslib_1.__importDefault(require("axios")); | ||
const axios_1 = (0, tslib_1.__importDefault)(require("axios")); | ||
exports.BASE_PATH = "https://sellingpartnerapi-na.amazon.com".replace(/\/+$/, ""); | ||
@@ -23,0 +23,0 @@ /** |
@@ -17,4 +17,4 @@ "use strict"; | ||
const tslib_1 = require("tslib"); | ||
tslib_1.__exportStar(require("./api"), exports); | ||
tslib_1.__exportStar(require("./configuration"), exports); | ||
tslib_1.__exportStar(require("./models"), exports); | ||
(0, tslib_1.__exportStar)(require("./api"), exports); | ||
(0, tslib_1.__exportStar)(require("./configuration"), exports); | ||
(0, tslib_1.__exportStar)(require("./models"), exports); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const tslib_1 = require("tslib"); | ||
tslib_1.__exportStar(require("./brand-refinement"), exports); | ||
tslib_1.__exportStar(require("./classification-refinement"), exports); | ||
tslib_1.__exportStar(require("./error-list"), exports); | ||
tslib_1.__exportStar(require("./item"), exports); | ||
tslib_1.__exportStar(require("./item-identifier"), exports); | ||
tslib_1.__exportStar(require("./item-identifiers-by-marketplace"), exports); | ||
tslib_1.__exportStar(require("./item-image"), exports); | ||
tslib_1.__exportStar(require("./item-images-by-marketplace"), exports); | ||
tslib_1.__exportStar(require("./item-product-type-by-marketplace"), exports); | ||
tslib_1.__exportStar(require("./item-sales-rank"), exports); | ||
tslib_1.__exportStar(require("./item-sales-ranks-by-marketplace"), exports); | ||
tslib_1.__exportStar(require("./item-search-results"), exports); | ||
tslib_1.__exportStar(require("./item-summary-by-marketplace"), exports); | ||
tslib_1.__exportStar(require("./item-variations-by-marketplace"), exports); | ||
tslib_1.__exportStar(require("./item-vendor-details-by-marketplace"), exports); | ||
tslib_1.__exportStar(require("./model-error"), exports); | ||
tslib_1.__exportStar(require("./pagination"), exports); | ||
tslib_1.__exportStar(require("./refinements"), exports); | ||
(0, tslib_1.__exportStar)(require("./brand-refinement"), exports); | ||
(0, tslib_1.__exportStar)(require("./classification-refinement"), exports); | ||
(0, tslib_1.__exportStar)(require("./error-list"), exports); | ||
(0, tslib_1.__exportStar)(require("./item"), exports); | ||
(0, tslib_1.__exportStar)(require("./item-identifier"), exports); | ||
(0, tslib_1.__exportStar)(require("./item-identifiers-by-marketplace"), exports); | ||
(0, tslib_1.__exportStar)(require("./item-image"), exports); | ||
(0, tslib_1.__exportStar)(require("./item-images-by-marketplace"), exports); | ||
(0, tslib_1.__exportStar)(require("./item-product-type-by-marketplace"), exports); | ||
(0, tslib_1.__exportStar)(require("./item-sales-rank"), exports); | ||
(0, tslib_1.__exportStar)(require("./item-sales-ranks-by-marketplace"), exports); | ||
(0, tslib_1.__exportStar)(require("./item-search-results"), exports); | ||
(0, tslib_1.__exportStar)(require("./item-summary-by-marketplace"), exports); | ||
(0, tslib_1.__exportStar)(require("./item-variations-by-marketplace"), exports); | ||
(0, tslib_1.__exportStar)(require("./item-vendor-details-by-marketplace"), exports); | ||
(0, tslib_1.__exportStar)(require("./model-error"), exports); | ||
(0, tslib_1.__exportStar)(require("./pagination"), exports); | ||
(0, tslib_1.__exportStar)(require("./refinements"), exports); |
@@ -31,3 +31,3 @@ "use strict"; | ||
} | ||
const axiosInstance = common_1.createAxiosInstance(axiosParameters); | ||
const axiosInstance = (0, common_1.createAxiosInstance)(axiosParameters); | ||
const configuration = new api_model_1.Configuration(); | ||
@@ -34,0 +34,0 @@ const environment = parameters.sandbox ? 'sandbox' : 'production'; |
@@ -5,3 +5,3 @@ { | ||
"description": "The Selling Partner API for Catalog Items provides programmatic access to information about items in the Amazon catalog. For more information, see the Catalog Items API Use Case Guide.", | ||
"version": "1.7.4", | ||
"version": "1.7.5", | ||
"main": "dist/cjs/index.js", | ||
@@ -18,3 +18,4 @@ "module": "dist/es/index.js", | ||
"files": [ | ||
"dist" | ||
"dist/**/*.js", | ||
"dist/**/*.d.ts" | ||
], | ||
@@ -30,4 +31,4 @@ "scripts": { | ||
"dependencies": { | ||
"@sp-api-sdk/auth": "^1.9.0", | ||
"@sp-api-sdk/common": "^1.7.1", | ||
"@sp-api-sdk/auth": "^1.9.1", | ||
"@sp-api-sdk/common": "^1.7.2", | ||
"axios": "^0.21.1" | ||
@@ -54,3 +55,3 @@ }, | ||
], | ||
"gitHead": "ccc62c529fc5f4525803ade1bbabdfc5aafc561f" | ||
"gitHead": "dc4286920dc77e99d6ad71f71bcb78ae22b9ab06" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
158809
87
Updated@sp-api-sdk/auth@^1.9.1
Updated@sp-api-sdk/common@^1.7.2