@shipengine/alchemy 6.0.65 → 6.0.66
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 +329 -232
- package/index.mjs +328 -233
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -10800,17 +10800,17 @@ var AccountBillingPlanChangeType = /* @__PURE__ */ ((AccountBillingPlanChangeTyp
|
|
|
10800
10800
|
return AccountBillingPlanChangeType2;
|
|
10801
10801
|
})(AccountBillingPlanChangeType || {});
|
|
10802
10802
|
|
|
10803
|
-
var __getOwnPropSymbols
|
|
10804
|
-
var __hasOwnProp
|
|
10805
|
-
var __propIsEnum
|
|
10803
|
+
var __getOwnPropSymbols$$ = Object.getOwnPropertySymbols;
|
|
10804
|
+
var __hasOwnProp$$ = Object.prototype.hasOwnProperty;
|
|
10805
|
+
var __propIsEnum$$ = Object.prototype.propertyIsEnumerable;
|
|
10806
10806
|
var __objRest$x = (source, exclude) => {
|
|
10807
10807
|
var target = {};
|
|
10808
10808
|
for (var prop in source)
|
|
10809
|
-
if (__hasOwnProp
|
|
10809
|
+
if (__hasOwnProp$$.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
10810
10810
|
target[prop] = source[prop];
|
|
10811
|
-
if (source != null && __getOwnPropSymbols
|
|
10812
|
-
for (var prop of __getOwnPropSymbols
|
|
10813
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum
|
|
10811
|
+
if (source != null && __getOwnPropSymbols$$)
|
|
10812
|
+
for (var prop of __getOwnPropSymbols$$(source)) {
|
|
10813
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$$.call(source, prop))
|
|
10814
10814
|
target[prop] = source[prop];
|
|
10815
10815
|
}
|
|
10816
10816
|
return target;
|
|
@@ -10945,17 +10945,17 @@ const types = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
|
|
|
10945
10945
|
RateCardStatus
|
|
10946
10946
|
}, Symbol.toStringTag, { value: 'Module' }));
|
|
10947
10947
|
|
|
10948
|
-
var __getOwnPropSymbols$
|
|
10949
|
-
var __hasOwnProp$
|
|
10950
|
-
var __propIsEnum$
|
|
10948
|
+
var __getOwnPropSymbols$_ = Object.getOwnPropertySymbols;
|
|
10949
|
+
var __hasOwnProp$_ = Object.prototype.hasOwnProperty;
|
|
10950
|
+
var __propIsEnum$_ = Object.prototype.propertyIsEnumerable;
|
|
10951
10951
|
var __objRest$w = (source, exclude) => {
|
|
10952
10952
|
var target = {};
|
|
10953
10953
|
for (var prop in source)
|
|
10954
|
-
if (__hasOwnProp$
|
|
10954
|
+
if (__hasOwnProp$_.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
10955
10955
|
target[prop] = source[prop];
|
|
10956
|
-
if (source != null && __getOwnPropSymbols$
|
|
10957
|
-
for (var prop of __getOwnPropSymbols$
|
|
10958
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
10956
|
+
if (source != null && __getOwnPropSymbols$_)
|
|
10957
|
+
for (var prop of __getOwnPropSymbols$_(source)) {
|
|
10958
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$_.call(source, prop))
|
|
10959
10959
|
target[prop] = source[prop];
|
|
10960
10960
|
}
|
|
10961
10961
|
return target;
|
|
@@ -11100,6 +11100,20 @@ class AuctanePayAPI {
|
|
|
11100
11100
|
payload
|
|
11101
11101
|
);
|
|
11102
11102
|
};
|
|
11103
|
+
/**
|
|
11104
|
+
* The `identityVerification` method returns a Plaid IDV verification URL for a given user
|
|
11105
|
+
* @docs https://auctane.atlassian.net/wiki/spaces/SEEU/pages/5906662077/AUCTANE+PAY+ENDPOINTS+FOR+SHIPSTATION+API#Identity-verification
|
|
11106
|
+
*/
|
|
11107
|
+
this.identityVerification = () => {
|
|
11108
|
+
return this.client.post("/v1/payments/identity_verification");
|
|
11109
|
+
};
|
|
11110
|
+
/**
|
|
11111
|
+
* The `getPaymentAccount` method returns the Payment Account data for a given user
|
|
11112
|
+
* @docs https://auctane.atlassian.net/wiki/spaces/SEEU/pages/5906662077/AUCTANE+PAY+ENDPOINTS+FOR+SHIPSTATION+API
|
|
11113
|
+
*/
|
|
11114
|
+
this.getPaymentAccount = () => {
|
|
11115
|
+
return this.client.get("/v1/payments/account");
|
|
11116
|
+
};
|
|
11103
11117
|
this.client = client;
|
|
11104
11118
|
}
|
|
11105
11119
|
}
|
|
@@ -13809,7 +13823,7 @@ var ipaddr = {
|
|
|
13809
13823
|
}).call(commonjsGlobal);
|
|
13810
13824
|
} (ipaddr));
|
|
13811
13825
|
|
|
13812
|
-
var __async$
|
|
13826
|
+
var __async$15 = (__this, __arguments, generator) => {
|
|
13813
13827
|
return new Promise((resolve, reject) => {
|
|
13814
13828
|
var fulfilled = (value) => {
|
|
13815
13829
|
try {
|
|
@@ -13829,7 +13843,7 @@ var __async$14 = (__this, __arguments, generator) => {
|
|
|
13829
13843
|
step((generator = generator.apply(__this, __arguments)).next());
|
|
13830
13844
|
});
|
|
13831
13845
|
};
|
|
13832
|
-
const getEndUserIpAddress = () => __async$
|
|
13846
|
+
const getEndUserIpAddress = () => __async$15(void 0, null, function* () {
|
|
13833
13847
|
try {
|
|
13834
13848
|
const response = yield axios.get("https://api.ipify.org/?format=json");
|
|
13835
13849
|
if (response.data.ip && ipaddrExports.isValid(response.data.ip)) {
|
|
@@ -13890,38 +13904,38 @@ const decamelizeKeys = (obj, separator = "_") => {
|
|
|
13890
13904
|
return obj;
|
|
13891
13905
|
};
|
|
13892
13906
|
|
|
13893
|
-
var __defProp$
|
|
13894
|
-
var __defProps$
|
|
13895
|
-
var __getOwnPropDescs$
|
|
13896
|
-
var __getOwnPropSymbols$
|
|
13897
|
-
var __hasOwnProp$
|
|
13898
|
-
var __propIsEnum$
|
|
13899
|
-
var __defNormalProp$
|
|
13900
|
-
var __spreadValues$
|
|
13907
|
+
var __defProp$O = Object.defineProperty;
|
|
13908
|
+
var __defProps$I = Object.defineProperties;
|
|
13909
|
+
var __getOwnPropDescs$I = Object.getOwnPropertyDescriptors;
|
|
13910
|
+
var __getOwnPropSymbols$Z = Object.getOwnPropertySymbols;
|
|
13911
|
+
var __hasOwnProp$Z = Object.prototype.hasOwnProperty;
|
|
13912
|
+
var __propIsEnum$Z = Object.prototype.propertyIsEnumerable;
|
|
13913
|
+
var __defNormalProp$O = (obj, key, value) => key in obj ? __defProp$O(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
13914
|
+
var __spreadValues$O = (a, b) => {
|
|
13901
13915
|
for (var prop in b || (b = {}))
|
|
13902
|
-
if (__hasOwnProp$
|
|
13903
|
-
__defNormalProp$
|
|
13904
|
-
if (__getOwnPropSymbols$
|
|
13905
|
-
for (var prop of __getOwnPropSymbols$
|
|
13906
|
-
if (__propIsEnum$
|
|
13907
|
-
__defNormalProp$
|
|
13916
|
+
if (__hasOwnProp$Z.call(b, prop))
|
|
13917
|
+
__defNormalProp$O(a, prop, b[prop]);
|
|
13918
|
+
if (__getOwnPropSymbols$Z)
|
|
13919
|
+
for (var prop of __getOwnPropSymbols$Z(b)) {
|
|
13920
|
+
if (__propIsEnum$Z.call(b, prop))
|
|
13921
|
+
__defNormalProp$O(a, prop, b[prop]);
|
|
13908
13922
|
}
|
|
13909
13923
|
return a;
|
|
13910
13924
|
};
|
|
13911
|
-
var __spreadProps$
|
|
13925
|
+
var __spreadProps$I = (a, b) => __defProps$I(a, __getOwnPropDescs$I(b));
|
|
13912
13926
|
var __objRest$v = (source, exclude) => {
|
|
13913
13927
|
var target = {};
|
|
13914
13928
|
for (var prop in source)
|
|
13915
|
-
if (__hasOwnProp$
|
|
13929
|
+
if (__hasOwnProp$Z.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
13916
13930
|
target[prop] = source[prop];
|
|
13917
|
-
if (source != null && __getOwnPropSymbols$
|
|
13918
|
-
for (var prop of __getOwnPropSymbols$
|
|
13919
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
13931
|
+
if (source != null && __getOwnPropSymbols$Z)
|
|
13932
|
+
for (var prop of __getOwnPropSymbols$Z(source)) {
|
|
13933
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$Z.call(source, prop))
|
|
13920
13934
|
target[prop] = source[prop];
|
|
13921
13935
|
}
|
|
13922
13936
|
return target;
|
|
13923
13937
|
};
|
|
13924
|
-
var __async$
|
|
13938
|
+
var __async$14 = (__this, __arguments, generator) => {
|
|
13925
13939
|
return new Promise((resolve, reject) => {
|
|
13926
13940
|
var fulfilled = (value) => {
|
|
13927
13941
|
try {
|
|
@@ -13961,12 +13975,12 @@ class CarriersAPI {
|
|
|
13961
13975
|
/**
|
|
13962
13976
|
* The `connect` method connects a carrier account to a user's ShipEngine account.
|
|
13963
13977
|
*/
|
|
13964
|
-
this.connect = (_a) => __async$
|
|
13978
|
+
this.connect = (_a) => __async$14(this, null, function* () {
|
|
13965
13979
|
var _b = _a, { carrierCode } = _b, connection = __objRest$v(_b, ["carrierCode"]);
|
|
13966
13980
|
const endUserIpAddress = yield getEndUserIpAddress();
|
|
13967
13981
|
if (!endUserIpAddress)
|
|
13968
13982
|
return Promise.reject([new CodedError("Unable to get IP address")]);
|
|
13969
|
-
return yield this.client.post(`/v1/registration/${carrierCode}`, __spreadProps$
|
|
13983
|
+
return yield this.client.post(`/v1/registration/${carrierCode}`, __spreadProps$I(__spreadValues$O({}, connection), {
|
|
13970
13984
|
endUserIpAddress
|
|
13971
13985
|
}));
|
|
13972
13986
|
});
|
|
@@ -14050,22 +14064,22 @@ class CarriersAPI {
|
|
|
14050
14064
|
}
|
|
14051
14065
|
}
|
|
14052
14066
|
|
|
14053
|
-
var __getOwnPropSymbols$
|
|
14054
|
-
var __hasOwnProp$
|
|
14055
|
-
var __propIsEnum$
|
|
14067
|
+
var __getOwnPropSymbols$Y = Object.getOwnPropertySymbols;
|
|
14068
|
+
var __hasOwnProp$Y = Object.prototype.hasOwnProperty;
|
|
14069
|
+
var __propIsEnum$Y = Object.prototype.propertyIsEnumerable;
|
|
14056
14070
|
var __objRest$u = (source, exclude) => {
|
|
14057
14071
|
var target = {};
|
|
14058
14072
|
for (var prop in source)
|
|
14059
|
-
if (__hasOwnProp$
|
|
14073
|
+
if (__hasOwnProp$Y.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
14060
14074
|
target[prop] = source[prop];
|
|
14061
|
-
if (source != null && __getOwnPropSymbols$
|
|
14062
|
-
for (var prop of __getOwnPropSymbols$
|
|
14063
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
14075
|
+
if (source != null && __getOwnPropSymbols$Y)
|
|
14076
|
+
for (var prop of __getOwnPropSymbols$Y(source)) {
|
|
14077
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$Y.call(source, prop))
|
|
14064
14078
|
target[prop] = source[prop];
|
|
14065
14079
|
}
|
|
14066
14080
|
return target;
|
|
14067
14081
|
};
|
|
14068
|
-
var __async$
|
|
14082
|
+
var __async$13 = (__this, __arguments, generator) => {
|
|
14069
14083
|
return new Promise((resolve, reject) => {
|
|
14070
14084
|
var fulfilled = (value) => {
|
|
14071
14085
|
try {
|
|
@@ -14107,7 +14121,7 @@ class ConnectionsAPI {
|
|
|
14107
14121
|
/**
|
|
14108
14122
|
* The `connectCarrier` method connects a carrier to account.
|
|
14109
14123
|
*/
|
|
14110
|
-
this.connectCarrier = (carrierName, formData) => __async$
|
|
14124
|
+
this.connectCarrier = (carrierName, formData) => __async$13(this, null, function* () {
|
|
14111
14125
|
return yield this.client.post(
|
|
14112
14126
|
`/v1/connections/carriers/${carrierName}`,
|
|
14113
14127
|
formData,
|
|
@@ -16275,23 +16289,23 @@ class CustomPackagesAPI {
|
|
|
16275
16289
|
}
|
|
16276
16290
|
}
|
|
16277
16291
|
|
|
16278
|
-
var __defProp$
|
|
16279
|
-
var __getOwnPropSymbols$
|
|
16280
|
-
var __hasOwnProp$
|
|
16281
|
-
var __propIsEnum$
|
|
16282
|
-
var __defNormalProp$
|
|
16283
|
-
var __spreadValues$
|
|
16292
|
+
var __defProp$N = Object.defineProperty;
|
|
16293
|
+
var __getOwnPropSymbols$X = Object.getOwnPropertySymbols;
|
|
16294
|
+
var __hasOwnProp$X = Object.prototype.hasOwnProperty;
|
|
16295
|
+
var __propIsEnum$X = Object.prototype.propertyIsEnumerable;
|
|
16296
|
+
var __defNormalProp$N = (obj, key, value) => key in obj ? __defProp$N(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
16297
|
+
var __spreadValues$N = (a, b) => {
|
|
16284
16298
|
for (var prop in b || (b = {}))
|
|
16285
|
-
if (__hasOwnProp$
|
|
16286
|
-
__defNormalProp$
|
|
16287
|
-
if (__getOwnPropSymbols$
|
|
16288
|
-
for (var prop of __getOwnPropSymbols$
|
|
16289
|
-
if (__propIsEnum$
|
|
16290
|
-
__defNormalProp$
|
|
16299
|
+
if (__hasOwnProp$X.call(b, prop))
|
|
16300
|
+
__defNormalProp$N(a, prop, b[prop]);
|
|
16301
|
+
if (__getOwnPropSymbols$X)
|
|
16302
|
+
for (var prop of __getOwnPropSymbols$X(b)) {
|
|
16303
|
+
if (__propIsEnum$X.call(b, prop))
|
|
16304
|
+
__defNormalProp$N(a, prop, b[prop]);
|
|
16291
16305
|
}
|
|
16292
16306
|
return a;
|
|
16293
16307
|
};
|
|
16294
|
-
var __async$
|
|
16308
|
+
var __async$12 = (__this, __arguments, generator) => {
|
|
16295
16309
|
return new Promise((resolve, reject) => {
|
|
16296
16310
|
var fulfilled = (value) => {
|
|
16297
16311
|
try {
|
|
@@ -16330,12 +16344,12 @@ class FundingSourcesAPI {
|
|
|
16330
16344
|
* The `create` method creates a new funding source for a given user. This requires
|
|
16331
16345
|
* payment information to be collected from the user.
|
|
16332
16346
|
*/
|
|
16333
|
-
this.create = (createFundingSource) => __async$
|
|
16347
|
+
this.create = (createFundingSource) => __async$12(this, null, function* () {
|
|
16334
16348
|
const endUserIpAddress = yield getEndUserIpAddress();
|
|
16335
16349
|
if (!endUserIpAddress) {
|
|
16336
16350
|
return Promise.reject([new CodedError("Unable to get IP address")]);
|
|
16337
16351
|
}
|
|
16338
|
-
return yield this.client.post("/v1/funding_sources", __spreadValues$
|
|
16352
|
+
return yield this.client.post("/v1/funding_sources", __spreadValues$N({
|
|
16339
16353
|
endUserIpAddress
|
|
16340
16354
|
}, createFundingSource));
|
|
16341
16355
|
});
|
|
@@ -16344,7 +16358,7 @@ class FundingSourcesAPI {
|
|
|
16344
16358
|
* user to update the billing address or payment information associated with the
|
|
16345
16359
|
* funding source.
|
|
16346
16360
|
*/
|
|
16347
|
-
this.update = (billingInfo, creditCardInfo, auctanePayInfo, fundingSourceId) => __async$
|
|
16361
|
+
this.update = (billingInfo, creditCardInfo, auctanePayInfo, fundingSourceId) => __async$12(this, null, function* () {
|
|
16348
16362
|
const endUserIpAddress = yield getEndUserIpAddress();
|
|
16349
16363
|
if (!endUserIpAddress) {
|
|
16350
16364
|
return Promise.reject([new CodedError("Unable to get IP address")]);
|
|
@@ -16354,7 +16368,7 @@ class FundingSourcesAPI {
|
|
|
16354
16368
|
{
|
|
16355
16369
|
billingInfo,
|
|
16356
16370
|
endUserIpAddress,
|
|
16357
|
-
paymentMethod: __spreadValues$
|
|
16371
|
+
paymentMethod: __spreadValues$N({
|
|
16358
16372
|
creditCardInfo
|
|
16359
16373
|
}, auctanePayInfo)
|
|
16360
16374
|
}
|
|
@@ -16364,19 +16378,19 @@ class FundingSourcesAPI {
|
|
|
16364
16378
|
* The `registerCarrier` method registers a carrier account and associates
|
|
16365
16379
|
* it with a given funding source.
|
|
16366
16380
|
*/
|
|
16367
|
-
this.registerCarrier = (carrier) => __async$
|
|
16381
|
+
this.registerCarrier = (carrier) => __async$12(this, null, function* () {
|
|
16368
16382
|
const endUserIpAddress = yield getEndUserIpAddress();
|
|
16369
16383
|
if (!endUserIpAddress) {
|
|
16370
16384
|
return Promise.reject([new CodedError("Unable to get IP address")]);
|
|
16371
16385
|
}
|
|
16372
|
-
return yield this.client.post("/v1/registration/funding_source", __spreadValues$
|
|
16386
|
+
return yield this.client.post("/v1/registration/funding_source", __spreadValues$N({
|
|
16373
16387
|
endUserIpAddress
|
|
16374
16388
|
}, carrier));
|
|
16375
16389
|
});
|
|
16376
16390
|
/**
|
|
16377
16391
|
* The `addFunds` method allows you to add funds to a funding source.
|
|
16378
16392
|
*/
|
|
16379
|
-
this.addFunds = (amount, fundingSourceId) => __async$
|
|
16393
|
+
this.addFunds = (amount, fundingSourceId) => __async$12(this, null, function* () {
|
|
16380
16394
|
return yield this.client.put(
|
|
16381
16395
|
`/v1/funding_sources/${fundingSourceId}/add_funds`,
|
|
16382
16396
|
amount
|
|
@@ -16386,7 +16400,7 @@ class FundingSourcesAPI {
|
|
|
16386
16400
|
* The `metadata` method returns seller-specific requirements for creating funding sources
|
|
16387
16401
|
* and attaching carriers
|
|
16388
16402
|
*/
|
|
16389
|
-
this.metadata = () => __async$
|
|
16403
|
+
this.metadata = () => __async$12(this, null, function* () {
|
|
16390
16404
|
return yield this.client.get("/v1/funding_sources/metadata");
|
|
16391
16405
|
});
|
|
16392
16406
|
/**
|
|
@@ -16438,7 +16452,7 @@ class InsuranceAPI {
|
|
|
16438
16452
|
}
|
|
16439
16453
|
}
|
|
16440
16454
|
|
|
16441
|
-
var __async$
|
|
16455
|
+
var __async$11 = (__this, __arguments, generator) => {
|
|
16442
16456
|
return new Promise((resolve, reject) => {
|
|
16443
16457
|
var fulfilled = (value) => {
|
|
16444
16458
|
try {
|
|
@@ -16470,13 +16484,13 @@ class InvoiceAddressAPI {
|
|
|
16470
16484
|
/**
|
|
16471
16485
|
* The `create` method creates a new invoice address for a given user.
|
|
16472
16486
|
*/
|
|
16473
|
-
this.create = (invoiceAddress) => __async$
|
|
16487
|
+
this.create = (invoiceAddress) => __async$11(this, null, function* () {
|
|
16474
16488
|
return yield this.client.post("/v1/invoice_address", invoiceAddress);
|
|
16475
16489
|
});
|
|
16476
16490
|
/**
|
|
16477
16491
|
* The `update` method updates a invoice address for a given user.
|
|
16478
16492
|
*/
|
|
16479
|
-
this.update = (invoiceAddress) => __async$
|
|
16493
|
+
this.update = (invoiceAddress) => __async$11(this, null, function* () {
|
|
16480
16494
|
return yield this.client.put("/v1/invoice_address", invoiceAddress);
|
|
16481
16495
|
});
|
|
16482
16496
|
this.client = client;
|
|
@@ -16538,17 +16552,17 @@ class LabelsAPI {
|
|
|
16538
16552
|
}
|
|
16539
16553
|
}
|
|
16540
16554
|
|
|
16541
|
-
var __getOwnPropSymbols$
|
|
16542
|
-
var __hasOwnProp$
|
|
16543
|
-
var __propIsEnum$
|
|
16555
|
+
var __getOwnPropSymbols$W = Object.getOwnPropertySymbols;
|
|
16556
|
+
var __hasOwnProp$W = Object.prototype.hasOwnProperty;
|
|
16557
|
+
var __propIsEnum$W = Object.prototype.propertyIsEnumerable;
|
|
16544
16558
|
var __objRest$t = (source, exclude) => {
|
|
16545
16559
|
var target = {};
|
|
16546
16560
|
for (var prop in source)
|
|
16547
|
-
if (__hasOwnProp$
|
|
16561
|
+
if (__hasOwnProp$W.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
16548
16562
|
target[prop] = source[prop];
|
|
16549
|
-
if (source != null && __getOwnPropSymbols$
|
|
16550
|
-
for (var prop of __getOwnPropSymbols$
|
|
16551
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
16563
|
+
if (source != null && __getOwnPropSymbols$W)
|
|
16564
|
+
for (var prop of __getOwnPropSymbols$W(source)) {
|
|
16565
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$W.call(source, prop))
|
|
16552
16566
|
target[prop] = source[prop];
|
|
16553
16567
|
}
|
|
16554
16568
|
return target;
|
|
@@ -16669,19 +16683,19 @@ class RateCardsAPI {
|
|
|
16669
16683
|
}
|
|
16670
16684
|
}
|
|
16671
16685
|
|
|
16672
|
-
var __defProp$
|
|
16673
|
-
var __getOwnPropSymbols$
|
|
16674
|
-
var __hasOwnProp$
|
|
16675
|
-
var __propIsEnum$
|
|
16676
|
-
var __defNormalProp$
|
|
16677
|
-
var __spreadValues$
|
|
16686
|
+
var __defProp$M = Object.defineProperty;
|
|
16687
|
+
var __getOwnPropSymbols$V = Object.getOwnPropertySymbols;
|
|
16688
|
+
var __hasOwnProp$V = Object.prototype.hasOwnProperty;
|
|
16689
|
+
var __propIsEnum$V = Object.prototype.propertyIsEnumerable;
|
|
16690
|
+
var __defNormalProp$M = (obj, key, value) => key in obj ? __defProp$M(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
16691
|
+
var __spreadValues$M = (a, b) => {
|
|
16678
16692
|
for (var prop in b || (b = {}))
|
|
16679
|
-
if (__hasOwnProp$
|
|
16680
|
-
__defNormalProp$
|
|
16681
|
-
if (__getOwnPropSymbols$
|
|
16682
|
-
for (var prop of __getOwnPropSymbols$
|
|
16683
|
-
if (__propIsEnum$
|
|
16684
|
-
__defNormalProp$
|
|
16693
|
+
if (__hasOwnProp$V.call(b, prop))
|
|
16694
|
+
__defNormalProp$M(a, prop, b[prop]);
|
|
16695
|
+
if (__getOwnPropSymbols$V)
|
|
16696
|
+
for (var prop of __getOwnPropSymbols$V(b)) {
|
|
16697
|
+
if (__propIsEnum$V.call(b, prop))
|
|
16698
|
+
__defNormalProp$M(a, prop, b[prop]);
|
|
16685
16699
|
}
|
|
16686
16700
|
return a;
|
|
16687
16701
|
};
|
|
@@ -16703,7 +16717,7 @@ class RatesAPI {
|
|
|
16703
16717
|
* method.
|
|
16704
16718
|
*/
|
|
16705
16719
|
this.estimate = (params) => {
|
|
16706
|
-
return this.client.post("/v1/rates/estimate", __spreadValues$
|
|
16720
|
+
return this.client.post("/v1/rates/estimate", __spreadValues$M({}, params));
|
|
16707
16721
|
};
|
|
16708
16722
|
this.client = client;
|
|
16709
16723
|
}
|
|
@@ -16783,7 +16797,7 @@ class SalesOrdersAPI {
|
|
|
16783
16797
|
}
|
|
16784
16798
|
}
|
|
16785
16799
|
|
|
16786
|
-
var __async
|
|
16800
|
+
var __async$10 = (__this, __arguments, generator) => {
|
|
16787
16801
|
return new Promise((resolve, reject) => {
|
|
16788
16802
|
var fulfilled = (value) => {
|
|
16789
16803
|
try {
|
|
@@ -16841,7 +16855,7 @@ class SellersAPI {
|
|
|
16841
16855
|
/**
|
|
16842
16856
|
* Deletes an API Key
|
|
16843
16857
|
*/
|
|
16844
|
-
this.deleteSellerApiKey = (_0) => __async
|
|
16858
|
+
this.deleteSellerApiKey = (_0) => __async$10(this, [_0], function* ({
|
|
16845
16859
|
encryptedApiKey,
|
|
16846
16860
|
sellerId,
|
|
16847
16861
|
isSandbox
|
|
@@ -16887,19 +16901,19 @@ class SellersAPI {
|
|
|
16887
16901
|
}
|
|
16888
16902
|
}
|
|
16889
16903
|
|
|
16890
|
-
var __defProp$
|
|
16891
|
-
var __getOwnPropSymbols$
|
|
16892
|
-
var __hasOwnProp$
|
|
16893
|
-
var __propIsEnum$
|
|
16894
|
-
var __defNormalProp$
|
|
16895
|
-
var __spreadValues$
|
|
16904
|
+
var __defProp$L = Object.defineProperty;
|
|
16905
|
+
var __getOwnPropSymbols$U = Object.getOwnPropertySymbols;
|
|
16906
|
+
var __hasOwnProp$U = Object.prototype.hasOwnProperty;
|
|
16907
|
+
var __propIsEnum$U = Object.prototype.propertyIsEnumerable;
|
|
16908
|
+
var __defNormalProp$L = (obj, key, value) => key in obj ? __defProp$L(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
16909
|
+
var __spreadValues$L = (a, b) => {
|
|
16896
16910
|
for (var prop in b || (b = {}))
|
|
16897
|
-
if (__hasOwnProp$
|
|
16898
|
-
__defNormalProp$
|
|
16899
|
-
if (__getOwnPropSymbols$
|
|
16900
|
-
for (var prop of __getOwnPropSymbols$
|
|
16901
|
-
if (__propIsEnum$
|
|
16902
|
-
__defNormalProp$
|
|
16911
|
+
if (__hasOwnProp$U.call(b, prop))
|
|
16912
|
+
__defNormalProp$L(a, prop, b[prop]);
|
|
16913
|
+
if (__getOwnPropSymbols$U)
|
|
16914
|
+
for (var prop of __getOwnPropSymbols$U(b)) {
|
|
16915
|
+
if (__propIsEnum$U.call(b, prop))
|
|
16916
|
+
__defNormalProp$L(a, prop, b[prop]);
|
|
16903
16917
|
}
|
|
16904
16918
|
return a;
|
|
16905
16919
|
};
|
|
@@ -16911,7 +16925,7 @@ class ServicePointsAPI {
|
|
|
16911
16925
|
* Either an address, coordinates, or an address query
|
|
16912
16926
|
*/
|
|
16913
16927
|
this.list = (options) => {
|
|
16914
|
-
return this.client.post("/v1/service_points/list", __spreadValues$
|
|
16928
|
+
return this.client.post("/v1/service_points/list", __spreadValues$L({}, options));
|
|
16915
16929
|
};
|
|
16916
16930
|
/**
|
|
16917
16931
|
* Get a specific service point by its carrier code, country code, and id
|
|
@@ -16929,7 +16943,7 @@ class ServicePointsAPI {
|
|
|
16929
16943
|
}
|
|
16930
16944
|
}
|
|
16931
16945
|
|
|
16932
|
-
var __async
|
|
16946
|
+
var __async$$ = (__this, __arguments, generator) => {
|
|
16933
16947
|
return new Promise((resolve, reject) => {
|
|
16934
16948
|
var fulfilled = (value) => {
|
|
16935
16949
|
try {
|
|
@@ -16978,7 +16992,7 @@ class ShipmentsAPI {
|
|
|
16978
16992
|
* The `create` method allows for creating shipments based on a list of shipment
|
|
16979
16993
|
* items passed into this method.
|
|
16980
16994
|
*/
|
|
16981
|
-
this.create = (...shipments) => __async
|
|
16995
|
+
this.create = (...shipments) => __async$$(this, null, function* () {
|
|
16982
16996
|
return this.client.post("/v1/shipments", {
|
|
16983
16997
|
shipments
|
|
16984
16998
|
});
|
|
@@ -34395,38 +34409,38 @@ class WebhooksAPI {
|
|
|
34395
34409
|
}
|
|
34396
34410
|
}
|
|
34397
34411
|
|
|
34398
|
-
var __defProp$
|
|
34399
|
-
var __defProps$
|
|
34400
|
-
var __getOwnPropDescs$
|
|
34401
|
-
var __getOwnPropSymbols$
|
|
34402
|
-
var __hasOwnProp$
|
|
34403
|
-
var __propIsEnum$
|
|
34404
|
-
var __defNormalProp$
|
|
34405
|
-
var __spreadValues$
|
|
34412
|
+
var __defProp$K = Object.defineProperty;
|
|
34413
|
+
var __defProps$H = Object.defineProperties;
|
|
34414
|
+
var __getOwnPropDescs$H = Object.getOwnPropertyDescriptors;
|
|
34415
|
+
var __getOwnPropSymbols$T = Object.getOwnPropertySymbols;
|
|
34416
|
+
var __hasOwnProp$T = Object.prototype.hasOwnProperty;
|
|
34417
|
+
var __propIsEnum$T = Object.prototype.propertyIsEnumerable;
|
|
34418
|
+
var __defNormalProp$K = (obj, key, value) => key in obj ? __defProp$K(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
34419
|
+
var __spreadValues$K = (a, b) => {
|
|
34406
34420
|
for (var prop in b || (b = {}))
|
|
34407
|
-
if (__hasOwnProp$
|
|
34408
|
-
__defNormalProp$
|
|
34409
|
-
if (__getOwnPropSymbols$
|
|
34410
|
-
for (var prop of __getOwnPropSymbols$
|
|
34411
|
-
if (__propIsEnum$
|
|
34412
|
-
__defNormalProp$
|
|
34421
|
+
if (__hasOwnProp$T.call(b, prop))
|
|
34422
|
+
__defNormalProp$K(a, prop, b[prop]);
|
|
34423
|
+
if (__getOwnPropSymbols$T)
|
|
34424
|
+
for (var prop of __getOwnPropSymbols$T(b)) {
|
|
34425
|
+
if (__propIsEnum$T.call(b, prop))
|
|
34426
|
+
__defNormalProp$K(a, prop, b[prop]);
|
|
34413
34427
|
}
|
|
34414
34428
|
return a;
|
|
34415
34429
|
};
|
|
34416
|
-
var __spreadProps$
|
|
34430
|
+
var __spreadProps$H = (a, b) => __defProps$H(a, __getOwnPropDescs$H(b));
|
|
34417
34431
|
var __objRest$s = (source, exclude) => {
|
|
34418
34432
|
var target = {};
|
|
34419
34433
|
for (var prop in source)
|
|
34420
|
-
if (__hasOwnProp$
|
|
34434
|
+
if (__hasOwnProp$T.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
34421
34435
|
target[prop] = source[prop];
|
|
34422
|
-
if (source != null && __getOwnPropSymbols$
|
|
34423
|
-
for (var prop of __getOwnPropSymbols$
|
|
34424
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
34436
|
+
if (source != null && __getOwnPropSymbols$T)
|
|
34437
|
+
for (var prop of __getOwnPropSymbols$T(source)) {
|
|
34438
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$T.call(source, prop))
|
|
34425
34439
|
target[prop] = source[prop];
|
|
34426
34440
|
}
|
|
34427
34441
|
return target;
|
|
34428
34442
|
};
|
|
34429
|
-
var __async$
|
|
34443
|
+
var __async$_ = (__this, __arguments, generator) => {
|
|
34430
34444
|
return new Promise((resolve, reject) => {
|
|
34431
34445
|
var fulfilled = (value) => {
|
|
34432
34446
|
try {
|
|
@@ -34449,7 +34463,7 @@ var __async$Z = (__this, __arguments, generator) => {
|
|
|
34449
34463
|
const logger$1 = E({
|
|
34450
34464
|
level: process.env.NODE_ENV === "production" ? "fatal" : "info",
|
|
34451
34465
|
name: "shipengine-api",
|
|
34452
|
-
serializers: __spreadProps$
|
|
34466
|
+
serializers: __spreadProps$H(__spreadValues$K({}, k), {
|
|
34453
34467
|
req: (req) => ({
|
|
34454
34468
|
headers: req.headers,
|
|
34455
34469
|
method: req.method,
|
|
@@ -34474,7 +34488,7 @@ class ShipEngineAPI {
|
|
|
34474
34488
|
this.getSandboxToken = getSandboxToken;
|
|
34475
34489
|
const client = axios.create({
|
|
34476
34490
|
baseURL,
|
|
34477
|
-
headers: __spreadProps$
|
|
34491
|
+
headers: __spreadProps$H(__spreadValues$K({}, headers), {
|
|
34478
34492
|
"Content-Type": "application/json"
|
|
34479
34493
|
}),
|
|
34480
34494
|
paramsSerializer: (params) => lib.stringify(decamelizeKeys(params), { arrayFormat: "brackets" }),
|
|
@@ -34514,7 +34528,7 @@ class ShipEngineAPI {
|
|
|
34514
34528
|
});
|
|
34515
34529
|
client.defaults.headers.common["Authorization"] = `Bearer ${token}`;
|
|
34516
34530
|
client.interceptors.request.use(
|
|
34517
|
-
(config) => __async$
|
|
34531
|
+
(config) => __async$_(this, null, function* () {
|
|
34518
34532
|
if (config.isSandbox) {
|
|
34519
34533
|
if (!this.sandboxToken) {
|
|
34520
34534
|
this.sandboxToken = yield getSandboxToken == null ? void 0 : getSandboxToken();
|
|
@@ -34541,7 +34555,7 @@ class ShipEngineAPI {
|
|
|
34541
34555
|
);
|
|
34542
34556
|
return res;
|
|
34543
34557
|
},
|
|
34544
|
-
(err) => __async$
|
|
34558
|
+
(err) => __async$_(this, null, function* () {
|
|
34545
34559
|
var _a, _b, _c, _d, _e;
|
|
34546
34560
|
logger$1.error(
|
|
34547
34561
|
{ err, req: err.config, res: err.response },
|
|
@@ -34588,7 +34602,7 @@ class ShipEngineAPI {
|
|
|
34588
34602
|
* that token (also known as Seller ID)
|
|
34589
34603
|
*/
|
|
34590
34604
|
getTenant(isSandbox) {
|
|
34591
|
-
return __async$
|
|
34605
|
+
return __async$_(this, null, function* () {
|
|
34592
34606
|
var _a;
|
|
34593
34607
|
if (!isSandbox) {
|
|
34594
34608
|
return this.getTenantFromToken(this.token);
|
|
@@ -34898,25 +34912,25 @@ const delay = (ms) => new Promise((resolve) => {
|
|
|
34898
34912
|
|
|
34899
34913
|
const onError = (_errors) => _default();
|
|
34900
34914
|
|
|
34901
|
-
var __defProp$
|
|
34902
|
-
var __defProps$
|
|
34903
|
-
var __getOwnPropDescs$
|
|
34904
|
-
var __getOwnPropSymbols$
|
|
34905
|
-
var __hasOwnProp$
|
|
34906
|
-
var __propIsEnum$
|
|
34907
|
-
var __defNormalProp$
|
|
34908
|
-
var __spreadValues$
|
|
34915
|
+
var __defProp$J = Object.defineProperty;
|
|
34916
|
+
var __defProps$G = Object.defineProperties;
|
|
34917
|
+
var __getOwnPropDescs$G = Object.getOwnPropertyDescriptors;
|
|
34918
|
+
var __getOwnPropSymbols$S = Object.getOwnPropertySymbols;
|
|
34919
|
+
var __hasOwnProp$S = Object.prototype.hasOwnProperty;
|
|
34920
|
+
var __propIsEnum$S = Object.prototype.propertyIsEnumerable;
|
|
34921
|
+
var __defNormalProp$J = (obj, key, value) => key in obj ? __defProp$J(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
34922
|
+
var __spreadValues$J = (a, b) => {
|
|
34909
34923
|
for (var prop in b || (b = {}))
|
|
34910
|
-
if (__hasOwnProp$
|
|
34911
|
-
__defNormalProp$
|
|
34912
|
-
if (__getOwnPropSymbols$
|
|
34913
|
-
for (var prop of __getOwnPropSymbols$
|
|
34914
|
-
if (__propIsEnum$
|
|
34915
|
-
__defNormalProp$
|
|
34924
|
+
if (__hasOwnProp$S.call(b, prop))
|
|
34925
|
+
__defNormalProp$J(a, prop, b[prop]);
|
|
34926
|
+
if (__getOwnPropSymbols$S)
|
|
34927
|
+
for (var prop of __getOwnPropSymbols$S(b)) {
|
|
34928
|
+
if (__propIsEnum$S.call(b, prop))
|
|
34929
|
+
__defNormalProp$J(a, prop, b[prop]);
|
|
34916
34930
|
}
|
|
34917
34931
|
return a;
|
|
34918
34932
|
};
|
|
34919
|
-
var __spreadProps$
|
|
34933
|
+
var __spreadProps$G = (a, b) => __defProps$G(a, __getOwnPropDescs$G(b));
|
|
34920
34934
|
const streams = [];
|
|
34921
34935
|
if (process.env.NODE_ENV === "production") {
|
|
34922
34936
|
streams.push({
|
|
@@ -34925,7 +34939,7 @@ if (process.env.NODE_ENV === "production") {
|
|
|
34925
34939
|
}
|
|
34926
34940
|
const logger = E({
|
|
34927
34941
|
name: "shipengine",
|
|
34928
|
-
serializers: __spreadProps$
|
|
34942
|
+
serializers: __spreadProps$G(__spreadValues$J({}, k), {
|
|
34929
34943
|
req: (req) => ({
|
|
34930
34944
|
headers: req.headers,
|
|
34931
34945
|
method: req.method,
|
|
@@ -34950,7 +34964,7 @@ const retryUntil = (callbackFn, retries = 10, timeoutBetweenAttempts = 1e3) => P
|
|
|
34950
34964
|
throw error;
|
|
34951
34965
|
});
|
|
34952
34966
|
|
|
34953
|
-
var __async$
|
|
34967
|
+
var __async$Z = (__this, __arguments, generator) => {
|
|
34954
34968
|
return new Promise((resolve, reject) => {
|
|
34955
34969
|
var fulfilled = (value) => {
|
|
34956
34970
|
try {
|
|
@@ -34973,7 +34987,7 @@ var __async$Y = (__this, __arguments, generator) => {
|
|
|
34973
34987
|
const useCreateAccountImage = () => {
|
|
34974
34988
|
const { client } = useShipEngine();
|
|
34975
34989
|
return useMutation({
|
|
34976
|
-
mutationFn: (data) => __async$
|
|
34990
|
+
mutationFn: (data) => __async$Z(void 0, null, function* () {
|
|
34977
34991
|
const result = yield client.accountSettings.createImage(data);
|
|
34978
34992
|
return result.data;
|
|
34979
34993
|
}),
|
|
@@ -34982,7 +34996,7 @@ const useCreateAccountImage = () => {
|
|
|
34982
34996
|
});
|
|
34983
34997
|
};
|
|
34984
34998
|
|
|
34985
|
-
var __async$
|
|
34999
|
+
var __async$Y = (__this, __arguments, generator) => {
|
|
34986
35000
|
return new Promise((resolve, reject) => {
|
|
34987
35001
|
var fulfilled = (value) => {
|
|
34988
35002
|
try {
|
|
@@ -35005,7 +35019,7 @@ var __async$X = (__this, __arguments, generator) => {
|
|
|
35005
35019
|
const useDeleteAccountImage = () => {
|
|
35006
35020
|
const { client } = useShipEngine();
|
|
35007
35021
|
return useMutation({
|
|
35008
|
-
mutationFn: (labelImageId) => __async$
|
|
35022
|
+
mutationFn: (labelImageId) => __async$Y(void 0, null, function* () {
|
|
35009
35023
|
const result = yield client.accountSettings.deleteImage(labelImageId);
|
|
35010
35024
|
return result.data;
|
|
35011
35025
|
}),
|
|
@@ -35034,7 +35048,7 @@ const useGetAccountSettings = () => {
|
|
|
35034
35048
|
});
|
|
35035
35049
|
};
|
|
35036
35050
|
|
|
35037
|
-
var __async$
|
|
35051
|
+
var __async$X = (__this, __arguments, generator) => {
|
|
35038
35052
|
return new Promise((resolve, reject) => {
|
|
35039
35053
|
var fulfilled = (value) => {
|
|
35040
35054
|
try {
|
|
@@ -35057,7 +35071,7 @@ var __async$W = (__this, __arguments, generator) => {
|
|
|
35057
35071
|
const useUpdateAccountImage = () => {
|
|
35058
35072
|
const { client } = useShipEngine();
|
|
35059
35073
|
return useMutation({
|
|
35060
|
-
mutationFn: (data) => __async$
|
|
35074
|
+
mutationFn: (data) => __async$X(void 0, null, function* () {
|
|
35061
35075
|
const result = yield client.accountSettings.updateImage(data);
|
|
35062
35076
|
return result.data;
|
|
35063
35077
|
}),
|
|
@@ -35066,7 +35080,7 @@ const useUpdateAccountImage = () => {
|
|
|
35066
35080
|
});
|
|
35067
35081
|
};
|
|
35068
35082
|
|
|
35069
|
-
var __async$
|
|
35083
|
+
var __async$W = (__this, __arguments, generator) => {
|
|
35070
35084
|
return new Promise((resolve, reject) => {
|
|
35071
35085
|
var fulfilled = (value) => {
|
|
35072
35086
|
try {
|
|
@@ -35089,7 +35103,7 @@ var __async$V = (__this, __arguments, generator) => {
|
|
|
35089
35103
|
const useUpdateAccountSettings = () => {
|
|
35090
35104
|
const { client } = useShipEngine();
|
|
35091
35105
|
return useMutation({
|
|
35092
|
-
mutationFn: (settings) => __async$
|
|
35106
|
+
mutationFn: (settings) => __async$W(void 0, null, function* () {
|
|
35093
35107
|
const result = yield client.accountSettings.update(settings);
|
|
35094
35108
|
return result.data;
|
|
35095
35109
|
}),
|
|
@@ -35098,28 +35112,28 @@ const useUpdateAccountSettings = () => {
|
|
|
35098
35112
|
});
|
|
35099
35113
|
};
|
|
35100
35114
|
|
|
35101
|
-
var __defProp$
|
|
35102
|
-
var __defProps$
|
|
35103
|
-
var __getOwnPropDescs$
|
|
35104
|
-
var __getOwnPropSymbols$
|
|
35105
|
-
var __hasOwnProp$
|
|
35106
|
-
var __propIsEnum$
|
|
35107
|
-
var __defNormalProp$
|
|
35108
|
-
var __spreadValues$
|
|
35115
|
+
var __defProp$I = Object.defineProperty;
|
|
35116
|
+
var __defProps$F = Object.defineProperties;
|
|
35117
|
+
var __getOwnPropDescs$F = Object.getOwnPropertyDescriptors;
|
|
35118
|
+
var __getOwnPropSymbols$R = Object.getOwnPropertySymbols;
|
|
35119
|
+
var __hasOwnProp$R = Object.prototype.hasOwnProperty;
|
|
35120
|
+
var __propIsEnum$R = Object.prototype.propertyIsEnumerable;
|
|
35121
|
+
var __defNormalProp$I = (obj, key, value) => key in obj ? __defProp$I(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
35122
|
+
var __spreadValues$I = (a, b) => {
|
|
35109
35123
|
for (var prop in b || (b = {}))
|
|
35110
|
-
if (__hasOwnProp$
|
|
35111
|
-
__defNormalProp$
|
|
35112
|
-
if (__getOwnPropSymbols$
|
|
35113
|
-
for (var prop of __getOwnPropSymbols$
|
|
35114
|
-
if (__propIsEnum$
|
|
35115
|
-
__defNormalProp$
|
|
35124
|
+
if (__hasOwnProp$R.call(b, prop))
|
|
35125
|
+
__defNormalProp$I(a, prop, b[prop]);
|
|
35126
|
+
if (__getOwnPropSymbols$R)
|
|
35127
|
+
for (var prop of __getOwnPropSymbols$R(b)) {
|
|
35128
|
+
if (__propIsEnum$R.call(b, prop))
|
|
35129
|
+
__defNormalProp$I(a, prop, b[prop]);
|
|
35116
35130
|
}
|
|
35117
35131
|
return a;
|
|
35118
35132
|
};
|
|
35119
|
-
var __spreadProps$
|
|
35133
|
+
var __spreadProps$F = (a, b) => __defProps$F(a, __getOwnPropDescs$F(b));
|
|
35120
35134
|
const useListAccountAddons = (params) => {
|
|
35121
35135
|
const { client } = useShipEngine();
|
|
35122
|
-
return useQuery(__spreadProps$
|
|
35136
|
+
return useQuery(__spreadProps$F(__spreadValues$I({}, params), {
|
|
35123
35137
|
onError,
|
|
35124
35138
|
queryFn: () => client.accountAddons.list(),
|
|
35125
35139
|
queryKey: ["useListAccountAddons"],
|
|
@@ -35127,7 +35141,7 @@ const useListAccountAddons = (params) => {
|
|
|
35127
35141
|
}));
|
|
35128
35142
|
};
|
|
35129
35143
|
|
|
35130
|
-
var __async$
|
|
35144
|
+
var __async$V = (__this, __arguments, generator) => {
|
|
35131
35145
|
return new Promise((resolve, reject) => {
|
|
35132
35146
|
var fulfilled = (value) => {
|
|
35133
35147
|
try {
|
|
@@ -35150,7 +35164,7 @@ var __async$U = (__this, __arguments, generator) => {
|
|
|
35150
35164
|
const useParseAddress = () => {
|
|
35151
35165
|
const { client } = useShipEngine();
|
|
35152
35166
|
return useMutation({
|
|
35153
|
-
mutationFn: (_0) => __async$
|
|
35167
|
+
mutationFn: (_0) => __async$V(void 0, [_0], function* ({ address, text }) {
|
|
35154
35168
|
const result = yield client.addresses.parse(text, address);
|
|
35155
35169
|
return result.data;
|
|
35156
35170
|
}),
|
|
@@ -35159,7 +35173,7 @@ const useParseAddress = () => {
|
|
|
35159
35173
|
});
|
|
35160
35174
|
};
|
|
35161
35175
|
|
|
35162
|
-
var __async$
|
|
35176
|
+
var __async$U = (__this, __arguments, generator) => {
|
|
35163
35177
|
return new Promise((resolve, reject) => {
|
|
35164
35178
|
var fulfilled = (value) => {
|
|
35165
35179
|
try {
|
|
@@ -35182,7 +35196,7 @@ var __async$T = (__this, __arguments, generator) => {
|
|
|
35182
35196
|
const useValidateAddresses = () => {
|
|
35183
35197
|
const { client } = useShipEngine();
|
|
35184
35198
|
return useMutation({
|
|
35185
|
-
mutationFn: (addresses) => __async$
|
|
35199
|
+
mutationFn: (addresses) => __async$U(void 0, null, function* () {
|
|
35186
35200
|
const result = yield client.addresses.validate(addresses);
|
|
35187
35201
|
return result.data;
|
|
35188
35202
|
}),
|
|
@@ -35191,6 +35205,87 @@ const useValidateAddresses = () => {
|
|
|
35191
35205
|
});
|
|
35192
35206
|
};
|
|
35193
35207
|
|
|
35208
|
+
var __defProp$H = Object.defineProperty;
|
|
35209
|
+
var __defProps$E = Object.defineProperties;
|
|
35210
|
+
var __getOwnPropDescs$E = Object.getOwnPropertyDescriptors;
|
|
35211
|
+
var __getOwnPropSymbols$Q = Object.getOwnPropertySymbols;
|
|
35212
|
+
var __hasOwnProp$Q = Object.prototype.hasOwnProperty;
|
|
35213
|
+
var __propIsEnum$Q = Object.prototype.propertyIsEnumerable;
|
|
35214
|
+
var __defNormalProp$H = (obj, key, value) => key in obj ? __defProp$H(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
35215
|
+
var __spreadValues$H = (a, b) => {
|
|
35216
|
+
for (var prop in b || (b = {}))
|
|
35217
|
+
if (__hasOwnProp$Q.call(b, prop))
|
|
35218
|
+
__defNormalProp$H(a, prop, b[prop]);
|
|
35219
|
+
if (__getOwnPropSymbols$Q)
|
|
35220
|
+
for (var prop of __getOwnPropSymbols$Q(b)) {
|
|
35221
|
+
if (__propIsEnum$Q.call(b, prop))
|
|
35222
|
+
__defNormalProp$H(a, prop, b[prop]);
|
|
35223
|
+
}
|
|
35224
|
+
return a;
|
|
35225
|
+
};
|
|
35226
|
+
var __spreadProps$E = (a, b) => __defProps$E(a, __getOwnPropDescs$E(b));
|
|
35227
|
+
var __async$T = (__this, __arguments, generator) => {
|
|
35228
|
+
return new Promise((resolve, reject) => {
|
|
35229
|
+
var fulfilled = (value) => {
|
|
35230
|
+
try {
|
|
35231
|
+
step(generator.next(value));
|
|
35232
|
+
} catch (e) {
|
|
35233
|
+
reject(e);
|
|
35234
|
+
}
|
|
35235
|
+
};
|
|
35236
|
+
var rejected = (value) => {
|
|
35237
|
+
try {
|
|
35238
|
+
step(generator.throw(value));
|
|
35239
|
+
} catch (e) {
|
|
35240
|
+
reject(e);
|
|
35241
|
+
}
|
|
35242
|
+
};
|
|
35243
|
+
var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
|
|
35244
|
+
step((generator = generator.apply(__this, __arguments)).next());
|
|
35245
|
+
});
|
|
35246
|
+
};
|
|
35247
|
+
const useCreateAuctanePaySession = (params) => {
|
|
35248
|
+
const { client } = useShipEngine();
|
|
35249
|
+
return useMutation(__spreadProps$E(__spreadValues$H({}, params), {
|
|
35250
|
+
mutationFn: (request) => __async$T(void 0, null, function* () {
|
|
35251
|
+
const result = yield client.auctanePay.createSession(request);
|
|
35252
|
+
return result.data;
|
|
35253
|
+
}),
|
|
35254
|
+
mutationKey: ["useCreateAuctanePaySession"],
|
|
35255
|
+
onError
|
|
35256
|
+
}));
|
|
35257
|
+
};
|
|
35258
|
+
|
|
35259
|
+
var __defProp$G = Object.defineProperty;
|
|
35260
|
+
var __defProps$D = Object.defineProperties;
|
|
35261
|
+
var __getOwnPropDescs$D = Object.getOwnPropertyDescriptors;
|
|
35262
|
+
var __getOwnPropSymbols$P = Object.getOwnPropertySymbols;
|
|
35263
|
+
var __hasOwnProp$P = Object.prototype.hasOwnProperty;
|
|
35264
|
+
var __propIsEnum$P = Object.prototype.propertyIsEnumerable;
|
|
35265
|
+
var __defNormalProp$G = (obj, key, value) => key in obj ? __defProp$G(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
35266
|
+
var __spreadValues$G = (a, b) => {
|
|
35267
|
+
for (var prop in b || (b = {}))
|
|
35268
|
+
if (__hasOwnProp$P.call(b, prop))
|
|
35269
|
+
__defNormalProp$G(a, prop, b[prop]);
|
|
35270
|
+
if (__getOwnPropSymbols$P)
|
|
35271
|
+
for (var prop of __getOwnPropSymbols$P(b)) {
|
|
35272
|
+
if (__propIsEnum$P.call(b, prop))
|
|
35273
|
+
__defNormalProp$G(a, prop, b[prop]);
|
|
35274
|
+
}
|
|
35275
|
+
return a;
|
|
35276
|
+
};
|
|
35277
|
+
var __spreadProps$D = (a, b) => __defProps$D(a, __getOwnPropDescs$D(b));
|
|
35278
|
+
const useGetAuctanePayConfig = (params) => {
|
|
35279
|
+
const { client } = useShipEngine();
|
|
35280
|
+
const queryParams = __spreadValues$G({}, params);
|
|
35281
|
+
return useQuery(__spreadProps$D(__spreadValues$G({}, queryParams), {
|
|
35282
|
+
onError,
|
|
35283
|
+
queryFn: () => client.auctanePay.getConfig(),
|
|
35284
|
+
queryKey: ["useGetAuctanePayConfig"],
|
|
35285
|
+
select: (result) => result.data
|
|
35286
|
+
}));
|
|
35287
|
+
};
|
|
35288
|
+
|
|
35194
35289
|
var __defProp$F = Object.defineProperty;
|
|
35195
35290
|
var __defProps$C = Object.defineProperties;
|
|
35196
35291
|
var __getOwnPropDescs$C = Object.getOwnPropertyDescriptors;
|
|
@@ -35230,14 +35325,18 @@ var __async$S = (__this, __arguments, generator) => {
|
|
|
35230
35325
|
step((generator = generator.apply(__this, __arguments)).next());
|
|
35231
35326
|
});
|
|
35232
35327
|
};
|
|
35233
|
-
const
|
|
35328
|
+
const usePreviewTransaction = (params) => {
|
|
35234
35329
|
const { client } = useShipEngine();
|
|
35235
35330
|
return useMutation(__spreadProps$C(__spreadValues$F({}, params), {
|
|
35236
|
-
mutationFn: (
|
|
35237
|
-
const
|
|
35331
|
+
mutationFn: (_0) => __async$S(void 0, [_0], function* ({ amount, transactionCategory = "add_funds" }) {
|
|
35332
|
+
const request = {
|
|
35333
|
+
amount,
|
|
35334
|
+
transactionCategory
|
|
35335
|
+
};
|
|
35336
|
+
const result = yield client.auctanePay.previewTransaction(request);
|
|
35238
35337
|
return result.data;
|
|
35239
35338
|
}),
|
|
35240
|
-
mutationKey: ["
|
|
35339
|
+
mutationKey: ["usePreviewTransaction"],
|
|
35241
35340
|
onError
|
|
35242
35341
|
}));
|
|
35243
35342
|
};
|
|
@@ -35261,13 +35360,13 @@ var __spreadValues$E = (a, b) => {
|
|
|
35261
35360
|
return a;
|
|
35262
35361
|
};
|
|
35263
35362
|
var __spreadProps$B = (a, b) => __defProps$B(a, __getOwnPropDescs$B(b));
|
|
35264
|
-
const
|
|
35363
|
+
const useGetPaymentMethods = (params) => {
|
|
35265
35364
|
const { client } = useShipEngine();
|
|
35266
35365
|
const queryParams = __spreadValues$E({}, params);
|
|
35267
35366
|
return useQuery(__spreadProps$B(__spreadValues$E({}, queryParams), {
|
|
35268
35367
|
onError,
|
|
35269
|
-
queryFn: () => client.auctanePay.
|
|
35270
|
-
queryKey: ["
|
|
35368
|
+
queryFn: () => client.auctanePay.getPaymentMethods(),
|
|
35369
|
+
queryKey: ["useGetPaymentMethods"],
|
|
35271
35370
|
select: (result) => result.data
|
|
35272
35371
|
}));
|
|
35273
35372
|
};
|
|
@@ -35311,18 +35410,14 @@ var __async$R = (__this, __arguments, generator) => {
|
|
|
35311
35410
|
step((generator = generator.apply(__this, __arguments)).next());
|
|
35312
35411
|
});
|
|
35313
35412
|
};
|
|
35314
|
-
const
|
|
35413
|
+
const useDeletePaymentMethod = (params) => {
|
|
35315
35414
|
const { client } = useShipEngine();
|
|
35316
35415
|
return useMutation(__spreadProps$A(__spreadValues$D({}, params), {
|
|
35317
|
-
mutationFn: (
|
|
35318
|
-
const
|
|
35319
|
-
amount,
|
|
35320
|
-
transactionCategory
|
|
35321
|
-
};
|
|
35322
|
-
const result = yield client.auctanePay.previewTransaction(request);
|
|
35416
|
+
mutationFn: (paymentMethodId) => __async$R(void 0, null, function* () {
|
|
35417
|
+
const result = yield client.auctanePay.deletePaymentMethod(paymentMethodId);
|
|
35323
35418
|
return result.data;
|
|
35324
35419
|
}),
|
|
35325
|
-
mutationKey: ["
|
|
35420
|
+
mutationKey: ["useDeletePaymentMethod"],
|
|
35326
35421
|
onError
|
|
35327
35422
|
}));
|
|
35328
35423
|
};
|
|
@@ -35346,14 +35441,35 @@ var __spreadValues$C = (a, b) => {
|
|
|
35346
35441
|
return a;
|
|
35347
35442
|
};
|
|
35348
35443
|
var __spreadProps$z = (a, b) => __defProps$z(a, __getOwnPropDescs$z(b));
|
|
35349
|
-
|
|
35444
|
+
var __async$Q = (__this, __arguments, generator) => {
|
|
35445
|
+
return new Promise((resolve, reject) => {
|
|
35446
|
+
var fulfilled = (value) => {
|
|
35447
|
+
try {
|
|
35448
|
+
step(generator.next(value));
|
|
35449
|
+
} catch (e) {
|
|
35450
|
+
reject(e);
|
|
35451
|
+
}
|
|
35452
|
+
};
|
|
35453
|
+
var rejected = (value) => {
|
|
35454
|
+
try {
|
|
35455
|
+
step(generator.throw(value));
|
|
35456
|
+
} catch (e) {
|
|
35457
|
+
reject(e);
|
|
35458
|
+
}
|
|
35459
|
+
};
|
|
35460
|
+
var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
|
|
35461
|
+
step((generator = generator.apply(__this, __arguments)).next());
|
|
35462
|
+
});
|
|
35463
|
+
};
|
|
35464
|
+
const useUpdatePaymentMethod = (params) => {
|
|
35350
35465
|
const { client } = useShipEngine();
|
|
35351
|
-
|
|
35352
|
-
|
|
35353
|
-
|
|
35354
|
-
|
|
35355
|
-
|
|
35356
|
-
|
|
35466
|
+
return useMutation(__spreadProps$z(__spreadValues$C({}, params), {
|
|
35467
|
+
mutationFn: (_0) => __async$Q(void 0, [_0], function* ({ paymentMethodId, payload }) {
|
|
35468
|
+
const result = yield client.auctanePay.updatePaymentMethod(paymentMethodId, payload);
|
|
35469
|
+
return result.data;
|
|
35470
|
+
}),
|
|
35471
|
+
mutationKey: ["useUpdatePaymentMethod"],
|
|
35472
|
+
onError
|
|
35357
35473
|
}));
|
|
35358
35474
|
};
|
|
35359
35475
|
|
|
@@ -35376,7 +35492,7 @@ var __spreadValues$B = (a, b) => {
|
|
|
35376
35492
|
return a;
|
|
35377
35493
|
};
|
|
35378
35494
|
var __spreadProps$y = (a, b) => __defProps$y(a, __getOwnPropDescs$y(b));
|
|
35379
|
-
var __async$
|
|
35495
|
+
var __async$P = (__this, __arguments, generator) => {
|
|
35380
35496
|
return new Promise((resolve, reject) => {
|
|
35381
35497
|
var fulfilled = (value) => {
|
|
35382
35498
|
try {
|
|
@@ -35396,14 +35512,14 @@ var __async$Q = (__this, __arguments, generator) => {
|
|
|
35396
35512
|
step((generator = generator.apply(__this, __arguments)).next());
|
|
35397
35513
|
});
|
|
35398
35514
|
};
|
|
35399
|
-
const
|
|
35515
|
+
const useIdentityVerification = (params) => {
|
|
35400
35516
|
const { client } = useShipEngine();
|
|
35401
35517
|
return useMutation(__spreadProps$y(__spreadValues$B({}, params), {
|
|
35402
|
-
mutationFn: (
|
|
35403
|
-
const result = yield client.auctanePay.
|
|
35518
|
+
mutationFn: () => __async$P(void 0, null, function* () {
|
|
35519
|
+
const result = yield client.auctanePay.identityVerification();
|
|
35404
35520
|
return result.data;
|
|
35405
35521
|
}),
|
|
35406
|
-
mutationKey: ["
|
|
35522
|
+
mutationKey: ["useIdentityVerification"],
|
|
35407
35523
|
onError
|
|
35408
35524
|
}));
|
|
35409
35525
|
};
|
|
@@ -35427,35 +35543,14 @@ var __spreadValues$A = (a, b) => {
|
|
|
35427
35543
|
return a;
|
|
35428
35544
|
};
|
|
35429
35545
|
var __spreadProps$x = (a, b) => __defProps$x(a, __getOwnPropDescs$x(b));
|
|
35430
|
-
|
|
35431
|
-
return new Promise((resolve, reject) => {
|
|
35432
|
-
var fulfilled = (value) => {
|
|
35433
|
-
try {
|
|
35434
|
-
step(generator.next(value));
|
|
35435
|
-
} catch (e) {
|
|
35436
|
-
reject(e);
|
|
35437
|
-
}
|
|
35438
|
-
};
|
|
35439
|
-
var rejected = (value) => {
|
|
35440
|
-
try {
|
|
35441
|
-
step(generator.throw(value));
|
|
35442
|
-
} catch (e) {
|
|
35443
|
-
reject(e);
|
|
35444
|
-
}
|
|
35445
|
-
};
|
|
35446
|
-
var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
|
|
35447
|
-
step((generator = generator.apply(__this, __arguments)).next());
|
|
35448
|
-
});
|
|
35449
|
-
};
|
|
35450
|
-
const useUpdatePaymentMethod = (params) => {
|
|
35546
|
+
const useGetPaymentAccount = (params) => {
|
|
35451
35547
|
const { client } = useShipEngine();
|
|
35452
|
-
|
|
35453
|
-
|
|
35454
|
-
|
|
35455
|
-
|
|
35456
|
-
|
|
35457
|
-
|
|
35458
|
-
onError
|
|
35548
|
+
const queryParams = __spreadValues$A({}, params);
|
|
35549
|
+
return useQuery(__spreadProps$x(__spreadValues$A({}, queryParams), {
|
|
35550
|
+
onError,
|
|
35551
|
+
queryFn: () => client.auctanePay.getPaymentAccount(),
|
|
35552
|
+
queryKey: ["useGetPaymentAccount"],
|
|
35553
|
+
select: (result) => result.data
|
|
35459
35554
|
}));
|
|
35460
35555
|
};
|
|
35461
35556
|
|
|
@@ -39974,4 +40069,4 @@ const alchemy = {
|
|
|
39974
40069
|
createElement
|
|
39975
40070
|
};
|
|
39976
40071
|
|
|
39977
|
-
export { AccountAddonsAPI, AccountBillingAPI, AccountBillingPlanAPI, AccountBillingPlanChangeType, AccountSettingsAPI, AddressesAPI, AlchemyContext, AlchemyProvider, AlchemyTestProvider, AuctanePayAPI, CarriersAPI, CodedError, ConfirmationType, ConnectionsAPI, CreditCardVendor, Currency, CustomPackagesAPI, CustomsContentsType, CustomsNonDeliveryType, Element, ErrorBoundary, 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, useDownloadRateCard, useEditShippingRule, useExportLabels, useExportShipments, useFundingSourcesAddFunds, useGetAccountBilling, useGetAccountBillingPlan, useGetAccountImages, useGetAccountSettings, useGetAuctanePayConfig, useGetAutoFundingConfiguration, useGetCarrierById, useGetCarrierConnectionForm, useGetConnectionsCarrierSettings, useGetCountriesByCarrier, useGetCurrenciesByCarrier, useGetFundingSourceById, useGetFundingSourceMetadata, useGetFundingSourceTransactions, useGetHereToken, useGetInsuranceAccount, useGetInsuranceFundingSourceAcceptedTerms, useGetInvoiceAddress, useGetLabel, useGetPackageRatingGroupByCarrier, useGetPaymentMethods, useGetRateCardById, useGetSalesOrder, useGetSalesOrderByExternalOrderId, useGetSalesOrderShipment, useGetServicePoint, useGetServicesByCarrier, useGetShipment, useGetShipmentByExternalId, useGetShipmentRates, useGetShippingRuleById, useGetShippingRuleConditionsOptions, useGetThemeById, useGetZonesByCarrier, useI18n, useListAccountAddons, 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, useRequestStampsAccountUrls, useShipEngine, useUpdateAccountBillingPlan, useUpdateAccountImage, useUpdateAccountSettings, useUpdateAutoFunding, useUpdateConnectionsCarrierSettings, useUpdateFundingSource, useUpdateInvoiceAddress, useUpdateOrderSource, useUpdatePaymentMethod, useUpdateRateCard, useUpdateSalesOrderShipment, useUpdateWarehouse, useUpdateWebhook, useUploadRateCard, useUpsertAccountBilling, useValidateAddresses, useVoidLabel };
|
|
40072
|
+
export { AccountAddonsAPI, AccountBillingAPI, AccountBillingPlanAPI, AccountBillingPlanChangeType, AccountSettingsAPI, AddressesAPI, AlchemyContext, AlchemyProvider, AlchemyTestProvider, AuctanePayAPI, CarriersAPI, CodedError, ConfirmationType, ConnectionsAPI, CreditCardVendor, Currency, CustomPackagesAPI, CustomsContentsType, CustomsNonDeliveryType, Element, ErrorBoundary, 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, useDownloadRateCard, useEditShippingRule, 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, 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, useRequestStampsAccountUrls, useShipEngine, useUpdateAccountBillingPlan, useUpdateAccountImage, useUpdateAccountSettings, useUpdateAutoFunding, useUpdateConnectionsCarrierSettings, useUpdateFundingSource, useUpdateInvoiceAddress, useUpdateOrderSource, useUpdatePaymentMethod, useUpdateRateCard, useUpdateSalesOrderShipment, useUpdateWarehouse, useUpdateWebhook, useUploadRateCard, useUpsertAccountBilling, useValidateAddresses, useVoidLabel };
|