@shipengine/alchemy 6.0.80 → 6.0.81
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 +378 -209
- package/index.mjs +375 -210
- 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$16 = Object.getOwnPropertySymbols;
|
|
10817
|
+
var __hasOwnProp$16 = Object.prototype.hasOwnProperty;
|
|
10818
|
+
var __propIsEnum$16 = 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$16.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$16)
|
|
10825
|
+
for (var prop of __getOwnPropSymbols$16(source)) {
|
|
10826
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$16.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$15 = Object.getOwnPropertySymbols;
|
|
10963
|
+
var __hasOwnProp$15 = Object.prototype.hasOwnProperty;
|
|
10964
|
+
var __propIsEnum$15 = 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$15.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$15)
|
|
10971
|
+
for (var prop of __getOwnPropSymbols$15(source)) {
|
|
10972
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$15.call(source, prop))
|
|
10973
10973
|
target[prop] = source[prop];
|
|
10974
10974
|
}
|
|
10975
10975
|
return target;
|
|
@@ -11067,6 +11067,35 @@ class AccountFeaturesAPI {
|
|
|
11067
11067
|
}
|
|
11068
11068
|
}
|
|
11069
11069
|
|
|
11070
|
+
class AccountRefundAssistAPI {
|
|
11071
|
+
constructor(client) {
|
|
11072
|
+
this.client = client;
|
|
11073
|
+
/**
|
|
11074
|
+
* The `get` method retrieves the refund assist configuration for all carriers,
|
|
11075
|
+
* including if it is enabled for the user.
|
|
11076
|
+
* @docs https://auctane.atlassian.net/wiki/spaces/SEEU/pages/6766264564/Refund+Assist+API+contracts#1.--Retrieve-RA-settings-information-(with-carrier-and-RA-details)
|
|
11077
|
+
*/
|
|
11078
|
+
this.get = () => {
|
|
11079
|
+
return this.client.get("/v1/account/refund_assist");
|
|
11080
|
+
};
|
|
11081
|
+
/**
|
|
11082
|
+
* The `enable` method enables refund assist globally for the user.
|
|
11083
|
+
* @docs https://auctane.atlassian.net/wiki/spaces/SEEU/pages/6766264564/Refund+Assist+API+contracts#2.--Enable-RA-for-a-seller
|
|
11084
|
+
*/
|
|
11085
|
+
this.enable = () => {
|
|
11086
|
+
return this.client.post("/v1/account/refund_assist/enable");
|
|
11087
|
+
};
|
|
11088
|
+
/**
|
|
11089
|
+
* The `disable` method disables refund assist globally for the user.
|
|
11090
|
+
* @docs https://auctane.atlassian.net/wiki/spaces/SEEU/pages/6766264564/Refund+Assist+API+contracts#3.--Disable-RA-for-a-seller
|
|
11091
|
+
*/
|
|
11092
|
+
this.disable = () => {
|
|
11093
|
+
return this.client.post("/v1/account/refund_assist/disable");
|
|
11094
|
+
};
|
|
11095
|
+
this.client = client;
|
|
11096
|
+
}
|
|
11097
|
+
}
|
|
11098
|
+
|
|
11070
11099
|
class AddressesAPI {
|
|
11071
11100
|
constructor(client) {
|
|
11072
11101
|
this.client = client;
|
|
@@ -13870,7 +13899,7 @@ var ipaddr = {
|
|
|
13870
13899
|
}).call(commonjsGlobal);
|
|
13871
13900
|
} (ipaddr));
|
|
13872
13901
|
|
|
13873
|
-
var __async$
|
|
13902
|
+
var __async$1c = (__this, __arguments, generator) => {
|
|
13874
13903
|
return new Promise((resolve, reject) => {
|
|
13875
13904
|
var fulfilled = (value) => {
|
|
13876
13905
|
try {
|
|
@@ -13890,7 +13919,7 @@ var __async$1a = (__this, __arguments, generator) => {
|
|
|
13890
13919
|
step((generator = generator.apply(__this, __arguments)).next());
|
|
13891
13920
|
});
|
|
13892
13921
|
};
|
|
13893
|
-
const getEndUserIpAddress = () => __async$
|
|
13922
|
+
const getEndUserIpAddress = () => __async$1c(void 0, null, function* () {
|
|
13894
13923
|
try {
|
|
13895
13924
|
const response = yield axios.get("https://api.ipify.org/?format=json");
|
|
13896
13925
|
if (response.data.ip && ipaddrExports.isValid(response.data.ip)) {
|
|
@@ -13951,38 +13980,38 @@ const decamelizeKeys = (obj, separator = "_") => {
|
|
|
13951
13980
|
return obj;
|
|
13952
13981
|
};
|
|
13953
13982
|
|
|
13954
|
-
var __defProp$
|
|
13955
|
-
var __defProps$
|
|
13956
|
-
var __getOwnPropDescs$
|
|
13957
|
-
var __getOwnPropSymbols$
|
|
13958
|
-
var __hasOwnProp$
|
|
13959
|
-
var __propIsEnum$
|
|
13960
|
-
var __defNormalProp$
|
|
13961
|
-
var __spreadValues$
|
|
13983
|
+
var __defProp$V = Object.defineProperty;
|
|
13984
|
+
var __defProps$P = Object.defineProperties;
|
|
13985
|
+
var __getOwnPropDescs$P = Object.getOwnPropertyDescriptors;
|
|
13986
|
+
var __getOwnPropSymbols$14 = Object.getOwnPropertySymbols;
|
|
13987
|
+
var __hasOwnProp$14 = Object.prototype.hasOwnProperty;
|
|
13988
|
+
var __propIsEnum$14 = Object.prototype.propertyIsEnumerable;
|
|
13989
|
+
var __defNormalProp$V = (obj, key, value) => key in obj ? __defProp$V(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
13990
|
+
var __spreadValues$V = (a, b) => {
|
|
13962
13991
|
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$
|
|
13992
|
+
if (__hasOwnProp$14.call(b, prop))
|
|
13993
|
+
__defNormalProp$V(a, prop, b[prop]);
|
|
13994
|
+
if (__getOwnPropSymbols$14)
|
|
13995
|
+
for (var prop of __getOwnPropSymbols$14(b)) {
|
|
13996
|
+
if (__propIsEnum$14.call(b, prop))
|
|
13997
|
+
__defNormalProp$V(a, prop, b[prop]);
|
|
13969
13998
|
}
|
|
13970
13999
|
return a;
|
|
13971
14000
|
};
|
|
13972
|
-
var __spreadProps$
|
|
14001
|
+
var __spreadProps$P = (a, b) => __defProps$P(a, __getOwnPropDescs$P(b));
|
|
13973
14002
|
var __objRest$v = (source, exclude) => {
|
|
13974
14003
|
var target = {};
|
|
13975
14004
|
for (var prop in source)
|
|
13976
|
-
if (__hasOwnProp$
|
|
14005
|
+
if (__hasOwnProp$14.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
13977
14006
|
target[prop] = source[prop];
|
|
13978
|
-
if (source != null && __getOwnPropSymbols$
|
|
13979
|
-
for (var prop of __getOwnPropSymbols$
|
|
13980
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
14007
|
+
if (source != null && __getOwnPropSymbols$14)
|
|
14008
|
+
for (var prop of __getOwnPropSymbols$14(source)) {
|
|
14009
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$14.call(source, prop))
|
|
13981
14010
|
target[prop] = source[prop];
|
|
13982
14011
|
}
|
|
13983
14012
|
return target;
|
|
13984
14013
|
};
|
|
13985
|
-
var __async$
|
|
14014
|
+
var __async$1b = (__this, __arguments, generator) => {
|
|
13986
14015
|
return new Promise((resolve, reject) => {
|
|
13987
14016
|
var fulfilled = (value) => {
|
|
13988
14017
|
try {
|
|
@@ -14022,12 +14051,12 @@ class CarriersAPI {
|
|
|
14022
14051
|
/**
|
|
14023
14052
|
* The `connect` method connects a carrier account to a user's ShipEngine account.
|
|
14024
14053
|
*/
|
|
14025
|
-
this.connect = (_a) => __async$
|
|
14054
|
+
this.connect = (_a) => __async$1b(this, null, function* () {
|
|
14026
14055
|
var _b = _a, { carrierCode } = _b, connection = __objRest$v(_b, ["carrierCode"]);
|
|
14027
14056
|
const endUserIpAddress = yield getEndUserIpAddress();
|
|
14028
14057
|
if (!endUserIpAddress)
|
|
14029
14058
|
return Promise.reject([new CodedError("Unable to get IP address")]);
|
|
14030
|
-
return yield this.client.post(`/v1/registration/${carrierCode}`, __spreadProps$
|
|
14059
|
+
return yield this.client.post(`/v1/registration/${carrierCode}`, __spreadProps$P(__spreadValues$V({}, connection), {
|
|
14031
14060
|
endUserIpAddress
|
|
14032
14061
|
}));
|
|
14033
14062
|
});
|
|
@@ -14121,22 +14150,22 @@ class CarriersAPI {
|
|
|
14121
14150
|
}
|
|
14122
14151
|
}
|
|
14123
14152
|
|
|
14124
|
-
var __getOwnPropSymbols$
|
|
14125
|
-
var __hasOwnProp$
|
|
14126
|
-
var __propIsEnum$
|
|
14153
|
+
var __getOwnPropSymbols$13 = Object.getOwnPropertySymbols;
|
|
14154
|
+
var __hasOwnProp$13 = Object.prototype.hasOwnProperty;
|
|
14155
|
+
var __propIsEnum$13 = Object.prototype.propertyIsEnumerable;
|
|
14127
14156
|
var __objRest$u = (source, exclude) => {
|
|
14128
14157
|
var target = {};
|
|
14129
14158
|
for (var prop in source)
|
|
14130
|
-
if (__hasOwnProp$
|
|
14159
|
+
if (__hasOwnProp$13.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
14131
14160
|
target[prop] = source[prop];
|
|
14132
|
-
if (source != null && __getOwnPropSymbols$
|
|
14133
|
-
for (var prop of __getOwnPropSymbols$
|
|
14134
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
14161
|
+
if (source != null && __getOwnPropSymbols$13)
|
|
14162
|
+
for (var prop of __getOwnPropSymbols$13(source)) {
|
|
14163
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$13.call(source, prop))
|
|
14135
14164
|
target[prop] = source[prop];
|
|
14136
14165
|
}
|
|
14137
14166
|
return target;
|
|
14138
14167
|
};
|
|
14139
|
-
var __async$
|
|
14168
|
+
var __async$1a = (__this, __arguments, generator) => {
|
|
14140
14169
|
return new Promise((resolve, reject) => {
|
|
14141
14170
|
var fulfilled = (value) => {
|
|
14142
14171
|
try {
|
|
@@ -14178,7 +14207,7 @@ class ConnectionsAPI {
|
|
|
14178
14207
|
/**
|
|
14179
14208
|
* The `connectCarrier` method connects a carrier to account.
|
|
14180
14209
|
*/
|
|
14181
|
-
this.connectCarrier = (carrierName, formData) => __async$
|
|
14210
|
+
this.connectCarrier = (carrierName, formData) => __async$1a(this, null, function* () {
|
|
14182
14211
|
return yield this.client.post(
|
|
14183
14212
|
`/v1/connections/carriers/${carrierName}`,
|
|
14184
14213
|
formData,
|
|
@@ -16346,23 +16375,23 @@ class CustomPackagesAPI {
|
|
|
16346
16375
|
}
|
|
16347
16376
|
}
|
|
16348
16377
|
|
|
16349
|
-
var __defProp$
|
|
16350
|
-
var __getOwnPropSymbols
|
|
16351
|
-
var __hasOwnProp
|
|
16352
|
-
var __propIsEnum
|
|
16353
|
-
var __defNormalProp$
|
|
16354
|
-
var __spreadValues$
|
|
16378
|
+
var __defProp$U = Object.defineProperty;
|
|
16379
|
+
var __getOwnPropSymbols$12 = Object.getOwnPropertySymbols;
|
|
16380
|
+
var __hasOwnProp$12 = Object.prototype.hasOwnProperty;
|
|
16381
|
+
var __propIsEnum$12 = Object.prototype.propertyIsEnumerable;
|
|
16382
|
+
var __defNormalProp$U = (obj, key, value) => key in obj ? __defProp$U(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
16383
|
+
var __spreadValues$U = (a, b) => {
|
|
16355
16384
|
for (var prop in b || (b = {}))
|
|
16356
|
-
if (__hasOwnProp
|
|
16357
|
-
__defNormalProp$
|
|
16358
|
-
if (__getOwnPropSymbols
|
|
16359
|
-
for (var prop of __getOwnPropSymbols
|
|
16360
|
-
if (__propIsEnum
|
|
16361
|
-
__defNormalProp$
|
|
16385
|
+
if (__hasOwnProp$12.call(b, prop))
|
|
16386
|
+
__defNormalProp$U(a, prop, b[prop]);
|
|
16387
|
+
if (__getOwnPropSymbols$12)
|
|
16388
|
+
for (var prop of __getOwnPropSymbols$12(b)) {
|
|
16389
|
+
if (__propIsEnum$12.call(b, prop))
|
|
16390
|
+
__defNormalProp$U(a, prop, b[prop]);
|
|
16362
16391
|
}
|
|
16363
16392
|
return a;
|
|
16364
16393
|
};
|
|
16365
|
-
var __async$
|
|
16394
|
+
var __async$19 = (__this, __arguments, generator) => {
|
|
16366
16395
|
return new Promise((resolve, reject) => {
|
|
16367
16396
|
var fulfilled = (value) => {
|
|
16368
16397
|
try {
|
|
@@ -16401,12 +16430,12 @@ class FundingSourcesAPI {
|
|
|
16401
16430
|
* The `create` method creates a new funding source for a given user. This requires
|
|
16402
16431
|
* payment information to be collected from the user.
|
|
16403
16432
|
*/
|
|
16404
|
-
this.create = (createFundingSource) => __async$
|
|
16433
|
+
this.create = (createFundingSource) => __async$19(this, null, function* () {
|
|
16405
16434
|
const endUserIpAddress = yield getEndUserIpAddress();
|
|
16406
16435
|
if (!endUserIpAddress) {
|
|
16407
16436
|
return Promise.reject([new CodedError("Unable to get IP address")]);
|
|
16408
16437
|
}
|
|
16409
|
-
return yield this.client.post("/v1/funding_sources", __spreadValues$
|
|
16438
|
+
return yield this.client.post("/v1/funding_sources", __spreadValues$U({
|
|
16410
16439
|
endUserIpAddress
|
|
16411
16440
|
}, createFundingSource));
|
|
16412
16441
|
});
|
|
@@ -16415,7 +16444,7 @@ class FundingSourcesAPI {
|
|
|
16415
16444
|
* user to update the billing address or payment information associated with the
|
|
16416
16445
|
* funding source.
|
|
16417
16446
|
*/
|
|
16418
|
-
this.update = (billingInfo, creditCardInfo, auctanePayInfo, fundingSourceId) => __async$
|
|
16447
|
+
this.update = (billingInfo, creditCardInfo, auctanePayInfo, fundingSourceId) => __async$19(this, null, function* () {
|
|
16419
16448
|
const endUserIpAddress = yield getEndUserIpAddress();
|
|
16420
16449
|
if (!endUserIpAddress) {
|
|
16421
16450
|
return Promise.reject([new CodedError("Unable to get IP address")]);
|
|
@@ -16425,7 +16454,7 @@ class FundingSourcesAPI {
|
|
|
16425
16454
|
{
|
|
16426
16455
|
billingInfo,
|
|
16427
16456
|
endUserIpAddress,
|
|
16428
|
-
paymentMethod: __spreadValues$
|
|
16457
|
+
paymentMethod: __spreadValues$U({
|
|
16429
16458
|
creditCardInfo
|
|
16430
16459
|
}, auctanePayInfo)
|
|
16431
16460
|
}
|
|
@@ -16435,19 +16464,19 @@ class FundingSourcesAPI {
|
|
|
16435
16464
|
* The `registerCarrier` method registers a carrier account and associates
|
|
16436
16465
|
* it with a given funding source.
|
|
16437
16466
|
*/
|
|
16438
|
-
this.registerCarrier = (carrier) => __async$
|
|
16467
|
+
this.registerCarrier = (carrier) => __async$19(this, null, function* () {
|
|
16439
16468
|
const endUserIpAddress = yield getEndUserIpAddress();
|
|
16440
16469
|
if (!endUserIpAddress) {
|
|
16441
16470
|
return Promise.reject([new CodedError("Unable to get IP address")]);
|
|
16442
16471
|
}
|
|
16443
|
-
return yield this.client.post("/v1/registration/funding_source", __spreadValues$
|
|
16472
|
+
return yield this.client.post("/v1/registration/funding_source", __spreadValues$U({
|
|
16444
16473
|
endUserIpAddress
|
|
16445
16474
|
}, carrier));
|
|
16446
16475
|
});
|
|
16447
16476
|
/**
|
|
16448
16477
|
* The `addFunds` method allows you to add funds to a funding source.
|
|
16449
16478
|
*/
|
|
16450
|
-
this.addFunds = (amount, fundingSourceId) => __async$
|
|
16479
|
+
this.addFunds = (amount, fundingSourceId) => __async$19(this, null, function* () {
|
|
16451
16480
|
return yield this.client.put(
|
|
16452
16481
|
`/v1/funding_sources/${fundingSourceId}/add_funds`,
|
|
16453
16482
|
amount
|
|
@@ -16457,7 +16486,7 @@ class FundingSourcesAPI {
|
|
|
16457
16486
|
* The `metadata` method returns seller-specific requirements for creating funding sources
|
|
16458
16487
|
* and attaching carriers
|
|
16459
16488
|
*/
|
|
16460
|
-
this.metadata = () => __async$
|
|
16489
|
+
this.metadata = () => __async$19(this, null, function* () {
|
|
16461
16490
|
return yield this.client.get("/v1/funding_sources/metadata");
|
|
16462
16491
|
});
|
|
16463
16492
|
/**
|
|
@@ -16526,7 +16555,7 @@ class InsuranceAPI {
|
|
|
16526
16555
|
}
|
|
16527
16556
|
}
|
|
16528
16557
|
|
|
16529
|
-
var __async$
|
|
16558
|
+
var __async$18 = (__this, __arguments, generator) => {
|
|
16530
16559
|
return new Promise((resolve, reject) => {
|
|
16531
16560
|
var fulfilled = (value) => {
|
|
16532
16561
|
try {
|
|
@@ -16558,13 +16587,13 @@ class InvoiceAddressAPI {
|
|
|
16558
16587
|
/**
|
|
16559
16588
|
* The `create` method creates a new invoice address for a given user.
|
|
16560
16589
|
*/
|
|
16561
|
-
this.create = (invoiceAddress) => __async$
|
|
16590
|
+
this.create = (invoiceAddress) => __async$18(this, null, function* () {
|
|
16562
16591
|
return yield this.client.post("/v1/invoice_address", invoiceAddress);
|
|
16563
16592
|
});
|
|
16564
16593
|
/**
|
|
16565
16594
|
* The `update` method updates a invoice address for a given user.
|
|
16566
16595
|
*/
|
|
16567
|
-
this.update = (invoiceAddress) => __async$
|
|
16596
|
+
this.update = (invoiceAddress) => __async$18(this, null, function* () {
|
|
16568
16597
|
return yield this.client.put("/v1/invoice_address", invoiceAddress);
|
|
16569
16598
|
});
|
|
16570
16599
|
this.client = client;
|
|
@@ -16626,17 +16655,17 @@ class LabelsAPI {
|
|
|
16626
16655
|
}
|
|
16627
16656
|
}
|
|
16628
16657
|
|
|
16629
|
-
var __getOwnPropSymbols$
|
|
16630
|
-
var __hasOwnProp$
|
|
16631
|
-
var __propIsEnum$
|
|
16658
|
+
var __getOwnPropSymbols$11 = Object.getOwnPropertySymbols;
|
|
16659
|
+
var __hasOwnProp$11 = Object.prototype.hasOwnProperty;
|
|
16660
|
+
var __propIsEnum$11 = Object.prototype.propertyIsEnumerable;
|
|
16632
16661
|
var __objRest$t = (source, exclude) => {
|
|
16633
16662
|
var target = {};
|
|
16634
16663
|
for (var prop in source)
|
|
16635
|
-
if (__hasOwnProp$
|
|
16664
|
+
if (__hasOwnProp$11.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
16636
16665
|
target[prop] = source[prop];
|
|
16637
|
-
if (source != null && __getOwnPropSymbols$
|
|
16638
|
-
for (var prop of __getOwnPropSymbols$
|
|
16639
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
16666
|
+
if (source != null && __getOwnPropSymbols$11)
|
|
16667
|
+
for (var prop of __getOwnPropSymbols$11(source)) {
|
|
16668
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$11.call(source, prop))
|
|
16640
16669
|
target[prop] = source[prop];
|
|
16641
16670
|
}
|
|
16642
16671
|
return target;
|
|
@@ -16757,19 +16786,19 @@ class RateCardsAPI {
|
|
|
16757
16786
|
}
|
|
16758
16787
|
}
|
|
16759
16788
|
|
|
16760
|
-
var __defProp$
|
|
16761
|
-
var __getOwnPropSymbols$
|
|
16762
|
-
var __hasOwnProp$
|
|
16763
|
-
var __propIsEnum$
|
|
16764
|
-
var __defNormalProp$
|
|
16765
|
-
var __spreadValues$
|
|
16789
|
+
var __defProp$T = Object.defineProperty;
|
|
16790
|
+
var __getOwnPropSymbols$10 = Object.getOwnPropertySymbols;
|
|
16791
|
+
var __hasOwnProp$10 = Object.prototype.hasOwnProperty;
|
|
16792
|
+
var __propIsEnum$10 = Object.prototype.propertyIsEnumerable;
|
|
16793
|
+
var __defNormalProp$T = (obj, key, value) => key in obj ? __defProp$T(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
16794
|
+
var __spreadValues$T = (a, b) => {
|
|
16766
16795
|
for (var prop in b || (b = {}))
|
|
16767
|
-
if (__hasOwnProp$
|
|
16768
|
-
__defNormalProp$
|
|
16769
|
-
if (__getOwnPropSymbols$
|
|
16770
|
-
for (var prop of __getOwnPropSymbols$
|
|
16771
|
-
if (__propIsEnum$
|
|
16772
|
-
__defNormalProp$
|
|
16796
|
+
if (__hasOwnProp$10.call(b, prop))
|
|
16797
|
+
__defNormalProp$T(a, prop, b[prop]);
|
|
16798
|
+
if (__getOwnPropSymbols$10)
|
|
16799
|
+
for (var prop of __getOwnPropSymbols$10(b)) {
|
|
16800
|
+
if (__propIsEnum$10.call(b, prop))
|
|
16801
|
+
__defNormalProp$T(a, prop, b[prop]);
|
|
16773
16802
|
}
|
|
16774
16803
|
return a;
|
|
16775
16804
|
};
|
|
@@ -16791,7 +16820,7 @@ class RatesAPI {
|
|
|
16791
16820
|
* method.
|
|
16792
16821
|
*/
|
|
16793
16822
|
this.estimate = (params) => {
|
|
16794
|
-
return this.client.post("/v1/rates/estimate", __spreadValues$
|
|
16823
|
+
return this.client.post("/v1/rates/estimate", __spreadValues$T({}, params));
|
|
16795
16824
|
};
|
|
16796
16825
|
this.client = client;
|
|
16797
16826
|
}
|
|
@@ -16871,7 +16900,7 @@ class SalesOrdersAPI {
|
|
|
16871
16900
|
}
|
|
16872
16901
|
}
|
|
16873
16902
|
|
|
16874
|
-
var __async$
|
|
16903
|
+
var __async$17 = (__this, __arguments, generator) => {
|
|
16875
16904
|
return new Promise((resolve, reject) => {
|
|
16876
16905
|
var fulfilled = (value) => {
|
|
16877
16906
|
try {
|
|
@@ -16929,7 +16958,7 @@ class SellersAPI {
|
|
|
16929
16958
|
/**
|
|
16930
16959
|
* Deletes an API Key
|
|
16931
16960
|
*/
|
|
16932
|
-
this.deleteSellerApiKey = (_0) => __async$
|
|
16961
|
+
this.deleteSellerApiKey = (_0) => __async$17(this, [_0], function* ({
|
|
16933
16962
|
encryptedApiKey,
|
|
16934
16963
|
sellerId,
|
|
16935
16964
|
isSandbox
|
|
@@ -16975,19 +17004,19 @@ class SellersAPI {
|
|
|
16975
17004
|
}
|
|
16976
17005
|
}
|
|
16977
17006
|
|
|
16978
|
-
var __defProp$
|
|
16979
|
-
var __getOwnPropSymbols
|
|
16980
|
-
var __hasOwnProp
|
|
16981
|
-
var __propIsEnum
|
|
16982
|
-
var __defNormalProp$
|
|
16983
|
-
var __spreadValues$
|
|
17007
|
+
var __defProp$S = Object.defineProperty;
|
|
17008
|
+
var __getOwnPropSymbols$$ = Object.getOwnPropertySymbols;
|
|
17009
|
+
var __hasOwnProp$$ = Object.prototype.hasOwnProperty;
|
|
17010
|
+
var __propIsEnum$$ = Object.prototype.propertyIsEnumerable;
|
|
17011
|
+
var __defNormalProp$S = (obj, key, value) => key in obj ? __defProp$S(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
17012
|
+
var __spreadValues$S = (a, b) => {
|
|
16984
17013
|
for (var prop in b || (b = {}))
|
|
16985
|
-
if (__hasOwnProp
|
|
16986
|
-
__defNormalProp$
|
|
16987
|
-
if (__getOwnPropSymbols
|
|
16988
|
-
for (var prop of __getOwnPropSymbols
|
|
16989
|
-
if (__propIsEnum
|
|
16990
|
-
__defNormalProp$
|
|
17014
|
+
if (__hasOwnProp$$.call(b, prop))
|
|
17015
|
+
__defNormalProp$S(a, prop, b[prop]);
|
|
17016
|
+
if (__getOwnPropSymbols$$)
|
|
17017
|
+
for (var prop of __getOwnPropSymbols$$(b)) {
|
|
17018
|
+
if (__propIsEnum$$.call(b, prop))
|
|
17019
|
+
__defNormalProp$S(a, prop, b[prop]);
|
|
16991
17020
|
}
|
|
16992
17021
|
return a;
|
|
16993
17022
|
};
|
|
@@ -16999,7 +17028,7 @@ class ServicePointsAPI {
|
|
|
16999
17028
|
* Either an address, coordinates, or an address query
|
|
17000
17029
|
*/
|
|
17001
17030
|
this.list = (options) => {
|
|
17002
|
-
return this.client.post("/v1/service_points/list", __spreadValues$
|
|
17031
|
+
return this.client.post("/v1/service_points/list", __spreadValues$S({}, options));
|
|
17003
17032
|
};
|
|
17004
17033
|
/**
|
|
17005
17034
|
* Get a specific service point by its carrier code, country code, and id
|
|
@@ -17017,7 +17046,7 @@ class ServicePointsAPI {
|
|
|
17017
17046
|
}
|
|
17018
17047
|
}
|
|
17019
17048
|
|
|
17020
|
-
var __async$
|
|
17049
|
+
var __async$16 = (__this, __arguments, generator) => {
|
|
17021
17050
|
return new Promise((resolve, reject) => {
|
|
17022
17051
|
var fulfilled = (value) => {
|
|
17023
17052
|
try {
|
|
@@ -17066,7 +17095,7 @@ class ShipmentsAPI {
|
|
|
17066
17095
|
* The `create` method allows for creating shipments based on a list of shipment
|
|
17067
17096
|
* items passed into this method.
|
|
17068
17097
|
*/
|
|
17069
|
-
this.create = (...shipments) => __async$
|
|
17098
|
+
this.create = (...shipments) => __async$16(this, null, function* () {
|
|
17070
17099
|
return this.client.post("/v1/shipments", {
|
|
17071
17100
|
shipments
|
|
17072
17101
|
});
|
|
@@ -34483,38 +34512,38 @@ class WebhooksAPI {
|
|
|
34483
34512
|
}
|
|
34484
34513
|
}
|
|
34485
34514
|
|
|
34486
|
-
var __defProp$
|
|
34487
|
-
var __defProps$
|
|
34488
|
-
var __getOwnPropDescs$
|
|
34489
|
-
var __getOwnPropSymbols$
|
|
34490
|
-
var __hasOwnProp$
|
|
34491
|
-
var __propIsEnum$
|
|
34492
|
-
var __defNormalProp$
|
|
34493
|
-
var __spreadValues$
|
|
34515
|
+
var __defProp$R = Object.defineProperty;
|
|
34516
|
+
var __defProps$O = Object.defineProperties;
|
|
34517
|
+
var __getOwnPropDescs$O = Object.getOwnPropertyDescriptors;
|
|
34518
|
+
var __getOwnPropSymbols$_ = Object.getOwnPropertySymbols;
|
|
34519
|
+
var __hasOwnProp$_ = Object.prototype.hasOwnProperty;
|
|
34520
|
+
var __propIsEnum$_ = Object.prototype.propertyIsEnumerable;
|
|
34521
|
+
var __defNormalProp$R = (obj, key, value) => key in obj ? __defProp$R(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
34522
|
+
var __spreadValues$R = (a, b) => {
|
|
34494
34523
|
for (var prop in b || (b = {}))
|
|
34495
|
-
if (__hasOwnProp$
|
|
34496
|
-
__defNormalProp$
|
|
34497
|
-
if (__getOwnPropSymbols$
|
|
34498
|
-
for (var prop of __getOwnPropSymbols$
|
|
34499
|
-
if (__propIsEnum$
|
|
34500
|
-
__defNormalProp$
|
|
34524
|
+
if (__hasOwnProp$_.call(b, prop))
|
|
34525
|
+
__defNormalProp$R(a, prop, b[prop]);
|
|
34526
|
+
if (__getOwnPropSymbols$_)
|
|
34527
|
+
for (var prop of __getOwnPropSymbols$_(b)) {
|
|
34528
|
+
if (__propIsEnum$_.call(b, prop))
|
|
34529
|
+
__defNormalProp$R(a, prop, b[prop]);
|
|
34501
34530
|
}
|
|
34502
34531
|
return a;
|
|
34503
34532
|
};
|
|
34504
|
-
var __spreadProps$
|
|
34533
|
+
var __spreadProps$O = (a, b) => __defProps$O(a, __getOwnPropDescs$O(b));
|
|
34505
34534
|
var __objRest$s = (source, exclude) => {
|
|
34506
34535
|
var target = {};
|
|
34507
34536
|
for (var prop in source)
|
|
34508
|
-
if (__hasOwnProp$
|
|
34537
|
+
if (__hasOwnProp$_.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
34509
34538
|
target[prop] = source[prop];
|
|
34510
|
-
if (source != null && __getOwnPropSymbols$
|
|
34511
|
-
for (var prop of __getOwnPropSymbols$
|
|
34512
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
34539
|
+
if (source != null && __getOwnPropSymbols$_)
|
|
34540
|
+
for (var prop of __getOwnPropSymbols$_(source)) {
|
|
34541
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$_.call(source, prop))
|
|
34513
34542
|
target[prop] = source[prop];
|
|
34514
34543
|
}
|
|
34515
34544
|
return target;
|
|
34516
34545
|
};
|
|
34517
|
-
var __async$
|
|
34546
|
+
var __async$15 = (__this, __arguments, generator) => {
|
|
34518
34547
|
return new Promise((resolve, reject) => {
|
|
34519
34548
|
var fulfilled = (value) => {
|
|
34520
34549
|
try {
|
|
@@ -34537,7 +34566,7 @@ var __async$13 = (__this, __arguments, generator) => {
|
|
|
34537
34566
|
const logger$1 = E({
|
|
34538
34567
|
level: process.env.NODE_ENV === "production" ? "fatal" : "info",
|
|
34539
34568
|
name: "shipengine-api",
|
|
34540
|
-
serializers: __spreadProps$
|
|
34569
|
+
serializers: __spreadProps$O(__spreadValues$R({}, k), {
|
|
34541
34570
|
req: (req) => ({
|
|
34542
34571
|
headers: req.headers,
|
|
34543
34572
|
method: req.method,
|
|
@@ -34562,7 +34591,7 @@ class ShipEngineAPI {
|
|
|
34562
34591
|
this.getSandboxToken = getSandboxToken;
|
|
34563
34592
|
const client = axios.create({
|
|
34564
34593
|
baseURL,
|
|
34565
|
-
headers: __spreadProps$
|
|
34594
|
+
headers: __spreadProps$O(__spreadValues$R({}, headers), {
|
|
34566
34595
|
"Content-Type": "application/json"
|
|
34567
34596
|
}),
|
|
34568
34597
|
paramsSerializer: (params) => lib.stringify(decamelizeKeys(params), { arrayFormat: "brackets" }),
|
|
@@ -34602,7 +34631,7 @@ class ShipEngineAPI {
|
|
|
34602
34631
|
});
|
|
34603
34632
|
client.defaults.headers.common["Authorization"] = `Bearer ${token}`;
|
|
34604
34633
|
client.interceptors.request.use(
|
|
34605
|
-
(config) => __async$
|
|
34634
|
+
(config) => __async$15(this, null, function* () {
|
|
34606
34635
|
if (config.isSandbox) {
|
|
34607
34636
|
if (!this.sandboxToken) {
|
|
34608
34637
|
this.sandboxToken = yield getSandboxToken == null ? void 0 : getSandboxToken();
|
|
@@ -34631,7 +34660,7 @@ class ShipEngineAPI {
|
|
|
34631
34660
|
}
|
|
34632
34661
|
return res;
|
|
34633
34662
|
},
|
|
34634
|
-
(err) => __async$
|
|
34663
|
+
(err) => __async$15(this, null, function* () {
|
|
34635
34664
|
var _a, _b, _c, _d, _e;
|
|
34636
34665
|
if (debug) {
|
|
34637
34666
|
logger$1.error(
|
|
@@ -34680,7 +34709,7 @@ class ShipEngineAPI {
|
|
|
34680
34709
|
* that token (also known as Seller ID)
|
|
34681
34710
|
*/
|
|
34682
34711
|
getTenant(isSandbox) {
|
|
34683
|
-
return __async$
|
|
34712
|
+
return __async$15(this, null, function* () {
|
|
34684
34713
|
var _a;
|
|
34685
34714
|
if (!isSandbox) {
|
|
34686
34715
|
return this.getTenantFromToken(this.token);
|
|
@@ -34738,6 +34767,13 @@ class ShipEngineAPI {
|
|
|
34738
34767
|
get accountBilling() {
|
|
34739
34768
|
return new AccountBillingAPI(this.client);
|
|
34740
34769
|
}
|
|
34770
|
+
/**
|
|
34771
|
+
* The `accountRefundAssist` method provides access to the Account Refund Assist endpoints
|
|
34772
|
+
* in ShipEngine API.
|
|
34773
|
+
*/
|
|
34774
|
+
get accountRefundAssist() {
|
|
34775
|
+
return new AccountRefundAssistAPI(this.client);
|
|
34776
|
+
}
|
|
34741
34777
|
/**
|
|
34742
34778
|
* The `addresses` method provides access to the Address Validation endpoints
|
|
34743
34779
|
* in ShipEngine API. e.g. Validate Addresses, Parse Addresses, etc.
|
|
@@ -34999,25 +35035,25 @@ const delay = (ms) => new Promise((resolve) => {
|
|
|
34999
35035
|
|
|
35000
35036
|
const onError = (_errors) => _default();
|
|
35001
35037
|
|
|
35002
|
-
var __defProp$
|
|
35003
|
-
var __defProps$
|
|
35004
|
-
var __getOwnPropDescs$
|
|
35005
|
-
var __getOwnPropSymbols$
|
|
35006
|
-
var __hasOwnProp$
|
|
35007
|
-
var __propIsEnum$
|
|
35008
|
-
var __defNormalProp$
|
|
35009
|
-
var __spreadValues$
|
|
35038
|
+
var __defProp$Q = Object.defineProperty;
|
|
35039
|
+
var __defProps$N = Object.defineProperties;
|
|
35040
|
+
var __getOwnPropDescs$N = Object.getOwnPropertyDescriptors;
|
|
35041
|
+
var __getOwnPropSymbols$Z = Object.getOwnPropertySymbols;
|
|
35042
|
+
var __hasOwnProp$Z = Object.prototype.hasOwnProperty;
|
|
35043
|
+
var __propIsEnum$Z = Object.prototype.propertyIsEnumerable;
|
|
35044
|
+
var __defNormalProp$Q = (obj, key, value) => key in obj ? __defProp$Q(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
35045
|
+
var __spreadValues$Q = (a, b) => {
|
|
35010
35046
|
for (var prop in b || (b = {}))
|
|
35011
|
-
if (__hasOwnProp$
|
|
35012
|
-
__defNormalProp$
|
|
35013
|
-
if (__getOwnPropSymbols$
|
|
35014
|
-
for (var prop of __getOwnPropSymbols$
|
|
35015
|
-
if (__propIsEnum$
|
|
35016
|
-
__defNormalProp$
|
|
35047
|
+
if (__hasOwnProp$Z.call(b, prop))
|
|
35048
|
+
__defNormalProp$Q(a, prop, b[prop]);
|
|
35049
|
+
if (__getOwnPropSymbols$Z)
|
|
35050
|
+
for (var prop of __getOwnPropSymbols$Z(b)) {
|
|
35051
|
+
if (__propIsEnum$Z.call(b, prop))
|
|
35052
|
+
__defNormalProp$Q(a, prop, b[prop]);
|
|
35017
35053
|
}
|
|
35018
35054
|
return a;
|
|
35019
35055
|
};
|
|
35020
|
-
var __spreadProps$
|
|
35056
|
+
var __spreadProps$N = (a, b) => __defProps$N(a, __getOwnPropDescs$N(b));
|
|
35021
35057
|
const streams = [];
|
|
35022
35058
|
if (process.env.NODE_ENV === "production") {
|
|
35023
35059
|
streams.push({
|
|
@@ -35026,7 +35062,7 @@ if (process.env.NODE_ENV === "production") {
|
|
|
35026
35062
|
}
|
|
35027
35063
|
const logger = E({
|
|
35028
35064
|
name: "shipengine",
|
|
35029
|
-
serializers: __spreadProps$
|
|
35065
|
+
serializers: __spreadProps$N(__spreadValues$Q({}, k), {
|
|
35030
35066
|
req: (req) => ({
|
|
35031
35067
|
headers: req.headers,
|
|
35032
35068
|
method: req.method,
|
|
@@ -35051,7 +35087,7 @@ const retryUntil = (callbackFn, retries = 10, timeoutBetweenAttempts = 1e3) => P
|
|
|
35051
35087
|
throw error;
|
|
35052
35088
|
});
|
|
35053
35089
|
|
|
35054
|
-
var __async$
|
|
35090
|
+
var __async$14 = (__this, __arguments, generator) => {
|
|
35055
35091
|
return new Promise((resolve, reject) => {
|
|
35056
35092
|
var fulfilled = (value) => {
|
|
35057
35093
|
try {
|
|
@@ -35074,7 +35110,7 @@ var __async$12 = (__this, __arguments, generator) => {
|
|
|
35074
35110
|
const useCreateAccountImage = () => {
|
|
35075
35111
|
const { client } = useShipEngine();
|
|
35076
35112
|
return useMutation({
|
|
35077
|
-
mutationFn: (data) => __async$
|
|
35113
|
+
mutationFn: (data) => __async$14(void 0, null, function* () {
|
|
35078
35114
|
const result = yield client.accountSettings.createImage(data);
|
|
35079
35115
|
return result.data;
|
|
35080
35116
|
}),
|
|
@@ -35083,7 +35119,7 @@ const useCreateAccountImage = () => {
|
|
|
35083
35119
|
});
|
|
35084
35120
|
};
|
|
35085
35121
|
|
|
35086
|
-
var __async$
|
|
35122
|
+
var __async$13 = (__this, __arguments, generator) => {
|
|
35087
35123
|
return new Promise((resolve, reject) => {
|
|
35088
35124
|
var fulfilled = (value) => {
|
|
35089
35125
|
try {
|
|
@@ -35106,7 +35142,7 @@ var __async$11 = (__this, __arguments, generator) => {
|
|
|
35106
35142
|
const useDeleteAccountImage = () => {
|
|
35107
35143
|
const { client } = useShipEngine();
|
|
35108
35144
|
return useMutation({
|
|
35109
|
-
mutationFn: (labelImageId) => __async$
|
|
35145
|
+
mutationFn: (labelImageId) => __async$13(void 0, null, function* () {
|
|
35110
35146
|
const result = yield client.accountSettings.deleteImage(labelImageId);
|
|
35111
35147
|
return result.data;
|
|
35112
35148
|
}),
|
|
@@ -35135,7 +35171,7 @@ const useGetAccountSettings = () => {
|
|
|
35135
35171
|
});
|
|
35136
35172
|
};
|
|
35137
35173
|
|
|
35138
|
-
var __async$
|
|
35174
|
+
var __async$12 = (__this, __arguments, generator) => {
|
|
35139
35175
|
return new Promise((resolve, reject) => {
|
|
35140
35176
|
var fulfilled = (value) => {
|
|
35141
35177
|
try {
|
|
@@ -35158,7 +35194,7 @@ var __async$10 = (__this, __arguments, generator) => {
|
|
|
35158
35194
|
const useUpdateAccountImage = () => {
|
|
35159
35195
|
const { client } = useShipEngine();
|
|
35160
35196
|
return useMutation({
|
|
35161
|
-
mutationFn: (data) => __async$
|
|
35197
|
+
mutationFn: (data) => __async$12(void 0, null, function* () {
|
|
35162
35198
|
const result = yield client.accountSettings.updateImage(data);
|
|
35163
35199
|
return result.data;
|
|
35164
35200
|
}),
|
|
@@ -35167,7 +35203,7 @@ const useUpdateAccountImage = () => {
|
|
|
35167
35203
|
});
|
|
35168
35204
|
};
|
|
35169
35205
|
|
|
35170
|
-
var __async
|
|
35206
|
+
var __async$11 = (__this, __arguments, generator) => {
|
|
35171
35207
|
return new Promise((resolve, reject) => {
|
|
35172
35208
|
var fulfilled = (value) => {
|
|
35173
35209
|
try {
|
|
@@ -35190,7 +35226,7 @@ var __async$$ = (__this, __arguments, generator) => {
|
|
|
35190
35226
|
const useUpdateAccountSettings = () => {
|
|
35191
35227
|
const { client } = useShipEngine();
|
|
35192
35228
|
return useMutation({
|
|
35193
|
-
mutationFn: (settings) => __async
|
|
35229
|
+
mutationFn: (settings) => __async$11(void 0, null, function* () {
|
|
35194
35230
|
const result = yield client.accountSettings.update(settings);
|
|
35195
35231
|
return result.data;
|
|
35196
35232
|
}),
|
|
@@ -35199,6 +35235,137 @@ const useUpdateAccountSettings = () => {
|
|
|
35199
35235
|
});
|
|
35200
35236
|
};
|
|
35201
35237
|
|
|
35238
|
+
var __defProp$P = Object.defineProperty;
|
|
35239
|
+
var __defProps$M = Object.defineProperties;
|
|
35240
|
+
var __getOwnPropDescs$M = Object.getOwnPropertyDescriptors;
|
|
35241
|
+
var __getOwnPropSymbols$Y = Object.getOwnPropertySymbols;
|
|
35242
|
+
var __hasOwnProp$Y = Object.prototype.hasOwnProperty;
|
|
35243
|
+
var __propIsEnum$Y = Object.prototype.propertyIsEnumerable;
|
|
35244
|
+
var __defNormalProp$P = (obj, key, value) => key in obj ? __defProp$P(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
35245
|
+
var __spreadValues$P = (a, b) => {
|
|
35246
|
+
for (var prop in b || (b = {}))
|
|
35247
|
+
if (__hasOwnProp$Y.call(b, prop))
|
|
35248
|
+
__defNormalProp$P(a, prop, b[prop]);
|
|
35249
|
+
if (__getOwnPropSymbols$Y)
|
|
35250
|
+
for (var prop of __getOwnPropSymbols$Y(b)) {
|
|
35251
|
+
if (__propIsEnum$Y.call(b, prop))
|
|
35252
|
+
__defNormalProp$P(a, prop, b[prop]);
|
|
35253
|
+
}
|
|
35254
|
+
return a;
|
|
35255
|
+
};
|
|
35256
|
+
var __spreadProps$M = (a, b) => __defProps$M(a, __getOwnPropDescs$M(b));
|
|
35257
|
+
const useListAccountAddons = (params) => {
|
|
35258
|
+
const { client } = useShipEngine();
|
|
35259
|
+
return useQuery(__spreadProps$M(__spreadValues$P({}, params), {
|
|
35260
|
+
onError,
|
|
35261
|
+
queryFn: () => client.accountAddons.list(),
|
|
35262
|
+
queryKey: ["useListAccountAddons"],
|
|
35263
|
+
select: (result) => result.data.addons
|
|
35264
|
+
}));
|
|
35265
|
+
};
|
|
35266
|
+
|
|
35267
|
+
var __defProp$O = Object.defineProperty;
|
|
35268
|
+
var __defProps$L = Object.defineProperties;
|
|
35269
|
+
var __getOwnPropDescs$L = Object.getOwnPropertyDescriptors;
|
|
35270
|
+
var __getOwnPropSymbols$X = Object.getOwnPropertySymbols;
|
|
35271
|
+
var __hasOwnProp$X = Object.prototype.hasOwnProperty;
|
|
35272
|
+
var __propIsEnum$X = Object.prototype.propertyIsEnumerable;
|
|
35273
|
+
var __defNormalProp$O = (obj, key, value) => key in obj ? __defProp$O(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
35274
|
+
var __spreadValues$O = (a, b) => {
|
|
35275
|
+
for (var prop in b || (b = {}))
|
|
35276
|
+
if (__hasOwnProp$X.call(b, prop))
|
|
35277
|
+
__defNormalProp$O(a, prop, b[prop]);
|
|
35278
|
+
if (__getOwnPropSymbols$X)
|
|
35279
|
+
for (var prop of __getOwnPropSymbols$X(b)) {
|
|
35280
|
+
if (__propIsEnum$X.call(b, prop))
|
|
35281
|
+
__defNormalProp$O(a, prop, b[prop]);
|
|
35282
|
+
}
|
|
35283
|
+
return a;
|
|
35284
|
+
};
|
|
35285
|
+
var __spreadProps$L = (a, b) => __defProps$L(a, __getOwnPropDescs$L(b));
|
|
35286
|
+
var __async$10 = (__this, __arguments, generator) => {
|
|
35287
|
+
return new Promise((resolve, reject) => {
|
|
35288
|
+
var fulfilled = (value) => {
|
|
35289
|
+
try {
|
|
35290
|
+
step(generator.next(value));
|
|
35291
|
+
} catch (e) {
|
|
35292
|
+
reject(e);
|
|
35293
|
+
}
|
|
35294
|
+
};
|
|
35295
|
+
var rejected = (value) => {
|
|
35296
|
+
try {
|
|
35297
|
+
step(generator.throw(value));
|
|
35298
|
+
} catch (e) {
|
|
35299
|
+
reject(e);
|
|
35300
|
+
}
|
|
35301
|
+
};
|
|
35302
|
+
var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
|
|
35303
|
+
step((generator = generator.apply(__this, __arguments)).next());
|
|
35304
|
+
});
|
|
35305
|
+
};
|
|
35306
|
+
const useEnableAccountAddon = (params) => {
|
|
35307
|
+
const { client } = useShipEngine();
|
|
35308
|
+
return useMutation(__spreadProps$L(__spreadValues$O({}, params), {
|
|
35309
|
+
mutationFn: (addonType) => __async$10(void 0, null, function* () {
|
|
35310
|
+
const result = yield client.accountAddons.enable(addonType);
|
|
35311
|
+
return result.data;
|
|
35312
|
+
}),
|
|
35313
|
+
mutationKey: ["useEnableAccountAddon"],
|
|
35314
|
+
onError
|
|
35315
|
+
}));
|
|
35316
|
+
};
|
|
35317
|
+
|
|
35318
|
+
var __defProp$N = Object.defineProperty;
|
|
35319
|
+
var __defProps$K = Object.defineProperties;
|
|
35320
|
+
var __getOwnPropDescs$K = Object.getOwnPropertyDescriptors;
|
|
35321
|
+
var __getOwnPropSymbols$W = Object.getOwnPropertySymbols;
|
|
35322
|
+
var __hasOwnProp$W = Object.prototype.hasOwnProperty;
|
|
35323
|
+
var __propIsEnum$W = Object.prototype.propertyIsEnumerable;
|
|
35324
|
+
var __defNormalProp$N = (obj, key, value) => key in obj ? __defProp$N(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
35325
|
+
var __spreadValues$N = (a, b) => {
|
|
35326
|
+
for (var prop in b || (b = {}))
|
|
35327
|
+
if (__hasOwnProp$W.call(b, prop))
|
|
35328
|
+
__defNormalProp$N(a, prop, b[prop]);
|
|
35329
|
+
if (__getOwnPropSymbols$W)
|
|
35330
|
+
for (var prop of __getOwnPropSymbols$W(b)) {
|
|
35331
|
+
if (__propIsEnum$W.call(b, prop))
|
|
35332
|
+
__defNormalProp$N(a, prop, b[prop]);
|
|
35333
|
+
}
|
|
35334
|
+
return a;
|
|
35335
|
+
};
|
|
35336
|
+
var __spreadProps$K = (a, b) => __defProps$K(a, __getOwnPropDescs$K(b));
|
|
35337
|
+
var __async$$ = (__this, __arguments, generator) => {
|
|
35338
|
+
return new Promise((resolve, reject) => {
|
|
35339
|
+
var fulfilled = (value) => {
|
|
35340
|
+
try {
|
|
35341
|
+
step(generator.next(value));
|
|
35342
|
+
} catch (e) {
|
|
35343
|
+
reject(e);
|
|
35344
|
+
}
|
|
35345
|
+
};
|
|
35346
|
+
var rejected = (value) => {
|
|
35347
|
+
try {
|
|
35348
|
+
step(generator.throw(value));
|
|
35349
|
+
} catch (e) {
|
|
35350
|
+
reject(e);
|
|
35351
|
+
}
|
|
35352
|
+
};
|
|
35353
|
+
var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
|
|
35354
|
+
step((generator = generator.apply(__this, __arguments)).next());
|
|
35355
|
+
});
|
|
35356
|
+
};
|
|
35357
|
+
const useDisableAccountAddon = (params) => {
|
|
35358
|
+
const { client } = useShipEngine();
|
|
35359
|
+
return useMutation(__spreadProps$K(__spreadValues$N({}, params), {
|
|
35360
|
+
mutationFn: (addonType) => __async$$(void 0, null, function* () {
|
|
35361
|
+
const result = yield client.accountAddons.disable(addonType);
|
|
35362
|
+
return result.data;
|
|
35363
|
+
}),
|
|
35364
|
+
mutationKey: ["useDisableAccountAddon"],
|
|
35365
|
+
onError
|
|
35366
|
+
}));
|
|
35367
|
+
};
|
|
35368
|
+
|
|
35202
35369
|
var __defProp$M = Object.defineProperty;
|
|
35203
35370
|
var __defProps$J = Object.defineProperties;
|
|
35204
35371
|
var __getOwnPropDescs$J = Object.getOwnPropertyDescriptors;
|
|
@@ -35218,16 +35385,48 @@ var __spreadValues$M = (a, b) => {
|
|
|
35218
35385
|
return a;
|
|
35219
35386
|
};
|
|
35220
35387
|
var __spreadProps$J = (a, b) => __defProps$J(a, __getOwnPropDescs$J(b));
|
|
35221
|
-
const
|
|
35388
|
+
const useListAccountFeatures = (params) => {
|
|
35222
35389
|
const { client } = useShipEngine();
|
|
35223
35390
|
return useQuery(__spreadProps$J(__spreadValues$M({}, params), {
|
|
35224
35391
|
onError,
|
|
35225
|
-
queryFn: () => client.
|
|
35226
|
-
queryKey: ["
|
|
35227
|
-
select: (result) => result.data.
|
|
35392
|
+
queryFn: () => client.accountFeatures.list(),
|
|
35393
|
+
queryKey: ["useListAccountFeatures"],
|
|
35394
|
+
select: (result) => result.data.features
|
|
35228
35395
|
}));
|
|
35229
35396
|
};
|
|
35230
35397
|
|
|
35398
|
+
var __async$_ = (__this, __arguments, generator) => {
|
|
35399
|
+
return new Promise((resolve, reject) => {
|
|
35400
|
+
var fulfilled = (value) => {
|
|
35401
|
+
try {
|
|
35402
|
+
step(generator.next(value));
|
|
35403
|
+
} catch (e) {
|
|
35404
|
+
reject(e);
|
|
35405
|
+
}
|
|
35406
|
+
};
|
|
35407
|
+
var rejected = (value) => {
|
|
35408
|
+
try {
|
|
35409
|
+
step(generator.throw(value));
|
|
35410
|
+
} catch (e) {
|
|
35411
|
+
reject(e);
|
|
35412
|
+
}
|
|
35413
|
+
};
|
|
35414
|
+
var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
|
|
35415
|
+
step((generator = generator.apply(__this, __arguments)).next());
|
|
35416
|
+
});
|
|
35417
|
+
};
|
|
35418
|
+
const useRequestAccountFeature = () => {
|
|
35419
|
+
const { client } = useShipEngine();
|
|
35420
|
+
return useMutation({
|
|
35421
|
+
mutationFn: (request) => __async$_(void 0, null, function* () {
|
|
35422
|
+
const result = yield client.accountFeatures.request(request);
|
|
35423
|
+
return result.data;
|
|
35424
|
+
}),
|
|
35425
|
+
mutationKey: ["useRequestAccountFeature"],
|
|
35426
|
+
onError
|
|
35427
|
+
});
|
|
35428
|
+
};
|
|
35429
|
+
|
|
35231
35430
|
var __defProp$L = Object.defineProperty;
|
|
35232
35431
|
var __defProps$I = Object.defineProperties;
|
|
35233
35432
|
var __getOwnPropDescs$I = Object.getOwnPropertyDescriptors;
|
|
@@ -35247,7 +35446,7 @@ var __spreadValues$L = (a, b) => {
|
|
|
35247
35446
|
return a;
|
|
35248
35447
|
};
|
|
35249
35448
|
var __spreadProps$I = (a, b) => __defProps$I(a, __getOwnPropDescs$I(b));
|
|
35250
|
-
var __async$
|
|
35449
|
+
var __async$Z = (__this, __arguments, generator) => {
|
|
35251
35450
|
return new Promise((resolve, reject) => {
|
|
35252
35451
|
var fulfilled = (value) => {
|
|
35253
35452
|
try {
|
|
@@ -35267,14 +35466,13 @@ var __async$_ = (__this, __arguments, generator) => {
|
|
|
35267
35466
|
step((generator = generator.apply(__this, __arguments)).next());
|
|
35268
35467
|
});
|
|
35269
35468
|
};
|
|
35270
|
-
const
|
|
35469
|
+
const useDisableRefundAssist = (params) => {
|
|
35271
35470
|
const { client } = useShipEngine();
|
|
35272
35471
|
return useMutation(__spreadProps$I(__spreadValues$L({}, params), {
|
|
35273
|
-
mutationFn: (
|
|
35274
|
-
|
|
35275
|
-
return result.data;
|
|
35472
|
+
mutationFn: () => __async$Z(void 0, null, function* () {
|
|
35473
|
+
yield client.accountRefundAssist.disable();
|
|
35276
35474
|
}),
|
|
35277
|
-
mutationKey: ["
|
|
35475
|
+
mutationKey: ["useDisableRefundAssist"],
|
|
35278
35476
|
onError
|
|
35279
35477
|
}));
|
|
35280
35478
|
};
|
|
@@ -35298,7 +35496,7 @@ var __spreadValues$K = (a, b) => {
|
|
|
35298
35496
|
return a;
|
|
35299
35497
|
};
|
|
35300
35498
|
var __spreadProps$H = (a, b) => __defProps$H(a, __getOwnPropDescs$H(b));
|
|
35301
|
-
var __async$
|
|
35499
|
+
var __async$Y = (__this, __arguments, generator) => {
|
|
35302
35500
|
return new Promise((resolve, reject) => {
|
|
35303
35501
|
var fulfilled = (value) => {
|
|
35304
35502
|
try {
|
|
@@ -35318,14 +35516,13 @@ var __async$Z = (__this, __arguments, generator) => {
|
|
|
35318
35516
|
step((generator = generator.apply(__this, __arguments)).next());
|
|
35319
35517
|
});
|
|
35320
35518
|
};
|
|
35321
|
-
const
|
|
35519
|
+
const useEnableRefundAssist = (params) => {
|
|
35322
35520
|
const { client } = useShipEngine();
|
|
35323
35521
|
return useMutation(__spreadProps$H(__spreadValues$K({}, params), {
|
|
35324
|
-
mutationFn: (
|
|
35325
|
-
|
|
35326
|
-
return result.data;
|
|
35522
|
+
mutationFn: () => __async$Y(void 0, null, function* () {
|
|
35523
|
+
yield client.accountRefundAssist.enable();
|
|
35327
35524
|
}),
|
|
35328
|
-
mutationKey: ["
|
|
35525
|
+
mutationKey: ["useEnableRefundAssist"],
|
|
35329
35526
|
onError
|
|
35330
35527
|
}));
|
|
35331
35528
|
};
|
|
@@ -35349,48 +35546,16 @@ var __spreadValues$J = (a, b) => {
|
|
|
35349
35546
|
return a;
|
|
35350
35547
|
};
|
|
35351
35548
|
var __spreadProps$G = (a, b) => __defProps$G(a, __getOwnPropDescs$G(b));
|
|
35352
|
-
const
|
|
35549
|
+
const useGetRefundAssist = (params) => {
|
|
35353
35550
|
const { client } = useShipEngine();
|
|
35354
35551
|
return useQuery(__spreadProps$G(__spreadValues$J({}, params), {
|
|
35355
35552
|
onError,
|
|
35356
|
-
queryFn: () => client.
|
|
35357
|
-
queryKey: ["
|
|
35358
|
-
select: (result) => result.data.
|
|
35553
|
+
queryFn: () => client.accountRefundAssist.get(),
|
|
35554
|
+
queryKey: ["useGetRefundAssist"],
|
|
35555
|
+
select: (result) => result.data.refundAssistCarriers
|
|
35359
35556
|
}));
|
|
35360
35557
|
};
|
|
35361
35558
|
|
|
35362
|
-
var __async$Y = (__this, __arguments, generator) => {
|
|
35363
|
-
return new Promise((resolve, reject) => {
|
|
35364
|
-
var fulfilled = (value) => {
|
|
35365
|
-
try {
|
|
35366
|
-
step(generator.next(value));
|
|
35367
|
-
} catch (e) {
|
|
35368
|
-
reject(e);
|
|
35369
|
-
}
|
|
35370
|
-
};
|
|
35371
|
-
var rejected = (value) => {
|
|
35372
|
-
try {
|
|
35373
|
-
step(generator.throw(value));
|
|
35374
|
-
} catch (e) {
|
|
35375
|
-
reject(e);
|
|
35376
|
-
}
|
|
35377
|
-
};
|
|
35378
|
-
var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
|
|
35379
|
-
step((generator = generator.apply(__this, __arguments)).next());
|
|
35380
|
-
});
|
|
35381
|
-
};
|
|
35382
|
-
const useRequestAccountFeature = () => {
|
|
35383
|
-
const { client } = useShipEngine();
|
|
35384
|
-
return useMutation({
|
|
35385
|
-
mutationFn: (request) => __async$Y(void 0, null, function* () {
|
|
35386
|
-
const result = yield client.accountFeatures.request(request);
|
|
35387
|
-
return result.data;
|
|
35388
|
-
}),
|
|
35389
|
-
mutationKey: ["useRequestAccountFeature"],
|
|
35390
|
-
onError
|
|
35391
|
-
});
|
|
35392
|
-
};
|
|
35393
|
-
|
|
35394
35559
|
var __async$X = (__this, __arguments, generator) => {
|
|
35395
35560
|
return new Promise((resolve, reject) => {
|
|
35396
35561
|
var fulfilled = (value) => {
|
|
@@ -40413,4 +40578,4 @@ const alchemy = {
|
|
|
40413
40578
|
createElement
|
|
40414
40579
|
};
|
|
40415
40580
|
|
|
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 };
|
|
40581
|
+
export { AccountAddonsAPI, AccountBillingAPI, AccountBillingPlanAPI, AccountBillingPlanChangeType, AccountFeaturesAPI, AccountRefundAssistAPI, 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, useDisableRefundAssist, useDownloadRateCard, useEditShippingRule, useEnableAccountAddon, useEnableRefundAssist, 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, useGetRefundAssist, 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 };
|