@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.js
CHANGED
|
@@ -10812,17 +10812,17 @@ var AccountBillingPlanChangeType = /* @__PURE__ */ ((AccountBillingPlanChangeTyp
|
|
|
10812
10812
|
return AccountBillingPlanChangeType2;
|
|
10813
10813
|
})(AccountBillingPlanChangeType || {});
|
|
10814
10814
|
|
|
10815
|
-
var __getOwnPropSymbols$
|
|
10816
|
-
var __hasOwnProp$
|
|
10817
|
-
var __propIsEnum$
|
|
10815
|
+
var __getOwnPropSymbols$B = Object.getOwnPropertySymbols;
|
|
10816
|
+
var __hasOwnProp$B = Object.prototype.hasOwnProperty;
|
|
10817
|
+
var __propIsEnum$B = Object.prototype.propertyIsEnumerable;
|
|
10818
10818
|
var __objRest$n = (source, exclude) => {
|
|
10819
10819
|
var target = {};
|
|
10820
10820
|
for (var prop in source)
|
|
10821
|
-
if (__hasOwnProp$
|
|
10821
|
+
if (__hasOwnProp$B.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
10822
10822
|
target[prop] = source[prop];
|
|
10823
|
-
if (source != null && __getOwnPropSymbols$
|
|
10824
|
-
for (var prop of __getOwnPropSymbols$
|
|
10825
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
10823
|
+
if (source != null && __getOwnPropSymbols$B)
|
|
10824
|
+
for (var prop of __getOwnPropSymbols$B(source)) {
|
|
10825
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$B.call(source, prop))
|
|
10826
10826
|
target[prop] = source[prop];
|
|
10827
10827
|
}
|
|
10828
10828
|
return target;
|
|
@@ -10955,17 +10955,17 @@ const types = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
|
|
|
10955
10955
|
RateCardStatus
|
|
10956
10956
|
}, Symbol.toStringTag, { value: 'Module' }));
|
|
10957
10957
|
|
|
10958
|
-
var __getOwnPropSymbols$
|
|
10959
|
-
var __hasOwnProp$
|
|
10960
|
-
var __propIsEnum$
|
|
10958
|
+
var __getOwnPropSymbols$A = Object.getOwnPropertySymbols;
|
|
10959
|
+
var __hasOwnProp$A = Object.prototype.hasOwnProperty;
|
|
10960
|
+
var __propIsEnum$A = Object.prototype.propertyIsEnumerable;
|
|
10961
10961
|
var __objRest$m = (source, exclude) => {
|
|
10962
10962
|
var target = {};
|
|
10963
10963
|
for (var prop in source)
|
|
10964
|
-
if (__hasOwnProp$
|
|
10964
|
+
if (__hasOwnProp$A.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
10965
10965
|
target[prop] = source[prop];
|
|
10966
|
-
if (source != null && __getOwnPropSymbols$
|
|
10967
|
-
for (var prop of __getOwnPropSymbols$
|
|
10968
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
10966
|
+
if (source != null && __getOwnPropSymbols$A)
|
|
10967
|
+
for (var prop of __getOwnPropSymbols$A(source)) {
|
|
10968
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$A.call(source, prop))
|
|
10969
10969
|
target[prop] = source[prop];
|
|
10970
10970
|
}
|
|
10971
10971
|
return target;
|
|
@@ -13739,33 +13739,33 @@ const getEndUserIpAddress = () => __async$T(void 0, null, function* () {
|
|
|
13739
13739
|
}
|
|
13740
13740
|
});
|
|
13741
13741
|
|
|
13742
|
-
var __defProp$
|
|
13743
|
-
var __defProps$
|
|
13744
|
-
var __getOwnPropDescs$
|
|
13745
|
-
var __getOwnPropSymbols$
|
|
13746
|
-
var __hasOwnProp$
|
|
13747
|
-
var __propIsEnum$
|
|
13748
|
-
var __defNormalProp$
|
|
13749
|
-
var __spreadValues$
|
|
13742
|
+
var __defProp$p = Object.defineProperty;
|
|
13743
|
+
var __defProps$j = Object.defineProperties;
|
|
13744
|
+
var __getOwnPropDescs$j = Object.getOwnPropertyDescriptors;
|
|
13745
|
+
var __getOwnPropSymbols$z = Object.getOwnPropertySymbols;
|
|
13746
|
+
var __hasOwnProp$z = Object.prototype.hasOwnProperty;
|
|
13747
|
+
var __propIsEnum$z = Object.prototype.propertyIsEnumerable;
|
|
13748
|
+
var __defNormalProp$p = (obj, key, value) => key in obj ? __defProp$p(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
13749
|
+
var __spreadValues$p = (a, b) => {
|
|
13750
13750
|
for (var prop in b || (b = {}))
|
|
13751
|
-
if (__hasOwnProp$
|
|
13752
|
-
__defNormalProp$
|
|
13753
|
-
if (__getOwnPropSymbols$
|
|
13754
|
-
for (var prop of __getOwnPropSymbols$
|
|
13755
|
-
if (__propIsEnum$
|
|
13756
|
-
__defNormalProp$
|
|
13751
|
+
if (__hasOwnProp$z.call(b, prop))
|
|
13752
|
+
__defNormalProp$p(a, prop, b[prop]);
|
|
13753
|
+
if (__getOwnPropSymbols$z)
|
|
13754
|
+
for (var prop of __getOwnPropSymbols$z(b)) {
|
|
13755
|
+
if (__propIsEnum$z.call(b, prop))
|
|
13756
|
+
__defNormalProp$p(a, prop, b[prop]);
|
|
13757
13757
|
}
|
|
13758
13758
|
return a;
|
|
13759
13759
|
};
|
|
13760
|
-
var __spreadProps$
|
|
13760
|
+
var __spreadProps$j = (a, b) => __defProps$j(a, __getOwnPropDescs$j(b));
|
|
13761
13761
|
var __objRest$l = (source, exclude) => {
|
|
13762
13762
|
var target = {};
|
|
13763
13763
|
for (var prop in source)
|
|
13764
|
-
if (__hasOwnProp$
|
|
13764
|
+
if (__hasOwnProp$z.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
13765
13765
|
target[prop] = source[prop];
|
|
13766
|
-
if (source != null && __getOwnPropSymbols$
|
|
13767
|
-
for (var prop of __getOwnPropSymbols$
|
|
13768
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
13766
|
+
if (source != null && __getOwnPropSymbols$z)
|
|
13767
|
+
for (var prop of __getOwnPropSymbols$z(source)) {
|
|
13768
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$z.call(source, prop))
|
|
13769
13769
|
target[prop] = source[prop];
|
|
13770
13770
|
}
|
|
13771
13771
|
return target;
|
|
@@ -13815,7 +13815,7 @@ class CarriersAPI {
|
|
|
13815
13815
|
const endUserIpAddress = yield getEndUserIpAddress();
|
|
13816
13816
|
if (!endUserIpAddress)
|
|
13817
13817
|
return Promise.reject([new CodedError("Unable to get IP address")]);
|
|
13818
|
-
return yield this.client.post(`/v1/registration/${carrierCode}`, __spreadProps$
|
|
13818
|
+
return yield this.client.post(`/v1/registration/${carrierCode}`, __spreadProps$j(__spreadValues$p({}, connection), {
|
|
13819
13819
|
endUserIpAddress
|
|
13820
13820
|
}));
|
|
13821
13821
|
});
|
|
@@ -16256,19 +16256,19 @@ class CustomPackagesAPI {
|
|
|
16256
16256
|
}
|
|
16257
16257
|
}
|
|
16258
16258
|
|
|
16259
|
-
var __defProp$
|
|
16260
|
-
var __getOwnPropSymbols$
|
|
16261
|
-
var __hasOwnProp$
|
|
16262
|
-
var __propIsEnum$
|
|
16263
|
-
var __defNormalProp$
|
|
16264
|
-
var __spreadValues$
|
|
16259
|
+
var __defProp$o = Object.defineProperty;
|
|
16260
|
+
var __getOwnPropSymbols$y = Object.getOwnPropertySymbols;
|
|
16261
|
+
var __hasOwnProp$y = Object.prototype.hasOwnProperty;
|
|
16262
|
+
var __propIsEnum$y = Object.prototype.propertyIsEnumerable;
|
|
16263
|
+
var __defNormalProp$o = (obj, key, value) => key in obj ? __defProp$o(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
16264
|
+
var __spreadValues$o = (a, b) => {
|
|
16265
16265
|
for (var prop in b || (b = {}))
|
|
16266
|
-
if (__hasOwnProp$
|
|
16267
|
-
__defNormalProp$
|
|
16268
|
-
if (__getOwnPropSymbols$
|
|
16269
|
-
for (var prop of __getOwnPropSymbols$
|
|
16270
|
-
if (__propIsEnum$
|
|
16271
|
-
__defNormalProp$
|
|
16266
|
+
if (__hasOwnProp$y.call(b, prop))
|
|
16267
|
+
__defNormalProp$o(a, prop, b[prop]);
|
|
16268
|
+
if (__getOwnPropSymbols$y)
|
|
16269
|
+
for (var prop of __getOwnPropSymbols$y(b)) {
|
|
16270
|
+
if (__propIsEnum$y.call(b, prop))
|
|
16271
|
+
__defNormalProp$o(a, prop, b[prop]);
|
|
16272
16272
|
}
|
|
16273
16273
|
return a;
|
|
16274
16274
|
};
|
|
@@ -16316,7 +16316,7 @@ class FundingSourcesAPI {
|
|
|
16316
16316
|
if (!endUserIpAddress) {
|
|
16317
16317
|
return Promise.reject([new CodedError("Unable to get IP address")]);
|
|
16318
16318
|
}
|
|
16319
|
-
return yield this.client.post("/v1/funding_sources", __spreadValues$
|
|
16319
|
+
return yield this.client.post("/v1/funding_sources", __spreadValues$o({
|
|
16320
16320
|
endUserIpAddress
|
|
16321
16321
|
}, createFundingSource));
|
|
16322
16322
|
});
|
|
@@ -16348,7 +16348,7 @@ class FundingSourcesAPI {
|
|
|
16348
16348
|
if (!endUserIpAddress) {
|
|
16349
16349
|
return Promise.reject([new CodedError("Unable to get IP address")]);
|
|
16350
16350
|
}
|
|
16351
|
-
return yield this.client.post("/v1/registration/funding_source", __spreadValues$
|
|
16351
|
+
return yield this.client.post("/v1/registration/funding_source", __spreadValues$o({
|
|
16352
16352
|
endUserIpAddress
|
|
16353
16353
|
}, carrier));
|
|
16354
16354
|
});
|
|
@@ -16561,19 +16561,19 @@ class RateCardsAPI {
|
|
|
16561
16561
|
}
|
|
16562
16562
|
}
|
|
16563
16563
|
|
|
16564
|
-
var __defProp$
|
|
16565
|
-
var __getOwnPropSymbols$
|
|
16566
|
-
var __hasOwnProp$
|
|
16567
|
-
var __propIsEnum$
|
|
16568
|
-
var __defNormalProp$
|
|
16569
|
-
var __spreadValues$
|
|
16564
|
+
var __defProp$n = Object.defineProperty;
|
|
16565
|
+
var __getOwnPropSymbols$x = Object.getOwnPropertySymbols;
|
|
16566
|
+
var __hasOwnProp$x = Object.prototype.hasOwnProperty;
|
|
16567
|
+
var __propIsEnum$x = Object.prototype.propertyIsEnumerable;
|
|
16568
|
+
var __defNormalProp$n = (obj, key, value) => key in obj ? __defProp$n(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
16569
|
+
var __spreadValues$n = (a, b) => {
|
|
16570
16570
|
for (var prop in b || (b = {}))
|
|
16571
|
-
if (__hasOwnProp$
|
|
16572
|
-
__defNormalProp$
|
|
16573
|
-
if (__getOwnPropSymbols$
|
|
16574
|
-
for (var prop of __getOwnPropSymbols$
|
|
16575
|
-
if (__propIsEnum$
|
|
16576
|
-
__defNormalProp$
|
|
16571
|
+
if (__hasOwnProp$x.call(b, prop))
|
|
16572
|
+
__defNormalProp$n(a, prop, b[prop]);
|
|
16573
|
+
if (__getOwnPropSymbols$x)
|
|
16574
|
+
for (var prop of __getOwnPropSymbols$x(b)) {
|
|
16575
|
+
if (__propIsEnum$x.call(b, prop))
|
|
16576
|
+
__defNormalProp$n(a, prop, b[prop]);
|
|
16577
16577
|
}
|
|
16578
16578
|
return a;
|
|
16579
16579
|
};
|
|
@@ -16595,7 +16595,7 @@ class RatesAPI {
|
|
|
16595
16595
|
* method.
|
|
16596
16596
|
*/
|
|
16597
16597
|
this.estimate = (params) => {
|
|
16598
|
-
return this.client.post("/v1/rates/estimate", __spreadValues$
|
|
16598
|
+
return this.client.post("/v1/rates/estimate", __spreadValues$n({}, params));
|
|
16599
16599
|
};
|
|
16600
16600
|
this.client = client;
|
|
16601
16601
|
}
|
|
@@ -16768,19 +16768,19 @@ class SellersAPI {
|
|
|
16768
16768
|
}
|
|
16769
16769
|
}
|
|
16770
16770
|
|
|
16771
|
-
var __defProp$
|
|
16772
|
-
var __getOwnPropSymbols$
|
|
16773
|
-
var __hasOwnProp$
|
|
16774
|
-
var __propIsEnum$
|
|
16775
|
-
var __defNormalProp$
|
|
16776
|
-
var __spreadValues$
|
|
16771
|
+
var __defProp$m = Object.defineProperty;
|
|
16772
|
+
var __getOwnPropSymbols$w = Object.getOwnPropertySymbols;
|
|
16773
|
+
var __hasOwnProp$w = Object.prototype.hasOwnProperty;
|
|
16774
|
+
var __propIsEnum$w = Object.prototype.propertyIsEnumerable;
|
|
16775
|
+
var __defNormalProp$m = (obj, key, value) => key in obj ? __defProp$m(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
16776
|
+
var __spreadValues$m = (a, b) => {
|
|
16777
16777
|
for (var prop in b || (b = {}))
|
|
16778
|
-
if (__hasOwnProp$
|
|
16779
|
-
__defNormalProp$
|
|
16780
|
-
if (__getOwnPropSymbols$
|
|
16781
|
-
for (var prop of __getOwnPropSymbols$
|
|
16782
|
-
if (__propIsEnum$
|
|
16783
|
-
__defNormalProp$
|
|
16778
|
+
if (__hasOwnProp$w.call(b, prop))
|
|
16779
|
+
__defNormalProp$m(a, prop, b[prop]);
|
|
16780
|
+
if (__getOwnPropSymbols$w)
|
|
16781
|
+
for (var prop of __getOwnPropSymbols$w(b)) {
|
|
16782
|
+
if (__propIsEnum$w.call(b, prop))
|
|
16783
|
+
__defNormalProp$m(a, prop, b[prop]);
|
|
16784
16784
|
}
|
|
16785
16785
|
return a;
|
|
16786
16786
|
};
|
|
@@ -16792,7 +16792,7 @@ class ServicePointsAPI {
|
|
|
16792
16792
|
* Either an address, coordinates, or an address query
|
|
16793
16793
|
*/
|
|
16794
16794
|
this.list = (options) => {
|
|
16795
|
-
return this.client.post("/v1/service_points/list", __spreadValues$
|
|
16795
|
+
return this.client.post("/v1/service_points/list", __spreadValues$m({}, options));
|
|
16796
16796
|
};
|
|
16797
16797
|
/**
|
|
16798
16798
|
* Get a specific service point by its carrier code, country code, and id
|
|
@@ -34251,25 +34251,25 @@ class WebhooksAPI {
|
|
|
34251
34251
|
}
|
|
34252
34252
|
}
|
|
34253
34253
|
|
|
34254
|
-
var __defProp$
|
|
34255
|
-
var __defProps$
|
|
34256
|
-
var __getOwnPropDescs$
|
|
34257
|
-
var __getOwnPropSymbols$
|
|
34258
|
-
var __hasOwnProp$
|
|
34259
|
-
var __propIsEnum$
|
|
34260
|
-
var __defNormalProp$
|
|
34261
|
-
var __spreadValues$
|
|
34254
|
+
var __defProp$l = Object.defineProperty;
|
|
34255
|
+
var __defProps$i = Object.defineProperties;
|
|
34256
|
+
var __getOwnPropDescs$i = Object.getOwnPropertyDescriptors;
|
|
34257
|
+
var __getOwnPropSymbols$v = Object.getOwnPropertySymbols;
|
|
34258
|
+
var __hasOwnProp$v = Object.prototype.hasOwnProperty;
|
|
34259
|
+
var __propIsEnum$v = Object.prototype.propertyIsEnumerable;
|
|
34260
|
+
var __defNormalProp$l = (obj, key, value) => key in obj ? __defProp$l(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
34261
|
+
var __spreadValues$l = (a, b) => {
|
|
34262
34262
|
for (var prop in b || (b = {}))
|
|
34263
|
-
if (__hasOwnProp$
|
|
34264
|
-
__defNormalProp$
|
|
34265
|
-
if (__getOwnPropSymbols$
|
|
34266
|
-
for (var prop of __getOwnPropSymbols$
|
|
34267
|
-
if (__propIsEnum$
|
|
34268
|
-
__defNormalProp$
|
|
34263
|
+
if (__hasOwnProp$v.call(b, prop))
|
|
34264
|
+
__defNormalProp$l(a, prop, b[prop]);
|
|
34265
|
+
if (__getOwnPropSymbols$v)
|
|
34266
|
+
for (var prop of __getOwnPropSymbols$v(b)) {
|
|
34267
|
+
if (__propIsEnum$v.call(b, prop))
|
|
34268
|
+
__defNormalProp$l(a, prop, b[prop]);
|
|
34269
34269
|
}
|
|
34270
34270
|
return a;
|
|
34271
34271
|
};
|
|
34272
|
-
var __spreadProps$
|
|
34272
|
+
var __spreadProps$i = (a, b) => __defProps$i(a, __getOwnPropDescs$i(b));
|
|
34273
34273
|
var __async$N = (__this, __arguments, generator) => {
|
|
34274
34274
|
return new Promise((resolve, reject) => {
|
|
34275
34275
|
var fulfilled = (value) => {
|
|
@@ -34293,7 +34293,7 @@ var __async$N = (__this, __arguments, generator) => {
|
|
|
34293
34293
|
const logger$1 = E({
|
|
34294
34294
|
level: process.env.NODE_ENV === "production" ? "fatal" : "info",
|
|
34295
34295
|
name: "shipengine-api",
|
|
34296
|
-
serializers: __spreadProps$
|
|
34296
|
+
serializers: __spreadProps$i(__spreadValues$l({}, k), {
|
|
34297
34297
|
req: (req) => ({
|
|
34298
34298
|
headers: req.headers,
|
|
34299
34299
|
method: req.method,
|
|
@@ -34318,7 +34318,7 @@ class ShipEngineAPI {
|
|
|
34318
34318
|
this.getSandboxToken = getSandboxToken;
|
|
34319
34319
|
const client = axios.create({
|
|
34320
34320
|
baseURL,
|
|
34321
|
-
headers: __spreadProps$
|
|
34321
|
+
headers: __spreadProps$i(__spreadValues$l({}, headers), {
|
|
34322
34322
|
"Content-Type": "application/json"
|
|
34323
34323
|
}),
|
|
34324
34324
|
paramsSerializer: (params) => lib.stringify(humpsExports.decamelizeKeys(params), { arrayFormat: "brackets" }),
|
|
@@ -34697,25 +34697,25 @@ const delay = (ms) => new Promise((resolve) => {
|
|
|
34697
34697
|
|
|
34698
34698
|
const onError = (_errors) => _default();
|
|
34699
34699
|
|
|
34700
|
-
var __defProp$
|
|
34701
|
-
var __defProps$
|
|
34702
|
-
var __getOwnPropDescs$
|
|
34703
|
-
var __getOwnPropSymbols$
|
|
34704
|
-
var __hasOwnProp$
|
|
34705
|
-
var __propIsEnum$
|
|
34706
|
-
var __defNormalProp$
|
|
34707
|
-
var __spreadValues$
|
|
34700
|
+
var __defProp$k = Object.defineProperty;
|
|
34701
|
+
var __defProps$h = Object.defineProperties;
|
|
34702
|
+
var __getOwnPropDescs$h = Object.getOwnPropertyDescriptors;
|
|
34703
|
+
var __getOwnPropSymbols$u = Object.getOwnPropertySymbols;
|
|
34704
|
+
var __hasOwnProp$u = Object.prototype.hasOwnProperty;
|
|
34705
|
+
var __propIsEnum$u = Object.prototype.propertyIsEnumerable;
|
|
34706
|
+
var __defNormalProp$k = (obj, key, value) => key in obj ? __defProp$k(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
34707
|
+
var __spreadValues$k = (a, b) => {
|
|
34708
34708
|
for (var prop in b || (b = {}))
|
|
34709
|
-
if (__hasOwnProp$
|
|
34710
|
-
__defNormalProp$
|
|
34711
|
-
if (__getOwnPropSymbols$
|
|
34712
|
-
for (var prop of __getOwnPropSymbols$
|
|
34713
|
-
if (__propIsEnum$
|
|
34714
|
-
__defNormalProp$
|
|
34709
|
+
if (__hasOwnProp$u.call(b, prop))
|
|
34710
|
+
__defNormalProp$k(a, prop, b[prop]);
|
|
34711
|
+
if (__getOwnPropSymbols$u)
|
|
34712
|
+
for (var prop of __getOwnPropSymbols$u(b)) {
|
|
34713
|
+
if (__propIsEnum$u.call(b, prop))
|
|
34714
|
+
__defNormalProp$k(a, prop, b[prop]);
|
|
34715
34715
|
}
|
|
34716
34716
|
return a;
|
|
34717
34717
|
};
|
|
34718
|
-
var __spreadProps$
|
|
34718
|
+
var __spreadProps$h = (a, b) => __defProps$h(a, __getOwnPropDescs$h(b));
|
|
34719
34719
|
const streams = [];
|
|
34720
34720
|
if (process.env.NODE_ENV === "production") {
|
|
34721
34721
|
streams.push({
|
|
@@ -34724,7 +34724,7 @@ if (process.env.NODE_ENV === "production") {
|
|
|
34724
34724
|
}
|
|
34725
34725
|
const logger = E({
|
|
34726
34726
|
name: "shipengine",
|
|
34727
|
-
serializers: __spreadProps$
|
|
34727
|
+
serializers: __spreadProps$h(__spreadValues$k({}, k), {
|
|
34728
34728
|
req: (req) => ({
|
|
34729
34729
|
headers: req.headers,
|
|
34730
34730
|
method: req.method,
|
|
@@ -35125,41 +35125,41 @@ const useGetServicesByCarrier = (carrierId) => {
|
|
|
35125
35125
|
});
|
|
35126
35126
|
};
|
|
35127
35127
|
|
|
35128
|
-
var __defProp$
|
|
35129
|
-
var __defProps$
|
|
35130
|
-
var __getOwnPropDescs$
|
|
35131
|
-
var __getOwnPropSymbols$
|
|
35132
|
-
var __hasOwnProp$
|
|
35133
|
-
var __propIsEnum$
|
|
35134
|
-
var __defNormalProp$
|
|
35135
|
-
var __spreadValues$
|
|
35128
|
+
var __defProp$j = Object.defineProperty;
|
|
35129
|
+
var __defProps$g = Object.defineProperties;
|
|
35130
|
+
var __getOwnPropDescs$g = Object.getOwnPropertyDescriptors;
|
|
35131
|
+
var __getOwnPropSymbols$t = Object.getOwnPropertySymbols;
|
|
35132
|
+
var __hasOwnProp$t = Object.prototype.hasOwnProperty;
|
|
35133
|
+
var __propIsEnum$t = Object.prototype.propertyIsEnumerable;
|
|
35134
|
+
var __defNormalProp$j = (obj, key, value) => key in obj ? __defProp$j(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
35135
|
+
var __spreadValues$j = (a, b) => {
|
|
35136
35136
|
for (var prop in b || (b = {}))
|
|
35137
|
-
if (__hasOwnProp$
|
|
35138
|
-
__defNormalProp$
|
|
35139
|
-
if (__getOwnPropSymbols$
|
|
35140
|
-
for (var prop of __getOwnPropSymbols$
|
|
35141
|
-
if (__propIsEnum$
|
|
35142
|
-
__defNormalProp$
|
|
35137
|
+
if (__hasOwnProp$t.call(b, prop))
|
|
35138
|
+
__defNormalProp$j(a, prop, b[prop]);
|
|
35139
|
+
if (__getOwnPropSymbols$t)
|
|
35140
|
+
for (var prop of __getOwnPropSymbols$t(b)) {
|
|
35141
|
+
if (__propIsEnum$t.call(b, prop))
|
|
35142
|
+
__defNormalProp$j(a, prop, b[prop]);
|
|
35143
35143
|
}
|
|
35144
35144
|
return a;
|
|
35145
35145
|
};
|
|
35146
|
-
var __spreadProps$
|
|
35146
|
+
var __spreadProps$g = (a, b) => __defProps$g(a, __getOwnPropDescs$g(b));
|
|
35147
35147
|
var __objRest$k = (source, exclude) => {
|
|
35148
35148
|
var target = {};
|
|
35149
35149
|
for (var prop in source)
|
|
35150
|
-
if (__hasOwnProp$
|
|
35150
|
+
if (__hasOwnProp$t.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
35151
35151
|
target[prop] = source[prop];
|
|
35152
|
-
if (source != null && __getOwnPropSymbols$
|
|
35153
|
-
for (var prop of __getOwnPropSymbols$
|
|
35154
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
35152
|
+
if (source != null && __getOwnPropSymbols$t)
|
|
35153
|
+
for (var prop of __getOwnPropSymbols$t(source)) {
|
|
35154
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$t.call(source, prop))
|
|
35155
35155
|
target[prop] = source[prop];
|
|
35156
35156
|
}
|
|
35157
35157
|
return target;
|
|
35158
35158
|
};
|
|
35159
35159
|
const useListCarriers = (params) => {
|
|
35160
35160
|
const { client } = useShipEngine();
|
|
35161
|
-
const _a = __spreadValues$
|
|
35162
|
-
return reactQuery.useQuery(__spreadProps$
|
|
35161
|
+
const _a = __spreadValues$j({}, params), { queryFnParams } = _a, rest = __objRest$k(_a, ["queryFnParams"]);
|
|
35162
|
+
return reactQuery.useQuery(__spreadProps$g(__spreadValues$j({}, rest), {
|
|
35163
35163
|
onError,
|
|
35164
35164
|
queryFn: () => client.carriers.list(queryFnParams),
|
|
35165
35165
|
queryKey: ["useListCarriers", queryFnParams],
|
|
@@ -35167,17 +35167,17 @@ const useListCarriers = (params) => {
|
|
|
35167
35167
|
}));
|
|
35168
35168
|
};
|
|
35169
35169
|
|
|
35170
|
-
var __getOwnPropSymbols$
|
|
35171
|
-
var __hasOwnProp$
|
|
35172
|
-
var __propIsEnum$
|
|
35170
|
+
var __getOwnPropSymbols$s = Object.getOwnPropertySymbols;
|
|
35171
|
+
var __hasOwnProp$s = Object.prototype.hasOwnProperty;
|
|
35172
|
+
var __propIsEnum$s = Object.prototype.propertyIsEnumerable;
|
|
35173
35173
|
var __objRest$j = (source, exclude) => {
|
|
35174
35174
|
var target = {};
|
|
35175
35175
|
for (var prop in source)
|
|
35176
|
-
if (__hasOwnProp$
|
|
35176
|
+
if (__hasOwnProp$s.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
35177
35177
|
target[prop] = source[prop];
|
|
35178
|
-
if (source != null && __getOwnPropSymbols$
|
|
35179
|
-
for (var prop of __getOwnPropSymbols$
|
|
35180
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
35178
|
+
if (source != null && __getOwnPropSymbols$s)
|
|
35179
|
+
for (var prop of __getOwnPropSymbols$s(source)) {
|
|
35180
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$s.call(source, prop))
|
|
35181
35181
|
target[prop] = source[prop];
|
|
35182
35182
|
}
|
|
35183
35183
|
return target;
|
|
@@ -35268,17 +35268,17 @@ const useDeleteCarrier = () => {
|
|
|
35268
35268
|
});
|
|
35269
35269
|
};
|
|
35270
35270
|
|
|
35271
|
-
var __getOwnPropSymbols$
|
|
35272
|
-
var __hasOwnProp$
|
|
35273
|
-
var __propIsEnum$
|
|
35271
|
+
var __getOwnPropSymbols$r = Object.getOwnPropertySymbols;
|
|
35272
|
+
var __hasOwnProp$r = Object.prototype.hasOwnProperty;
|
|
35273
|
+
var __propIsEnum$r = Object.prototype.propertyIsEnumerable;
|
|
35274
35274
|
var __objRest$i = (source, exclude) => {
|
|
35275
35275
|
var target = {};
|
|
35276
35276
|
for (var prop in source)
|
|
35277
|
-
if (__hasOwnProp$
|
|
35277
|
+
if (__hasOwnProp$r.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
35278
35278
|
target[prop] = source[prop];
|
|
35279
|
-
if (source != null && __getOwnPropSymbols$
|
|
35280
|
-
for (var prop of __getOwnPropSymbols$
|
|
35281
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
35279
|
+
if (source != null && __getOwnPropSymbols$r)
|
|
35280
|
+
for (var prop of __getOwnPropSymbols$r(source)) {
|
|
35281
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$r.call(source, prop))
|
|
35282
35282
|
target[prop] = source[prop];
|
|
35283
35283
|
}
|
|
35284
35284
|
return target;
|
|
@@ -35295,17 +35295,17 @@ const useGetCarrierConnectionForm = (_params) => {
|
|
|
35295
35295
|
});
|
|
35296
35296
|
};
|
|
35297
35297
|
|
|
35298
|
-
var __getOwnPropSymbols$
|
|
35299
|
-
var __hasOwnProp$
|
|
35300
|
-
var __propIsEnum$
|
|
35298
|
+
var __getOwnPropSymbols$q = Object.getOwnPropertySymbols;
|
|
35299
|
+
var __hasOwnProp$q = Object.prototype.hasOwnProperty;
|
|
35300
|
+
var __propIsEnum$q = Object.prototype.propertyIsEnumerable;
|
|
35301
35301
|
var __objRest$h = (source, exclude) => {
|
|
35302
35302
|
var target = {};
|
|
35303
35303
|
for (var prop in source)
|
|
35304
|
-
if (__hasOwnProp$
|
|
35304
|
+
if (__hasOwnProp$q.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
35305
35305
|
target[prop] = source[prop];
|
|
35306
|
-
if (source != null && __getOwnPropSymbols$
|
|
35307
|
-
for (var prop of __getOwnPropSymbols$
|
|
35308
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
35306
|
+
if (source != null && __getOwnPropSymbols$q)
|
|
35307
|
+
for (var prop of __getOwnPropSymbols$q(source)) {
|
|
35308
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$q.call(source, prop))
|
|
35309
35309
|
target[prop] = source[prop];
|
|
35310
35310
|
}
|
|
35311
35311
|
return target;
|
|
@@ -35365,33 +35365,33 @@ const useCarrierConnectionsServicesList = (carrierCode) => {
|
|
|
35365
35365
|
});
|
|
35366
35366
|
};
|
|
35367
35367
|
|
|
35368
|
-
var __defProp$
|
|
35369
|
-
var __defProps$
|
|
35370
|
-
var __getOwnPropDescs$
|
|
35371
|
-
var __getOwnPropSymbols$
|
|
35372
|
-
var __hasOwnProp$
|
|
35373
|
-
var __propIsEnum$
|
|
35374
|
-
var __defNormalProp$
|
|
35375
|
-
var __spreadValues$
|
|
35368
|
+
var __defProp$i = Object.defineProperty;
|
|
35369
|
+
var __defProps$f = Object.defineProperties;
|
|
35370
|
+
var __getOwnPropDescs$f = Object.getOwnPropertyDescriptors;
|
|
35371
|
+
var __getOwnPropSymbols$p = Object.getOwnPropertySymbols;
|
|
35372
|
+
var __hasOwnProp$p = Object.prototype.hasOwnProperty;
|
|
35373
|
+
var __propIsEnum$p = Object.prototype.propertyIsEnumerable;
|
|
35374
|
+
var __defNormalProp$i = (obj, key, value) => key in obj ? __defProp$i(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
35375
|
+
var __spreadValues$i = (a, b) => {
|
|
35376
35376
|
for (var prop in b || (b = {}))
|
|
35377
|
-
if (__hasOwnProp$
|
|
35378
|
-
__defNormalProp$
|
|
35379
|
-
if (__getOwnPropSymbols$
|
|
35380
|
-
for (var prop of __getOwnPropSymbols$
|
|
35381
|
-
if (__propIsEnum$
|
|
35382
|
-
__defNormalProp$
|
|
35377
|
+
if (__hasOwnProp$p.call(b, prop))
|
|
35378
|
+
__defNormalProp$i(a, prop, b[prop]);
|
|
35379
|
+
if (__getOwnPropSymbols$p)
|
|
35380
|
+
for (var prop of __getOwnPropSymbols$p(b)) {
|
|
35381
|
+
if (__propIsEnum$p.call(b, prop))
|
|
35382
|
+
__defNormalProp$i(a, prop, b[prop]);
|
|
35383
35383
|
}
|
|
35384
35384
|
return a;
|
|
35385
35385
|
};
|
|
35386
|
-
var __spreadProps$
|
|
35386
|
+
var __spreadProps$f = (a, b) => __defProps$f(a, __getOwnPropDescs$f(b));
|
|
35387
35387
|
var __objRest$g = (source, exclude) => {
|
|
35388
35388
|
var target = {};
|
|
35389
35389
|
for (var prop in source)
|
|
35390
|
-
if (__hasOwnProp$
|
|
35390
|
+
if (__hasOwnProp$p.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
35391
35391
|
target[prop] = source[prop];
|
|
35392
|
-
if (source != null && __getOwnPropSymbols$
|
|
35393
|
-
for (var prop of __getOwnPropSymbols$
|
|
35394
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
35392
|
+
if (source != null && __getOwnPropSymbols$p)
|
|
35393
|
+
for (var prop of __getOwnPropSymbols$p(source)) {
|
|
35394
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$p.call(source, prop))
|
|
35395
35395
|
target[prop] = source[prop];
|
|
35396
35396
|
}
|
|
35397
35397
|
return target;
|
|
@@ -35404,7 +35404,7 @@ const useGetConnectionsCarrierSettings = (_a) => {
|
|
|
35404
35404
|
]);
|
|
35405
35405
|
const { client } = useShipEngine();
|
|
35406
35406
|
const { carrierName, carrierId } = queryFnParams;
|
|
35407
|
-
return reactQuery.useQuery(__spreadProps$
|
|
35407
|
+
return reactQuery.useQuery(__spreadProps$f(__spreadValues$i({}, params), {
|
|
35408
35408
|
onError,
|
|
35409
35409
|
queryFn: () => client.connections.getCarrierSettings(carrierName, carrierId),
|
|
35410
35410
|
queryKey: ["useGetConnectionsCarrierSettings", carrierName, carrierId],
|
|
@@ -35412,25 +35412,25 @@ const useGetConnectionsCarrierSettings = (_a) => {
|
|
|
35412
35412
|
}));
|
|
35413
35413
|
};
|
|
35414
35414
|
|
|
35415
|
-
var __defProp$
|
|
35416
|
-
var __defProps$
|
|
35417
|
-
var __getOwnPropDescs$
|
|
35418
|
-
var __getOwnPropSymbols$
|
|
35419
|
-
var __hasOwnProp$
|
|
35420
|
-
var __propIsEnum$
|
|
35421
|
-
var __defNormalProp$
|
|
35422
|
-
var __spreadValues$
|
|
35415
|
+
var __defProp$h = Object.defineProperty;
|
|
35416
|
+
var __defProps$e = Object.defineProperties;
|
|
35417
|
+
var __getOwnPropDescs$e = Object.getOwnPropertyDescriptors;
|
|
35418
|
+
var __getOwnPropSymbols$o = Object.getOwnPropertySymbols;
|
|
35419
|
+
var __hasOwnProp$o = Object.prototype.hasOwnProperty;
|
|
35420
|
+
var __propIsEnum$o = Object.prototype.propertyIsEnumerable;
|
|
35421
|
+
var __defNormalProp$h = (obj, key, value) => key in obj ? __defProp$h(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
35422
|
+
var __spreadValues$h = (a, b) => {
|
|
35423
35423
|
for (var prop in b || (b = {}))
|
|
35424
|
-
if (__hasOwnProp$
|
|
35425
|
-
__defNormalProp$
|
|
35426
|
-
if (__getOwnPropSymbols$
|
|
35427
|
-
for (var prop of __getOwnPropSymbols$
|
|
35428
|
-
if (__propIsEnum$
|
|
35429
|
-
__defNormalProp$
|
|
35424
|
+
if (__hasOwnProp$o.call(b, prop))
|
|
35425
|
+
__defNormalProp$h(a, prop, b[prop]);
|
|
35426
|
+
if (__getOwnPropSymbols$o)
|
|
35427
|
+
for (var prop of __getOwnPropSymbols$o(b)) {
|
|
35428
|
+
if (__propIsEnum$o.call(b, prop))
|
|
35429
|
+
__defNormalProp$h(a, prop, b[prop]);
|
|
35430
35430
|
}
|
|
35431
35431
|
return a;
|
|
35432
35432
|
};
|
|
35433
|
-
var __spreadProps$
|
|
35433
|
+
var __spreadProps$e = (a, b) => __defProps$e(a, __getOwnPropDescs$e(b));
|
|
35434
35434
|
var __async$B = (__this, __arguments, generator) => {
|
|
35435
35435
|
return new Promise((resolve, reject) => {
|
|
35436
35436
|
var fulfilled = (value) => {
|
|
@@ -35453,7 +35453,7 @@ var __async$B = (__this, __arguments, generator) => {
|
|
|
35453
35453
|
};
|
|
35454
35454
|
const useUpdateConnectionsCarrierSettings = (params) => {
|
|
35455
35455
|
const { client } = useShipEngine();
|
|
35456
|
-
return reactQuery.useMutation(__spreadProps$
|
|
35456
|
+
return reactQuery.useMutation(__spreadProps$e(__spreadValues$h({}, params), {
|
|
35457
35457
|
mutationFn: (_0) => __async$B(void 0, [_0], function* ({
|
|
35458
35458
|
carrierName,
|
|
35459
35459
|
carrierId,
|
|
@@ -35684,17 +35684,17 @@ const useGetInsuranceAccount = (insuranceProvider) => {
|
|
|
35684
35684
|
});
|
|
35685
35685
|
};
|
|
35686
35686
|
|
|
35687
|
-
var __getOwnPropSymbols$
|
|
35688
|
-
var __hasOwnProp$
|
|
35689
|
-
var __propIsEnum$
|
|
35687
|
+
var __getOwnPropSymbols$n = Object.getOwnPropertySymbols;
|
|
35688
|
+
var __hasOwnProp$n = Object.prototype.hasOwnProperty;
|
|
35689
|
+
var __propIsEnum$n = Object.prototype.propertyIsEnumerable;
|
|
35690
35690
|
var __objRest$f = (source, exclude) => {
|
|
35691
35691
|
var target = {};
|
|
35692
35692
|
for (var prop in source)
|
|
35693
|
-
if (__hasOwnProp$
|
|
35693
|
+
if (__hasOwnProp$n.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
35694
35694
|
target[prop] = source[prop];
|
|
35695
|
-
if (source != null && __getOwnPropSymbols$
|
|
35696
|
-
for (var prop of __getOwnPropSymbols$
|
|
35697
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
35695
|
+
if (source != null && __getOwnPropSymbols$n)
|
|
35696
|
+
for (var prop of __getOwnPropSymbols$n(source)) {
|
|
35697
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$n.call(source, prop))
|
|
35698
35698
|
target[prop] = source[prop];
|
|
35699
35699
|
}
|
|
35700
35700
|
return target;
|
|
@@ -35732,17 +35732,17 @@ const useAddInsuranceFunds = () => {
|
|
|
35732
35732
|
});
|
|
35733
35733
|
};
|
|
35734
35734
|
|
|
35735
|
-
var __getOwnPropSymbols$
|
|
35736
|
-
var __hasOwnProp$
|
|
35737
|
-
var __propIsEnum$
|
|
35735
|
+
var __getOwnPropSymbols$m = Object.getOwnPropertySymbols;
|
|
35736
|
+
var __hasOwnProp$m = Object.prototype.hasOwnProperty;
|
|
35737
|
+
var __propIsEnum$m = Object.prototype.propertyIsEnumerable;
|
|
35738
35738
|
var __objRest$e = (source, exclude) => {
|
|
35739
35739
|
var target = {};
|
|
35740
35740
|
for (var prop in source)
|
|
35741
|
-
if (__hasOwnProp$
|
|
35741
|
+
if (__hasOwnProp$m.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
35742
35742
|
target[prop] = source[prop];
|
|
35743
|
-
if (source != null && __getOwnPropSymbols$
|
|
35744
|
-
for (var prop of __getOwnPropSymbols$
|
|
35745
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
35743
|
+
if (source != null && __getOwnPropSymbols$m)
|
|
35744
|
+
for (var prop of __getOwnPropSymbols$m(source)) {
|
|
35745
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$m.call(source, prop))
|
|
35746
35746
|
target[prop] = source[prop];
|
|
35747
35747
|
}
|
|
35748
35748
|
return target;
|
|
@@ -35795,41 +35795,41 @@ const useGetLabel = (labelId) => {
|
|
|
35795
35795
|
});
|
|
35796
35796
|
};
|
|
35797
35797
|
|
|
35798
|
-
var __defProp$
|
|
35799
|
-
var __defProps$
|
|
35800
|
-
var __getOwnPropDescs$
|
|
35801
|
-
var __getOwnPropSymbols$
|
|
35802
|
-
var __hasOwnProp$
|
|
35803
|
-
var __propIsEnum$
|
|
35804
|
-
var __defNormalProp$
|
|
35805
|
-
var __spreadValues$
|
|
35798
|
+
var __defProp$g = Object.defineProperty;
|
|
35799
|
+
var __defProps$d = Object.defineProperties;
|
|
35800
|
+
var __getOwnPropDescs$d = Object.getOwnPropertyDescriptors;
|
|
35801
|
+
var __getOwnPropSymbols$l = Object.getOwnPropertySymbols;
|
|
35802
|
+
var __hasOwnProp$l = Object.prototype.hasOwnProperty;
|
|
35803
|
+
var __propIsEnum$l = Object.prototype.propertyIsEnumerable;
|
|
35804
|
+
var __defNormalProp$g = (obj, key, value) => key in obj ? __defProp$g(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
35805
|
+
var __spreadValues$g = (a, b) => {
|
|
35806
35806
|
for (var prop in b || (b = {}))
|
|
35807
|
-
if (__hasOwnProp$
|
|
35808
|
-
__defNormalProp$
|
|
35809
|
-
if (__getOwnPropSymbols$
|
|
35810
|
-
for (var prop of __getOwnPropSymbols$
|
|
35811
|
-
if (__propIsEnum$
|
|
35812
|
-
__defNormalProp$
|
|
35807
|
+
if (__hasOwnProp$l.call(b, prop))
|
|
35808
|
+
__defNormalProp$g(a, prop, b[prop]);
|
|
35809
|
+
if (__getOwnPropSymbols$l)
|
|
35810
|
+
for (var prop of __getOwnPropSymbols$l(b)) {
|
|
35811
|
+
if (__propIsEnum$l.call(b, prop))
|
|
35812
|
+
__defNormalProp$g(a, prop, b[prop]);
|
|
35813
35813
|
}
|
|
35814
35814
|
return a;
|
|
35815
35815
|
};
|
|
35816
|
-
var __spreadProps$
|
|
35816
|
+
var __spreadProps$d = (a, b) => __defProps$d(a, __getOwnPropDescs$d(b));
|
|
35817
35817
|
var __objRest$d = (source, exclude) => {
|
|
35818
35818
|
var target = {};
|
|
35819
35819
|
for (var prop in source)
|
|
35820
|
-
if (__hasOwnProp$
|
|
35820
|
+
if (__hasOwnProp$l.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
35821
35821
|
target[prop] = source[prop];
|
|
35822
|
-
if (source != null && __getOwnPropSymbols$
|
|
35823
|
-
for (var prop of __getOwnPropSymbols$
|
|
35824
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
35822
|
+
if (source != null && __getOwnPropSymbols$l)
|
|
35823
|
+
for (var prop of __getOwnPropSymbols$l(source)) {
|
|
35824
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$l.call(source, prop))
|
|
35825
35825
|
target[prop] = source[prop];
|
|
35826
35826
|
}
|
|
35827
35827
|
return target;
|
|
35828
35828
|
};
|
|
35829
35829
|
const useListLabels = (params) => {
|
|
35830
35830
|
const { client } = useShipEngine();
|
|
35831
|
-
const _a = __spreadValues$
|
|
35832
|
-
return reactQuery.useQuery(__spreadProps$
|
|
35831
|
+
const _a = __spreadValues$g({}, params), { queryFnParams } = _a, rest = __objRest$d(_a, ["queryFnParams"]);
|
|
35832
|
+
return reactQuery.useQuery(__spreadProps$d(__spreadValues$g({}, rest), {
|
|
35833
35833
|
onError,
|
|
35834
35834
|
queryFn: () => client.labels.list(queryFnParams),
|
|
35835
35835
|
queryKey: ["useListLabels", params],
|
|
@@ -35869,14 +35869,33 @@ const useVoidLabel = () => {
|
|
|
35869
35869
|
});
|
|
35870
35870
|
};
|
|
35871
35871
|
|
|
35872
|
-
|
|
35872
|
+
var __defProp$f = Object.defineProperty;
|
|
35873
|
+
var __defProps$c = Object.defineProperties;
|
|
35874
|
+
var __getOwnPropDescs$c = Object.getOwnPropertyDescriptors;
|
|
35875
|
+
var __getOwnPropSymbols$k = Object.getOwnPropertySymbols;
|
|
35876
|
+
var __hasOwnProp$k = Object.prototype.hasOwnProperty;
|
|
35877
|
+
var __propIsEnum$k = Object.prototype.propertyIsEnumerable;
|
|
35878
|
+
var __defNormalProp$f = (obj, key, value) => key in obj ? __defProp$f(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
35879
|
+
var __spreadValues$f = (a, b) => {
|
|
35880
|
+
for (var prop in b || (b = {}))
|
|
35881
|
+
if (__hasOwnProp$k.call(b, prop))
|
|
35882
|
+
__defNormalProp$f(a, prop, b[prop]);
|
|
35883
|
+
if (__getOwnPropSymbols$k)
|
|
35884
|
+
for (var prop of __getOwnPropSymbols$k(b)) {
|
|
35885
|
+
if (__propIsEnum$k.call(b, prop))
|
|
35886
|
+
__defNormalProp$f(a, prop, b[prop]);
|
|
35887
|
+
}
|
|
35888
|
+
return a;
|
|
35889
|
+
};
|
|
35890
|
+
var __spreadProps$c = (a, b) => __defProps$c(a, __getOwnPropDescs$c(b));
|
|
35891
|
+
const useListOrderSources = (params) => {
|
|
35873
35892
|
const { client } = useShipEngine();
|
|
35874
|
-
return reactQuery.useQuery({
|
|
35893
|
+
return reactQuery.useQuery(__spreadProps$c(__spreadValues$f({}, params), {
|
|
35875
35894
|
onError,
|
|
35876
35895
|
queryFn: () => client.orderSources.list(),
|
|
35877
35896
|
queryKey: ["useListOrderSources"],
|
|
35878
35897
|
select: (result) => result.data.orderSources
|
|
35879
|
-
});
|
|
35898
|
+
}));
|
|
35880
35899
|
};
|
|
35881
35900
|
|
|
35882
35901
|
var __async$t = (__this, __arguments, generator) => {
|