@shipengine/alchemy 5.4.4 → 5.4.6
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.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$q = Object.getOwnPropertySymbols;
|
|
10794
|
+
var __hasOwnProp$q = Object.prototype.hasOwnProperty;
|
|
10795
|
+
var __propIsEnum$q = Object.prototype.propertyIsEnumerable;
|
|
10796
10796
|
var __objRest$f = (source, exclude) => {
|
|
10797
10797
|
var target = {};
|
|
10798
10798
|
for (var prop in source)
|
|
10799
|
-
if (__hasOwnProp$
|
|
10799
|
+
if (__hasOwnProp$q.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$q)
|
|
10802
|
+
for (var prop of __getOwnPropSymbols$q(source)) {
|
|
10803
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$q.call(source, prop))
|
|
10804
10804
|
target[prop] = source[prop];
|
|
10805
10805
|
}
|
|
10806
10806
|
return target;
|
|
@@ -10922,17 +10922,17 @@ const types = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
|
|
|
10922
10922
|
RateCardStatus
|
|
10923
10923
|
}, Symbol.toStringTag, { value: 'Module' }));
|
|
10924
10924
|
|
|
10925
|
-
var __getOwnPropSymbols$
|
|
10926
|
-
var __hasOwnProp$
|
|
10927
|
-
var __propIsEnum$
|
|
10925
|
+
var __getOwnPropSymbols$p = Object.getOwnPropertySymbols;
|
|
10926
|
+
var __hasOwnProp$p = Object.prototype.hasOwnProperty;
|
|
10927
|
+
var __propIsEnum$p = Object.prototype.propertyIsEnumerable;
|
|
10928
10928
|
var __objRest$e = (source, exclude) => {
|
|
10929
10929
|
var target = {};
|
|
10930
10930
|
for (var prop in source)
|
|
10931
|
-
if (__hasOwnProp$
|
|
10931
|
+
if (__hasOwnProp$p.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
10932
10932
|
target[prop] = source[prop];
|
|
10933
|
-
if (source != null && __getOwnPropSymbols$
|
|
10934
|
-
for (var prop of __getOwnPropSymbols$
|
|
10935
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
10933
|
+
if (source != null && __getOwnPropSymbols$p)
|
|
10934
|
+
for (var prop of __getOwnPropSymbols$p(source)) {
|
|
10935
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$p.call(source, prop))
|
|
10936
10936
|
target[prop] = source[prop];
|
|
10937
10937
|
}
|
|
10938
10938
|
return target;
|
|
@@ -13706,33 +13706,33 @@ const getEndUserIpAddress = () => __async$M(void 0, null, function* () {
|
|
|
13706
13706
|
}
|
|
13707
13707
|
});
|
|
13708
13708
|
|
|
13709
|
-
var __defProp$
|
|
13710
|
-
var __defProps$
|
|
13711
|
-
var __getOwnPropDescs$
|
|
13712
|
-
var __getOwnPropSymbols$
|
|
13713
|
-
var __hasOwnProp$
|
|
13714
|
-
var __propIsEnum$
|
|
13715
|
-
var __defNormalProp$
|
|
13716
|
-
var __spreadValues$
|
|
13709
|
+
var __defProp$d = Object.defineProperty;
|
|
13710
|
+
var __defProps$9 = Object.defineProperties;
|
|
13711
|
+
var __getOwnPropDescs$9 = Object.getOwnPropertyDescriptors;
|
|
13712
|
+
var __getOwnPropSymbols$o = Object.getOwnPropertySymbols;
|
|
13713
|
+
var __hasOwnProp$o = Object.prototype.hasOwnProperty;
|
|
13714
|
+
var __propIsEnum$o = Object.prototype.propertyIsEnumerable;
|
|
13715
|
+
var __defNormalProp$d = (obj, key, value) => key in obj ? __defProp$d(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
13716
|
+
var __spreadValues$d = (a, b) => {
|
|
13717
13717
|
for (var prop in b || (b = {}))
|
|
13718
|
-
if (__hasOwnProp$
|
|
13719
|
-
__defNormalProp$
|
|
13720
|
-
if (__getOwnPropSymbols$
|
|
13721
|
-
for (var prop of __getOwnPropSymbols$
|
|
13722
|
-
if (__propIsEnum$
|
|
13723
|
-
__defNormalProp$
|
|
13718
|
+
if (__hasOwnProp$o.call(b, prop))
|
|
13719
|
+
__defNormalProp$d(a, prop, b[prop]);
|
|
13720
|
+
if (__getOwnPropSymbols$o)
|
|
13721
|
+
for (var prop of __getOwnPropSymbols$o(b)) {
|
|
13722
|
+
if (__propIsEnum$o.call(b, prop))
|
|
13723
|
+
__defNormalProp$d(a, prop, b[prop]);
|
|
13724
13724
|
}
|
|
13725
13725
|
return a;
|
|
13726
13726
|
};
|
|
13727
|
-
var __spreadProps$
|
|
13727
|
+
var __spreadProps$9 = (a, b) => __defProps$9(a, __getOwnPropDescs$9(b));
|
|
13728
13728
|
var __objRest$d = (source, exclude) => {
|
|
13729
13729
|
var target = {};
|
|
13730
13730
|
for (var prop in source)
|
|
13731
|
-
if (__hasOwnProp$
|
|
13731
|
+
if (__hasOwnProp$o.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
13732
13732
|
target[prop] = source[prop];
|
|
13733
|
-
if (source != null && __getOwnPropSymbols$
|
|
13734
|
-
for (var prop of __getOwnPropSymbols$
|
|
13735
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
13733
|
+
if (source != null && __getOwnPropSymbols$o)
|
|
13734
|
+
for (var prop of __getOwnPropSymbols$o(source)) {
|
|
13735
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$o.call(source, prop))
|
|
13736
13736
|
target[prop] = source[prop];
|
|
13737
13737
|
}
|
|
13738
13738
|
return target;
|
|
@@ -13780,7 +13780,7 @@ class CarriersAPI {
|
|
|
13780
13780
|
const endUserIpAddress = yield getEndUserIpAddress();
|
|
13781
13781
|
if (!endUserIpAddress)
|
|
13782
13782
|
return Promise.reject([new CodedError("Unable to get IP address")]);
|
|
13783
|
-
return yield this.client.post(`/v1/registration/${carrierCode}`, __spreadProps$
|
|
13783
|
+
return yield this.client.post(`/v1/registration/${carrierCode}`, __spreadProps$9(__spreadValues$d({}, connection), {
|
|
13784
13784
|
endUserIpAddress
|
|
13785
13785
|
}));
|
|
13786
13786
|
});
|
|
@@ -13911,7 +13911,15 @@ class ConnectionsAPI {
|
|
|
13911
13911
|
this.connectCarrier = (carrierName, formData) => __async$K(this, null, function* () {
|
|
13912
13912
|
return yield this.client.post(
|
|
13913
13913
|
`/v1/connections/carriers/${carrierName}`,
|
|
13914
|
-
formData
|
|
13914
|
+
formData,
|
|
13915
|
+
{
|
|
13916
|
+
// This actually doesn't work in-browser; redirects will still be followed if the location header
|
|
13917
|
+
// is set. This is relying on the Elements Proxy stripping that header and putting it in the body.
|
|
13918
|
+
maxRedirects: 0,
|
|
13919
|
+
validateStatus: (status) => {
|
|
13920
|
+
return status >= 200 && status < 400;
|
|
13921
|
+
}
|
|
13922
|
+
}
|
|
13915
13923
|
);
|
|
13916
13924
|
});
|
|
13917
13925
|
/**
|
|
@@ -16136,19 +16144,19 @@ class CustomPackagesAPI {
|
|
|
16136
16144
|
}
|
|
16137
16145
|
}
|
|
16138
16146
|
|
|
16139
|
-
var __defProp$
|
|
16140
|
-
var __getOwnPropSymbols$
|
|
16141
|
-
var __hasOwnProp$
|
|
16142
|
-
var __propIsEnum$
|
|
16143
|
-
var __defNormalProp$
|
|
16144
|
-
var __spreadValues$
|
|
16147
|
+
var __defProp$c = Object.defineProperty;
|
|
16148
|
+
var __getOwnPropSymbols$n = Object.getOwnPropertySymbols;
|
|
16149
|
+
var __hasOwnProp$n = Object.prototype.hasOwnProperty;
|
|
16150
|
+
var __propIsEnum$n = Object.prototype.propertyIsEnumerable;
|
|
16151
|
+
var __defNormalProp$c = (obj, key, value) => key in obj ? __defProp$c(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
16152
|
+
var __spreadValues$c = (a, b) => {
|
|
16145
16153
|
for (var prop in b || (b = {}))
|
|
16146
|
-
if (__hasOwnProp$
|
|
16147
|
-
__defNormalProp$
|
|
16148
|
-
if (__getOwnPropSymbols$
|
|
16149
|
-
for (var prop of __getOwnPropSymbols$
|
|
16150
|
-
if (__propIsEnum$
|
|
16151
|
-
__defNormalProp$
|
|
16154
|
+
if (__hasOwnProp$n.call(b, prop))
|
|
16155
|
+
__defNormalProp$c(a, prop, b[prop]);
|
|
16156
|
+
if (__getOwnPropSymbols$n)
|
|
16157
|
+
for (var prop of __getOwnPropSymbols$n(b)) {
|
|
16158
|
+
if (__propIsEnum$n.call(b, prop))
|
|
16159
|
+
__defNormalProp$c(a, prop, b[prop]);
|
|
16152
16160
|
}
|
|
16153
16161
|
return a;
|
|
16154
16162
|
};
|
|
@@ -16196,7 +16204,7 @@ class FundingSourcesAPI {
|
|
|
16196
16204
|
if (!endUserIpAddress) {
|
|
16197
16205
|
return Promise.reject([new CodedError("Unable to get IP address")]);
|
|
16198
16206
|
}
|
|
16199
|
-
return yield this.client.post("/v1/funding_sources", __spreadValues$
|
|
16207
|
+
return yield this.client.post("/v1/funding_sources", __spreadValues$c({
|
|
16200
16208
|
endUserIpAddress
|
|
16201
16209
|
}, createFundingSource));
|
|
16202
16210
|
});
|
|
@@ -16228,7 +16236,7 @@ class FundingSourcesAPI {
|
|
|
16228
16236
|
if (!endUserIpAddress) {
|
|
16229
16237
|
return Promise.reject([new CodedError("Unable to get IP address")]);
|
|
16230
16238
|
}
|
|
16231
|
-
return yield this.client.post("/v1/registration/funding_source", __spreadValues$
|
|
16239
|
+
return yield this.client.post("/v1/registration/funding_source", __spreadValues$c({
|
|
16232
16240
|
endUserIpAddress
|
|
16233
16241
|
}, carrier));
|
|
16234
16242
|
});
|
|
@@ -16542,19 +16550,19 @@ class SellersAPI {
|
|
|
16542
16550
|
}
|
|
16543
16551
|
}
|
|
16544
16552
|
|
|
16545
|
-
var __defProp$
|
|
16546
|
-
var __getOwnPropSymbols$
|
|
16547
|
-
var __hasOwnProp$
|
|
16548
|
-
var __propIsEnum$
|
|
16549
|
-
var __defNormalProp$
|
|
16550
|
-
var __spreadValues$
|
|
16553
|
+
var __defProp$b = Object.defineProperty;
|
|
16554
|
+
var __getOwnPropSymbols$m = Object.getOwnPropertySymbols;
|
|
16555
|
+
var __hasOwnProp$m = Object.prototype.hasOwnProperty;
|
|
16556
|
+
var __propIsEnum$m = Object.prototype.propertyIsEnumerable;
|
|
16557
|
+
var __defNormalProp$b = (obj, key, value) => key in obj ? __defProp$b(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
16558
|
+
var __spreadValues$b = (a, b) => {
|
|
16551
16559
|
for (var prop in b || (b = {}))
|
|
16552
|
-
if (__hasOwnProp$
|
|
16553
|
-
__defNormalProp$
|
|
16554
|
-
if (__getOwnPropSymbols$
|
|
16555
|
-
for (var prop of __getOwnPropSymbols$
|
|
16556
|
-
if (__propIsEnum$
|
|
16557
|
-
__defNormalProp$
|
|
16560
|
+
if (__hasOwnProp$m.call(b, prop))
|
|
16561
|
+
__defNormalProp$b(a, prop, b[prop]);
|
|
16562
|
+
if (__getOwnPropSymbols$m)
|
|
16563
|
+
for (var prop of __getOwnPropSymbols$m(b)) {
|
|
16564
|
+
if (__propIsEnum$m.call(b, prop))
|
|
16565
|
+
__defNormalProp$b(a, prop, b[prop]);
|
|
16558
16566
|
}
|
|
16559
16567
|
return a;
|
|
16560
16568
|
};
|
|
@@ -16566,7 +16574,7 @@ class ServicePointsAPI {
|
|
|
16566
16574
|
* Either an address, coordinates, or an address query
|
|
16567
16575
|
*/
|
|
16568
16576
|
this.list = (options) => {
|
|
16569
|
-
return this.client.post("/v1/service_points/list", __spreadValues$
|
|
16577
|
+
return this.client.post("/v1/service_points/list", __spreadValues$b({}, options));
|
|
16570
16578
|
};
|
|
16571
16579
|
/**
|
|
16572
16580
|
* Get a specific service point by its carrier code, country code, and id
|
|
@@ -16574,6 +16582,12 @@ class ServicePointsAPI {
|
|
|
16574
16582
|
this.get = ({ carrierCode, countryCode, id }) => {
|
|
16575
16583
|
return this.client.get(`/v1/service_points/${carrierCode}/${countryCode}/${id}`);
|
|
16576
16584
|
};
|
|
16585
|
+
/**
|
|
16586
|
+
* Get an OAuth token to make HERE Maps API requests
|
|
16587
|
+
*/
|
|
16588
|
+
this.getHereToken = () => {
|
|
16589
|
+
return this.client.get("/here-api/generate-token");
|
|
16590
|
+
};
|
|
16577
16591
|
this.client = client;
|
|
16578
16592
|
}
|
|
16579
16593
|
}
|
|
@@ -33987,25 +34001,25 @@ class WebhooksAPI {
|
|
|
33987
34001
|
}
|
|
33988
34002
|
}
|
|
33989
34003
|
|
|
33990
|
-
var __defProp$
|
|
33991
|
-
var __defProps$
|
|
33992
|
-
var __getOwnPropDescs$
|
|
33993
|
-
var __getOwnPropSymbols$
|
|
33994
|
-
var __hasOwnProp$
|
|
33995
|
-
var __propIsEnum$
|
|
33996
|
-
var __defNormalProp$
|
|
33997
|
-
var __spreadValues$
|
|
34004
|
+
var __defProp$a = Object.defineProperty;
|
|
34005
|
+
var __defProps$8 = Object.defineProperties;
|
|
34006
|
+
var __getOwnPropDescs$8 = Object.getOwnPropertyDescriptors;
|
|
34007
|
+
var __getOwnPropSymbols$l = Object.getOwnPropertySymbols;
|
|
34008
|
+
var __hasOwnProp$l = Object.prototype.hasOwnProperty;
|
|
34009
|
+
var __propIsEnum$l = Object.prototype.propertyIsEnumerable;
|
|
34010
|
+
var __defNormalProp$a = (obj, key, value) => key in obj ? __defProp$a(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
34011
|
+
var __spreadValues$a = (a, b) => {
|
|
33998
34012
|
for (var prop in b || (b = {}))
|
|
33999
|
-
if (__hasOwnProp$
|
|
34000
|
-
__defNormalProp$
|
|
34001
|
-
if (__getOwnPropSymbols$
|
|
34002
|
-
for (var prop of __getOwnPropSymbols$
|
|
34003
|
-
if (__propIsEnum$
|
|
34004
|
-
__defNormalProp$
|
|
34013
|
+
if (__hasOwnProp$l.call(b, prop))
|
|
34014
|
+
__defNormalProp$a(a, prop, b[prop]);
|
|
34015
|
+
if (__getOwnPropSymbols$l)
|
|
34016
|
+
for (var prop of __getOwnPropSymbols$l(b)) {
|
|
34017
|
+
if (__propIsEnum$l.call(b, prop))
|
|
34018
|
+
__defNormalProp$a(a, prop, b[prop]);
|
|
34005
34019
|
}
|
|
34006
34020
|
return a;
|
|
34007
34021
|
};
|
|
34008
|
-
var __spreadProps$
|
|
34022
|
+
var __spreadProps$8 = (a, b) => __defProps$8(a, __getOwnPropDescs$8(b));
|
|
34009
34023
|
var __async$H = (__this, __arguments, generator) => {
|
|
34010
34024
|
return new Promise((resolve, reject) => {
|
|
34011
34025
|
var fulfilled = (value) => {
|
|
@@ -34029,7 +34043,7 @@ var __async$H = (__this, __arguments, generator) => {
|
|
|
34029
34043
|
const logger$1 = E({
|
|
34030
34044
|
level: process.env.NODE_ENV === "production" ? "fatal" : "info",
|
|
34031
34045
|
name: "shipengine-api",
|
|
34032
|
-
serializers: __spreadProps$
|
|
34046
|
+
serializers: __spreadProps$8(__spreadValues$a({}, k), {
|
|
34033
34047
|
req: (req) => ({
|
|
34034
34048
|
headers: req.headers,
|
|
34035
34049
|
method: req.method,
|
|
@@ -34053,7 +34067,7 @@ class ShipEngineAPI {
|
|
|
34053
34067
|
constructor(token, { baseURL, headers, getToken, onApiError }) {
|
|
34054
34068
|
const client = axios.create({
|
|
34055
34069
|
baseURL,
|
|
34056
|
-
headers: __spreadProps$
|
|
34070
|
+
headers: __spreadProps$8(__spreadValues$a({}, headers), {
|
|
34057
34071
|
"Content-Type": "application/json"
|
|
34058
34072
|
}),
|
|
34059
34073
|
paramsSerializer: (params) => lib.stringify(humpsExports.decamelizeKeys(params), { arrayFormat: "brackets" }),
|
|
@@ -34382,25 +34396,25 @@ const delay = (ms) => new Promise((resolve) => {
|
|
|
34382
34396
|
|
|
34383
34397
|
const onError = (_errors) => _default();
|
|
34384
34398
|
|
|
34385
|
-
var __defProp$
|
|
34386
|
-
var __defProps$
|
|
34387
|
-
var __getOwnPropDescs$
|
|
34388
|
-
var __getOwnPropSymbols$
|
|
34389
|
-
var __hasOwnProp$
|
|
34390
|
-
var __propIsEnum$
|
|
34391
|
-
var __defNormalProp$
|
|
34392
|
-
var __spreadValues$
|
|
34399
|
+
var __defProp$9 = Object.defineProperty;
|
|
34400
|
+
var __defProps$7 = Object.defineProperties;
|
|
34401
|
+
var __getOwnPropDescs$7 = Object.getOwnPropertyDescriptors;
|
|
34402
|
+
var __getOwnPropSymbols$k = Object.getOwnPropertySymbols;
|
|
34403
|
+
var __hasOwnProp$k = Object.prototype.hasOwnProperty;
|
|
34404
|
+
var __propIsEnum$k = Object.prototype.propertyIsEnumerable;
|
|
34405
|
+
var __defNormalProp$9 = (obj, key, value) => key in obj ? __defProp$9(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
34406
|
+
var __spreadValues$9 = (a, b) => {
|
|
34393
34407
|
for (var prop in b || (b = {}))
|
|
34394
|
-
if (__hasOwnProp$
|
|
34395
|
-
__defNormalProp$
|
|
34396
|
-
if (__getOwnPropSymbols$
|
|
34397
|
-
for (var prop of __getOwnPropSymbols$
|
|
34398
|
-
if (__propIsEnum$
|
|
34399
|
-
__defNormalProp$
|
|
34408
|
+
if (__hasOwnProp$k.call(b, prop))
|
|
34409
|
+
__defNormalProp$9(a, prop, b[prop]);
|
|
34410
|
+
if (__getOwnPropSymbols$k)
|
|
34411
|
+
for (var prop of __getOwnPropSymbols$k(b)) {
|
|
34412
|
+
if (__propIsEnum$k.call(b, prop))
|
|
34413
|
+
__defNormalProp$9(a, prop, b[prop]);
|
|
34400
34414
|
}
|
|
34401
34415
|
return a;
|
|
34402
34416
|
};
|
|
34403
|
-
var __spreadProps$
|
|
34417
|
+
var __spreadProps$7 = (a, b) => __defProps$7(a, __getOwnPropDescs$7(b));
|
|
34404
34418
|
const streams = [];
|
|
34405
34419
|
if (process.env.NODE_ENV === "production") {
|
|
34406
34420
|
streams.push({
|
|
@@ -34409,7 +34423,7 @@ if (process.env.NODE_ENV === "production") {
|
|
|
34409
34423
|
}
|
|
34410
34424
|
const logger = E({
|
|
34411
34425
|
name: "shipengine",
|
|
34412
|
-
serializers: __spreadProps$
|
|
34426
|
+
serializers: __spreadProps$7(__spreadValues$9({}, k), {
|
|
34413
34427
|
req: (req) => ({
|
|
34414
34428
|
headers: req.headers,
|
|
34415
34429
|
method: req.method,
|
|
@@ -34820,17 +34834,17 @@ const useListCarriers = () => {
|
|
|
34820
34834
|
});
|
|
34821
34835
|
};
|
|
34822
34836
|
|
|
34823
|
-
var __getOwnPropSymbols$
|
|
34824
|
-
var __hasOwnProp$
|
|
34825
|
-
var __propIsEnum$
|
|
34837
|
+
var __getOwnPropSymbols$j = Object.getOwnPropertySymbols;
|
|
34838
|
+
var __hasOwnProp$j = Object.prototype.hasOwnProperty;
|
|
34839
|
+
var __propIsEnum$j = Object.prototype.propertyIsEnumerable;
|
|
34826
34840
|
var __objRest$c = (source, exclude) => {
|
|
34827
34841
|
var target = {};
|
|
34828
34842
|
for (var prop in source)
|
|
34829
|
-
if (__hasOwnProp$
|
|
34843
|
+
if (__hasOwnProp$j.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
34830
34844
|
target[prop] = source[prop];
|
|
34831
|
-
if (source != null && __getOwnPropSymbols$
|
|
34832
|
-
for (var prop of __getOwnPropSymbols$
|
|
34833
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
34845
|
+
if (source != null && __getOwnPropSymbols$j)
|
|
34846
|
+
for (var prop of __getOwnPropSymbols$j(source)) {
|
|
34847
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$j.call(source, prop))
|
|
34834
34848
|
target[prop] = source[prop];
|
|
34835
34849
|
}
|
|
34836
34850
|
return target;
|
|
@@ -34921,17 +34935,17 @@ const useDeleteCarrier = () => {
|
|
|
34921
34935
|
});
|
|
34922
34936
|
};
|
|
34923
34937
|
|
|
34924
|
-
var __getOwnPropSymbols$
|
|
34925
|
-
var __hasOwnProp$
|
|
34926
|
-
var __propIsEnum$
|
|
34938
|
+
var __getOwnPropSymbols$i = Object.getOwnPropertySymbols;
|
|
34939
|
+
var __hasOwnProp$i = Object.prototype.hasOwnProperty;
|
|
34940
|
+
var __propIsEnum$i = Object.prototype.propertyIsEnumerable;
|
|
34927
34941
|
var __objRest$b = (source, exclude) => {
|
|
34928
34942
|
var target = {};
|
|
34929
34943
|
for (var prop in source)
|
|
34930
|
-
if (__hasOwnProp$
|
|
34944
|
+
if (__hasOwnProp$i.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
34931
34945
|
target[prop] = source[prop];
|
|
34932
|
-
if (source != null && __getOwnPropSymbols$
|
|
34933
|
-
for (var prop of __getOwnPropSymbols$
|
|
34934
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
34946
|
+
if (source != null && __getOwnPropSymbols$i)
|
|
34947
|
+
for (var prop of __getOwnPropSymbols$i(source)) {
|
|
34948
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$i.call(source, prop))
|
|
34935
34949
|
target[prop] = source[prop];
|
|
34936
34950
|
}
|
|
34937
34951
|
return target;
|
|
@@ -34948,17 +34962,17 @@ const useGetCarrierConnectionForm = (_params) => {
|
|
|
34948
34962
|
});
|
|
34949
34963
|
};
|
|
34950
34964
|
|
|
34951
|
-
var __getOwnPropSymbols$
|
|
34952
|
-
var __hasOwnProp$
|
|
34953
|
-
var __propIsEnum$
|
|
34965
|
+
var __getOwnPropSymbols$h = Object.getOwnPropertySymbols;
|
|
34966
|
+
var __hasOwnProp$h = Object.prototype.hasOwnProperty;
|
|
34967
|
+
var __propIsEnum$h = Object.prototype.propertyIsEnumerable;
|
|
34954
34968
|
var __objRest$a = (source, exclude) => {
|
|
34955
34969
|
var target = {};
|
|
34956
34970
|
for (var prop in source)
|
|
34957
|
-
if (__hasOwnProp$
|
|
34971
|
+
if (__hasOwnProp$h.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
34958
34972
|
target[prop] = source[prop];
|
|
34959
|
-
if (source != null && __getOwnPropSymbols$
|
|
34960
|
-
for (var prop of __getOwnPropSymbols$
|
|
34961
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
34973
|
+
if (source != null && __getOwnPropSymbols$h)
|
|
34974
|
+
for (var prop of __getOwnPropSymbols$h(source)) {
|
|
34975
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$h.call(source, prop))
|
|
34962
34976
|
target[prop] = source[prop];
|
|
34963
34977
|
}
|
|
34964
34978
|
return target;
|
|
@@ -35000,9 +35014,6 @@ const useConnectCarrierAccount = () => {
|
|
|
35000
35014
|
return useMutation({
|
|
35001
35015
|
mutationFn: (_0) => __async$w(void 0, [_0], function* ({ carrierName, formData }) {
|
|
35002
35016
|
const result = yield client.connections.connectCarrier(carrierName, formData);
|
|
35003
|
-
if (result.status > 300 && result.status < 309) {
|
|
35004
|
-
result.data.redirectUrl = result.request.res.responseUrl;
|
|
35005
|
-
}
|
|
35006
35017
|
return result.data;
|
|
35007
35018
|
}),
|
|
35008
35019
|
mutationKey: ["useConnectCarrierAccount"],
|
|
@@ -35234,17 +35245,17 @@ const useGetInsuranceAccount = (insuranceProvider) => {
|
|
|
35234
35245
|
});
|
|
35235
35246
|
};
|
|
35236
35247
|
|
|
35237
|
-
var __getOwnPropSymbols$
|
|
35238
|
-
var __hasOwnProp$
|
|
35239
|
-
var __propIsEnum$
|
|
35248
|
+
var __getOwnPropSymbols$g = Object.getOwnPropertySymbols;
|
|
35249
|
+
var __hasOwnProp$g = Object.prototype.hasOwnProperty;
|
|
35250
|
+
var __propIsEnum$g = Object.prototype.propertyIsEnumerable;
|
|
35240
35251
|
var __objRest$9 = (source, exclude) => {
|
|
35241
35252
|
var target = {};
|
|
35242
35253
|
for (var prop in source)
|
|
35243
|
-
if (__hasOwnProp$
|
|
35254
|
+
if (__hasOwnProp$g.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
35244
35255
|
target[prop] = source[prop];
|
|
35245
|
-
if (source != null && __getOwnPropSymbols$
|
|
35246
|
-
for (var prop of __getOwnPropSymbols$
|
|
35247
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
35256
|
+
if (source != null && __getOwnPropSymbols$g)
|
|
35257
|
+
for (var prop of __getOwnPropSymbols$g(source)) {
|
|
35258
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$g.call(source, prop))
|
|
35248
35259
|
target[prop] = source[prop];
|
|
35249
35260
|
}
|
|
35250
35261
|
return target;
|
|
@@ -35282,17 +35293,17 @@ const useAddInsuranceFunds = () => {
|
|
|
35282
35293
|
});
|
|
35283
35294
|
};
|
|
35284
35295
|
|
|
35285
|
-
var __getOwnPropSymbols$
|
|
35286
|
-
var __hasOwnProp$
|
|
35287
|
-
var __propIsEnum$
|
|
35296
|
+
var __getOwnPropSymbols$f = Object.getOwnPropertySymbols;
|
|
35297
|
+
var __hasOwnProp$f = Object.prototype.hasOwnProperty;
|
|
35298
|
+
var __propIsEnum$f = Object.prototype.propertyIsEnumerable;
|
|
35288
35299
|
var __objRest$8 = (source, exclude) => {
|
|
35289
35300
|
var target = {};
|
|
35290
35301
|
for (var prop in source)
|
|
35291
|
-
if (__hasOwnProp$
|
|
35302
|
+
if (__hasOwnProp$f.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
35292
35303
|
target[prop] = source[prop];
|
|
35293
|
-
if (source != null && __getOwnPropSymbols$
|
|
35294
|
-
for (var prop of __getOwnPropSymbols$
|
|
35295
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
35304
|
+
if (source != null && __getOwnPropSymbols$f)
|
|
35305
|
+
for (var prop of __getOwnPropSymbols$f(source)) {
|
|
35306
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$f.call(source, prop))
|
|
35296
35307
|
target[prop] = source[prop];
|
|
35297
35308
|
}
|
|
35298
35309
|
return target;
|
|
@@ -35345,17 +35356,17 @@ const useGetLabel = (labelId) => {
|
|
|
35345
35356
|
});
|
|
35346
35357
|
};
|
|
35347
35358
|
|
|
35348
|
-
var __getOwnPropSymbols$
|
|
35349
|
-
var __hasOwnProp$
|
|
35350
|
-
var __propIsEnum$
|
|
35359
|
+
var __getOwnPropSymbols$e = Object.getOwnPropertySymbols;
|
|
35360
|
+
var __hasOwnProp$e = Object.prototype.hasOwnProperty;
|
|
35361
|
+
var __propIsEnum$e = Object.prototype.propertyIsEnumerable;
|
|
35351
35362
|
var __objRest$7 = (source, exclude) => {
|
|
35352
35363
|
var target = {};
|
|
35353
35364
|
for (var prop in source)
|
|
35354
|
-
if (__hasOwnProp$
|
|
35365
|
+
if (__hasOwnProp$e.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
35355
35366
|
target[prop] = source[prop];
|
|
35356
|
-
if (source != null && __getOwnPropSymbols$
|
|
35357
|
-
for (var prop of __getOwnPropSymbols$
|
|
35358
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
35367
|
+
if (source != null && __getOwnPropSymbols$e)
|
|
35368
|
+
for (var prop of __getOwnPropSymbols$e(source)) {
|
|
35369
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$e.call(source, prop))
|
|
35359
35370
|
target[prop] = source[prop];
|
|
35360
35371
|
}
|
|
35361
35372
|
return target;
|
|
@@ -35751,17 +35762,17 @@ const useListSalesOrders = (params = {}) => {
|
|
|
35751
35762
|
});
|
|
35752
35763
|
};
|
|
35753
35764
|
|
|
35754
|
-
var __getOwnPropSymbols$
|
|
35755
|
-
var __hasOwnProp$
|
|
35756
|
-
var __propIsEnum$
|
|
35765
|
+
var __getOwnPropSymbols$d = Object.getOwnPropertySymbols;
|
|
35766
|
+
var __hasOwnProp$d = Object.prototype.hasOwnProperty;
|
|
35767
|
+
var __propIsEnum$d = Object.prototype.propertyIsEnumerable;
|
|
35757
35768
|
var __objRest$6 = (source, exclude) => {
|
|
35758
35769
|
var target = {};
|
|
35759
35770
|
for (var prop in source)
|
|
35760
|
-
if (__hasOwnProp$
|
|
35771
|
+
if (__hasOwnProp$d.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
35761
35772
|
target[prop] = source[prop];
|
|
35762
|
-
if (source != null && __getOwnPropSymbols$
|
|
35763
|
-
for (var prop of __getOwnPropSymbols$
|
|
35764
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
35773
|
+
if (source != null && __getOwnPropSymbols$d)
|
|
35774
|
+
for (var prop of __getOwnPropSymbols$d(source)) {
|
|
35775
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$d.call(source, prop))
|
|
35765
35776
|
target[prop] = source[prop];
|
|
35766
35777
|
}
|
|
35767
35778
|
return target;
|
|
@@ -35799,17 +35810,17 @@ const useNotifySalesOrderShipped = () => {
|
|
|
35799
35810
|
});
|
|
35800
35811
|
};
|
|
35801
35812
|
|
|
35802
|
-
var __getOwnPropSymbols$
|
|
35803
|
-
var __hasOwnProp$
|
|
35804
|
-
var __propIsEnum$
|
|
35813
|
+
var __getOwnPropSymbols$c = Object.getOwnPropertySymbols;
|
|
35814
|
+
var __hasOwnProp$c = Object.prototype.hasOwnProperty;
|
|
35815
|
+
var __propIsEnum$c = Object.prototype.propertyIsEnumerable;
|
|
35805
35816
|
var __objRest$5 = (source, exclude) => {
|
|
35806
35817
|
var target = {};
|
|
35807
35818
|
for (var prop in source)
|
|
35808
|
-
if (__hasOwnProp$
|
|
35819
|
+
if (__hasOwnProp$c.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
35809
35820
|
target[prop] = source[prop];
|
|
35810
|
-
if (source != null && __getOwnPropSymbols$
|
|
35811
|
-
for (var prop of __getOwnPropSymbols$
|
|
35812
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
35821
|
+
if (source != null && __getOwnPropSymbols$c)
|
|
35822
|
+
for (var prop of __getOwnPropSymbols$c(source)) {
|
|
35823
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$c.call(source, prop))
|
|
35813
35824
|
target[prop] = source[prop];
|
|
35814
35825
|
}
|
|
35815
35826
|
return target;
|
|
@@ -35873,17 +35884,17 @@ const useListSalesOrderShipments = (params) => {
|
|
|
35873
35884
|
});
|
|
35874
35885
|
};
|
|
35875
35886
|
|
|
35876
|
-
var __getOwnPropSymbols$
|
|
35877
|
-
var __hasOwnProp$
|
|
35878
|
-
var __propIsEnum$
|
|
35887
|
+
var __getOwnPropSymbols$b = Object.getOwnPropertySymbols;
|
|
35888
|
+
var __hasOwnProp$b = Object.prototype.hasOwnProperty;
|
|
35889
|
+
var __propIsEnum$b = Object.prototype.propertyIsEnumerable;
|
|
35879
35890
|
var __objRest$4 = (source, exclude) => {
|
|
35880
35891
|
var target = {};
|
|
35881
35892
|
for (var prop in source)
|
|
35882
|
-
if (__hasOwnProp$
|
|
35893
|
+
if (__hasOwnProp$b.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
35883
35894
|
target[prop] = source[prop];
|
|
35884
|
-
if (source != null && __getOwnPropSymbols$
|
|
35885
|
-
for (var prop of __getOwnPropSymbols$
|
|
35886
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
35895
|
+
if (source != null && __getOwnPropSymbols$b)
|
|
35896
|
+
for (var prop of __getOwnPropSymbols$b(source)) {
|
|
35897
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$b.call(source, prop))
|
|
35887
35898
|
target[prop] = source[prop];
|
|
35888
35899
|
}
|
|
35889
35900
|
return target;
|
|
@@ -35921,25 +35932,25 @@ const useUpdateSalesOrderShipment = () => {
|
|
|
35921
35932
|
});
|
|
35922
35933
|
};
|
|
35923
35934
|
|
|
35924
|
-
var __defProp$
|
|
35925
|
-
var __defProps$
|
|
35926
|
-
var __getOwnPropDescs$
|
|
35927
|
-
var __getOwnPropSymbols$
|
|
35928
|
-
var __hasOwnProp$
|
|
35929
|
-
var __propIsEnum$
|
|
35930
|
-
var __defNormalProp$
|
|
35931
|
-
var __spreadValues$
|
|
35935
|
+
var __defProp$8 = Object.defineProperty;
|
|
35936
|
+
var __defProps$6 = Object.defineProperties;
|
|
35937
|
+
var __getOwnPropDescs$6 = Object.getOwnPropertyDescriptors;
|
|
35938
|
+
var __getOwnPropSymbols$a = Object.getOwnPropertySymbols;
|
|
35939
|
+
var __hasOwnProp$a = Object.prototype.hasOwnProperty;
|
|
35940
|
+
var __propIsEnum$a = Object.prototype.propertyIsEnumerable;
|
|
35941
|
+
var __defNormalProp$8 = (obj, key, value) => key in obj ? __defProp$8(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
35942
|
+
var __spreadValues$8 = (a, b) => {
|
|
35932
35943
|
for (var prop in b || (b = {}))
|
|
35933
|
-
if (__hasOwnProp$
|
|
35934
|
-
__defNormalProp$
|
|
35935
|
-
if (__getOwnPropSymbols$
|
|
35936
|
-
for (var prop of __getOwnPropSymbols$
|
|
35937
|
-
if (__propIsEnum$
|
|
35938
|
-
__defNormalProp$
|
|
35944
|
+
if (__hasOwnProp$a.call(b, prop))
|
|
35945
|
+
__defNormalProp$8(a, prop, b[prop]);
|
|
35946
|
+
if (__getOwnPropSymbols$a)
|
|
35947
|
+
for (var prop of __getOwnPropSymbols$a(b)) {
|
|
35948
|
+
if (__propIsEnum$a.call(b, prop))
|
|
35949
|
+
__defNormalProp$8(a, prop, b[prop]);
|
|
35939
35950
|
}
|
|
35940
35951
|
return a;
|
|
35941
35952
|
};
|
|
35942
|
-
var __spreadProps$
|
|
35953
|
+
var __spreadProps$6 = (a, b) => __defProps$6(a, __getOwnPropDescs$6(b));
|
|
35943
35954
|
var __async$d = (__this, __arguments, generator) => {
|
|
35944
35955
|
return new Promise((resolve, reject) => {
|
|
35945
35956
|
var fulfilled = (value) => {
|
|
@@ -35981,7 +35992,7 @@ const useCreateShipment = () => {
|
|
|
35981
35992
|
postalCode: "",
|
|
35982
35993
|
stateProvince: ""
|
|
35983
35994
|
};
|
|
35984
|
-
return (yield client.shipments.create(__spreadProps$
|
|
35995
|
+
return (yield client.shipments.create(__spreadProps$6(__spreadValues$8({}, shipment), {
|
|
35985
35996
|
shipTo
|
|
35986
35997
|
}))).data;
|
|
35987
35998
|
}),
|
|
@@ -36022,17 +36033,17 @@ const useGetShipment = (shipmentId) => {
|
|
|
36022
36033
|
});
|
|
36023
36034
|
};
|
|
36024
36035
|
|
|
36025
|
-
var __getOwnPropSymbols$
|
|
36026
|
-
var __hasOwnProp$
|
|
36027
|
-
var __propIsEnum$
|
|
36036
|
+
var __getOwnPropSymbols$9 = Object.getOwnPropertySymbols;
|
|
36037
|
+
var __hasOwnProp$9 = Object.prototype.hasOwnProperty;
|
|
36038
|
+
var __propIsEnum$9 = Object.prototype.propertyIsEnumerable;
|
|
36028
36039
|
var __objRest$3 = (source, exclude) => {
|
|
36029
36040
|
var target = {};
|
|
36030
36041
|
for (var prop in source)
|
|
36031
|
-
if (__hasOwnProp$
|
|
36042
|
+
if (__hasOwnProp$9.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
36032
36043
|
target[prop] = source[prop];
|
|
36033
|
-
if (source != null && __getOwnPropSymbols$
|
|
36034
|
-
for (var prop of __getOwnPropSymbols$
|
|
36035
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
36044
|
+
if (source != null && __getOwnPropSymbols$9)
|
|
36045
|
+
for (var prop of __getOwnPropSymbols$9(source)) {
|
|
36046
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$9.call(source, prop))
|
|
36036
36047
|
target[prop] = source[prop];
|
|
36037
36048
|
}
|
|
36038
36049
|
return target;
|
|
@@ -36049,28 +36060,28 @@ const useListShipments = (_params) => {
|
|
|
36049
36060
|
});
|
|
36050
36061
|
};
|
|
36051
36062
|
|
|
36052
|
-
var __defProp$
|
|
36053
|
-
var __defProps$
|
|
36054
|
-
var __getOwnPropDescs$
|
|
36055
|
-
var __getOwnPropSymbols$
|
|
36056
|
-
var __hasOwnProp$
|
|
36057
|
-
var __propIsEnum$
|
|
36058
|
-
var __defNormalProp$
|
|
36059
|
-
var __spreadValues$
|
|
36063
|
+
var __defProp$7 = Object.defineProperty;
|
|
36064
|
+
var __defProps$5 = Object.defineProperties;
|
|
36065
|
+
var __getOwnPropDescs$5 = Object.getOwnPropertyDescriptors;
|
|
36066
|
+
var __getOwnPropSymbols$8 = Object.getOwnPropertySymbols;
|
|
36067
|
+
var __hasOwnProp$8 = Object.prototype.hasOwnProperty;
|
|
36068
|
+
var __propIsEnum$8 = Object.prototype.propertyIsEnumerable;
|
|
36069
|
+
var __defNormalProp$7 = (obj, key, value) => key in obj ? __defProp$7(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
36070
|
+
var __spreadValues$7 = (a, b) => {
|
|
36060
36071
|
for (var prop in b || (b = {}))
|
|
36061
|
-
if (__hasOwnProp$
|
|
36062
|
-
__defNormalProp$
|
|
36063
|
-
if (__getOwnPropSymbols$
|
|
36064
|
-
for (var prop of __getOwnPropSymbols$
|
|
36065
|
-
if (__propIsEnum$
|
|
36066
|
-
__defNormalProp$
|
|
36072
|
+
if (__hasOwnProp$8.call(b, prop))
|
|
36073
|
+
__defNormalProp$7(a, prop, b[prop]);
|
|
36074
|
+
if (__getOwnPropSymbols$8)
|
|
36075
|
+
for (var prop of __getOwnPropSymbols$8(b)) {
|
|
36076
|
+
if (__propIsEnum$8.call(b, prop))
|
|
36077
|
+
__defNormalProp$7(a, prop, b[prop]);
|
|
36067
36078
|
}
|
|
36068
36079
|
return a;
|
|
36069
36080
|
};
|
|
36070
|
-
var __spreadProps$
|
|
36081
|
+
var __spreadProps$5 = (a, b) => __defProps$5(a, __getOwnPropDescs$5(b));
|
|
36071
36082
|
const useListShippingRules = (params) => {
|
|
36072
36083
|
const { client } = useShipEngine();
|
|
36073
|
-
return useQuery(__spreadProps$
|
|
36084
|
+
return useQuery(__spreadProps$5(__spreadValues$7({}, params), {
|
|
36074
36085
|
onError,
|
|
36075
36086
|
queryFn: () => {
|
|
36076
36087
|
return client.shippingRules.list();
|
|
@@ -36292,17 +36303,17 @@ const useListWarehouses = (options) => {
|
|
|
36292
36303
|
});
|
|
36293
36304
|
};
|
|
36294
36305
|
|
|
36295
|
-
var __getOwnPropSymbols$
|
|
36296
|
-
var __hasOwnProp$
|
|
36297
|
-
var __propIsEnum$
|
|
36306
|
+
var __getOwnPropSymbols$7 = Object.getOwnPropertySymbols;
|
|
36307
|
+
var __hasOwnProp$7 = Object.prototype.hasOwnProperty;
|
|
36308
|
+
var __propIsEnum$7 = Object.prototype.propertyIsEnumerable;
|
|
36298
36309
|
var __objRest$2 = (source, exclude) => {
|
|
36299
36310
|
var target = {};
|
|
36300
36311
|
for (var prop in source)
|
|
36301
|
-
if (__hasOwnProp$
|
|
36312
|
+
if (__hasOwnProp$7.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
36302
36313
|
target[prop] = source[prop];
|
|
36303
|
-
if (source != null && __getOwnPropSymbols$
|
|
36304
|
-
for (var prop of __getOwnPropSymbols$
|
|
36305
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
36314
|
+
if (source != null && __getOwnPropSymbols$7)
|
|
36315
|
+
for (var prop of __getOwnPropSymbols$7(source)) {
|
|
36316
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$7.call(source, prop))
|
|
36306
36317
|
target[prop] = source[prop];
|
|
36307
36318
|
}
|
|
36308
36319
|
return target;
|
|
@@ -36382,16 +36393,33 @@ const useUpdateAccountBillingPlan = () => {
|
|
|
36382
36393
|
});
|
|
36383
36394
|
};
|
|
36384
36395
|
|
|
36385
|
-
|
|
36396
|
+
var __defProp$6 = Object.defineProperty;
|
|
36397
|
+
var __defProps$4 = Object.defineProperties;
|
|
36398
|
+
var __getOwnPropDescs$4 = Object.getOwnPropertyDescriptors;
|
|
36399
|
+
var __getOwnPropSymbols$6 = Object.getOwnPropertySymbols;
|
|
36400
|
+
var __hasOwnProp$6 = Object.prototype.hasOwnProperty;
|
|
36401
|
+
var __propIsEnum$6 = Object.prototype.propertyIsEnumerable;
|
|
36402
|
+
var __defNormalProp$6 = (obj, key, value) => key in obj ? __defProp$6(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
36403
|
+
var __spreadValues$6 = (a, b) => {
|
|
36404
|
+
for (var prop in b || (b = {}))
|
|
36405
|
+
if (__hasOwnProp$6.call(b, prop))
|
|
36406
|
+
__defNormalProp$6(a, prop, b[prop]);
|
|
36407
|
+
if (__getOwnPropSymbols$6)
|
|
36408
|
+
for (var prop of __getOwnPropSymbols$6(b)) {
|
|
36409
|
+
if (__propIsEnum$6.call(b, prop))
|
|
36410
|
+
__defNormalProp$6(a, prop, b[prop]);
|
|
36411
|
+
}
|
|
36412
|
+
return a;
|
|
36413
|
+
};
|
|
36414
|
+
var __spreadProps$4 = (a, b) => __defProps$4(a, __getOwnPropDescs$4(b));
|
|
36415
|
+
const useGetHereToken = (params) => {
|
|
36386
36416
|
const { client } = useShipEngine();
|
|
36387
|
-
return useQuery({
|
|
36388
|
-
enabled: options.providers.length > 0,
|
|
36417
|
+
return useQuery(__spreadProps$4(__spreadValues$6({}, params), {
|
|
36389
36418
|
onError,
|
|
36390
|
-
queryFn: () => client.servicePoints.
|
|
36391
|
-
queryKey: ["
|
|
36392
|
-
retry: false,
|
|
36419
|
+
queryFn: () => client.servicePoints.getHereToken(),
|
|
36420
|
+
queryKey: ["useGetHereToken"],
|
|
36393
36421
|
select: (result) => result.data
|
|
36394
|
-
});
|
|
36422
|
+
}));
|
|
36395
36423
|
};
|
|
36396
36424
|
|
|
36397
36425
|
const useGetServicePoint = ({
|
|
@@ -36417,6 +36445,18 @@ const useGetServicePoint = ({
|
|
|
36417
36445
|
});
|
|
36418
36446
|
};
|
|
36419
36447
|
|
|
36448
|
+
const useListServicePoints = (options) => {
|
|
36449
|
+
const { client } = useShipEngine();
|
|
36450
|
+
return useQuery({
|
|
36451
|
+
enabled: options.providers.length > 0,
|
|
36452
|
+
onError,
|
|
36453
|
+
queryFn: () => client.servicePoints.list(options),
|
|
36454
|
+
queryKey: ["useListServicePoints", options],
|
|
36455
|
+
retry: false,
|
|
36456
|
+
select: (result) => result.data
|
|
36457
|
+
});
|
|
36458
|
+
};
|
|
36459
|
+
|
|
36420
36460
|
var __async$5 = (__this, __arguments, generator) => {
|
|
36421
36461
|
return new Promise((resolve, reject) => {
|
|
36422
36462
|
var fulfilled = (value) => {
|
|
@@ -37820,4 +37860,4 @@ const alchemy = {
|
|
|
37820
37860
|
createElement
|
|
37821
37861
|
};
|
|
37822
37862
|
|
|
37823
|
-
export { AccountSettingsAPI, AddressesAPI, AlchemyContext, AlchemyProvider, AlchemyTestProvider, CarriersAPI, CodedError, ConfirmationType, ConnectionsAPI, CreditCardVendor, Currency, CustomPackagesAPI, CustomsContentsType, CustomsNonDeliveryType, Element, ErrorBoundary, FundingSourcesAPI, InsuranceAPI, InsuranceProviderType, LabelsAPI, MetadataCapability, MetadataRequirement, MetadataSatisfyingFormTypes, OrderSourcesAPI, RateCardStatus, RateCardsAPI, RatesAPI, types as SE, SalesOrderShipmentsAPI, SalesOrdersAPI, SellersAPI, ServicePointsAPI, ShipEngine, ShipEngineAPI, ShipEngineContext, ShipmentsAPI, ShippingRulesAPI, ThemesAPI, WarehousesAPI, WebhooksAPI, alchemy, alchemy as default, delay, getEmotionCache, getEndUserIpAddress, isCodedError, isCodedErrors, isDataCodedErrors, isInvalidTokenError, logger, onError, parseError, retryUntil, useAddFunds, useAddInsuranceFunds, useAddSandboxCarriers, useAlchemy, useCalculateRates, useCarrierConnectionsServicesList, useConnectCarrier, useConnectCarrierAccount, useCreateAccountImage, useCreateFundingSource, useCreateLabel, useCreateRateCard, useCreateSalesOrderShipment, useCreateSandboxSeller, useCreateShipment, useCreateShippingRule, useCreateWarehouse, useCreateWebhook, useDeactivateOrderSource, useDeleteAccountImage, useDeleteCarrier, useDeleteRateCard, useDeleteShippingRule, useDeleteWarehouse, useDeleteWebhook, useDownloadRateCard, useEditShippingRule, useFundingSourcesAddFunds, useGetAccountBillingPlan, useGetAccountImages, useGetAccountSettings, useGetAutoFundingConfiguration, useGetCarrierById, useGetCarrierConnectionForm, useGetCountriesByCarrier, useGetCurrenciesByCarrier, useGetFundingSourceById, useGetFundingSourceMetadata, useGetFundingSourceTransactions, useGetInsuranceAccount, useGetInsuranceFundingSourceAcceptedTerms, useGetLabel, useGetPackageRatingGroupByCarrier, useGetRateCardById, useGetSalesOrder, useGetSalesOrderShipment, useGetServicePoint, useGetServicesByCarrier, useGetShipment, useGetShipmentRates, useGetShippingRuleById, useGetShippingRuleConditionsOptions, useGetThemeById, useGetZonesByCarrier, useI18n, useListCarrierConnections, useListCarriers, useListCustomPackageTypes, useListFundingSources, useListLabels, useListOrderSources, useListRateCards, useListSalesOrderShipments, useListSalesOrders, useListSandboxSellerIds, useListServicePoints, useListShipments, useListShippingRules, useListWarehouses, useListWebhooks, useLoadIcons, useNotifySalesOrderShipped, useParseAddress, usePublishRateCard, useRefreshOrderSource, useRefreshOrderSourceAsync, useRegisterCarrier, useShipEngine, useUpdateAccountBillingPlan, useUpdateAccountImage, useUpdateAccountSettings, useUpdateAutoFunding, useUpdateFundingSource, useUpdateRateCard, useUpdateSalesOrderShipment, useUpdateWarehouse, useUpdateWebhook, useUploadRateCard, useValidateAddresses, useVoidLabel };
|
|
37863
|
+
export { AccountSettingsAPI, AddressesAPI, AlchemyContext, AlchemyProvider, AlchemyTestProvider, CarriersAPI, CodedError, ConfirmationType, ConnectionsAPI, CreditCardVendor, Currency, CustomPackagesAPI, CustomsContentsType, CustomsNonDeliveryType, Element, ErrorBoundary, FundingSourcesAPI, InsuranceAPI, InsuranceProviderType, LabelsAPI, MetadataCapability, MetadataRequirement, MetadataSatisfyingFormTypes, OrderSourcesAPI, RateCardStatus, RateCardsAPI, RatesAPI, types as SE, SalesOrderShipmentsAPI, SalesOrdersAPI, SellersAPI, ServicePointsAPI, ShipEngine, ShipEngineAPI, ShipEngineContext, ShipmentsAPI, ShippingRulesAPI, ThemesAPI, WarehousesAPI, WebhooksAPI, alchemy, alchemy as default, delay, getEmotionCache, getEndUserIpAddress, isCodedError, isCodedErrors, isDataCodedErrors, isInvalidTokenError, logger, onError, parseError, retryUntil, useAddFunds, useAddInsuranceFunds, useAddSandboxCarriers, useAlchemy, useCalculateRates, useCarrierConnectionsServicesList, useConnectCarrier, useConnectCarrierAccount, useCreateAccountImage, useCreateFundingSource, useCreateLabel, useCreateRateCard, useCreateSalesOrderShipment, useCreateSandboxSeller, useCreateShipment, useCreateShippingRule, useCreateWarehouse, useCreateWebhook, useDeactivateOrderSource, useDeleteAccountImage, useDeleteCarrier, useDeleteRateCard, useDeleteShippingRule, useDeleteWarehouse, useDeleteWebhook, useDownloadRateCard, useEditShippingRule, useFundingSourcesAddFunds, useGetAccountBillingPlan, useGetAccountImages, useGetAccountSettings, useGetAutoFundingConfiguration, useGetCarrierById, useGetCarrierConnectionForm, useGetCountriesByCarrier, useGetCurrenciesByCarrier, useGetFundingSourceById, useGetFundingSourceMetadata, useGetFundingSourceTransactions, useGetHereToken, useGetInsuranceAccount, useGetInsuranceFundingSourceAcceptedTerms, useGetLabel, useGetPackageRatingGroupByCarrier, useGetRateCardById, useGetSalesOrder, useGetSalesOrderShipment, useGetServicePoint, useGetServicesByCarrier, useGetShipment, useGetShipmentRates, useGetShippingRuleById, useGetShippingRuleConditionsOptions, useGetThemeById, useGetZonesByCarrier, useI18n, useListCarrierConnections, useListCarriers, useListCustomPackageTypes, useListFundingSources, useListLabels, useListOrderSources, useListRateCards, useListSalesOrderShipments, useListSalesOrders, useListSandboxSellerIds, useListServicePoints, useListShipments, useListShippingRules, useListWarehouses, useListWebhooks, useLoadIcons, useNotifySalesOrderShipped, useParseAddress, usePublishRateCard, useRefreshOrderSource, useRefreshOrderSourceAsync, useRegisterCarrier, useShipEngine, useUpdateAccountBillingPlan, useUpdateAccountImage, useUpdateAccountSettings, useUpdateAutoFunding, useUpdateFundingSource, useUpdateRateCard, useUpdateSalesOrderShipment, useUpdateWarehouse, useUpdateWebhook, useUploadRateCard, useValidateAddresses, useVoidLabel };
|