@sp-api-sdk/shipment-invoicing-api-v0
Advanced tools
Comparing version 1.8.0 to 1.8.1
"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/shipment-invoice-api"), exports); | ||
(0, tslib_1.__exportStar)(require("./api/shipment-invoice-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 | ||
@@ -39,3 +39,3 @@ // @ts-ignore | ||
// verify required parameter 'shipmentId' is not null or undefined | ||
common_1.assertParamExists('getInvoiceStatus', 'shipmentId', shipmentId); | ||
(0, common_1.assertParamExists)('getInvoiceStatus', 'shipmentId', shipmentId); | ||
const localVarPath = `/fba/outbound/brazil/v0/shipments/{shipmentId}/invoice/status` | ||
@@ -52,7 +52,7 @@ .replace(`{${"shipmentId"}}`, encodeURIComponent(String(shipmentId))); | ||
const localVarQueryParameter = {}; | ||
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, | ||
@@ -69,3 +69,3 @@ }; | ||
// verify required parameter 'shipmentId' is not null or undefined | ||
common_1.assertParamExists('getShipmentDetails', 'shipmentId', shipmentId); | ||
(0, common_1.assertParamExists)('getShipmentDetails', 'shipmentId', shipmentId); | ||
const localVarPath = `/fba/outbound/brazil/v0/shipments/{shipmentId}` | ||
@@ -82,7 +82,7 @@ .replace(`{${"shipmentId"}}`, encodeURIComponent(String(shipmentId))); | ||
const localVarQueryParameter = {}; | ||
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, | ||
@@ -100,5 +100,5 @@ }; | ||
// verify required parameter 'shipmentId' is not null or undefined | ||
common_1.assertParamExists('submitInvoice', 'shipmentId', shipmentId); | ||
(0, common_1.assertParamExists)('submitInvoice', 'shipmentId', shipmentId); | ||
// verify required parameter 'body' is not null or undefined | ||
common_1.assertParamExists('submitInvoice', 'body', body); | ||
(0, common_1.assertParamExists)('submitInvoice', 'body', body); | ||
const localVarPath = `/fba/outbound/brazil/v0/shipments/{shipmentId}/invoice` | ||
@@ -116,8 +116,8 @@ .replace(`{${"shipmentId"}}`, encodeURIComponent(String(shipmentId))); | ||
localVarHeaderParameter['Content-Type'] = 'application/json'; | ||
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 }; | ||
localVarRequestOptions.data = common_1.serializeDataIfNeeded(body, localVarRequestOptions, configuration); | ||
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration); | ||
return { | ||
url: common_1.toPathString(localVarUrlObj), | ||
url: (0, common_1.toPathString)(localVarUrlObj), | ||
options: localVarRequestOptions, | ||
@@ -134,3 +134,3 @@ }; | ||
const ShipmentInvoiceApiFp = function (configuration) { | ||
const localVarAxiosParamCreator = exports.ShipmentInvoiceApiAxiosParamCreator(configuration); | ||
const localVarAxiosParamCreator = (0, exports.ShipmentInvoiceApiAxiosParamCreator)(configuration); | ||
return { | ||
@@ -145,3 +145,3 @@ /** | ||
const localVarAxiosArgs = await localVarAxiosParamCreator.getInvoiceStatus(shipmentId, 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); | ||
}, | ||
@@ -156,3 +156,3 @@ /** | ||
const localVarAxiosArgs = await localVarAxiosParamCreator.getShipmentDetails(shipmentId, 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); | ||
}, | ||
@@ -168,3 +168,3 @@ /** | ||
const localVarAxiosArgs = await localVarAxiosParamCreator.submitInvoice(shipmentId, body, 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); | ||
}, | ||
@@ -179,3 +179,3 @@ }; | ||
const ShipmentInvoiceApiFactory = function (configuration, basePath, axios) { | ||
const localVarFp = exports.ShipmentInvoiceApiFp(configuration); | ||
const localVarFp = (0, exports.ShipmentInvoiceApiFp)(configuration); | ||
return { | ||
@@ -228,3 +228,3 @@ /** | ||
getInvoiceStatus(requestParameters, options) { | ||
return exports.ShipmentInvoiceApiFp(this.configuration).getInvoiceStatus(requestParameters.shipmentId, options).then((request) => request(this.axios, this.basePath)); | ||
return (0, exports.ShipmentInvoiceApiFp)(this.configuration).getInvoiceStatus(requestParameters.shipmentId, options).then((request) => request(this.axios, this.basePath)); | ||
} | ||
@@ -239,3 +239,3 @@ /** | ||
getShipmentDetails(requestParameters, options) { | ||
return exports.ShipmentInvoiceApiFp(this.configuration).getShipmentDetails(requestParameters.shipmentId, options).then((request) => request(this.axios, this.basePath)); | ||
return (0, exports.ShipmentInvoiceApiFp)(this.configuration).getShipmentDetails(requestParameters.shipmentId, options).then((request) => request(this.axios, this.basePath)); | ||
} | ||
@@ -250,5 +250,5 @@ /** | ||
submitInvoice(requestParameters, options) { | ||
return exports.ShipmentInvoiceApiFp(this.configuration).submitInvoice(requestParameters.shipmentId, requestParameters.body, options).then((request) => request(this.axios, this.basePath)); | ||
return (0, exports.ShipmentInvoiceApiFp)(this.configuration).submitInvoice(requestParameters.shipmentId, requestParameters.body, options).then((request) => request(this.axios, this.basePath)); | ||
} | ||
} | ||
exports.ShipmentInvoiceApi = ShipmentInvoiceApi; |
@@ -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 = "http://localhost".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("./address"), exports); | ||
tslib_1.__exportStar(require("./address-type-enum"), exports); | ||
tslib_1.__exportStar(require("./buyer-tax-info"), exports); | ||
tslib_1.__exportStar(require("./get-invoice-status-response"), exports); | ||
tslib_1.__exportStar(require("./get-shipment-details-response"), exports); | ||
tslib_1.__exportStar(require("./marketplace-tax-info"), exports); | ||
tslib_1.__exportStar(require("./model-error"), exports); | ||
tslib_1.__exportStar(require("./money"), exports); | ||
tslib_1.__exportStar(require("./shipment-detail"), exports); | ||
tslib_1.__exportStar(require("./shipment-invoice-status"), exports); | ||
tslib_1.__exportStar(require("./shipment-invoice-status-info"), exports); | ||
tslib_1.__exportStar(require("./shipment-invoice-status-response"), exports); | ||
tslib_1.__exportStar(require("./shipment-item"), exports); | ||
tslib_1.__exportStar(require("./submit-invoice-request"), exports); | ||
tslib_1.__exportStar(require("./submit-invoice-response"), exports); | ||
tslib_1.__exportStar(require("./tax-classification"), exports); | ||
(0, tslib_1.__exportStar)(require("./address"), exports); | ||
(0, tslib_1.__exportStar)(require("./address-type-enum"), exports); | ||
(0, tslib_1.__exportStar)(require("./buyer-tax-info"), exports); | ||
(0, tslib_1.__exportStar)(require("./get-invoice-status-response"), exports); | ||
(0, tslib_1.__exportStar)(require("./get-shipment-details-response"), exports); | ||
(0, tslib_1.__exportStar)(require("./marketplace-tax-info"), exports); | ||
(0, tslib_1.__exportStar)(require("./model-error"), exports); | ||
(0, tslib_1.__exportStar)(require("./money"), exports); | ||
(0, tslib_1.__exportStar)(require("./shipment-detail"), exports); | ||
(0, tslib_1.__exportStar)(require("./shipment-invoice-status"), exports); | ||
(0, tslib_1.__exportStar)(require("./shipment-invoice-status-info"), exports); | ||
(0, tslib_1.__exportStar)(require("./shipment-invoice-status-response"), exports); | ||
(0, tslib_1.__exportStar)(require("./shipment-item"), exports); | ||
(0, tslib_1.__exportStar)(require("./submit-invoice-request"), exports); | ||
(0, tslib_1.__exportStar)(require("./submit-invoice-response"), exports); | ||
(0, tslib_1.__exportStar)(require("./tax-classification"), exports); |
@@ -37,3 +37,3 @@ "use strict"; | ||
} | ||
const axiosInstance = common_1.createAxiosInstance(axiosParameters); | ||
const axiosInstance = (0, common_1.createAxiosInstance)(axiosParameters); | ||
const configuration = new api_model_1.Configuration(); | ||
@@ -40,0 +40,0 @@ const environment = parameters.sandbox ? 'sandbox' : 'production'; |
@@ -5,3 +5,3 @@ { | ||
"description": "The Selling Partner API for Shipment Invoicing helps you programmatically retrieve shipment invoice information in the Brazil marketplace for a selling partner’s Fulfillment by Amazon (FBA) orders.", | ||
"version": "1.8.0", | ||
"version": "1.8.1", | ||
"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
127524
81
Updated@sp-api-sdk/auth@^1.9.1
Updated@sp-api-sdk/common@^1.7.2