@shipengine/alchemy 6.0.14 → 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 +242 -223
- package/index.mjs +242 -223
- 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;
|
|
@@ -13717,33 +13717,33 @@ const getEndUserIpAddress = () => __async$T(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;
|
|
@@ -13793,7 +13793,7 @@ class CarriersAPI {
|
|
|
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
|
});
|
|
@@ -16234,19 +16234,19 @@ 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
|
};
|
|
@@ -16294,7 +16294,7 @@ class FundingSourcesAPI {
|
|
|
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
|
});
|
|
@@ -16326,7 +16326,7 @@ class FundingSourcesAPI {
|
|
|
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
|
});
|
|
@@ -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
|
}
|
|
@@ -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
|
|
@@ -34229,25 +34229,25 @@ class WebhooksAPI {
|
|
|
34229
34229
|
}
|
|
34230
34230
|
}
|
|
34231
34231
|
|
|
34232
|
-
var __defProp$
|
|
34233
|
-
var __defProps$
|
|
34234
|
-
var __getOwnPropDescs$
|
|
34235
|
-
var __getOwnPropSymbols$
|
|
34236
|
-
var __hasOwnProp$
|
|
34237
|
-
var __propIsEnum$
|
|
34238
|
-
var __defNormalProp$
|
|
34239
|
-
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) => {
|
|
34240
34240
|
for (var prop in b || (b = {}))
|
|
34241
|
-
if (__hasOwnProp$
|
|
34242
|
-
__defNormalProp$
|
|
34243
|
-
if (__getOwnPropSymbols$
|
|
34244
|
-
for (var prop of __getOwnPropSymbols$
|
|
34245
|
-
if (__propIsEnum$
|
|
34246
|
-
__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]);
|
|
34247
34247
|
}
|
|
34248
34248
|
return a;
|
|
34249
34249
|
};
|
|
34250
|
-
var __spreadProps$
|
|
34250
|
+
var __spreadProps$i = (a, b) => __defProps$i(a, __getOwnPropDescs$i(b));
|
|
34251
34251
|
var __async$N = (__this, __arguments, generator) => {
|
|
34252
34252
|
return new Promise((resolve, reject) => {
|
|
34253
34253
|
var fulfilled = (value) => {
|
|
@@ -34271,7 +34271,7 @@ var __async$N = (__this, __arguments, generator) => {
|
|
|
34271
34271
|
const logger$1 = E({
|
|
34272
34272
|
level: process.env.NODE_ENV === "production" ? "fatal" : "info",
|
|
34273
34273
|
name: "shipengine-api",
|
|
34274
|
-
serializers: __spreadProps$
|
|
34274
|
+
serializers: __spreadProps$i(__spreadValues$l({}, k), {
|
|
34275
34275
|
req: (req) => ({
|
|
34276
34276
|
headers: req.headers,
|
|
34277
34277
|
method: req.method,
|
|
@@ -34296,7 +34296,7 @@ class ShipEngineAPI {
|
|
|
34296
34296
|
this.getSandboxToken = getSandboxToken;
|
|
34297
34297
|
const client = axios.create({
|
|
34298
34298
|
baseURL,
|
|
34299
|
-
headers: __spreadProps$
|
|
34299
|
+
headers: __spreadProps$i(__spreadValues$l({}, headers), {
|
|
34300
34300
|
"Content-Type": "application/json"
|
|
34301
34301
|
}),
|
|
34302
34302
|
paramsSerializer: (params) => lib.stringify(humpsExports.decamelizeKeys(params), { arrayFormat: "brackets" }),
|
|
@@ -34675,25 +34675,25 @@ const delay = (ms) => new Promise((resolve) => {
|
|
|
34675
34675
|
|
|
34676
34676
|
const onError = (_errors) => _default();
|
|
34677
34677
|
|
|
34678
|
-
var __defProp$
|
|
34679
|
-
var __defProps$
|
|
34680
|
-
var __getOwnPropDescs$
|
|
34681
|
-
var __getOwnPropSymbols$
|
|
34682
|
-
var __hasOwnProp$
|
|
34683
|
-
var __propIsEnum$
|
|
34684
|
-
var __defNormalProp$
|
|
34685
|
-
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) => {
|
|
34686
34686
|
for (var prop in b || (b = {}))
|
|
34687
|
-
if (__hasOwnProp$
|
|
34688
|
-
__defNormalProp$
|
|
34689
|
-
if (__getOwnPropSymbols$
|
|
34690
|
-
for (var prop of __getOwnPropSymbols$
|
|
34691
|
-
if (__propIsEnum$
|
|
34692
|
-
__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]);
|
|
34693
34693
|
}
|
|
34694
34694
|
return a;
|
|
34695
34695
|
};
|
|
34696
|
-
var __spreadProps$
|
|
34696
|
+
var __spreadProps$h = (a, b) => __defProps$h(a, __getOwnPropDescs$h(b));
|
|
34697
34697
|
const streams = [];
|
|
34698
34698
|
if (process.env.NODE_ENV === "production") {
|
|
34699
34699
|
streams.push({
|
|
@@ -34702,7 +34702,7 @@ if (process.env.NODE_ENV === "production") {
|
|
|
34702
34702
|
}
|
|
34703
34703
|
const logger = E({
|
|
34704
34704
|
name: "shipengine",
|
|
34705
|
-
serializers: __spreadProps$
|
|
34705
|
+
serializers: __spreadProps$h(__spreadValues$k({}, k), {
|
|
34706
34706
|
req: (req) => ({
|
|
34707
34707
|
headers: req.headers,
|
|
34708
34708
|
method: req.method,
|
|
@@ -35103,41 +35103,41 @@ const useGetServicesByCarrier = (carrierId) => {
|
|
|
35103
35103
|
});
|
|
35104
35104
|
};
|
|
35105
35105
|
|
|
35106
|
-
var __defProp$
|
|
35107
|
-
var __defProps$
|
|
35108
|
-
var __getOwnPropDescs$
|
|
35109
|
-
var __getOwnPropSymbols$
|
|
35110
|
-
var __hasOwnProp$
|
|
35111
|
-
var __propIsEnum$
|
|
35112
|
-
var __defNormalProp$
|
|
35113
|
-
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) => {
|
|
35114
35114
|
for (var prop in b || (b = {}))
|
|
35115
|
-
if (__hasOwnProp$
|
|
35116
|
-
__defNormalProp$
|
|
35117
|
-
if (__getOwnPropSymbols$
|
|
35118
|
-
for (var prop of __getOwnPropSymbols$
|
|
35119
|
-
if (__propIsEnum$
|
|
35120
|
-
__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]);
|
|
35121
35121
|
}
|
|
35122
35122
|
return a;
|
|
35123
35123
|
};
|
|
35124
|
-
var __spreadProps$
|
|
35124
|
+
var __spreadProps$g = (a, b) => __defProps$g(a, __getOwnPropDescs$g(b));
|
|
35125
35125
|
var __objRest$k = (source, exclude) => {
|
|
35126
35126
|
var target = {};
|
|
35127
35127
|
for (var prop in source)
|
|
35128
|
-
if (__hasOwnProp$
|
|
35128
|
+
if (__hasOwnProp$t.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
35129
35129
|
target[prop] = source[prop];
|
|
35130
|
-
if (source != null && __getOwnPropSymbols$
|
|
35131
|
-
for (var prop of __getOwnPropSymbols$
|
|
35132
|
-
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))
|
|
35133
35133
|
target[prop] = source[prop];
|
|
35134
35134
|
}
|
|
35135
35135
|
return target;
|
|
35136
35136
|
};
|
|
35137
35137
|
const useListCarriers = (params) => {
|
|
35138
35138
|
const { client } = useShipEngine();
|
|
35139
|
-
const _a = __spreadValues$
|
|
35140
|
-
return useQuery(__spreadProps$
|
|
35139
|
+
const _a = __spreadValues$j({}, params), { queryFnParams } = _a, rest = __objRest$k(_a, ["queryFnParams"]);
|
|
35140
|
+
return useQuery(__spreadProps$g(__spreadValues$j({}, rest), {
|
|
35141
35141
|
onError,
|
|
35142
35142
|
queryFn: () => client.carriers.list(queryFnParams),
|
|
35143
35143
|
queryKey: ["useListCarriers", queryFnParams],
|
|
@@ -35145,17 +35145,17 @@ const useListCarriers = (params) => {
|
|
|
35145
35145
|
}));
|
|
35146
35146
|
};
|
|
35147
35147
|
|
|
35148
|
-
var __getOwnPropSymbols$
|
|
35149
|
-
var __hasOwnProp$
|
|
35150
|
-
var __propIsEnum$
|
|
35148
|
+
var __getOwnPropSymbols$s = Object.getOwnPropertySymbols;
|
|
35149
|
+
var __hasOwnProp$s = Object.prototype.hasOwnProperty;
|
|
35150
|
+
var __propIsEnum$s = Object.prototype.propertyIsEnumerable;
|
|
35151
35151
|
var __objRest$j = (source, exclude) => {
|
|
35152
35152
|
var target = {};
|
|
35153
35153
|
for (var prop in source)
|
|
35154
|
-
if (__hasOwnProp$
|
|
35154
|
+
if (__hasOwnProp$s.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
35155
35155
|
target[prop] = source[prop];
|
|
35156
|
-
if (source != null && __getOwnPropSymbols$
|
|
35157
|
-
for (var prop of __getOwnPropSymbols$
|
|
35158
|
-
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))
|
|
35159
35159
|
target[prop] = source[prop];
|
|
35160
35160
|
}
|
|
35161
35161
|
return target;
|
|
@@ -35246,17 +35246,17 @@ const useDeleteCarrier = () => {
|
|
|
35246
35246
|
});
|
|
35247
35247
|
};
|
|
35248
35248
|
|
|
35249
|
-
var __getOwnPropSymbols$
|
|
35250
|
-
var __hasOwnProp$
|
|
35251
|
-
var __propIsEnum$
|
|
35249
|
+
var __getOwnPropSymbols$r = Object.getOwnPropertySymbols;
|
|
35250
|
+
var __hasOwnProp$r = Object.prototype.hasOwnProperty;
|
|
35251
|
+
var __propIsEnum$r = Object.prototype.propertyIsEnumerable;
|
|
35252
35252
|
var __objRest$i = (source, exclude) => {
|
|
35253
35253
|
var target = {};
|
|
35254
35254
|
for (var prop in source)
|
|
35255
|
-
if (__hasOwnProp$
|
|
35255
|
+
if (__hasOwnProp$r.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
35256
35256
|
target[prop] = source[prop];
|
|
35257
|
-
if (source != null && __getOwnPropSymbols$
|
|
35258
|
-
for (var prop of __getOwnPropSymbols$
|
|
35259
|
-
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))
|
|
35260
35260
|
target[prop] = source[prop];
|
|
35261
35261
|
}
|
|
35262
35262
|
return target;
|
|
@@ -35273,17 +35273,17 @@ const useGetCarrierConnectionForm = (_params) => {
|
|
|
35273
35273
|
});
|
|
35274
35274
|
};
|
|
35275
35275
|
|
|
35276
|
-
var __getOwnPropSymbols$
|
|
35277
|
-
var __hasOwnProp$
|
|
35278
|
-
var __propIsEnum$
|
|
35276
|
+
var __getOwnPropSymbols$q = Object.getOwnPropertySymbols;
|
|
35277
|
+
var __hasOwnProp$q = Object.prototype.hasOwnProperty;
|
|
35278
|
+
var __propIsEnum$q = Object.prototype.propertyIsEnumerable;
|
|
35279
35279
|
var __objRest$h = (source, exclude) => {
|
|
35280
35280
|
var target = {};
|
|
35281
35281
|
for (var prop in source)
|
|
35282
|
-
if (__hasOwnProp$
|
|
35282
|
+
if (__hasOwnProp$q.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
35283
35283
|
target[prop] = source[prop];
|
|
35284
|
-
if (source != null && __getOwnPropSymbols$
|
|
35285
|
-
for (var prop of __getOwnPropSymbols$
|
|
35286
|
-
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))
|
|
35287
35287
|
target[prop] = source[prop];
|
|
35288
35288
|
}
|
|
35289
35289
|
return target;
|
|
@@ -35343,33 +35343,33 @@ const useCarrierConnectionsServicesList = (carrierCode) => {
|
|
|
35343
35343
|
});
|
|
35344
35344
|
};
|
|
35345
35345
|
|
|
35346
|
-
var __defProp$
|
|
35347
|
-
var __defProps$
|
|
35348
|
-
var __getOwnPropDescs$
|
|
35349
|
-
var __getOwnPropSymbols$
|
|
35350
|
-
var __hasOwnProp$
|
|
35351
|
-
var __propIsEnum$
|
|
35352
|
-
var __defNormalProp$
|
|
35353
|
-
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) => {
|
|
35354
35354
|
for (var prop in b || (b = {}))
|
|
35355
|
-
if (__hasOwnProp$
|
|
35356
|
-
__defNormalProp$
|
|
35357
|
-
if (__getOwnPropSymbols$
|
|
35358
|
-
for (var prop of __getOwnPropSymbols$
|
|
35359
|
-
if (__propIsEnum$
|
|
35360
|
-
__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]);
|
|
35361
35361
|
}
|
|
35362
35362
|
return a;
|
|
35363
35363
|
};
|
|
35364
|
-
var __spreadProps$
|
|
35364
|
+
var __spreadProps$f = (a, b) => __defProps$f(a, __getOwnPropDescs$f(b));
|
|
35365
35365
|
var __objRest$g = (source, exclude) => {
|
|
35366
35366
|
var target = {};
|
|
35367
35367
|
for (var prop in source)
|
|
35368
|
-
if (__hasOwnProp$
|
|
35368
|
+
if (__hasOwnProp$p.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
35369
35369
|
target[prop] = source[prop];
|
|
35370
|
-
if (source != null && __getOwnPropSymbols$
|
|
35371
|
-
for (var prop of __getOwnPropSymbols$
|
|
35372
|
-
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))
|
|
35373
35373
|
target[prop] = source[prop];
|
|
35374
35374
|
}
|
|
35375
35375
|
return target;
|
|
@@ -35382,7 +35382,7 @@ const useGetConnectionsCarrierSettings = (_a) => {
|
|
|
35382
35382
|
]);
|
|
35383
35383
|
const { client } = useShipEngine();
|
|
35384
35384
|
const { carrierName, carrierId } = queryFnParams;
|
|
35385
|
-
return useQuery(__spreadProps$
|
|
35385
|
+
return useQuery(__spreadProps$f(__spreadValues$i({}, params), {
|
|
35386
35386
|
onError,
|
|
35387
35387
|
queryFn: () => client.connections.getCarrierSettings(carrierName, carrierId),
|
|
35388
35388
|
queryKey: ["useGetConnectionsCarrierSettings", carrierName, carrierId],
|
|
@@ -35390,25 +35390,25 @@ const useGetConnectionsCarrierSettings = (_a) => {
|
|
|
35390
35390
|
}));
|
|
35391
35391
|
};
|
|
35392
35392
|
|
|
35393
|
-
var __defProp$
|
|
35394
|
-
var __defProps$
|
|
35395
|
-
var __getOwnPropDescs$
|
|
35396
|
-
var __getOwnPropSymbols$
|
|
35397
|
-
var __hasOwnProp$
|
|
35398
|
-
var __propIsEnum$
|
|
35399
|
-
var __defNormalProp$
|
|
35400
|
-
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) => {
|
|
35401
35401
|
for (var prop in b || (b = {}))
|
|
35402
|
-
if (__hasOwnProp$
|
|
35403
|
-
__defNormalProp$
|
|
35404
|
-
if (__getOwnPropSymbols$
|
|
35405
|
-
for (var prop of __getOwnPropSymbols$
|
|
35406
|
-
if (__propIsEnum$
|
|
35407
|
-
__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]);
|
|
35408
35408
|
}
|
|
35409
35409
|
return a;
|
|
35410
35410
|
};
|
|
35411
|
-
var __spreadProps$
|
|
35411
|
+
var __spreadProps$e = (a, b) => __defProps$e(a, __getOwnPropDescs$e(b));
|
|
35412
35412
|
var __async$B = (__this, __arguments, generator) => {
|
|
35413
35413
|
return new Promise((resolve, reject) => {
|
|
35414
35414
|
var fulfilled = (value) => {
|
|
@@ -35431,7 +35431,7 @@ var __async$B = (__this, __arguments, generator) => {
|
|
|
35431
35431
|
};
|
|
35432
35432
|
const useUpdateConnectionsCarrierSettings = (params) => {
|
|
35433
35433
|
const { client } = useShipEngine();
|
|
35434
|
-
return useMutation(__spreadProps$
|
|
35434
|
+
return useMutation(__spreadProps$e(__spreadValues$h({}, params), {
|
|
35435
35435
|
mutationFn: (_0) => __async$B(void 0, [_0], function* ({
|
|
35436
35436
|
carrierName,
|
|
35437
35437
|
carrierId,
|
|
@@ -35662,17 +35662,17 @@ const useGetInsuranceAccount = (insuranceProvider) => {
|
|
|
35662
35662
|
});
|
|
35663
35663
|
};
|
|
35664
35664
|
|
|
35665
|
-
var __getOwnPropSymbols$
|
|
35666
|
-
var __hasOwnProp$
|
|
35667
|
-
var __propIsEnum$
|
|
35665
|
+
var __getOwnPropSymbols$n = Object.getOwnPropertySymbols;
|
|
35666
|
+
var __hasOwnProp$n = Object.prototype.hasOwnProperty;
|
|
35667
|
+
var __propIsEnum$n = Object.prototype.propertyIsEnumerable;
|
|
35668
35668
|
var __objRest$f = (source, exclude) => {
|
|
35669
35669
|
var target = {};
|
|
35670
35670
|
for (var prop in source)
|
|
35671
|
-
if (__hasOwnProp$
|
|
35671
|
+
if (__hasOwnProp$n.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
35672
35672
|
target[prop] = source[prop];
|
|
35673
|
-
if (source != null && __getOwnPropSymbols$
|
|
35674
|
-
for (var prop of __getOwnPropSymbols$
|
|
35675
|
-
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))
|
|
35676
35676
|
target[prop] = source[prop];
|
|
35677
35677
|
}
|
|
35678
35678
|
return target;
|
|
@@ -35710,17 +35710,17 @@ const useAddInsuranceFunds = () => {
|
|
|
35710
35710
|
});
|
|
35711
35711
|
};
|
|
35712
35712
|
|
|
35713
|
-
var __getOwnPropSymbols$
|
|
35714
|
-
var __hasOwnProp$
|
|
35715
|
-
var __propIsEnum$
|
|
35713
|
+
var __getOwnPropSymbols$m = Object.getOwnPropertySymbols;
|
|
35714
|
+
var __hasOwnProp$m = Object.prototype.hasOwnProperty;
|
|
35715
|
+
var __propIsEnum$m = Object.prototype.propertyIsEnumerable;
|
|
35716
35716
|
var __objRest$e = (source, exclude) => {
|
|
35717
35717
|
var target = {};
|
|
35718
35718
|
for (var prop in source)
|
|
35719
|
-
if (__hasOwnProp$
|
|
35719
|
+
if (__hasOwnProp$m.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
35720
35720
|
target[prop] = source[prop];
|
|
35721
|
-
if (source != null && __getOwnPropSymbols$
|
|
35722
|
-
for (var prop of __getOwnPropSymbols$
|
|
35723
|
-
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))
|
|
35724
35724
|
target[prop] = source[prop];
|
|
35725
35725
|
}
|
|
35726
35726
|
return target;
|
|
@@ -35773,41 +35773,41 @@ const useGetLabel = (labelId) => {
|
|
|
35773
35773
|
});
|
|
35774
35774
|
};
|
|
35775
35775
|
|
|
35776
|
-
var __defProp$
|
|
35777
|
-
var __defProps$
|
|
35778
|
-
var __getOwnPropDescs$
|
|
35779
|
-
var __getOwnPropSymbols$
|
|
35780
|
-
var __hasOwnProp$
|
|
35781
|
-
var __propIsEnum$
|
|
35782
|
-
var __defNormalProp$
|
|
35783
|
-
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) => {
|
|
35784
35784
|
for (var prop in b || (b = {}))
|
|
35785
|
-
if (__hasOwnProp$
|
|
35786
|
-
__defNormalProp$
|
|
35787
|
-
if (__getOwnPropSymbols$
|
|
35788
|
-
for (var prop of __getOwnPropSymbols$
|
|
35789
|
-
if (__propIsEnum$
|
|
35790
|
-
__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]);
|
|
35791
35791
|
}
|
|
35792
35792
|
return a;
|
|
35793
35793
|
};
|
|
35794
|
-
var __spreadProps$
|
|
35794
|
+
var __spreadProps$d = (a, b) => __defProps$d(a, __getOwnPropDescs$d(b));
|
|
35795
35795
|
var __objRest$d = (source, exclude) => {
|
|
35796
35796
|
var target = {};
|
|
35797
35797
|
for (var prop in source)
|
|
35798
|
-
if (__hasOwnProp$
|
|
35798
|
+
if (__hasOwnProp$l.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
35799
35799
|
target[prop] = source[prop];
|
|
35800
|
-
if (source != null && __getOwnPropSymbols$
|
|
35801
|
-
for (var prop of __getOwnPropSymbols$
|
|
35802
|
-
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))
|
|
35803
35803
|
target[prop] = source[prop];
|
|
35804
35804
|
}
|
|
35805
35805
|
return target;
|
|
35806
35806
|
};
|
|
35807
35807
|
const useListLabels = (params) => {
|
|
35808
35808
|
const { client } = useShipEngine();
|
|
35809
|
-
const _a = __spreadValues$
|
|
35810
|
-
return useQuery(__spreadProps$
|
|
35809
|
+
const _a = __spreadValues$g({}, params), { queryFnParams } = _a, rest = __objRest$d(_a, ["queryFnParams"]);
|
|
35810
|
+
return useQuery(__spreadProps$d(__spreadValues$g({}, rest), {
|
|
35811
35811
|
onError,
|
|
35812
35812
|
queryFn: () => client.labels.list(queryFnParams),
|
|
35813
35813
|
queryKey: ["useListLabels", params],
|
|
@@ -35847,14 +35847,33 @@ const useVoidLabel = () => {
|
|
|
35847
35847
|
});
|
|
35848
35848
|
};
|
|
35849
35849
|
|
|
35850
|
-
|
|
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) => {
|
|
35851
35870
|
const { client } = useShipEngine();
|
|
35852
|
-
return useQuery({
|
|
35871
|
+
return useQuery(__spreadProps$c(__spreadValues$f({}, params), {
|
|
35853
35872
|
onError,
|
|
35854
35873
|
queryFn: () => client.orderSources.list(),
|
|
35855
35874
|
queryKey: ["useListOrderSources"],
|
|
35856
35875
|
select: (result) => result.data.orderSources
|
|
35857
|
-
});
|
|
35876
|
+
}));
|
|
35858
35877
|
};
|
|
35859
35878
|
|
|
35860
35879
|
var __async$t = (__this, __arguments, generator) => {
|