@shipengine/alchemy 6.0.13 → 6.0.15
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 +372 -309
- package/index.mjs +372 -310
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -10790,17 +10790,17 @@ var AccountBillingPlanChangeType = /* @__PURE__ */ ((AccountBillingPlanChangeTyp
|
|
|
10790
10790
|
return AccountBillingPlanChangeType2;
|
|
10791
10791
|
})(AccountBillingPlanChangeType || {});
|
|
10792
10792
|
|
|
10793
|
-
var __getOwnPropSymbols$
|
|
10794
|
-
var __hasOwnProp$
|
|
10795
|
-
var __propIsEnum$
|
|
10793
|
+
var __getOwnPropSymbols$B = Object.getOwnPropertySymbols;
|
|
10794
|
+
var __hasOwnProp$B = Object.prototype.hasOwnProperty;
|
|
10795
|
+
var __propIsEnum$B = Object.prototype.propertyIsEnumerable;
|
|
10796
10796
|
var __objRest$n = (source, exclude) => {
|
|
10797
10797
|
var target = {};
|
|
10798
10798
|
for (var prop in source)
|
|
10799
|
-
if (__hasOwnProp$
|
|
10799
|
+
if (__hasOwnProp$B.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
10800
10800
|
target[prop] = source[prop];
|
|
10801
|
-
if (source != null && __getOwnPropSymbols$
|
|
10802
|
-
for (var prop of __getOwnPropSymbols$
|
|
10803
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
10801
|
+
if (source != null && __getOwnPropSymbols$B)
|
|
10802
|
+
for (var prop of __getOwnPropSymbols$B(source)) {
|
|
10803
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$B.call(source, prop))
|
|
10804
10804
|
target[prop] = source[prop];
|
|
10805
10805
|
}
|
|
10806
10806
|
return target;
|
|
@@ -10933,17 +10933,17 @@ const types = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
|
|
|
10933
10933
|
RateCardStatus
|
|
10934
10934
|
}, Symbol.toStringTag, { value: 'Module' }));
|
|
10935
10935
|
|
|
10936
|
-
var __getOwnPropSymbols$
|
|
10937
|
-
var __hasOwnProp$
|
|
10938
|
-
var __propIsEnum$
|
|
10936
|
+
var __getOwnPropSymbols$A = Object.getOwnPropertySymbols;
|
|
10937
|
+
var __hasOwnProp$A = Object.prototype.hasOwnProperty;
|
|
10938
|
+
var __propIsEnum$A = Object.prototype.propertyIsEnumerable;
|
|
10939
10939
|
var __objRest$m = (source, exclude) => {
|
|
10940
10940
|
var target = {};
|
|
10941
10941
|
for (var prop in source)
|
|
10942
|
-
if (__hasOwnProp$
|
|
10942
|
+
if (__hasOwnProp$A.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
10943
10943
|
target[prop] = source[prop];
|
|
10944
|
-
if (source != null && __getOwnPropSymbols$
|
|
10945
|
-
for (var prop of __getOwnPropSymbols$
|
|
10946
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
10944
|
+
if (source != null && __getOwnPropSymbols$A)
|
|
10945
|
+
for (var prop of __getOwnPropSymbols$A(source)) {
|
|
10946
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$A.call(source, prop))
|
|
10947
10947
|
target[prop] = source[prop];
|
|
10948
10948
|
}
|
|
10949
10949
|
return target;
|
|
@@ -13685,7 +13685,7 @@ var ipaddr = {
|
|
|
13685
13685
|
}).call(commonjsGlobal);
|
|
13686
13686
|
} (ipaddr));
|
|
13687
13687
|
|
|
13688
|
-
var __async$
|
|
13688
|
+
var __async$T = (__this, __arguments, generator) => {
|
|
13689
13689
|
return new Promise((resolve, reject) => {
|
|
13690
13690
|
var fulfilled = (value) => {
|
|
13691
13691
|
try {
|
|
@@ -13705,7 +13705,7 @@ var __async$S = (__this, __arguments, generator) => {
|
|
|
13705
13705
|
step((generator = generator.apply(__this, __arguments)).next());
|
|
13706
13706
|
});
|
|
13707
13707
|
};
|
|
13708
|
-
const getEndUserIpAddress = () => __async$
|
|
13708
|
+
const getEndUserIpAddress = () => __async$T(void 0, null, function* () {
|
|
13709
13709
|
try {
|
|
13710
13710
|
const response = yield axios.get("https://api.ipify.org/?format=json");
|
|
13711
13711
|
if (response.data.ip && ipaddrExports.isValid(response.data.ip)) {
|
|
@@ -13717,38 +13717,38 @@ const getEndUserIpAddress = () => __async$S(void 0, null, function* () {
|
|
|
13717
13717
|
}
|
|
13718
13718
|
});
|
|
13719
13719
|
|
|
13720
|
-
var __defProp$
|
|
13721
|
-
var __defProps$
|
|
13722
|
-
var __getOwnPropDescs$
|
|
13723
|
-
var __getOwnPropSymbols$
|
|
13724
|
-
var __hasOwnProp$
|
|
13725
|
-
var __propIsEnum$
|
|
13726
|
-
var __defNormalProp$
|
|
13727
|
-
var __spreadValues$
|
|
13720
|
+
var __defProp$p = Object.defineProperty;
|
|
13721
|
+
var __defProps$j = Object.defineProperties;
|
|
13722
|
+
var __getOwnPropDescs$j = Object.getOwnPropertyDescriptors;
|
|
13723
|
+
var __getOwnPropSymbols$z = Object.getOwnPropertySymbols;
|
|
13724
|
+
var __hasOwnProp$z = Object.prototype.hasOwnProperty;
|
|
13725
|
+
var __propIsEnum$z = Object.prototype.propertyIsEnumerable;
|
|
13726
|
+
var __defNormalProp$p = (obj, key, value) => key in obj ? __defProp$p(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
13727
|
+
var __spreadValues$p = (a, b) => {
|
|
13728
13728
|
for (var prop in b || (b = {}))
|
|
13729
|
-
if (__hasOwnProp$
|
|
13730
|
-
__defNormalProp$
|
|
13731
|
-
if (__getOwnPropSymbols$
|
|
13732
|
-
for (var prop of __getOwnPropSymbols$
|
|
13733
|
-
if (__propIsEnum$
|
|
13734
|
-
__defNormalProp$
|
|
13729
|
+
if (__hasOwnProp$z.call(b, prop))
|
|
13730
|
+
__defNormalProp$p(a, prop, b[prop]);
|
|
13731
|
+
if (__getOwnPropSymbols$z)
|
|
13732
|
+
for (var prop of __getOwnPropSymbols$z(b)) {
|
|
13733
|
+
if (__propIsEnum$z.call(b, prop))
|
|
13734
|
+
__defNormalProp$p(a, prop, b[prop]);
|
|
13735
13735
|
}
|
|
13736
13736
|
return a;
|
|
13737
13737
|
};
|
|
13738
|
-
var __spreadProps$
|
|
13738
|
+
var __spreadProps$j = (a, b) => __defProps$j(a, __getOwnPropDescs$j(b));
|
|
13739
13739
|
var __objRest$l = (source, exclude) => {
|
|
13740
13740
|
var target = {};
|
|
13741
13741
|
for (var prop in source)
|
|
13742
|
-
if (__hasOwnProp$
|
|
13742
|
+
if (__hasOwnProp$z.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
13743
13743
|
target[prop] = source[prop];
|
|
13744
|
-
if (source != null && __getOwnPropSymbols$
|
|
13745
|
-
for (var prop of __getOwnPropSymbols$
|
|
13746
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
13744
|
+
if (source != null && __getOwnPropSymbols$z)
|
|
13745
|
+
for (var prop of __getOwnPropSymbols$z(source)) {
|
|
13746
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$z.call(source, prop))
|
|
13747
13747
|
target[prop] = source[prop];
|
|
13748
13748
|
}
|
|
13749
13749
|
return target;
|
|
13750
13750
|
};
|
|
13751
|
-
var __async$
|
|
13751
|
+
var __async$S = (__this, __arguments, generator) => {
|
|
13752
13752
|
return new Promise((resolve, reject) => {
|
|
13753
13753
|
var fulfilled = (value) => {
|
|
13754
13754
|
try {
|
|
@@ -13788,12 +13788,12 @@ class CarriersAPI {
|
|
|
13788
13788
|
/**
|
|
13789
13789
|
* The `connect` method connects a carrier account to a user's ShipEngine account.
|
|
13790
13790
|
*/
|
|
13791
|
-
this.connect = (_a) => __async$
|
|
13791
|
+
this.connect = (_a) => __async$S(this, null, function* () {
|
|
13792
13792
|
var _b = _a, { carrierCode } = _b, connection = __objRest$l(_b, ["carrierCode"]);
|
|
13793
13793
|
const endUserIpAddress = yield getEndUserIpAddress();
|
|
13794
13794
|
if (!endUserIpAddress)
|
|
13795
13795
|
return Promise.reject([new CodedError("Unable to get IP address")]);
|
|
13796
|
-
return yield this.client.post(`/v1/registration/${carrierCode}`, __spreadProps$
|
|
13796
|
+
return yield this.client.post(`/v1/registration/${carrierCode}`, __spreadProps$j(__spreadValues$p({}, connection), {
|
|
13797
13797
|
endUserIpAddress
|
|
13798
13798
|
}));
|
|
13799
13799
|
});
|
|
@@ -13879,7 +13879,7 @@ class CarriersAPI {
|
|
|
13879
13879
|
}
|
|
13880
13880
|
}
|
|
13881
13881
|
|
|
13882
|
-
var __async$
|
|
13882
|
+
var __async$R = (__this, __arguments, generator) => {
|
|
13883
13883
|
return new Promise((resolve, reject) => {
|
|
13884
13884
|
var fulfilled = (value) => {
|
|
13885
13885
|
try {
|
|
@@ -13921,7 +13921,7 @@ class ConnectionsAPI {
|
|
|
13921
13921
|
/**
|
|
13922
13922
|
* The `connectCarrier` method connects a carrier to account.
|
|
13923
13923
|
*/
|
|
13924
|
-
this.connectCarrier = (carrierName, formData) => __async$
|
|
13924
|
+
this.connectCarrier = (carrierName, formData) => __async$R(this, null, function* () {
|
|
13925
13925
|
return yield this.client.post(
|
|
13926
13926
|
`/v1/connections/carriers/${carrierName}`,
|
|
13927
13927
|
formData,
|
|
@@ -16234,23 +16234,23 @@ class CustomPackagesAPI {
|
|
|
16234
16234
|
}
|
|
16235
16235
|
}
|
|
16236
16236
|
|
|
16237
|
-
var __defProp$
|
|
16238
|
-
var __getOwnPropSymbols$
|
|
16239
|
-
var __hasOwnProp$
|
|
16240
|
-
var __propIsEnum$
|
|
16241
|
-
var __defNormalProp$
|
|
16242
|
-
var __spreadValues$
|
|
16237
|
+
var __defProp$o = Object.defineProperty;
|
|
16238
|
+
var __getOwnPropSymbols$y = Object.getOwnPropertySymbols;
|
|
16239
|
+
var __hasOwnProp$y = Object.prototype.hasOwnProperty;
|
|
16240
|
+
var __propIsEnum$y = Object.prototype.propertyIsEnumerable;
|
|
16241
|
+
var __defNormalProp$o = (obj, key, value) => key in obj ? __defProp$o(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
16242
|
+
var __spreadValues$o = (a, b) => {
|
|
16243
16243
|
for (var prop in b || (b = {}))
|
|
16244
|
-
if (__hasOwnProp$
|
|
16245
|
-
__defNormalProp$
|
|
16246
|
-
if (__getOwnPropSymbols$
|
|
16247
|
-
for (var prop of __getOwnPropSymbols$
|
|
16248
|
-
if (__propIsEnum$
|
|
16249
|
-
__defNormalProp$
|
|
16244
|
+
if (__hasOwnProp$y.call(b, prop))
|
|
16245
|
+
__defNormalProp$o(a, prop, b[prop]);
|
|
16246
|
+
if (__getOwnPropSymbols$y)
|
|
16247
|
+
for (var prop of __getOwnPropSymbols$y(b)) {
|
|
16248
|
+
if (__propIsEnum$y.call(b, prop))
|
|
16249
|
+
__defNormalProp$o(a, prop, b[prop]);
|
|
16250
16250
|
}
|
|
16251
16251
|
return a;
|
|
16252
16252
|
};
|
|
16253
|
-
var __async$
|
|
16253
|
+
var __async$Q = (__this, __arguments, generator) => {
|
|
16254
16254
|
return new Promise((resolve, reject) => {
|
|
16255
16255
|
var fulfilled = (value) => {
|
|
16256
16256
|
try {
|
|
@@ -16289,12 +16289,12 @@ class FundingSourcesAPI {
|
|
|
16289
16289
|
* The `create` method creates a new funding source for a given user. This requires
|
|
16290
16290
|
* payment information to be collected from the user.
|
|
16291
16291
|
*/
|
|
16292
|
-
this.create = (createFundingSource) => __async$
|
|
16292
|
+
this.create = (createFundingSource) => __async$Q(this, null, function* () {
|
|
16293
16293
|
const endUserIpAddress = yield getEndUserIpAddress();
|
|
16294
16294
|
if (!endUserIpAddress) {
|
|
16295
16295
|
return Promise.reject([new CodedError("Unable to get IP address")]);
|
|
16296
16296
|
}
|
|
16297
|
-
return yield this.client.post("/v1/funding_sources", __spreadValues$
|
|
16297
|
+
return yield this.client.post("/v1/funding_sources", __spreadValues$o({
|
|
16298
16298
|
endUserIpAddress
|
|
16299
16299
|
}, createFundingSource));
|
|
16300
16300
|
});
|
|
@@ -16303,7 +16303,7 @@ class FundingSourcesAPI {
|
|
|
16303
16303
|
* user to update the billing address or payment information associated with the
|
|
16304
16304
|
* funding source.
|
|
16305
16305
|
*/
|
|
16306
|
-
this.update = (billingInfo, creditCardInfo, fundingSourceId) => __async$
|
|
16306
|
+
this.update = (billingInfo, creditCardInfo, fundingSourceId) => __async$Q(this, null, function* () {
|
|
16307
16307
|
const endUserIpAddress = yield getEndUserIpAddress();
|
|
16308
16308
|
if (!endUserIpAddress) {
|
|
16309
16309
|
return Promise.reject([new CodedError("Unable to get IP address")]);
|
|
@@ -16321,19 +16321,19 @@ class FundingSourcesAPI {
|
|
|
16321
16321
|
* The `registerCarrier` method registers a carrier account and associates
|
|
16322
16322
|
* it with a given funding source.
|
|
16323
16323
|
*/
|
|
16324
|
-
this.registerCarrier = (carrier) => __async$
|
|
16324
|
+
this.registerCarrier = (carrier) => __async$Q(this, null, function* () {
|
|
16325
16325
|
const endUserIpAddress = yield getEndUserIpAddress();
|
|
16326
16326
|
if (!endUserIpAddress) {
|
|
16327
16327
|
return Promise.reject([new CodedError("Unable to get IP address")]);
|
|
16328
16328
|
}
|
|
16329
|
-
return yield this.client.post("/v1/registration/funding_source", __spreadValues$
|
|
16329
|
+
return yield this.client.post("/v1/registration/funding_source", __spreadValues$o({
|
|
16330
16330
|
endUserIpAddress
|
|
16331
16331
|
}, carrier));
|
|
16332
16332
|
});
|
|
16333
16333
|
/**
|
|
16334
16334
|
* The `addFunds` method allows you to add funds to a funding source.
|
|
16335
16335
|
*/
|
|
16336
|
-
this.addFunds = (amount, fundingSourceId) => __async$
|
|
16336
|
+
this.addFunds = (amount, fundingSourceId) => __async$Q(this, null, function* () {
|
|
16337
16337
|
return yield this.client.put(
|
|
16338
16338
|
`/v1/funding_sources/${fundingSourceId}/add_funds`,
|
|
16339
16339
|
amount
|
|
@@ -16343,7 +16343,7 @@ class FundingSourcesAPI {
|
|
|
16343
16343
|
* The `metadata` method returns seller-specific requirements for creating funding sources
|
|
16344
16344
|
* and attaching carriers
|
|
16345
16345
|
*/
|
|
16346
|
-
this.metadata = () => __async$
|
|
16346
|
+
this.metadata = () => __async$Q(this, null, function* () {
|
|
16347
16347
|
return yield this.client.get("/v1/funding_sources/metadata");
|
|
16348
16348
|
});
|
|
16349
16349
|
/**
|
|
@@ -16539,19 +16539,19 @@ class RateCardsAPI {
|
|
|
16539
16539
|
}
|
|
16540
16540
|
}
|
|
16541
16541
|
|
|
16542
|
-
var __defProp$
|
|
16543
|
-
var __getOwnPropSymbols$
|
|
16544
|
-
var __hasOwnProp$
|
|
16545
|
-
var __propIsEnum$
|
|
16546
|
-
var __defNormalProp$
|
|
16547
|
-
var __spreadValues$
|
|
16542
|
+
var __defProp$n = Object.defineProperty;
|
|
16543
|
+
var __getOwnPropSymbols$x = Object.getOwnPropertySymbols;
|
|
16544
|
+
var __hasOwnProp$x = Object.prototype.hasOwnProperty;
|
|
16545
|
+
var __propIsEnum$x = Object.prototype.propertyIsEnumerable;
|
|
16546
|
+
var __defNormalProp$n = (obj, key, value) => key in obj ? __defProp$n(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
16547
|
+
var __spreadValues$n = (a, b) => {
|
|
16548
16548
|
for (var prop in b || (b = {}))
|
|
16549
|
-
if (__hasOwnProp$
|
|
16550
|
-
__defNormalProp$
|
|
16551
|
-
if (__getOwnPropSymbols$
|
|
16552
|
-
for (var prop of __getOwnPropSymbols$
|
|
16553
|
-
if (__propIsEnum$
|
|
16554
|
-
__defNormalProp$
|
|
16549
|
+
if (__hasOwnProp$x.call(b, prop))
|
|
16550
|
+
__defNormalProp$n(a, prop, b[prop]);
|
|
16551
|
+
if (__getOwnPropSymbols$x)
|
|
16552
|
+
for (var prop of __getOwnPropSymbols$x(b)) {
|
|
16553
|
+
if (__propIsEnum$x.call(b, prop))
|
|
16554
|
+
__defNormalProp$n(a, prop, b[prop]);
|
|
16555
16555
|
}
|
|
16556
16556
|
return a;
|
|
16557
16557
|
};
|
|
@@ -16573,7 +16573,7 @@ class RatesAPI {
|
|
|
16573
16573
|
* method.
|
|
16574
16574
|
*/
|
|
16575
16575
|
this.estimate = (params) => {
|
|
16576
|
-
return this.client.post("/v1/rates/estimate", __spreadValues$
|
|
16576
|
+
return this.client.post("/v1/rates/estimate", __spreadValues$n({}, params));
|
|
16577
16577
|
};
|
|
16578
16578
|
this.client = client;
|
|
16579
16579
|
}
|
|
@@ -16642,7 +16642,7 @@ class SalesOrdersAPI {
|
|
|
16642
16642
|
}
|
|
16643
16643
|
}
|
|
16644
16644
|
|
|
16645
|
-
var __async$
|
|
16645
|
+
var __async$P = (__this, __arguments, generator) => {
|
|
16646
16646
|
return new Promise((resolve, reject) => {
|
|
16647
16647
|
var fulfilled = (value) => {
|
|
16648
16648
|
try {
|
|
@@ -16700,7 +16700,7 @@ class SellersAPI {
|
|
|
16700
16700
|
/**
|
|
16701
16701
|
* Deletes an API Key
|
|
16702
16702
|
*/
|
|
16703
|
-
this.deleteSellerApiKey = (_0) => __async$
|
|
16703
|
+
this.deleteSellerApiKey = (_0) => __async$P(this, [_0], function* ({
|
|
16704
16704
|
encryptedApiKey,
|
|
16705
16705
|
sellerId,
|
|
16706
16706
|
isSandbox
|
|
@@ -16746,19 +16746,19 @@ class SellersAPI {
|
|
|
16746
16746
|
}
|
|
16747
16747
|
}
|
|
16748
16748
|
|
|
16749
|
-
var __defProp$
|
|
16750
|
-
var __getOwnPropSymbols$
|
|
16751
|
-
var __hasOwnProp$
|
|
16752
|
-
var __propIsEnum$
|
|
16753
|
-
var __defNormalProp$
|
|
16754
|
-
var __spreadValues$
|
|
16749
|
+
var __defProp$m = Object.defineProperty;
|
|
16750
|
+
var __getOwnPropSymbols$w = Object.getOwnPropertySymbols;
|
|
16751
|
+
var __hasOwnProp$w = Object.prototype.hasOwnProperty;
|
|
16752
|
+
var __propIsEnum$w = Object.prototype.propertyIsEnumerable;
|
|
16753
|
+
var __defNormalProp$m = (obj, key, value) => key in obj ? __defProp$m(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
16754
|
+
var __spreadValues$m = (a, b) => {
|
|
16755
16755
|
for (var prop in b || (b = {}))
|
|
16756
|
-
if (__hasOwnProp$
|
|
16757
|
-
__defNormalProp$
|
|
16758
|
-
if (__getOwnPropSymbols$
|
|
16759
|
-
for (var prop of __getOwnPropSymbols$
|
|
16760
|
-
if (__propIsEnum$
|
|
16761
|
-
__defNormalProp$
|
|
16756
|
+
if (__hasOwnProp$w.call(b, prop))
|
|
16757
|
+
__defNormalProp$m(a, prop, b[prop]);
|
|
16758
|
+
if (__getOwnPropSymbols$w)
|
|
16759
|
+
for (var prop of __getOwnPropSymbols$w(b)) {
|
|
16760
|
+
if (__propIsEnum$w.call(b, prop))
|
|
16761
|
+
__defNormalProp$m(a, prop, b[prop]);
|
|
16762
16762
|
}
|
|
16763
16763
|
return a;
|
|
16764
16764
|
};
|
|
@@ -16770,7 +16770,7 @@ class ServicePointsAPI {
|
|
|
16770
16770
|
* Either an address, coordinates, or an address query
|
|
16771
16771
|
*/
|
|
16772
16772
|
this.list = (options) => {
|
|
16773
|
-
return this.client.post("/v1/service_points/list", __spreadValues$
|
|
16773
|
+
return this.client.post("/v1/service_points/list", __spreadValues$m({}, options));
|
|
16774
16774
|
};
|
|
16775
16775
|
/**
|
|
16776
16776
|
* Get a specific service point by its carrier code, country code, and id
|
|
@@ -16788,7 +16788,7 @@ class ServicePointsAPI {
|
|
|
16788
16788
|
}
|
|
16789
16789
|
}
|
|
16790
16790
|
|
|
16791
|
-
var __async$
|
|
16791
|
+
var __async$O = (__this, __arguments, generator) => {
|
|
16792
16792
|
return new Promise((resolve, reject) => {
|
|
16793
16793
|
var fulfilled = (value) => {
|
|
16794
16794
|
try {
|
|
@@ -16837,11 +16837,22 @@ class ShipmentsAPI {
|
|
|
16837
16837
|
* The `create` method allows for creating shipments based on a list of shipment
|
|
16838
16838
|
* items passed into this method.
|
|
16839
16839
|
*/
|
|
16840
|
-
this.create = (...shipments) => __async$
|
|
16840
|
+
this.create = (...shipments) => __async$O(this, null, function* () {
|
|
16841
16841
|
return this.client.post("/v1/shipments", {
|
|
16842
16842
|
shipments
|
|
16843
16843
|
});
|
|
16844
16844
|
});
|
|
16845
|
+
/**
|
|
16846
|
+
* The `cancel` method by `shipmentId`
|
|
16847
|
+
* Marks a shipment cancelled, if it is no longer needed or being used by your organization.
|
|
16848
|
+
* Any label associated with the shipment needs to be voided first
|
|
16849
|
+
* An example use case would be if a batch label creation job is going to run at a set time and only queries pending shipments.
|
|
16850
|
+
* Marking a shipment as cancelled would remove it from this process
|
|
16851
|
+
* https://shipengine.github.io/shipengine-openapi/#operation/cancel_shipments
|
|
16852
|
+
*/
|
|
16853
|
+
this.cancel = (shipmentId) => {
|
|
16854
|
+
return this.client.put(`/v1/shipments/${shipmentId}/cancel`);
|
|
16855
|
+
};
|
|
16845
16856
|
this.client = client;
|
|
16846
16857
|
}
|
|
16847
16858
|
}
|
|
@@ -34218,26 +34229,26 @@ class WebhooksAPI {
|
|
|
34218
34229
|
}
|
|
34219
34230
|
}
|
|
34220
34231
|
|
|
34221
|
-
var __defProp$
|
|
34222
|
-
var __defProps$
|
|
34223
|
-
var __getOwnPropDescs$
|
|
34224
|
-
var __getOwnPropSymbols$
|
|
34225
|
-
var __hasOwnProp$
|
|
34226
|
-
var __propIsEnum$
|
|
34227
|
-
var __defNormalProp$
|
|
34228
|
-
var __spreadValues$
|
|
34232
|
+
var __defProp$l = Object.defineProperty;
|
|
34233
|
+
var __defProps$i = Object.defineProperties;
|
|
34234
|
+
var __getOwnPropDescs$i = Object.getOwnPropertyDescriptors;
|
|
34235
|
+
var __getOwnPropSymbols$v = Object.getOwnPropertySymbols;
|
|
34236
|
+
var __hasOwnProp$v = Object.prototype.hasOwnProperty;
|
|
34237
|
+
var __propIsEnum$v = Object.prototype.propertyIsEnumerable;
|
|
34238
|
+
var __defNormalProp$l = (obj, key, value) => key in obj ? __defProp$l(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
34239
|
+
var __spreadValues$l = (a, b) => {
|
|
34229
34240
|
for (var prop in b || (b = {}))
|
|
34230
|
-
if (__hasOwnProp$
|
|
34231
|
-
__defNormalProp$
|
|
34232
|
-
if (__getOwnPropSymbols$
|
|
34233
|
-
for (var prop of __getOwnPropSymbols$
|
|
34234
|
-
if (__propIsEnum$
|
|
34235
|
-
__defNormalProp$
|
|
34241
|
+
if (__hasOwnProp$v.call(b, prop))
|
|
34242
|
+
__defNormalProp$l(a, prop, b[prop]);
|
|
34243
|
+
if (__getOwnPropSymbols$v)
|
|
34244
|
+
for (var prop of __getOwnPropSymbols$v(b)) {
|
|
34245
|
+
if (__propIsEnum$v.call(b, prop))
|
|
34246
|
+
__defNormalProp$l(a, prop, b[prop]);
|
|
34236
34247
|
}
|
|
34237
34248
|
return a;
|
|
34238
34249
|
};
|
|
34239
|
-
var __spreadProps$
|
|
34240
|
-
var __async$
|
|
34250
|
+
var __spreadProps$i = (a, b) => __defProps$i(a, __getOwnPropDescs$i(b));
|
|
34251
|
+
var __async$N = (__this, __arguments, generator) => {
|
|
34241
34252
|
return new Promise((resolve, reject) => {
|
|
34242
34253
|
var fulfilled = (value) => {
|
|
34243
34254
|
try {
|
|
@@ -34260,7 +34271,7 @@ var __async$M = (__this, __arguments, generator) => {
|
|
|
34260
34271
|
const logger$1 = E({
|
|
34261
34272
|
level: process.env.NODE_ENV === "production" ? "fatal" : "info",
|
|
34262
34273
|
name: "shipengine-api",
|
|
34263
|
-
serializers: __spreadProps$
|
|
34274
|
+
serializers: __spreadProps$i(__spreadValues$l({}, k), {
|
|
34264
34275
|
req: (req) => ({
|
|
34265
34276
|
headers: req.headers,
|
|
34266
34277
|
method: req.method,
|
|
@@ -34285,7 +34296,7 @@ class ShipEngineAPI {
|
|
|
34285
34296
|
this.getSandboxToken = getSandboxToken;
|
|
34286
34297
|
const client = axios.create({
|
|
34287
34298
|
baseURL,
|
|
34288
|
-
headers: __spreadProps$
|
|
34299
|
+
headers: __spreadProps$i(__spreadValues$l({}, headers), {
|
|
34289
34300
|
"Content-Type": "application/json"
|
|
34290
34301
|
}),
|
|
34291
34302
|
paramsSerializer: (params) => lib.stringify(humpsExports.decamelizeKeys(params), { arrayFormat: "brackets" }),
|
|
@@ -34320,7 +34331,7 @@ class ShipEngineAPI {
|
|
|
34320
34331
|
});
|
|
34321
34332
|
client.defaults.headers.common["Authorization"] = `Bearer ${token}`;
|
|
34322
34333
|
client.interceptors.request.use(
|
|
34323
|
-
(config) => __async$
|
|
34334
|
+
(config) => __async$N(this, null, function* () {
|
|
34324
34335
|
if (config.isSandbox) {
|
|
34325
34336
|
if (!this.sandboxToken) {
|
|
34326
34337
|
this.sandboxToken = yield getSandboxToken == null ? void 0 : getSandboxToken();
|
|
@@ -34347,7 +34358,7 @@ class ShipEngineAPI {
|
|
|
34347
34358
|
);
|
|
34348
34359
|
return res;
|
|
34349
34360
|
},
|
|
34350
|
-
(err) => __async$
|
|
34361
|
+
(err) => __async$N(this, null, function* () {
|
|
34351
34362
|
var _a, _b, _c, _d, _e;
|
|
34352
34363
|
logger$1.error(
|
|
34353
34364
|
{ err, req: err.config, res: err.response },
|
|
@@ -34394,7 +34405,7 @@ class ShipEngineAPI {
|
|
|
34394
34405
|
* that token (also known as Seller ID)
|
|
34395
34406
|
*/
|
|
34396
34407
|
getTenant(isSandbox) {
|
|
34397
|
-
return __async$
|
|
34408
|
+
return __async$N(this, null, function* () {
|
|
34398
34409
|
var _a;
|
|
34399
34410
|
if (!isSandbox) {
|
|
34400
34411
|
return this.getTenantFromToken(this.token);
|
|
@@ -34664,25 +34675,25 @@ const delay = (ms) => new Promise((resolve) => {
|
|
|
34664
34675
|
|
|
34665
34676
|
const onError = (_errors) => _default();
|
|
34666
34677
|
|
|
34667
|
-
var __defProp$
|
|
34668
|
-
var __defProps$
|
|
34669
|
-
var __getOwnPropDescs$
|
|
34670
|
-
var __getOwnPropSymbols$
|
|
34671
|
-
var __hasOwnProp$
|
|
34672
|
-
var __propIsEnum$
|
|
34673
|
-
var __defNormalProp$
|
|
34674
|
-
var __spreadValues$
|
|
34678
|
+
var __defProp$k = Object.defineProperty;
|
|
34679
|
+
var __defProps$h = Object.defineProperties;
|
|
34680
|
+
var __getOwnPropDescs$h = Object.getOwnPropertyDescriptors;
|
|
34681
|
+
var __getOwnPropSymbols$u = Object.getOwnPropertySymbols;
|
|
34682
|
+
var __hasOwnProp$u = Object.prototype.hasOwnProperty;
|
|
34683
|
+
var __propIsEnum$u = Object.prototype.propertyIsEnumerable;
|
|
34684
|
+
var __defNormalProp$k = (obj, key, value) => key in obj ? __defProp$k(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
34685
|
+
var __spreadValues$k = (a, b) => {
|
|
34675
34686
|
for (var prop in b || (b = {}))
|
|
34676
|
-
if (__hasOwnProp$
|
|
34677
|
-
__defNormalProp$
|
|
34678
|
-
if (__getOwnPropSymbols$
|
|
34679
|
-
for (var prop of __getOwnPropSymbols$
|
|
34680
|
-
if (__propIsEnum$
|
|
34681
|
-
__defNormalProp$
|
|
34687
|
+
if (__hasOwnProp$u.call(b, prop))
|
|
34688
|
+
__defNormalProp$k(a, prop, b[prop]);
|
|
34689
|
+
if (__getOwnPropSymbols$u)
|
|
34690
|
+
for (var prop of __getOwnPropSymbols$u(b)) {
|
|
34691
|
+
if (__propIsEnum$u.call(b, prop))
|
|
34692
|
+
__defNormalProp$k(a, prop, b[prop]);
|
|
34682
34693
|
}
|
|
34683
34694
|
return a;
|
|
34684
34695
|
};
|
|
34685
|
-
var __spreadProps$
|
|
34696
|
+
var __spreadProps$h = (a, b) => __defProps$h(a, __getOwnPropDescs$h(b));
|
|
34686
34697
|
const streams = [];
|
|
34687
34698
|
if (process.env.NODE_ENV === "production") {
|
|
34688
34699
|
streams.push({
|
|
@@ -34691,7 +34702,7 @@ if (process.env.NODE_ENV === "production") {
|
|
|
34691
34702
|
}
|
|
34692
34703
|
const logger = E({
|
|
34693
34704
|
name: "shipengine",
|
|
34694
|
-
serializers: __spreadProps$
|
|
34705
|
+
serializers: __spreadProps$h(__spreadValues$k({}, k), {
|
|
34695
34706
|
req: (req) => ({
|
|
34696
34707
|
headers: req.headers,
|
|
34697
34708
|
method: req.method,
|
|
@@ -34716,7 +34727,7 @@ const retryUntil = (callbackFn, retries = 10, timeoutBetweenAttempts = 1e3) => P
|
|
|
34716
34727
|
throw error;
|
|
34717
34728
|
});
|
|
34718
34729
|
|
|
34719
|
-
var __async$
|
|
34730
|
+
var __async$M = (__this, __arguments, generator) => {
|
|
34720
34731
|
return new Promise((resolve, reject) => {
|
|
34721
34732
|
var fulfilled = (value) => {
|
|
34722
34733
|
try {
|
|
@@ -34739,7 +34750,7 @@ var __async$L = (__this, __arguments, generator) => {
|
|
|
34739
34750
|
const useCreateAccountImage = () => {
|
|
34740
34751
|
const { client } = useShipEngine();
|
|
34741
34752
|
return useMutation({
|
|
34742
|
-
mutationFn: (data) => __async$
|
|
34753
|
+
mutationFn: (data) => __async$M(void 0, null, function* () {
|
|
34743
34754
|
const result = yield client.accountSettings.createImage(data);
|
|
34744
34755
|
return result.data;
|
|
34745
34756
|
}),
|
|
@@ -34748,7 +34759,7 @@ const useCreateAccountImage = () => {
|
|
|
34748
34759
|
});
|
|
34749
34760
|
};
|
|
34750
34761
|
|
|
34751
|
-
var __async$
|
|
34762
|
+
var __async$L = (__this, __arguments, generator) => {
|
|
34752
34763
|
return new Promise((resolve, reject) => {
|
|
34753
34764
|
var fulfilled = (value) => {
|
|
34754
34765
|
try {
|
|
@@ -34771,7 +34782,7 @@ var __async$K = (__this, __arguments, generator) => {
|
|
|
34771
34782
|
const useDeleteAccountImage = () => {
|
|
34772
34783
|
const { client } = useShipEngine();
|
|
34773
34784
|
return useMutation({
|
|
34774
|
-
mutationFn: (labelImageId) => __async$
|
|
34785
|
+
mutationFn: (labelImageId) => __async$L(void 0, null, function* () {
|
|
34775
34786
|
const result = yield client.accountSettings.deleteImage(labelImageId);
|
|
34776
34787
|
return result.data;
|
|
34777
34788
|
}),
|
|
@@ -34800,7 +34811,7 @@ const useGetAccountSettings = () => {
|
|
|
34800
34811
|
});
|
|
34801
34812
|
};
|
|
34802
34813
|
|
|
34803
|
-
var __async$
|
|
34814
|
+
var __async$K = (__this, __arguments, generator) => {
|
|
34804
34815
|
return new Promise((resolve, reject) => {
|
|
34805
34816
|
var fulfilled = (value) => {
|
|
34806
34817
|
try {
|
|
@@ -34823,7 +34834,7 @@ var __async$J = (__this, __arguments, generator) => {
|
|
|
34823
34834
|
const useUpdateAccountImage = () => {
|
|
34824
34835
|
const { client } = useShipEngine();
|
|
34825
34836
|
return useMutation({
|
|
34826
|
-
mutationFn: (data) => __async$
|
|
34837
|
+
mutationFn: (data) => __async$K(void 0, null, function* () {
|
|
34827
34838
|
const result = yield client.accountSettings.updateImage(data);
|
|
34828
34839
|
return result.data;
|
|
34829
34840
|
}),
|
|
@@ -34832,7 +34843,7 @@ const useUpdateAccountImage = () => {
|
|
|
34832
34843
|
});
|
|
34833
34844
|
};
|
|
34834
34845
|
|
|
34835
|
-
var __async$
|
|
34846
|
+
var __async$J = (__this, __arguments, generator) => {
|
|
34836
34847
|
return new Promise((resolve, reject) => {
|
|
34837
34848
|
var fulfilled = (value) => {
|
|
34838
34849
|
try {
|
|
@@ -34855,7 +34866,7 @@ var __async$I = (__this, __arguments, generator) => {
|
|
|
34855
34866
|
const useUpdateAccountSettings = () => {
|
|
34856
34867
|
const { client } = useShipEngine();
|
|
34857
34868
|
return useMutation({
|
|
34858
|
-
mutationFn: (settings) => __async$
|
|
34869
|
+
mutationFn: (settings) => __async$J(void 0, null, function* () {
|
|
34859
34870
|
const result = yield client.accountSettings.update(settings);
|
|
34860
34871
|
return result.data;
|
|
34861
34872
|
}),
|
|
@@ -34864,7 +34875,7 @@ const useUpdateAccountSettings = () => {
|
|
|
34864
34875
|
});
|
|
34865
34876
|
};
|
|
34866
34877
|
|
|
34867
|
-
var __async$
|
|
34878
|
+
var __async$I = (__this, __arguments, generator) => {
|
|
34868
34879
|
return new Promise((resolve, reject) => {
|
|
34869
34880
|
var fulfilled = (value) => {
|
|
34870
34881
|
try {
|
|
@@ -34887,7 +34898,7 @@ var __async$H = (__this, __arguments, generator) => {
|
|
|
34887
34898
|
const useParseAddress = () => {
|
|
34888
34899
|
const { client } = useShipEngine();
|
|
34889
34900
|
return useMutation({
|
|
34890
|
-
mutationFn: (_0) => __async$
|
|
34901
|
+
mutationFn: (_0) => __async$I(void 0, [_0], function* ({ address, text }) {
|
|
34891
34902
|
const result = yield client.addresses.parse(text, address);
|
|
34892
34903
|
return result.data;
|
|
34893
34904
|
}),
|
|
@@ -34896,7 +34907,7 @@ const useParseAddress = () => {
|
|
|
34896
34907
|
});
|
|
34897
34908
|
};
|
|
34898
34909
|
|
|
34899
|
-
var __async$
|
|
34910
|
+
var __async$H = (__this, __arguments, generator) => {
|
|
34900
34911
|
return new Promise((resolve, reject) => {
|
|
34901
34912
|
var fulfilled = (value) => {
|
|
34902
34913
|
try {
|
|
@@ -34919,7 +34930,7 @@ var __async$G = (__this, __arguments, generator) => {
|
|
|
34919
34930
|
const useValidateAddresses = () => {
|
|
34920
34931
|
const { client } = useShipEngine();
|
|
34921
34932
|
return useMutation({
|
|
34922
|
-
mutationFn: (addresses) => __async$
|
|
34933
|
+
mutationFn: (addresses) => __async$H(void 0, null, function* () {
|
|
34923
34934
|
const result = yield client.addresses.validate(addresses);
|
|
34924
34935
|
return result.data;
|
|
34925
34936
|
}),
|
|
@@ -34928,7 +34939,7 @@ const useValidateAddresses = () => {
|
|
|
34928
34939
|
});
|
|
34929
34940
|
};
|
|
34930
34941
|
|
|
34931
|
-
var __async$
|
|
34942
|
+
var __async$G = (__this, __arguments, generator) => {
|
|
34932
34943
|
return new Promise((resolve, reject) => {
|
|
34933
34944
|
var fulfilled = (value) => {
|
|
34934
34945
|
try {
|
|
@@ -34951,7 +34962,7 @@ var __async$F = (__this, __arguments, generator) => {
|
|
|
34951
34962
|
const useAddFunds = () => {
|
|
34952
34963
|
const { client } = useShipEngine();
|
|
34953
34964
|
return useMutation({
|
|
34954
|
-
mutationFn: (_0) => __async$
|
|
34965
|
+
mutationFn: (_0) => __async$G(void 0, [_0], function* ({ carrierId, funds }) {
|
|
34955
34966
|
const result = yield client.carriers.addFunds(carrierId, funds);
|
|
34956
34967
|
return result.data;
|
|
34957
34968
|
}),
|
|
@@ -34960,7 +34971,7 @@ const useAddFunds = () => {
|
|
|
34960
34971
|
});
|
|
34961
34972
|
};
|
|
34962
34973
|
|
|
34963
|
-
var __async$
|
|
34974
|
+
var __async$F = (__this, __arguments, generator) => {
|
|
34964
34975
|
return new Promise((resolve, reject) => {
|
|
34965
34976
|
var fulfilled = (value) => {
|
|
34966
34977
|
try {
|
|
@@ -34983,7 +34994,7 @@ var __async$E = (__this, __arguments, generator) => {
|
|
|
34983
34994
|
const useConnectCarrier = () => {
|
|
34984
34995
|
const { client } = useShipEngine();
|
|
34985
34996
|
return useMutation({
|
|
34986
|
-
mutationFn: (params) => __async$
|
|
34997
|
+
mutationFn: (params) => __async$F(void 0, null, function* () {
|
|
34987
34998
|
const result = yield client.carriers.connect(params);
|
|
34988
34999
|
return result.data;
|
|
34989
35000
|
}),
|
|
@@ -35092,41 +35103,41 @@ const useGetServicesByCarrier = (carrierId) => {
|
|
|
35092
35103
|
});
|
|
35093
35104
|
};
|
|
35094
35105
|
|
|
35095
|
-
var __defProp$
|
|
35096
|
-
var __defProps$
|
|
35097
|
-
var __getOwnPropDescs$
|
|
35098
|
-
var __getOwnPropSymbols$
|
|
35099
|
-
var __hasOwnProp$
|
|
35100
|
-
var __propIsEnum$
|
|
35101
|
-
var __defNormalProp$
|
|
35102
|
-
var __spreadValues$
|
|
35106
|
+
var __defProp$j = Object.defineProperty;
|
|
35107
|
+
var __defProps$g = Object.defineProperties;
|
|
35108
|
+
var __getOwnPropDescs$g = Object.getOwnPropertyDescriptors;
|
|
35109
|
+
var __getOwnPropSymbols$t = Object.getOwnPropertySymbols;
|
|
35110
|
+
var __hasOwnProp$t = Object.prototype.hasOwnProperty;
|
|
35111
|
+
var __propIsEnum$t = Object.prototype.propertyIsEnumerable;
|
|
35112
|
+
var __defNormalProp$j = (obj, key, value) => key in obj ? __defProp$j(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
35113
|
+
var __spreadValues$j = (a, b) => {
|
|
35103
35114
|
for (var prop in b || (b = {}))
|
|
35104
|
-
if (__hasOwnProp$
|
|
35105
|
-
__defNormalProp$
|
|
35106
|
-
if (__getOwnPropSymbols$
|
|
35107
|
-
for (var prop of __getOwnPropSymbols$
|
|
35108
|
-
if (__propIsEnum$
|
|
35109
|
-
__defNormalProp$
|
|
35115
|
+
if (__hasOwnProp$t.call(b, prop))
|
|
35116
|
+
__defNormalProp$j(a, prop, b[prop]);
|
|
35117
|
+
if (__getOwnPropSymbols$t)
|
|
35118
|
+
for (var prop of __getOwnPropSymbols$t(b)) {
|
|
35119
|
+
if (__propIsEnum$t.call(b, prop))
|
|
35120
|
+
__defNormalProp$j(a, prop, b[prop]);
|
|
35110
35121
|
}
|
|
35111
35122
|
return a;
|
|
35112
35123
|
};
|
|
35113
|
-
var __spreadProps$
|
|
35124
|
+
var __spreadProps$g = (a, b) => __defProps$g(a, __getOwnPropDescs$g(b));
|
|
35114
35125
|
var __objRest$k = (source, exclude) => {
|
|
35115
35126
|
var target = {};
|
|
35116
35127
|
for (var prop in source)
|
|
35117
|
-
if (__hasOwnProp$
|
|
35128
|
+
if (__hasOwnProp$t.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
35118
35129
|
target[prop] = source[prop];
|
|
35119
|
-
if (source != null && __getOwnPropSymbols$
|
|
35120
|
-
for (var prop of __getOwnPropSymbols$
|
|
35121
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
35130
|
+
if (source != null && __getOwnPropSymbols$t)
|
|
35131
|
+
for (var prop of __getOwnPropSymbols$t(source)) {
|
|
35132
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$t.call(source, prop))
|
|
35122
35133
|
target[prop] = source[prop];
|
|
35123
35134
|
}
|
|
35124
35135
|
return target;
|
|
35125
35136
|
};
|
|
35126
35137
|
const useListCarriers = (params) => {
|
|
35127
35138
|
const { client } = useShipEngine();
|
|
35128
|
-
const _a = __spreadValues$
|
|
35129
|
-
return useQuery(__spreadProps$
|
|
35139
|
+
const _a = __spreadValues$j({}, params), { queryFnParams } = _a, rest = __objRest$k(_a, ["queryFnParams"]);
|
|
35140
|
+
return useQuery(__spreadProps$g(__spreadValues$j({}, rest), {
|
|
35130
35141
|
onError,
|
|
35131
35142
|
queryFn: () => client.carriers.list(queryFnParams),
|
|
35132
35143
|
queryKey: ["useListCarriers", queryFnParams],
|
|
@@ -35134,22 +35145,22 @@ const useListCarriers = (params) => {
|
|
|
35134
35145
|
}));
|
|
35135
35146
|
};
|
|
35136
35147
|
|
|
35137
|
-
var __getOwnPropSymbols$
|
|
35138
|
-
var __hasOwnProp$
|
|
35139
|
-
var __propIsEnum$
|
|
35148
|
+
var __getOwnPropSymbols$s = Object.getOwnPropertySymbols;
|
|
35149
|
+
var __hasOwnProp$s = Object.prototype.hasOwnProperty;
|
|
35150
|
+
var __propIsEnum$s = Object.prototype.propertyIsEnumerable;
|
|
35140
35151
|
var __objRest$j = (source, exclude) => {
|
|
35141
35152
|
var target = {};
|
|
35142
35153
|
for (var prop in source)
|
|
35143
|
-
if (__hasOwnProp$
|
|
35154
|
+
if (__hasOwnProp$s.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
35144
35155
|
target[prop] = source[prop];
|
|
35145
|
-
if (source != null && __getOwnPropSymbols$
|
|
35146
|
-
for (var prop of __getOwnPropSymbols$
|
|
35147
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
35156
|
+
if (source != null && __getOwnPropSymbols$s)
|
|
35157
|
+
for (var prop of __getOwnPropSymbols$s(source)) {
|
|
35158
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$s.call(source, prop))
|
|
35148
35159
|
target[prop] = source[prop];
|
|
35149
35160
|
}
|
|
35150
35161
|
return target;
|
|
35151
35162
|
};
|
|
35152
|
-
var __async$
|
|
35163
|
+
var __async$E = (__this, __arguments, generator) => {
|
|
35153
35164
|
return new Promise((resolve, reject) => {
|
|
35154
35165
|
var fulfilled = (value) => {
|
|
35155
35166
|
try {
|
|
@@ -35173,7 +35184,7 @@ const useUpdateAutoFunding = () => {
|
|
|
35173
35184
|
const { client } = useShipEngine();
|
|
35174
35185
|
const queryClient = useQueryClient();
|
|
35175
35186
|
return useMutation({
|
|
35176
|
-
mutationFn: (_a) => __async$
|
|
35187
|
+
mutationFn: (_a) => __async$E(void 0, null, function* () {
|
|
35177
35188
|
var _b = _a, { carrierId } = _b, options = __objRest$j(_b, ["carrierId"]);
|
|
35178
35189
|
const result = yield client.carriers.updateAutoFunding(carrierId, options);
|
|
35179
35190
|
return result.data;
|
|
@@ -35203,7 +35214,7 @@ const useGetZonesByCarrier = (carrierId) => {
|
|
|
35203
35214
|
});
|
|
35204
35215
|
};
|
|
35205
35216
|
|
|
35206
|
-
var __async$
|
|
35217
|
+
var __async$D = (__this, __arguments, generator) => {
|
|
35207
35218
|
return new Promise((resolve, reject) => {
|
|
35208
35219
|
var fulfilled = (value) => {
|
|
35209
35220
|
try {
|
|
@@ -35226,7 +35237,7 @@ var __async$C = (__this, __arguments, generator) => {
|
|
|
35226
35237
|
const useDeleteCarrier = () => {
|
|
35227
35238
|
const { client } = useShipEngine();
|
|
35228
35239
|
return useMutation({
|
|
35229
|
-
mutationFn: (carrierId) => __async$
|
|
35240
|
+
mutationFn: (carrierId) => __async$D(void 0, null, function* () {
|
|
35230
35241
|
const result = yield client.carriers.delete(carrierId);
|
|
35231
35242
|
return result.data;
|
|
35232
35243
|
}),
|
|
@@ -35235,17 +35246,17 @@ const useDeleteCarrier = () => {
|
|
|
35235
35246
|
});
|
|
35236
35247
|
};
|
|
35237
35248
|
|
|
35238
|
-
var __getOwnPropSymbols$
|
|
35239
|
-
var __hasOwnProp$
|
|
35240
|
-
var __propIsEnum$
|
|
35249
|
+
var __getOwnPropSymbols$r = Object.getOwnPropertySymbols;
|
|
35250
|
+
var __hasOwnProp$r = Object.prototype.hasOwnProperty;
|
|
35251
|
+
var __propIsEnum$r = Object.prototype.propertyIsEnumerable;
|
|
35241
35252
|
var __objRest$i = (source, exclude) => {
|
|
35242
35253
|
var target = {};
|
|
35243
35254
|
for (var prop in source)
|
|
35244
|
-
if (__hasOwnProp$
|
|
35255
|
+
if (__hasOwnProp$r.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
35245
35256
|
target[prop] = source[prop];
|
|
35246
|
-
if (source != null && __getOwnPropSymbols$
|
|
35247
|
-
for (var prop of __getOwnPropSymbols$
|
|
35248
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
35257
|
+
if (source != null && __getOwnPropSymbols$r)
|
|
35258
|
+
for (var prop of __getOwnPropSymbols$r(source)) {
|
|
35259
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$r.call(source, prop))
|
|
35249
35260
|
target[prop] = source[prop];
|
|
35250
35261
|
}
|
|
35251
35262
|
return target;
|
|
@@ -35262,17 +35273,17 @@ const useGetCarrierConnectionForm = (_params) => {
|
|
|
35262
35273
|
});
|
|
35263
35274
|
};
|
|
35264
35275
|
|
|
35265
|
-
var __getOwnPropSymbols$
|
|
35266
|
-
var __hasOwnProp$
|
|
35267
|
-
var __propIsEnum$
|
|
35276
|
+
var __getOwnPropSymbols$q = Object.getOwnPropertySymbols;
|
|
35277
|
+
var __hasOwnProp$q = Object.prototype.hasOwnProperty;
|
|
35278
|
+
var __propIsEnum$q = Object.prototype.propertyIsEnumerable;
|
|
35268
35279
|
var __objRest$h = (source, exclude) => {
|
|
35269
35280
|
var target = {};
|
|
35270
35281
|
for (var prop in source)
|
|
35271
|
-
if (__hasOwnProp$
|
|
35282
|
+
if (__hasOwnProp$q.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
35272
35283
|
target[prop] = source[prop];
|
|
35273
|
-
if (source != null && __getOwnPropSymbols$
|
|
35274
|
-
for (var prop of __getOwnPropSymbols$
|
|
35275
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
35284
|
+
if (source != null && __getOwnPropSymbols$q)
|
|
35285
|
+
for (var prop of __getOwnPropSymbols$q(source)) {
|
|
35286
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$q.call(source, prop))
|
|
35276
35287
|
target[prop] = source[prop];
|
|
35277
35288
|
}
|
|
35278
35289
|
return target;
|
|
@@ -35289,7 +35300,7 @@ const useListCarrierConnections = (_params) => {
|
|
|
35289
35300
|
});
|
|
35290
35301
|
};
|
|
35291
35302
|
|
|
35292
|
-
var __async$
|
|
35303
|
+
var __async$C = (__this, __arguments, generator) => {
|
|
35293
35304
|
return new Promise((resolve, reject) => {
|
|
35294
35305
|
var fulfilled = (value) => {
|
|
35295
35306
|
try {
|
|
@@ -35312,7 +35323,7 @@ var __async$B = (__this, __arguments, generator) => {
|
|
|
35312
35323
|
const useConnectCarrierAccount = () => {
|
|
35313
35324
|
const { client } = useShipEngine();
|
|
35314
35325
|
return useMutation({
|
|
35315
|
-
mutationFn: (_0) => __async$
|
|
35326
|
+
mutationFn: (_0) => __async$C(void 0, [_0], function* ({ carrierName, formData }) {
|
|
35316
35327
|
const result = yield client.connections.connectCarrier(carrierName, formData);
|
|
35317
35328
|
return result.data;
|
|
35318
35329
|
}),
|
|
@@ -35332,33 +35343,33 @@ const useCarrierConnectionsServicesList = (carrierCode) => {
|
|
|
35332
35343
|
});
|
|
35333
35344
|
};
|
|
35334
35345
|
|
|
35335
|
-
var __defProp$
|
|
35336
|
-
var __defProps$
|
|
35337
|
-
var __getOwnPropDescs$
|
|
35338
|
-
var __getOwnPropSymbols$
|
|
35339
|
-
var __hasOwnProp$
|
|
35340
|
-
var __propIsEnum$
|
|
35341
|
-
var __defNormalProp$
|
|
35342
|
-
var __spreadValues$
|
|
35346
|
+
var __defProp$i = Object.defineProperty;
|
|
35347
|
+
var __defProps$f = Object.defineProperties;
|
|
35348
|
+
var __getOwnPropDescs$f = Object.getOwnPropertyDescriptors;
|
|
35349
|
+
var __getOwnPropSymbols$p = Object.getOwnPropertySymbols;
|
|
35350
|
+
var __hasOwnProp$p = Object.prototype.hasOwnProperty;
|
|
35351
|
+
var __propIsEnum$p = Object.prototype.propertyIsEnumerable;
|
|
35352
|
+
var __defNormalProp$i = (obj, key, value) => key in obj ? __defProp$i(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
35353
|
+
var __spreadValues$i = (a, b) => {
|
|
35343
35354
|
for (var prop in b || (b = {}))
|
|
35344
|
-
if (__hasOwnProp$
|
|
35345
|
-
__defNormalProp$
|
|
35346
|
-
if (__getOwnPropSymbols$
|
|
35347
|
-
for (var prop of __getOwnPropSymbols$
|
|
35348
|
-
if (__propIsEnum$
|
|
35349
|
-
__defNormalProp$
|
|
35355
|
+
if (__hasOwnProp$p.call(b, prop))
|
|
35356
|
+
__defNormalProp$i(a, prop, b[prop]);
|
|
35357
|
+
if (__getOwnPropSymbols$p)
|
|
35358
|
+
for (var prop of __getOwnPropSymbols$p(b)) {
|
|
35359
|
+
if (__propIsEnum$p.call(b, prop))
|
|
35360
|
+
__defNormalProp$i(a, prop, b[prop]);
|
|
35350
35361
|
}
|
|
35351
35362
|
return a;
|
|
35352
35363
|
};
|
|
35353
|
-
var __spreadProps$
|
|
35364
|
+
var __spreadProps$f = (a, b) => __defProps$f(a, __getOwnPropDescs$f(b));
|
|
35354
35365
|
var __objRest$g = (source, exclude) => {
|
|
35355
35366
|
var target = {};
|
|
35356
35367
|
for (var prop in source)
|
|
35357
|
-
if (__hasOwnProp$
|
|
35368
|
+
if (__hasOwnProp$p.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
35358
35369
|
target[prop] = source[prop];
|
|
35359
|
-
if (source != null && __getOwnPropSymbols$
|
|
35360
|
-
for (var prop of __getOwnPropSymbols$
|
|
35361
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
35370
|
+
if (source != null && __getOwnPropSymbols$p)
|
|
35371
|
+
for (var prop of __getOwnPropSymbols$p(source)) {
|
|
35372
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$p.call(source, prop))
|
|
35362
35373
|
target[prop] = source[prop];
|
|
35363
35374
|
}
|
|
35364
35375
|
return target;
|
|
@@ -35371,7 +35382,7 @@ const useGetConnectionsCarrierSettings = (_a) => {
|
|
|
35371
35382
|
]);
|
|
35372
35383
|
const { client } = useShipEngine();
|
|
35373
35384
|
const { carrierName, carrierId } = queryFnParams;
|
|
35374
|
-
return useQuery(__spreadProps$
|
|
35385
|
+
return useQuery(__spreadProps$f(__spreadValues$i({}, params), {
|
|
35375
35386
|
onError,
|
|
35376
35387
|
queryFn: () => client.connections.getCarrierSettings(carrierName, carrierId),
|
|
35377
35388
|
queryKey: ["useGetConnectionsCarrierSettings", carrierName, carrierId],
|
|
@@ -35379,26 +35390,26 @@ const useGetConnectionsCarrierSettings = (_a) => {
|
|
|
35379
35390
|
}));
|
|
35380
35391
|
};
|
|
35381
35392
|
|
|
35382
|
-
var __defProp$
|
|
35383
|
-
var __defProps$
|
|
35384
|
-
var __getOwnPropDescs$
|
|
35385
|
-
var __getOwnPropSymbols$
|
|
35386
|
-
var __hasOwnProp$
|
|
35387
|
-
var __propIsEnum$
|
|
35388
|
-
var __defNormalProp$
|
|
35389
|
-
var __spreadValues$
|
|
35393
|
+
var __defProp$h = Object.defineProperty;
|
|
35394
|
+
var __defProps$e = Object.defineProperties;
|
|
35395
|
+
var __getOwnPropDescs$e = Object.getOwnPropertyDescriptors;
|
|
35396
|
+
var __getOwnPropSymbols$o = Object.getOwnPropertySymbols;
|
|
35397
|
+
var __hasOwnProp$o = Object.prototype.hasOwnProperty;
|
|
35398
|
+
var __propIsEnum$o = Object.prototype.propertyIsEnumerable;
|
|
35399
|
+
var __defNormalProp$h = (obj, key, value) => key in obj ? __defProp$h(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
35400
|
+
var __spreadValues$h = (a, b) => {
|
|
35390
35401
|
for (var prop in b || (b = {}))
|
|
35391
|
-
if (__hasOwnProp$
|
|
35392
|
-
__defNormalProp$
|
|
35393
|
-
if (__getOwnPropSymbols$
|
|
35394
|
-
for (var prop of __getOwnPropSymbols$
|
|
35395
|
-
if (__propIsEnum$
|
|
35396
|
-
__defNormalProp$
|
|
35402
|
+
if (__hasOwnProp$o.call(b, prop))
|
|
35403
|
+
__defNormalProp$h(a, prop, b[prop]);
|
|
35404
|
+
if (__getOwnPropSymbols$o)
|
|
35405
|
+
for (var prop of __getOwnPropSymbols$o(b)) {
|
|
35406
|
+
if (__propIsEnum$o.call(b, prop))
|
|
35407
|
+
__defNormalProp$h(a, prop, b[prop]);
|
|
35397
35408
|
}
|
|
35398
35409
|
return a;
|
|
35399
35410
|
};
|
|
35400
|
-
var __spreadProps$
|
|
35401
|
-
var __async$
|
|
35411
|
+
var __spreadProps$e = (a, b) => __defProps$e(a, __getOwnPropDescs$e(b));
|
|
35412
|
+
var __async$B = (__this, __arguments, generator) => {
|
|
35402
35413
|
return new Promise((resolve, reject) => {
|
|
35403
35414
|
var fulfilled = (value) => {
|
|
35404
35415
|
try {
|
|
@@ -35420,8 +35431,8 @@ var __async$A = (__this, __arguments, generator) => {
|
|
|
35420
35431
|
};
|
|
35421
35432
|
const useUpdateConnectionsCarrierSettings = (params) => {
|
|
35422
35433
|
const { client } = useShipEngine();
|
|
35423
|
-
return useMutation(__spreadProps$
|
|
35424
|
-
mutationFn: (_0) => __async$
|
|
35434
|
+
return useMutation(__spreadProps$e(__spreadValues$h({}, params), {
|
|
35435
|
+
mutationFn: (_0) => __async$B(void 0, [_0], function* ({
|
|
35425
35436
|
carrierName,
|
|
35426
35437
|
carrierId,
|
|
35427
35438
|
formData
|
|
@@ -35448,7 +35459,7 @@ const useListCustomPackageTypes = () => {
|
|
|
35448
35459
|
});
|
|
35449
35460
|
};
|
|
35450
35461
|
|
|
35451
|
-
var __async$
|
|
35462
|
+
var __async$A = (__this, __arguments, generator) => {
|
|
35452
35463
|
return new Promise((resolve, reject) => {
|
|
35453
35464
|
var fulfilled = (value) => {
|
|
35454
35465
|
try {
|
|
@@ -35471,7 +35482,7 @@ var __async$z = (__this, __arguments, generator) => {
|
|
|
35471
35482
|
const useCreateFundingSource = () => {
|
|
35472
35483
|
const { client } = useShipEngine();
|
|
35473
35484
|
return useMutation({
|
|
35474
|
-
mutationFn: (fundingSource) => __async$
|
|
35485
|
+
mutationFn: (fundingSource) => __async$A(void 0, null, function* () {
|
|
35475
35486
|
const result = yield client.fundingSources.create(fundingSource);
|
|
35476
35487
|
return result.data;
|
|
35477
35488
|
}),
|
|
@@ -35480,7 +35491,7 @@ const useCreateFundingSource = () => {
|
|
|
35480
35491
|
});
|
|
35481
35492
|
};
|
|
35482
35493
|
|
|
35483
|
-
var __async$
|
|
35494
|
+
var __async$z = (__this, __arguments, generator) => {
|
|
35484
35495
|
return new Promise((resolve, reject) => {
|
|
35485
35496
|
var fulfilled = (value) => {
|
|
35486
35497
|
try {
|
|
@@ -35503,7 +35514,7 @@ var __async$y = (__this, __arguments, generator) => {
|
|
|
35503
35514
|
const useFundingSourcesAddFunds = () => {
|
|
35504
35515
|
const { client } = useShipEngine();
|
|
35505
35516
|
return useMutation({
|
|
35506
|
-
mutationFn: (_0) => __async$
|
|
35517
|
+
mutationFn: (_0) => __async$z(void 0, [_0], function* ({ funds, fundingSourceId }) {
|
|
35507
35518
|
const result = yield client.fundingSources.addFunds(funds, fundingSourceId);
|
|
35508
35519
|
return result.data;
|
|
35509
35520
|
}),
|
|
@@ -35532,7 +35543,7 @@ const useListFundingSources = () => {
|
|
|
35532
35543
|
});
|
|
35533
35544
|
};
|
|
35534
35545
|
|
|
35535
|
-
var __async$
|
|
35546
|
+
var __async$y = (__this, __arguments, generator) => {
|
|
35536
35547
|
return new Promise((resolve, reject) => {
|
|
35537
35548
|
var fulfilled = (value) => {
|
|
35538
35549
|
try {
|
|
@@ -35555,7 +35566,7 @@ var __async$x = (__this, __arguments, generator) => {
|
|
|
35555
35566
|
const useRegisterCarrier = () => {
|
|
35556
35567
|
const { client } = useShipEngine();
|
|
35557
35568
|
return useMutation({
|
|
35558
|
-
mutationFn: (carrier) => __async$
|
|
35569
|
+
mutationFn: (carrier) => __async$y(void 0, null, function* () {
|
|
35559
35570
|
const result = yield client.fundingSources.registerCarrier(carrier);
|
|
35560
35571
|
return result.data;
|
|
35561
35572
|
}),
|
|
@@ -35564,7 +35575,7 @@ const useRegisterCarrier = () => {
|
|
|
35564
35575
|
});
|
|
35565
35576
|
};
|
|
35566
35577
|
|
|
35567
|
-
var __async$
|
|
35578
|
+
var __async$x = (__this, __arguments, generator) => {
|
|
35568
35579
|
return new Promise((resolve, reject) => {
|
|
35569
35580
|
var fulfilled = (value) => {
|
|
35570
35581
|
try {
|
|
@@ -35587,7 +35598,7 @@ var __async$w = (__this, __arguments, generator) => {
|
|
|
35587
35598
|
const useUpdateFundingSource = () => {
|
|
35588
35599
|
const { client } = useShipEngine();
|
|
35589
35600
|
return useMutation({
|
|
35590
|
-
mutationFn: (_0) => __async$
|
|
35601
|
+
mutationFn: (_0) => __async$x(void 0, [_0], function* ({
|
|
35591
35602
|
billingInfo,
|
|
35592
35603
|
creditCardInfo,
|
|
35593
35604
|
fundingSourceId
|
|
@@ -35651,22 +35662,22 @@ const useGetInsuranceAccount = (insuranceProvider) => {
|
|
|
35651
35662
|
});
|
|
35652
35663
|
};
|
|
35653
35664
|
|
|
35654
|
-
var __getOwnPropSymbols$
|
|
35655
|
-
var __hasOwnProp$
|
|
35656
|
-
var __propIsEnum$
|
|
35665
|
+
var __getOwnPropSymbols$n = Object.getOwnPropertySymbols;
|
|
35666
|
+
var __hasOwnProp$n = Object.prototype.hasOwnProperty;
|
|
35667
|
+
var __propIsEnum$n = Object.prototype.propertyIsEnumerable;
|
|
35657
35668
|
var __objRest$f = (source, exclude) => {
|
|
35658
35669
|
var target = {};
|
|
35659
35670
|
for (var prop in source)
|
|
35660
|
-
if (__hasOwnProp$
|
|
35671
|
+
if (__hasOwnProp$n.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
35661
35672
|
target[prop] = source[prop];
|
|
35662
|
-
if (source != null && __getOwnPropSymbols$
|
|
35663
|
-
for (var prop of __getOwnPropSymbols$
|
|
35664
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
35673
|
+
if (source != null && __getOwnPropSymbols$n)
|
|
35674
|
+
for (var prop of __getOwnPropSymbols$n(source)) {
|
|
35675
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$n.call(source, prop))
|
|
35665
35676
|
target[prop] = source[prop];
|
|
35666
35677
|
}
|
|
35667
35678
|
return target;
|
|
35668
35679
|
};
|
|
35669
|
-
var __async$
|
|
35680
|
+
var __async$w = (__this, __arguments, generator) => {
|
|
35670
35681
|
return new Promise((resolve, reject) => {
|
|
35671
35682
|
var fulfilled = (value) => {
|
|
35672
35683
|
try {
|
|
@@ -35689,7 +35700,7 @@ var __async$v = (__this, __arguments, generator) => {
|
|
|
35689
35700
|
const useAddInsuranceFunds = () => {
|
|
35690
35701
|
const { client } = useShipEngine();
|
|
35691
35702
|
return useMutation({
|
|
35692
|
-
mutationFn: (_a) => __async$
|
|
35703
|
+
mutationFn: (_a) => __async$w(void 0, null, function* () {
|
|
35693
35704
|
var _b = _a, { insuranceProvider } = _b, rest = __objRest$f(_b, ["insuranceProvider"]);
|
|
35694
35705
|
const result = yield client.insurance.addFunds(insuranceProvider, rest);
|
|
35695
35706
|
return result.data;
|
|
@@ -35699,22 +35710,22 @@ const useAddInsuranceFunds = () => {
|
|
|
35699
35710
|
});
|
|
35700
35711
|
};
|
|
35701
35712
|
|
|
35702
|
-
var __getOwnPropSymbols$
|
|
35703
|
-
var __hasOwnProp$
|
|
35704
|
-
var __propIsEnum$
|
|
35713
|
+
var __getOwnPropSymbols$m = Object.getOwnPropertySymbols;
|
|
35714
|
+
var __hasOwnProp$m = Object.prototype.hasOwnProperty;
|
|
35715
|
+
var __propIsEnum$m = Object.prototype.propertyIsEnumerable;
|
|
35705
35716
|
var __objRest$e = (source, exclude) => {
|
|
35706
35717
|
var target = {};
|
|
35707
35718
|
for (var prop in source)
|
|
35708
|
-
if (__hasOwnProp$
|
|
35719
|
+
if (__hasOwnProp$m.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
35709
35720
|
target[prop] = source[prop];
|
|
35710
|
-
if (source != null && __getOwnPropSymbols$
|
|
35711
|
-
for (var prop of __getOwnPropSymbols$
|
|
35712
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
35721
|
+
if (source != null && __getOwnPropSymbols$m)
|
|
35722
|
+
for (var prop of __getOwnPropSymbols$m(source)) {
|
|
35723
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$m.call(source, prop))
|
|
35713
35724
|
target[prop] = source[prop];
|
|
35714
35725
|
}
|
|
35715
35726
|
return target;
|
|
35716
35727
|
};
|
|
35717
|
-
var __async$
|
|
35728
|
+
var __async$v = (__this, __arguments, generator) => {
|
|
35718
35729
|
return new Promise((resolve, reject) => {
|
|
35719
35730
|
var fulfilled = (value) => {
|
|
35720
35731
|
try {
|
|
@@ -35737,7 +35748,7 @@ var __async$u = (__this, __arguments, generator) => {
|
|
|
35737
35748
|
const useCreateLabel = () => {
|
|
35738
35749
|
const { client } = useShipEngine();
|
|
35739
35750
|
return useMutation({
|
|
35740
|
-
mutationFn: (_a) => __async$
|
|
35751
|
+
mutationFn: (_a) => __async$v(void 0, null, function* () {
|
|
35741
35752
|
var _b = _a, { rateId } = _b, options = __objRest$e(_b, ["rateId"]);
|
|
35742
35753
|
const result = yield client.labels.createByRateId(rateId, options);
|
|
35743
35754
|
return result.data;
|
|
@@ -35762,41 +35773,41 @@ const useGetLabel = (labelId) => {
|
|
|
35762
35773
|
});
|
|
35763
35774
|
};
|
|
35764
35775
|
|
|
35765
|
-
var __defProp$
|
|
35766
|
-
var __defProps$
|
|
35767
|
-
var __getOwnPropDescs$
|
|
35768
|
-
var __getOwnPropSymbols$
|
|
35769
|
-
var __hasOwnProp$
|
|
35770
|
-
var __propIsEnum$
|
|
35771
|
-
var __defNormalProp$
|
|
35772
|
-
var __spreadValues$
|
|
35776
|
+
var __defProp$g = Object.defineProperty;
|
|
35777
|
+
var __defProps$d = Object.defineProperties;
|
|
35778
|
+
var __getOwnPropDescs$d = Object.getOwnPropertyDescriptors;
|
|
35779
|
+
var __getOwnPropSymbols$l = Object.getOwnPropertySymbols;
|
|
35780
|
+
var __hasOwnProp$l = Object.prototype.hasOwnProperty;
|
|
35781
|
+
var __propIsEnum$l = Object.prototype.propertyIsEnumerable;
|
|
35782
|
+
var __defNormalProp$g = (obj, key, value) => key in obj ? __defProp$g(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
35783
|
+
var __spreadValues$g = (a, b) => {
|
|
35773
35784
|
for (var prop in b || (b = {}))
|
|
35774
|
-
if (__hasOwnProp$
|
|
35775
|
-
__defNormalProp$
|
|
35776
|
-
if (__getOwnPropSymbols$
|
|
35777
|
-
for (var prop of __getOwnPropSymbols$
|
|
35778
|
-
if (__propIsEnum$
|
|
35779
|
-
__defNormalProp$
|
|
35785
|
+
if (__hasOwnProp$l.call(b, prop))
|
|
35786
|
+
__defNormalProp$g(a, prop, b[prop]);
|
|
35787
|
+
if (__getOwnPropSymbols$l)
|
|
35788
|
+
for (var prop of __getOwnPropSymbols$l(b)) {
|
|
35789
|
+
if (__propIsEnum$l.call(b, prop))
|
|
35790
|
+
__defNormalProp$g(a, prop, b[prop]);
|
|
35780
35791
|
}
|
|
35781
35792
|
return a;
|
|
35782
35793
|
};
|
|
35783
|
-
var __spreadProps$
|
|
35794
|
+
var __spreadProps$d = (a, b) => __defProps$d(a, __getOwnPropDescs$d(b));
|
|
35784
35795
|
var __objRest$d = (source, exclude) => {
|
|
35785
35796
|
var target = {};
|
|
35786
35797
|
for (var prop in source)
|
|
35787
|
-
if (__hasOwnProp$
|
|
35798
|
+
if (__hasOwnProp$l.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
35788
35799
|
target[prop] = source[prop];
|
|
35789
|
-
if (source != null && __getOwnPropSymbols$
|
|
35790
|
-
for (var prop of __getOwnPropSymbols$
|
|
35791
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
35800
|
+
if (source != null && __getOwnPropSymbols$l)
|
|
35801
|
+
for (var prop of __getOwnPropSymbols$l(source)) {
|
|
35802
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$l.call(source, prop))
|
|
35792
35803
|
target[prop] = source[prop];
|
|
35793
35804
|
}
|
|
35794
35805
|
return target;
|
|
35795
35806
|
};
|
|
35796
35807
|
const useListLabels = (params) => {
|
|
35797
35808
|
const { client } = useShipEngine();
|
|
35798
|
-
const _a = __spreadValues$
|
|
35799
|
-
return useQuery(__spreadProps$
|
|
35809
|
+
const _a = __spreadValues$g({}, params), { queryFnParams } = _a, rest = __objRest$d(_a, ["queryFnParams"]);
|
|
35810
|
+
return useQuery(__spreadProps$d(__spreadValues$g({}, rest), {
|
|
35800
35811
|
onError,
|
|
35801
35812
|
queryFn: () => client.labels.list(queryFnParams),
|
|
35802
35813
|
queryKey: ["useListLabels", params],
|
|
@@ -35804,7 +35815,7 @@ const useListLabels = (params) => {
|
|
|
35804
35815
|
}));
|
|
35805
35816
|
};
|
|
35806
35817
|
|
|
35807
|
-
var __async$
|
|
35818
|
+
var __async$u = (__this, __arguments, generator) => {
|
|
35808
35819
|
return new Promise((resolve, reject) => {
|
|
35809
35820
|
var fulfilled = (value) => {
|
|
35810
35821
|
try {
|
|
@@ -35827,7 +35838,7 @@ var __async$t = (__this, __arguments, generator) => {
|
|
|
35827
35838
|
const useVoidLabel = () => {
|
|
35828
35839
|
const { client } = useShipEngine();
|
|
35829
35840
|
return useMutation({
|
|
35830
|
-
mutationFn: (labelId) => __async$
|
|
35841
|
+
mutationFn: (labelId) => __async$u(void 0, null, function* () {
|
|
35831
35842
|
const result = yield client.labels.void(labelId);
|
|
35832
35843
|
return result.data;
|
|
35833
35844
|
}),
|
|
@@ -35836,17 +35847,36 @@ const useVoidLabel = () => {
|
|
|
35836
35847
|
});
|
|
35837
35848
|
};
|
|
35838
35849
|
|
|
35839
|
-
|
|
35850
|
+
var __defProp$f = Object.defineProperty;
|
|
35851
|
+
var __defProps$c = Object.defineProperties;
|
|
35852
|
+
var __getOwnPropDescs$c = Object.getOwnPropertyDescriptors;
|
|
35853
|
+
var __getOwnPropSymbols$k = Object.getOwnPropertySymbols;
|
|
35854
|
+
var __hasOwnProp$k = Object.prototype.hasOwnProperty;
|
|
35855
|
+
var __propIsEnum$k = Object.prototype.propertyIsEnumerable;
|
|
35856
|
+
var __defNormalProp$f = (obj, key, value) => key in obj ? __defProp$f(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
35857
|
+
var __spreadValues$f = (a, b) => {
|
|
35858
|
+
for (var prop in b || (b = {}))
|
|
35859
|
+
if (__hasOwnProp$k.call(b, prop))
|
|
35860
|
+
__defNormalProp$f(a, prop, b[prop]);
|
|
35861
|
+
if (__getOwnPropSymbols$k)
|
|
35862
|
+
for (var prop of __getOwnPropSymbols$k(b)) {
|
|
35863
|
+
if (__propIsEnum$k.call(b, prop))
|
|
35864
|
+
__defNormalProp$f(a, prop, b[prop]);
|
|
35865
|
+
}
|
|
35866
|
+
return a;
|
|
35867
|
+
};
|
|
35868
|
+
var __spreadProps$c = (a, b) => __defProps$c(a, __getOwnPropDescs$c(b));
|
|
35869
|
+
const useListOrderSources = (params) => {
|
|
35840
35870
|
const { client } = useShipEngine();
|
|
35841
|
-
return useQuery({
|
|
35871
|
+
return useQuery(__spreadProps$c(__spreadValues$f({}, params), {
|
|
35842
35872
|
onError,
|
|
35843
35873
|
queryFn: () => client.orderSources.list(),
|
|
35844
35874
|
queryKey: ["useListOrderSources"],
|
|
35845
35875
|
select: (result) => result.data.orderSources
|
|
35846
|
-
});
|
|
35876
|
+
}));
|
|
35847
35877
|
};
|
|
35848
35878
|
|
|
35849
|
-
var __async$
|
|
35879
|
+
var __async$t = (__this, __arguments, generator) => {
|
|
35850
35880
|
return new Promise((resolve, reject) => {
|
|
35851
35881
|
var fulfilled = (value) => {
|
|
35852
35882
|
try {
|
|
@@ -35869,7 +35899,7 @@ var __async$s = (__this, __arguments, generator) => {
|
|
|
35869
35899
|
const useRefreshOrderSourceAsync = () => {
|
|
35870
35900
|
const { client } = useShipEngine();
|
|
35871
35901
|
return useMutation({
|
|
35872
|
-
mutationFn: (orderSourceId) => __async$
|
|
35902
|
+
mutationFn: (orderSourceId) => __async$t(void 0, null, function* () {
|
|
35873
35903
|
const result = yield client.orderSources.refresh(orderSourceId);
|
|
35874
35904
|
return result.data;
|
|
35875
35905
|
}),
|
|
@@ -35880,9 +35910,9 @@ const useRefreshOrderSource = () => {
|
|
|
35880
35910
|
const { client } = useShipEngine();
|
|
35881
35911
|
const { mutateAsync: refreshOrderSourceAsync } = useRefreshOrderSourceAsync();
|
|
35882
35912
|
return useMutation({
|
|
35883
|
-
mutationFn: (orderSourceId) => __async$
|
|
35913
|
+
mutationFn: (orderSourceId) => __async$t(void 0, null, function* () {
|
|
35884
35914
|
yield refreshOrderSourceAsync(orderSourceId);
|
|
35885
|
-
const waitResult = yield retryUntil(() => __async$
|
|
35915
|
+
const waitResult = yield retryUntil(() => __async$t(void 0, null, function* () {
|
|
35886
35916
|
const { data: checkResult } = yield client.orderSources.get(orderSourceId);
|
|
35887
35917
|
if (["preparing_update", "updating"].includes(checkResult.refreshInfo.status)) {
|
|
35888
35918
|
throw new CodedError("Order source is still refreshing");
|
|
@@ -35896,7 +35926,7 @@ const useRefreshOrderSource = () => {
|
|
|
35896
35926
|
});
|
|
35897
35927
|
};
|
|
35898
35928
|
|
|
35899
|
-
var __async$
|
|
35929
|
+
var __async$s = (__this, __arguments, generator) => {
|
|
35900
35930
|
return new Promise((resolve, reject) => {
|
|
35901
35931
|
var fulfilled = (value) => {
|
|
35902
35932
|
try {
|
|
@@ -35919,7 +35949,7 @@ var __async$r = (__this, __arguments, generator) => {
|
|
|
35919
35949
|
const useDeactivateOrderSource = () => {
|
|
35920
35950
|
const { client } = useShipEngine();
|
|
35921
35951
|
return useMutation({
|
|
35922
|
-
mutationFn: (orderSourceId) => __async$
|
|
35952
|
+
mutationFn: (orderSourceId) => __async$s(void 0, null, function* () {
|
|
35923
35953
|
const result = yield client.orderSources.deactivate(orderSourceId);
|
|
35924
35954
|
return result.data;
|
|
35925
35955
|
}),
|
|
@@ -35938,7 +35968,7 @@ const useListOrderSourcesConnections = () => {
|
|
|
35938
35968
|
});
|
|
35939
35969
|
};
|
|
35940
35970
|
|
|
35941
|
-
var __async$
|
|
35971
|
+
var __async$r = (__this, __arguments, generator) => {
|
|
35942
35972
|
return new Promise((resolve, reject) => {
|
|
35943
35973
|
var fulfilled = (value) => {
|
|
35944
35974
|
try {
|
|
@@ -35961,7 +35991,7 @@ var __async$q = (__this, __arguments, generator) => {
|
|
|
35961
35991
|
const useCreateRateCard = () => {
|
|
35962
35992
|
const { client } = useShipEngine();
|
|
35963
35993
|
return useMutation({
|
|
35964
|
-
mutationFn: (rateCard) => __async$
|
|
35994
|
+
mutationFn: (rateCard) => __async$r(void 0, null, function* () {
|
|
35965
35995
|
const result = yield client.rateCards.create(rateCard);
|
|
35966
35996
|
return result.data;
|
|
35967
35997
|
}),
|
|
@@ -36008,7 +36038,7 @@ const useListRateCards = (carrierIds) => {
|
|
|
36008
36038
|
});
|
|
36009
36039
|
};
|
|
36010
36040
|
|
|
36011
|
-
var __async$
|
|
36041
|
+
var __async$q = (__this, __arguments, generator) => {
|
|
36012
36042
|
return new Promise((resolve, reject) => {
|
|
36013
36043
|
var fulfilled = (value) => {
|
|
36014
36044
|
try {
|
|
@@ -36031,7 +36061,7 @@ var __async$p = (__this, __arguments, generator) => {
|
|
|
36031
36061
|
const usePublishRateCard = () => {
|
|
36032
36062
|
const { client } = useShipEngine();
|
|
36033
36063
|
return useMutation({
|
|
36034
|
-
mutationFn: (rateCardId) => __async$
|
|
36064
|
+
mutationFn: (rateCardId) => __async$q(void 0, null, function* () {
|
|
36035
36065
|
return yield client.rateCards.publish(rateCardId);
|
|
36036
36066
|
}),
|
|
36037
36067
|
mutationKey: ["usePublishRateCard"],
|
|
@@ -36039,7 +36069,7 @@ const usePublishRateCard = () => {
|
|
|
36039
36069
|
});
|
|
36040
36070
|
};
|
|
36041
36071
|
|
|
36042
|
-
var __async$
|
|
36072
|
+
var __async$p = (__this, __arguments, generator) => {
|
|
36043
36073
|
return new Promise((resolve, reject) => {
|
|
36044
36074
|
var fulfilled = (value) => {
|
|
36045
36075
|
try {
|
|
@@ -36062,7 +36092,7 @@ var __async$o = (__this, __arguments, generator) => {
|
|
|
36062
36092
|
const useUpdateRateCard = () => {
|
|
36063
36093
|
const { client } = useShipEngine();
|
|
36064
36094
|
return useMutation({
|
|
36065
|
-
mutationFn: (rateCard) => __async$
|
|
36095
|
+
mutationFn: (rateCard) => __async$p(void 0, null, function* () {
|
|
36066
36096
|
const result = yield client.rateCards.update(rateCard);
|
|
36067
36097
|
return result.data;
|
|
36068
36098
|
}),
|
|
@@ -36071,7 +36101,7 @@ const useUpdateRateCard = () => {
|
|
|
36071
36101
|
});
|
|
36072
36102
|
};
|
|
36073
36103
|
|
|
36074
|
-
var __async$
|
|
36104
|
+
var __async$o = (__this, __arguments, generator) => {
|
|
36075
36105
|
return new Promise((resolve, reject) => {
|
|
36076
36106
|
var fulfilled = (value) => {
|
|
36077
36107
|
try {
|
|
@@ -36094,7 +36124,7 @@ var __async$n = (__this, __arguments, generator) => {
|
|
|
36094
36124
|
const useUploadRateCard = () => {
|
|
36095
36125
|
const { client } = useShipEngine();
|
|
36096
36126
|
return useMutation({
|
|
36097
|
-
mutationFn: (_0) => __async$
|
|
36127
|
+
mutationFn: (_0) => __async$o(void 0, [_0], function* ({ rateCardId, file }) {
|
|
36098
36128
|
const result = yield client.rateCards.upload(rateCardId, file);
|
|
36099
36129
|
return result.data;
|
|
36100
36130
|
}),
|
|
@@ -36103,7 +36133,7 @@ const useUploadRateCard = () => {
|
|
|
36103
36133
|
});
|
|
36104
36134
|
};
|
|
36105
36135
|
|
|
36106
|
-
var __async$
|
|
36136
|
+
var __async$n = (__this, __arguments, generator) => {
|
|
36107
36137
|
return new Promise((resolve, reject) => {
|
|
36108
36138
|
var fulfilled = (value) => {
|
|
36109
36139
|
try {
|
|
@@ -36126,7 +36156,7 @@ var __async$m = (__this, __arguments, generator) => {
|
|
|
36126
36156
|
const useDeleteRateCard = () => {
|
|
36127
36157
|
const { client } = useShipEngine();
|
|
36128
36158
|
return useMutation({
|
|
36129
|
-
mutationFn: (rateCardId) => __async$
|
|
36159
|
+
mutationFn: (rateCardId) => __async$n(void 0, null, function* () {
|
|
36130
36160
|
const result = yield client.rateCards.delete(rateCardId);
|
|
36131
36161
|
return result.data;
|
|
36132
36162
|
}),
|
|
@@ -36135,7 +36165,7 @@ const useDeleteRateCard = () => {
|
|
|
36135
36165
|
});
|
|
36136
36166
|
};
|
|
36137
36167
|
|
|
36138
|
-
var __async$
|
|
36168
|
+
var __async$m = (__this, __arguments, generator) => {
|
|
36139
36169
|
return new Promise((resolve, reject) => {
|
|
36140
36170
|
var fulfilled = (value) => {
|
|
36141
36171
|
try {
|
|
@@ -36158,7 +36188,7 @@ var __async$l = (__this, __arguments, generator) => {
|
|
|
36158
36188
|
const useCalculateRates = () => {
|
|
36159
36189
|
const { client } = useShipEngine();
|
|
36160
36190
|
return useMutation({
|
|
36161
|
-
mutationFn: (_0) => __async$
|
|
36191
|
+
mutationFn: (_0) => __async$m(void 0, [_0], function* ({ rateOptions, shipmentId }) {
|
|
36162
36192
|
const result = yield client.rates.calculateByShipmentId(shipmentId, rateOptions);
|
|
36163
36193
|
return result.data;
|
|
36164
36194
|
}),
|
|
@@ -36167,7 +36197,7 @@ const useCalculateRates = () => {
|
|
|
36167
36197
|
});
|
|
36168
36198
|
};
|
|
36169
36199
|
|
|
36170
|
-
var __async$
|
|
36200
|
+
var __async$l = (__this, __arguments, generator) => {
|
|
36171
36201
|
return new Promise((resolve, reject) => {
|
|
36172
36202
|
var fulfilled = (value) => {
|
|
36173
36203
|
try {
|
|
@@ -36190,7 +36220,7 @@ var __async$k = (__this, __arguments, generator) => {
|
|
|
36190
36220
|
const useRatesEstimate = () => {
|
|
36191
36221
|
const { client } = useShipEngine();
|
|
36192
36222
|
return useMutation({
|
|
36193
|
-
mutationFn: (_0) => __async$
|
|
36223
|
+
mutationFn: (_0) => __async$l(void 0, [_0], function* ({ rateParams }) {
|
|
36194
36224
|
const result = yield client.rates.estimate(rateParams);
|
|
36195
36225
|
return result.data;
|
|
36196
36226
|
}),
|
|
@@ -36240,7 +36270,7 @@ var __objRest$c = (source, exclude) => {
|
|
|
36240
36270
|
}
|
|
36241
36271
|
return target;
|
|
36242
36272
|
};
|
|
36243
|
-
var __async$
|
|
36273
|
+
var __async$k = (__this, __arguments, generator) => {
|
|
36244
36274
|
return new Promise((resolve, reject) => {
|
|
36245
36275
|
var fulfilled = (value) => {
|
|
36246
36276
|
try {
|
|
@@ -36263,7 +36293,7 @@ var __async$j = (__this, __arguments, generator) => {
|
|
|
36263
36293
|
const useNotifySalesOrderShipped = () => {
|
|
36264
36294
|
const { client } = useShipEngine();
|
|
36265
36295
|
return useMutation({
|
|
36266
|
-
mutationFn: (_a) => __async$
|
|
36296
|
+
mutationFn: (_a) => __async$k(void 0, null, function* () {
|
|
36267
36297
|
var _b = _a, { salesOrderId } = _b, tracking = __objRest$c(_b, ["salesOrderId"]);
|
|
36268
36298
|
const result = yield client.salesOrders.notifyShipped(salesOrderId, tracking);
|
|
36269
36299
|
return result.data;
|
|
@@ -36288,7 +36318,7 @@ var __objRest$b = (source, exclude) => {
|
|
|
36288
36318
|
}
|
|
36289
36319
|
return target;
|
|
36290
36320
|
};
|
|
36291
|
-
var __async$
|
|
36321
|
+
var __async$j = (__this, __arguments, generator) => {
|
|
36292
36322
|
return new Promise((resolve, reject) => {
|
|
36293
36323
|
var fulfilled = (value) => {
|
|
36294
36324
|
try {
|
|
@@ -36311,7 +36341,7 @@ var __async$i = (__this, __arguments, generator) => {
|
|
|
36311
36341
|
const useCreateSalesOrderShipment = () => {
|
|
36312
36342
|
const { client } = useShipEngine();
|
|
36313
36343
|
return useMutation({
|
|
36314
|
-
mutationFn: (_a) => __async$
|
|
36344
|
+
mutationFn: (_a) => __async$j(void 0, null, function* () {
|
|
36315
36345
|
var _b = _a, { salesOrderId } = _b, shipment = __objRest$b(_b, ["salesOrderId"]);
|
|
36316
36346
|
const result = yield client.salesOrderShipments.create(salesOrderId, shipment);
|
|
36317
36347
|
return result.data;
|
|
@@ -36362,7 +36392,7 @@ var __objRest$a = (source, exclude) => {
|
|
|
36362
36392
|
}
|
|
36363
36393
|
return target;
|
|
36364
36394
|
};
|
|
36365
|
-
var __async$
|
|
36395
|
+
var __async$i = (__this, __arguments, generator) => {
|
|
36366
36396
|
return new Promise((resolve, reject) => {
|
|
36367
36397
|
var fulfilled = (value) => {
|
|
36368
36398
|
try {
|
|
@@ -36385,7 +36415,7 @@ var __async$h = (__this, __arguments, generator) => {
|
|
|
36385
36415
|
const useUpdateSalesOrderShipment = () => {
|
|
36386
36416
|
const { client } = useShipEngine();
|
|
36387
36417
|
return useMutation({
|
|
36388
|
-
mutationFn: (_a) => __async$
|
|
36418
|
+
mutationFn: (_a) => __async$i(void 0, null, function* () {
|
|
36389
36419
|
var _b = _a, { shipmentId } = _b, shipment = __objRest$a(_b, ["shipmentId"]);
|
|
36390
36420
|
const result = yield client.salesOrderShipments.update(shipmentId, shipment);
|
|
36391
36421
|
return result.data;
|
|
@@ -36414,7 +36444,7 @@ var __spreadValues$e = (a, b) => {
|
|
|
36414
36444
|
return a;
|
|
36415
36445
|
};
|
|
36416
36446
|
var __spreadProps$b = (a, b) => __defProps$b(a, __getOwnPropDescs$b(b));
|
|
36417
|
-
var __async$
|
|
36447
|
+
var __async$h = (__this, __arguments, generator) => {
|
|
36418
36448
|
return new Promise((resolve, reject) => {
|
|
36419
36449
|
var fulfilled = (value) => {
|
|
36420
36450
|
try {
|
|
@@ -36437,7 +36467,7 @@ var __async$g = (__this, __arguments, generator) => {
|
|
|
36437
36467
|
const useCreateShipment = () => {
|
|
36438
36468
|
const { client } = useShipEngine();
|
|
36439
36469
|
return useMutation({
|
|
36440
|
-
mutationFn: (shipment) => __async$
|
|
36470
|
+
mutationFn: (shipment) => __async$h(void 0, null, function* () {
|
|
36441
36471
|
var _a;
|
|
36442
36472
|
if (shipment.warehouseId === void 0 && shipment.shipFrom === void 0) {
|
|
36443
36473
|
throw new CodedError("errorMessages.noWarehouses", {
|
|
@@ -36605,6 +36635,38 @@ const useGetShipmentByExternalId = (params) => {
|
|
|
36605
36635
|
}));
|
|
36606
36636
|
};
|
|
36607
36637
|
|
|
36638
|
+
var __async$g = (__this, __arguments, generator) => {
|
|
36639
|
+
return new Promise((resolve, reject) => {
|
|
36640
|
+
var fulfilled = (value) => {
|
|
36641
|
+
try {
|
|
36642
|
+
step(generator.next(value));
|
|
36643
|
+
} catch (e) {
|
|
36644
|
+
reject(e);
|
|
36645
|
+
}
|
|
36646
|
+
};
|
|
36647
|
+
var rejected = (value) => {
|
|
36648
|
+
try {
|
|
36649
|
+
step(generator.throw(value));
|
|
36650
|
+
} catch (e) {
|
|
36651
|
+
reject(e);
|
|
36652
|
+
}
|
|
36653
|
+
};
|
|
36654
|
+
var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
|
|
36655
|
+
step((generator = generator.apply(__this, __arguments)).next());
|
|
36656
|
+
});
|
|
36657
|
+
};
|
|
36658
|
+
const useCancelShipment = () => {
|
|
36659
|
+
const { client } = useShipEngine();
|
|
36660
|
+
return useMutation({
|
|
36661
|
+
mutationFn: (shipmentId) => __async$g(void 0, null, function* () {
|
|
36662
|
+
const result = yield client.shipments.cancel(shipmentId);
|
|
36663
|
+
return result.data;
|
|
36664
|
+
}),
|
|
36665
|
+
mutationKey: ["useCancelShipment"],
|
|
36666
|
+
onError
|
|
36667
|
+
});
|
|
36668
|
+
};
|
|
36669
|
+
|
|
36608
36670
|
var __defProp$b = Object.defineProperty;
|
|
36609
36671
|
var __defProps$8 = Object.defineProperties;
|
|
36610
36672
|
var __getOwnPropDescs$8 = Object.getOwnPropertyDescriptors;
|
|
@@ -38645,4 +38707,4 @@ const alchemy = {
|
|
|
38645
38707
|
createElement
|
|
38646
38708
|
};
|
|
38647
38709
|
|
|
38648
|
-
export { AccountSettingsAPI, AddressesAPI, AlchemyContext, AlchemyProvider, AlchemyTestProvider, CarriersAPI, CodedError, ConfirmationType, ConnectionsAPI, CreditCardVendor, Currency, CustomPackagesAPI, CustomsContentsType, CustomsNonDeliveryType, Element, ErrorBoundary, FundingSourcesAPI, InsuranceAPI, InsuranceProviderType, LabelsAPI, MetadataCapability, MetadataRequirement, MetadataSatisfyingFormTypes, MovementIndicator, OrderSourcesAPI, RateCardStatus, RateCardsAPI, RatesAPI, types as SE, SalesOrderShipmentsAPI, SalesOrdersAPI, SellersAPI, ServicePointsAPI, ShipEngine, ShipEngineAPI, ShipEngineContext, ShipmentsAPI, ShippingRulesAPI, ThemesAPI, WarehousesAPI, WebhooksAPI, alchemy, alchemy as default, delay, getEmotionCache, getEndUserIpAddress, isCodedError, isCodedErrors, isDataCodedErrors, isInvalidTokenError, logger, onError, parseError, retryUntil, useAddFunds, useAddInsuranceFunds, useAddSandboxCarriers, useAlchemy, useCalculateRates, useCarrierConnectionsServicesList, useConnectCarrier, useConnectCarrierAccount, useCreateAccountImage, useCreateFundingSource, useCreateLabel, useCreateRateCard, useCreateSalesOrderShipment, useCreateSandboxSeller, useCreateSellerApiKey, useCreateShipment, useCreateShippingRule, useCreateWarehouse, useCreateWebhook, useDeactivateOrderSource, useDeleteAccountImage, useDeleteCarrier, useDeleteRateCard, useDeleteSellerApiKey, useDeleteShippingRule, useDeleteWarehouse, useDeleteWebhook, useDownloadRateCard, useEditShippingRule, useFundingSourcesAddFunds, useGetAccountBillingPlan, useGetAccountImages, useGetAccountSettings, useGetAutoFundingConfiguration, useGetCarrierById, useGetCarrierConnectionForm, useGetConnectionsCarrierSettings, useGetCountriesByCarrier, useGetCurrenciesByCarrier, useGetFundingSourceById, useGetFundingSourceMetadata, useGetFundingSourceTransactions, useGetHereToken, useGetInsuranceAccount, useGetInsuranceFundingSourceAcceptedTerms, useGetLabel, useGetPackageRatingGroupByCarrier, useGetRateCardById, useGetSalesOrder, useGetSalesOrderShipment, useGetServicePoint, useGetServicesByCarrier, useGetShipment, useGetShipmentByExternalId, useGetShipmentRates, useGetShippingRuleById, useGetShippingRuleConditionsOptions, useGetThemeById, useGetZonesByCarrier, useI18n, useListCarrierConnections, useListCarriers, useListCustomPackageTypes, useListFundingSources, useListLabels, useListOrderSources, useListOrderSourcesConnections, useListRateCards, useListSalesOrderShipments, useListSalesOrders, useListSandboxSellerIds, useListSellerApiKeys, useListServicePoints, useListShipments, useListShippingRules, useListWarehouses, useListWebhooks, useLoadIcons, useNotifySalesOrderShipped, useParseAddress, usePublishRateCard, useRatesEstimate, useRefreshOrderSource, useRefreshOrderSourceAsync, useRegisterCarrier, useShipEngine, useUpdateAccountBillingPlan, useUpdateAccountImage, useUpdateAccountSettings, useUpdateAutoFunding, useUpdateConnectionsCarrierSettings, useUpdateFundingSource, useUpdateRateCard, useUpdateSalesOrderShipment, useUpdateWarehouse, useUpdateWebhook, useUploadRateCard, useValidateAddresses, useVoidLabel };
|
|
38710
|
+
export { AccountSettingsAPI, AddressesAPI, AlchemyContext, AlchemyProvider, AlchemyTestProvider, CarriersAPI, CodedError, ConfirmationType, ConnectionsAPI, CreditCardVendor, Currency, CustomPackagesAPI, CustomsContentsType, CustomsNonDeliveryType, Element, ErrorBoundary, FundingSourcesAPI, InsuranceAPI, InsuranceProviderType, LabelsAPI, MetadataCapability, MetadataRequirement, MetadataSatisfyingFormTypes, MovementIndicator, OrderSourcesAPI, RateCardStatus, RateCardsAPI, RatesAPI, types as SE, SalesOrderShipmentsAPI, SalesOrdersAPI, SellersAPI, ServicePointsAPI, ShipEngine, ShipEngineAPI, ShipEngineContext, ShipmentsAPI, ShippingRulesAPI, ThemesAPI, WarehousesAPI, WebhooksAPI, alchemy, alchemy as default, delay, getEmotionCache, getEndUserIpAddress, isCodedError, isCodedErrors, isDataCodedErrors, isInvalidTokenError, logger, onError, parseError, retryUntil, useAddFunds, useAddInsuranceFunds, useAddSandboxCarriers, useAlchemy, useCalculateRates, useCancelShipment, useCarrierConnectionsServicesList, useConnectCarrier, useConnectCarrierAccount, useCreateAccountImage, useCreateFundingSource, useCreateLabel, useCreateRateCard, useCreateSalesOrderShipment, useCreateSandboxSeller, useCreateSellerApiKey, useCreateShipment, useCreateShippingRule, useCreateWarehouse, useCreateWebhook, useDeactivateOrderSource, useDeleteAccountImage, useDeleteCarrier, useDeleteRateCard, useDeleteSellerApiKey, useDeleteShippingRule, useDeleteWarehouse, useDeleteWebhook, useDownloadRateCard, useEditShippingRule, useFundingSourcesAddFunds, useGetAccountBillingPlan, useGetAccountImages, useGetAccountSettings, useGetAutoFundingConfiguration, useGetCarrierById, useGetCarrierConnectionForm, useGetConnectionsCarrierSettings, useGetCountriesByCarrier, useGetCurrenciesByCarrier, useGetFundingSourceById, useGetFundingSourceMetadata, useGetFundingSourceTransactions, useGetHereToken, useGetInsuranceAccount, useGetInsuranceFundingSourceAcceptedTerms, useGetLabel, useGetPackageRatingGroupByCarrier, useGetRateCardById, useGetSalesOrder, useGetSalesOrderShipment, useGetServicePoint, useGetServicesByCarrier, useGetShipment, useGetShipmentByExternalId, useGetShipmentRates, useGetShippingRuleById, useGetShippingRuleConditionsOptions, useGetThemeById, useGetZonesByCarrier, useI18n, useListCarrierConnections, useListCarriers, useListCustomPackageTypes, useListFundingSources, useListLabels, useListOrderSources, useListOrderSourcesConnections, useListRateCards, useListSalesOrderShipments, useListSalesOrders, useListSandboxSellerIds, useListSellerApiKeys, useListServicePoints, useListShipments, useListShippingRules, useListWarehouses, useListWebhooks, useLoadIcons, useNotifySalesOrderShipped, useParseAddress, usePublishRateCard, useRatesEstimate, useRefreshOrderSource, useRefreshOrderSourceAsync, useRegisterCarrier, useShipEngine, useUpdateAccountBillingPlan, useUpdateAccountImage, useUpdateAccountSettings, useUpdateAutoFunding, useUpdateConnectionsCarrierSettings, useUpdateFundingSource, useUpdateRateCard, useUpdateSalesOrderShipment, useUpdateWarehouse, useUpdateWebhook, useUploadRateCard, useValidateAddresses, useVoidLabel };
|