@shipengine/alchemy 5.4.4 → 5.4.5
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 +255 -214
- package/index.mjs +255 -215
- 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$q = Object.getOwnPropertySymbols;
|
|
10816
|
+
var __hasOwnProp$q = Object.prototype.hasOwnProperty;
|
|
10817
|
+
var __propIsEnum$q = Object.prototype.propertyIsEnumerable;
|
|
10818
10818
|
var __objRest$f = (source, exclude) => {
|
|
10819
10819
|
var target = {};
|
|
10820
10820
|
for (var prop in source)
|
|
10821
|
-
if (__hasOwnProp$
|
|
10821
|
+
if (__hasOwnProp$q.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$q)
|
|
10824
|
+
for (var prop of __getOwnPropSymbols$q(source)) {
|
|
10825
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$q.call(source, prop))
|
|
10826
10826
|
target[prop] = source[prop];
|
|
10827
10827
|
}
|
|
10828
10828
|
return target;
|
|
@@ -10944,17 +10944,17 @@ const types = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
|
|
|
10944
10944
|
RateCardStatus
|
|
10945
10945
|
}, Symbol.toStringTag, { value: 'Module' }));
|
|
10946
10946
|
|
|
10947
|
-
var __getOwnPropSymbols$
|
|
10948
|
-
var __hasOwnProp$
|
|
10949
|
-
var __propIsEnum$
|
|
10947
|
+
var __getOwnPropSymbols$p = Object.getOwnPropertySymbols;
|
|
10948
|
+
var __hasOwnProp$p = Object.prototype.hasOwnProperty;
|
|
10949
|
+
var __propIsEnum$p = Object.prototype.propertyIsEnumerable;
|
|
10950
10950
|
var __objRest$e = (source, exclude) => {
|
|
10951
10951
|
var target = {};
|
|
10952
10952
|
for (var prop in source)
|
|
10953
|
-
if (__hasOwnProp$
|
|
10953
|
+
if (__hasOwnProp$p.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
10954
10954
|
target[prop] = source[prop];
|
|
10955
|
-
if (source != null && __getOwnPropSymbols$
|
|
10956
|
-
for (var prop of __getOwnPropSymbols$
|
|
10957
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
10955
|
+
if (source != null && __getOwnPropSymbols$p)
|
|
10956
|
+
for (var prop of __getOwnPropSymbols$p(source)) {
|
|
10957
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$p.call(source, prop))
|
|
10958
10958
|
target[prop] = source[prop];
|
|
10959
10959
|
}
|
|
10960
10960
|
return target;
|
|
@@ -13728,33 +13728,33 @@ const getEndUserIpAddress = () => __async$M(void 0, null, function* () {
|
|
|
13728
13728
|
}
|
|
13729
13729
|
});
|
|
13730
13730
|
|
|
13731
|
-
var __defProp$
|
|
13732
|
-
var __defProps$
|
|
13733
|
-
var __getOwnPropDescs$
|
|
13734
|
-
var __getOwnPropSymbols$
|
|
13735
|
-
var __hasOwnProp$
|
|
13736
|
-
var __propIsEnum$
|
|
13737
|
-
var __defNormalProp$
|
|
13738
|
-
var __spreadValues$
|
|
13731
|
+
var __defProp$d = Object.defineProperty;
|
|
13732
|
+
var __defProps$9 = Object.defineProperties;
|
|
13733
|
+
var __getOwnPropDescs$9 = Object.getOwnPropertyDescriptors;
|
|
13734
|
+
var __getOwnPropSymbols$o = Object.getOwnPropertySymbols;
|
|
13735
|
+
var __hasOwnProp$o = Object.prototype.hasOwnProperty;
|
|
13736
|
+
var __propIsEnum$o = Object.prototype.propertyIsEnumerable;
|
|
13737
|
+
var __defNormalProp$d = (obj, key, value) => key in obj ? __defProp$d(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
13738
|
+
var __spreadValues$d = (a, b) => {
|
|
13739
13739
|
for (var prop in b || (b = {}))
|
|
13740
|
-
if (__hasOwnProp$
|
|
13741
|
-
__defNormalProp$
|
|
13742
|
-
if (__getOwnPropSymbols$
|
|
13743
|
-
for (var prop of __getOwnPropSymbols$
|
|
13744
|
-
if (__propIsEnum$
|
|
13745
|
-
__defNormalProp$
|
|
13740
|
+
if (__hasOwnProp$o.call(b, prop))
|
|
13741
|
+
__defNormalProp$d(a, prop, b[prop]);
|
|
13742
|
+
if (__getOwnPropSymbols$o)
|
|
13743
|
+
for (var prop of __getOwnPropSymbols$o(b)) {
|
|
13744
|
+
if (__propIsEnum$o.call(b, prop))
|
|
13745
|
+
__defNormalProp$d(a, prop, b[prop]);
|
|
13746
13746
|
}
|
|
13747
13747
|
return a;
|
|
13748
13748
|
};
|
|
13749
|
-
var __spreadProps$
|
|
13749
|
+
var __spreadProps$9 = (a, b) => __defProps$9(a, __getOwnPropDescs$9(b));
|
|
13750
13750
|
var __objRest$d = (source, exclude) => {
|
|
13751
13751
|
var target = {};
|
|
13752
13752
|
for (var prop in source)
|
|
13753
|
-
if (__hasOwnProp$
|
|
13753
|
+
if (__hasOwnProp$o.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
13754
13754
|
target[prop] = source[prop];
|
|
13755
|
-
if (source != null && __getOwnPropSymbols$
|
|
13756
|
-
for (var prop of __getOwnPropSymbols$
|
|
13757
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
13755
|
+
if (source != null && __getOwnPropSymbols$o)
|
|
13756
|
+
for (var prop of __getOwnPropSymbols$o(source)) {
|
|
13757
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$o.call(source, prop))
|
|
13758
13758
|
target[prop] = source[prop];
|
|
13759
13759
|
}
|
|
13760
13760
|
return target;
|
|
@@ -13802,7 +13802,7 @@ class CarriersAPI {
|
|
|
13802
13802
|
const endUserIpAddress = yield getEndUserIpAddress();
|
|
13803
13803
|
if (!endUserIpAddress)
|
|
13804
13804
|
return Promise.reject([new CodedError("Unable to get IP address")]);
|
|
13805
|
-
return yield this.client.post(`/v1/registration/${carrierCode}`, __spreadProps$
|
|
13805
|
+
return yield this.client.post(`/v1/registration/${carrierCode}`, __spreadProps$9(__spreadValues$d({}, connection), {
|
|
13806
13806
|
endUserIpAddress
|
|
13807
13807
|
}));
|
|
13808
13808
|
});
|
|
@@ -13933,7 +13933,15 @@ class ConnectionsAPI {
|
|
|
13933
13933
|
this.connectCarrier = (carrierName, formData) => __async$K(this, null, function* () {
|
|
13934
13934
|
return yield this.client.post(
|
|
13935
13935
|
`/v1/connections/carriers/${carrierName}`,
|
|
13936
|
-
formData
|
|
13936
|
+
formData,
|
|
13937
|
+
{
|
|
13938
|
+
// This actually doesn't work in-browser; redirects will still be followed if the location header
|
|
13939
|
+
// is set. This is relying on the Elements Proxy stripping that header and putting it in the body.
|
|
13940
|
+
maxRedirects: 0,
|
|
13941
|
+
validateStatus: (status) => {
|
|
13942
|
+
return status >= 200 && status < 400;
|
|
13943
|
+
}
|
|
13944
|
+
}
|
|
13937
13945
|
);
|
|
13938
13946
|
});
|
|
13939
13947
|
/**
|
|
@@ -16158,19 +16166,19 @@ class CustomPackagesAPI {
|
|
|
16158
16166
|
}
|
|
16159
16167
|
}
|
|
16160
16168
|
|
|
16161
|
-
var __defProp$
|
|
16162
|
-
var __getOwnPropSymbols$
|
|
16163
|
-
var __hasOwnProp$
|
|
16164
|
-
var __propIsEnum$
|
|
16165
|
-
var __defNormalProp$
|
|
16166
|
-
var __spreadValues$
|
|
16169
|
+
var __defProp$c = Object.defineProperty;
|
|
16170
|
+
var __getOwnPropSymbols$n = Object.getOwnPropertySymbols;
|
|
16171
|
+
var __hasOwnProp$n = Object.prototype.hasOwnProperty;
|
|
16172
|
+
var __propIsEnum$n = Object.prototype.propertyIsEnumerable;
|
|
16173
|
+
var __defNormalProp$c = (obj, key, value) => key in obj ? __defProp$c(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
16174
|
+
var __spreadValues$c = (a, b) => {
|
|
16167
16175
|
for (var prop in b || (b = {}))
|
|
16168
|
-
if (__hasOwnProp$
|
|
16169
|
-
__defNormalProp$
|
|
16170
|
-
if (__getOwnPropSymbols$
|
|
16171
|
-
for (var prop of __getOwnPropSymbols$
|
|
16172
|
-
if (__propIsEnum$
|
|
16173
|
-
__defNormalProp$
|
|
16176
|
+
if (__hasOwnProp$n.call(b, prop))
|
|
16177
|
+
__defNormalProp$c(a, prop, b[prop]);
|
|
16178
|
+
if (__getOwnPropSymbols$n)
|
|
16179
|
+
for (var prop of __getOwnPropSymbols$n(b)) {
|
|
16180
|
+
if (__propIsEnum$n.call(b, prop))
|
|
16181
|
+
__defNormalProp$c(a, prop, b[prop]);
|
|
16174
16182
|
}
|
|
16175
16183
|
return a;
|
|
16176
16184
|
};
|
|
@@ -16218,7 +16226,7 @@ class FundingSourcesAPI {
|
|
|
16218
16226
|
if (!endUserIpAddress) {
|
|
16219
16227
|
return Promise.reject([new CodedError("Unable to get IP address")]);
|
|
16220
16228
|
}
|
|
16221
|
-
return yield this.client.post("/v1/funding_sources", __spreadValues$
|
|
16229
|
+
return yield this.client.post("/v1/funding_sources", __spreadValues$c({
|
|
16222
16230
|
endUserIpAddress
|
|
16223
16231
|
}, createFundingSource));
|
|
16224
16232
|
});
|
|
@@ -16250,7 +16258,7 @@ class FundingSourcesAPI {
|
|
|
16250
16258
|
if (!endUserIpAddress) {
|
|
16251
16259
|
return Promise.reject([new CodedError("Unable to get IP address")]);
|
|
16252
16260
|
}
|
|
16253
|
-
return yield this.client.post("/v1/registration/funding_source", __spreadValues$
|
|
16261
|
+
return yield this.client.post("/v1/registration/funding_source", __spreadValues$c({
|
|
16254
16262
|
endUserIpAddress
|
|
16255
16263
|
}, carrier));
|
|
16256
16264
|
});
|
|
@@ -16564,19 +16572,19 @@ class SellersAPI {
|
|
|
16564
16572
|
}
|
|
16565
16573
|
}
|
|
16566
16574
|
|
|
16567
|
-
var __defProp$
|
|
16568
|
-
var __getOwnPropSymbols$
|
|
16569
|
-
var __hasOwnProp$
|
|
16570
|
-
var __propIsEnum$
|
|
16571
|
-
var __defNormalProp$
|
|
16572
|
-
var __spreadValues$
|
|
16575
|
+
var __defProp$b = Object.defineProperty;
|
|
16576
|
+
var __getOwnPropSymbols$m = Object.getOwnPropertySymbols;
|
|
16577
|
+
var __hasOwnProp$m = Object.prototype.hasOwnProperty;
|
|
16578
|
+
var __propIsEnum$m = Object.prototype.propertyIsEnumerable;
|
|
16579
|
+
var __defNormalProp$b = (obj, key, value) => key in obj ? __defProp$b(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
16580
|
+
var __spreadValues$b = (a, b) => {
|
|
16573
16581
|
for (var prop in b || (b = {}))
|
|
16574
|
-
if (__hasOwnProp$
|
|
16575
|
-
__defNormalProp$
|
|
16576
|
-
if (__getOwnPropSymbols$
|
|
16577
|
-
for (var prop of __getOwnPropSymbols$
|
|
16578
|
-
if (__propIsEnum$
|
|
16579
|
-
__defNormalProp$
|
|
16582
|
+
if (__hasOwnProp$m.call(b, prop))
|
|
16583
|
+
__defNormalProp$b(a, prop, b[prop]);
|
|
16584
|
+
if (__getOwnPropSymbols$m)
|
|
16585
|
+
for (var prop of __getOwnPropSymbols$m(b)) {
|
|
16586
|
+
if (__propIsEnum$m.call(b, prop))
|
|
16587
|
+
__defNormalProp$b(a, prop, b[prop]);
|
|
16580
16588
|
}
|
|
16581
16589
|
return a;
|
|
16582
16590
|
};
|
|
@@ -16588,7 +16596,7 @@ class ServicePointsAPI {
|
|
|
16588
16596
|
* Either an address, coordinates, or an address query
|
|
16589
16597
|
*/
|
|
16590
16598
|
this.list = (options) => {
|
|
16591
|
-
return this.client.post("/v1/service_points/list", __spreadValues$
|
|
16599
|
+
return this.client.post("/v1/service_points/list", __spreadValues$b({}, options));
|
|
16592
16600
|
};
|
|
16593
16601
|
/**
|
|
16594
16602
|
* Get a specific service point by its carrier code, country code, and id
|
|
@@ -16596,6 +16604,12 @@ class ServicePointsAPI {
|
|
|
16596
16604
|
this.get = ({ carrierCode, countryCode, id }) => {
|
|
16597
16605
|
return this.client.get(`/v1/service_points/${carrierCode}/${countryCode}/${id}`);
|
|
16598
16606
|
};
|
|
16607
|
+
/**
|
|
16608
|
+
* Get an OAuth token to make HERE Maps API requests
|
|
16609
|
+
*/
|
|
16610
|
+
this.getHereToken = () => {
|
|
16611
|
+
return this.client.get("/here-api/generate-token");
|
|
16612
|
+
};
|
|
16599
16613
|
this.client = client;
|
|
16600
16614
|
}
|
|
16601
16615
|
}
|
|
@@ -34009,25 +34023,25 @@ class WebhooksAPI {
|
|
|
34009
34023
|
}
|
|
34010
34024
|
}
|
|
34011
34025
|
|
|
34012
|
-
var __defProp$
|
|
34013
|
-
var __defProps$
|
|
34014
|
-
var __getOwnPropDescs$
|
|
34015
|
-
var __getOwnPropSymbols$
|
|
34016
|
-
var __hasOwnProp$
|
|
34017
|
-
var __propIsEnum$
|
|
34018
|
-
var __defNormalProp$
|
|
34019
|
-
var __spreadValues$
|
|
34026
|
+
var __defProp$a = Object.defineProperty;
|
|
34027
|
+
var __defProps$8 = Object.defineProperties;
|
|
34028
|
+
var __getOwnPropDescs$8 = Object.getOwnPropertyDescriptors;
|
|
34029
|
+
var __getOwnPropSymbols$l = Object.getOwnPropertySymbols;
|
|
34030
|
+
var __hasOwnProp$l = Object.prototype.hasOwnProperty;
|
|
34031
|
+
var __propIsEnum$l = Object.prototype.propertyIsEnumerable;
|
|
34032
|
+
var __defNormalProp$a = (obj, key, value) => key in obj ? __defProp$a(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
34033
|
+
var __spreadValues$a = (a, b) => {
|
|
34020
34034
|
for (var prop in b || (b = {}))
|
|
34021
|
-
if (__hasOwnProp$
|
|
34022
|
-
__defNormalProp$
|
|
34023
|
-
if (__getOwnPropSymbols$
|
|
34024
|
-
for (var prop of __getOwnPropSymbols$
|
|
34025
|
-
if (__propIsEnum$
|
|
34026
|
-
__defNormalProp$
|
|
34035
|
+
if (__hasOwnProp$l.call(b, prop))
|
|
34036
|
+
__defNormalProp$a(a, prop, b[prop]);
|
|
34037
|
+
if (__getOwnPropSymbols$l)
|
|
34038
|
+
for (var prop of __getOwnPropSymbols$l(b)) {
|
|
34039
|
+
if (__propIsEnum$l.call(b, prop))
|
|
34040
|
+
__defNormalProp$a(a, prop, b[prop]);
|
|
34027
34041
|
}
|
|
34028
34042
|
return a;
|
|
34029
34043
|
};
|
|
34030
|
-
var __spreadProps$
|
|
34044
|
+
var __spreadProps$8 = (a, b) => __defProps$8(a, __getOwnPropDescs$8(b));
|
|
34031
34045
|
var __async$H = (__this, __arguments, generator) => {
|
|
34032
34046
|
return new Promise((resolve, reject) => {
|
|
34033
34047
|
var fulfilled = (value) => {
|
|
@@ -34051,7 +34065,7 @@ var __async$H = (__this, __arguments, generator) => {
|
|
|
34051
34065
|
const logger$1 = E({
|
|
34052
34066
|
level: process.env.NODE_ENV === "production" ? "fatal" : "info",
|
|
34053
34067
|
name: "shipengine-api",
|
|
34054
|
-
serializers: __spreadProps$
|
|
34068
|
+
serializers: __spreadProps$8(__spreadValues$a({}, k), {
|
|
34055
34069
|
req: (req) => ({
|
|
34056
34070
|
headers: req.headers,
|
|
34057
34071
|
method: req.method,
|
|
@@ -34075,7 +34089,7 @@ class ShipEngineAPI {
|
|
|
34075
34089
|
constructor(token, { baseURL, headers, getToken, onApiError }) {
|
|
34076
34090
|
const client = axios.create({
|
|
34077
34091
|
baseURL,
|
|
34078
|
-
headers: __spreadProps$
|
|
34092
|
+
headers: __spreadProps$8(__spreadValues$a({}, headers), {
|
|
34079
34093
|
"Content-Type": "application/json"
|
|
34080
34094
|
}),
|
|
34081
34095
|
paramsSerializer: (params) => lib.stringify(humpsExports.decamelizeKeys(params), { arrayFormat: "brackets" }),
|
|
@@ -34404,25 +34418,25 @@ const delay = (ms) => new Promise((resolve) => {
|
|
|
34404
34418
|
|
|
34405
34419
|
const onError = (_errors) => _default();
|
|
34406
34420
|
|
|
34407
|
-
var __defProp$
|
|
34408
|
-
var __defProps$
|
|
34409
|
-
var __getOwnPropDescs$
|
|
34410
|
-
var __getOwnPropSymbols$
|
|
34411
|
-
var __hasOwnProp$
|
|
34412
|
-
var __propIsEnum$
|
|
34413
|
-
var __defNormalProp$
|
|
34414
|
-
var __spreadValues$
|
|
34421
|
+
var __defProp$9 = Object.defineProperty;
|
|
34422
|
+
var __defProps$7 = Object.defineProperties;
|
|
34423
|
+
var __getOwnPropDescs$7 = Object.getOwnPropertyDescriptors;
|
|
34424
|
+
var __getOwnPropSymbols$k = Object.getOwnPropertySymbols;
|
|
34425
|
+
var __hasOwnProp$k = Object.prototype.hasOwnProperty;
|
|
34426
|
+
var __propIsEnum$k = Object.prototype.propertyIsEnumerable;
|
|
34427
|
+
var __defNormalProp$9 = (obj, key, value) => key in obj ? __defProp$9(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
34428
|
+
var __spreadValues$9 = (a, b) => {
|
|
34415
34429
|
for (var prop in b || (b = {}))
|
|
34416
|
-
if (__hasOwnProp$
|
|
34417
|
-
__defNormalProp$
|
|
34418
|
-
if (__getOwnPropSymbols$
|
|
34419
|
-
for (var prop of __getOwnPropSymbols$
|
|
34420
|
-
if (__propIsEnum$
|
|
34421
|
-
__defNormalProp$
|
|
34430
|
+
if (__hasOwnProp$k.call(b, prop))
|
|
34431
|
+
__defNormalProp$9(a, prop, b[prop]);
|
|
34432
|
+
if (__getOwnPropSymbols$k)
|
|
34433
|
+
for (var prop of __getOwnPropSymbols$k(b)) {
|
|
34434
|
+
if (__propIsEnum$k.call(b, prop))
|
|
34435
|
+
__defNormalProp$9(a, prop, b[prop]);
|
|
34422
34436
|
}
|
|
34423
34437
|
return a;
|
|
34424
34438
|
};
|
|
34425
|
-
var __spreadProps$
|
|
34439
|
+
var __spreadProps$7 = (a, b) => __defProps$7(a, __getOwnPropDescs$7(b));
|
|
34426
34440
|
const streams = [];
|
|
34427
34441
|
if (process.env.NODE_ENV === "production") {
|
|
34428
34442
|
streams.push({
|
|
@@ -34431,7 +34445,7 @@ if (process.env.NODE_ENV === "production") {
|
|
|
34431
34445
|
}
|
|
34432
34446
|
const logger = E({
|
|
34433
34447
|
name: "shipengine",
|
|
34434
|
-
serializers: __spreadProps$
|
|
34448
|
+
serializers: __spreadProps$7(__spreadValues$9({}, k), {
|
|
34435
34449
|
req: (req) => ({
|
|
34436
34450
|
headers: req.headers,
|
|
34437
34451
|
method: req.method,
|
|
@@ -34842,17 +34856,17 @@ const useListCarriers = () => {
|
|
|
34842
34856
|
});
|
|
34843
34857
|
};
|
|
34844
34858
|
|
|
34845
|
-
var __getOwnPropSymbols$
|
|
34846
|
-
var __hasOwnProp$
|
|
34847
|
-
var __propIsEnum$
|
|
34859
|
+
var __getOwnPropSymbols$j = Object.getOwnPropertySymbols;
|
|
34860
|
+
var __hasOwnProp$j = Object.prototype.hasOwnProperty;
|
|
34861
|
+
var __propIsEnum$j = Object.prototype.propertyIsEnumerable;
|
|
34848
34862
|
var __objRest$c = (source, exclude) => {
|
|
34849
34863
|
var target = {};
|
|
34850
34864
|
for (var prop in source)
|
|
34851
|
-
if (__hasOwnProp$
|
|
34865
|
+
if (__hasOwnProp$j.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
34852
34866
|
target[prop] = source[prop];
|
|
34853
|
-
if (source != null && __getOwnPropSymbols$
|
|
34854
|
-
for (var prop of __getOwnPropSymbols$
|
|
34855
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
34867
|
+
if (source != null && __getOwnPropSymbols$j)
|
|
34868
|
+
for (var prop of __getOwnPropSymbols$j(source)) {
|
|
34869
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$j.call(source, prop))
|
|
34856
34870
|
target[prop] = source[prop];
|
|
34857
34871
|
}
|
|
34858
34872
|
return target;
|
|
@@ -34943,17 +34957,17 @@ const useDeleteCarrier = () => {
|
|
|
34943
34957
|
});
|
|
34944
34958
|
};
|
|
34945
34959
|
|
|
34946
|
-
var __getOwnPropSymbols$
|
|
34947
|
-
var __hasOwnProp$
|
|
34948
|
-
var __propIsEnum$
|
|
34960
|
+
var __getOwnPropSymbols$i = Object.getOwnPropertySymbols;
|
|
34961
|
+
var __hasOwnProp$i = Object.prototype.hasOwnProperty;
|
|
34962
|
+
var __propIsEnum$i = Object.prototype.propertyIsEnumerable;
|
|
34949
34963
|
var __objRest$b = (source, exclude) => {
|
|
34950
34964
|
var target = {};
|
|
34951
34965
|
for (var prop in source)
|
|
34952
|
-
if (__hasOwnProp$
|
|
34966
|
+
if (__hasOwnProp$i.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
34953
34967
|
target[prop] = source[prop];
|
|
34954
|
-
if (source != null && __getOwnPropSymbols$
|
|
34955
|
-
for (var prop of __getOwnPropSymbols$
|
|
34956
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
34968
|
+
if (source != null && __getOwnPropSymbols$i)
|
|
34969
|
+
for (var prop of __getOwnPropSymbols$i(source)) {
|
|
34970
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$i.call(source, prop))
|
|
34957
34971
|
target[prop] = source[prop];
|
|
34958
34972
|
}
|
|
34959
34973
|
return target;
|
|
@@ -34970,17 +34984,17 @@ const useGetCarrierConnectionForm = (_params) => {
|
|
|
34970
34984
|
});
|
|
34971
34985
|
};
|
|
34972
34986
|
|
|
34973
|
-
var __getOwnPropSymbols$
|
|
34974
|
-
var __hasOwnProp$
|
|
34975
|
-
var __propIsEnum$
|
|
34987
|
+
var __getOwnPropSymbols$h = Object.getOwnPropertySymbols;
|
|
34988
|
+
var __hasOwnProp$h = Object.prototype.hasOwnProperty;
|
|
34989
|
+
var __propIsEnum$h = Object.prototype.propertyIsEnumerable;
|
|
34976
34990
|
var __objRest$a = (source, exclude) => {
|
|
34977
34991
|
var target = {};
|
|
34978
34992
|
for (var prop in source)
|
|
34979
|
-
if (__hasOwnProp$
|
|
34993
|
+
if (__hasOwnProp$h.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
34980
34994
|
target[prop] = source[prop];
|
|
34981
|
-
if (source != null && __getOwnPropSymbols$
|
|
34982
|
-
for (var prop of __getOwnPropSymbols$
|
|
34983
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
34995
|
+
if (source != null && __getOwnPropSymbols$h)
|
|
34996
|
+
for (var prop of __getOwnPropSymbols$h(source)) {
|
|
34997
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$h.call(source, prop))
|
|
34984
34998
|
target[prop] = source[prop];
|
|
34985
34999
|
}
|
|
34986
35000
|
return target;
|
|
@@ -35022,9 +35036,6 @@ const useConnectCarrierAccount = () => {
|
|
|
35022
35036
|
return reactQuery.useMutation({
|
|
35023
35037
|
mutationFn: (_0) => __async$w(void 0, [_0], function* ({ carrierName, formData }) {
|
|
35024
35038
|
const result = yield client.connections.connectCarrier(carrierName, formData);
|
|
35025
|
-
if (result.status > 300 && result.status < 309) {
|
|
35026
|
-
result.data.redirectUrl = result.request.res.responseUrl;
|
|
35027
|
-
}
|
|
35028
35039
|
return result.data;
|
|
35029
35040
|
}),
|
|
35030
35041
|
mutationKey: ["useConnectCarrierAccount"],
|
|
@@ -35256,17 +35267,17 @@ const useGetInsuranceAccount = (insuranceProvider) => {
|
|
|
35256
35267
|
});
|
|
35257
35268
|
};
|
|
35258
35269
|
|
|
35259
|
-
var __getOwnPropSymbols$
|
|
35260
|
-
var __hasOwnProp$
|
|
35261
|
-
var __propIsEnum$
|
|
35270
|
+
var __getOwnPropSymbols$g = Object.getOwnPropertySymbols;
|
|
35271
|
+
var __hasOwnProp$g = Object.prototype.hasOwnProperty;
|
|
35272
|
+
var __propIsEnum$g = Object.prototype.propertyIsEnumerable;
|
|
35262
35273
|
var __objRest$9 = (source, exclude) => {
|
|
35263
35274
|
var target = {};
|
|
35264
35275
|
for (var prop in source)
|
|
35265
|
-
if (__hasOwnProp$
|
|
35276
|
+
if (__hasOwnProp$g.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
35266
35277
|
target[prop] = source[prop];
|
|
35267
|
-
if (source != null && __getOwnPropSymbols$
|
|
35268
|
-
for (var prop of __getOwnPropSymbols$
|
|
35269
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
35278
|
+
if (source != null && __getOwnPropSymbols$g)
|
|
35279
|
+
for (var prop of __getOwnPropSymbols$g(source)) {
|
|
35280
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$g.call(source, prop))
|
|
35270
35281
|
target[prop] = source[prop];
|
|
35271
35282
|
}
|
|
35272
35283
|
return target;
|
|
@@ -35304,17 +35315,17 @@ const useAddInsuranceFunds = () => {
|
|
|
35304
35315
|
});
|
|
35305
35316
|
};
|
|
35306
35317
|
|
|
35307
|
-
var __getOwnPropSymbols$
|
|
35308
|
-
var __hasOwnProp$
|
|
35309
|
-
var __propIsEnum$
|
|
35318
|
+
var __getOwnPropSymbols$f = Object.getOwnPropertySymbols;
|
|
35319
|
+
var __hasOwnProp$f = Object.prototype.hasOwnProperty;
|
|
35320
|
+
var __propIsEnum$f = Object.prototype.propertyIsEnumerable;
|
|
35310
35321
|
var __objRest$8 = (source, exclude) => {
|
|
35311
35322
|
var target = {};
|
|
35312
35323
|
for (var prop in source)
|
|
35313
|
-
if (__hasOwnProp$
|
|
35324
|
+
if (__hasOwnProp$f.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
35314
35325
|
target[prop] = source[prop];
|
|
35315
|
-
if (source != null && __getOwnPropSymbols$
|
|
35316
|
-
for (var prop of __getOwnPropSymbols$
|
|
35317
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
35326
|
+
if (source != null && __getOwnPropSymbols$f)
|
|
35327
|
+
for (var prop of __getOwnPropSymbols$f(source)) {
|
|
35328
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$f.call(source, prop))
|
|
35318
35329
|
target[prop] = source[prop];
|
|
35319
35330
|
}
|
|
35320
35331
|
return target;
|
|
@@ -35367,17 +35378,17 @@ const useGetLabel = (labelId) => {
|
|
|
35367
35378
|
});
|
|
35368
35379
|
};
|
|
35369
35380
|
|
|
35370
|
-
var __getOwnPropSymbols$
|
|
35371
|
-
var __hasOwnProp$
|
|
35372
|
-
var __propIsEnum$
|
|
35381
|
+
var __getOwnPropSymbols$e = Object.getOwnPropertySymbols;
|
|
35382
|
+
var __hasOwnProp$e = Object.prototype.hasOwnProperty;
|
|
35383
|
+
var __propIsEnum$e = Object.prototype.propertyIsEnumerable;
|
|
35373
35384
|
var __objRest$7 = (source, exclude) => {
|
|
35374
35385
|
var target = {};
|
|
35375
35386
|
for (var prop in source)
|
|
35376
|
-
if (__hasOwnProp$
|
|
35387
|
+
if (__hasOwnProp$e.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
35377
35388
|
target[prop] = source[prop];
|
|
35378
|
-
if (source != null && __getOwnPropSymbols$
|
|
35379
|
-
for (var prop of __getOwnPropSymbols$
|
|
35380
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
35389
|
+
if (source != null && __getOwnPropSymbols$e)
|
|
35390
|
+
for (var prop of __getOwnPropSymbols$e(source)) {
|
|
35391
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$e.call(source, prop))
|
|
35381
35392
|
target[prop] = source[prop];
|
|
35382
35393
|
}
|
|
35383
35394
|
return target;
|
|
@@ -35773,17 +35784,17 @@ const useListSalesOrders = (params = {}) => {
|
|
|
35773
35784
|
});
|
|
35774
35785
|
};
|
|
35775
35786
|
|
|
35776
|
-
var __getOwnPropSymbols$
|
|
35777
|
-
var __hasOwnProp$
|
|
35778
|
-
var __propIsEnum$
|
|
35787
|
+
var __getOwnPropSymbols$d = Object.getOwnPropertySymbols;
|
|
35788
|
+
var __hasOwnProp$d = Object.prototype.hasOwnProperty;
|
|
35789
|
+
var __propIsEnum$d = Object.prototype.propertyIsEnumerable;
|
|
35779
35790
|
var __objRest$6 = (source, exclude) => {
|
|
35780
35791
|
var target = {};
|
|
35781
35792
|
for (var prop in source)
|
|
35782
|
-
if (__hasOwnProp$
|
|
35793
|
+
if (__hasOwnProp$d.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
35783
35794
|
target[prop] = source[prop];
|
|
35784
|
-
if (source != null && __getOwnPropSymbols$
|
|
35785
|
-
for (var prop of __getOwnPropSymbols$
|
|
35786
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
35795
|
+
if (source != null && __getOwnPropSymbols$d)
|
|
35796
|
+
for (var prop of __getOwnPropSymbols$d(source)) {
|
|
35797
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$d.call(source, prop))
|
|
35787
35798
|
target[prop] = source[prop];
|
|
35788
35799
|
}
|
|
35789
35800
|
return target;
|
|
@@ -35821,17 +35832,17 @@ const useNotifySalesOrderShipped = () => {
|
|
|
35821
35832
|
});
|
|
35822
35833
|
};
|
|
35823
35834
|
|
|
35824
|
-
var __getOwnPropSymbols$
|
|
35825
|
-
var __hasOwnProp$
|
|
35826
|
-
var __propIsEnum$
|
|
35835
|
+
var __getOwnPropSymbols$c = Object.getOwnPropertySymbols;
|
|
35836
|
+
var __hasOwnProp$c = Object.prototype.hasOwnProperty;
|
|
35837
|
+
var __propIsEnum$c = Object.prototype.propertyIsEnumerable;
|
|
35827
35838
|
var __objRest$5 = (source, exclude) => {
|
|
35828
35839
|
var target = {};
|
|
35829
35840
|
for (var prop in source)
|
|
35830
|
-
if (__hasOwnProp$
|
|
35841
|
+
if (__hasOwnProp$c.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
35831
35842
|
target[prop] = source[prop];
|
|
35832
|
-
if (source != null && __getOwnPropSymbols$
|
|
35833
|
-
for (var prop of __getOwnPropSymbols$
|
|
35834
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
35843
|
+
if (source != null && __getOwnPropSymbols$c)
|
|
35844
|
+
for (var prop of __getOwnPropSymbols$c(source)) {
|
|
35845
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$c.call(source, prop))
|
|
35835
35846
|
target[prop] = source[prop];
|
|
35836
35847
|
}
|
|
35837
35848
|
return target;
|
|
@@ -35895,17 +35906,17 @@ const useListSalesOrderShipments = (params) => {
|
|
|
35895
35906
|
});
|
|
35896
35907
|
};
|
|
35897
35908
|
|
|
35898
|
-
var __getOwnPropSymbols$
|
|
35899
|
-
var __hasOwnProp$
|
|
35900
|
-
var __propIsEnum$
|
|
35909
|
+
var __getOwnPropSymbols$b = Object.getOwnPropertySymbols;
|
|
35910
|
+
var __hasOwnProp$b = Object.prototype.hasOwnProperty;
|
|
35911
|
+
var __propIsEnum$b = Object.prototype.propertyIsEnumerable;
|
|
35901
35912
|
var __objRest$4 = (source, exclude) => {
|
|
35902
35913
|
var target = {};
|
|
35903
35914
|
for (var prop in source)
|
|
35904
|
-
if (__hasOwnProp$
|
|
35915
|
+
if (__hasOwnProp$b.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
35905
35916
|
target[prop] = source[prop];
|
|
35906
|
-
if (source != null && __getOwnPropSymbols$
|
|
35907
|
-
for (var prop of __getOwnPropSymbols$
|
|
35908
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
35917
|
+
if (source != null && __getOwnPropSymbols$b)
|
|
35918
|
+
for (var prop of __getOwnPropSymbols$b(source)) {
|
|
35919
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$b.call(source, prop))
|
|
35909
35920
|
target[prop] = source[prop];
|
|
35910
35921
|
}
|
|
35911
35922
|
return target;
|
|
@@ -35943,25 +35954,25 @@ const useUpdateSalesOrderShipment = () => {
|
|
|
35943
35954
|
});
|
|
35944
35955
|
};
|
|
35945
35956
|
|
|
35946
|
-
var __defProp$
|
|
35947
|
-
var __defProps$
|
|
35948
|
-
var __getOwnPropDescs$
|
|
35949
|
-
var __getOwnPropSymbols$
|
|
35950
|
-
var __hasOwnProp$
|
|
35951
|
-
var __propIsEnum$
|
|
35952
|
-
var __defNormalProp$
|
|
35953
|
-
var __spreadValues$
|
|
35957
|
+
var __defProp$8 = Object.defineProperty;
|
|
35958
|
+
var __defProps$6 = Object.defineProperties;
|
|
35959
|
+
var __getOwnPropDescs$6 = Object.getOwnPropertyDescriptors;
|
|
35960
|
+
var __getOwnPropSymbols$a = Object.getOwnPropertySymbols;
|
|
35961
|
+
var __hasOwnProp$a = Object.prototype.hasOwnProperty;
|
|
35962
|
+
var __propIsEnum$a = Object.prototype.propertyIsEnumerable;
|
|
35963
|
+
var __defNormalProp$8 = (obj, key, value) => key in obj ? __defProp$8(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
35964
|
+
var __spreadValues$8 = (a, b) => {
|
|
35954
35965
|
for (var prop in b || (b = {}))
|
|
35955
|
-
if (__hasOwnProp$
|
|
35956
|
-
__defNormalProp$
|
|
35957
|
-
if (__getOwnPropSymbols$
|
|
35958
|
-
for (var prop of __getOwnPropSymbols$
|
|
35959
|
-
if (__propIsEnum$
|
|
35960
|
-
__defNormalProp$
|
|
35966
|
+
if (__hasOwnProp$a.call(b, prop))
|
|
35967
|
+
__defNormalProp$8(a, prop, b[prop]);
|
|
35968
|
+
if (__getOwnPropSymbols$a)
|
|
35969
|
+
for (var prop of __getOwnPropSymbols$a(b)) {
|
|
35970
|
+
if (__propIsEnum$a.call(b, prop))
|
|
35971
|
+
__defNormalProp$8(a, prop, b[prop]);
|
|
35961
35972
|
}
|
|
35962
35973
|
return a;
|
|
35963
35974
|
};
|
|
35964
|
-
var __spreadProps$
|
|
35975
|
+
var __spreadProps$6 = (a, b) => __defProps$6(a, __getOwnPropDescs$6(b));
|
|
35965
35976
|
var __async$d = (__this, __arguments, generator) => {
|
|
35966
35977
|
return new Promise((resolve, reject) => {
|
|
35967
35978
|
var fulfilled = (value) => {
|
|
@@ -36003,7 +36014,7 @@ const useCreateShipment = () => {
|
|
|
36003
36014
|
postalCode: "",
|
|
36004
36015
|
stateProvince: ""
|
|
36005
36016
|
};
|
|
36006
|
-
return (yield client.shipments.create(__spreadProps$
|
|
36017
|
+
return (yield client.shipments.create(__spreadProps$6(__spreadValues$8({}, shipment), {
|
|
36007
36018
|
shipTo
|
|
36008
36019
|
}))).data;
|
|
36009
36020
|
}),
|
|
@@ -36044,17 +36055,17 @@ const useGetShipment = (shipmentId) => {
|
|
|
36044
36055
|
});
|
|
36045
36056
|
};
|
|
36046
36057
|
|
|
36047
|
-
var __getOwnPropSymbols$
|
|
36048
|
-
var __hasOwnProp$
|
|
36049
|
-
var __propIsEnum$
|
|
36058
|
+
var __getOwnPropSymbols$9 = Object.getOwnPropertySymbols;
|
|
36059
|
+
var __hasOwnProp$9 = Object.prototype.hasOwnProperty;
|
|
36060
|
+
var __propIsEnum$9 = Object.prototype.propertyIsEnumerable;
|
|
36050
36061
|
var __objRest$3 = (source, exclude) => {
|
|
36051
36062
|
var target = {};
|
|
36052
36063
|
for (var prop in source)
|
|
36053
|
-
if (__hasOwnProp$
|
|
36064
|
+
if (__hasOwnProp$9.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
36054
36065
|
target[prop] = source[prop];
|
|
36055
|
-
if (source != null && __getOwnPropSymbols$
|
|
36056
|
-
for (var prop of __getOwnPropSymbols$
|
|
36057
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
36066
|
+
if (source != null && __getOwnPropSymbols$9)
|
|
36067
|
+
for (var prop of __getOwnPropSymbols$9(source)) {
|
|
36068
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$9.call(source, prop))
|
|
36058
36069
|
target[prop] = source[prop];
|
|
36059
36070
|
}
|
|
36060
36071
|
return target;
|
|
@@ -36071,28 +36082,28 @@ const useListShipments = (_params) => {
|
|
|
36071
36082
|
});
|
|
36072
36083
|
};
|
|
36073
36084
|
|
|
36074
|
-
var __defProp$
|
|
36075
|
-
var __defProps$
|
|
36076
|
-
var __getOwnPropDescs$
|
|
36077
|
-
var __getOwnPropSymbols$
|
|
36078
|
-
var __hasOwnProp$
|
|
36079
|
-
var __propIsEnum$
|
|
36080
|
-
var __defNormalProp$
|
|
36081
|
-
var __spreadValues$
|
|
36085
|
+
var __defProp$7 = Object.defineProperty;
|
|
36086
|
+
var __defProps$5 = Object.defineProperties;
|
|
36087
|
+
var __getOwnPropDescs$5 = Object.getOwnPropertyDescriptors;
|
|
36088
|
+
var __getOwnPropSymbols$8 = Object.getOwnPropertySymbols;
|
|
36089
|
+
var __hasOwnProp$8 = Object.prototype.hasOwnProperty;
|
|
36090
|
+
var __propIsEnum$8 = Object.prototype.propertyIsEnumerable;
|
|
36091
|
+
var __defNormalProp$7 = (obj, key, value) => key in obj ? __defProp$7(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
36092
|
+
var __spreadValues$7 = (a, b) => {
|
|
36082
36093
|
for (var prop in b || (b = {}))
|
|
36083
|
-
if (__hasOwnProp$
|
|
36084
|
-
__defNormalProp$
|
|
36085
|
-
if (__getOwnPropSymbols$
|
|
36086
|
-
for (var prop of __getOwnPropSymbols$
|
|
36087
|
-
if (__propIsEnum$
|
|
36088
|
-
__defNormalProp$
|
|
36094
|
+
if (__hasOwnProp$8.call(b, prop))
|
|
36095
|
+
__defNormalProp$7(a, prop, b[prop]);
|
|
36096
|
+
if (__getOwnPropSymbols$8)
|
|
36097
|
+
for (var prop of __getOwnPropSymbols$8(b)) {
|
|
36098
|
+
if (__propIsEnum$8.call(b, prop))
|
|
36099
|
+
__defNormalProp$7(a, prop, b[prop]);
|
|
36089
36100
|
}
|
|
36090
36101
|
return a;
|
|
36091
36102
|
};
|
|
36092
|
-
var __spreadProps$
|
|
36103
|
+
var __spreadProps$5 = (a, b) => __defProps$5(a, __getOwnPropDescs$5(b));
|
|
36093
36104
|
const useListShippingRules = (params) => {
|
|
36094
36105
|
const { client } = useShipEngine();
|
|
36095
|
-
return reactQuery.useQuery(__spreadProps$
|
|
36106
|
+
return reactQuery.useQuery(__spreadProps$5(__spreadValues$7({}, params), {
|
|
36096
36107
|
onError,
|
|
36097
36108
|
queryFn: () => {
|
|
36098
36109
|
return client.shippingRules.list();
|
|
@@ -36314,17 +36325,17 @@ const useListWarehouses = (options) => {
|
|
|
36314
36325
|
});
|
|
36315
36326
|
};
|
|
36316
36327
|
|
|
36317
|
-
var __getOwnPropSymbols$
|
|
36318
|
-
var __hasOwnProp$
|
|
36319
|
-
var __propIsEnum$
|
|
36328
|
+
var __getOwnPropSymbols$7 = Object.getOwnPropertySymbols;
|
|
36329
|
+
var __hasOwnProp$7 = Object.prototype.hasOwnProperty;
|
|
36330
|
+
var __propIsEnum$7 = Object.prototype.propertyIsEnumerable;
|
|
36320
36331
|
var __objRest$2 = (source, exclude) => {
|
|
36321
36332
|
var target = {};
|
|
36322
36333
|
for (var prop in source)
|
|
36323
|
-
if (__hasOwnProp$
|
|
36334
|
+
if (__hasOwnProp$7.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
36324
36335
|
target[prop] = source[prop];
|
|
36325
|
-
if (source != null && __getOwnPropSymbols$
|
|
36326
|
-
for (var prop of __getOwnPropSymbols$
|
|
36327
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
36336
|
+
if (source != null && __getOwnPropSymbols$7)
|
|
36337
|
+
for (var prop of __getOwnPropSymbols$7(source)) {
|
|
36338
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$7.call(source, prop))
|
|
36328
36339
|
target[prop] = source[prop];
|
|
36329
36340
|
}
|
|
36330
36341
|
return target;
|
|
@@ -36404,16 +36415,33 @@ const useUpdateAccountBillingPlan = () => {
|
|
|
36404
36415
|
});
|
|
36405
36416
|
};
|
|
36406
36417
|
|
|
36407
|
-
|
|
36418
|
+
var __defProp$6 = Object.defineProperty;
|
|
36419
|
+
var __defProps$4 = Object.defineProperties;
|
|
36420
|
+
var __getOwnPropDescs$4 = Object.getOwnPropertyDescriptors;
|
|
36421
|
+
var __getOwnPropSymbols$6 = Object.getOwnPropertySymbols;
|
|
36422
|
+
var __hasOwnProp$6 = Object.prototype.hasOwnProperty;
|
|
36423
|
+
var __propIsEnum$6 = Object.prototype.propertyIsEnumerable;
|
|
36424
|
+
var __defNormalProp$6 = (obj, key, value) => key in obj ? __defProp$6(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
36425
|
+
var __spreadValues$6 = (a, b) => {
|
|
36426
|
+
for (var prop in b || (b = {}))
|
|
36427
|
+
if (__hasOwnProp$6.call(b, prop))
|
|
36428
|
+
__defNormalProp$6(a, prop, b[prop]);
|
|
36429
|
+
if (__getOwnPropSymbols$6)
|
|
36430
|
+
for (var prop of __getOwnPropSymbols$6(b)) {
|
|
36431
|
+
if (__propIsEnum$6.call(b, prop))
|
|
36432
|
+
__defNormalProp$6(a, prop, b[prop]);
|
|
36433
|
+
}
|
|
36434
|
+
return a;
|
|
36435
|
+
};
|
|
36436
|
+
var __spreadProps$4 = (a, b) => __defProps$4(a, __getOwnPropDescs$4(b));
|
|
36437
|
+
const useGetHereToken = (params) => {
|
|
36408
36438
|
const { client } = useShipEngine();
|
|
36409
|
-
return reactQuery.useQuery({
|
|
36410
|
-
enabled: options.providers.length > 0,
|
|
36439
|
+
return reactQuery.useQuery(__spreadProps$4(__spreadValues$6({}, params), {
|
|
36411
36440
|
onError,
|
|
36412
|
-
queryFn: () => client.servicePoints.
|
|
36413
|
-
queryKey: ["
|
|
36414
|
-
retry: false,
|
|
36441
|
+
queryFn: () => client.servicePoints.getHereToken(),
|
|
36442
|
+
queryKey: ["useGetHereToken"],
|
|
36415
36443
|
select: (result) => result.data
|
|
36416
|
-
});
|
|
36444
|
+
}));
|
|
36417
36445
|
};
|
|
36418
36446
|
|
|
36419
36447
|
const useGetServicePoint = ({
|
|
@@ -36439,6 +36467,18 @@ const useGetServicePoint = ({
|
|
|
36439
36467
|
});
|
|
36440
36468
|
};
|
|
36441
36469
|
|
|
36470
|
+
const useListServicePoints = (options) => {
|
|
36471
|
+
const { client } = useShipEngine();
|
|
36472
|
+
return reactQuery.useQuery({
|
|
36473
|
+
enabled: options.providers.length > 0,
|
|
36474
|
+
onError,
|
|
36475
|
+
queryFn: () => client.servicePoints.list(options),
|
|
36476
|
+
queryKey: ["useListServicePoints", options],
|
|
36477
|
+
retry: false,
|
|
36478
|
+
select: (result) => result.data
|
|
36479
|
+
});
|
|
36480
|
+
};
|
|
36481
|
+
|
|
36442
36482
|
var __async$5 = (__this, __arguments, generator) => {
|
|
36443
36483
|
return new Promise((resolve, reject) => {
|
|
36444
36484
|
var fulfilled = (value) => {
|
|
@@ -37934,6 +37974,7 @@ exports.useGetCurrenciesByCarrier = useGetCurrenciesByCarrier;
|
|
|
37934
37974
|
exports.useGetFundingSourceById = useGetFundingSourceById;
|
|
37935
37975
|
exports.useGetFundingSourceMetadata = useGetFundingSourceMetadata;
|
|
37936
37976
|
exports.useGetFundingSourceTransactions = useGetFundingSourceTransactions;
|
|
37977
|
+
exports.useGetHereToken = useGetHereToken;
|
|
37937
37978
|
exports.useGetInsuranceAccount = useGetInsuranceAccount;
|
|
37938
37979
|
exports.useGetInsuranceFundingSourceAcceptedTerms = useGetInsuranceFundingSourceAcceptedTerms;
|
|
37939
37980
|
exports.useGetLabel = useGetLabel;
|