@shipengine/alchemy 6.0.68 → 6.0.69
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 +221 -163
- package/index.mjs +221 -164
- 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$10 = Object.getOwnPropertySymbols;
|
|
10804
|
+
var __hasOwnProp$10 = Object.prototype.hasOwnProperty;
|
|
10805
|
+
var __propIsEnum$10 = 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$10.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$10)
|
|
10812
|
+
for (var prop of __getOwnPropSymbols$10(source)) {
|
|
10813
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$10.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;
|
|
@@ -11016,6 +11016,12 @@ class AccountAddonsAPI {
|
|
|
11016
11016
|
this.list = () => {
|
|
11017
11017
|
return this.client.get("/v1/account/addons");
|
|
11018
11018
|
};
|
|
11019
|
+
/**
|
|
11020
|
+
* The `enable` method allows to enable an AddOn for the current user
|
|
11021
|
+
*/
|
|
11022
|
+
this.enable = (addonCode) => {
|
|
11023
|
+
return this.client.post(`/v1/account/addons/${addonCode}/enable`);
|
|
11024
|
+
};
|
|
11019
11025
|
this.client = client;
|
|
11020
11026
|
}
|
|
11021
11027
|
}
|
|
@@ -13823,7 +13829,7 @@ var ipaddr = {
|
|
|
13823
13829
|
}).call(commonjsGlobal);
|
|
13824
13830
|
} (ipaddr));
|
|
13825
13831
|
|
|
13826
|
-
var __async$
|
|
13832
|
+
var __async$16 = (__this, __arguments, generator) => {
|
|
13827
13833
|
return new Promise((resolve, reject) => {
|
|
13828
13834
|
var fulfilled = (value) => {
|
|
13829
13835
|
try {
|
|
@@ -13843,7 +13849,7 @@ var __async$15 = (__this, __arguments, generator) => {
|
|
|
13843
13849
|
step((generator = generator.apply(__this, __arguments)).next());
|
|
13844
13850
|
});
|
|
13845
13851
|
};
|
|
13846
|
-
const getEndUserIpAddress = () => __async$
|
|
13852
|
+
const getEndUserIpAddress = () => __async$16(void 0, null, function* () {
|
|
13847
13853
|
try {
|
|
13848
13854
|
const response = yield axios.get("https://api.ipify.org/?format=json");
|
|
13849
13855
|
if (response.data.ip && ipaddrExports.isValid(response.data.ip)) {
|
|
@@ -13904,38 +13910,38 @@ const decamelizeKeys = (obj, separator = "_") => {
|
|
|
13904
13910
|
return obj;
|
|
13905
13911
|
};
|
|
13906
13912
|
|
|
13907
|
-
var __defProp$
|
|
13908
|
-
var __defProps$
|
|
13909
|
-
var __getOwnPropDescs$
|
|
13910
|
-
var __getOwnPropSymbols$
|
|
13911
|
-
var __hasOwnProp$
|
|
13912
|
-
var __propIsEnum$
|
|
13913
|
-
var __defNormalProp$
|
|
13914
|
-
var __spreadValues$
|
|
13913
|
+
var __defProp$P = Object.defineProperty;
|
|
13914
|
+
var __defProps$J = Object.defineProperties;
|
|
13915
|
+
var __getOwnPropDescs$J = Object.getOwnPropertyDescriptors;
|
|
13916
|
+
var __getOwnPropSymbols$_ = Object.getOwnPropertySymbols;
|
|
13917
|
+
var __hasOwnProp$_ = Object.prototype.hasOwnProperty;
|
|
13918
|
+
var __propIsEnum$_ = Object.prototype.propertyIsEnumerable;
|
|
13919
|
+
var __defNormalProp$P = (obj, key, value) => key in obj ? __defProp$P(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
13920
|
+
var __spreadValues$P = (a, b) => {
|
|
13915
13921
|
for (var prop in b || (b = {}))
|
|
13916
|
-
if (__hasOwnProp$
|
|
13917
|
-
__defNormalProp$
|
|
13918
|
-
if (__getOwnPropSymbols$
|
|
13919
|
-
for (var prop of __getOwnPropSymbols$
|
|
13920
|
-
if (__propIsEnum$
|
|
13921
|
-
__defNormalProp$
|
|
13922
|
+
if (__hasOwnProp$_.call(b, prop))
|
|
13923
|
+
__defNormalProp$P(a, prop, b[prop]);
|
|
13924
|
+
if (__getOwnPropSymbols$_)
|
|
13925
|
+
for (var prop of __getOwnPropSymbols$_(b)) {
|
|
13926
|
+
if (__propIsEnum$_.call(b, prop))
|
|
13927
|
+
__defNormalProp$P(a, prop, b[prop]);
|
|
13922
13928
|
}
|
|
13923
13929
|
return a;
|
|
13924
13930
|
};
|
|
13925
|
-
var __spreadProps$
|
|
13931
|
+
var __spreadProps$J = (a, b) => __defProps$J(a, __getOwnPropDescs$J(b));
|
|
13926
13932
|
var __objRest$v = (source, exclude) => {
|
|
13927
13933
|
var target = {};
|
|
13928
13934
|
for (var prop in source)
|
|
13929
|
-
if (__hasOwnProp$
|
|
13935
|
+
if (__hasOwnProp$_.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
13930
13936
|
target[prop] = source[prop];
|
|
13931
|
-
if (source != null && __getOwnPropSymbols$
|
|
13932
|
-
for (var prop of __getOwnPropSymbols$
|
|
13933
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
13937
|
+
if (source != null && __getOwnPropSymbols$_)
|
|
13938
|
+
for (var prop of __getOwnPropSymbols$_(source)) {
|
|
13939
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$_.call(source, prop))
|
|
13934
13940
|
target[prop] = source[prop];
|
|
13935
13941
|
}
|
|
13936
13942
|
return target;
|
|
13937
13943
|
};
|
|
13938
|
-
var __async$
|
|
13944
|
+
var __async$15 = (__this, __arguments, generator) => {
|
|
13939
13945
|
return new Promise((resolve, reject) => {
|
|
13940
13946
|
var fulfilled = (value) => {
|
|
13941
13947
|
try {
|
|
@@ -13975,12 +13981,12 @@ class CarriersAPI {
|
|
|
13975
13981
|
/**
|
|
13976
13982
|
* The `connect` method connects a carrier account to a user's ShipEngine account.
|
|
13977
13983
|
*/
|
|
13978
|
-
this.connect = (_a) => __async$
|
|
13984
|
+
this.connect = (_a) => __async$15(this, null, function* () {
|
|
13979
13985
|
var _b = _a, { carrierCode } = _b, connection = __objRest$v(_b, ["carrierCode"]);
|
|
13980
13986
|
const endUserIpAddress = yield getEndUserIpAddress();
|
|
13981
13987
|
if (!endUserIpAddress)
|
|
13982
13988
|
return Promise.reject([new CodedError("Unable to get IP address")]);
|
|
13983
|
-
return yield this.client.post(`/v1/registration/${carrierCode}`, __spreadProps$
|
|
13989
|
+
return yield this.client.post(`/v1/registration/${carrierCode}`, __spreadProps$J(__spreadValues$P({}, connection), {
|
|
13984
13990
|
endUserIpAddress
|
|
13985
13991
|
}));
|
|
13986
13992
|
});
|
|
@@ -14064,22 +14070,22 @@ class CarriersAPI {
|
|
|
14064
14070
|
}
|
|
14065
14071
|
}
|
|
14066
14072
|
|
|
14067
|
-
var __getOwnPropSymbols$
|
|
14068
|
-
var __hasOwnProp$
|
|
14069
|
-
var __propIsEnum$
|
|
14073
|
+
var __getOwnPropSymbols$Z = Object.getOwnPropertySymbols;
|
|
14074
|
+
var __hasOwnProp$Z = Object.prototype.hasOwnProperty;
|
|
14075
|
+
var __propIsEnum$Z = Object.prototype.propertyIsEnumerable;
|
|
14070
14076
|
var __objRest$u = (source, exclude) => {
|
|
14071
14077
|
var target = {};
|
|
14072
14078
|
for (var prop in source)
|
|
14073
|
-
if (__hasOwnProp$
|
|
14079
|
+
if (__hasOwnProp$Z.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
14074
14080
|
target[prop] = source[prop];
|
|
14075
|
-
if (source != null && __getOwnPropSymbols$
|
|
14076
|
-
for (var prop of __getOwnPropSymbols$
|
|
14077
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
14081
|
+
if (source != null && __getOwnPropSymbols$Z)
|
|
14082
|
+
for (var prop of __getOwnPropSymbols$Z(source)) {
|
|
14083
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$Z.call(source, prop))
|
|
14078
14084
|
target[prop] = source[prop];
|
|
14079
14085
|
}
|
|
14080
14086
|
return target;
|
|
14081
14087
|
};
|
|
14082
|
-
var __async$
|
|
14088
|
+
var __async$14 = (__this, __arguments, generator) => {
|
|
14083
14089
|
return new Promise((resolve, reject) => {
|
|
14084
14090
|
var fulfilled = (value) => {
|
|
14085
14091
|
try {
|
|
@@ -14121,7 +14127,7 @@ class ConnectionsAPI {
|
|
|
14121
14127
|
/**
|
|
14122
14128
|
* The `connectCarrier` method connects a carrier to account.
|
|
14123
14129
|
*/
|
|
14124
|
-
this.connectCarrier = (carrierName, formData) => __async$
|
|
14130
|
+
this.connectCarrier = (carrierName, formData) => __async$14(this, null, function* () {
|
|
14125
14131
|
return yield this.client.post(
|
|
14126
14132
|
`/v1/connections/carriers/${carrierName}`,
|
|
14127
14133
|
formData,
|
|
@@ -16289,23 +16295,23 @@ class CustomPackagesAPI {
|
|
|
16289
16295
|
}
|
|
16290
16296
|
}
|
|
16291
16297
|
|
|
16292
|
-
var __defProp$
|
|
16293
|
-
var __getOwnPropSymbols$
|
|
16294
|
-
var __hasOwnProp$
|
|
16295
|
-
var __propIsEnum$
|
|
16296
|
-
var __defNormalProp$
|
|
16297
|
-
var __spreadValues$
|
|
16298
|
+
var __defProp$O = Object.defineProperty;
|
|
16299
|
+
var __getOwnPropSymbols$Y = Object.getOwnPropertySymbols;
|
|
16300
|
+
var __hasOwnProp$Y = Object.prototype.hasOwnProperty;
|
|
16301
|
+
var __propIsEnum$Y = Object.prototype.propertyIsEnumerable;
|
|
16302
|
+
var __defNormalProp$O = (obj, key, value) => key in obj ? __defProp$O(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
16303
|
+
var __spreadValues$O = (a, b) => {
|
|
16298
16304
|
for (var prop in b || (b = {}))
|
|
16299
|
-
if (__hasOwnProp$
|
|
16300
|
-
__defNormalProp$
|
|
16301
|
-
if (__getOwnPropSymbols$
|
|
16302
|
-
for (var prop of __getOwnPropSymbols$
|
|
16303
|
-
if (__propIsEnum$
|
|
16304
|
-
__defNormalProp$
|
|
16305
|
+
if (__hasOwnProp$Y.call(b, prop))
|
|
16306
|
+
__defNormalProp$O(a, prop, b[prop]);
|
|
16307
|
+
if (__getOwnPropSymbols$Y)
|
|
16308
|
+
for (var prop of __getOwnPropSymbols$Y(b)) {
|
|
16309
|
+
if (__propIsEnum$Y.call(b, prop))
|
|
16310
|
+
__defNormalProp$O(a, prop, b[prop]);
|
|
16305
16311
|
}
|
|
16306
16312
|
return a;
|
|
16307
16313
|
};
|
|
16308
|
-
var __async$
|
|
16314
|
+
var __async$13 = (__this, __arguments, generator) => {
|
|
16309
16315
|
return new Promise((resolve, reject) => {
|
|
16310
16316
|
var fulfilled = (value) => {
|
|
16311
16317
|
try {
|
|
@@ -16344,12 +16350,12 @@ class FundingSourcesAPI {
|
|
|
16344
16350
|
* The `create` method creates a new funding source for a given user. This requires
|
|
16345
16351
|
* payment information to be collected from the user.
|
|
16346
16352
|
*/
|
|
16347
|
-
this.create = (createFundingSource) => __async$
|
|
16353
|
+
this.create = (createFundingSource) => __async$13(this, null, function* () {
|
|
16348
16354
|
const endUserIpAddress = yield getEndUserIpAddress();
|
|
16349
16355
|
if (!endUserIpAddress) {
|
|
16350
16356
|
return Promise.reject([new CodedError("Unable to get IP address")]);
|
|
16351
16357
|
}
|
|
16352
|
-
return yield this.client.post("/v1/funding_sources", __spreadValues$
|
|
16358
|
+
return yield this.client.post("/v1/funding_sources", __spreadValues$O({
|
|
16353
16359
|
endUserIpAddress
|
|
16354
16360
|
}, createFundingSource));
|
|
16355
16361
|
});
|
|
@@ -16358,7 +16364,7 @@ class FundingSourcesAPI {
|
|
|
16358
16364
|
* user to update the billing address or payment information associated with the
|
|
16359
16365
|
* funding source.
|
|
16360
16366
|
*/
|
|
16361
|
-
this.update = (billingInfo, creditCardInfo, auctanePayInfo, fundingSourceId) => __async$
|
|
16367
|
+
this.update = (billingInfo, creditCardInfo, auctanePayInfo, fundingSourceId) => __async$13(this, null, function* () {
|
|
16362
16368
|
const endUserIpAddress = yield getEndUserIpAddress();
|
|
16363
16369
|
if (!endUserIpAddress) {
|
|
16364
16370
|
return Promise.reject([new CodedError("Unable to get IP address")]);
|
|
@@ -16368,7 +16374,7 @@ class FundingSourcesAPI {
|
|
|
16368
16374
|
{
|
|
16369
16375
|
billingInfo,
|
|
16370
16376
|
endUserIpAddress,
|
|
16371
|
-
paymentMethod: __spreadValues$
|
|
16377
|
+
paymentMethod: __spreadValues$O({
|
|
16372
16378
|
creditCardInfo
|
|
16373
16379
|
}, auctanePayInfo)
|
|
16374
16380
|
}
|
|
@@ -16378,19 +16384,19 @@ class FundingSourcesAPI {
|
|
|
16378
16384
|
* The `registerCarrier` method registers a carrier account and associates
|
|
16379
16385
|
* it with a given funding source.
|
|
16380
16386
|
*/
|
|
16381
|
-
this.registerCarrier = (carrier) => __async$
|
|
16387
|
+
this.registerCarrier = (carrier) => __async$13(this, null, function* () {
|
|
16382
16388
|
const endUserIpAddress = yield getEndUserIpAddress();
|
|
16383
16389
|
if (!endUserIpAddress) {
|
|
16384
16390
|
return Promise.reject([new CodedError("Unable to get IP address")]);
|
|
16385
16391
|
}
|
|
16386
|
-
return yield this.client.post("/v1/registration/funding_source", __spreadValues$
|
|
16392
|
+
return yield this.client.post("/v1/registration/funding_source", __spreadValues$O({
|
|
16387
16393
|
endUserIpAddress
|
|
16388
16394
|
}, carrier));
|
|
16389
16395
|
});
|
|
16390
16396
|
/**
|
|
16391
16397
|
* The `addFunds` method allows you to add funds to a funding source.
|
|
16392
16398
|
*/
|
|
16393
|
-
this.addFunds = (amount, fundingSourceId) => __async$
|
|
16399
|
+
this.addFunds = (amount, fundingSourceId) => __async$13(this, null, function* () {
|
|
16394
16400
|
return yield this.client.put(
|
|
16395
16401
|
`/v1/funding_sources/${fundingSourceId}/add_funds`,
|
|
16396
16402
|
amount
|
|
@@ -16400,7 +16406,7 @@ class FundingSourcesAPI {
|
|
|
16400
16406
|
* The `metadata` method returns seller-specific requirements for creating funding sources
|
|
16401
16407
|
* and attaching carriers
|
|
16402
16408
|
*/
|
|
16403
|
-
this.metadata = () => __async$
|
|
16409
|
+
this.metadata = () => __async$13(this, null, function* () {
|
|
16404
16410
|
return yield this.client.get("/v1/funding_sources/metadata");
|
|
16405
16411
|
});
|
|
16406
16412
|
/**
|
|
@@ -16452,7 +16458,7 @@ class InsuranceAPI {
|
|
|
16452
16458
|
}
|
|
16453
16459
|
}
|
|
16454
16460
|
|
|
16455
|
-
var __async$
|
|
16461
|
+
var __async$12 = (__this, __arguments, generator) => {
|
|
16456
16462
|
return new Promise((resolve, reject) => {
|
|
16457
16463
|
var fulfilled = (value) => {
|
|
16458
16464
|
try {
|
|
@@ -16484,13 +16490,13 @@ class InvoiceAddressAPI {
|
|
|
16484
16490
|
/**
|
|
16485
16491
|
* The `create` method creates a new invoice address for a given user.
|
|
16486
16492
|
*/
|
|
16487
|
-
this.create = (invoiceAddress) => __async$
|
|
16493
|
+
this.create = (invoiceAddress) => __async$12(this, null, function* () {
|
|
16488
16494
|
return yield this.client.post("/v1/invoice_address", invoiceAddress);
|
|
16489
16495
|
});
|
|
16490
16496
|
/**
|
|
16491
16497
|
* The `update` method updates a invoice address for a given user.
|
|
16492
16498
|
*/
|
|
16493
|
-
this.update = (invoiceAddress) => __async$
|
|
16499
|
+
this.update = (invoiceAddress) => __async$12(this, null, function* () {
|
|
16494
16500
|
return yield this.client.put("/v1/invoice_address", invoiceAddress);
|
|
16495
16501
|
});
|
|
16496
16502
|
this.client = client;
|
|
@@ -16552,17 +16558,17 @@ class LabelsAPI {
|
|
|
16552
16558
|
}
|
|
16553
16559
|
}
|
|
16554
16560
|
|
|
16555
|
-
var __getOwnPropSymbols$
|
|
16556
|
-
var __hasOwnProp$
|
|
16557
|
-
var __propIsEnum$
|
|
16561
|
+
var __getOwnPropSymbols$X = Object.getOwnPropertySymbols;
|
|
16562
|
+
var __hasOwnProp$X = Object.prototype.hasOwnProperty;
|
|
16563
|
+
var __propIsEnum$X = Object.prototype.propertyIsEnumerable;
|
|
16558
16564
|
var __objRest$t = (source, exclude) => {
|
|
16559
16565
|
var target = {};
|
|
16560
16566
|
for (var prop in source)
|
|
16561
|
-
if (__hasOwnProp$
|
|
16567
|
+
if (__hasOwnProp$X.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
16562
16568
|
target[prop] = source[prop];
|
|
16563
|
-
if (source != null && __getOwnPropSymbols$
|
|
16564
|
-
for (var prop of __getOwnPropSymbols$
|
|
16565
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
16569
|
+
if (source != null && __getOwnPropSymbols$X)
|
|
16570
|
+
for (var prop of __getOwnPropSymbols$X(source)) {
|
|
16571
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$X.call(source, prop))
|
|
16566
16572
|
target[prop] = source[prop];
|
|
16567
16573
|
}
|
|
16568
16574
|
return target;
|
|
@@ -16683,19 +16689,19 @@ class RateCardsAPI {
|
|
|
16683
16689
|
}
|
|
16684
16690
|
}
|
|
16685
16691
|
|
|
16686
|
-
var __defProp$
|
|
16687
|
-
var __getOwnPropSymbols$
|
|
16688
|
-
var __hasOwnProp$
|
|
16689
|
-
var __propIsEnum$
|
|
16690
|
-
var __defNormalProp$
|
|
16691
|
-
var __spreadValues$
|
|
16692
|
+
var __defProp$N = Object.defineProperty;
|
|
16693
|
+
var __getOwnPropSymbols$W = Object.getOwnPropertySymbols;
|
|
16694
|
+
var __hasOwnProp$W = Object.prototype.hasOwnProperty;
|
|
16695
|
+
var __propIsEnum$W = Object.prototype.propertyIsEnumerable;
|
|
16696
|
+
var __defNormalProp$N = (obj, key, value) => key in obj ? __defProp$N(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
16697
|
+
var __spreadValues$N = (a, b) => {
|
|
16692
16698
|
for (var prop in b || (b = {}))
|
|
16693
|
-
if (__hasOwnProp$
|
|
16694
|
-
__defNormalProp$
|
|
16695
|
-
if (__getOwnPropSymbols$
|
|
16696
|
-
for (var prop of __getOwnPropSymbols$
|
|
16697
|
-
if (__propIsEnum$
|
|
16698
|
-
__defNormalProp$
|
|
16699
|
+
if (__hasOwnProp$W.call(b, prop))
|
|
16700
|
+
__defNormalProp$N(a, prop, b[prop]);
|
|
16701
|
+
if (__getOwnPropSymbols$W)
|
|
16702
|
+
for (var prop of __getOwnPropSymbols$W(b)) {
|
|
16703
|
+
if (__propIsEnum$W.call(b, prop))
|
|
16704
|
+
__defNormalProp$N(a, prop, b[prop]);
|
|
16699
16705
|
}
|
|
16700
16706
|
return a;
|
|
16701
16707
|
};
|
|
@@ -16717,7 +16723,7 @@ class RatesAPI {
|
|
|
16717
16723
|
* method.
|
|
16718
16724
|
*/
|
|
16719
16725
|
this.estimate = (params) => {
|
|
16720
|
-
return this.client.post("/v1/rates/estimate", __spreadValues$
|
|
16726
|
+
return this.client.post("/v1/rates/estimate", __spreadValues$N({}, params));
|
|
16721
16727
|
};
|
|
16722
16728
|
this.client = client;
|
|
16723
16729
|
}
|
|
@@ -16797,7 +16803,7 @@ class SalesOrdersAPI {
|
|
|
16797
16803
|
}
|
|
16798
16804
|
}
|
|
16799
16805
|
|
|
16800
|
-
var __async$
|
|
16806
|
+
var __async$11 = (__this, __arguments, generator) => {
|
|
16801
16807
|
return new Promise((resolve, reject) => {
|
|
16802
16808
|
var fulfilled = (value) => {
|
|
16803
16809
|
try {
|
|
@@ -16855,7 +16861,7 @@ class SellersAPI {
|
|
|
16855
16861
|
/**
|
|
16856
16862
|
* Deletes an API Key
|
|
16857
16863
|
*/
|
|
16858
|
-
this.deleteSellerApiKey = (_0) => __async$
|
|
16864
|
+
this.deleteSellerApiKey = (_0) => __async$11(this, [_0], function* ({
|
|
16859
16865
|
encryptedApiKey,
|
|
16860
16866
|
sellerId,
|
|
16861
16867
|
isSandbox
|
|
@@ -16901,19 +16907,19 @@ class SellersAPI {
|
|
|
16901
16907
|
}
|
|
16902
16908
|
}
|
|
16903
16909
|
|
|
16904
|
-
var __defProp$
|
|
16905
|
-
var __getOwnPropSymbols$
|
|
16906
|
-
var __hasOwnProp$
|
|
16907
|
-
var __propIsEnum$
|
|
16908
|
-
var __defNormalProp$
|
|
16909
|
-
var __spreadValues$
|
|
16910
|
+
var __defProp$M = Object.defineProperty;
|
|
16911
|
+
var __getOwnPropSymbols$V = Object.getOwnPropertySymbols;
|
|
16912
|
+
var __hasOwnProp$V = Object.prototype.hasOwnProperty;
|
|
16913
|
+
var __propIsEnum$V = Object.prototype.propertyIsEnumerable;
|
|
16914
|
+
var __defNormalProp$M = (obj, key, value) => key in obj ? __defProp$M(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
16915
|
+
var __spreadValues$M = (a, b) => {
|
|
16910
16916
|
for (var prop in b || (b = {}))
|
|
16911
|
-
if (__hasOwnProp$
|
|
16912
|
-
__defNormalProp$
|
|
16913
|
-
if (__getOwnPropSymbols$
|
|
16914
|
-
for (var prop of __getOwnPropSymbols$
|
|
16915
|
-
if (__propIsEnum$
|
|
16916
|
-
__defNormalProp$
|
|
16917
|
+
if (__hasOwnProp$V.call(b, prop))
|
|
16918
|
+
__defNormalProp$M(a, prop, b[prop]);
|
|
16919
|
+
if (__getOwnPropSymbols$V)
|
|
16920
|
+
for (var prop of __getOwnPropSymbols$V(b)) {
|
|
16921
|
+
if (__propIsEnum$V.call(b, prop))
|
|
16922
|
+
__defNormalProp$M(a, prop, b[prop]);
|
|
16917
16923
|
}
|
|
16918
16924
|
return a;
|
|
16919
16925
|
};
|
|
@@ -16925,7 +16931,7 @@ class ServicePointsAPI {
|
|
|
16925
16931
|
* Either an address, coordinates, or an address query
|
|
16926
16932
|
*/
|
|
16927
16933
|
this.list = (options) => {
|
|
16928
|
-
return this.client.post("/v1/service_points/list", __spreadValues$
|
|
16934
|
+
return this.client.post("/v1/service_points/list", __spreadValues$M({}, options));
|
|
16929
16935
|
};
|
|
16930
16936
|
/**
|
|
16931
16937
|
* Get a specific service point by its carrier code, country code, and id
|
|
@@ -16943,7 +16949,7 @@ class ServicePointsAPI {
|
|
|
16943
16949
|
}
|
|
16944
16950
|
}
|
|
16945
16951
|
|
|
16946
|
-
var __async
|
|
16952
|
+
var __async$10 = (__this, __arguments, generator) => {
|
|
16947
16953
|
return new Promise((resolve, reject) => {
|
|
16948
16954
|
var fulfilled = (value) => {
|
|
16949
16955
|
try {
|
|
@@ -16992,7 +16998,7 @@ class ShipmentsAPI {
|
|
|
16992
16998
|
* The `create` method allows for creating shipments based on a list of shipment
|
|
16993
16999
|
* items passed into this method.
|
|
16994
17000
|
*/
|
|
16995
|
-
this.create = (...shipments) => __async
|
|
17001
|
+
this.create = (...shipments) => __async$10(this, null, function* () {
|
|
16996
17002
|
return this.client.post("/v1/shipments", {
|
|
16997
17003
|
shipments
|
|
16998
17004
|
});
|
|
@@ -34409,38 +34415,38 @@ class WebhooksAPI {
|
|
|
34409
34415
|
}
|
|
34410
34416
|
}
|
|
34411
34417
|
|
|
34412
|
-
var __defProp$
|
|
34413
|
-
var __defProps$
|
|
34414
|
-
var __getOwnPropDescs$
|
|
34415
|
-
var __getOwnPropSymbols$
|
|
34416
|
-
var __hasOwnProp$
|
|
34417
|
-
var __propIsEnum$
|
|
34418
|
-
var __defNormalProp$
|
|
34419
|
-
var __spreadValues$
|
|
34418
|
+
var __defProp$L = Object.defineProperty;
|
|
34419
|
+
var __defProps$I = Object.defineProperties;
|
|
34420
|
+
var __getOwnPropDescs$I = Object.getOwnPropertyDescriptors;
|
|
34421
|
+
var __getOwnPropSymbols$U = Object.getOwnPropertySymbols;
|
|
34422
|
+
var __hasOwnProp$U = Object.prototype.hasOwnProperty;
|
|
34423
|
+
var __propIsEnum$U = Object.prototype.propertyIsEnumerable;
|
|
34424
|
+
var __defNormalProp$L = (obj, key, value) => key in obj ? __defProp$L(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
34425
|
+
var __spreadValues$L = (a, b) => {
|
|
34420
34426
|
for (var prop in b || (b = {}))
|
|
34421
|
-
if (__hasOwnProp$
|
|
34422
|
-
__defNormalProp$
|
|
34423
|
-
if (__getOwnPropSymbols$
|
|
34424
|
-
for (var prop of __getOwnPropSymbols$
|
|
34425
|
-
if (__propIsEnum$
|
|
34426
|
-
__defNormalProp$
|
|
34427
|
+
if (__hasOwnProp$U.call(b, prop))
|
|
34428
|
+
__defNormalProp$L(a, prop, b[prop]);
|
|
34429
|
+
if (__getOwnPropSymbols$U)
|
|
34430
|
+
for (var prop of __getOwnPropSymbols$U(b)) {
|
|
34431
|
+
if (__propIsEnum$U.call(b, prop))
|
|
34432
|
+
__defNormalProp$L(a, prop, b[prop]);
|
|
34427
34433
|
}
|
|
34428
34434
|
return a;
|
|
34429
34435
|
};
|
|
34430
|
-
var __spreadProps$
|
|
34436
|
+
var __spreadProps$I = (a, b) => __defProps$I(a, __getOwnPropDescs$I(b));
|
|
34431
34437
|
var __objRest$s = (source, exclude) => {
|
|
34432
34438
|
var target = {};
|
|
34433
34439
|
for (var prop in source)
|
|
34434
|
-
if (__hasOwnProp$
|
|
34440
|
+
if (__hasOwnProp$U.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
34435
34441
|
target[prop] = source[prop];
|
|
34436
|
-
if (source != null && __getOwnPropSymbols$
|
|
34437
|
-
for (var prop of __getOwnPropSymbols$
|
|
34438
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
34442
|
+
if (source != null && __getOwnPropSymbols$U)
|
|
34443
|
+
for (var prop of __getOwnPropSymbols$U(source)) {
|
|
34444
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$U.call(source, prop))
|
|
34439
34445
|
target[prop] = source[prop];
|
|
34440
34446
|
}
|
|
34441
34447
|
return target;
|
|
34442
34448
|
};
|
|
34443
|
-
var __async
|
|
34449
|
+
var __async$$ = (__this, __arguments, generator) => {
|
|
34444
34450
|
return new Promise((resolve, reject) => {
|
|
34445
34451
|
var fulfilled = (value) => {
|
|
34446
34452
|
try {
|
|
@@ -34463,7 +34469,7 @@ var __async$_ = (__this, __arguments, generator) => {
|
|
|
34463
34469
|
const logger$1 = E({
|
|
34464
34470
|
level: process.env.NODE_ENV === "production" ? "fatal" : "info",
|
|
34465
34471
|
name: "shipengine-api",
|
|
34466
|
-
serializers: __spreadProps$
|
|
34472
|
+
serializers: __spreadProps$I(__spreadValues$L({}, k), {
|
|
34467
34473
|
req: (req) => ({
|
|
34468
34474
|
headers: req.headers,
|
|
34469
34475
|
method: req.method,
|
|
@@ -34488,7 +34494,7 @@ class ShipEngineAPI {
|
|
|
34488
34494
|
this.getSandboxToken = getSandboxToken;
|
|
34489
34495
|
const client = axios.create({
|
|
34490
34496
|
baseURL,
|
|
34491
|
-
headers: __spreadProps$
|
|
34497
|
+
headers: __spreadProps$I(__spreadValues$L({}, headers), {
|
|
34492
34498
|
"Content-Type": "application/json"
|
|
34493
34499
|
}),
|
|
34494
34500
|
paramsSerializer: (params) => lib.stringify(decamelizeKeys(params), { arrayFormat: "brackets" }),
|
|
@@ -34528,7 +34534,7 @@ class ShipEngineAPI {
|
|
|
34528
34534
|
});
|
|
34529
34535
|
client.defaults.headers.common["Authorization"] = `Bearer ${token}`;
|
|
34530
34536
|
client.interceptors.request.use(
|
|
34531
|
-
(config) => __async
|
|
34537
|
+
(config) => __async$$(this, null, function* () {
|
|
34532
34538
|
if (config.isSandbox) {
|
|
34533
34539
|
if (!this.sandboxToken) {
|
|
34534
34540
|
this.sandboxToken = yield getSandboxToken == null ? void 0 : getSandboxToken();
|
|
@@ -34555,7 +34561,7 @@ class ShipEngineAPI {
|
|
|
34555
34561
|
);
|
|
34556
34562
|
return res;
|
|
34557
34563
|
},
|
|
34558
|
-
(err) => __async
|
|
34564
|
+
(err) => __async$$(this, null, function* () {
|
|
34559
34565
|
var _a, _b, _c, _d, _e;
|
|
34560
34566
|
logger$1.error(
|
|
34561
34567
|
{ err, req: err.config, res: err.response },
|
|
@@ -34602,7 +34608,7 @@ class ShipEngineAPI {
|
|
|
34602
34608
|
* that token (also known as Seller ID)
|
|
34603
34609
|
*/
|
|
34604
34610
|
getTenant(isSandbox) {
|
|
34605
|
-
return __async
|
|
34611
|
+
return __async$$(this, null, function* () {
|
|
34606
34612
|
var _a;
|
|
34607
34613
|
if (!isSandbox) {
|
|
34608
34614
|
return this.getTenantFromToken(this.token);
|
|
@@ -34912,25 +34918,25 @@ const delay = (ms) => new Promise((resolve) => {
|
|
|
34912
34918
|
|
|
34913
34919
|
const onError = (_errors) => _default();
|
|
34914
34920
|
|
|
34915
|
-
var __defProp$
|
|
34916
|
-
var __defProps$
|
|
34917
|
-
var __getOwnPropDescs$
|
|
34918
|
-
var __getOwnPropSymbols$
|
|
34919
|
-
var __hasOwnProp$
|
|
34920
|
-
var __propIsEnum$
|
|
34921
|
-
var __defNormalProp$
|
|
34922
|
-
var __spreadValues$
|
|
34921
|
+
var __defProp$K = Object.defineProperty;
|
|
34922
|
+
var __defProps$H = Object.defineProperties;
|
|
34923
|
+
var __getOwnPropDescs$H = Object.getOwnPropertyDescriptors;
|
|
34924
|
+
var __getOwnPropSymbols$T = Object.getOwnPropertySymbols;
|
|
34925
|
+
var __hasOwnProp$T = Object.prototype.hasOwnProperty;
|
|
34926
|
+
var __propIsEnum$T = Object.prototype.propertyIsEnumerable;
|
|
34927
|
+
var __defNormalProp$K = (obj, key, value) => key in obj ? __defProp$K(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
34928
|
+
var __spreadValues$K = (a, b) => {
|
|
34923
34929
|
for (var prop in b || (b = {}))
|
|
34924
|
-
if (__hasOwnProp$
|
|
34925
|
-
__defNormalProp$
|
|
34926
|
-
if (__getOwnPropSymbols$
|
|
34927
|
-
for (var prop of __getOwnPropSymbols$
|
|
34928
|
-
if (__propIsEnum$
|
|
34929
|
-
__defNormalProp$
|
|
34930
|
+
if (__hasOwnProp$T.call(b, prop))
|
|
34931
|
+
__defNormalProp$K(a, prop, b[prop]);
|
|
34932
|
+
if (__getOwnPropSymbols$T)
|
|
34933
|
+
for (var prop of __getOwnPropSymbols$T(b)) {
|
|
34934
|
+
if (__propIsEnum$T.call(b, prop))
|
|
34935
|
+
__defNormalProp$K(a, prop, b[prop]);
|
|
34930
34936
|
}
|
|
34931
34937
|
return a;
|
|
34932
34938
|
};
|
|
34933
|
-
var __spreadProps$
|
|
34939
|
+
var __spreadProps$H = (a, b) => __defProps$H(a, __getOwnPropDescs$H(b));
|
|
34934
34940
|
const streams = [];
|
|
34935
34941
|
if (process.env.NODE_ENV === "production") {
|
|
34936
34942
|
streams.push({
|
|
@@ -34939,7 +34945,7 @@ if (process.env.NODE_ENV === "production") {
|
|
|
34939
34945
|
}
|
|
34940
34946
|
const logger = E({
|
|
34941
34947
|
name: "shipengine",
|
|
34942
|
-
serializers: __spreadProps$
|
|
34948
|
+
serializers: __spreadProps$H(__spreadValues$K({}, k), {
|
|
34943
34949
|
req: (req) => ({
|
|
34944
34950
|
headers: req.headers,
|
|
34945
34951
|
method: req.method,
|
|
@@ -34964,7 +34970,7 @@ const retryUntil = (callbackFn, retries = 10, timeoutBetweenAttempts = 1e3) => P
|
|
|
34964
34970
|
throw error;
|
|
34965
34971
|
});
|
|
34966
34972
|
|
|
34967
|
-
var __async$
|
|
34973
|
+
var __async$_ = (__this, __arguments, generator) => {
|
|
34968
34974
|
return new Promise((resolve, reject) => {
|
|
34969
34975
|
var fulfilled = (value) => {
|
|
34970
34976
|
try {
|
|
@@ -34987,7 +34993,7 @@ var __async$Z = (__this, __arguments, generator) => {
|
|
|
34987
34993
|
const useCreateAccountImage = () => {
|
|
34988
34994
|
const { client } = useShipEngine();
|
|
34989
34995
|
return useMutation({
|
|
34990
|
-
mutationFn: (data) => __async$
|
|
34996
|
+
mutationFn: (data) => __async$_(void 0, null, function* () {
|
|
34991
34997
|
const result = yield client.accountSettings.createImage(data);
|
|
34992
34998
|
return result.data;
|
|
34993
34999
|
}),
|
|
@@ -34996,7 +35002,7 @@ const useCreateAccountImage = () => {
|
|
|
34996
35002
|
});
|
|
34997
35003
|
};
|
|
34998
35004
|
|
|
34999
|
-
var __async$
|
|
35005
|
+
var __async$Z = (__this, __arguments, generator) => {
|
|
35000
35006
|
return new Promise((resolve, reject) => {
|
|
35001
35007
|
var fulfilled = (value) => {
|
|
35002
35008
|
try {
|
|
@@ -35019,7 +35025,7 @@ var __async$Y = (__this, __arguments, generator) => {
|
|
|
35019
35025
|
const useDeleteAccountImage = () => {
|
|
35020
35026
|
const { client } = useShipEngine();
|
|
35021
35027
|
return useMutation({
|
|
35022
|
-
mutationFn: (labelImageId) => __async$
|
|
35028
|
+
mutationFn: (labelImageId) => __async$Z(void 0, null, function* () {
|
|
35023
35029
|
const result = yield client.accountSettings.deleteImage(labelImageId);
|
|
35024
35030
|
return result.data;
|
|
35025
35031
|
}),
|
|
@@ -35048,7 +35054,7 @@ const useGetAccountSettings = () => {
|
|
|
35048
35054
|
});
|
|
35049
35055
|
};
|
|
35050
35056
|
|
|
35051
|
-
var __async$
|
|
35057
|
+
var __async$Y = (__this, __arguments, generator) => {
|
|
35052
35058
|
return new Promise((resolve, reject) => {
|
|
35053
35059
|
var fulfilled = (value) => {
|
|
35054
35060
|
try {
|
|
@@ -35071,7 +35077,7 @@ var __async$X = (__this, __arguments, generator) => {
|
|
|
35071
35077
|
const useUpdateAccountImage = () => {
|
|
35072
35078
|
const { client } = useShipEngine();
|
|
35073
35079
|
return useMutation({
|
|
35074
|
-
mutationFn: (data) => __async$
|
|
35080
|
+
mutationFn: (data) => __async$Y(void 0, null, function* () {
|
|
35075
35081
|
const result = yield client.accountSettings.updateImage(data);
|
|
35076
35082
|
return result.data;
|
|
35077
35083
|
}),
|
|
@@ -35080,7 +35086,7 @@ const useUpdateAccountImage = () => {
|
|
|
35080
35086
|
});
|
|
35081
35087
|
};
|
|
35082
35088
|
|
|
35083
|
-
var __async$
|
|
35089
|
+
var __async$X = (__this, __arguments, generator) => {
|
|
35084
35090
|
return new Promise((resolve, reject) => {
|
|
35085
35091
|
var fulfilled = (value) => {
|
|
35086
35092
|
try {
|
|
@@ -35103,7 +35109,7 @@ var __async$W = (__this, __arguments, generator) => {
|
|
|
35103
35109
|
const useUpdateAccountSettings = () => {
|
|
35104
35110
|
const { client } = useShipEngine();
|
|
35105
35111
|
return useMutation({
|
|
35106
|
-
mutationFn: (settings) => __async$
|
|
35112
|
+
mutationFn: (settings) => __async$X(void 0, null, function* () {
|
|
35107
35113
|
const result = yield client.accountSettings.update(settings);
|
|
35108
35114
|
return result.data;
|
|
35109
35115
|
}),
|
|
@@ -35112,6 +35118,35 @@ const useUpdateAccountSettings = () => {
|
|
|
35112
35118
|
});
|
|
35113
35119
|
};
|
|
35114
35120
|
|
|
35121
|
+
var __defProp$J = Object.defineProperty;
|
|
35122
|
+
var __defProps$G = Object.defineProperties;
|
|
35123
|
+
var __getOwnPropDescs$G = Object.getOwnPropertyDescriptors;
|
|
35124
|
+
var __getOwnPropSymbols$S = Object.getOwnPropertySymbols;
|
|
35125
|
+
var __hasOwnProp$S = Object.prototype.hasOwnProperty;
|
|
35126
|
+
var __propIsEnum$S = Object.prototype.propertyIsEnumerable;
|
|
35127
|
+
var __defNormalProp$J = (obj, key, value) => key in obj ? __defProp$J(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
35128
|
+
var __spreadValues$J = (a, b) => {
|
|
35129
|
+
for (var prop in b || (b = {}))
|
|
35130
|
+
if (__hasOwnProp$S.call(b, prop))
|
|
35131
|
+
__defNormalProp$J(a, prop, b[prop]);
|
|
35132
|
+
if (__getOwnPropSymbols$S)
|
|
35133
|
+
for (var prop of __getOwnPropSymbols$S(b)) {
|
|
35134
|
+
if (__propIsEnum$S.call(b, prop))
|
|
35135
|
+
__defNormalProp$J(a, prop, b[prop]);
|
|
35136
|
+
}
|
|
35137
|
+
return a;
|
|
35138
|
+
};
|
|
35139
|
+
var __spreadProps$G = (a, b) => __defProps$G(a, __getOwnPropDescs$G(b));
|
|
35140
|
+
const useListAccountAddons = (params) => {
|
|
35141
|
+
const { client } = useShipEngine();
|
|
35142
|
+
return useQuery(__spreadProps$G(__spreadValues$J({}, params), {
|
|
35143
|
+
onError,
|
|
35144
|
+
queryFn: () => client.accountAddons.list(),
|
|
35145
|
+
queryKey: ["useListAccountAddons"],
|
|
35146
|
+
select: (result) => result.data.addons
|
|
35147
|
+
}));
|
|
35148
|
+
};
|
|
35149
|
+
|
|
35115
35150
|
var __defProp$I = Object.defineProperty;
|
|
35116
35151
|
var __defProps$F = Object.defineProperties;
|
|
35117
35152
|
var __getOwnPropDescs$F = Object.getOwnPropertyDescriptors;
|
|
@@ -35131,13 +35166,35 @@ var __spreadValues$I = (a, b) => {
|
|
|
35131
35166
|
return a;
|
|
35132
35167
|
};
|
|
35133
35168
|
var __spreadProps$F = (a, b) => __defProps$F(a, __getOwnPropDescs$F(b));
|
|
35134
|
-
|
|
35169
|
+
var __async$W = (__this, __arguments, generator) => {
|
|
35170
|
+
return new Promise((resolve, reject) => {
|
|
35171
|
+
var fulfilled = (value) => {
|
|
35172
|
+
try {
|
|
35173
|
+
step(generator.next(value));
|
|
35174
|
+
} catch (e) {
|
|
35175
|
+
reject(e);
|
|
35176
|
+
}
|
|
35177
|
+
};
|
|
35178
|
+
var rejected = (value) => {
|
|
35179
|
+
try {
|
|
35180
|
+
step(generator.throw(value));
|
|
35181
|
+
} catch (e) {
|
|
35182
|
+
reject(e);
|
|
35183
|
+
}
|
|
35184
|
+
};
|
|
35185
|
+
var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
|
|
35186
|
+
step((generator = generator.apply(__this, __arguments)).next());
|
|
35187
|
+
});
|
|
35188
|
+
};
|
|
35189
|
+
const useEnableAccountAddon = (params) => {
|
|
35135
35190
|
const { client } = useShipEngine();
|
|
35136
|
-
return
|
|
35137
|
-
|
|
35138
|
-
|
|
35139
|
-
|
|
35140
|
-
|
|
35191
|
+
return useMutation(__spreadProps$F(__spreadValues$I({}, params), {
|
|
35192
|
+
mutationFn: (addonType) => __async$W(void 0, null, function* () {
|
|
35193
|
+
const result = yield client.accountAddons.enable(addonType);
|
|
35194
|
+
return result.data;
|
|
35195
|
+
}),
|
|
35196
|
+
mutationKey: ["useEnableAccountAddon"],
|
|
35197
|
+
onError
|
|
35141
35198
|
}));
|
|
35142
35199
|
};
|
|
35143
35200
|
|
|
@@ -40069,4 +40126,4 @@ const alchemy = {
|
|
|
40069
40126
|
createElement
|
|
40070
40127
|
};
|
|
40071
40128
|
|
|
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 };
|
|
40129
|
+
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, useEnableAccountAddon, useExportLabels, useExportShipments, useFundingSourcesAddFunds, useGetAccountBilling, useGetAccountBillingPlan, useGetAccountImages, useGetAccountSettings, useGetAuctanePayConfig, useGetAutoFundingConfiguration, useGetCarrierById, useGetCarrierConnectionForm, useGetConnectionsCarrierSettings, useGetCountriesByCarrier, useGetCurrenciesByCarrier, useGetFundingSourceById, useGetFundingSourceMetadata, useGetFundingSourceTransactions, useGetHereToken, useGetInsuranceAccount, useGetInsuranceFundingSourceAcceptedTerms, useGetInvoiceAddress, useGetLabel, useGetPackageRatingGroupByCarrier, useGetPaymentAccount, useGetPaymentMethods, useGetRateCardById, useGetSalesOrder, useGetSalesOrderByExternalOrderId, useGetSalesOrderShipment, useGetServicePoint, useGetServicesByCarrier, useGetShipment, useGetShipmentByExternalId, useGetShipmentRates, useGetShippingRuleById, useGetShippingRuleConditionsOptions, useGetThemeById, useGetZonesByCarrier, useI18n, useIdentityVerification, useListAccountAddons, 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 };
|