@sp-api-sdk/shipping-api-v2 2.1.4 → 2.1.5
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/api-model/api/shipping-api.js +0 -89
- package/dist/cjs/api-model/base.js +0 -19
- package/dist/cjs/api-model/common.js +0 -37
- package/dist/cjs/api-model/configuration.js +0 -17
- package/dist/cjs/api-model/models/access-point-type.js +0 -2
- package/dist/cjs/api-model/models/account-status.js +0 -2
- package/dist/cjs/api-model/models/account-type.js +0 -2
- package/dist/cjs/api-model/models/channel-type.js +0 -2
- package/dist/cjs/api-model/models/claim-reason.js +0 -2
- package/dist/cjs/api-model/models/detail-codes.js +0 -2
- package/dist/cjs/api-model/models/document-format.js +0 -2
- package/dist/cjs/api-model/models/document-type.js +0 -2
- package/dist/cjs/api-model/models/event-code.js +0 -2
- package/dist/cjs/api-model/models/generation-status.js +0 -2
- package/dist/cjs/api-model/models/ineligibility-reason-code.js +0 -2
- package/dist/cjs/api-model/models/input-type.js +0 -2
- package/dist/cjs/api-model/models/label-attribute.js +0 -2
- package/dist/cjs/api-model/models/ndr-action.js +0 -2
- package/dist/cjs/api-model/models/payment-type.js +0 -2
- package/dist/cjs/api-model/models/rate-item-id.js +0 -2
- package/dist/cjs/api-model/models/rate-item-type.js +0 -2
- package/dist/cjs/api-model/models/settlement-type.js +0 -2
- package/dist/cjs/api-model/models/shipment-type.js +0 -2
- package/dist/cjs/api-model/models/status.js +0 -2
- package/dist/cjs/api-model/models/tax-type.js +0 -2
- package/dist/es/api-model/api/shipping-api.js +0 -89
- package/dist/es/api-model/base.js +0 -19
- package/dist/es/api-model/common.js +0 -37
- package/dist/es/api-model/configuration.js +0 -17
- package/dist/es/api-model/models/access-point-type.js +0 -2
- package/dist/es/api-model/models/account-status.js +0 -2
- package/dist/es/api-model/models/account-type.js +0 -2
- package/dist/es/api-model/models/channel-type.js +0 -2
- package/dist/es/api-model/models/claim-reason.js +0 -2
- package/dist/es/api-model/models/detail-codes.js +0 -2
- package/dist/es/api-model/models/document-format.js +0 -2
- package/dist/es/api-model/models/document-type.js +0 -2
- package/dist/es/api-model/models/event-code.js +0 -2
- package/dist/es/api-model/models/generation-status.js +0 -2
- package/dist/es/api-model/models/ineligibility-reason-code.js +0 -2
- package/dist/es/api-model/models/input-type.js +0 -2
- package/dist/es/api-model/models/label-attribute.js +0 -2
- package/dist/es/api-model/models/ndr-action.js +0 -2
- package/dist/es/api-model/models/payment-type.js +0 -2
- package/dist/es/api-model/models/rate-item-id.js +0 -2
- package/dist/es/api-model/models/rate-item-type.js +0 -2
- package/dist/es/api-model/models/settlement-type.js +0 -2
- package/dist/es/api-model/models/shipment-type.js +0 -2
- package/dist/es/api-model/models/status.js +0 -2
- package/dist/es/api-model/models/tax-type.js +0 -2
- package/dist/types/api-model/api/shipping-api.d.ts +0 -235
- package/dist/types/api-model/base.d.ts +0 -24
- package/dist/types/api-model/common.d.ts +0 -37
- package/dist/types/api-model/configuration.d.ts +0 -17
- package/dist/types/api-model/models/access-point-details.d.ts +0 -4
- package/dist/types/api-model/models/access-point-type.d.ts +0 -2
- package/dist/types/api-model/models/access-point.d.ts +0 -31
- package/dist/types/api-model/models/accessibility-attributes.d.ts +0 -6
- package/dist/types/api-model/models/account-status.d.ts +0 -2
- package/dist/types/api-model/models/account-type.d.ts +0 -2
- package/dist/types/api-model/models/active-account.d.ts +0 -6
- package/dist/types/api-model/models/address.d.ts +0 -29
- package/dist/types/api-model/models/amazon-order-details.d.ts +0 -4
- package/dist/types/api-model/models/amazon-shipment-details.d.ts +0 -4
- package/dist/types/api-model/models/available-value-added-service-group.d.ts +0 -10
- package/dist/types/api-model/models/benefits.d.ts +0 -6
- package/dist/types/api-model/models/cancel-shipment-response.d.ts +0 -4
- package/dist/types/api-model/models/carrier-account-attribute.d.ts +0 -8
- package/dist/types/api-model/models/carrier-account-input.d.ts +0 -21
- package/dist/types/api-model/models/carrier-account.d.ts +0 -6
- package/dist/types/api-model/models/carrier.d.ts +0 -6
- package/dist/types/api-model/models/channel-details.d.ts +0 -17
- package/dist/types/api-model/models/channel-type.d.ts +0 -2
- package/dist/types/api-model/models/charge-component.d.ts +0 -9
- package/dist/types/api-model/models/claim-reason.d.ts +0 -2
- package/dist/types/api-model/models/client-reference-detail.d.ts +0 -6
- package/dist/types/api-model/models/collect-on-delivery.d.ts +0 -7
- package/dist/types/api-model/models/collection-forms-history-record.d.ts +0 -18
- package/dist/types/api-model/models/collections-form-document.d.ts +0 -6
- package/dist/types/api-model/models/create-claim-request.d.ts +0 -23
- package/dist/types/api-model/models/create-claim-response.d.ts +0 -4
- package/dist/types/api-model/models/currency.d.ts +0 -6
- package/dist/types/api-model/models/dangerous-goods-details.d.ts +0 -10
- package/dist/types/api-model/models/date-range.d.ts +0 -6
- package/dist/types/api-model/models/detail-codes.d.ts +0 -2
- package/dist/types/api-model/models/dimensions.d.ts +0 -10
- package/dist/types/api-model/models/direct-fulfillment-item-identifiers.d.ts +0 -6
- package/dist/types/api-model/models/direct-purchase-request.d.ts +0 -29
- package/dist/types/api-model/models/direct-purchase-response.d.ts +0 -7
- package/dist/types/api-model/models/direct-purchase-result.d.ts +0 -6
- package/dist/types/api-model/models/document-format.d.ts +0 -2
- package/dist/types/api-model/models/document-size.d.ts +0 -8
- package/dist/types/api-model/models/document-type.d.ts +0 -2
- package/dist/types/api-model/models/error-list.d.ts +0 -4
- package/dist/types/api-model/models/event-code.d.ts +0 -2
- package/dist/types/api-model/models/event.d.ts +0 -19
- package/dist/types/api-model/models/exception-operating-hours.d.ts +0 -12
- package/dist/types/api-model/models/excluded-benefit.d.ts +0 -6
- package/dist/types/api-model/models/generate-collection-form-request.d.ts +0 -11
- package/dist/types/api-model/models/generate-collection-form-response.d.ts +0 -7
- package/dist/types/api-model/models/generation-status.d.ts +0 -2
- package/dist/types/api-model/models/geocode.d.ts +0 -6
- package/dist/types/api-model/models/get-access-points-response.d.ts +0 -7
- package/dist/types/api-model/models/get-access-points-result.d.ts +0 -4
- package/dist/types/api-model/models/get-additional-inputs-response.d.ts +0 -4
- package/dist/types/api-model/models/get-carrier-account-form-inputs-response.d.ts +0 -4
- package/dist/types/api-model/models/get-carrier-accounts-request.d.ts +0 -4
- package/dist/types/api-model/models/get-carrier-accounts-response.d.ts +0 -4
- package/dist/types/api-model/models/get-collection-form-history-request.d.ts +0 -18
- package/dist/types/api-model/models/get-collection-form-history-response.d.ts +0 -6
- package/dist/types/api-model/models/get-collection-form-response.d.ts +0 -7
- package/dist/types/api-model/models/get-rates-request.d.ts +0 -52
- package/dist/types/api-model/models/get-rates-response.d.ts +0 -7
- package/dist/types/api-model/models/get-rates-result.d.ts +0 -8
- package/dist/types/api-model/models/get-shipment-documents-response.d.ts +0 -7
- package/dist/types/api-model/models/get-shipment-documents-result.d.ts +0 -14
- package/dist/types/api-model/models/get-tracking-response.d.ts +0 -7
- package/dist/types/api-model/models/get-tracking-result.d.ts +0 -15
- package/dist/types/api-model/models/get-unmanifested-shipments-request.d.ts +0 -4
- package/dist/types/api-model/models/get-unmanifested-shipments-response.d.ts +0 -4
- package/dist/types/api-model/models/goods-owner.d.ts +0 -4
- package/dist/types/api-model/models/ineligibility-reason-code.d.ts +0 -2
- package/dist/types/api-model/models/ineligibility-reason.d.ts +0 -9
- package/dist/types/api-model/models/ineligible-rate.d.ts +0 -12
- package/dist/types/api-model/models/input-type.d.ts +0 -2
- package/dist/types/api-model/models/invoice-details.d.ts +0 -6
- package/dist/types/api-model/models/item.d.ts +0 -44
- package/dist/types/api-model/models/label-attribute.d.ts +0 -2
- package/dist/types/api-model/models/link-carrier-account-request.d.ts +0 -10
- package/dist/types/api-model/models/link-carrier-account-response.d.ts +0 -9
- package/dist/types/api-model/models/linkable-account-type.d.ts +0 -9
- package/dist/types/api-model/models/linkable-carrier.d.ts +0 -6
- package/dist/types/api-model/models/liquid-volume.d.ts +0 -6
- package/dist/types/api-model/models/location.d.ts +0 -10
- package/dist/types/api-model/models/model-error.d.ts +0 -8
- package/dist/types/api-model/models/ndr-action.d.ts +0 -2
- package/dist/types/api-model/models/ndr-request-data.d.ts +0 -6
- package/dist/types/api-model/models/one-click-shipment-request.d.ts +0 -55
- package/dist/types/api-model/models/one-click-shipment-response.d.ts +0 -7
- package/dist/types/api-model/models/one-click-shipment-result.d.ts +0 -26
- package/dist/types/api-model/models/one-click-shipment-value-added-service.d.ts +0 -9
- package/dist/types/api-model/models/operating-hours.d.ts +0 -14
- package/dist/types/api-model/models/package-document-detail.d.ts +0 -8
- package/dist/types/api-model/models/package-document.d.ts +0 -14
- package/dist/types/api-model/models/package.d.ts +0 -27
- package/dist/types/api-model/models/payment-type.d.ts +0 -2
- package/dist/types/api-model/models/print-option.d.ts +0 -10
- package/dist/types/api-model/models/promise.d.ts +0 -12
- package/dist/types/api-model/models/purchase-shipment-request.d.ts +0 -15
- package/dist/types/api-model/models/purchase-shipment-response.d.ts +0 -7
- package/dist/types/api-model/models/purchase-shipment-result.d.ts +0 -16
- package/dist/types/api-model/models/rate-item-id.d.ts +0 -2
- package/dist/types/api-model/models/rate-item-type.d.ts +0 -2
- package/dist/types/api-model/models/rate-item.d.ts +0 -19
- package/dist/types/api-model/models/rate.d.ts +0 -45
- package/dist/types/api-model/models/requested-document-specification.d.ts +0 -25
- package/dist/types/api-model/models/requested-label-customization.d.ts +0 -4
- package/dist/types/api-model/models/requested-value-added-service.d.ts +0 -4
- package/dist/types/api-model/models/service-selection.d.ts +0 -4
- package/dist/types/api-model/models/service.d.ts +0 -6
- package/dist/types/api-model/models/settlement-type.d.ts +0 -2
- package/dist/types/api-model/models/shipment-type.d.ts +0 -2
- package/dist/types/api-model/models/shipper-instruction.d.ts +0 -4
- package/dist/types/api-model/models/status.d.ts +0 -2
- package/dist/types/api-model/models/submit-ndr-feedback-request.d.ts +0 -14
- package/dist/types/api-model/models/supported-document-detail.d.ts +0 -9
- package/dist/types/api-model/models/supported-document-specification.d.ts +0 -14
- package/dist/types/api-model/models/tax-detail.d.ts +0 -9
- package/dist/types/api-model/models/tax-type.d.ts +0 -2
- package/dist/types/api-model/models/time-of-day.d.ts +0 -8
- package/dist/types/api-model/models/time-window.d.ts +0 -6
- package/dist/types/api-model/models/tracking-detail-codes.d.ts +0 -6
- package/dist/types/api-model/models/tracking-summary.d.ts +0 -12
- package/dist/types/api-model/models/unlink-carrier-account-request.d.ts +0 -6
- package/dist/types/api-model/models/unlink-carrier-account-response.d.ts +0 -4
- package/dist/types/api-model/models/unmanifested-carrier-information.d.ts +0 -8
- package/dist/types/api-model/models/unmanifested-shipment-location.d.ts +0 -9
- package/dist/types/api-model/models/validation-metadata.d.ts +0 -8
- package/dist/types/api-model/models/value-added-service-details.d.ts +0 -7
- package/dist/types/api-model/models/value-added-service.d.ts +0 -11
- package/dist/types/api-model/models/weight.d.ts +0 -6
- package/package.json +25 -4
|
@@ -25,7 +25,6 @@ const common_1 = require("../common");
|
|
|
25
25
|
const base_1 = require("../base");
|
|
26
26
|
/**
|
|
27
27
|
* ShippingApi - axios parameter creator
|
|
28
|
-
* @export
|
|
29
28
|
*/
|
|
30
29
|
const ShippingApiAxiosParamCreator = function (configuration) {
|
|
31
30
|
return {
|
|
@@ -755,7 +754,6 @@ const ShippingApiAxiosParamCreator = function (configuration) {
|
|
|
755
754
|
exports.ShippingApiAxiosParamCreator = ShippingApiAxiosParamCreator;
|
|
756
755
|
/**
|
|
757
756
|
* ShippingApi - functional programming interface
|
|
758
|
-
* @export
|
|
759
757
|
*/
|
|
760
758
|
const ShippingApiFp = function (configuration) {
|
|
761
759
|
const localVarAxiosParamCreator = (0, exports.ShippingApiAxiosParamCreator)(configuration);
|
|
@@ -1038,7 +1036,6 @@ const ShippingApiFp = function (configuration) {
|
|
|
1038
1036
|
exports.ShippingApiFp = ShippingApiFp;
|
|
1039
1037
|
/**
|
|
1040
1038
|
* ShippingApi - factory interface
|
|
1041
|
-
* @export
|
|
1042
1039
|
*/
|
|
1043
1040
|
const ShippingApiFactory = function (configuration, basePath, axios) {
|
|
1044
1041
|
const localVarFp = (0, exports.ShippingApiFp)(configuration);
|
|
@@ -1228,9 +1225,6 @@ const ShippingApiFactory = function (configuration, basePath, axios) {
|
|
|
1228
1225
|
exports.ShippingApiFactory = ShippingApiFactory;
|
|
1229
1226
|
/**
|
|
1230
1227
|
* ShippingApi - object-oriented interface
|
|
1231
|
-
* @export
|
|
1232
|
-
* @class ShippingApi
|
|
1233
|
-
* @extends {BaseAPI}
|
|
1234
1228
|
*/
|
|
1235
1229
|
class ShippingApi extends base_1.BaseAPI {
|
|
1236
1230
|
/**
|
|
@@ -1238,7 +1232,6 @@ class ShippingApi extends base_1.BaseAPI {
|
|
|
1238
1232
|
* @param {ShippingApiCancelShipmentRequest} requestParameters Request parameters.
|
|
1239
1233
|
* @param {*} [options] Override http request option.
|
|
1240
1234
|
* @throws {RequiredError}
|
|
1241
|
-
* @memberof ShippingApi
|
|
1242
1235
|
*/
|
|
1243
1236
|
cancelShipment(requestParameters, options) {
|
|
1244
1237
|
return (0, exports.ShippingApiFp)(this.configuration).cancelShipment(requestParameters.shipmentId, requestParameters.xAmznShippingBusinessId, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -1248,7 +1241,6 @@ class ShippingApi extends base_1.BaseAPI {
|
|
|
1248
1241
|
* @param {ShippingApiCreateClaimRequest} requestParameters Request parameters.
|
|
1249
1242
|
* @param {*} [options] Override http request option.
|
|
1250
1243
|
* @throws {RequiredError}
|
|
1251
|
-
* @memberof ShippingApi
|
|
1252
1244
|
*/
|
|
1253
1245
|
createClaim(requestParameters, options) {
|
|
1254
1246
|
return (0, exports.ShippingApiFp)(this.configuration).createClaim(requestParameters.body, requestParameters.xAmznShippingBusinessId, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -1258,7 +1250,6 @@ class ShippingApi extends base_1.BaseAPI {
|
|
|
1258
1250
|
* @param {ShippingApiDirectPurchaseShipmentRequest} requestParameters Request parameters.
|
|
1259
1251
|
* @param {*} [options] Override http request option.
|
|
1260
1252
|
* @throws {RequiredError}
|
|
1261
|
-
* @memberof ShippingApi
|
|
1262
1253
|
*/
|
|
1263
1254
|
directPurchaseShipment(requestParameters, options) {
|
|
1264
1255
|
return (0, exports.ShippingApiFp)(this.configuration).directPurchaseShipment(requestParameters.body, requestParameters.xAmznIdempotencyKey, requestParameters.locale, requestParameters.xAmznShippingBusinessId, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -1268,7 +1259,6 @@ class ShippingApi extends base_1.BaseAPI {
|
|
|
1268
1259
|
* @param {ShippingApiGenerateCollectionFormRequest} requestParameters Request parameters.
|
|
1269
1260
|
* @param {*} [options] Override http request option.
|
|
1270
1261
|
* @throws {RequiredError}
|
|
1271
|
-
* @memberof ShippingApi
|
|
1272
1262
|
*/
|
|
1273
1263
|
generateCollectionForm(requestParameters, options) {
|
|
1274
1264
|
return (0, exports.ShippingApiFp)(this.configuration).generateCollectionForm(requestParameters.body, requestParameters.xAmznIdempotencyKey, requestParameters.xAmznShippingBusinessId, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -1278,7 +1268,6 @@ class ShippingApi extends base_1.BaseAPI {
|
|
|
1278
1268
|
* @param {ShippingApiGetAccessPointsRequest} requestParameters Request parameters.
|
|
1279
1269
|
* @param {*} [options] Override http request option.
|
|
1280
1270
|
* @throws {RequiredError}
|
|
1281
|
-
* @memberof ShippingApi
|
|
1282
1271
|
*/
|
|
1283
1272
|
getAccessPoints(requestParameters, options) {
|
|
1284
1273
|
return (0, exports.ShippingApiFp)(this.configuration).getAccessPoints(requestParameters.accessPointTypes, requestParameters.countryCode, requestParameters.postalCode, requestParameters.xAmznShippingBusinessId, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -1288,7 +1277,6 @@ class ShippingApi extends base_1.BaseAPI {
|
|
|
1288
1277
|
* @param {ShippingApiGetAdditionalInputsRequest} requestParameters Request parameters.
|
|
1289
1278
|
* @param {*} [options] Override http request option.
|
|
1290
1279
|
* @throws {RequiredError}
|
|
1291
|
-
* @memberof ShippingApi
|
|
1292
1280
|
*/
|
|
1293
1281
|
getAdditionalInputs(requestParameters, options) {
|
|
1294
1282
|
return (0, exports.ShippingApiFp)(this.configuration).getAdditionalInputs(requestParameters.requestToken, requestParameters.rateId, requestParameters.xAmznShippingBusinessId, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -1298,7 +1286,6 @@ class ShippingApi extends base_1.BaseAPI {
|
|
|
1298
1286
|
* @param {ShippingApiGetCarrierAccountFormInputsRequest} requestParameters Request parameters.
|
|
1299
1287
|
* @param {*} [options] Override http request option.
|
|
1300
1288
|
* @throws {RequiredError}
|
|
1301
|
-
* @memberof ShippingApi
|
|
1302
1289
|
*/
|
|
1303
1290
|
getCarrierAccountFormInputs(requestParameters = {}, options) {
|
|
1304
1291
|
return (0, exports.ShippingApiFp)(this.configuration).getCarrierAccountFormInputs(requestParameters.xAmznShippingBusinessId, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -1308,7 +1295,6 @@ class ShippingApi extends base_1.BaseAPI {
|
|
|
1308
1295
|
* @param {ShippingApiGetCarrierAccountsRequest} requestParameters Request parameters.
|
|
1309
1296
|
* @param {*} [options] Override http request option.
|
|
1310
1297
|
* @throws {RequiredError}
|
|
1311
|
-
* @memberof ShippingApi
|
|
1312
1298
|
*/
|
|
1313
1299
|
getCarrierAccounts(requestParameters, options) {
|
|
1314
1300
|
return (0, exports.ShippingApiFp)(this.configuration).getCarrierAccounts(requestParameters.body, requestParameters.xAmznShippingBusinessId, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -1318,7 +1304,6 @@ class ShippingApi extends base_1.BaseAPI {
|
|
|
1318
1304
|
* @param {ShippingApiGetCollectionFormRequest} requestParameters Request parameters.
|
|
1319
1305
|
* @param {*} [options] Override http request option.
|
|
1320
1306
|
* @throws {RequiredError}
|
|
1321
|
-
* @memberof ShippingApi
|
|
1322
1307
|
*/
|
|
1323
1308
|
getCollectionForm(requestParameters, options) {
|
|
1324
1309
|
return (0, exports.ShippingApiFp)(this.configuration).getCollectionForm(requestParameters.collectionFormId, requestParameters.xAmznShippingBusinessId, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -1328,7 +1313,6 @@ class ShippingApi extends base_1.BaseAPI {
|
|
|
1328
1313
|
* @param {ShippingApiGetCollectionFormHistoryRequest} requestParameters Request parameters.
|
|
1329
1314
|
* @param {*} [options] Override http request option.
|
|
1330
1315
|
* @throws {RequiredError}
|
|
1331
|
-
* @memberof ShippingApi
|
|
1332
1316
|
*/
|
|
1333
1317
|
getCollectionFormHistory(requestParameters, options) {
|
|
1334
1318
|
return (0, exports.ShippingApiFp)(this.configuration).getCollectionFormHistory(requestParameters.body, requestParameters.xAmznShippingBusinessId, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -1338,7 +1322,6 @@ class ShippingApi extends base_1.BaseAPI {
|
|
|
1338
1322
|
* @param {ShippingApiGetRatesRequest} requestParameters Request parameters.
|
|
1339
1323
|
* @param {*} [options] Override http request option.
|
|
1340
1324
|
* @throws {RequiredError}
|
|
1341
|
-
* @memberof ShippingApi
|
|
1342
1325
|
*/
|
|
1343
1326
|
getRates(requestParameters, options) {
|
|
1344
1327
|
return (0, exports.ShippingApiFp)(this.configuration).getRates(requestParameters.body, requestParameters.xAmznShippingBusinessId, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -1348,7 +1331,6 @@ class ShippingApi extends base_1.BaseAPI {
|
|
|
1348
1331
|
* @param {ShippingApiGetShipmentDocumentsRequest} requestParameters Request parameters.
|
|
1349
1332
|
* @param {*} [options] Override http request option.
|
|
1350
1333
|
* @throws {RequiredError}
|
|
1351
|
-
* @memberof ShippingApi
|
|
1352
1334
|
*/
|
|
1353
1335
|
getShipmentDocuments(requestParameters, options) {
|
|
1354
1336
|
return (0, exports.ShippingApiFp)(this.configuration).getShipmentDocuments(requestParameters.shipmentId, requestParameters.packageClientReferenceId, requestParameters.format, requestParameters.dpi, requestParameters.xAmznShippingBusinessId, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -1358,7 +1340,6 @@ class ShippingApi extends base_1.BaseAPI {
|
|
|
1358
1340
|
* @param {ShippingApiGetTrackingRequest} requestParameters Request parameters.
|
|
1359
1341
|
* @param {*} [options] Override http request option.
|
|
1360
1342
|
* @throws {RequiredError}
|
|
1361
|
-
* @memberof ShippingApi
|
|
1362
1343
|
*/
|
|
1363
1344
|
getTracking(requestParameters, options) {
|
|
1364
1345
|
return (0, exports.ShippingApiFp)(this.configuration).getTracking(requestParameters.trackingId, requestParameters.carrierId, requestParameters.xAmznShippingBusinessId, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -1368,7 +1349,6 @@ class ShippingApi extends base_1.BaseAPI {
|
|
|
1368
1349
|
* @param {ShippingApiGetUnmanifestedShipmentsRequest} requestParameters Request parameters.
|
|
1369
1350
|
* @param {*} [options] Override http request option.
|
|
1370
1351
|
* @throws {RequiredError}
|
|
1371
|
-
* @memberof ShippingApi
|
|
1372
1352
|
*/
|
|
1373
1353
|
getUnmanifestedShipments(requestParameters, options) {
|
|
1374
1354
|
return (0, exports.ShippingApiFp)(this.configuration).getUnmanifestedShipments(requestParameters.body, requestParameters.xAmznShippingBusinessId, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -1378,7 +1358,6 @@ class ShippingApi extends base_1.BaseAPI {
|
|
|
1378
1358
|
* @param {ShippingApiLinkCarrierAccountRequest} requestParameters Request parameters.
|
|
1379
1359
|
* @param {*} [options] Override http request option.
|
|
1380
1360
|
* @throws {RequiredError}
|
|
1381
|
-
* @memberof ShippingApi
|
|
1382
1361
|
*/
|
|
1383
1362
|
linkCarrierAccount(requestParameters, options) {
|
|
1384
1363
|
return (0, exports.ShippingApiFp)(this.configuration).linkCarrierAccount(requestParameters.carrierId, requestParameters.body, requestParameters.xAmznShippingBusinessId, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -1388,7 +1367,6 @@ class ShippingApi extends base_1.BaseAPI {
|
|
|
1388
1367
|
* @param {ShippingApiLinkCarrierAccount0Request} requestParameters Request parameters.
|
|
1389
1368
|
* @param {*} [options] Override http request option.
|
|
1390
1369
|
* @throws {RequiredError}
|
|
1391
|
-
* @memberof ShippingApi
|
|
1392
1370
|
*/
|
|
1393
1371
|
linkCarrierAccount_1(requestParameters, options) {
|
|
1394
1372
|
return (0, exports.ShippingApiFp)(this.configuration).linkCarrierAccount_1(requestParameters.carrierId, requestParameters.body, requestParameters.xAmznShippingBusinessId, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -1398,7 +1376,6 @@ class ShippingApi extends base_1.BaseAPI {
|
|
|
1398
1376
|
* @param {ShippingApiOneClickShipmentRequest} requestParameters Request parameters.
|
|
1399
1377
|
* @param {*} [options] Override http request option.
|
|
1400
1378
|
* @throws {RequiredError}
|
|
1401
|
-
* @memberof ShippingApi
|
|
1402
1379
|
*/
|
|
1403
1380
|
oneClickShipment(requestParameters, options) {
|
|
1404
1381
|
return (0, exports.ShippingApiFp)(this.configuration).oneClickShipment(requestParameters.body, requestParameters.xAmznShippingBusinessId, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -1408,7 +1385,6 @@ class ShippingApi extends base_1.BaseAPI {
|
|
|
1408
1385
|
* @param {ShippingApiPurchaseShipmentRequest} requestParameters Request parameters.
|
|
1409
1386
|
* @param {*} [options] Override http request option.
|
|
1410
1387
|
* @throws {RequiredError}
|
|
1411
|
-
* @memberof ShippingApi
|
|
1412
1388
|
*/
|
|
1413
1389
|
purchaseShipment(requestParameters, options) {
|
|
1414
1390
|
return (0, exports.ShippingApiFp)(this.configuration).purchaseShipment(requestParameters.body, requestParameters.xAmznIdempotencyKey, requestParameters.xAmznShippingBusinessId, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -1418,7 +1394,6 @@ class ShippingApi extends base_1.BaseAPI {
|
|
|
1418
1394
|
* @param {ShippingApiSubmitNdrFeedbackRequest} requestParameters Request parameters.
|
|
1419
1395
|
* @param {*} [options] Override http request option.
|
|
1420
1396
|
* @throws {RequiredError}
|
|
1421
|
-
* @memberof ShippingApi
|
|
1422
1397
|
*/
|
|
1423
1398
|
submitNdrFeedback(requestParameters, options) {
|
|
1424
1399
|
return (0, exports.ShippingApiFp)(this.configuration).submitNdrFeedback(requestParameters.body, requestParameters.xAmznShippingBusinessId, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -1428,16 +1403,12 @@ class ShippingApi extends base_1.BaseAPI {
|
|
|
1428
1403
|
* @param {ShippingApiUnlinkCarrierAccountRequest} requestParameters Request parameters.
|
|
1429
1404
|
* @param {*} [options] Override http request option.
|
|
1430
1405
|
* @throws {RequiredError}
|
|
1431
|
-
* @memberof ShippingApi
|
|
1432
1406
|
*/
|
|
1433
1407
|
unlinkCarrierAccount(requestParameters, options) {
|
|
1434
1408
|
return (0, exports.ShippingApiFp)(this.configuration).unlinkCarrierAccount(requestParameters.carrierId, requestParameters.body, requestParameters.xAmznShippingBusinessId, options).then((request) => request(this.axios, this.basePath));
|
|
1435
1409
|
}
|
|
1436
1410
|
}
|
|
1437
1411
|
exports.ShippingApi = ShippingApi;
|
|
1438
|
-
/**
|
|
1439
|
-
* @export
|
|
1440
|
-
*/
|
|
1441
1412
|
exports.CancelShipmentXAmznShippingBusinessIdEnum = {
|
|
1442
1413
|
AmazonShippingUs: 'AmazonShipping_US',
|
|
1443
1414
|
AmazonShippingIn: 'AmazonShipping_IN',
|
|
@@ -1450,9 +1421,6 @@ exports.CancelShipmentXAmznShippingBusinessIdEnum = {
|
|
|
1450
1421
|
AmazonShippingFr: 'AmazonShipping_FR',
|
|
1451
1422
|
AmazonShippingJp: 'AmazonShipping_JP'
|
|
1452
1423
|
};
|
|
1453
|
-
/**
|
|
1454
|
-
* @export
|
|
1455
|
-
*/
|
|
1456
1424
|
exports.CreateClaimXAmznShippingBusinessIdEnum = {
|
|
1457
1425
|
AmazonShippingUs: 'AmazonShipping_US',
|
|
1458
1426
|
AmazonShippingIn: 'AmazonShipping_IN',
|
|
@@ -1465,9 +1433,6 @@ exports.CreateClaimXAmznShippingBusinessIdEnum = {
|
|
|
1465
1433
|
AmazonShippingFr: 'AmazonShipping_FR',
|
|
1466
1434
|
AmazonShippingJp: 'AmazonShipping_JP'
|
|
1467
1435
|
};
|
|
1468
|
-
/**
|
|
1469
|
-
* @export
|
|
1470
|
-
*/
|
|
1471
1436
|
exports.DirectPurchaseShipmentXAmznShippingBusinessIdEnum = {
|
|
1472
1437
|
AmazonShippingUs: 'AmazonShipping_US',
|
|
1473
1438
|
AmazonShippingIn: 'AmazonShipping_IN',
|
|
@@ -1480,9 +1445,6 @@ exports.DirectPurchaseShipmentXAmznShippingBusinessIdEnum = {
|
|
|
1480
1445
|
AmazonShippingFr: 'AmazonShipping_FR',
|
|
1481
1446
|
AmazonShippingJp: 'AmazonShipping_JP'
|
|
1482
1447
|
};
|
|
1483
|
-
/**
|
|
1484
|
-
* @export
|
|
1485
|
-
*/
|
|
1486
1448
|
exports.GenerateCollectionFormXAmznShippingBusinessIdEnum = {
|
|
1487
1449
|
AmazonShippingUs: 'AmazonShipping_US',
|
|
1488
1450
|
AmazonShippingIn: 'AmazonShipping_IN',
|
|
@@ -1495,9 +1457,6 @@ exports.GenerateCollectionFormXAmznShippingBusinessIdEnum = {
|
|
|
1495
1457
|
AmazonShippingFr: 'AmazonShipping_FR',
|
|
1496
1458
|
AmazonShippingJp: 'AmazonShipping_JP'
|
|
1497
1459
|
};
|
|
1498
|
-
/**
|
|
1499
|
-
* @export
|
|
1500
|
-
*/
|
|
1501
1460
|
exports.GetAccessPointsAccessPointTypesEnum = {
|
|
1502
1461
|
Helix: 'HELIX',
|
|
1503
1462
|
CampusLocker: 'CAMPUS_LOCKER',
|
|
@@ -1508,9 +1467,6 @@ exports.GetAccessPointsAccessPointTypesEnum = {
|
|
|
1508
1467
|
_3P: '3P',
|
|
1509
1468
|
CampusRoom: 'CAMPUS_ROOM'
|
|
1510
1469
|
};
|
|
1511
|
-
/**
|
|
1512
|
-
* @export
|
|
1513
|
-
*/
|
|
1514
1470
|
exports.GetAccessPointsXAmznShippingBusinessIdEnum = {
|
|
1515
1471
|
AmazonShippingUs: 'AmazonShipping_US',
|
|
1516
1472
|
AmazonShippingIn: 'AmazonShipping_IN',
|
|
@@ -1523,9 +1479,6 @@ exports.GetAccessPointsXAmznShippingBusinessIdEnum = {
|
|
|
1523
1479
|
AmazonShippingFr: 'AmazonShipping_FR',
|
|
1524
1480
|
AmazonShippingJp: 'AmazonShipping_JP'
|
|
1525
1481
|
};
|
|
1526
|
-
/**
|
|
1527
|
-
* @export
|
|
1528
|
-
*/
|
|
1529
1482
|
exports.GetAdditionalInputsXAmznShippingBusinessIdEnum = {
|
|
1530
1483
|
AmazonShippingUs: 'AmazonShipping_US',
|
|
1531
1484
|
AmazonShippingIn: 'AmazonShipping_IN',
|
|
@@ -1538,9 +1491,6 @@ exports.GetAdditionalInputsXAmznShippingBusinessIdEnum = {
|
|
|
1538
1491
|
AmazonShippingFr: 'AmazonShipping_FR',
|
|
1539
1492
|
AmazonShippingJp: 'AmazonShipping_JP'
|
|
1540
1493
|
};
|
|
1541
|
-
/**
|
|
1542
|
-
* @export
|
|
1543
|
-
*/
|
|
1544
1494
|
exports.GetCarrierAccountFormInputsXAmznShippingBusinessIdEnum = {
|
|
1545
1495
|
AmazonShippingUs: 'AmazonShipping_US',
|
|
1546
1496
|
AmazonShippingIn: 'AmazonShipping_IN',
|
|
@@ -1553,9 +1503,6 @@ exports.GetCarrierAccountFormInputsXAmznShippingBusinessIdEnum = {
|
|
|
1553
1503
|
AmazonShippingFr: 'AmazonShipping_FR',
|
|
1554
1504
|
AmazonShippingJp: 'AmazonShipping_JP'
|
|
1555
1505
|
};
|
|
1556
|
-
/**
|
|
1557
|
-
* @export
|
|
1558
|
-
*/
|
|
1559
1506
|
exports.GetCarrierAccountsXAmznShippingBusinessIdEnum = {
|
|
1560
1507
|
AmazonShippingUs: 'AmazonShipping_US',
|
|
1561
1508
|
AmazonShippingIn: 'AmazonShipping_IN',
|
|
@@ -1568,9 +1515,6 @@ exports.GetCarrierAccountsXAmznShippingBusinessIdEnum = {
|
|
|
1568
1515
|
AmazonShippingFr: 'AmazonShipping_FR',
|
|
1569
1516
|
AmazonShippingJp: 'AmazonShipping_JP'
|
|
1570
1517
|
};
|
|
1571
|
-
/**
|
|
1572
|
-
* @export
|
|
1573
|
-
*/
|
|
1574
1518
|
exports.GetCollectionFormXAmznShippingBusinessIdEnum = {
|
|
1575
1519
|
AmazonShippingUs: 'AmazonShipping_US',
|
|
1576
1520
|
AmazonShippingIn: 'AmazonShipping_IN',
|
|
@@ -1583,9 +1527,6 @@ exports.GetCollectionFormXAmznShippingBusinessIdEnum = {
|
|
|
1583
1527
|
AmazonShippingFr: 'AmazonShipping_FR',
|
|
1584
1528
|
AmazonShippingJp: 'AmazonShipping_JP'
|
|
1585
1529
|
};
|
|
1586
|
-
/**
|
|
1587
|
-
* @export
|
|
1588
|
-
*/
|
|
1589
1530
|
exports.GetCollectionFormHistoryXAmznShippingBusinessIdEnum = {
|
|
1590
1531
|
AmazonShippingUs: 'AmazonShipping_US',
|
|
1591
1532
|
AmazonShippingIn: 'AmazonShipping_IN',
|
|
@@ -1598,9 +1539,6 @@ exports.GetCollectionFormHistoryXAmznShippingBusinessIdEnum = {
|
|
|
1598
1539
|
AmazonShippingFr: 'AmazonShipping_FR',
|
|
1599
1540
|
AmazonShippingJp: 'AmazonShipping_JP'
|
|
1600
1541
|
};
|
|
1601
|
-
/**
|
|
1602
|
-
* @export
|
|
1603
|
-
*/
|
|
1604
1542
|
exports.GetRatesXAmznShippingBusinessIdEnum = {
|
|
1605
1543
|
AmazonShippingUs: 'AmazonShipping_US',
|
|
1606
1544
|
AmazonShippingIn: 'AmazonShipping_IN',
|
|
@@ -1613,9 +1551,6 @@ exports.GetRatesXAmznShippingBusinessIdEnum = {
|
|
|
1613
1551
|
AmazonShippingFr: 'AmazonShipping_FR',
|
|
1614
1552
|
AmazonShippingJp: 'AmazonShipping_JP'
|
|
1615
1553
|
};
|
|
1616
|
-
/**
|
|
1617
|
-
* @export
|
|
1618
|
-
*/
|
|
1619
1554
|
exports.GetShipmentDocumentsXAmznShippingBusinessIdEnum = {
|
|
1620
1555
|
AmazonShippingUs: 'AmazonShipping_US',
|
|
1621
1556
|
AmazonShippingIn: 'AmazonShipping_IN',
|
|
@@ -1628,9 +1563,6 @@ exports.GetShipmentDocumentsXAmznShippingBusinessIdEnum = {
|
|
|
1628
1563
|
AmazonShippingFr: 'AmazonShipping_FR',
|
|
1629
1564
|
AmazonShippingJp: 'AmazonShipping_JP'
|
|
1630
1565
|
};
|
|
1631
|
-
/**
|
|
1632
|
-
* @export
|
|
1633
|
-
*/
|
|
1634
1566
|
exports.GetTrackingXAmznShippingBusinessIdEnum = {
|
|
1635
1567
|
AmazonShippingUs: 'AmazonShipping_US',
|
|
1636
1568
|
AmazonShippingIn: 'AmazonShipping_IN',
|
|
@@ -1643,9 +1575,6 @@ exports.GetTrackingXAmznShippingBusinessIdEnum = {
|
|
|
1643
1575
|
AmazonShippingFr: 'AmazonShipping_FR',
|
|
1644
1576
|
AmazonShippingJp: 'AmazonShipping_JP'
|
|
1645
1577
|
};
|
|
1646
|
-
/**
|
|
1647
|
-
* @export
|
|
1648
|
-
*/
|
|
1649
1578
|
exports.GetUnmanifestedShipmentsXAmznShippingBusinessIdEnum = {
|
|
1650
1579
|
AmazonShippingUs: 'AmazonShipping_US',
|
|
1651
1580
|
AmazonShippingIn: 'AmazonShipping_IN',
|
|
@@ -1658,9 +1587,6 @@ exports.GetUnmanifestedShipmentsXAmznShippingBusinessIdEnum = {
|
|
|
1658
1587
|
AmazonShippingFr: 'AmazonShipping_FR',
|
|
1659
1588
|
AmazonShippingJp: 'AmazonShipping_JP'
|
|
1660
1589
|
};
|
|
1661
|
-
/**
|
|
1662
|
-
* @export
|
|
1663
|
-
*/
|
|
1664
1590
|
exports.LinkCarrierAccountXAmznShippingBusinessIdEnum = {
|
|
1665
1591
|
AmazonShippingUs: 'AmazonShipping_US',
|
|
1666
1592
|
AmazonShippingIn: 'AmazonShipping_IN',
|
|
@@ -1673,9 +1599,6 @@ exports.LinkCarrierAccountXAmznShippingBusinessIdEnum = {
|
|
|
1673
1599
|
AmazonShippingFr: 'AmazonShipping_FR',
|
|
1674
1600
|
AmazonShippingJp: 'AmazonShipping_JP'
|
|
1675
1601
|
};
|
|
1676
|
-
/**
|
|
1677
|
-
* @export
|
|
1678
|
-
*/
|
|
1679
1602
|
exports.LinkCarrierAccount0XAmznShippingBusinessIdEnum = {
|
|
1680
1603
|
AmazonShippingUs: 'AmazonShipping_US',
|
|
1681
1604
|
AmazonShippingIn: 'AmazonShipping_IN',
|
|
@@ -1688,9 +1611,6 @@ exports.LinkCarrierAccount0XAmznShippingBusinessIdEnum = {
|
|
|
1688
1611
|
AmazonShippingFr: 'AmazonShipping_FR',
|
|
1689
1612
|
AmazonShippingJp: 'AmazonShipping_JP'
|
|
1690
1613
|
};
|
|
1691
|
-
/**
|
|
1692
|
-
* @export
|
|
1693
|
-
*/
|
|
1694
1614
|
exports.OneClickShipmentXAmznShippingBusinessIdEnum = {
|
|
1695
1615
|
AmazonShippingUs: 'AmazonShipping_US',
|
|
1696
1616
|
AmazonShippingIn: 'AmazonShipping_IN',
|
|
@@ -1703,9 +1623,6 @@ exports.OneClickShipmentXAmznShippingBusinessIdEnum = {
|
|
|
1703
1623
|
AmazonShippingFr: 'AmazonShipping_FR',
|
|
1704
1624
|
AmazonShippingJp: 'AmazonShipping_JP'
|
|
1705
1625
|
};
|
|
1706
|
-
/**
|
|
1707
|
-
* @export
|
|
1708
|
-
*/
|
|
1709
1626
|
exports.PurchaseShipmentXAmznShippingBusinessIdEnum = {
|
|
1710
1627
|
AmazonShippingUs: 'AmazonShipping_US',
|
|
1711
1628
|
AmazonShippingIn: 'AmazonShipping_IN',
|
|
@@ -1718,9 +1635,6 @@ exports.PurchaseShipmentXAmznShippingBusinessIdEnum = {
|
|
|
1718
1635
|
AmazonShippingFr: 'AmazonShipping_FR',
|
|
1719
1636
|
AmazonShippingJp: 'AmazonShipping_JP'
|
|
1720
1637
|
};
|
|
1721
|
-
/**
|
|
1722
|
-
* @export
|
|
1723
|
-
*/
|
|
1724
1638
|
exports.SubmitNdrFeedbackXAmznShippingBusinessIdEnum = {
|
|
1725
1639
|
AmazonShippingUs: 'AmazonShipping_US',
|
|
1726
1640
|
AmazonShippingIn: 'AmazonShipping_IN',
|
|
@@ -1733,9 +1647,6 @@ exports.SubmitNdrFeedbackXAmznShippingBusinessIdEnum = {
|
|
|
1733
1647
|
AmazonShippingFr: 'AmazonShipping_FR',
|
|
1734
1648
|
AmazonShippingJp: 'AmazonShipping_JP'
|
|
1735
1649
|
};
|
|
1736
|
-
/**
|
|
1737
|
-
* @export
|
|
1738
|
-
*/
|
|
1739
1650
|
exports.UnlinkCarrierAccountXAmznShippingBusinessIdEnum = {
|
|
1740
1651
|
AmazonShippingUs: 'AmazonShipping_US',
|
|
1741
1652
|
AmazonShippingIn: 'AmazonShipping_IN',
|
|
@@ -19,21 +19,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
19
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-eu.amazon.com".replace(/\/+$/, "");
|
|
22
|
-
/**
|
|
23
|
-
*
|
|
24
|
-
* @export
|
|
25
|
-
*/
|
|
26
22
|
exports.COLLECTION_FORMATS = {
|
|
27
23
|
csv: ",",
|
|
28
24
|
ssv: " ",
|
|
29
25
|
tsv: "\t",
|
|
30
26
|
pipes: "|",
|
|
31
27
|
};
|
|
32
|
-
/**
|
|
33
|
-
*
|
|
34
|
-
* @export
|
|
35
|
-
* @class BaseAPI
|
|
36
|
-
*/
|
|
37
28
|
class BaseAPI {
|
|
38
29
|
basePath;
|
|
39
30
|
axios;
|
|
@@ -49,12 +40,6 @@ class BaseAPI {
|
|
|
49
40
|
}
|
|
50
41
|
exports.BaseAPI = BaseAPI;
|
|
51
42
|
;
|
|
52
|
-
/**
|
|
53
|
-
*
|
|
54
|
-
* @export
|
|
55
|
-
* @class RequiredError
|
|
56
|
-
* @extends {Error}
|
|
57
|
-
*/
|
|
58
43
|
class RequiredError extends Error {
|
|
59
44
|
field;
|
|
60
45
|
constructor(field, msg) {
|
|
@@ -64,8 +49,4 @@ class RequiredError extends Error {
|
|
|
64
49
|
}
|
|
65
50
|
}
|
|
66
51
|
exports.RequiredError = RequiredError;
|
|
67
|
-
/**
|
|
68
|
-
*
|
|
69
|
-
* @export
|
|
70
|
-
*/
|
|
71
52
|
exports.operationServerMap = {};
|
|
@@ -15,15 +15,10 @@
|
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.createRequestFunction = exports.toPathString = exports.serializeDataIfNeeded = exports.setSearchParams = exports.setOAuthToObject = exports.setBearerAuthToObject = exports.setBasicAuthToObject = exports.setApiKeyToObject = exports.assertParamExists = exports.DUMMY_BASE_URL = void 0;
|
|
17
17
|
const base_1 = require("./base");
|
|
18
|
-
/**
|
|
19
|
-
*
|
|
20
|
-
* @export
|
|
21
|
-
*/
|
|
22
18
|
exports.DUMMY_BASE_URL = 'https://example.com';
|
|
23
19
|
/**
|
|
24
20
|
*
|
|
25
21
|
* @throws {RequiredError}
|
|
26
|
-
* @export
|
|
27
22
|
*/
|
|
28
23
|
const assertParamExists = function (functionName, paramName, paramValue) {
|
|
29
24
|
if (paramValue === null || paramValue === undefined) {
|
|
@@ -31,10 +26,6 @@ const assertParamExists = function (functionName, paramName, paramValue) {
|
|
|
31
26
|
}
|
|
32
27
|
};
|
|
33
28
|
exports.assertParamExists = assertParamExists;
|
|
34
|
-
/**
|
|
35
|
-
*
|
|
36
|
-
* @export
|
|
37
|
-
*/
|
|
38
29
|
const setApiKeyToObject = async function (object, keyParamName, configuration) {
|
|
39
30
|
if (configuration && configuration.apiKey) {
|
|
40
31
|
const localVarApiKeyValue = typeof configuration.apiKey === 'function'
|
|
@@ -44,20 +35,12 @@ const setApiKeyToObject = async function (object, keyParamName, configuration) {
|
|
|
44
35
|
}
|
|
45
36
|
};
|
|
46
37
|
exports.setApiKeyToObject = setApiKeyToObject;
|
|
47
|
-
/**
|
|
48
|
-
*
|
|
49
|
-
* @export
|
|
50
|
-
*/
|
|
51
38
|
const setBasicAuthToObject = function (object, configuration) {
|
|
52
39
|
if (configuration && (configuration.username || configuration.password)) {
|
|
53
40
|
object["auth"] = { username: configuration.username, password: configuration.password };
|
|
54
41
|
}
|
|
55
42
|
};
|
|
56
43
|
exports.setBasicAuthToObject = setBasicAuthToObject;
|
|
57
|
-
/**
|
|
58
|
-
*
|
|
59
|
-
* @export
|
|
60
|
-
*/
|
|
61
44
|
const setBearerAuthToObject = async function (object, configuration) {
|
|
62
45
|
if (configuration && configuration.accessToken) {
|
|
63
46
|
const accessToken = typeof configuration.accessToken === 'function'
|
|
@@ -67,10 +50,6 @@ const setBearerAuthToObject = async function (object, configuration) {
|
|
|
67
50
|
}
|
|
68
51
|
};
|
|
69
52
|
exports.setBearerAuthToObject = setBearerAuthToObject;
|
|
70
|
-
/**
|
|
71
|
-
*
|
|
72
|
-
* @export
|
|
73
|
-
*/
|
|
74
53
|
const setOAuthToObject = async function (object, name, scopes, configuration) {
|
|
75
54
|
if (configuration && configuration.accessToken) {
|
|
76
55
|
const localVarAccessTokenValue = typeof configuration.accessToken === 'function'
|
|
@@ -100,20 +79,12 @@ function setFlattenedQueryParams(urlSearchParams, parameter, key = "") {
|
|
|
100
79
|
}
|
|
101
80
|
}
|
|
102
81
|
}
|
|
103
|
-
/**
|
|
104
|
-
*
|
|
105
|
-
* @export
|
|
106
|
-
*/
|
|
107
82
|
const setSearchParams = function (url, ...objects) {
|
|
108
83
|
const searchParams = new URLSearchParams(url.search);
|
|
109
84
|
setFlattenedQueryParams(searchParams, objects);
|
|
110
85
|
url.search = searchParams.toString();
|
|
111
86
|
};
|
|
112
87
|
exports.setSearchParams = setSearchParams;
|
|
113
|
-
/**
|
|
114
|
-
*
|
|
115
|
-
* @export
|
|
116
|
-
*/
|
|
117
88
|
const serializeDataIfNeeded = function (value, requestOptions, configuration) {
|
|
118
89
|
const nonString = typeof value !== 'string';
|
|
119
90
|
const needsSerialization = nonString && configuration && configuration.isJsonMime
|
|
@@ -124,18 +95,10 @@ const serializeDataIfNeeded = function (value, requestOptions, configuration) {
|
|
|
124
95
|
: (value || "");
|
|
125
96
|
};
|
|
126
97
|
exports.serializeDataIfNeeded = serializeDataIfNeeded;
|
|
127
|
-
/**
|
|
128
|
-
*
|
|
129
|
-
* @export
|
|
130
|
-
*/
|
|
131
98
|
const toPathString = function (url) {
|
|
132
99
|
return url.pathname + url.search + url.hash;
|
|
133
100
|
};
|
|
134
101
|
exports.toPathString = toPathString;
|
|
135
|
-
/**
|
|
136
|
-
*
|
|
137
|
-
* @export
|
|
138
|
-
*/
|
|
139
102
|
const createRequestFunction = function (axiosArgs, globalAxios, BASE_PATH, configuration) {
|
|
140
103
|
return (axios = globalAxios, basePath = BASE_PATH) => {
|
|
141
104
|
const axiosRequestArgs = { ...axiosArgs.options, url: (axios.defaults.baseURL ? '' : configuration?.basePath ?? basePath) + axiosArgs.url };
|
|
@@ -18,49 +18,32 @@ class Configuration {
|
|
|
18
18
|
/**
|
|
19
19
|
* parameter for apiKey security
|
|
20
20
|
* @param name security name
|
|
21
|
-
* @memberof Configuration
|
|
22
21
|
*/
|
|
23
22
|
apiKey;
|
|
24
23
|
/**
|
|
25
24
|
* parameter for basic security
|
|
26
|
-
*
|
|
27
|
-
* @type {string}
|
|
28
|
-
* @memberof Configuration
|
|
29
25
|
*/
|
|
30
26
|
username;
|
|
31
27
|
/**
|
|
32
28
|
* parameter for basic security
|
|
33
|
-
*
|
|
34
|
-
* @type {string}
|
|
35
|
-
* @memberof Configuration
|
|
36
29
|
*/
|
|
37
30
|
password;
|
|
38
31
|
/**
|
|
39
32
|
* parameter for oauth2 security
|
|
40
33
|
* @param name security name
|
|
41
34
|
* @param scopes oauth2 scope
|
|
42
|
-
* @memberof Configuration
|
|
43
35
|
*/
|
|
44
36
|
accessToken;
|
|
45
37
|
/**
|
|
46
38
|
* override base path
|
|
47
|
-
*
|
|
48
|
-
* @type {string}
|
|
49
|
-
* @memberof Configuration
|
|
50
39
|
*/
|
|
51
40
|
basePath;
|
|
52
41
|
/**
|
|
53
42
|
* override server index
|
|
54
|
-
*
|
|
55
|
-
* @type {number}
|
|
56
|
-
* @memberof Configuration
|
|
57
43
|
*/
|
|
58
44
|
serverIndex;
|
|
59
45
|
/**
|
|
60
46
|
* base options for axios calls
|
|
61
|
-
*
|
|
62
|
-
* @type {any}
|
|
63
|
-
* @memberof Configuration
|
|
64
47
|
*/
|
|
65
48
|
baseOptions;
|
|
66
49
|
/**
|
|
@@ -16,8 +16,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
16
16
|
exports.AccessPointType = void 0;
|
|
17
17
|
/**
|
|
18
18
|
* The type of access point, like counter (HELIX), lockers, etc.
|
|
19
|
-
* @export
|
|
20
|
-
* @enum {string}
|
|
21
19
|
*/
|
|
22
20
|
exports.AccessPointType = {
|
|
23
21
|
Helix: 'HELIX',
|
|
@@ -16,8 +16,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
16
16
|
exports.ClaimReason = void 0;
|
|
17
17
|
/**
|
|
18
18
|
* The reason for which shipper is filing the claim for a particular shipment.
|
|
19
|
-
* @export
|
|
20
|
-
* @enum {string}
|
|
21
19
|
*/
|
|
22
20
|
exports.ClaimReason = {
|
|
23
21
|
LostInTransit: 'LOST_IN_TRANSIT',
|
|
@@ -16,8 +16,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
16
16
|
exports.DetailCodes = void 0;
|
|
17
17
|
/**
|
|
18
18
|
* A list of codes used to provide additional shipment information.
|
|
19
|
-
* @export
|
|
20
|
-
* @enum {string}
|
|
21
19
|
*/
|
|
22
20
|
exports.DetailCodes = {
|
|
23
21
|
BusinessClosed: 'BusinessClosed',
|