@sp-api-sdk/fba-inventory-api-v1
Advanced tools
Comparing version 1.8.4 to 1.8.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/fba-inventory-api"), exports); | ||
(0, tslib_1.__exportStar)(require("./api/fba-inventory-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 | ||
@@ -45,7 +45,7 @@ // @ts-ignore | ||
// verify required parameter 'granularityType' is not null or undefined | ||
common_1.assertParamExists('getInventorySummaries', 'granularityType', granularityType); | ||
(0, common_1.assertParamExists)('getInventorySummaries', 'granularityType', granularityType); | ||
// verify required parameter 'granularityId' is not null or undefined | ||
common_1.assertParamExists('getInventorySummaries', 'granularityId', granularityId); | ||
(0, common_1.assertParamExists)('getInventorySummaries', 'granularityId', granularityId); | ||
// verify required parameter 'marketplaceIds' is not null or undefined | ||
common_1.assertParamExists('getInventorySummaries', 'marketplaceIds', marketplaceIds); | ||
(0, common_1.assertParamExists)('getInventorySummaries', 'marketplaceIds', marketplaceIds); | ||
const localVarPath = `/fba/inventory/v1/summaries`; | ||
@@ -84,7 +84,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, | ||
@@ -101,3 +101,3 @@ }; | ||
const FbaInventoryApiFp = function (configuration) { | ||
const localVarAxiosParamCreator = exports.FbaInventoryApiAxiosParamCreator(configuration); | ||
const localVarAxiosParamCreator = (0, exports.FbaInventoryApiAxiosParamCreator)(configuration); | ||
return { | ||
@@ -118,3 +118,3 @@ /** | ||
const localVarAxiosArgs = await localVarAxiosParamCreator.getInventorySummaries(granularityType, granularityId, marketplaceIds, details, startDateTime, sellerSkus, nextToken, 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); | ||
}, | ||
@@ -129,3 +129,3 @@ }; | ||
const FbaInventoryApiFactory = function (configuration, basePath, axios) { | ||
const localVarFp = exports.FbaInventoryApiFp(configuration); | ||
const localVarFp = (0, exports.FbaInventoryApiFp)(configuration); | ||
return { | ||
@@ -165,5 +165,5 @@ /** | ||
getInventorySummaries(requestParameters, options) { | ||
return exports.FbaInventoryApiFp(this.configuration).getInventorySummaries(requestParameters.granularityType, requestParameters.granularityId, requestParameters.marketplaceIds, requestParameters.details, requestParameters.startDateTime, requestParameters.sellerSkus, requestParameters.nextToken, options).then((request) => request(this.axios, this.basePath)); | ||
return (0, exports.FbaInventoryApiFp)(this.configuration).getInventorySummaries(requestParameters.granularityType, requestParameters.granularityId, requestParameters.marketplaceIds, requestParameters.details, requestParameters.startDateTime, requestParameters.sellerSkus, requestParameters.nextToken, options).then((request) => request(this.axios, this.basePath)); | ||
} | ||
} | ||
exports.FbaInventoryApi = FbaInventoryApi; |
@@ -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("./get-inventory-summaries-response"), exports); | ||
tslib_1.__exportStar(require("./get-inventory-summaries-result"), exports); | ||
tslib_1.__exportStar(require("./granularity"), exports); | ||
tslib_1.__exportStar(require("./inventory-details"), exports); | ||
tslib_1.__exportStar(require("./inventory-summary"), exports); | ||
tslib_1.__exportStar(require("./model-error"), exports); | ||
tslib_1.__exportStar(require("./pagination"), exports); | ||
tslib_1.__exportStar(require("./researching-quantity"), exports); | ||
tslib_1.__exportStar(require("./researching-quantity-entry"), exports); | ||
tslib_1.__exportStar(require("./reserved-quantity"), exports); | ||
tslib_1.__exportStar(require("./unfulfillable-quantity"), exports); | ||
(0, tslib_1.__exportStar)(require("./get-inventory-summaries-response"), exports); | ||
(0, tslib_1.__exportStar)(require("./get-inventory-summaries-result"), exports); | ||
(0, tslib_1.__exportStar)(require("./granularity"), exports); | ||
(0, tslib_1.__exportStar)(require("./inventory-details"), exports); | ||
(0, tslib_1.__exportStar)(require("./inventory-summary"), exports); | ||
(0, tslib_1.__exportStar)(require("./model-error"), exports); | ||
(0, tslib_1.__exportStar)(require("./pagination"), exports); | ||
(0, tslib_1.__exportStar)(require("./researching-quantity"), exports); | ||
(0, tslib_1.__exportStar)(require("./researching-quantity-entry"), exports); | ||
(0, tslib_1.__exportStar)(require("./reserved-quantity"), exports); | ||
(0, tslib_1.__exportStar)(require("./unfulfillable-quantity"), exports); |
@@ -25,3 +25,3 @@ "use strict"; | ||
} | ||
const axiosInstance = common_1.createAxiosInstance(axiosParameters); | ||
const axiosInstance = (0, common_1.createAxiosInstance)(axiosParameters); | ||
const configuration = new api_model_1.Configuration(); | ||
@@ -28,0 +28,0 @@ const environment = parameters.sandbox ? 'sandbox' : 'production'; |
@@ -5,3 +5,3 @@ { | ||
"description": "The Selling Partner API for FBA Inventory lets you programmatically retrieve information about inventory in Amazon's fulfillment network. Today this API is available only in the North America region. In 2021 we plan to release this API in the Europe and Far East regions.", | ||
"version": "1.8.4", | ||
"version": "1.8.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" | ||
} |
104837
66
Updated@sp-api-sdk/auth@^1.9.1
Updated@sp-api-sdk/common@^1.7.2