@sp-api-sdk/amazon-warehousing-and-distribution-api-2024-05-09 4.0.0 → 4.0.2
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/amazon-warehousing-and-distribution-api.js +0 -41
- 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/carrier-code-type.js +0 -2
- package/dist/cjs/api-model/models/dimension-unit-of-measurement.js +0 -2
- package/dist/cjs/api-model/models/distribution-package-type.js +0 -2
- package/dist/cjs/api-model/models/inbound-eligibility-status.js +0 -2
- package/dist/cjs/api-model/models/inbound-shipment-status.js +0 -2
- package/dist/cjs/api-model/models/inbound-status.js +0 -2
- package/dist/cjs/api-model/models/inventory-unit-of-measurement.js +0 -2
- package/dist/cjs/api-model/models/label-owner.js +0 -2
- package/dist/cjs/api-model/models/label-status.js +0 -2
- package/dist/cjs/api-model/models/prep-category.js +0 -2
- package/dist/cjs/api-model/models/prep-owner.js +0 -2
- package/dist/cjs/api-model/models/volume-unit-of-measurement.js +0 -2
- package/dist/cjs/api-model/models/weight-unit-of-measurement.js +0 -2
- package/dist/es/api-model/api/amazon-warehousing-and-distribution-api.js +0 -41
- 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/carrier-code-type.js +0 -2
- package/dist/es/api-model/models/dimension-unit-of-measurement.js +0 -2
- package/dist/es/api-model/models/distribution-package-type.js +0 -2
- package/dist/es/api-model/models/inbound-eligibility-status.js +0 -2
- package/dist/es/api-model/models/inbound-shipment-status.js +0 -2
- package/dist/es/api-model/models/inbound-status.js +0 -2
- package/dist/es/api-model/models/inventory-unit-of-measurement.js +0 -2
- package/dist/es/api-model/models/label-owner.js +0 -2
- package/dist/es/api-model/models/label-status.js +0 -2
- package/dist/es/api-model/models/prep-category.js +0 -2
- package/dist/es/api-model/models/prep-owner.js +0 -2
- package/dist/es/api-model/models/volume-unit-of-measurement.js +0 -2
- package/dist/es/api-model/models/weight-unit-of-measurement.js +0 -2
- package/dist/types/api-model/api/amazon-warehousing-and-distribution-api.d.ts +0 -115
- 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/address.d.ts +0 -24
- package/dist/types/api-model/models/carrier-code-type.d.ts +0 -2
- package/dist/types/api-model/models/carrier-code.d.ts +0 -9
- package/dist/types/api-model/models/destination-details.d.ts +0 -11
- package/dist/types/api-model/models/dimension-unit-of-measurement.d.ts +0 -2
- package/dist/types/api-model/models/distribution-package-contents.d.ts +0 -6
- package/dist/types/api-model/models/distribution-package-quantity.d.ts +0 -9
- package/dist/types/api-model/models/distribution-package-type.d.ts +0 -2
- package/dist/types/api-model/models/distribution-package.d.ts +0 -17
- package/dist/types/api-model/models/error-list.d.ts +0 -4
- package/dist/types/api-model/models/expiration-details.d.ts +0 -6
- package/dist/types/api-model/models/inbound-eligibility-status.d.ts +0 -2
- package/dist/types/api-model/models/inbound-eligibility.d.ts +0 -13
- package/dist/types/api-model/models/inbound-order-creation-data.d.ts +0 -16
- package/dist/types/api-model/models/inbound-order-reference.d.ts +0 -4
- package/dist/types/api-model/models/inbound-order.d.ts +0 -32
- package/dist/types/api-model/models/inbound-packages.d.ts +0 -4
- package/dist/types/api-model/models/inbound-preferences.d.ts +0 -4
- package/dist/types/api-model/models/inbound-shipment-status.d.ts +0 -2
- package/dist/types/api-model/models/inbound-shipment-summary.d.ts +0 -17
- package/dist/types/api-model/models/inbound-shipment.d.ts +0 -46
- package/dist/types/api-model/models/inbound-status.d.ts +0 -2
- package/dist/types/api-model/models/inventory-details.d.ts +0 -8
- package/dist/types/api-model/models/inventory-listing.d.ts +0 -6
- package/dist/types/api-model/models/inventory-quantity.d.ts +0 -9
- package/dist/types/api-model/models/inventory-summary.d.ts +0 -15
- package/dist/types/api-model/models/inventory-unit-of-measurement.d.ts +0 -2
- package/dist/types/api-model/models/label-owner.d.ts +0 -2
- package/dist/types/api-model/models/label-status.d.ts +0 -2
- package/dist/types/api-model/models/measurement-data.d.ts +0 -17
- package/dist/types/api-model/models/model-error.d.ts +0 -8
- package/dist/types/api-model/models/order-ineligibility-reason.d.ts +0 -6
- package/dist/types/api-model/models/package-dimensions.d.ts +0 -13
- package/dist/types/api-model/models/package-volume.d.ts +0 -9
- package/dist/types/api-model/models/package-weight.d.ts +0 -9
- package/dist/types/api-model/models/prep-category.d.ts +0 -2
- package/dist/types/api-model/models/prep-details.d.ts +0 -19
- package/dist/types/api-model/models/prep-instruction.d.ts +0 -9
- package/dist/types/api-model/models/prep-owner.d.ts +0 -2
- package/dist/types/api-model/models/product-attribute.d.ts +0 -6
- package/dist/types/api-model/models/product-quantity.d.ts +0 -15
- package/dist/types/api-model/models/shipment-labels.d.ts +0 -9
- package/dist/types/api-model/models/shipment-listing.d.ts +0 -6
- package/dist/types/api-model/models/sku-eligibility.d.ts +0 -14
- package/dist/types/api-model/models/sku-ineligibility-reason.d.ts +0 -6
- package/dist/types/api-model/models/sku-quantity.d.ts +0 -14
- package/dist/types/api-model/models/tracking-details.d.ts +0 -9
- package/dist/types/api-model/models/transportation-details.d.ts +0 -4
- package/dist/types/api-model/models/volume-unit-of-measurement.d.ts +0 -2
- package/dist/types/api-model/models/weight-unit-of-measurement.d.ts +0 -2
- 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
|
* AmazonWarehousingAndDistributionApi - axios parameter creator
|
|
28
|
-
* @export
|
|
29
28
|
*/
|
|
30
29
|
const AmazonWarehousingAndDistributionApiAxiosParamCreator = function (configuration) {
|
|
31
30
|
return {
|
|
@@ -410,7 +409,6 @@ const AmazonWarehousingAndDistributionApiAxiosParamCreator = function (configura
|
|
|
410
409
|
exports.AmazonWarehousingAndDistributionApiAxiosParamCreator = AmazonWarehousingAndDistributionApiAxiosParamCreator;
|
|
411
410
|
/**
|
|
412
411
|
* AmazonWarehousingAndDistributionApi - functional programming interface
|
|
413
|
-
* @export
|
|
414
412
|
*/
|
|
415
413
|
const AmazonWarehousingAndDistributionApiFp = function (configuration) {
|
|
416
414
|
const localVarAxiosParamCreator = (0, exports.AmazonWarehousingAndDistributionApiAxiosParamCreator)(configuration);
|
|
@@ -567,7 +565,6 @@ const AmazonWarehousingAndDistributionApiFp = function (configuration) {
|
|
|
567
565
|
exports.AmazonWarehousingAndDistributionApiFp = AmazonWarehousingAndDistributionApiFp;
|
|
568
566
|
/**
|
|
569
567
|
* AmazonWarehousingAndDistributionApi - factory interface
|
|
570
|
-
* @export
|
|
571
568
|
*/
|
|
572
569
|
const AmazonWarehousingAndDistributionApiFactory = function (configuration, basePath, axios) {
|
|
573
570
|
const localVarFp = (0, exports.AmazonWarehousingAndDistributionApiFp)(configuration);
|
|
@@ -676,9 +673,6 @@ const AmazonWarehousingAndDistributionApiFactory = function (configuration, base
|
|
|
676
673
|
exports.AmazonWarehousingAndDistributionApiFactory = AmazonWarehousingAndDistributionApiFactory;
|
|
677
674
|
/**
|
|
678
675
|
* AmazonWarehousingAndDistributionApi - object-oriented interface
|
|
679
|
-
* @export
|
|
680
|
-
* @class AmazonWarehousingAndDistributionApi
|
|
681
|
-
* @extends {BaseAPI}
|
|
682
676
|
*/
|
|
683
677
|
class AmazonWarehousingAndDistributionApi extends base_1.BaseAPI {
|
|
684
678
|
/**
|
|
@@ -686,7 +680,6 @@ class AmazonWarehousingAndDistributionApi extends base_1.BaseAPI {
|
|
|
686
680
|
* @param {AmazonWarehousingAndDistributionApiCancelInboundRequest} requestParameters Request parameters.
|
|
687
681
|
* @param {*} [options] Override http request option.
|
|
688
682
|
* @throws {RequiredError}
|
|
689
|
-
* @memberof AmazonWarehousingAndDistributionApi
|
|
690
683
|
*/
|
|
691
684
|
cancelInbound(requestParameters, options) {
|
|
692
685
|
return (0, exports.AmazonWarehousingAndDistributionApiFp)(this.configuration).cancelInbound(requestParameters.orderId, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -696,7 +689,6 @@ class AmazonWarehousingAndDistributionApi extends base_1.BaseAPI {
|
|
|
696
689
|
* @param {AmazonWarehousingAndDistributionApiCheckInboundEligibilityRequest} requestParameters Request parameters.
|
|
697
690
|
* @param {*} [options] Override http request option.
|
|
698
691
|
* @throws {RequiredError}
|
|
699
|
-
* @memberof AmazonWarehousingAndDistributionApi
|
|
700
692
|
*/
|
|
701
693
|
checkInboundEligibility(requestParameters, options) {
|
|
702
694
|
return (0, exports.AmazonWarehousingAndDistributionApiFp)(this.configuration).checkInboundEligibility(requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -706,7 +698,6 @@ class AmazonWarehousingAndDistributionApi extends base_1.BaseAPI {
|
|
|
706
698
|
* @param {AmazonWarehousingAndDistributionApiConfirmInboundRequest} requestParameters Request parameters.
|
|
707
699
|
* @param {*} [options] Override http request option.
|
|
708
700
|
* @throws {RequiredError}
|
|
709
|
-
* @memberof AmazonWarehousingAndDistributionApi
|
|
710
701
|
*/
|
|
711
702
|
confirmInbound(requestParameters, options) {
|
|
712
703
|
return (0, exports.AmazonWarehousingAndDistributionApiFp)(this.configuration).confirmInbound(requestParameters.orderId, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -716,7 +707,6 @@ class AmazonWarehousingAndDistributionApi extends base_1.BaseAPI {
|
|
|
716
707
|
* @param {AmazonWarehousingAndDistributionApiCreateInboundRequest} requestParameters Request parameters.
|
|
717
708
|
* @param {*} [options] Override http request option.
|
|
718
709
|
* @throws {RequiredError}
|
|
719
|
-
* @memberof AmazonWarehousingAndDistributionApi
|
|
720
710
|
*/
|
|
721
711
|
createInbound(requestParameters, options) {
|
|
722
712
|
return (0, exports.AmazonWarehousingAndDistributionApiFp)(this.configuration).createInbound(requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -726,7 +716,6 @@ class AmazonWarehousingAndDistributionApi extends base_1.BaseAPI {
|
|
|
726
716
|
* @param {AmazonWarehousingAndDistributionApiGetInboundRequest} requestParameters Request parameters.
|
|
727
717
|
* @param {*} [options] Override http request option.
|
|
728
718
|
* @throws {RequiredError}
|
|
729
|
-
* @memberof AmazonWarehousingAndDistributionApi
|
|
730
719
|
*/
|
|
731
720
|
getInbound(requestParameters, options) {
|
|
732
721
|
return (0, exports.AmazonWarehousingAndDistributionApiFp)(this.configuration).getInbound(requestParameters.orderId, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -736,7 +725,6 @@ class AmazonWarehousingAndDistributionApi extends base_1.BaseAPI {
|
|
|
736
725
|
* @param {AmazonWarehousingAndDistributionApiGetInboundShipmentRequest} requestParameters Request parameters.
|
|
737
726
|
* @param {*} [options] Override http request option.
|
|
738
727
|
* @throws {RequiredError}
|
|
739
|
-
* @memberof AmazonWarehousingAndDistributionApi
|
|
740
728
|
*/
|
|
741
729
|
getInboundShipment(requestParameters, options) {
|
|
742
730
|
return (0, exports.AmazonWarehousingAndDistributionApiFp)(this.configuration).getInboundShipment(requestParameters.shipmentId, requestParameters.skuQuantities, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -746,7 +734,6 @@ class AmazonWarehousingAndDistributionApi extends base_1.BaseAPI {
|
|
|
746
734
|
* @param {AmazonWarehousingAndDistributionApiGetInboundShipmentLabelsRequest} requestParameters Request parameters.
|
|
747
735
|
* @param {*} [options] Override http request option.
|
|
748
736
|
* @throws {RequiredError}
|
|
749
|
-
* @memberof AmazonWarehousingAndDistributionApi
|
|
750
737
|
*/
|
|
751
738
|
getInboundShipmentLabels(requestParameters, options) {
|
|
752
739
|
return (0, exports.AmazonWarehousingAndDistributionApiFp)(this.configuration).getInboundShipmentLabels(requestParameters.shipmentId, requestParameters.pageType, requestParameters.formatType, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -756,7 +743,6 @@ class AmazonWarehousingAndDistributionApi extends base_1.BaseAPI {
|
|
|
756
743
|
* @param {AmazonWarehousingAndDistributionApiListInboundShipmentsRequest} requestParameters Request parameters.
|
|
757
744
|
* @param {*} [options] Override http request option.
|
|
758
745
|
* @throws {RequiredError}
|
|
759
|
-
* @memberof AmazonWarehousingAndDistributionApi
|
|
760
746
|
*/
|
|
761
747
|
listInboundShipments(requestParameters = {}, options) {
|
|
762
748
|
return (0, exports.AmazonWarehousingAndDistributionApiFp)(this.configuration).listInboundShipments(requestParameters.sortBy, requestParameters.sortOrder, requestParameters.shipmentStatus, requestParameters.updatedAfter, requestParameters.updatedBefore, requestParameters.maxResults, requestParameters.nextToken, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -766,7 +752,6 @@ class AmazonWarehousingAndDistributionApi extends base_1.BaseAPI {
|
|
|
766
752
|
* @param {AmazonWarehousingAndDistributionApiListInventoryRequest} requestParameters Request parameters.
|
|
767
753
|
* @param {*} [options] Override http request option.
|
|
768
754
|
* @throws {RequiredError}
|
|
769
|
-
* @memberof AmazonWarehousingAndDistributionApi
|
|
770
755
|
*/
|
|
771
756
|
listInventory(requestParameters = {}, options) {
|
|
772
757
|
return (0, exports.AmazonWarehousingAndDistributionApiFp)(this.configuration).listInventory(requestParameters.sku, requestParameters.sortOrder, requestParameters.details, requestParameters.nextToken, requestParameters.maxResults, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -776,7 +761,6 @@ class AmazonWarehousingAndDistributionApi extends base_1.BaseAPI {
|
|
|
776
761
|
* @param {AmazonWarehousingAndDistributionApiUpdateInboundRequest} requestParameters Request parameters.
|
|
777
762
|
* @param {*} [options] Override http request option.
|
|
778
763
|
* @throws {RequiredError}
|
|
779
|
-
* @memberof AmazonWarehousingAndDistributionApi
|
|
780
764
|
*/
|
|
781
765
|
updateInbound(requestParameters, options) {
|
|
782
766
|
return (0, exports.AmazonWarehousingAndDistributionApiFp)(this.configuration).updateInbound(requestParameters.orderId, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -786,51 +770,32 @@ class AmazonWarehousingAndDistributionApi extends base_1.BaseAPI {
|
|
|
786
770
|
* @param {AmazonWarehousingAndDistributionApiUpdateInboundShipmentTransportDetailsRequest} requestParameters Request parameters.
|
|
787
771
|
* @param {*} [options] Override http request option.
|
|
788
772
|
* @throws {RequiredError}
|
|
789
|
-
* @memberof AmazonWarehousingAndDistributionApi
|
|
790
773
|
*/
|
|
791
774
|
updateInboundShipmentTransportDetails(requestParameters, options) {
|
|
792
775
|
return (0, exports.AmazonWarehousingAndDistributionApiFp)(this.configuration).updateInboundShipmentTransportDetails(requestParameters.shipmentId, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
793
776
|
}
|
|
794
777
|
}
|
|
795
778
|
exports.AmazonWarehousingAndDistributionApi = AmazonWarehousingAndDistributionApi;
|
|
796
|
-
/**
|
|
797
|
-
* @export
|
|
798
|
-
*/
|
|
799
779
|
exports.GetInboundShipmentSkuQuantitiesEnum = {
|
|
800
780
|
Show: 'SHOW',
|
|
801
781
|
Hide: 'HIDE'
|
|
802
782
|
};
|
|
803
|
-
/**
|
|
804
|
-
* @export
|
|
805
|
-
*/
|
|
806
783
|
exports.GetInboundShipmentLabelsPageTypeEnum = {
|
|
807
784
|
ThermalNonpcp: 'THERMAL_NONPCP',
|
|
808
785
|
PlainPaper: 'PLAIN_PAPER',
|
|
809
786
|
Letter6: 'LETTER_6'
|
|
810
787
|
};
|
|
811
|
-
/**
|
|
812
|
-
* @export
|
|
813
|
-
*/
|
|
814
788
|
exports.GetInboundShipmentLabelsFormatTypeEnum = {
|
|
815
789
|
Pdf: 'PDF'
|
|
816
790
|
};
|
|
817
|
-
/**
|
|
818
|
-
* @export
|
|
819
|
-
*/
|
|
820
791
|
exports.ListInboundShipmentsSortByEnum = {
|
|
821
792
|
UpdatedAt: 'UPDATED_AT',
|
|
822
793
|
CreatedAt: 'CREATED_AT'
|
|
823
794
|
};
|
|
824
|
-
/**
|
|
825
|
-
* @export
|
|
826
|
-
*/
|
|
827
795
|
exports.ListInboundShipmentsSortOrderEnum = {
|
|
828
796
|
Ascending: 'ASCENDING',
|
|
829
797
|
Descending: 'DESCENDING'
|
|
830
798
|
};
|
|
831
|
-
/**
|
|
832
|
-
* @export
|
|
833
|
-
*/
|
|
834
799
|
exports.ListInboundShipmentsShipmentStatusEnum = {
|
|
835
800
|
Created: 'CREATED',
|
|
836
801
|
Shipped: 'SHIPPED',
|
|
@@ -840,16 +805,10 @@ exports.ListInboundShipmentsShipmentStatusEnum = {
|
|
|
840
805
|
Closed: 'CLOSED',
|
|
841
806
|
Cancelled: 'CANCELLED'
|
|
842
807
|
};
|
|
843
|
-
/**
|
|
844
|
-
* @export
|
|
845
|
-
*/
|
|
846
808
|
exports.ListInventorySortOrderEnum = {
|
|
847
809
|
Ascending: 'ASCENDING',
|
|
848
810
|
Descending: 'DESCENDING'
|
|
849
811
|
};
|
|
850
|
-
/**
|
|
851
|
-
* @export
|
|
852
|
-
*/
|
|
853
812
|
exports.ListInventoryDetailsEnum = {
|
|
854
813
|
Show: 'SHOW',
|
|
855
814
|
Hide: 'HIDE'
|
|
@@ -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-na.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.DimensionUnitOfMeasurement = void 0;
|
|
17
17
|
/**
|
|
18
18
|
* Unit of measurement for package dimensions.
|
|
19
|
-
* @export
|
|
20
|
-
* @enum {string}
|
|
21
19
|
*/
|
|
22
20
|
exports.DimensionUnitOfMeasurement = {
|
|
23
21
|
Inches: 'INCHES',
|
|
@@ -16,8 +16,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
16
16
|
exports.InboundEligibilityStatus = void 0;
|
|
17
17
|
/**
|
|
18
18
|
* Enum denoting the package inbound eligibility.
|
|
19
|
-
* @export
|
|
20
|
-
* @enum {string}
|
|
21
19
|
*/
|
|
22
20
|
exports.InboundEligibilityStatus = {
|
|
23
21
|
Eligible: 'ELIGIBLE',
|
|
@@ -16,8 +16,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
16
16
|
exports.InboundShipmentStatus = void 0;
|
|
17
17
|
/**
|
|
18
18
|
* Possible shipment statuses used by shipments.
|
|
19
|
-
* @export
|
|
20
|
-
* @enum {string}
|
|
21
19
|
*/
|
|
22
20
|
exports.InboundShipmentStatus = {
|
|
23
21
|
Created: 'CREATED',
|
|
@@ -16,8 +16,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
16
16
|
exports.InventoryUnitOfMeasurement = void 0;
|
|
17
17
|
/**
|
|
18
18
|
* Unit of measurement for the inventory.
|
|
19
|
-
* @export
|
|
20
|
-
* @enum {string}
|
|
21
19
|
*/
|
|
22
20
|
exports.InventoryUnitOfMeasurement = {
|
|
23
21
|
ProductUnits: 'PRODUCT_UNITS',
|
|
@@ -16,8 +16,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
16
16
|
exports.PrepCategory = void 0;
|
|
17
17
|
/**
|
|
18
18
|
* The preparation category for shipping an item to Amazon\'s fulfillment network.
|
|
19
|
-
* @export
|
|
20
|
-
* @enum {string}
|
|
21
19
|
*/
|
|
22
20
|
exports.PrepCategory = {
|
|
23
21
|
Adult: 'ADULT',
|
|
@@ -16,8 +16,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
16
16
|
exports.WeightUnitOfMeasurement = void 0;
|
|
17
17
|
/**
|
|
18
18
|
* Unit of measurement for the package weight.
|
|
19
|
-
* @export
|
|
20
|
-
* @enum {string}
|
|
21
19
|
*/
|
|
22
20
|
exports.WeightUnitOfMeasurement = {
|
|
23
21
|
Pounds: 'POUNDS',
|