@shipengine/alchemy 6.0.79-next.0 → 6.0.80
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/index.js +583 -459
- package/index.mjs +581 -460
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -10813,17 +10813,17 @@ var FeatureId = /* @__PURE__ */ ((FeatureId2) => {
|
|
|
10813
10813
|
return FeatureId2;
|
|
10814
10814
|
})(FeatureId || {});
|
|
10815
10815
|
|
|
10816
|
-
var __getOwnPropSymbols$
|
|
10817
|
-
var __hasOwnProp$
|
|
10818
|
-
var __propIsEnum$
|
|
10816
|
+
var __getOwnPropSymbols$13 = Object.getOwnPropertySymbols;
|
|
10817
|
+
var __hasOwnProp$13 = Object.prototype.hasOwnProperty;
|
|
10818
|
+
var __propIsEnum$13 = Object.prototype.propertyIsEnumerable;
|
|
10819
10819
|
var __objRest$x = (source, exclude) => {
|
|
10820
10820
|
var target = {};
|
|
10821
10821
|
for (var prop in source)
|
|
10822
|
-
if (__hasOwnProp$
|
|
10822
|
+
if (__hasOwnProp$13.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
10823
10823
|
target[prop] = source[prop];
|
|
10824
|
-
if (source != null && __getOwnPropSymbols$
|
|
10825
|
-
for (var prop of __getOwnPropSymbols$
|
|
10826
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
10824
|
+
if (source != null && __getOwnPropSymbols$13)
|
|
10825
|
+
for (var prop of __getOwnPropSymbols$13(source)) {
|
|
10826
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$13.call(source, prop))
|
|
10827
10827
|
target[prop] = source[prop];
|
|
10828
10828
|
}
|
|
10829
10829
|
return target;
|
|
@@ -10959,17 +10959,17 @@ const types = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
|
|
|
10959
10959
|
RateCardStatus
|
|
10960
10960
|
}, Symbol.toStringTag, { value: 'Module' }));
|
|
10961
10961
|
|
|
10962
|
-
var __getOwnPropSymbols$
|
|
10963
|
-
var __hasOwnProp$
|
|
10964
|
-
var __propIsEnum$
|
|
10962
|
+
var __getOwnPropSymbols$12 = Object.getOwnPropertySymbols;
|
|
10963
|
+
var __hasOwnProp$12 = Object.prototype.hasOwnProperty;
|
|
10964
|
+
var __propIsEnum$12 = Object.prototype.propertyIsEnumerable;
|
|
10965
10965
|
var __objRest$w = (source, exclude) => {
|
|
10966
10966
|
var target = {};
|
|
10967
10967
|
for (var prop in source)
|
|
10968
|
-
if (__hasOwnProp$
|
|
10968
|
+
if (__hasOwnProp$12.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
10969
10969
|
target[prop] = source[prop];
|
|
10970
|
-
if (source != null && __getOwnPropSymbols$
|
|
10971
|
-
for (var prop of __getOwnPropSymbols$
|
|
10972
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
10970
|
+
if (source != null && __getOwnPropSymbols$12)
|
|
10971
|
+
for (var prop of __getOwnPropSymbols$12(source)) {
|
|
10972
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$12.call(source, prop))
|
|
10973
10973
|
target[prop] = source[prop];
|
|
10974
10974
|
}
|
|
10975
10975
|
return target;
|
|
@@ -13870,7 +13870,7 @@ var ipaddr = {
|
|
|
13870
13870
|
}).call(commonjsGlobal);
|
|
13871
13871
|
} (ipaddr));
|
|
13872
13872
|
|
|
13873
|
-
var __async$
|
|
13873
|
+
var __async$1a = (__this, __arguments, generator) => {
|
|
13874
13874
|
return new Promise((resolve, reject) => {
|
|
13875
13875
|
var fulfilled = (value) => {
|
|
13876
13876
|
try {
|
|
@@ -13890,7 +13890,7 @@ var __async$18 = (__this, __arguments, generator) => {
|
|
|
13890
13890
|
step((generator = generator.apply(__this, __arguments)).next());
|
|
13891
13891
|
});
|
|
13892
13892
|
};
|
|
13893
|
-
const getEndUserIpAddress = () => __async$
|
|
13893
|
+
const getEndUserIpAddress = () => __async$1a(void 0, null, function* () {
|
|
13894
13894
|
try {
|
|
13895
13895
|
const response = yield axios.get("https://api.ipify.org/?format=json");
|
|
13896
13896
|
if (response.data.ip && ipaddrExports.isValid(response.data.ip)) {
|
|
@@ -13951,38 +13951,38 @@ const decamelizeKeys = (obj, separator = "_") => {
|
|
|
13951
13951
|
return obj;
|
|
13952
13952
|
};
|
|
13953
13953
|
|
|
13954
|
-
var __defProp$
|
|
13955
|
-
var __defProps$
|
|
13956
|
-
var __getOwnPropDescs$
|
|
13957
|
-
var __getOwnPropSymbols$
|
|
13958
|
-
var __hasOwnProp$
|
|
13959
|
-
var __propIsEnum$
|
|
13960
|
-
var __defNormalProp$
|
|
13961
|
-
var __spreadValues$
|
|
13954
|
+
var __defProp$S = Object.defineProperty;
|
|
13955
|
+
var __defProps$M = Object.defineProperties;
|
|
13956
|
+
var __getOwnPropDescs$M = Object.getOwnPropertyDescriptors;
|
|
13957
|
+
var __getOwnPropSymbols$11 = Object.getOwnPropertySymbols;
|
|
13958
|
+
var __hasOwnProp$11 = Object.prototype.hasOwnProperty;
|
|
13959
|
+
var __propIsEnum$11 = Object.prototype.propertyIsEnumerable;
|
|
13960
|
+
var __defNormalProp$S = (obj, key, value) => key in obj ? __defProp$S(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
13961
|
+
var __spreadValues$S = (a, b) => {
|
|
13962
13962
|
for (var prop in b || (b = {}))
|
|
13963
|
-
if (__hasOwnProp$
|
|
13964
|
-
__defNormalProp$
|
|
13965
|
-
if (__getOwnPropSymbols$
|
|
13966
|
-
for (var prop of __getOwnPropSymbols$
|
|
13967
|
-
if (__propIsEnum$
|
|
13968
|
-
__defNormalProp$
|
|
13963
|
+
if (__hasOwnProp$11.call(b, prop))
|
|
13964
|
+
__defNormalProp$S(a, prop, b[prop]);
|
|
13965
|
+
if (__getOwnPropSymbols$11)
|
|
13966
|
+
for (var prop of __getOwnPropSymbols$11(b)) {
|
|
13967
|
+
if (__propIsEnum$11.call(b, prop))
|
|
13968
|
+
__defNormalProp$S(a, prop, b[prop]);
|
|
13969
13969
|
}
|
|
13970
13970
|
return a;
|
|
13971
13971
|
};
|
|
13972
|
-
var __spreadProps$
|
|
13972
|
+
var __spreadProps$M = (a, b) => __defProps$M(a, __getOwnPropDescs$M(b));
|
|
13973
13973
|
var __objRest$v = (source, exclude) => {
|
|
13974
13974
|
var target = {};
|
|
13975
13975
|
for (var prop in source)
|
|
13976
|
-
if (__hasOwnProp$
|
|
13976
|
+
if (__hasOwnProp$11.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
13977
13977
|
target[prop] = source[prop];
|
|
13978
|
-
if (source != null && __getOwnPropSymbols$
|
|
13979
|
-
for (var prop of __getOwnPropSymbols$
|
|
13980
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
13978
|
+
if (source != null && __getOwnPropSymbols$11)
|
|
13979
|
+
for (var prop of __getOwnPropSymbols$11(source)) {
|
|
13980
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$11.call(source, prop))
|
|
13981
13981
|
target[prop] = source[prop];
|
|
13982
13982
|
}
|
|
13983
13983
|
return target;
|
|
13984
13984
|
};
|
|
13985
|
-
var __async$
|
|
13985
|
+
var __async$19 = (__this, __arguments, generator) => {
|
|
13986
13986
|
return new Promise((resolve, reject) => {
|
|
13987
13987
|
var fulfilled = (value) => {
|
|
13988
13988
|
try {
|
|
@@ -14022,12 +14022,12 @@ class CarriersAPI {
|
|
|
14022
14022
|
/**
|
|
14023
14023
|
* The `connect` method connects a carrier account to a user's ShipEngine account.
|
|
14024
14024
|
*/
|
|
14025
|
-
this.connect = (_a) => __async$
|
|
14025
|
+
this.connect = (_a) => __async$19(this, null, function* () {
|
|
14026
14026
|
var _b = _a, { carrierCode } = _b, connection = __objRest$v(_b, ["carrierCode"]);
|
|
14027
14027
|
const endUserIpAddress = yield getEndUserIpAddress();
|
|
14028
14028
|
if (!endUserIpAddress)
|
|
14029
14029
|
return Promise.reject([new CodedError("Unable to get IP address")]);
|
|
14030
|
-
return yield this.client.post(`/v1/registration/${carrierCode}`, __spreadProps$
|
|
14030
|
+
return yield this.client.post(`/v1/registration/${carrierCode}`, __spreadProps$M(__spreadValues$S({}, connection), {
|
|
14031
14031
|
endUserIpAddress
|
|
14032
14032
|
}));
|
|
14033
14033
|
});
|
|
@@ -14107,26 +14107,36 @@ class CarriersAPI {
|
|
|
14107
14107
|
this.delete = (carrierId) => {
|
|
14108
14108
|
return this.client.delete(`/v1/carriers/${carrierId}`);
|
|
14109
14109
|
};
|
|
14110
|
+
/**
|
|
14111
|
+
* The `acceptTerms` method allows users to accept new versions of carrier terms.
|
|
14112
|
+
* Returns the status of each term.
|
|
14113
|
+
*/
|
|
14114
|
+
this.acceptTerms = (carrierId, request) => {
|
|
14115
|
+
return this.client.post(
|
|
14116
|
+
`/v1/carriers/${carrierId}/accepted_terms`,
|
|
14117
|
+
request
|
|
14118
|
+
);
|
|
14119
|
+
};
|
|
14110
14120
|
this.client = client;
|
|
14111
14121
|
}
|
|
14112
14122
|
}
|
|
14113
14123
|
|
|
14114
|
-
var __getOwnPropSymbols
|
|
14115
|
-
var __hasOwnProp
|
|
14116
|
-
var __propIsEnum
|
|
14124
|
+
var __getOwnPropSymbols$10 = Object.getOwnPropertySymbols;
|
|
14125
|
+
var __hasOwnProp$10 = Object.prototype.hasOwnProperty;
|
|
14126
|
+
var __propIsEnum$10 = Object.prototype.propertyIsEnumerable;
|
|
14117
14127
|
var __objRest$u = (source, exclude) => {
|
|
14118
14128
|
var target = {};
|
|
14119
14129
|
for (var prop in source)
|
|
14120
|
-
if (__hasOwnProp
|
|
14130
|
+
if (__hasOwnProp$10.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
14121
14131
|
target[prop] = source[prop];
|
|
14122
|
-
if (source != null && __getOwnPropSymbols
|
|
14123
|
-
for (var prop of __getOwnPropSymbols
|
|
14124
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum
|
|
14132
|
+
if (source != null && __getOwnPropSymbols$10)
|
|
14133
|
+
for (var prop of __getOwnPropSymbols$10(source)) {
|
|
14134
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$10.call(source, prop))
|
|
14125
14135
|
target[prop] = source[prop];
|
|
14126
14136
|
}
|
|
14127
14137
|
return target;
|
|
14128
14138
|
};
|
|
14129
|
-
var __async$
|
|
14139
|
+
var __async$18 = (__this, __arguments, generator) => {
|
|
14130
14140
|
return new Promise((resolve, reject) => {
|
|
14131
14141
|
var fulfilled = (value) => {
|
|
14132
14142
|
try {
|
|
@@ -14168,7 +14178,7 @@ class ConnectionsAPI {
|
|
|
14168
14178
|
/**
|
|
14169
14179
|
* The `connectCarrier` method connects a carrier to account.
|
|
14170
14180
|
*/
|
|
14171
|
-
this.connectCarrier = (carrierName, formData) => __async$
|
|
14181
|
+
this.connectCarrier = (carrierName, formData) => __async$18(this, null, function* () {
|
|
14172
14182
|
return yield this.client.post(
|
|
14173
14183
|
`/v1/connections/carriers/${carrierName}`,
|
|
14174
14184
|
formData,
|
|
@@ -16336,23 +16346,23 @@ class CustomPackagesAPI {
|
|
|
16336
16346
|
}
|
|
16337
16347
|
}
|
|
16338
16348
|
|
|
16339
|
-
var __defProp$
|
|
16340
|
-
var __getOwnPropSymbols
|
|
16341
|
-
var __hasOwnProp
|
|
16342
|
-
var __propIsEnum
|
|
16343
|
-
var __defNormalProp$
|
|
16344
|
-
var __spreadValues$
|
|
16349
|
+
var __defProp$R = Object.defineProperty;
|
|
16350
|
+
var __getOwnPropSymbols$$ = Object.getOwnPropertySymbols;
|
|
16351
|
+
var __hasOwnProp$$ = Object.prototype.hasOwnProperty;
|
|
16352
|
+
var __propIsEnum$$ = Object.prototype.propertyIsEnumerable;
|
|
16353
|
+
var __defNormalProp$R = (obj, key, value) => key in obj ? __defProp$R(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
16354
|
+
var __spreadValues$R = (a, b) => {
|
|
16345
16355
|
for (var prop in b || (b = {}))
|
|
16346
|
-
if (__hasOwnProp
|
|
16347
|
-
__defNormalProp$
|
|
16348
|
-
if (__getOwnPropSymbols
|
|
16349
|
-
for (var prop of __getOwnPropSymbols
|
|
16350
|
-
if (__propIsEnum
|
|
16351
|
-
__defNormalProp$
|
|
16356
|
+
if (__hasOwnProp$$.call(b, prop))
|
|
16357
|
+
__defNormalProp$R(a, prop, b[prop]);
|
|
16358
|
+
if (__getOwnPropSymbols$$)
|
|
16359
|
+
for (var prop of __getOwnPropSymbols$$(b)) {
|
|
16360
|
+
if (__propIsEnum$$.call(b, prop))
|
|
16361
|
+
__defNormalProp$R(a, prop, b[prop]);
|
|
16352
16362
|
}
|
|
16353
16363
|
return a;
|
|
16354
16364
|
};
|
|
16355
|
-
var __async$
|
|
16365
|
+
var __async$17 = (__this, __arguments, generator) => {
|
|
16356
16366
|
return new Promise((resolve, reject) => {
|
|
16357
16367
|
var fulfilled = (value) => {
|
|
16358
16368
|
try {
|
|
@@ -16391,12 +16401,12 @@ class FundingSourcesAPI {
|
|
|
16391
16401
|
* The `create` method creates a new funding source for a given user. This requires
|
|
16392
16402
|
* payment information to be collected from the user.
|
|
16393
16403
|
*/
|
|
16394
|
-
this.create = (createFundingSource) => __async$
|
|
16404
|
+
this.create = (createFundingSource) => __async$17(this, null, function* () {
|
|
16395
16405
|
const endUserIpAddress = yield getEndUserIpAddress();
|
|
16396
16406
|
if (!endUserIpAddress) {
|
|
16397
16407
|
return Promise.reject([new CodedError("Unable to get IP address")]);
|
|
16398
16408
|
}
|
|
16399
|
-
return yield this.client.post("/v1/funding_sources", __spreadValues$
|
|
16409
|
+
return yield this.client.post("/v1/funding_sources", __spreadValues$R({
|
|
16400
16410
|
endUserIpAddress
|
|
16401
16411
|
}, createFundingSource));
|
|
16402
16412
|
});
|
|
@@ -16405,7 +16415,7 @@ class FundingSourcesAPI {
|
|
|
16405
16415
|
* user to update the billing address or payment information associated with the
|
|
16406
16416
|
* funding source.
|
|
16407
16417
|
*/
|
|
16408
|
-
this.update = (billingInfo, creditCardInfo, auctanePayInfo, fundingSourceId) => __async$
|
|
16418
|
+
this.update = (billingInfo, creditCardInfo, auctanePayInfo, fundingSourceId) => __async$17(this, null, function* () {
|
|
16409
16419
|
const endUserIpAddress = yield getEndUserIpAddress();
|
|
16410
16420
|
if (!endUserIpAddress) {
|
|
16411
16421
|
return Promise.reject([new CodedError("Unable to get IP address")]);
|
|
@@ -16415,7 +16425,7 @@ class FundingSourcesAPI {
|
|
|
16415
16425
|
{
|
|
16416
16426
|
billingInfo,
|
|
16417
16427
|
endUserIpAddress,
|
|
16418
|
-
paymentMethod: __spreadValues$
|
|
16428
|
+
paymentMethod: __spreadValues$R({
|
|
16419
16429
|
creditCardInfo
|
|
16420
16430
|
}, auctanePayInfo)
|
|
16421
16431
|
}
|
|
@@ -16425,19 +16435,19 @@ class FundingSourcesAPI {
|
|
|
16425
16435
|
* The `registerCarrier` method registers a carrier account and associates
|
|
16426
16436
|
* it with a given funding source.
|
|
16427
16437
|
*/
|
|
16428
|
-
this.registerCarrier = (carrier) => __async$
|
|
16438
|
+
this.registerCarrier = (carrier) => __async$17(this, null, function* () {
|
|
16429
16439
|
const endUserIpAddress = yield getEndUserIpAddress();
|
|
16430
16440
|
if (!endUserIpAddress) {
|
|
16431
16441
|
return Promise.reject([new CodedError("Unable to get IP address")]);
|
|
16432
16442
|
}
|
|
16433
|
-
return yield this.client.post("/v1/registration/funding_source", __spreadValues$
|
|
16443
|
+
return yield this.client.post("/v1/registration/funding_source", __spreadValues$R({
|
|
16434
16444
|
endUserIpAddress
|
|
16435
16445
|
}, carrier));
|
|
16436
16446
|
});
|
|
16437
16447
|
/**
|
|
16438
16448
|
* The `addFunds` method allows you to add funds to a funding source.
|
|
16439
16449
|
*/
|
|
16440
|
-
this.addFunds = (amount, fundingSourceId) => __async$
|
|
16450
|
+
this.addFunds = (amount, fundingSourceId) => __async$17(this, null, function* () {
|
|
16441
16451
|
return yield this.client.put(
|
|
16442
16452
|
`/v1/funding_sources/${fundingSourceId}/add_funds`,
|
|
16443
16453
|
amount
|
|
@@ -16447,7 +16457,7 @@ class FundingSourcesAPI {
|
|
|
16447
16457
|
* The `metadata` method returns seller-specific requirements for creating funding sources
|
|
16448
16458
|
* and attaching carriers
|
|
16449
16459
|
*/
|
|
16450
|
-
this.metadata = () => __async$
|
|
16460
|
+
this.metadata = () => __async$17(this, null, function* () {
|
|
16451
16461
|
return yield this.client.get("/v1/funding_sources/metadata");
|
|
16452
16462
|
});
|
|
16453
16463
|
/**
|
|
@@ -16472,6 +16482,23 @@ class FundingSourcesAPI {
|
|
|
16472
16482
|
"/v1/insurance/funding_source/accepted_terms"
|
|
16473
16483
|
);
|
|
16474
16484
|
};
|
|
16485
|
+
/**
|
|
16486
|
+
* The `acceptedTerms` method retrieves all accepted terms for a specific funding source.
|
|
16487
|
+
*/
|
|
16488
|
+
this.acceptedTerms = (fundingSourceId) => {
|
|
16489
|
+
return this.client.get(
|
|
16490
|
+
`/v1/funding_sources/${fundingSourceId}/accepted_terms`
|
|
16491
|
+
);
|
|
16492
|
+
};
|
|
16493
|
+
/**
|
|
16494
|
+
* The`acceptTerms` method allows users to accept new versions of funding source terms.
|
|
16495
|
+
*/
|
|
16496
|
+
this.acceptTerms = (fundingSourceId, request) => {
|
|
16497
|
+
return this.client.post(
|
|
16498
|
+
`/v1/funding_sources/${fundingSourceId}/accepted_terms`,
|
|
16499
|
+
request
|
|
16500
|
+
);
|
|
16501
|
+
};
|
|
16475
16502
|
this.client = client;
|
|
16476
16503
|
}
|
|
16477
16504
|
}
|
|
@@ -16499,7 +16526,7 @@ class InsuranceAPI {
|
|
|
16499
16526
|
}
|
|
16500
16527
|
}
|
|
16501
16528
|
|
|
16502
|
-
var __async$
|
|
16529
|
+
var __async$16 = (__this, __arguments, generator) => {
|
|
16503
16530
|
return new Promise((resolve, reject) => {
|
|
16504
16531
|
var fulfilled = (value) => {
|
|
16505
16532
|
try {
|
|
@@ -16531,13 +16558,13 @@ class InvoiceAddressAPI {
|
|
|
16531
16558
|
/**
|
|
16532
16559
|
* The `create` method creates a new invoice address for a given user.
|
|
16533
16560
|
*/
|
|
16534
|
-
this.create = (invoiceAddress) => __async$
|
|
16561
|
+
this.create = (invoiceAddress) => __async$16(this, null, function* () {
|
|
16535
16562
|
return yield this.client.post("/v1/invoice_address", invoiceAddress);
|
|
16536
16563
|
});
|
|
16537
16564
|
/**
|
|
16538
16565
|
* The `update` method updates a invoice address for a given user.
|
|
16539
16566
|
*/
|
|
16540
|
-
this.update = (invoiceAddress) => __async$
|
|
16567
|
+
this.update = (invoiceAddress) => __async$16(this, null, function* () {
|
|
16541
16568
|
return yield this.client.put("/v1/invoice_address", invoiceAddress);
|
|
16542
16569
|
});
|
|
16543
16570
|
this.client = client;
|
|
@@ -16599,17 +16626,17 @@ class LabelsAPI {
|
|
|
16599
16626
|
}
|
|
16600
16627
|
}
|
|
16601
16628
|
|
|
16602
|
-
var __getOwnPropSymbols$
|
|
16603
|
-
var __hasOwnProp$
|
|
16604
|
-
var __propIsEnum$
|
|
16629
|
+
var __getOwnPropSymbols$_ = Object.getOwnPropertySymbols;
|
|
16630
|
+
var __hasOwnProp$_ = Object.prototype.hasOwnProperty;
|
|
16631
|
+
var __propIsEnum$_ = Object.prototype.propertyIsEnumerable;
|
|
16605
16632
|
var __objRest$t = (source, exclude) => {
|
|
16606
16633
|
var target = {};
|
|
16607
16634
|
for (var prop in source)
|
|
16608
|
-
if (__hasOwnProp$
|
|
16635
|
+
if (__hasOwnProp$_.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
16609
16636
|
target[prop] = source[prop];
|
|
16610
|
-
if (source != null && __getOwnPropSymbols$
|
|
16611
|
-
for (var prop of __getOwnPropSymbols$
|
|
16612
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
16637
|
+
if (source != null && __getOwnPropSymbols$_)
|
|
16638
|
+
for (var prop of __getOwnPropSymbols$_(source)) {
|
|
16639
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$_.call(source, prop))
|
|
16613
16640
|
target[prop] = source[prop];
|
|
16614
16641
|
}
|
|
16615
16642
|
return target;
|
|
@@ -16730,19 +16757,19 @@ class RateCardsAPI {
|
|
|
16730
16757
|
}
|
|
16731
16758
|
}
|
|
16732
16759
|
|
|
16733
|
-
var __defProp$
|
|
16734
|
-
var __getOwnPropSymbols$
|
|
16735
|
-
var __hasOwnProp$
|
|
16736
|
-
var __propIsEnum$
|
|
16737
|
-
var __defNormalProp$
|
|
16738
|
-
var __spreadValues$
|
|
16760
|
+
var __defProp$Q = Object.defineProperty;
|
|
16761
|
+
var __getOwnPropSymbols$Z = Object.getOwnPropertySymbols;
|
|
16762
|
+
var __hasOwnProp$Z = Object.prototype.hasOwnProperty;
|
|
16763
|
+
var __propIsEnum$Z = Object.prototype.propertyIsEnumerable;
|
|
16764
|
+
var __defNormalProp$Q = (obj, key, value) => key in obj ? __defProp$Q(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
16765
|
+
var __spreadValues$Q = (a, b) => {
|
|
16739
16766
|
for (var prop in b || (b = {}))
|
|
16740
|
-
if (__hasOwnProp$
|
|
16741
|
-
__defNormalProp$
|
|
16742
|
-
if (__getOwnPropSymbols$
|
|
16743
|
-
for (var prop of __getOwnPropSymbols$
|
|
16744
|
-
if (__propIsEnum$
|
|
16745
|
-
__defNormalProp$
|
|
16767
|
+
if (__hasOwnProp$Z.call(b, prop))
|
|
16768
|
+
__defNormalProp$Q(a, prop, b[prop]);
|
|
16769
|
+
if (__getOwnPropSymbols$Z)
|
|
16770
|
+
for (var prop of __getOwnPropSymbols$Z(b)) {
|
|
16771
|
+
if (__propIsEnum$Z.call(b, prop))
|
|
16772
|
+
__defNormalProp$Q(a, prop, b[prop]);
|
|
16746
16773
|
}
|
|
16747
16774
|
return a;
|
|
16748
16775
|
};
|
|
@@ -16764,7 +16791,7 @@ class RatesAPI {
|
|
|
16764
16791
|
* method.
|
|
16765
16792
|
*/
|
|
16766
16793
|
this.estimate = (params) => {
|
|
16767
|
-
return this.client.post("/v1/rates/estimate", __spreadValues$
|
|
16794
|
+
return this.client.post("/v1/rates/estimate", __spreadValues$Q({}, params));
|
|
16768
16795
|
};
|
|
16769
16796
|
this.client = client;
|
|
16770
16797
|
}
|
|
@@ -16844,7 +16871,7 @@ class SalesOrdersAPI {
|
|
|
16844
16871
|
}
|
|
16845
16872
|
}
|
|
16846
16873
|
|
|
16847
|
-
var __async$
|
|
16874
|
+
var __async$15 = (__this, __arguments, generator) => {
|
|
16848
16875
|
return new Promise((resolve, reject) => {
|
|
16849
16876
|
var fulfilled = (value) => {
|
|
16850
16877
|
try {
|
|
@@ -16902,7 +16929,7 @@ class SellersAPI {
|
|
|
16902
16929
|
/**
|
|
16903
16930
|
* Deletes an API Key
|
|
16904
16931
|
*/
|
|
16905
|
-
this.deleteSellerApiKey = (_0) => __async$
|
|
16932
|
+
this.deleteSellerApiKey = (_0) => __async$15(this, [_0], function* ({
|
|
16906
16933
|
encryptedApiKey,
|
|
16907
16934
|
sellerId,
|
|
16908
16935
|
isSandbox
|
|
@@ -16948,19 +16975,19 @@ class SellersAPI {
|
|
|
16948
16975
|
}
|
|
16949
16976
|
}
|
|
16950
16977
|
|
|
16951
|
-
var __defProp$
|
|
16952
|
-
var __getOwnPropSymbols$
|
|
16953
|
-
var __hasOwnProp$
|
|
16954
|
-
var __propIsEnum$
|
|
16955
|
-
var __defNormalProp$
|
|
16956
|
-
var __spreadValues$
|
|
16978
|
+
var __defProp$P = Object.defineProperty;
|
|
16979
|
+
var __getOwnPropSymbols$Y = Object.getOwnPropertySymbols;
|
|
16980
|
+
var __hasOwnProp$Y = Object.prototype.hasOwnProperty;
|
|
16981
|
+
var __propIsEnum$Y = Object.prototype.propertyIsEnumerable;
|
|
16982
|
+
var __defNormalProp$P = (obj, key, value) => key in obj ? __defProp$P(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
16983
|
+
var __spreadValues$P = (a, b) => {
|
|
16957
16984
|
for (var prop in b || (b = {}))
|
|
16958
|
-
if (__hasOwnProp$
|
|
16959
|
-
__defNormalProp$
|
|
16960
|
-
if (__getOwnPropSymbols$
|
|
16961
|
-
for (var prop of __getOwnPropSymbols$
|
|
16962
|
-
if (__propIsEnum$
|
|
16963
|
-
__defNormalProp$
|
|
16985
|
+
if (__hasOwnProp$Y.call(b, prop))
|
|
16986
|
+
__defNormalProp$P(a, prop, b[prop]);
|
|
16987
|
+
if (__getOwnPropSymbols$Y)
|
|
16988
|
+
for (var prop of __getOwnPropSymbols$Y(b)) {
|
|
16989
|
+
if (__propIsEnum$Y.call(b, prop))
|
|
16990
|
+
__defNormalProp$P(a, prop, b[prop]);
|
|
16964
16991
|
}
|
|
16965
16992
|
return a;
|
|
16966
16993
|
};
|
|
@@ -16972,7 +16999,7 @@ class ServicePointsAPI {
|
|
|
16972
16999
|
* Either an address, coordinates, or an address query
|
|
16973
17000
|
*/
|
|
16974
17001
|
this.list = (options) => {
|
|
16975
|
-
return this.client.post("/v1/service_points/list", __spreadValues$
|
|
17002
|
+
return this.client.post("/v1/service_points/list", __spreadValues$P({}, options));
|
|
16976
17003
|
};
|
|
16977
17004
|
/**
|
|
16978
17005
|
* Get a specific service point by its carrier code, country code, and id
|
|
@@ -16990,7 +17017,7 @@ class ServicePointsAPI {
|
|
|
16990
17017
|
}
|
|
16991
17018
|
}
|
|
16992
17019
|
|
|
16993
|
-
var __async$
|
|
17020
|
+
var __async$14 = (__this, __arguments, generator) => {
|
|
16994
17021
|
return new Promise((resolve, reject) => {
|
|
16995
17022
|
var fulfilled = (value) => {
|
|
16996
17023
|
try {
|
|
@@ -17039,7 +17066,7 @@ class ShipmentsAPI {
|
|
|
17039
17066
|
* The `create` method allows for creating shipments based on a list of shipment
|
|
17040
17067
|
* items passed into this method.
|
|
17041
17068
|
*/
|
|
17042
|
-
this.create = (...shipments) => __async$
|
|
17069
|
+
this.create = (...shipments) => __async$14(this, null, function* () {
|
|
17043
17070
|
return this.client.post("/v1/shipments", {
|
|
17044
17071
|
shipments
|
|
17045
17072
|
});
|
|
@@ -34456,38 +34483,38 @@ class WebhooksAPI {
|
|
|
34456
34483
|
}
|
|
34457
34484
|
}
|
|
34458
34485
|
|
|
34459
|
-
var __defProp$
|
|
34460
|
-
var __defProps$
|
|
34461
|
-
var __getOwnPropDescs$
|
|
34462
|
-
var __getOwnPropSymbols$
|
|
34463
|
-
var __hasOwnProp$
|
|
34464
|
-
var __propIsEnum$
|
|
34465
|
-
var __defNormalProp$
|
|
34466
|
-
var __spreadValues$
|
|
34486
|
+
var __defProp$O = Object.defineProperty;
|
|
34487
|
+
var __defProps$L = Object.defineProperties;
|
|
34488
|
+
var __getOwnPropDescs$L = Object.getOwnPropertyDescriptors;
|
|
34489
|
+
var __getOwnPropSymbols$X = Object.getOwnPropertySymbols;
|
|
34490
|
+
var __hasOwnProp$X = Object.prototype.hasOwnProperty;
|
|
34491
|
+
var __propIsEnum$X = Object.prototype.propertyIsEnumerable;
|
|
34492
|
+
var __defNormalProp$O = (obj, key, value) => key in obj ? __defProp$O(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
34493
|
+
var __spreadValues$O = (a, b) => {
|
|
34467
34494
|
for (var prop in b || (b = {}))
|
|
34468
|
-
if (__hasOwnProp$
|
|
34469
|
-
__defNormalProp$
|
|
34470
|
-
if (__getOwnPropSymbols$
|
|
34471
|
-
for (var prop of __getOwnPropSymbols$
|
|
34472
|
-
if (__propIsEnum$
|
|
34473
|
-
__defNormalProp$
|
|
34495
|
+
if (__hasOwnProp$X.call(b, prop))
|
|
34496
|
+
__defNormalProp$O(a, prop, b[prop]);
|
|
34497
|
+
if (__getOwnPropSymbols$X)
|
|
34498
|
+
for (var prop of __getOwnPropSymbols$X(b)) {
|
|
34499
|
+
if (__propIsEnum$X.call(b, prop))
|
|
34500
|
+
__defNormalProp$O(a, prop, b[prop]);
|
|
34474
34501
|
}
|
|
34475
34502
|
return a;
|
|
34476
34503
|
};
|
|
34477
|
-
var __spreadProps$
|
|
34504
|
+
var __spreadProps$L = (a, b) => __defProps$L(a, __getOwnPropDescs$L(b));
|
|
34478
34505
|
var __objRest$s = (source, exclude) => {
|
|
34479
34506
|
var target = {};
|
|
34480
34507
|
for (var prop in source)
|
|
34481
|
-
if (__hasOwnProp$
|
|
34508
|
+
if (__hasOwnProp$X.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
34482
34509
|
target[prop] = source[prop];
|
|
34483
|
-
if (source != null && __getOwnPropSymbols$
|
|
34484
|
-
for (var prop of __getOwnPropSymbols$
|
|
34485
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
34510
|
+
if (source != null && __getOwnPropSymbols$X)
|
|
34511
|
+
for (var prop of __getOwnPropSymbols$X(source)) {
|
|
34512
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$X.call(source, prop))
|
|
34486
34513
|
target[prop] = source[prop];
|
|
34487
34514
|
}
|
|
34488
34515
|
return target;
|
|
34489
34516
|
};
|
|
34490
|
-
var __async$
|
|
34517
|
+
var __async$13 = (__this, __arguments, generator) => {
|
|
34491
34518
|
return new Promise((resolve, reject) => {
|
|
34492
34519
|
var fulfilled = (value) => {
|
|
34493
34520
|
try {
|
|
@@ -34510,7 +34537,7 @@ var __async$11 = (__this, __arguments, generator) => {
|
|
|
34510
34537
|
const logger$1 = E({
|
|
34511
34538
|
level: process.env.NODE_ENV === "production" ? "fatal" : "info",
|
|
34512
34539
|
name: "shipengine-api",
|
|
34513
|
-
serializers: __spreadProps$
|
|
34540
|
+
serializers: __spreadProps$L(__spreadValues$O({}, k), {
|
|
34514
34541
|
req: (req) => ({
|
|
34515
34542
|
headers: req.headers,
|
|
34516
34543
|
method: req.method,
|
|
@@ -34535,7 +34562,7 @@ class ShipEngineAPI {
|
|
|
34535
34562
|
this.getSandboxToken = getSandboxToken;
|
|
34536
34563
|
const client = axios.create({
|
|
34537
34564
|
baseURL,
|
|
34538
|
-
headers: __spreadProps$
|
|
34565
|
+
headers: __spreadProps$L(__spreadValues$O({}, headers), {
|
|
34539
34566
|
"Content-Type": "application/json"
|
|
34540
34567
|
}),
|
|
34541
34568
|
paramsSerializer: (params) => lib.stringify(decamelizeKeys(params), { arrayFormat: "brackets" }),
|
|
@@ -34575,7 +34602,7 @@ class ShipEngineAPI {
|
|
|
34575
34602
|
});
|
|
34576
34603
|
client.defaults.headers.common["Authorization"] = `Bearer ${token}`;
|
|
34577
34604
|
client.interceptors.request.use(
|
|
34578
|
-
(config) => __async$
|
|
34605
|
+
(config) => __async$13(this, null, function* () {
|
|
34579
34606
|
if (config.isSandbox) {
|
|
34580
34607
|
if (!this.sandboxToken) {
|
|
34581
34608
|
this.sandboxToken = yield getSandboxToken == null ? void 0 : getSandboxToken();
|
|
@@ -34604,7 +34631,7 @@ class ShipEngineAPI {
|
|
|
34604
34631
|
}
|
|
34605
34632
|
return res;
|
|
34606
34633
|
},
|
|
34607
|
-
(err) => __async$
|
|
34634
|
+
(err) => __async$13(this, null, function* () {
|
|
34608
34635
|
var _a, _b, _c, _d, _e;
|
|
34609
34636
|
if (debug) {
|
|
34610
34637
|
logger$1.error(
|
|
@@ -34653,7 +34680,7 @@ class ShipEngineAPI {
|
|
|
34653
34680
|
* that token (also known as Seller ID)
|
|
34654
34681
|
*/
|
|
34655
34682
|
getTenant(isSandbox) {
|
|
34656
|
-
return __async$
|
|
34683
|
+
return __async$13(this, null, function* () {
|
|
34657
34684
|
var _a;
|
|
34658
34685
|
if (!isSandbox) {
|
|
34659
34686
|
return this.getTenantFromToken(this.token);
|
|
@@ -34972,25 +34999,25 @@ const delay = (ms) => new Promise((resolve) => {
|
|
|
34972
34999
|
|
|
34973
35000
|
const onError = (_errors) => _default();
|
|
34974
35001
|
|
|
34975
|
-
var __defProp$
|
|
34976
|
-
var __defProps$
|
|
34977
|
-
var __getOwnPropDescs$
|
|
34978
|
-
var __getOwnPropSymbols$
|
|
34979
|
-
var __hasOwnProp$
|
|
34980
|
-
var __propIsEnum$
|
|
34981
|
-
var __defNormalProp$
|
|
34982
|
-
var __spreadValues$
|
|
35002
|
+
var __defProp$N = Object.defineProperty;
|
|
35003
|
+
var __defProps$K = Object.defineProperties;
|
|
35004
|
+
var __getOwnPropDescs$K = Object.getOwnPropertyDescriptors;
|
|
35005
|
+
var __getOwnPropSymbols$W = Object.getOwnPropertySymbols;
|
|
35006
|
+
var __hasOwnProp$W = Object.prototype.hasOwnProperty;
|
|
35007
|
+
var __propIsEnum$W = Object.prototype.propertyIsEnumerable;
|
|
35008
|
+
var __defNormalProp$N = (obj, key, value) => key in obj ? __defProp$N(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
35009
|
+
var __spreadValues$N = (a, b) => {
|
|
34983
35010
|
for (var prop in b || (b = {}))
|
|
34984
|
-
if (__hasOwnProp$
|
|
34985
|
-
__defNormalProp$
|
|
34986
|
-
if (__getOwnPropSymbols$
|
|
34987
|
-
for (var prop of __getOwnPropSymbols$
|
|
34988
|
-
if (__propIsEnum$
|
|
34989
|
-
__defNormalProp$
|
|
35011
|
+
if (__hasOwnProp$W.call(b, prop))
|
|
35012
|
+
__defNormalProp$N(a, prop, b[prop]);
|
|
35013
|
+
if (__getOwnPropSymbols$W)
|
|
35014
|
+
for (var prop of __getOwnPropSymbols$W(b)) {
|
|
35015
|
+
if (__propIsEnum$W.call(b, prop))
|
|
35016
|
+
__defNormalProp$N(a, prop, b[prop]);
|
|
34990
35017
|
}
|
|
34991
35018
|
return a;
|
|
34992
35019
|
};
|
|
34993
|
-
var __spreadProps$
|
|
35020
|
+
var __spreadProps$K = (a, b) => __defProps$K(a, __getOwnPropDescs$K(b));
|
|
34994
35021
|
const streams = [];
|
|
34995
35022
|
if (process.env.NODE_ENV === "production") {
|
|
34996
35023
|
streams.push({
|
|
@@ -34999,7 +35026,7 @@ if (process.env.NODE_ENV === "production") {
|
|
|
34999
35026
|
}
|
|
35000
35027
|
const logger = E({
|
|
35001
35028
|
name: "shipengine",
|
|
35002
|
-
serializers: __spreadProps$
|
|
35029
|
+
serializers: __spreadProps$K(__spreadValues$N({}, k), {
|
|
35003
35030
|
req: (req) => ({
|
|
35004
35031
|
headers: req.headers,
|
|
35005
35032
|
method: req.method,
|
|
@@ -35024,7 +35051,7 @@ const retryUntil = (callbackFn, retries = 10, timeoutBetweenAttempts = 1e3) => P
|
|
|
35024
35051
|
throw error;
|
|
35025
35052
|
});
|
|
35026
35053
|
|
|
35027
|
-
var __async$
|
|
35054
|
+
var __async$12 = (__this, __arguments, generator) => {
|
|
35028
35055
|
return new Promise((resolve, reject) => {
|
|
35029
35056
|
var fulfilled = (value) => {
|
|
35030
35057
|
try {
|
|
@@ -35047,7 +35074,7 @@ var __async$10 = (__this, __arguments, generator) => {
|
|
|
35047
35074
|
const useCreateAccountImage = () => {
|
|
35048
35075
|
const { client } = useShipEngine();
|
|
35049
35076
|
return useMutation({
|
|
35050
|
-
mutationFn: (data) => __async$
|
|
35077
|
+
mutationFn: (data) => __async$12(void 0, null, function* () {
|
|
35051
35078
|
const result = yield client.accountSettings.createImage(data);
|
|
35052
35079
|
return result.data;
|
|
35053
35080
|
}),
|
|
@@ -35056,7 +35083,7 @@ const useCreateAccountImage = () => {
|
|
|
35056
35083
|
});
|
|
35057
35084
|
};
|
|
35058
35085
|
|
|
35059
|
-
var __async
|
|
35086
|
+
var __async$11 = (__this, __arguments, generator) => {
|
|
35060
35087
|
return new Promise((resolve, reject) => {
|
|
35061
35088
|
var fulfilled = (value) => {
|
|
35062
35089
|
try {
|
|
@@ -35079,7 +35106,7 @@ var __async$$ = (__this, __arguments, generator) => {
|
|
|
35079
35106
|
const useDeleteAccountImage = () => {
|
|
35080
35107
|
const { client } = useShipEngine();
|
|
35081
35108
|
return useMutation({
|
|
35082
|
-
mutationFn: (labelImageId) => __async
|
|
35109
|
+
mutationFn: (labelImageId) => __async$11(void 0, null, function* () {
|
|
35083
35110
|
const result = yield client.accountSettings.deleteImage(labelImageId);
|
|
35084
35111
|
return result.data;
|
|
35085
35112
|
}),
|
|
@@ -35108,7 +35135,7 @@ const useGetAccountSettings = () => {
|
|
|
35108
35135
|
});
|
|
35109
35136
|
};
|
|
35110
35137
|
|
|
35111
|
-
var __async$
|
|
35138
|
+
var __async$10 = (__this, __arguments, generator) => {
|
|
35112
35139
|
return new Promise((resolve, reject) => {
|
|
35113
35140
|
var fulfilled = (value) => {
|
|
35114
35141
|
try {
|
|
@@ -35131,7 +35158,7 @@ var __async$_ = (__this, __arguments, generator) => {
|
|
|
35131
35158
|
const useUpdateAccountImage = () => {
|
|
35132
35159
|
const { client } = useShipEngine();
|
|
35133
35160
|
return useMutation({
|
|
35134
|
-
mutationFn: (data) => __async$
|
|
35161
|
+
mutationFn: (data) => __async$10(void 0, null, function* () {
|
|
35135
35162
|
const result = yield client.accountSettings.updateImage(data);
|
|
35136
35163
|
return result.data;
|
|
35137
35164
|
}),
|
|
@@ -35140,7 +35167,7 @@ const useUpdateAccountImage = () => {
|
|
|
35140
35167
|
});
|
|
35141
35168
|
};
|
|
35142
35169
|
|
|
35143
|
-
var __async
|
|
35170
|
+
var __async$$ = (__this, __arguments, generator) => {
|
|
35144
35171
|
return new Promise((resolve, reject) => {
|
|
35145
35172
|
var fulfilled = (value) => {
|
|
35146
35173
|
try {
|
|
@@ -35163,7 +35190,7 @@ var __async$Z = (__this, __arguments, generator) => {
|
|
|
35163
35190
|
const useUpdateAccountSettings = () => {
|
|
35164
35191
|
const { client } = useShipEngine();
|
|
35165
35192
|
return useMutation({
|
|
35166
|
-
mutationFn: (settings) => __async
|
|
35193
|
+
mutationFn: (settings) => __async$$(void 0, null, function* () {
|
|
35167
35194
|
const result = yield client.accountSettings.update(settings);
|
|
35168
35195
|
return result.data;
|
|
35169
35196
|
}),
|
|
@@ -35172,6 +35199,35 @@ const useUpdateAccountSettings = () => {
|
|
|
35172
35199
|
});
|
|
35173
35200
|
};
|
|
35174
35201
|
|
|
35202
|
+
var __defProp$M = Object.defineProperty;
|
|
35203
|
+
var __defProps$J = Object.defineProperties;
|
|
35204
|
+
var __getOwnPropDescs$J = Object.getOwnPropertyDescriptors;
|
|
35205
|
+
var __getOwnPropSymbols$V = Object.getOwnPropertySymbols;
|
|
35206
|
+
var __hasOwnProp$V = Object.prototype.hasOwnProperty;
|
|
35207
|
+
var __propIsEnum$V = Object.prototype.propertyIsEnumerable;
|
|
35208
|
+
var __defNormalProp$M = (obj, key, value) => key in obj ? __defProp$M(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
35209
|
+
var __spreadValues$M = (a, b) => {
|
|
35210
|
+
for (var prop in b || (b = {}))
|
|
35211
|
+
if (__hasOwnProp$V.call(b, prop))
|
|
35212
|
+
__defNormalProp$M(a, prop, b[prop]);
|
|
35213
|
+
if (__getOwnPropSymbols$V)
|
|
35214
|
+
for (var prop of __getOwnPropSymbols$V(b)) {
|
|
35215
|
+
if (__propIsEnum$V.call(b, prop))
|
|
35216
|
+
__defNormalProp$M(a, prop, b[prop]);
|
|
35217
|
+
}
|
|
35218
|
+
return a;
|
|
35219
|
+
};
|
|
35220
|
+
var __spreadProps$J = (a, b) => __defProps$J(a, __getOwnPropDescs$J(b));
|
|
35221
|
+
const useListAccountAddons = (params) => {
|
|
35222
|
+
const { client } = useShipEngine();
|
|
35223
|
+
return useQuery(__spreadProps$J(__spreadValues$M({}, params), {
|
|
35224
|
+
onError,
|
|
35225
|
+
queryFn: () => client.accountAddons.list(),
|
|
35226
|
+
queryKey: ["useListAccountAddons"],
|
|
35227
|
+
select: (result) => result.data.addons
|
|
35228
|
+
}));
|
|
35229
|
+
};
|
|
35230
|
+
|
|
35175
35231
|
var __defProp$L = Object.defineProperty;
|
|
35176
35232
|
var __defProps$I = Object.defineProperties;
|
|
35177
35233
|
var __getOwnPropDescs$I = Object.getOwnPropertyDescriptors;
|
|
@@ -35191,13 +35247,35 @@ var __spreadValues$L = (a, b) => {
|
|
|
35191
35247
|
return a;
|
|
35192
35248
|
};
|
|
35193
35249
|
var __spreadProps$I = (a, b) => __defProps$I(a, __getOwnPropDescs$I(b));
|
|
35194
|
-
|
|
35195
|
-
|
|
35196
|
-
|
|
35197
|
-
|
|
35198
|
-
|
|
35199
|
-
|
|
35200
|
-
|
|
35250
|
+
var __async$_ = (__this, __arguments, generator) => {
|
|
35251
|
+
return new Promise((resolve, reject) => {
|
|
35252
|
+
var fulfilled = (value) => {
|
|
35253
|
+
try {
|
|
35254
|
+
step(generator.next(value));
|
|
35255
|
+
} catch (e) {
|
|
35256
|
+
reject(e);
|
|
35257
|
+
}
|
|
35258
|
+
};
|
|
35259
|
+
var rejected = (value) => {
|
|
35260
|
+
try {
|
|
35261
|
+
step(generator.throw(value));
|
|
35262
|
+
} catch (e) {
|
|
35263
|
+
reject(e);
|
|
35264
|
+
}
|
|
35265
|
+
};
|
|
35266
|
+
var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
|
|
35267
|
+
step((generator = generator.apply(__this, __arguments)).next());
|
|
35268
|
+
});
|
|
35269
|
+
};
|
|
35270
|
+
const useEnableAccountAddon = (params) => {
|
|
35271
|
+
const { client } = useShipEngine();
|
|
35272
|
+
return useMutation(__spreadProps$I(__spreadValues$L({}, params), {
|
|
35273
|
+
mutationFn: (addonType) => __async$_(void 0, null, function* () {
|
|
35274
|
+
const result = yield client.accountAddons.enable(addonType);
|
|
35275
|
+
return result.data;
|
|
35276
|
+
}),
|
|
35277
|
+
mutationKey: ["useEnableAccountAddon"],
|
|
35278
|
+
onError
|
|
35201
35279
|
}));
|
|
35202
35280
|
};
|
|
35203
35281
|
|
|
@@ -35220,7 +35298,7 @@ var __spreadValues$K = (a, b) => {
|
|
|
35220
35298
|
return a;
|
|
35221
35299
|
};
|
|
35222
35300
|
var __spreadProps$H = (a, b) => __defProps$H(a, __getOwnPropDescs$H(b));
|
|
35223
|
-
var __async$
|
|
35301
|
+
var __async$Z = (__this, __arguments, generator) => {
|
|
35224
35302
|
return new Promise((resolve, reject) => {
|
|
35225
35303
|
var fulfilled = (value) => {
|
|
35226
35304
|
try {
|
|
@@ -35240,14 +35318,14 @@ var __async$Y = (__this, __arguments, generator) => {
|
|
|
35240
35318
|
step((generator = generator.apply(__this, __arguments)).next());
|
|
35241
35319
|
});
|
|
35242
35320
|
};
|
|
35243
|
-
const
|
|
35321
|
+
const useDisableAccountAddon = (params) => {
|
|
35244
35322
|
const { client } = useShipEngine();
|
|
35245
35323
|
return useMutation(__spreadProps$H(__spreadValues$K({}, params), {
|
|
35246
|
-
mutationFn: (addonType) => __async$
|
|
35247
|
-
const result = yield client.accountAddons.
|
|
35324
|
+
mutationFn: (addonType) => __async$Z(void 0, null, function* () {
|
|
35325
|
+
const result = yield client.accountAddons.disable(addonType);
|
|
35248
35326
|
return result.data;
|
|
35249
35327
|
}),
|
|
35250
|
-
mutationKey: ["
|
|
35328
|
+
mutationKey: ["useDisableAccountAddon"],
|
|
35251
35329
|
onError
|
|
35252
35330
|
}));
|
|
35253
35331
|
};
|
|
@@ -35271,60 +35349,9 @@ var __spreadValues$J = (a, b) => {
|
|
|
35271
35349
|
return a;
|
|
35272
35350
|
};
|
|
35273
35351
|
var __spreadProps$G = (a, b) => __defProps$G(a, __getOwnPropDescs$G(b));
|
|
35274
|
-
var __async$X = (__this, __arguments, generator) => {
|
|
35275
|
-
return new Promise((resolve, reject) => {
|
|
35276
|
-
var fulfilled = (value) => {
|
|
35277
|
-
try {
|
|
35278
|
-
step(generator.next(value));
|
|
35279
|
-
} catch (e) {
|
|
35280
|
-
reject(e);
|
|
35281
|
-
}
|
|
35282
|
-
};
|
|
35283
|
-
var rejected = (value) => {
|
|
35284
|
-
try {
|
|
35285
|
-
step(generator.throw(value));
|
|
35286
|
-
} catch (e) {
|
|
35287
|
-
reject(e);
|
|
35288
|
-
}
|
|
35289
|
-
};
|
|
35290
|
-
var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
|
|
35291
|
-
step((generator = generator.apply(__this, __arguments)).next());
|
|
35292
|
-
});
|
|
35293
|
-
};
|
|
35294
|
-
const useDisableAccountAddon = (params) => {
|
|
35295
|
-
const { client } = useShipEngine();
|
|
35296
|
-
return useMutation(__spreadProps$G(__spreadValues$J({}, params), {
|
|
35297
|
-
mutationFn: (addonType) => __async$X(void 0, null, function* () {
|
|
35298
|
-
const result = yield client.accountAddons.disable(addonType);
|
|
35299
|
-
return result.data;
|
|
35300
|
-
}),
|
|
35301
|
-
mutationKey: ["useDisableAccountAddon"],
|
|
35302
|
-
onError
|
|
35303
|
-
}));
|
|
35304
|
-
};
|
|
35305
|
-
|
|
35306
|
-
var __defProp$I = Object.defineProperty;
|
|
35307
|
-
var __defProps$F = Object.defineProperties;
|
|
35308
|
-
var __getOwnPropDescs$F = Object.getOwnPropertyDescriptors;
|
|
35309
|
-
var __getOwnPropSymbols$R = Object.getOwnPropertySymbols;
|
|
35310
|
-
var __hasOwnProp$R = Object.prototype.hasOwnProperty;
|
|
35311
|
-
var __propIsEnum$R = Object.prototype.propertyIsEnumerable;
|
|
35312
|
-
var __defNormalProp$I = (obj, key, value) => key in obj ? __defProp$I(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
35313
|
-
var __spreadValues$I = (a, b) => {
|
|
35314
|
-
for (var prop in b || (b = {}))
|
|
35315
|
-
if (__hasOwnProp$R.call(b, prop))
|
|
35316
|
-
__defNormalProp$I(a, prop, b[prop]);
|
|
35317
|
-
if (__getOwnPropSymbols$R)
|
|
35318
|
-
for (var prop of __getOwnPropSymbols$R(b)) {
|
|
35319
|
-
if (__propIsEnum$R.call(b, prop))
|
|
35320
|
-
__defNormalProp$I(a, prop, b[prop]);
|
|
35321
|
-
}
|
|
35322
|
-
return a;
|
|
35323
|
-
};
|
|
35324
|
-
var __spreadProps$F = (a, b) => __defProps$F(a, __getOwnPropDescs$F(b));
|
|
35325
35352
|
const useListAccountFeatures = (params) => {
|
|
35326
35353
|
const { client } = useShipEngine();
|
|
35327
|
-
return useQuery(__spreadProps$
|
|
35354
|
+
return useQuery(__spreadProps$G(__spreadValues$J({}, params), {
|
|
35328
35355
|
onError,
|
|
35329
35356
|
queryFn: () => client.accountFeatures.list(),
|
|
35330
35357
|
queryKey: ["useListAccountFeatures"],
|
|
@@ -35332,7 +35359,7 @@ const useListAccountFeatures = (params) => {
|
|
|
35332
35359
|
}));
|
|
35333
35360
|
};
|
|
35334
35361
|
|
|
35335
|
-
var __async$
|
|
35362
|
+
var __async$Y = (__this, __arguments, generator) => {
|
|
35336
35363
|
return new Promise((resolve, reject) => {
|
|
35337
35364
|
var fulfilled = (value) => {
|
|
35338
35365
|
try {
|
|
@@ -35355,7 +35382,7 @@ var __async$W = (__this, __arguments, generator) => {
|
|
|
35355
35382
|
const useRequestAccountFeature = () => {
|
|
35356
35383
|
const { client } = useShipEngine();
|
|
35357
35384
|
return useMutation({
|
|
35358
|
-
mutationFn: (request) => __async$
|
|
35385
|
+
mutationFn: (request) => __async$Y(void 0, null, function* () {
|
|
35359
35386
|
const result = yield client.accountFeatures.request(request);
|
|
35360
35387
|
return result.data;
|
|
35361
35388
|
}),
|
|
@@ -35364,7 +35391,7 @@ const useRequestAccountFeature = () => {
|
|
|
35364
35391
|
});
|
|
35365
35392
|
};
|
|
35366
35393
|
|
|
35367
|
-
var __async$
|
|
35394
|
+
var __async$X = (__this, __arguments, generator) => {
|
|
35368
35395
|
return new Promise((resolve, reject) => {
|
|
35369
35396
|
var fulfilled = (value) => {
|
|
35370
35397
|
try {
|
|
@@ -35387,7 +35414,7 @@ var __async$V = (__this, __arguments, generator) => {
|
|
|
35387
35414
|
const useParseAddress = () => {
|
|
35388
35415
|
const { client } = useShipEngine();
|
|
35389
35416
|
return useMutation({
|
|
35390
|
-
mutationFn: (_0) => __async$
|
|
35417
|
+
mutationFn: (_0) => __async$X(void 0, [_0], function* ({ address, text }) {
|
|
35391
35418
|
const result = yield client.addresses.parse(text, address);
|
|
35392
35419
|
return result.data;
|
|
35393
35420
|
}),
|
|
@@ -35396,7 +35423,7 @@ const useParseAddress = () => {
|
|
|
35396
35423
|
});
|
|
35397
35424
|
};
|
|
35398
35425
|
|
|
35399
|
-
var __async$
|
|
35426
|
+
var __async$W = (__this, __arguments, generator) => {
|
|
35400
35427
|
return new Promise((resolve, reject) => {
|
|
35401
35428
|
var fulfilled = (value) => {
|
|
35402
35429
|
try {
|
|
@@ -35419,7 +35446,7 @@ var __async$U = (__this, __arguments, generator) => {
|
|
|
35419
35446
|
const useValidateAddresses = () => {
|
|
35420
35447
|
const { client } = useShipEngine();
|
|
35421
35448
|
return useMutation({
|
|
35422
|
-
mutationFn: (addresses) => __async$
|
|
35449
|
+
mutationFn: (addresses) => __async$W(void 0, null, function* () {
|
|
35423
35450
|
const result = yield client.addresses.validate(addresses);
|
|
35424
35451
|
return result.data;
|
|
35425
35452
|
}),
|
|
@@ -35428,26 +35455,26 @@ const useValidateAddresses = () => {
|
|
|
35428
35455
|
});
|
|
35429
35456
|
};
|
|
35430
35457
|
|
|
35431
|
-
var __defProp$
|
|
35432
|
-
var __defProps$
|
|
35433
|
-
var __getOwnPropDescs$
|
|
35434
|
-
var __getOwnPropSymbols$
|
|
35435
|
-
var __hasOwnProp$
|
|
35436
|
-
var __propIsEnum$
|
|
35437
|
-
var __defNormalProp$
|
|
35438
|
-
var __spreadValues$
|
|
35458
|
+
var __defProp$I = Object.defineProperty;
|
|
35459
|
+
var __defProps$F = Object.defineProperties;
|
|
35460
|
+
var __getOwnPropDescs$F = Object.getOwnPropertyDescriptors;
|
|
35461
|
+
var __getOwnPropSymbols$R = Object.getOwnPropertySymbols;
|
|
35462
|
+
var __hasOwnProp$R = Object.prototype.hasOwnProperty;
|
|
35463
|
+
var __propIsEnum$R = Object.prototype.propertyIsEnumerable;
|
|
35464
|
+
var __defNormalProp$I = (obj, key, value) => key in obj ? __defProp$I(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
35465
|
+
var __spreadValues$I = (a, b) => {
|
|
35439
35466
|
for (var prop in b || (b = {}))
|
|
35440
|
-
if (__hasOwnProp$
|
|
35441
|
-
__defNormalProp$
|
|
35442
|
-
if (__getOwnPropSymbols$
|
|
35443
|
-
for (var prop of __getOwnPropSymbols$
|
|
35444
|
-
if (__propIsEnum$
|
|
35445
|
-
__defNormalProp$
|
|
35467
|
+
if (__hasOwnProp$R.call(b, prop))
|
|
35468
|
+
__defNormalProp$I(a, prop, b[prop]);
|
|
35469
|
+
if (__getOwnPropSymbols$R)
|
|
35470
|
+
for (var prop of __getOwnPropSymbols$R(b)) {
|
|
35471
|
+
if (__propIsEnum$R.call(b, prop))
|
|
35472
|
+
__defNormalProp$I(a, prop, b[prop]);
|
|
35446
35473
|
}
|
|
35447
35474
|
return a;
|
|
35448
35475
|
};
|
|
35449
|
-
var __spreadProps$
|
|
35450
|
-
var __async$
|
|
35476
|
+
var __spreadProps$F = (a, b) => __defProps$F(a, __getOwnPropDescs$F(b));
|
|
35477
|
+
var __async$V = (__this, __arguments, generator) => {
|
|
35451
35478
|
return new Promise((resolve, reject) => {
|
|
35452
35479
|
var fulfilled = (value) => {
|
|
35453
35480
|
try {
|
|
@@ -35469,8 +35496,8 @@ var __async$T = (__this, __arguments, generator) => {
|
|
|
35469
35496
|
};
|
|
35470
35497
|
const useCreateAuctanePaySession = (params) => {
|
|
35471
35498
|
const { client } = useShipEngine();
|
|
35472
|
-
return useMutation(__spreadProps$
|
|
35473
|
-
mutationFn: (request) => __async$
|
|
35499
|
+
return useMutation(__spreadProps$F(__spreadValues$I({}, params), {
|
|
35500
|
+
mutationFn: (request) => __async$V(void 0, null, function* () {
|
|
35474
35501
|
const result = yield client.auctanePay.createSession(request);
|
|
35475
35502
|
return result.data;
|
|
35476
35503
|
}),
|
|
@@ -35479,6 +35506,36 @@ const useCreateAuctanePaySession = (params) => {
|
|
|
35479
35506
|
}));
|
|
35480
35507
|
};
|
|
35481
35508
|
|
|
35509
|
+
var __defProp$H = Object.defineProperty;
|
|
35510
|
+
var __defProps$E = Object.defineProperties;
|
|
35511
|
+
var __getOwnPropDescs$E = Object.getOwnPropertyDescriptors;
|
|
35512
|
+
var __getOwnPropSymbols$Q = Object.getOwnPropertySymbols;
|
|
35513
|
+
var __hasOwnProp$Q = Object.prototype.hasOwnProperty;
|
|
35514
|
+
var __propIsEnum$Q = Object.prototype.propertyIsEnumerable;
|
|
35515
|
+
var __defNormalProp$H = (obj, key, value) => key in obj ? __defProp$H(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
35516
|
+
var __spreadValues$H = (a, b) => {
|
|
35517
|
+
for (var prop in b || (b = {}))
|
|
35518
|
+
if (__hasOwnProp$Q.call(b, prop))
|
|
35519
|
+
__defNormalProp$H(a, prop, b[prop]);
|
|
35520
|
+
if (__getOwnPropSymbols$Q)
|
|
35521
|
+
for (var prop of __getOwnPropSymbols$Q(b)) {
|
|
35522
|
+
if (__propIsEnum$Q.call(b, prop))
|
|
35523
|
+
__defNormalProp$H(a, prop, b[prop]);
|
|
35524
|
+
}
|
|
35525
|
+
return a;
|
|
35526
|
+
};
|
|
35527
|
+
var __spreadProps$E = (a, b) => __defProps$E(a, __getOwnPropDescs$E(b));
|
|
35528
|
+
const useGetAuctanePayConfig = (params) => {
|
|
35529
|
+
const { client } = useShipEngine();
|
|
35530
|
+
const queryParams = __spreadValues$H({}, params);
|
|
35531
|
+
return useQuery(__spreadProps$E(__spreadValues$H({}, queryParams), {
|
|
35532
|
+
onError,
|
|
35533
|
+
queryFn: () => client.auctanePay.getConfig(),
|
|
35534
|
+
queryKey: ["useGetAuctanePayConfig"],
|
|
35535
|
+
select: (result) => result.data
|
|
35536
|
+
}));
|
|
35537
|
+
};
|
|
35538
|
+
|
|
35482
35539
|
var __defProp$G = Object.defineProperty;
|
|
35483
35540
|
var __defProps$D = Object.defineProperties;
|
|
35484
35541
|
var __getOwnPropDescs$D = Object.getOwnPropertyDescriptors;
|
|
@@ -35498,37 +35555,7 @@ var __spreadValues$G = (a, b) => {
|
|
|
35498
35555
|
return a;
|
|
35499
35556
|
};
|
|
35500
35557
|
var __spreadProps$D = (a, b) => __defProps$D(a, __getOwnPropDescs$D(b));
|
|
35501
|
-
|
|
35502
|
-
const { client } = useShipEngine();
|
|
35503
|
-
const queryParams = __spreadValues$G({}, params);
|
|
35504
|
-
return useQuery(__spreadProps$D(__spreadValues$G({}, queryParams), {
|
|
35505
|
-
onError,
|
|
35506
|
-
queryFn: () => client.auctanePay.getConfig(),
|
|
35507
|
-
queryKey: ["useGetAuctanePayConfig"],
|
|
35508
|
-
select: (result) => result.data
|
|
35509
|
-
}));
|
|
35510
|
-
};
|
|
35511
|
-
|
|
35512
|
-
var __defProp$F = Object.defineProperty;
|
|
35513
|
-
var __defProps$C = Object.defineProperties;
|
|
35514
|
-
var __getOwnPropDescs$C = Object.getOwnPropertyDescriptors;
|
|
35515
|
-
var __getOwnPropSymbols$O = Object.getOwnPropertySymbols;
|
|
35516
|
-
var __hasOwnProp$O = Object.prototype.hasOwnProperty;
|
|
35517
|
-
var __propIsEnum$O = Object.prototype.propertyIsEnumerable;
|
|
35518
|
-
var __defNormalProp$F = (obj, key, value) => key in obj ? __defProp$F(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
35519
|
-
var __spreadValues$F = (a, b) => {
|
|
35520
|
-
for (var prop in b || (b = {}))
|
|
35521
|
-
if (__hasOwnProp$O.call(b, prop))
|
|
35522
|
-
__defNormalProp$F(a, prop, b[prop]);
|
|
35523
|
-
if (__getOwnPropSymbols$O)
|
|
35524
|
-
for (var prop of __getOwnPropSymbols$O(b)) {
|
|
35525
|
-
if (__propIsEnum$O.call(b, prop))
|
|
35526
|
-
__defNormalProp$F(a, prop, b[prop]);
|
|
35527
|
-
}
|
|
35528
|
-
return a;
|
|
35529
|
-
};
|
|
35530
|
-
var __spreadProps$C = (a, b) => __defProps$C(a, __getOwnPropDescs$C(b));
|
|
35531
|
-
var __async$S = (__this, __arguments, generator) => {
|
|
35558
|
+
var __async$U = (__this, __arguments, generator) => {
|
|
35532
35559
|
return new Promise((resolve, reject) => {
|
|
35533
35560
|
var fulfilled = (value) => {
|
|
35534
35561
|
try {
|
|
@@ -35550,8 +35577,8 @@ var __async$S = (__this, __arguments, generator) => {
|
|
|
35550
35577
|
};
|
|
35551
35578
|
const usePreviewTransaction = (params) => {
|
|
35552
35579
|
const { client } = useShipEngine();
|
|
35553
|
-
return useMutation(__spreadProps$
|
|
35554
|
-
mutationFn: (_0) => __async$
|
|
35580
|
+
return useMutation(__spreadProps$D(__spreadValues$G({}, params), {
|
|
35581
|
+
mutationFn: (_0) => __async$U(void 0, [_0], function* ({ amount, transactionCategory = "add_funds" }) {
|
|
35555
35582
|
const request = {
|
|
35556
35583
|
amount,
|
|
35557
35584
|
transactionCategory
|
|
@@ -35564,6 +35591,36 @@ const usePreviewTransaction = (params) => {
|
|
|
35564
35591
|
}));
|
|
35565
35592
|
};
|
|
35566
35593
|
|
|
35594
|
+
var __defProp$F = Object.defineProperty;
|
|
35595
|
+
var __defProps$C = Object.defineProperties;
|
|
35596
|
+
var __getOwnPropDescs$C = Object.getOwnPropertyDescriptors;
|
|
35597
|
+
var __getOwnPropSymbols$O = Object.getOwnPropertySymbols;
|
|
35598
|
+
var __hasOwnProp$O = Object.prototype.hasOwnProperty;
|
|
35599
|
+
var __propIsEnum$O = Object.prototype.propertyIsEnumerable;
|
|
35600
|
+
var __defNormalProp$F = (obj, key, value) => key in obj ? __defProp$F(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
35601
|
+
var __spreadValues$F = (a, b) => {
|
|
35602
|
+
for (var prop in b || (b = {}))
|
|
35603
|
+
if (__hasOwnProp$O.call(b, prop))
|
|
35604
|
+
__defNormalProp$F(a, prop, b[prop]);
|
|
35605
|
+
if (__getOwnPropSymbols$O)
|
|
35606
|
+
for (var prop of __getOwnPropSymbols$O(b)) {
|
|
35607
|
+
if (__propIsEnum$O.call(b, prop))
|
|
35608
|
+
__defNormalProp$F(a, prop, b[prop]);
|
|
35609
|
+
}
|
|
35610
|
+
return a;
|
|
35611
|
+
};
|
|
35612
|
+
var __spreadProps$C = (a, b) => __defProps$C(a, __getOwnPropDescs$C(b));
|
|
35613
|
+
const useGetPaymentMethods = (params) => {
|
|
35614
|
+
const { client } = useShipEngine();
|
|
35615
|
+
const queryParams = __spreadValues$F({}, params);
|
|
35616
|
+
return useQuery(__spreadProps$C(__spreadValues$F({}, queryParams), {
|
|
35617
|
+
onError,
|
|
35618
|
+
queryFn: () => client.auctanePay.getPaymentMethods(),
|
|
35619
|
+
queryKey: ["useGetPaymentMethods"],
|
|
35620
|
+
select: (result) => result.data
|
|
35621
|
+
}));
|
|
35622
|
+
};
|
|
35623
|
+
|
|
35567
35624
|
var __defProp$E = Object.defineProperty;
|
|
35568
35625
|
var __defProps$B = Object.defineProperties;
|
|
35569
35626
|
var __getOwnPropDescs$B = Object.getOwnPropertyDescriptors;
|
|
@@ -35583,14 +35640,35 @@ var __spreadValues$E = (a, b) => {
|
|
|
35583
35640
|
return a;
|
|
35584
35641
|
};
|
|
35585
35642
|
var __spreadProps$B = (a, b) => __defProps$B(a, __getOwnPropDescs$B(b));
|
|
35586
|
-
|
|
35643
|
+
var __async$T = (__this, __arguments, generator) => {
|
|
35644
|
+
return new Promise((resolve, reject) => {
|
|
35645
|
+
var fulfilled = (value) => {
|
|
35646
|
+
try {
|
|
35647
|
+
step(generator.next(value));
|
|
35648
|
+
} catch (e) {
|
|
35649
|
+
reject(e);
|
|
35650
|
+
}
|
|
35651
|
+
};
|
|
35652
|
+
var rejected = (value) => {
|
|
35653
|
+
try {
|
|
35654
|
+
step(generator.throw(value));
|
|
35655
|
+
} catch (e) {
|
|
35656
|
+
reject(e);
|
|
35657
|
+
}
|
|
35658
|
+
};
|
|
35659
|
+
var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
|
|
35660
|
+
step((generator = generator.apply(__this, __arguments)).next());
|
|
35661
|
+
});
|
|
35662
|
+
};
|
|
35663
|
+
const useDeletePaymentMethod = (params) => {
|
|
35587
35664
|
const { client } = useShipEngine();
|
|
35588
|
-
|
|
35589
|
-
|
|
35590
|
-
|
|
35591
|
-
|
|
35592
|
-
|
|
35593
|
-
|
|
35665
|
+
return useMutation(__spreadProps$B(__spreadValues$E({}, params), {
|
|
35666
|
+
mutationFn: (paymentMethodId) => __async$T(void 0, null, function* () {
|
|
35667
|
+
const result = yield client.auctanePay.deletePaymentMethod(paymentMethodId);
|
|
35668
|
+
return result.data;
|
|
35669
|
+
}),
|
|
35670
|
+
mutationKey: ["useDeletePaymentMethod"],
|
|
35671
|
+
onError
|
|
35594
35672
|
}));
|
|
35595
35673
|
};
|
|
35596
35674
|
|
|
@@ -35613,7 +35691,7 @@ var __spreadValues$D = (a, b) => {
|
|
|
35613
35691
|
return a;
|
|
35614
35692
|
};
|
|
35615
35693
|
var __spreadProps$A = (a, b) => __defProps$A(a, __getOwnPropDescs$A(b));
|
|
35616
|
-
var __async$
|
|
35694
|
+
var __async$S = (__this, __arguments, generator) => {
|
|
35617
35695
|
return new Promise((resolve, reject) => {
|
|
35618
35696
|
var fulfilled = (value) => {
|
|
35619
35697
|
try {
|
|
@@ -35633,14 +35711,14 @@ var __async$R = (__this, __arguments, generator) => {
|
|
|
35633
35711
|
step((generator = generator.apply(__this, __arguments)).next());
|
|
35634
35712
|
});
|
|
35635
35713
|
};
|
|
35636
|
-
const
|
|
35714
|
+
const useUpdatePaymentMethod = (params) => {
|
|
35637
35715
|
const { client } = useShipEngine();
|
|
35638
35716
|
return useMutation(__spreadProps$A(__spreadValues$D({}, params), {
|
|
35639
|
-
mutationFn: (
|
|
35640
|
-
const result = yield client.auctanePay.
|
|
35717
|
+
mutationFn: (_0) => __async$S(void 0, [_0], function* ({ paymentMethodId, payload }) {
|
|
35718
|
+
const result = yield client.auctanePay.updatePaymentMethod(paymentMethodId, payload);
|
|
35641
35719
|
return result.data;
|
|
35642
35720
|
}),
|
|
35643
|
-
mutationKey: ["
|
|
35721
|
+
mutationKey: ["useUpdatePaymentMethod"],
|
|
35644
35722
|
onError
|
|
35645
35723
|
}));
|
|
35646
35724
|
};
|
|
@@ -35664,7 +35742,7 @@ var __spreadValues$C = (a, b) => {
|
|
|
35664
35742
|
return a;
|
|
35665
35743
|
};
|
|
35666
35744
|
var __spreadProps$z = (a, b) => __defProps$z(a, __getOwnPropDescs$z(b));
|
|
35667
|
-
var __async$
|
|
35745
|
+
var __async$R = (__this, __arguments, generator) => {
|
|
35668
35746
|
return new Promise((resolve, reject) => {
|
|
35669
35747
|
var fulfilled = (value) => {
|
|
35670
35748
|
try {
|
|
@@ -35684,14 +35762,14 @@ var __async$Q = (__this, __arguments, generator) => {
|
|
|
35684
35762
|
step((generator = generator.apply(__this, __arguments)).next());
|
|
35685
35763
|
});
|
|
35686
35764
|
};
|
|
35687
|
-
const
|
|
35765
|
+
const useIdentityVerification = (params) => {
|
|
35688
35766
|
const { client } = useShipEngine();
|
|
35689
35767
|
return useMutation(__spreadProps$z(__spreadValues$C({}, params), {
|
|
35690
|
-
mutationFn: (
|
|
35691
|
-
const result = yield client.auctanePay.
|
|
35768
|
+
mutationFn: () => __async$R(void 0, null, function* () {
|
|
35769
|
+
const result = yield client.auctanePay.identityVerification();
|
|
35692
35770
|
return result.data;
|
|
35693
35771
|
}),
|
|
35694
|
-
mutationKey: ["
|
|
35772
|
+
mutationKey: ["useIdentityVerification"],
|
|
35695
35773
|
onError
|
|
35696
35774
|
}));
|
|
35697
35775
|
};
|
|
@@ -35715,7 +35793,18 @@ var __spreadValues$B = (a, b) => {
|
|
|
35715
35793
|
return a;
|
|
35716
35794
|
};
|
|
35717
35795
|
var __spreadProps$y = (a, b) => __defProps$y(a, __getOwnPropDescs$y(b));
|
|
35718
|
-
|
|
35796
|
+
const useGetPaymentAccount = (params) => {
|
|
35797
|
+
const { client } = useShipEngine();
|
|
35798
|
+
const queryParams = __spreadValues$B({}, params);
|
|
35799
|
+
return useQuery(__spreadProps$y(__spreadValues$B({}, queryParams), {
|
|
35800
|
+
onError,
|
|
35801
|
+
queryFn: () => client.auctanePay.getPaymentAccount(),
|
|
35802
|
+
queryKey: ["useGetPaymentAccount"],
|
|
35803
|
+
select: (result) => result.data
|
|
35804
|
+
}));
|
|
35805
|
+
};
|
|
35806
|
+
|
|
35807
|
+
var __async$Q = (__this, __arguments, generator) => {
|
|
35719
35808
|
return new Promise((resolve, reject) => {
|
|
35720
35809
|
var fulfilled = (value) => {
|
|
35721
35810
|
try {
|
|
@@ -35735,49 +35824,19 @@ var __async$P = (__this, __arguments, generator) => {
|
|
|
35735
35824
|
step((generator = generator.apply(__this, __arguments)).next());
|
|
35736
35825
|
});
|
|
35737
35826
|
};
|
|
35738
|
-
const
|
|
35827
|
+
const useAcceptCarrierTerms = (carrierId) => {
|
|
35739
35828
|
const { client } = useShipEngine();
|
|
35740
|
-
return useMutation(
|
|
35741
|
-
mutationFn: () => __async$
|
|
35742
|
-
const result = yield client.
|
|
35743
|
-
return result.data;
|
|
35744
|
-
}),
|
|
35745
|
-
mutationKey: ["
|
|
35746
|
-
onError
|
|
35747
|
-
})
|
|
35748
|
-
};
|
|
35749
|
-
|
|
35750
|
-
var __defProp$A = Object.defineProperty;
|
|
35751
|
-
var __defProps$x = Object.defineProperties;
|
|
35752
|
-
var __getOwnPropDescs$x = Object.getOwnPropertyDescriptors;
|
|
35753
|
-
var __getOwnPropSymbols$J = Object.getOwnPropertySymbols;
|
|
35754
|
-
var __hasOwnProp$J = Object.prototype.hasOwnProperty;
|
|
35755
|
-
var __propIsEnum$J = Object.prototype.propertyIsEnumerable;
|
|
35756
|
-
var __defNormalProp$A = (obj, key, value) => key in obj ? __defProp$A(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
35757
|
-
var __spreadValues$A = (a, b) => {
|
|
35758
|
-
for (var prop in b || (b = {}))
|
|
35759
|
-
if (__hasOwnProp$J.call(b, prop))
|
|
35760
|
-
__defNormalProp$A(a, prop, b[prop]);
|
|
35761
|
-
if (__getOwnPropSymbols$J)
|
|
35762
|
-
for (var prop of __getOwnPropSymbols$J(b)) {
|
|
35763
|
-
if (__propIsEnum$J.call(b, prop))
|
|
35764
|
-
__defNormalProp$A(a, prop, b[prop]);
|
|
35765
|
-
}
|
|
35766
|
-
return a;
|
|
35767
|
-
};
|
|
35768
|
-
var __spreadProps$x = (a, b) => __defProps$x(a, __getOwnPropDescs$x(b));
|
|
35769
|
-
const useGetPaymentAccount = (params) => {
|
|
35770
|
-
const { client } = useShipEngine();
|
|
35771
|
-
const queryParams = __spreadValues$A({}, params);
|
|
35772
|
-
return useQuery(__spreadProps$x(__spreadValues$A({}, queryParams), {
|
|
35773
|
-
onError,
|
|
35774
|
-
queryFn: () => client.auctanePay.getPaymentAccount(),
|
|
35775
|
-
queryKey: ["useGetPaymentAccount"],
|
|
35776
|
-
select: (result) => result.data
|
|
35777
|
-
}));
|
|
35829
|
+
return useMutation({
|
|
35830
|
+
mutationFn: (request) => __async$Q(void 0, null, function* () {
|
|
35831
|
+
const result = yield client.carriers.acceptTerms(carrierId, request);
|
|
35832
|
+
return result.data.acceptedTerms;
|
|
35833
|
+
}),
|
|
35834
|
+
mutationKey: ["useAcceptCarrierTerms", carrierId],
|
|
35835
|
+
onError
|
|
35836
|
+
});
|
|
35778
35837
|
};
|
|
35779
35838
|
|
|
35780
|
-
var __async$
|
|
35839
|
+
var __async$P = (__this, __arguments, generator) => {
|
|
35781
35840
|
return new Promise((resolve, reject) => {
|
|
35782
35841
|
var fulfilled = (value) => {
|
|
35783
35842
|
try {
|
|
@@ -35800,7 +35859,7 @@ var __async$O = (__this, __arguments, generator) => {
|
|
|
35800
35859
|
const useAddFunds = () => {
|
|
35801
35860
|
const { client } = useShipEngine();
|
|
35802
35861
|
return useMutation({
|
|
35803
|
-
mutationFn: (_0) => __async$
|
|
35862
|
+
mutationFn: (_0) => __async$P(void 0, [_0], function* ({ carrierId, funds }) {
|
|
35804
35863
|
const result = yield client.carriers.addFunds(carrierId, funds);
|
|
35805
35864
|
return result.data;
|
|
35806
35865
|
}),
|
|
@@ -35809,7 +35868,7 @@ const useAddFunds = () => {
|
|
|
35809
35868
|
});
|
|
35810
35869
|
};
|
|
35811
35870
|
|
|
35812
|
-
var __async$
|
|
35871
|
+
var __async$O = (__this, __arguments, generator) => {
|
|
35813
35872
|
return new Promise((resolve, reject) => {
|
|
35814
35873
|
var fulfilled = (value) => {
|
|
35815
35874
|
try {
|
|
@@ -35832,7 +35891,7 @@ var __async$N = (__this, __arguments, generator) => {
|
|
|
35832
35891
|
const useConnectCarrier = () => {
|
|
35833
35892
|
const { client } = useShipEngine();
|
|
35834
35893
|
return useMutation({
|
|
35835
|
-
mutationFn: (params) => __async$
|
|
35894
|
+
mutationFn: (params) => __async$O(void 0, null, function* () {
|
|
35836
35895
|
const result = yield client.carriers.connect(params);
|
|
35837
35896
|
return result.data;
|
|
35838
35897
|
}),
|
|
@@ -35941,41 +36000,41 @@ const useGetServicesByCarrier = (carrierId) => {
|
|
|
35941
36000
|
});
|
|
35942
36001
|
};
|
|
35943
36002
|
|
|
35944
|
-
var __defProp$
|
|
35945
|
-
var __defProps$
|
|
35946
|
-
var __getOwnPropDescs$
|
|
35947
|
-
var __getOwnPropSymbols$
|
|
35948
|
-
var __hasOwnProp$
|
|
35949
|
-
var __propIsEnum$
|
|
35950
|
-
var __defNormalProp$
|
|
35951
|
-
var __spreadValues$
|
|
36003
|
+
var __defProp$A = Object.defineProperty;
|
|
36004
|
+
var __defProps$x = Object.defineProperties;
|
|
36005
|
+
var __getOwnPropDescs$x = Object.getOwnPropertyDescriptors;
|
|
36006
|
+
var __getOwnPropSymbols$J = Object.getOwnPropertySymbols;
|
|
36007
|
+
var __hasOwnProp$J = Object.prototype.hasOwnProperty;
|
|
36008
|
+
var __propIsEnum$J = Object.prototype.propertyIsEnumerable;
|
|
36009
|
+
var __defNormalProp$A = (obj, key, value) => key in obj ? __defProp$A(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
36010
|
+
var __spreadValues$A = (a, b) => {
|
|
35952
36011
|
for (var prop in b || (b = {}))
|
|
35953
|
-
if (__hasOwnProp$
|
|
35954
|
-
__defNormalProp$
|
|
35955
|
-
if (__getOwnPropSymbols$
|
|
35956
|
-
for (var prop of __getOwnPropSymbols$
|
|
35957
|
-
if (__propIsEnum$
|
|
35958
|
-
__defNormalProp$
|
|
36012
|
+
if (__hasOwnProp$J.call(b, prop))
|
|
36013
|
+
__defNormalProp$A(a, prop, b[prop]);
|
|
36014
|
+
if (__getOwnPropSymbols$J)
|
|
36015
|
+
for (var prop of __getOwnPropSymbols$J(b)) {
|
|
36016
|
+
if (__propIsEnum$J.call(b, prop))
|
|
36017
|
+
__defNormalProp$A(a, prop, b[prop]);
|
|
35959
36018
|
}
|
|
35960
36019
|
return a;
|
|
35961
36020
|
};
|
|
35962
|
-
var __spreadProps$
|
|
36021
|
+
var __spreadProps$x = (a, b) => __defProps$x(a, __getOwnPropDescs$x(b));
|
|
35963
36022
|
var __objRest$r = (source, exclude) => {
|
|
35964
36023
|
var target = {};
|
|
35965
36024
|
for (var prop in source)
|
|
35966
|
-
if (__hasOwnProp$
|
|
36025
|
+
if (__hasOwnProp$J.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
35967
36026
|
target[prop] = source[prop];
|
|
35968
|
-
if (source != null && __getOwnPropSymbols$
|
|
35969
|
-
for (var prop of __getOwnPropSymbols$
|
|
35970
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
36027
|
+
if (source != null && __getOwnPropSymbols$J)
|
|
36028
|
+
for (var prop of __getOwnPropSymbols$J(source)) {
|
|
36029
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$J.call(source, prop))
|
|
35971
36030
|
target[prop] = source[prop];
|
|
35972
36031
|
}
|
|
35973
36032
|
return target;
|
|
35974
36033
|
};
|
|
35975
36034
|
const useListCarriers = (params) => {
|
|
35976
36035
|
const { client } = useShipEngine();
|
|
35977
|
-
const _a = __spreadValues$
|
|
35978
|
-
return useQuery(__spreadProps$
|
|
36036
|
+
const _a = __spreadValues$A({}, params), { queryFnParams } = _a, rest = __objRest$r(_a, ["queryFnParams"]);
|
|
36037
|
+
return useQuery(__spreadProps$x(__spreadValues$A({}, rest), {
|
|
35979
36038
|
onError,
|
|
35980
36039
|
queryFn: () => client.carriers.list(queryFnParams),
|
|
35981
36040
|
queryKey: ["useListCarriers", queryFnParams],
|
|
@@ -35983,22 +36042,22 @@ const useListCarriers = (params) => {
|
|
|
35983
36042
|
}));
|
|
35984
36043
|
};
|
|
35985
36044
|
|
|
35986
|
-
var __getOwnPropSymbols$
|
|
35987
|
-
var __hasOwnProp$
|
|
35988
|
-
var __propIsEnum$
|
|
36045
|
+
var __getOwnPropSymbols$I = Object.getOwnPropertySymbols;
|
|
36046
|
+
var __hasOwnProp$I = Object.prototype.hasOwnProperty;
|
|
36047
|
+
var __propIsEnum$I = Object.prototype.propertyIsEnumerable;
|
|
35989
36048
|
var __objRest$q = (source, exclude) => {
|
|
35990
36049
|
var target = {};
|
|
35991
36050
|
for (var prop in source)
|
|
35992
|
-
if (__hasOwnProp$
|
|
36051
|
+
if (__hasOwnProp$I.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
35993
36052
|
target[prop] = source[prop];
|
|
35994
|
-
if (source != null && __getOwnPropSymbols$
|
|
35995
|
-
for (var prop of __getOwnPropSymbols$
|
|
35996
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
36053
|
+
if (source != null && __getOwnPropSymbols$I)
|
|
36054
|
+
for (var prop of __getOwnPropSymbols$I(source)) {
|
|
36055
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$I.call(source, prop))
|
|
35997
36056
|
target[prop] = source[prop];
|
|
35998
36057
|
}
|
|
35999
36058
|
return target;
|
|
36000
36059
|
};
|
|
36001
|
-
var __async$
|
|
36060
|
+
var __async$N = (__this, __arguments, generator) => {
|
|
36002
36061
|
return new Promise((resolve, reject) => {
|
|
36003
36062
|
var fulfilled = (value) => {
|
|
36004
36063
|
try {
|
|
@@ -36022,7 +36081,7 @@ const useUpdateAutoFunding = () => {
|
|
|
36022
36081
|
const { client } = useShipEngine();
|
|
36023
36082
|
const queryClient = useQueryClient();
|
|
36024
36083
|
return useMutation({
|
|
36025
|
-
mutationFn: (_a) => __async$
|
|
36084
|
+
mutationFn: (_a) => __async$N(void 0, null, function* () {
|
|
36026
36085
|
var _b = _a, { carrierId } = _b, options = __objRest$q(_b, ["carrierId"]);
|
|
36027
36086
|
const result = yield client.carriers.updateAutoFunding(carrierId, options);
|
|
36028
36087
|
return result.data;
|
|
@@ -36052,7 +36111,7 @@ const useGetZonesByCarrier = (carrierId) => {
|
|
|
36052
36111
|
});
|
|
36053
36112
|
};
|
|
36054
36113
|
|
|
36055
|
-
var __async$
|
|
36114
|
+
var __async$M = (__this, __arguments, generator) => {
|
|
36056
36115
|
return new Promise((resolve, reject) => {
|
|
36057
36116
|
var fulfilled = (value) => {
|
|
36058
36117
|
try {
|
|
@@ -36075,7 +36134,7 @@ var __async$L = (__this, __arguments, generator) => {
|
|
|
36075
36134
|
const useDeleteCarrier = () => {
|
|
36076
36135
|
const { client } = useShipEngine();
|
|
36077
36136
|
return useMutation({
|
|
36078
|
-
mutationFn: (carrierId) => __async$
|
|
36137
|
+
mutationFn: (carrierId) => __async$M(void 0, null, function* () {
|
|
36079
36138
|
const result = yield client.carriers.delete(carrierId);
|
|
36080
36139
|
return result.data;
|
|
36081
36140
|
}),
|
|
@@ -36084,17 +36143,17 @@ const useDeleteCarrier = () => {
|
|
|
36084
36143
|
});
|
|
36085
36144
|
};
|
|
36086
36145
|
|
|
36087
|
-
var __getOwnPropSymbols$
|
|
36088
|
-
var __hasOwnProp$
|
|
36089
|
-
var __propIsEnum$
|
|
36146
|
+
var __getOwnPropSymbols$H = Object.getOwnPropertySymbols;
|
|
36147
|
+
var __hasOwnProp$H = Object.prototype.hasOwnProperty;
|
|
36148
|
+
var __propIsEnum$H = Object.prototype.propertyIsEnumerable;
|
|
36090
36149
|
var __objRest$p = (source, exclude) => {
|
|
36091
36150
|
var target = {};
|
|
36092
36151
|
for (var prop in source)
|
|
36093
|
-
if (__hasOwnProp$
|
|
36152
|
+
if (__hasOwnProp$H.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
36094
36153
|
target[prop] = source[prop];
|
|
36095
|
-
if (source != null && __getOwnPropSymbols$
|
|
36096
|
-
for (var prop of __getOwnPropSymbols$
|
|
36097
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
36154
|
+
if (source != null && __getOwnPropSymbols$H)
|
|
36155
|
+
for (var prop of __getOwnPropSymbols$H(source)) {
|
|
36156
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$H.call(source, prop))
|
|
36098
36157
|
target[prop] = source[prop];
|
|
36099
36158
|
}
|
|
36100
36159
|
return target;
|
|
@@ -36111,17 +36170,17 @@ const useGetCarrierConnectionForm = (_params) => {
|
|
|
36111
36170
|
});
|
|
36112
36171
|
};
|
|
36113
36172
|
|
|
36114
|
-
var __getOwnPropSymbols$
|
|
36115
|
-
var __hasOwnProp$
|
|
36116
|
-
var __propIsEnum$
|
|
36173
|
+
var __getOwnPropSymbols$G = Object.getOwnPropertySymbols;
|
|
36174
|
+
var __hasOwnProp$G = Object.prototype.hasOwnProperty;
|
|
36175
|
+
var __propIsEnum$G = Object.prototype.propertyIsEnumerable;
|
|
36117
36176
|
var __objRest$o = (source, exclude) => {
|
|
36118
36177
|
var target = {};
|
|
36119
36178
|
for (var prop in source)
|
|
36120
|
-
if (__hasOwnProp$
|
|
36179
|
+
if (__hasOwnProp$G.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
36121
36180
|
target[prop] = source[prop];
|
|
36122
|
-
if (source != null && __getOwnPropSymbols$
|
|
36123
|
-
for (var prop of __getOwnPropSymbols$
|
|
36124
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
36181
|
+
if (source != null && __getOwnPropSymbols$G)
|
|
36182
|
+
for (var prop of __getOwnPropSymbols$G(source)) {
|
|
36183
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$G.call(source, prop))
|
|
36125
36184
|
target[prop] = source[prop];
|
|
36126
36185
|
}
|
|
36127
36186
|
return target;
|
|
@@ -36138,26 +36197,26 @@ const useListCarrierConnections = (_params) => {
|
|
|
36138
36197
|
});
|
|
36139
36198
|
};
|
|
36140
36199
|
|
|
36141
|
-
var __defProp$
|
|
36142
|
-
var __defProps$
|
|
36143
|
-
var __getOwnPropDescs$
|
|
36144
|
-
var __getOwnPropSymbols$
|
|
36145
|
-
var __hasOwnProp$
|
|
36146
|
-
var __propIsEnum$
|
|
36147
|
-
var __defNormalProp$
|
|
36148
|
-
var __spreadValues$
|
|
36200
|
+
var __defProp$z = Object.defineProperty;
|
|
36201
|
+
var __defProps$w = Object.defineProperties;
|
|
36202
|
+
var __getOwnPropDescs$w = Object.getOwnPropertyDescriptors;
|
|
36203
|
+
var __getOwnPropSymbols$F = Object.getOwnPropertySymbols;
|
|
36204
|
+
var __hasOwnProp$F = Object.prototype.hasOwnProperty;
|
|
36205
|
+
var __propIsEnum$F = Object.prototype.propertyIsEnumerable;
|
|
36206
|
+
var __defNormalProp$z = (obj, key, value) => key in obj ? __defProp$z(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
36207
|
+
var __spreadValues$z = (a, b) => {
|
|
36149
36208
|
for (var prop in b || (b = {}))
|
|
36150
|
-
if (__hasOwnProp$
|
|
36151
|
-
__defNormalProp$
|
|
36152
|
-
if (__getOwnPropSymbols$
|
|
36153
|
-
for (var prop of __getOwnPropSymbols$
|
|
36154
|
-
if (__propIsEnum$
|
|
36155
|
-
__defNormalProp$
|
|
36209
|
+
if (__hasOwnProp$F.call(b, prop))
|
|
36210
|
+
__defNormalProp$z(a, prop, b[prop]);
|
|
36211
|
+
if (__getOwnPropSymbols$F)
|
|
36212
|
+
for (var prop of __getOwnPropSymbols$F(b)) {
|
|
36213
|
+
if (__propIsEnum$F.call(b, prop))
|
|
36214
|
+
__defNormalProp$z(a, prop, b[prop]);
|
|
36156
36215
|
}
|
|
36157
36216
|
return a;
|
|
36158
36217
|
};
|
|
36159
|
-
var __spreadProps$
|
|
36160
|
-
var __async$
|
|
36218
|
+
var __spreadProps$w = (a, b) => __defProps$w(a, __getOwnPropDescs$w(b));
|
|
36219
|
+
var __async$L = (__this, __arguments, generator) => {
|
|
36161
36220
|
return new Promise((resolve, reject) => {
|
|
36162
36221
|
var fulfilled = (value) => {
|
|
36163
36222
|
try {
|
|
@@ -36180,8 +36239,8 @@ var __async$K = (__this, __arguments, generator) => {
|
|
|
36180
36239
|
const useConnectCarrierAccount = () => {
|
|
36181
36240
|
const { client } = useShipEngine();
|
|
36182
36241
|
return useMutation({
|
|
36183
|
-
mutationFn: (_0) => __async$
|
|
36184
|
-
const formDataWithFlag = __spreadProps$
|
|
36242
|
+
mutationFn: (_0) => __async$L(void 0, [_0], function* ({ carrierName, formData }) {
|
|
36243
|
+
const formDataWithFlag = __spreadProps$w(__spreadValues$z({}, formData), { __skipDecamelize: true });
|
|
36185
36244
|
const result = yield client.connections.connectCarrier(carrierName, formDataWithFlag);
|
|
36186
36245
|
return result.data;
|
|
36187
36246
|
}),
|
|
@@ -36201,33 +36260,33 @@ const useCarrierConnectionsServicesList = (carrierCode) => {
|
|
|
36201
36260
|
});
|
|
36202
36261
|
};
|
|
36203
36262
|
|
|
36204
|
-
var __defProp$
|
|
36205
|
-
var __defProps$
|
|
36206
|
-
var __getOwnPropDescs$
|
|
36207
|
-
var __getOwnPropSymbols$
|
|
36208
|
-
var __hasOwnProp$
|
|
36209
|
-
var __propIsEnum$
|
|
36210
|
-
var __defNormalProp$
|
|
36211
|
-
var __spreadValues$
|
|
36263
|
+
var __defProp$y = Object.defineProperty;
|
|
36264
|
+
var __defProps$v = Object.defineProperties;
|
|
36265
|
+
var __getOwnPropDescs$v = Object.getOwnPropertyDescriptors;
|
|
36266
|
+
var __getOwnPropSymbols$E = Object.getOwnPropertySymbols;
|
|
36267
|
+
var __hasOwnProp$E = Object.prototype.hasOwnProperty;
|
|
36268
|
+
var __propIsEnum$E = Object.prototype.propertyIsEnumerable;
|
|
36269
|
+
var __defNormalProp$y = (obj, key, value) => key in obj ? __defProp$y(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
36270
|
+
var __spreadValues$y = (a, b) => {
|
|
36212
36271
|
for (var prop in b || (b = {}))
|
|
36213
|
-
if (__hasOwnProp$
|
|
36214
|
-
__defNormalProp$
|
|
36215
|
-
if (__getOwnPropSymbols$
|
|
36216
|
-
for (var prop of __getOwnPropSymbols$
|
|
36217
|
-
if (__propIsEnum$
|
|
36218
|
-
__defNormalProp$
|
|
36272
|
+
if (__hasOwnProp$E.call(b, prop))
|
|
36273
|
+
__defNormalProp$y(a, prop, b[prop]);
|
|
36274
|
+
if (__getOwnPropSymbols$E)
|
|
36275
|
+
for (var prop of __getOwnPropSymbols$E(b)) {
|
|
36276
|
+
if (__propIsEnum$E.call(b, prop))
|
|
36277
|
+
__defNormalProp$y(a, prop, b[prop]);
|
|
36219
36278
|
}
|
|
36220
36279
|
return a;
|
|
36221
36280
|
};
|
|
36222
|
-
var __spreadProps$
|
|
36281
|
+
var __spreadProps$v = (a, b) => __defProps$v(a, __getOwnPropDescs$v(b));
|
|
36223
36282
|
var __objRest$n = (source, exclude) => {
|
|
36224
36283
|
var target = {};
|
|
36225
36284
|
for (var prop in source)
|
|
36226
|
-
if (__hasOwnProp$
|
|
36285
|
+
if (__hasOwnProp$E.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
36227
36286
|
target[prop] = source[prop];
|
|
36228
|
-
if (source != null && __getOwnPropSymbols$
|
|
36229
|
-
for (var prop of __getOwnPropSymbols$
|
|
36230
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
36287
|
+
if (source != null && __getOwnPropSymbols$E)
|
|
36288
|
+
for (var prop of __getOwnPropSymbols$E(source)) {
|
|
36289
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$E.call(source, prop))
|
|
36231
36290
|
target[prop] = source[prop];
|
|
36232
36291
|
}
|
|
36233
36292
|
return target;
|
|
@@ -36240,7 +36299,7 @@ const useGetConnectionsCarrierSettings = (_a) => {
|
|
|
36240
36299
|
]);
|
|
36241
36300
|
const { client } = useShipEngine();
|
|
36242
36301
|
const { carrierName, carrierId } = queryFnParams;
|
|
36243
|
-
return useQuery(__spreadProps$
|
|
36302
|
+
return useQuery(__spreadProps$v(__spreadValues$y({}, params), {
|
|
36244
36303
|
onError,
|
|
36245
36304
|
queryFn: () => client.connections.getCarrierSettings(carrierName, carrierId),
|
|
36246
36305
|
queryKey: ["useGetConnectionsCarrierSettings", carrierName, carrierId],
|
|
@@ -36248,26 +36307,26 @@ const useGetConnectionsCarrierSettings = (_a) => {
|
|
|
36248
36307
|
}));
|
|
36249
36308
|
};
|
|
36250
36309
|
|
|
36251
|
-
var __defProp$
|
|
36252
|
-
var __defProps$
|
|
36253
|
-
var __getOwnPropDescs$
|
|
36254
|
-
var __getOwnPropSymbols$
|
|
36255
|
-
var __hasOwnProp$
|
|
36256
|
-
var __propIsEnum$
|
|
36257
|
-
var __defNormalProp$
|
|
36258
|
-
var __spreadValues$
|
|
36310
|
+
var __defProp$x = Object.defineProperty;
|
|
36311
|
+
var __defProps$u = Object.defineProperties;
|
|
36312
|
+
var __getOwnPropDescs$u = Object.getOwnPropertyDescriptors;
|
|
36313
|
+
var __getOwnPropSymbols$D = Object.getOwnPropertySymbols;
|
|
36314
|
+
var __hasOwnProp$D = Object.prototype.hasOwnProperty;
|
|
36315
|
+
var __propIsEnum$D = Object.prototype.propertyIsEnumerable;
|
|
36316
|
+
var __defNormalProp$x = (obj, key, value) => key in obj ? __defProp$x(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
36317
|
+
var __spreadValues$x = (a, b) => {
|
|
36259
36318
|
for (var prop in b || (b = {}))
|
|
36260
|
-
if (__hasOwnProp$
|
|
36261
|
-
__defNormalProp$
|
|
36262
|
-
if (__getOwnPropSymbols$
|
|
36263
|
-
for (var prop of __getOwnPropSymbols$
|
|
36264
|
-
if (__propIsEnum$
|
|
36265
|
-
__defNormalProp$
|
|
36319
|
+
if (__hasOwnProp$D.call(b, prop))
|
|
36320
|
+
__defNormalProp$x(a, prop, b[prop]);
|
|
36321
|
+
if (__getOwnPropSymbols$D)
|
|
36322
|
+
for (var prop of __getOwnPropSymbols$D(b)) {
|
|
36323
|
+
if (__propIsEnum$D.call(b, prop))
|
|
36324
|
+
__defNormalProp$x(a, prop, b[prop]);
|
|
36266
36325
|
}
|
|
36267
36326
|
return a;
|
|
36268
36327
|
};
|
|
36269
|
-
var __spreadProps$
|
|
36270
|
-
var __async$
|
|
36328
|
+
var __spreadProps$u = (a, b) => __defProps$u(a, __getOwnPropDescs$u(b));
|
|
36329
|
+
var __async$K = (__this, __arguments, generator) => {
|
|
36271
36330
|
return new Promise((resolve, reject) => {
|
|
36272
36331
|
var fulfilled = (value) => {
|
|
36273
36332
|
try {
|
|
@@ -36289,8 +36348,8 @@ var __async$J = (__this, __arguments, generator) => {
|
|
|
36289
36348
|
};
|
|
36290
36349
|
const useUpdateConnectionsCarrierSettings = (params) => {
|
|
36291
36350
|
const { client } = useShipEngine();
|
|
36292
|
-
return useMutation(__spreadProps$
|
|
36293
|
-
mutationFn: (_0) => __async$
|
|
36351
|
+
return useMutation(__spreadProps$u(__spreadValues$x({}, params), {
|
|
36352
|
+
mutationFn: (_0) => __async$K(void 0, [_0], function* ({
|
|
36294
36353
|
carrierName,
|
|
36295
36354
|
carrierId,
|
|
36296
36355
|
formData
|
|
@@ -36307,26 +36366,26 @@ const useUpdateConnectionsCarrierSettings = (params) => {
|
|
|
36307
36366
|
}));
|
|
36308
36367
|
};
|
|
36309
36368
|
|
|
36310
|
-
var __defProp$
|
|
36311
|
-
var __defProps$
|
|
36312
|
-
var __getOwnPropDescs$
|
|
36313
|
-
var __getOwnPropSymbols$
|
|
36314
|
-
var __hasOwnProp$
|
|
36315
|
-
var __propIsEnum$
|
|
36316
|
-
var __defNormalProp$
|
|
36317
|
-
var __spreadValues$
|
|
36369
|
+
var __defProp$w = Object.defineProperty;
|
|
36370
|
+
var __defProps$t = Object.defineProperties;
|
|
36371
|
+
var __getOwnPropDescs$t = Object.getOwnPropertyDescriptors;
|
|
36372
|
+
var __getOwnPropSymbols$C = Object.getOwnPropertySymbols;
|
|
36373
|
+
var __hasOwnProp$C = Object.prototype.hasOwnProperty;
|
|
36374
|
+
var __propIsEnum$C = Object.prototype.propertyIsEnumerable;
|
|
36375
|
+
var __defNormalProp$w = (obj, key, value) => key in obj ? __defProp$w(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
36376
|
+
var __spreadValues$w = (a, b) => {
|
|
36318
36377
|
for (var prop in b || (b = {}))
|
|
36319
|
-
if (__hasOwnProp$
|
|
36320
|
-
__defNormalProp$
|
|
36321
|
-
if (__getOwnPropSymbols$
|
|
36322
|
-
for (var prop of __getOwnPropSymbols$
|
|
36323
|
-
if (__propIsEnum$
|
|
36324
|
-
__defNormalProp$
|
|
36378
|
+
if (__hasOwnProp$C.call(b, prop))
|
|
36379
|
+
__defNormalProp$w(a, prop, b[prop]);
|
|
36380
|
+
if (__getOwnPropSymbols$C)
|
|
36381
|
+
for (var prop of __getOwnPropSymbols$C(b)) {
|
|
36382
|
+
if (__propIsEnum$C.call(b, prop))
|
|
36383
|
+
__defNormalProp$w(a, prop, b[prop]);
|
|
36325
36384
|
}
|
|
36326
36385
|
return a;
|
|
36327
36386
|
};
|
|
36328
|
-
var __spreadProps$
|
|
36329
|
-
var __async$
|
|
36387
|
+
var __spreadProps$t = (a, b) => __defProps$t(a, __getOwnPropDescs$t(b));
|
|
36388
|
+
var __async$J = (__this, __arguments, generator) => {
|
|
36330
36389
|
return new Promise((resolve, reject) => {
|
|
36331
36390
|
var fulfilled = (value) => {
|
|
36332
36391
|
try {
|
|
@@ -36348,8 +36407,8 @@ var __async$I = (__this, __arguments, generator) => {
|
|
|
36348
36407
|
};
|
|
36349
36408
|
const useRequestStampsAccountUrls = (params) => {
|
|
36350
36409
|
const { client } = useShipEngine();
|
|
36351
|
-
return useMutation(__spreadProps$
|
|
36352
|
-
mutationFn: (request) => __async$
|
|
36410
|
+
return useMutation(__spreadProps$t(__spreadValues$w({}, params), {
|
|
36411
|
+
mutationFn: (request) => __async$J(void 0, null, function* () {
|
|
36353
36412
|
const result = yield client.connections.requestStampsAccountUrls(request);
|
|
36354
36413
|
return result.data;
|
|
36355
36414
|
}),
|
|
@@ -36368,6 +36427,38 @@ const useListCustomPackageTypes = () => {
|
|
|
36368
36427
|
});
|
|
36369
36428
|
};
|
|
36370
36429
|
|
|
36430
|
+
var __async$I = (__this, __arguments, generator) => {
|
|
36431
|
+
return new Promise((resolve, reject) => {
|
|
36432
|
+
var fulfilled = (value) => {
|
|
36433
|
+
try {
|
|
36434
|
+
step(generator.next(value));
|
|
36435
|
+
} catch (e) {
|
|
36436
|
+
reject(e);
|
|
36437
|
+
}
|
|
36438
|
+
};
|
|
36439
|
+
var rejected = (value) => {
|
|
36440
|
+
try {
|
|
36441
|
+
step(generator.throw(value));
|
|
36442
|
+
} catch (e) {
|
|
36443
|
+
reject(e);
|
|
36444
|
+
}
|
|
36445
|
+
};
|
|
36446
|
+
var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
|
|
36447
|
+
step((generator = generator.apply(__this, __arguments)).next());
|
|
36448
|
+
});
|
|
36449
|
+
};
|
|
36450
|
+
const useAcceptFundingSourceTerms = (fundingSourceId) => {
|
|
36451
|
+
const { client } = useShipEngine();
|
|
36452
|
+
return useMutation({
|
|
36453
|
+
mutationFn: (request) => __async$I(void 0, null, function* () {
|
|
36454
|
+
const result = yield client.fundingSources.acceptTerms(fundingSourceId, request);
|
|
36455
|
+
return result.data.acceptedTerms;
|
|
36456
|
+
}),
|
|
36457
|
+
mutationKey: ["useAcceptFundingSourceTerms", fundingSourceId],
|
|
36458
|
+
onError
|
|
36459
|
+
});
|
|
36460
|
+
};
|
|
36461
|
+
|
|
36371
36462
|
var __async$H = (__this, __arguments, generator) => {
|
|
36372
36463
|
return new Promise((resolve, reject) => {
|
|
36373
36464
|
var fulfilled = (value) => {
|
|
@@ -36432,6 +36523,36 @@ const useFundingSourcesAddFunds = () => {
|
|
|
36432
36523
|
});
|
|
36433
36524
|
};
|
|
36434
36525
|
|
|
36526
|
+
var __defProp$v = Object.defineProperty;
|
|
36527
|
+
var __defProps$s = Object.defineProperties;
|
|
36528
|
+
var __getOwnPropDescs$s = Object.getOwnPropertyDescriptors;
|
|
36529
|
+
var __getOwnPropSymbols$B = Object.getOwnPropertySymbols;
|
|
36530
|
+
var __hasOwnProp$B = Object.prototype.hasOwnProperty;
|
|
36531
|
+
var __propIsEnum$B = Object.prototype.propertyIsEnumerable;
|
|
36532
|
+
var __defNormalProp$v = (obj, key, value) => key in obj ? __defProp$v(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
36533
|
+
var __spreadValues$v = (a, b) => {
|
|
36534
|
+
for (var prop in b || (b = {}))
|
|
36535
|
+
if (__hasOwnProp$B.call(b, prop))
|
|
36536
|
+
__defNormalProp$v(a, prop, b[prop]);
|
|
36537
|
+
if (__getOwnPropSymbols$B)
|
|
36538
|
+
for (var prop of __getOwnPropSymbols$B(b)) {
|
|
36539
|
+
if (__propIsEnum$B.call(b, prop))
|
|
36540
|
+
__defNormalProp$v(a, prop, b[prop]);
|
|
36541
|
+
}
|
|
36542
|
+
return a;
|
|
36543
|
+
};
|
|
36544
|
+
var __spreadProps$s = (a, b) => __defProps$s(a, __getOwnPropDescs$s(b));
|
|
36545
|
+
const useGetFundingSourceAcceptedTerms = (fundingSourceId, params) => {
|
|
36546
|
+
const { client } = useShipEngine();
|
|
36547
|
+
const queryParams = __spreadValues$v({}, params);
|
|
36548
|
+
return useQuery(__spreadProps$s(__spreadValues$v({}, queryParams), {
|
|
36549
|
+
onError,
|
|
36550
|
+
queryFn: () => client.fundingSources.acceptedTerms(fundingSourceId),
|
|
36551
|
+
queryKey: ["useGetFundingSourceAcceptedTerms", fundingSourceId],
|
|
36552
|
+
select: (result) => result.data.acceptedTerms
|
|
36553
|
+
}));
|
|
36554
|
+
};
|
|
36555
|
+
|
|
36435
36556
|
const useGetFundingSourceById = (fundingSourceId) => {
|
|
36436
36557
|
const { client } = useShipEngine();
|
|
36437
36558
|
return useQuery({
|
|
@@ -40292,4 +40413,4 @@ const alchemy = {
|
|
|
40292
40413
|
createElement
|
|
40293
40414
|
};
|
|
40294
40415
|
|
|
40295
|
-
export { AccountAddonsAPI, AccountBillingAPI, AccountBillingPlanAPI, AccountBillingPlanChangeType, AccountFeaturesAPI, AccountSettingsAPI, AddressesAPI, AlchemyContext, AlchemyProvider, AlchemyTestProvider, AuctanePayAPI, CarriersAPI, CodedError, ConfirmationType, ConnectionsAPI, CreditCardVendor, Currency, CustomPackagesAPI, CustomsContentsType, CustomsNonDeliveryType, Element, ErrorBoundary, FeatureId, FundingSourcesAPI, InsuranceAPI, InsuranceProviderType, InvoiceAddressAPI, LabelsAPI, MetadataCapability, MetadataRequirement, MetadataSatisfyingFormTypes, MovementIndicator, OrderSourcesAPI, RateCardStatus, RateCardsAPI, RatesAPI, types as SE, SalesOrderShipmentsAPI, SalesOrdersAPI, SellersAPI, ServicePointsAPI, ShipEngine, ShipEngineAPI, ShipEngineContext, ShipmentsAPI, ShippingRulesAPI, ThemesAPI, UsersApi, WarehousesAPI, WebhooksAPI, alchemy, camelizeKeys, decamelizeKeys, alchemy as default, delay, getEmotionCache, getEndUserIpAddress, isCodedError, isCodedErrors, isDataCodedErrors, isInvalidTokenError, logger, onError, parseError, retryUntil, useAddFunds, useAddInsuranceFunds, useAddSandboxCarriers, useAlchemy, useCalculateRates, useCancelShipment, useCarrierConnectionsServicesList, useConnectCarrier, useConnectCarrierAccount, useCreateAccountImage, useCreateAuctanePaySession, useCreateFundingSource, useCreateInvoiceAddress, useCreateLabel, useCreateLabelByRateId, useCreateLabelByShipmentId, useCreateRateCard, useCreateSalesOrderShipment, useCreateSandboxSeller, useCreateSellerApiKey, useCreateShipment, useCreateShippingRule, useCreateWarehouse, useCreateWebhook, useDeactivateOrderSource, useDeleteAccountImage, useDeleteCarrier, useDeletePaymentMethod, useDeleteRateCard, useDeleteSellerApiKey, useDeleteShippingRule, useDeleteWarehouse, useDeleteWebhook, useDisableAccountAddon, useDownloadRateCard, useEditShippingRule, useEnableAccountAddon, useExportLabels, useExportShipments, useFundingSourcesAddFunds, useGetAccountBilling, useGetAccountBillingPlan, useGetAccountImages, useGetAccountSettings, useGetAuctanePayConfig, useGetAutoFundingConfiguration, useGetCarrierById, useGetCarrierConnectionForm, useGetConnectionsCarrierSettings, useGetCountriesByCarrier, useGetCurrenciesByCarrier, useGetFundingSourceById, useGetFundingSourceMetadata, useGetFundingSourceTransactions, useGetHereToken, useGetInsuranceAccount, useGetInsuranceFundingSourceAcceptedTerms, useGetInvoiceAddress, useGetLabel, useGetPackageRatingGroupByCarrier, useGetPaymentAccount, useGetPaymentMethods, useGetRateCardById, useGetSalesOrder, useGetSalesOrderByExternalOrderId, useGetSalesOrderShipment, useGetServicePoint, useGetServicesByCarrier, useGetShipment, useGetShipmentByExternalId, useGetShipmentRates, useGetShippingRuleById, useGetShippingRuleConditionsOptions, useGetThemeById, useGetZonesByCarrier, useI18n, useIdentityVerification, useListAccountAddons, useListAccountFeatures, useListCarrierConnections, useListCarriers, useListCustomPackageTypes, useListFundingSources, useListLabels, useListLabelsInfinite, useListOrderSources, useListOrderSourcesConnections, useListRateCards, useListSalesOrderShipments, useListSalesOrderShipmentsByExternalOrderId, useListSalesOrders, useListSandboxSellerIds, useListSellerApiKeys, useListServicePoints, useListShipments, useListShippingRules, useListUsers, useListWarehouses, useListWebhooks, useLoadIcons, useNotifySalesOrderShipped, useParseAddress, usePreviewTransaction, usePublishRateCard, useRatesEstimate, useRefreshOrderSource, useRefreshOrderSourceAsync, useRegisterCarrier, useRequestAccountFeature, useRequestStampsAccountUrls, useShipEngine, useUpdateAccountBillingPlan, useUpdateAccountImage, useUpdateAccountSettings, useUpdateAutoFunding, useUpdateConnectionsCarrierSettings, useUpdateFundingSource, useUpdateInvoiceAddress, useUpdateOrderSource, useUpdatePaymentMethod, useUpdateRateCard, useUpdateSalesOrderShipment, useUpdateWarehouse, useUpdateWebhook, useUploadRateCard, useUpsertAccountBilling, useValidateAddresses, useVoidLabel };
|
|
40416
|
+
export { AccountAddonsAPI, AccountBillingAPI, AccountBillingPlanAPI, AccountBillingPlanChangeType, AccountFeaturesAPI, AccountSettingsAPI, AddressesAPI, AlchemyContext, AlchemyProvider, AlchemyTestProvider, AuctanePayAPI, CarriersAPI, CodedError, ConfirmationType, ConnectionsAPI, CreditCardVendor, Currency, CustomPackagesAPI, CustomsContentsType, CustomsNonDeliveryType, Element, ErrorBoundary, FeatureId, FundingSourcesAPI, InsuranceAPI, InsuranceProviderType, InvoiceAddressAPI, LabelsAPI, MetadataCapability, MetadataRequirement, MetadataSatisfyingFormTypes, MovementIndicator, OrderSourcesAPI, RateCardStatus, RateCardsAPI, RatesAPI, types as SE, SalesOrderShipmentsAPI, SalesOrdersAPI, SellersAPI, ServicePointsAPI, ShipEngine, ShipEngineAPI, ShipEngineContext, ShipmentsAPI, ShippingRulesAPI, ThemesAPI, UsersApi, WarehousesAPI, WebhooksAPI, alchemy, camelizeKeys, decamelizeKeys, alchemy as default, delay, getEmotionCache, getEndUserIpAddress, isCodedError, isCodedErrors, isDataCodedErrors, isInvalidTokenError, logger, onError, parseError, retryUntil, useAcceptCarrierTerms, useAcceptFundingSourceTerms, useAddFunds, useAddInsuranceFunds, useAddSandboxCarriers, useAlchemy, useCalculateRates, useCancelShipment, useCarrierConnectionsServicesList, useConnectCarrier, useConnectCarrierAccount, useCreateAccountImage, useCreateAuctanePaySession, useCreateFundingSource, useCreateInvoiceAddress, useCreateLabel, useCreateLabelByRateId, useCreateLabelByShipmentId, useCreateRateCard, useCreateSalesOrderShipment, useCreateSandboxSeller, useCreateSellerApiKey, useCreateShipment, useCreateShippingRule, useCreateWarehouse, useCreateWebhook, useDeactivateOrderSource, useDeleteAccountImage, useDeleteCarrier, useDeletePaymentMethod, useDeleteRateCard, useDeleteSellerApiKey, useDeleteShippingRule, useDeleteWarehouse, useDeleteWebhook, useDisableAccountAddon, useDownloadRateCard, useEditShippingRule, useEnableAccountAddon, useExportLabels, useExportShipments, useFundingSourcesAddFunds, useGetAccountBilling, useGetAccountBillingPlan, useGetAccountImages, useGetAccountSettings, useGetAuctanePayConfig, useGetAutoFundingConfiguration, useGetCarrierById, useGetCarrierConnectionForm, useGetConnectionsCarrierSettings, useGetCountriesByCarrier, useGetCurrenciesByCarrier, useGetFundingSourceAcceptedTerms, useGetFundingSourceById, useGetFundingSourceMetadata, useGetFundingSourceTransactions, useGetHereToken, useGetInsuranceAccount, useGetInsuranceFundingSourceAcceptedTerms, useGetInvoiceAddress, useGetLabel, useGetPackageRatingGroupByCarrier, useGetPaymentAccount, useGetPaymentMethods, useGetRateCardById, useGetSalesOrder, useGetSalesOrderByExternalOrderId, useGetSalesOrderShipment, useGetServicePoint, useGetServicesByCarrier, useGetShipment, useGetShipmentByExternalId, useGetShipmentRates, useGetShippingRuleById, useGetShippingRuleConditionsOptions, useGetThemeById, useGetZonesByCarrier, useI18n, useIdentityVerification, useListAccountAddons, useListAccountFeatures, useListCarrierConnections, useListCarriers, useListCustomPackageTypes, useListFundingSources, useListLabels, useListLabelsInfinite, useListOrderSources, useListOrderSourcesConnections, useListRateCards, useListSalesOrderShipments, useListSalesOrderShipmentsByExternalOrderId, useListSalesOrders, useListSandboxSellerIds, useListSellerApiKeys, useListServicePoints, useListShipments, useListShippingRules, useListUsers, useListWarehouses, useListWebhooks, useLoadIcons, useNotifySalesOrderShipped, useParseAddress, usePreviewTransaction, usePublishRateCard, useRatesEstimate, useRefreshOrderSource, useRefreshOrderSourceAsync, useRegisterCarrier, useRequestAccountFeature, useRequestStampsAccountUrls, useShipEngine, useUpdateAccountBillingPlan, useUpdateAccountImage, useUpdateAccountSettings, useUpdateAutoFunding, useUpdateConnectionsCarrierSettings, useUpdateFundingSource, useUpdateInvoiceAddress, useUpdateOrderSource, useUpdatePaymentMethod, useUpdateRateCard, useUpdateSalesOrderShipment, useUpdateWarehouse, useUpdateWebhook, useUploadRateCard, useUpsertAccountBilling, useValidateAddresses, useVoidLabel };
|