@shipengine/alchemy 5.4.3 → 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 +282 -217
- package/index.mjs +281 -218
- 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
|
};
|
|
@@ -16215,9 +16223,10 @@ class FundingSourcesAPI {
|
|
|
16215
16223
|
*/
|
|
16216
16224
|
this.create = (createFundingSource) => __async$J(this, null, function* () {
|
|
16217
16225
|
const endUserIpAddress = yield getEndUserIpAddress();
|
|
16218
|
-
if (!endUserIpAddress)
|
|
16226
|
+
if (!endUserIpAddress) {
|
|
16219
16227
|
return Promise.reject([new CodedError("Unable to get IP address")]);
|
|
16220
|
-
|
|
16228
|
+
}
|
|
16229
|
+
return yield this.client.post("/v1/funding_sources", __spreadValues$c({
|
|
16221
16230
|
endUserIpAddress
|
|
16222
16231
|
}, createFundingSource));
|
|
16223
16232
|
});
|
|
@@ -16228,8 +16237,9 @@ class FundingSourcesAPI {
|
|
|
16228
16237
|
*/
|
|
16229
16238
|
this.update = (billingInfo, creditCardInfo, fundingSourceId) => __async$J(this, null, function* () {
|
|
16230
16239
|
const endUserIpAddress = yield getEndUserIpAddress();
|
|
16231
|
-
if (!endUserIpAddress)
|
|
16240
|
+
if (!endUserIpAddress) {
|
|
16232
16241
|
return Promise.reject([new CodedError("Unable to get IP address")]);
|
|
16242
|
+
}
|
|
16233
16243
|
return yield this.client.put(
|
|
16234
16244
|
`/v1/funding_sources/${fundingSourceId}`,
|
|
16235
16245
|
{
|
|
@@ -16245,9 +16255,10 @@ class FundingSourcesAPI {
|
|
|
16245
16255
|
*/
|
|
16246
16256
|
this.registerCarrier = (carrier) => __async$J(this, null, function* () {
|
|
16247
16257
|
const endUserIpAddress = yield getEndUserIpAddress();
|
|
16248
|
-
if (!endUserIpAddress)
|
|
16258
|
+
if (!endUserIpAddress) {
|
|
16249
16259
|
return Promise.reject([new CodedError("Unable to get IP address")]);
|
|
16250
|
-
|
|
16260
|
+
}
|
|
16261
|
+
return yield this.client.post("/v1/registration/funding_source", __spreadValues$c({
|
|
16251
16262
|
endUserIpAddress
|
|
16252
16263
|
}, carrier));
|
|
16253
16264
|
});
|
|
@@ -16279,6 +16290,16 @@ class FundingSourcesAPI {
|
|
|
16279
16290
|
}
|
|
16280
16291
|
);
|
|
16281
16292
|
};
|
|
16293
|
+
/**
|
|
16294
|
+
* Now we can attach insurance providers to the user's Funding Source.
|
|
16295
|
+
* This endpoint will retrieve all accepted insurance terms. For example
|
|
16296
|
+
* if "ParcelGuard" appears here that means the user its using it.
|
|
16297
|
+
*/
|
|
16298
|
+
this.insuranceAcceptedTerms = () => {
|
|
16299
|
+
return this.client.get(
|
|
16300
|
+
"/v1/insurance/funding_source/accepted_terms"
|
|
16301
|
+
);
|
|
16302
|
+
};
|
|
16282
16303
|
this.client = client;
|
|
16283
16304
|
}
|
|
16284
16305
|
}
|
|
@@ -16551,19 +16572,19 @@ class SellersAPI {
|
|
|
16551
16572
|
}
|
|
16552
16573
|
}
|
|
16553
16574
|
|
|
16554
|
-
var __defProp$
|
|
16555
|
-
var __getOwnPropSymbols$
|
|
16556
|
-
var __hasOwnProp$
|
|
16557
|
-
var __propIsEnum$
|
|
16558
|
-
var __defNormalProp$
|
|
16559
|
-
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) => {
|
|
16560
16581
|
for (var prop in b || (b = {}))
|
|
16561
|
-
if (__hasOwnProp$
|
|
16562
|
-
__defNormalProp$
|
|
16563
|
-
if (__getOwnPropSymbols$
|
|
16564
|
-
for (var prop of __getOwnPropSymbols$
|
|
16565
|
-
if (__propIsEnum$
|
|
16566
|
-
__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]);
|
|
16567
16588
|
}
|
|
16568
16589
|
return a;
|
|
16569
16590
|
};
|
|
@@ -16575,7 +16596,7 @@ class ServicePointsAPI {
|
|
|
16575
16596
|
* Either an address, coordinates, or an address query
|
|
16576
16597
|
*/
|
|
16577
16598
|
this.list = (options) => {
|
|
16578
|
-
return this.client.post("/v1/service_points/list", __spreadValues$
|
|
16599
|
+
return this.client.post("/v1/service_points/list", __spreadValues$b({}, options));
|
|
16579
16600
|
};
|
|
16580
16601
|
/**
|
|
16581
16602
|
* Get a specific service point by its carrier code, country code, and id
|
|
@@ -16583,6 +16604,12 @@ class ServicePointsAPI {
|
|
|
16583
16604
|
this.get = ({ carrierCode, countryCode, id }) => {
|
|
16584
16605
|
return this.client.get(`/v1/service_points/${carrierCode}/${countryCode}/${id}`);
|
|
16585
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
|
+
};
|
|
16586
16613
|
this.client = client;
|
|
16587
16614
|
}
|
|
16588
16615
|
}
|
|
@@ -33996,25 +34023,25 @@ class WebhooksAPI {
|
|
|
33996
34023
|
}
|
|
33997
34024
|
}
|
|
33998
34025
|
|
|
33999
|
-
var __defProp$
|
|
34000
|
-
var __defProps$
|
|
34001
|
-
var __getOwnPropDescs$
|
|
34002
|
-
var __getOwnPropSymbols$
|
|
34003
|
-
var __hasOwnProp$
|
|
34004
|
-
var __propIsEnum$
|
|
34005
|
-
var __defNormalProp$
|
|
34006
|
-
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) => {
|
|
34007
34034
|
for (var prop in b || (b = {}))
|
|
34008
|
-
if (__hasOwnProp$
|
|
34009
|
-
__defNormalProp$
|
|
34010
|
-
if (__getOwnPropSymbols$
|
|
34011
|
-
for (var prop of __getOwnPropSymbols$
|
|
34012
|
-
if (__propIsEnum$
|
|
34013
|
-
__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]);
|
|
34014
34041
|
}
|
|
34015
34042
|
return a;
|
|
34016
34043
|
};
|
|
34017
|
-
var __spreadProps$
|
|
34044
|
+
var __spreadProps$8 = (a, b) => __defProps$8(a, __getOwnPropDescs$8(b));
|
|
34018
34045
|
var __async$H = (__this, __arguments, generator) => {
|
|
34019
34046
|
return new Promise((resolve, reject) => {
|
|
34020
34047
|
var fulfilled = (value) => {
|
|
@@ -34038,7 +34065,7 @@ var __async$H = (__this, __arguments, generator) => {
|
|
|
34038
34065
|
const logger$1 = E({
|
|
34039
34066
|
level: process.env.NODE_ENV === "production" ? "fatal" : "info",
|
|
34040
34067
|
name: "shipengine-api",
|
|
34041
|
-
serializers: __spreadProps$
|
|
34068
|
+
serializers: __spreadProps$8(__spreadValues$a({}, k), {
|
|
34042
34069
|
req: (req) => ({
|
|
34043
34070
|
headers: req.headers,
|
|
34044
34071
|
method: req.method,
|
|
@@ -34062,7 +34089,7 @@ class ShipEngineAPI {
|
|
|
34062
34089
|
constructor(token, { baseURL, headers, getToken, onApiError }) {
|
|
34063
34090
|
const client = axios.create({
|
|
34064
34091
|
baseURL,
|
|
34065
|
-
headers: __spreadProps$
|
|
34092
|
+
headers: __spreadProps$8(__spreadValues$a({}, headers), {
|
|
34066
34093
|
"Content-Type": "application/json"
|
|
34067
34094
|
}),
|
|
34068
34095
|
paramsSerializer: (params) => lib.stringify(humpsExports.decamelizeKeys(params), { arrayFormat: "brackets" }),
|
|
@@ -34391,25 +34418,25 @@ const delay = (ms) => new Promise((resolve) => {
|
|
|
34391
34418
|
|
|
34392
34419
|
const onError = (_errors) => _default();
|
|
34393
34420
|
|
|
34394
|
-
var __defProp$
|
|
34395
|
-
var __defProps$
|
|
34396
|
-
var __getOwnPropDescs$
|
|
34397
|
-
var __getOwnPropSymbols$
|
|
34398
|
-
var __hasOwnProp$
|
|
34399
|
-
var __propIsEnum$
|
|
34400
|
-
var __defNormalProp$
|
|
34401
|
-
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) => {
|
|
34402
34429
|
for (var prop in b || (b = {}))
|
|
34403
|
-
if (__hasOwnProp$
|
|
34404
|
-
__defNormalProp$
|
|
34405
|
-
if (__getOwnPropSymbols$
|
|
34406
|
-
for (var prop of __getOwnPropSymbols$
|
|
34407
|
-
if (__propIsEnum$
|
|
34408
|
-
__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]);
|
|
34409
34436
|
}
|
|
34410
34437
|
return a;
|
|
34411
34438
|
};
|
|
34412
|
-
var __spreadProps$
|
|
34439
|
+
var __spreadProps$7 = (a, b) => __defProps$7(a, __getOwnPropDescs$7(b));
|
|
34413
34440
|
const streams = [];
|
|
34414
34441
|
if (process.env.NODE_ENV === "production") {
|
|
34415
34442
|
streams.push({
|
|
@@ -34418,7 +34445,7 @@ if (process.env.NODE_ENV === "production") {
|
|
|
34418
34445
|
}
|
|
34419
34446
|
const logger = E({
|
|
34420
34447
|
name: "shipengine",
|
|
34421
|
-
serializers: __spreadProps$
|
|
34448
|
+
serializers: __spreadProps$7(__spreadValues$9({}, k), {
|
|
34422
34449
|
req: (req) => ({
|
|
34423
34450
|
headers: req.headers,
|
|
34424
34451
|
method: req.method,
|
|
@@ -34829,17 +34856,17 @@ const useListCarriers = () => {
|
|
|
34829
34856
|
});
|
|
34830
34857
|
};
|
|
34831
34858
|
|
|
34832
|
-
var __getOwnPropSymbols$
|
|
34833
|
-
var __hasOwnProp$
|
|
34834
|
-
var __propIsEnum$
|
|
34859
|
+
var __getOwnPropSymbols$j = Object.getOwnPropertySymbols;
|
|
34860
|
+
var __hasOwnProp$j = Object.prototype.hasOwnProperty;
|
|
34861
|
+
var __propIsEnum$j = Object.prototype.propertyIsEnumerable;
|
|
34835
34862
|
var __objRest$c = (source, exclude) => {
|
|
34836
34863
|
var target = {};
|
|
34837
34864
|
for (var prop in source)
|
|
34838
|
-
if (__hasOwnProp$
|
|
34865
|
+
if (__hasOwnProp$j.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
34839
34866
|
target[prop] = source[prop];
|
|
34840
|
-
if (source != null && __getOwnPropSymbols$
|
|
34841
|
-
for (var prop of __getOwnPropSymbols$
|
|
34842
|
-
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))
|
|
34843
34870
|
target[prop] = source[prop];
|
|
34844
34871
|
}
|
|
34845
34872
|
return target;
|
|
@@ -34930,17 +34957,17 @@ const useDeleteCarrier = () => {
|
|
|
34930
34957
|
});
|
|
34931
34958
|
};
|
|
34932
34959
|
|
|
34933
|
-
var __getOwnPropSymbols$
|
|
34934
|
-
var __hasOwnProp$
|
|
34935
|
-
var __propIsEnum$
|
|
34960
|
+
var __getOwnPropSymbols$i = Object.getOwnPropertySymbols;
|
|
34961
|
+
var __hasOwnProp$i = Object.prototype.hasOwnProperty;
|
|
34962
|
+
var __propIsEnum$i = Object.prototype.propertyIsEnumerable;
|
|
34936
34963
|
var __objRest$b = (source, exclude) => {
|
|
34937
34964
|
var target = {};
|
|
34938
34965
|
for (var prop in source)
|
|
34939
|
-
if (__hasOwnProp$
|
|
34966
|
+
if (__hasOwnProp$i.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
34940
34967
|
target[prop] = source[prop];
|
|
34941
|
-
if (source != null && __getOwnPropSymbols$
|
|
34942
|
-
for (var prop of __getOwnPropSymbols$
|
|
34943
|
-
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))
|
|
34944
34971
|
target[prop] = source[prop];
|
|
34945
34972
|
}
|
|
34946
34973
|
return target;
|
|
@@ -34957,17 +34984,17 @@ const useGetCarrierConnectionForm = (_params) => {
|
|
|
34957
34984
|
});
|
|
34958
34985
|
};
|
|
34959
34986
|
|
|
34960
|
-
var __getOwnPropSymbols$
|
|
34961
|
-
var __hasOwnProp$
|
|
34962
|
-
var __propIsEnum$
|
|
34987
|
+
var __getOwnPropSymbols$h = Object.getOwnPropertySymbols;
|
|
34988
|
+
var __hasOwnProp$h = Object.prototype.hasOwnProperty;
|
|
34989
|
+
var __propIsEnum$h = Object.prototype.propertyIsEnumerable;
|
|
34963
34990
|
var __objRest$a = (source, exclude) => {
|
|
34964
34991
|
var target = {};
|
|
34965
34992
|
for (var prop in source)
|
|
34966
|
-
if (__hasOwnProp$
|
|
34993
|
+
if (__hasOwnProp$h.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
34967
34994
|
target[prop] = source[prop];
|
|
34968
|
-
if (source != null && __getOwnPropSymbols$
|
|
34969
|
-
for (var prop of __getOwnPropSymbols$
|
|
34970
|
-
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))
|
|
34971
34998
|
target[prop] = source[prop];
|
|
34972
34999
|
}
|
|
34973
35000
|
return target;
|
|
@@ -35009,9 +35036,6 @@ const useConnectCarrierAccount = () => {
|
|
|
35009
35036
|
return reactQuery.useMutation({
|
|
35010
35037
|
mutationFn: (_0) => __async$w(void 0, [_0], function* ({ carrierName, formData }) {
|
|
35011
35038
|
const result = yield client.connections.connectCarrier(carrierName, formData);
|
|
35012
|
-
if (result.status > 300 && result.status < 309) {
|
|
35013
|
-
result.data.redirectUrl = result.request.res.responseUrl;
|
|
35014
|
-
}
|
|
35015
35039
|
return result.data;
|
|
35016
35040
|
}),
|
|
35017
35041
|
mutationKey: ["useConnectCarrierAccount"],
|
|
@@ -35218,6 +35242,16 @@ const useGetFundingSourceTransactions = (fundingSourceId, params) => {
|
|
|
35218
35242
|
});
|
|
35219
35243
|
};
|
|
35220
35244
|
|
|
35245
|
+
const useGetInsuranceFundingSourceAcceptedTerms = () => {
|
|
35246
|
+
const { client } = useShipEngine();
|
|
35247
|
+
return reactQuery.useQuery({
|
|
35248
|
+
onError,
|
|
35249
|
+
queryFn: () => client.fundingSources.insuranceAcceptedTerms(),
|
|
35250
|
+
queryKey: ["useGetInsuranceFundingSourceAcceptedTerms"],
|
|
35251
|
+
select: (result) => result.data
|
|
35252
|
+
});
|
|
35253
|
+
};
|
|
35254
|
+
|
|
35221
35255
|
const useGetInsuranceAccount = (insuranceProvider) => {
|
|
35222
35256
|
const { client } = useShipEngine();
|
|
35223
35257
|
return reactQuery.useQuery({
|
|
@@ -35233,17 +35267,17 @@ const useGetInsuranceAccount = (insuranceProvider) => {
|
|
|
35233
35267
|
});
|
|
35234
35268
|
};
|
|
35235
35269
|
|
|
35236
|
-
var __getOwnPropSymbols$
|
|
35237
|
-
var __hasOwnProp$
|
|
35238
|
-
var __propIsEnum$
|
|
35270
|
+
var __getOwnPropSymbols$g = Object.getOwnPropertySymbols;
|
|
35271
|
+
var __hasOwnProp$g = Object.prototype.hasOwnProperty;
|
|
35272
|
+
var __propIsEnum$g = Object.prototype.propertyIsEnumerable;
|
|
35239
35273
|
var __objRest$9 = (source, exclude) => {
|
|
35240
35274
|
var target = {};
|
|
35241
35275
|
for (var prop in source)
|
|
35242
|
-
if (__hasOwnProp$
|
|
35276
|
+
if (__hasOwnProp$g.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
35243
35277
|
target[prop] = source[prop];
|
|
35244
|
-
if (source != null && __getOwnPropSymbols$
|
|
35245
|
-
for (var prop of __getOwnPropSymbols$
|
|
35246
|
-
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))
|
|
35247
35281
|
target[prop] = source[prop];
|
|
35248
35282
|
}
|
|
35249
35283
|
return target;
|
|
@@ -35281,17 +35315,17 @@ const useAddInsuranceFunds = () => {
|
|
|
35281
35315
|
});
|
|
35282
35316
|
};
|
|
35283
35317
|
|
|
35284
|
-
var __getOwnPropSymbols$
|
|
35285
|
-
var __hasOwnProp$
|
|
35286
|
-
var __propIsEnum$
|
|
35318
|
+
var __getOwnPropSymbols$f = Object.getOwnPropertySymbols;
|
|
35319
|
+
var __hasOwnProp$f = Object.prototype.hasOwnProperty;
|
|
35320
|
+
var __propIsEnum$f = Object.prototype.propertyIsEnumerable;
|
|
35287
35321
|
var __objRest$8 = (source, exclude) => {
|
|
35288
35322
|
var target = {};
|
|
35289
35323
|
for (var prop in source)
|
|
35290
|
-
if (__hasOwnProp$
|
|
35324
|
+
if (__hasOwnProp$f.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
35291
35325
|
target[prop] = source[prop];
|
|
35292
|
-
if (source != null && __getOwnPropSymbols$
|
|
35293
|
-
for (var prop of __getOwnPropSymbols$
|
|
35294
|
-
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))
|
|
35295
35329
|
target[prop] = source[prop];
|
|
35296
35330
|
}
|
|
35297
35331
|
return target;
|
|
@@ -35344,17 +35378,17 @@ const useGetLabel = (labelId) => {
|
|
|
35344
35378
|
});
|
|
35345
35379
|
};
|
|
35346
35380
|
|
|
35347
|
-
var __getOwnPropSymbols$
|
|
35348
|
-
var __hasOwnProp$
|
|
35349
|
-
var __propIsEnum$
|
|
35381
|
+
var __getOwnPropSymbols$e = Object.getOwnPropertySymbols;
|
|
35382
|
+
var __hasOwnProp$e = Object.prototype.hasOwnProperty;
|
|
35383
|
+
var __propIsEnum$e = Object.prototype.propertyIsEnumerable;
|
|
35350
35384
|
var __objRest$7 = (source, exclude) => {
|
|
35351
35385
|
var target = {};
|
|
35352
35386
|
for (var prop in source)
|
|
35353
|
-
if (__hasOwnProp$
|
|
35387
|
+
if (__hasOwnProp$e.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
35354
35388
|
target[prop] = source[prop];
|
|
35355
|
-
if (source != null && __getOwnPropSymbols$
|
|
35356
|
-
for (var prop of __getOwnPropSymbols$
|
|
35357
|
-
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))
|
|
35358
35392
|
target[prop] = source[prop];
|
|
35359
35393
|
}
|
|
35360
35394
|
return target;
|
|
@@ -35750,17 +35784,17 @@ const useListSalesOrders = (params = {}) => {
|
|
|
35750
35784
|
});
|
|
35751
35785
|
};
|
|
35752
35786
|
|
|
35753
|
-
var __getOwnPropSymbols$
|
|
35754
|
-
var __hasOwnProp$
|
|
35755
|
-
var __propIsEnum$
|
|
35787
|
+
var __getOwnPropSymbols$d = Object.getOwnPropertySymbols;
|
|
35788
|
+
var __hasOwnProp$d = Object.prototype.hasOwnProperty;
|
|
35789
|
+
var __propIsEnum$d = Object.prototype.propertyIsEnumerable;
|
|
35756
35790
|
var __objRest$6 = (source, exclude) => {
|
|
35757
35791
|
var target = {};
|
|
35758
35792
|
for (var prop in source)
|
|
35759
|
-
if (__hasOwnProp$
|
|
35793
|
+
if (__hasOwnProp$d.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
35760
35794
|
target[prop] = source[prop];
|
|
35761
|
-
if (source != null && __getOwnPropSymbols$
|
|
35762
|
-
for (var prop of __getOwnPropSymbols$
|
|
35763
|
-
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))
|
|
35764
35798
|
target[prop] = source[prop];
|
|
35765
35799
|
}
|
|
35766
35800
|
return target;
|
|
@@ -35798,17 +35832,17 @@ const useNotifySalesOrderShipped = () => {
|
|
|
35798
35832
|
});
|
|
35799
35833
|
};
|
|
35800
35834
|
|
|
35801
|
-
var __getOwnPropSymbols$
|
|
35802
|
-
var __hasOwnProp$
|
|
35803
|
-
var __propIsEnum$
|
|
35835
|
+
var __getOwnPropSymbols$c = Object.getOwnPropertySymbols;
|
|
35836
|
+
var __hasOwnProp$c = Object.prototype.hasOwnProperty;
|
|
35837
|
+
var __propIsEnum$c = Object.prototype.propertyIsEnumerable;
|
|
35804
35838
|
var __objRest$5 = (source, exclude) => {
|
|
35805
35839
|
var target = {};
|
|
35806
35840
|
for (var prop in source)
|
|
35807
|
-
if (__hasOwnProp$
|
|
35841
|
+
if (__hasOwnProp$c.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
35808
35842
|
target[prop] = source[prop];
|
|
35809
|
-
if (source != null && __getOwnPropSymbols$
|
|
35810
|
-
for (var prop of __getOwnPropSymbols$
|
|
35811
|
-
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))
|
|
35812
35846
|
target[prop] = source[prop];
|
|
35813
35847
|
}
|
|
35814
35848
|
return target;
|
|
@@ -35872,17 +35906,17 @@ const useListSalesOrderShipments = (params) => {
|
|
|
35872
35906
|
});
|
|
35873
35907
|
};
|
|
35874
35908
|
|
|
35875
|
-
var __getOwnPropSymbols$
|
|
35876
|
-
var __hasOwnProp$
|
|
35877
|
-
var __propIsEnum$
|
|
35909
|
+
var __getOwnPropSymbols$b = Object.getOwnPropertySymbols;
|
|
35910
|
+
var __hasOwnProp$b = Object.prototype.hasOwnProperty;
|
|
35911
|
+
var __propIsEnum$b = Object.prototype.propertyIsEnumerable;
|
|
35878
35912
|
var __objRest$4 = (source, exclude) => {
|
|
35879
35913
|
var target = {};
|
|
35880
35914
|
for (var prop in source)
|
|
35881
|
-
if (__hasOwnProp$
|
|
35915
|
+
if (__hasOwnProp$b.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
35882
35916
|
target[prop] = source[prop];
|
|
35883
|
-
if (source != null && __getOwnPropSymbols$
|
|
35884
|
-
for (var prop of __getOwnPropSymbols$
|
|
35885
|
-
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))
|
|
35886
35920
|
target[prop] = source[prop];
|
|
35887
35921
|
}
|
|
35888
35922
|
return target;
|
|
@@ -35920,25 +35954,25 @@ const useUpdateSalesOrderShipment = () => {
|
|
|
35920
35954
|
});
|
|
35921
35955
|
};
|
|
35922
35956
|
|
|
35923
|
-
var __defProp$
|
|
35924
|
-
var __defProps$
|
|
35925
|
-
var __getOwnPropDescs$
|
|
35926
|
-
var __getOwnPropSymbols$
|
|
35927
|
-
var __hasOwnProp$
|
|
35928
|
-
var __propIsEnum$
|
|
35929
|
-
var __defNormalProp$
|
|
35930
|
-
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) => {
|
|
35931
35965
|
for (var prop in b || (b = {}))
|
|
35932
|
-
if (__hasOwnProp$
|
|
35933
|
-
__defNormalProp$
|
|
35934
|
-
if (__getOwnPropSymbols$
|
|
35935
|
-
for (var prop of __getOwnPropSymbols$
|
|
35936
|
-
if (__propIsEnum$
|
|
35937
|
-
__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]);
|
|
35938
35972
|
}
|
|
35939
35973
|
return a;
|
|
35940
35974
|
};
|
|
35941
|
-
var __spreadProps$
|
|
35975
|
+
var __spreadProps$6 = (a, b) => __defProps$6(a, __getOwnPropDescs$6(b));
|
|
35942
35976
|
var __async$d = (__this, __arguments, generator) => {
|
|
35943
35977
|
return new Promise((resolve, reject) => {
|
|
35944
35978
|
var fulfilled = (value) => {
|
|
@@ -35980,7 +36014,7 @@ const useCreateShipment = () => {
|
|
|
35980
36014
|
postalCode: "",
|
|
35981
36015
|
stateProvince: ""
|
|
35982
36016
|
};
|
|
35983
|
-
return (yield client.shipments.create(__spreadProps$
|
|
36017
|
+
return (yield client.shipments.create(__spreadProps$6(__spreadValues$8({}, shipment), {
|
|
35984
36018
|
shipTo
|
|
35985
36019
|
}))).data;
|
|
35986
36020
|
}),
|
|
@@ -36021,17 +36055,17 @@ const useGetShipment = (shipmentId) => {
|
|
|
36021
36055
|
});
|
|
36022
36056
|
};
|
|
36023
36057
|
|
|
36024
|
-
var __getOwnPropSymbols$
|
|
36025
|
-
var __hasOwnProp$
|
|
36026
|
-
var __propIsEnum$
|
|
36058
|
+
var __getOwnPropSymbols$9 = Object.getOwnPropertySymbols;
|
|
36059
|
+
var __hasOwnProp$9 = Object.prototype.hasOwnProperty;
|
|
36060
|
+
var __propIsEnum$9 = Object.prototype.propertyIsEnumerable;
|
|
36027
36061
|
var __objRest$3 = (source, exclude) => {
|
|
36028
36062
|
var target = {};
|
|
36029
36063
|
for (var prop in source)
|
|
36030
|
-
if (__hasOwnProp$
|
|
36064
|
+
if (__hasOwnProp$9.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
36031
36065
|
target[prop] = source[prop];
|
|
36032
|
-
if (source != null && __getOwnPropSymbols$
|
|
36033
|
-
for (var prop of __getOwnPropSymbols$
|
|
36034
|
-
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))
|
|
36035
36069
|
target[prop] = source[prop];
|
|
36036
36070
|
}
|
|
36037
36071
|
return target;
|
|
@@ -36048,28 +36082,28 @@ const useListShipments = (_params) => {
|
|
|
36048
36082
|
});
|
|
36049
36083
|
};
|
|
36050
36084
|
|
|
36051
|
-
var __defProp$
|
|
36052
|
-
var __defProps$
|
|
36053
|
-
var __getOwnPropDescs$
|
|
36054
|
-
var __getOwnPropSymbols$
|
|
36055
|
-
var __hasOwnProp$
|
|
36056
|
-
var __propIsEnum$
|
|
36057
|
-
var __defNormalProp$
|
|
36058
|
-
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) => {
|
|
36059
36093
|
for (var prop in b || (b = {}))
|
|
36060
|
-
if (__hasOwnProp$
|
|
36061
|
-
__defNormalProp$
|
|
36062
|
-
if (__getOwnPropSymbols$
|
|
36063
|
-
for (var prop of __getOwnPropSymbols$
|
|
36064
|
-
if (__propIsEnum$
|
|
36065
|
-
__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]);
|
|
36066
36100
|
}
|
|
36067
36101
|
return a;
|
|
36068
36102
|
};
|
|
36069
|
-
var __spreadProps$
|
|
36103
|
+
var __spreadProps$5 = (a, b) => __defProps$5(a, __getOwnPropDescs$5(b));
|
|
36070
36104
|
const useListShippingRules = (params) => {
|
|
36071
36105
|
const { client } = useShipEngine();
|
|
36072
|
-
return reactQuery.useQuery(__spreadProps$
|
|
36106
|
+
return reactQuery.useQuery(__spreadProps$5(__spreadValues$7({}, params), {
|
|
36073
36107
|
onError,
|
|
36074
36108
|
queryFn: () => {
|
|
36075
36109
|
return client.shippingRules.list();
|
|
@@ -36291,17 +36325,17 @@ const useListWarehouses = (options) => {
|
|
|
36291
36325
|
});
|
|
36292
36326
|
};
|
|
36293
36327
|
|
|
36294
|
-
var __getOwnPropSymbols$
|
|
36295
|
-
var __hasOwnProp$
|
|
36296
|
-
var __propIsEnum$
|
|
36328
|
+
var __getOwnPropSymbols$7 = Object.getOwnPropertySymbols;
|
|
36329
|
+
var __hasOwnProp$7 = Object.prototype.hasOwnProperty;
|
|
36330
|
+
var __propIsEnum$7 = Object.prototype.propertyIsEnumerable;
|
|
36297
36331
|
var __objRest$2 = (source, exclude) => {
|
|
36298
36332
|
var target = {};
|
|
36299
36333
|
for (var prop in source)
|
|
36300
|
-
if (__hasOwnProp$
|
|
36334
|
+
if (__hasOwnProp$7.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
36301
36335
|
target[prop] = source[prop];
|
|
36302
|
-
if (source != null && __getOwnPropSymbols$
|
|
36303
|
-
for (var prop of __getOwnPropSymbols$
|
|
36304
|
-
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))
|
|
36305
36339
|
target[prop] = source[prop];
|
|
36306
36340
|
}
|
|
36307
36341
|
return target;
|
|
@@ -36381,16 +36415,33 @@ const useUpdateAccountBillingPlan = () => {
|
|
|
36381
36415
|
});
|
|
36382
36416
|
};
|
|
36383
36417
|
|
|
36384
|
-
|
|
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) => {
|
|
36385
36438
|
const { client } = useShipEngine();
|
|
36386
|
-
return reactQuery.useQuery({
|
|
36387
|
-
enabled: options.providers.length > 0,
|
|
36439
|
+
return reactQuery.useQuery(__spreadProps$4(__spreadValues$6({}, params), {
|
|
36388
36440
|
onError,
|
|
36389
|
-
queryFn: () => client.servicePoints.
|
|
36390
|
-
queryKey: ["
|
|
36391
|
-
retry: false,
|
|
36441
|
+
queryFn: () => client.servicePoints.getHereToken(),
|
|
36442
|
+
queryKey: ["useGetHereToken"],
|
|
36392
36443
|
select: (result) => result.data
|
|
36393
|
-
});
|
|
36444
|
+
}));
|
|
36394
36445
|
};
|
|
36395
36446
|
|
|
36396
36447
|
const useGetServicePoint = ({
|
|
@@ -36416,6 +36467,18 @@ const useGetServicePoint = ({
|
|
|
36416
36467
|
});
|
|
36417
36468
|
};
|
|
36418
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
|
+
|
|
36419
36482
|
var __async$5 = (__this, __arguments, generator) => {
|
|
36420
36483
|
return new Promise((resolve, reject) => {
|
|
36421
36484
|
var fulfilled = (value) => {
|
|
@@ -37911,7 +37974,9 @@ exports.useGetCurrenciesByCarrier = useGetCurrenciesByCarrier;
|
|
|
37911
37974
|
exports.useGetFundingSourceById = useGetFundingSourceById;
|
|
37912
37975
|
exports.useGetFundingSourceMetadata = useGetFundingSourceMetadata;
|
|
37913
37976
|
exports.useGetFundingSourceTransactions = useGetFundingSourceTransactions;
|
|
37977
|
+
exports.useGetHereToken = useGetHereToken;
|
|
37914
37978
|
exports.useGetInsuranceAccount = useGetInsuranceAccount;
|
|
37979
|
+
exports.useGetInsuranceFundingSourceAcceptedTerms = useGetInsuranceFundingSourceAcceptedTerms;
|
|
37915
37980
|
exports.useGetLabel = useGetLabel;
|
|
37916
37981
|
exports.useGetPackageRatingGroupByCarrier = useGetPackageRatingGroupByCarrier;
|
|
37917
37982
|
exports.useGetRateCardById = useGetRateCardById;
|