@shipengine/alchemy 6.0.43 → 6.0.45
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 +632 -575
- package/index.mjs +632 -576
- 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$
|
|
10818
|
-
var __objRest$
|
|
10815
|
+
var __getOwnPropSymbols$Q = Object.getOwnPropertySymbols;
|
|
10816
|
+
var __hasOwnProp$Q = Object.prototype.hasOwnProperty;
|
|
10817
|
+
var __propIsEnum$Q = Object.prototype.propertyIsEnumerable;
|
|
10818
|
+
var __objRest$u = (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;
|
|
@@ -10836,7 +10836,7 @@ class CodedError {
|
|
|
10836
10836
|
this.message = message;
|
|
10837
10837
|
}
|
|
10838
10838
|
static fromObject(_a) {
|
|
10839
|
-
var _b = _a, { message } = _b, options = __objRest$
|
|
10839
|
+
var _b = _a, { message } = _b, options = __objRest$u(_b, ["message"]);
|
|
10840
10840
|
return new CodedError(message, options);
|
|
10841
10841
|
}
|
|
10842
10842
|
}
|
|
@@ -10957,17 +10957,17 @@ const types = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
|
|
|
10957
10957
|
RateCardStatus
|
|
10958
10958
|
}, Symbol.toStringTag, { value: 'Module' }));
|
|
10959
10959
|
|
|
10960
|
-
var __getOwnPropSymbols$
|
|
10961
|
-
var __hasOwnProp$
|
|
10962
|
-
var __propIsEnum$
|
|
10963
|
-
var __objRest$
|
|
10960
|
+
var __getOwnPropSymbols$P = Object.getOwnPropertySymbols;
|
|
10961
|
+
var __hasOwnProp$P = Object.prototype.hasOwnProperty;
|
|
10962
|
+
var __propIsEnum$P = Object.prototype.propertyIsEnumerable;
|
|
10963
|
+
var __objRest$t = (source, exclude) => {
|
|
10964
10964
|
var target = {};
|
|
10965
10965
|
for (var prop in source)
|
|
10966
|
-
if (__hasOwnProp$
|
|
10966
|
+
if (__hasOwnProp$P.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
10967
10967
|
target[prop] = source[prop];
|
|
10968
|
-
if (source != null && __getOwnPropSymbols$
|
|
10969
|
-
for (var prop of __getOwnPropSymbols$
|
|
10970
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
10968
|
+
if (source != null && __getOwnPropSymbols$P)
|
|
10969
|
+
for (var prop of __getOwnPropSymbols$P(source)) {
|
|
10970
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$P.call(source, prop))
|
|
10971
10971
|
target[prop] = source[prop];
|
|
10972
10972
|
}
|
|
10973
10973
|
return target;
|
|
@@ -10999,7 +10999,7 @@ class AccountSettingsAPI {
|
|
|
10999
10999
|
* The `updateImage` method updates specific image data for a given image id.
|
|
11000
11000
|
*/
|
|
11001
11001
|
this.updateImage = (_a) => {
|
|
11002
|
-
var _b = _a, { labelImageId } = _b, data = __objRest$
|
|
11002
|
+
var _b = _a, { labelImageId } = _b, data = __objRest$t(_b, ["labelImageId"]);
|
|
11003
11003
|
return this.client.put(`/v1/account/settings/images/${labelImageId}`, data);
|
|
11004
11004
|
};
|
|
11005
11005
|
/**
|
|
@@ -13848,33 +13848,33 @@ const decamelizeKeys = (obj, separator = "_") => {
|
|
|
13848
13848
|
return obj;
|
|
13849
13849
|
};
|
|
13850
13850
|
|
|
13851
|
-
var __defProp$
|
|
13852
|
-
var __defProps$
|
|
13853
|
-
var __getOwnPropDescs$
|
|
13854
|
-
var __getOwnPropSymbols$
|
|
13855
|
-
var __hasOwnProp$
|
|
13856
|
-
var __propIsEnum$
|
|
13857
|
-
var __defNormalProp$
|
|
13858
|
-
var __spreadValues$
|
|
13851
|
+
var __defProp$E = Object.defineProperty;
|
|
13852
|
+
var __defProps$y = Object.defineProperties;
|
|
13853
|
+
var __getOwnPropDescs$y = Object.getOwnPropertyDescriptors;
|
|
13854
|
+
var __getOwnPropSymbols$O = Object.getOwnPropertySymbols;
|
|
13855
|
+
var __hasOwnProp$O = Object.prototype.hasOwnProperty;
|
|
13856
|
+
var __propIsEnum$O = Object.prototype.propertyIsEnumerable;
|
|
13857
|
+
var __defNormalProp$E = (obj, key, value) => key in obj ? __defProp$E(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
13858
|
+
var __spreadValues$E = (a, b) => {
|
|
13859
13859
|
for (var prop in b || (b = {}))
|
|
13860
|
-
if (__hasOwnProp$
|
|
13861
|
-
__defNormalProp$
|
|
13862
|
-
if (__getOwnPropSymbols$
|
|
13863
|
-
for (var prop of __getOwnPropSymbols$
|
|
13864
|
-
if (__propIsEnum$
|
|
13865
|
-
__defNormalProp$
|
|
13860
|
+
if (__hasOwnProp$O.call(b, prop))
|
|
13861
|
+
__defNormalProp$E(a, prop, b[prop]);
|
|
13862
|
+
if (__getOwnPropSymbols$O)
|
|
13863
|
+
for (var prop of __getOwnPropSymbols$O(b)) {
|
|
13864
|
+
if (__propIsEnum$O.call(b, prop))
|
|
13865
|
+
__defNormalProp$E(a, prop, b[prop]);
|
|
13866
13866
|
}
|
|
13867
13867
|
return a;
|
|
13868
13868
|
};
|
|
13869
|
-
var __spreadProps$
|
|
13870
|
-
var __objRest$
|
|
13869
|
+
var __spreadProps$y = (a, b) => __defProps$y(a, __getOwnPropDescs$y(b));
|
|
13870
|
+
var __objRest$s = (source, exclude) => {
|
|
13871
13871
|
var target = {};
|
|
13872
13872
|
for (var prop in source)
|
|
13873
|
-
if (__hasOwnProp$
|
|
13873
|
+
if (__hasOwnProp$O.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
13874
13874
|
target[prop] = source[prop];
|
|
13875
|
-
if (source != null && __getOwnPropSymbols$
|
|
13876
|
-
for (var prop of __getOwnPropSymbols$
|
|
13877
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
13875
|
+
if (source != null && __getOwnPropSymbols$O)
|
|
13876
|
+
for (var prop of __getOwnPropSymbols$O(source)) {
|
|
13877
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$O.call(source, prop))
|
|
13878
13878
|
target[prop] = source[prop];
|
|
13879
13879
|
}
|
|
13880
13880
|
return target;
|
|
@@ -13920,11 +13920,11 @@ class CarriersAPI {
|
|
|
13920
13920
|
* The `connect` method connects a carrier account to a user's ShipEngine account.
|
|
13921
13921
|
*/
|
|
13922
13922
|
this.connect = (_a) => __async$$(this, null, function* () {
|
|
13923
|
-
var _b = _a, { carrierCode } = _b, connection = __objRest$
|
|
13923
|
+
var _b = _a, { carrierCode } = _b, connection = __objRest$s(_b, ["carrierCode"]);
|
|
13924
13924
|
const endUserIpAddress = yield getEndUserIpAddress();
|
|
13925
13925
|
if (!endUserIpAddress)
|
|
13926
13926
|
return Promise.reject([new CodedError("Unable to get IP address")]);
|
|
13927
|
-
return yield this.client.post(`/v1/registration/${carrierCode}`, __spreadProps$
|
|
13927
|
+
return yield this.client.post(`/v1/registration/${carrierCode}`, __spreadProps$y(__spreadValues$E({}, connection), {
|
|
13928
13928
|
endUserIpAddress
|
|
13929
13929
|
}));
|
|
13930
13930
|
});
|
|
@@ -16208,19 +16208,19 @@ class CustomPackagesAPI {
|
|
|
16208
16208
|
}
|
|
16209
16209
|
}
|
|
16210
16210
|
|
|
16211
|
-
var __defProp$
|
|
16212
|
-
var __getOwnPropSymbols$
|
|
16213
|
-
var __hasOwnProp$
|
|
16214
|
-
var __propIsEnum$
|
|
16215
|
-
var __defNormalProp$
|
|
16216
|
-
var __spreadValues$
|
|
16211
|
+
var __defProp$D = Object.defineProperty;
|
|
16212
|
+
var __getOwnPropSymbols$N = Object.getOwnPropertySymbols;
|
|
16213
|
+
var __hasOwnProp$N = Object.prototype.hasOwnProperty;
|
|
16214
|
+
var __propIsEnum$N = Object.prototype.propertyIsEnumerable;
|
|
16215
|
+
var __defNormalProp$D = (obj, key, value) => key in obj ? __defProp$D(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
16216
|
+
var __spreadValues$D = (a, b) => {
|
|
16217
16217
|
for (var prop in b || (b = {}))
|
|
16218
|
-
if (__hasOwnProp$
|
|
16219
|
-
__defNormalProp$
|
|
16220
|
-
if (__getOwnPropSymbols$
|
|
16221
|
-
for (var prop of __getOwnPropSymbols$
|
|
16222
|
-
if (__propIsEnum$
|
|
16223
|
-
__defNormalProp$
|
|
16218
|
+
if (__hasOwnProp$N.call(b, prop))
|
|
16219
|
+
__defNormalProp$D(a, prop, b[prop]);
|
|
16220
|
+
if (__getOwnPropSymbols$N)
|
|
16221
|
+
for (var prop of __getOwnPropSymbols$N(b)) {
|
|
16222
|
+
if (__propIsEnum$N.call(b, prop))
|
|
16223
|
+
__defNormalProp$D(a, prop, b[prop]);
|
|
16224
16224
|
}
|
|
16225
16225
|
return a;
|
|
16226
16226
|
};
|
|
@@ -16268,7 +16268,7 @@ class FundingSourcesAPI {
|
|
|
16268
16268
|
if (!endUserIpAddress) {
|
|
16269
16269
|
return Promise.reject([new CodedError("Unable to get IP address")]);
|
|
16270
16270
|
}
|
|
16271
|
-
return yield this.client.post("/v1/funding_sources", __spreadValues$
|
|
16271
|
+
return yield this.client.post("/v1/funding_sources", __spreadValues$D({
|
|
16272
16272
|
endUserIpAddress
|
|
16273
16273
|
}, createFundingSource));
|
|
16274
16274
|
});
|
|
@@ -16277,7 +16277,7 @@ class FundingSourcesAPI {
|
|
|
16277
16277
|
* user to update the billing address or payment information associated with the
|
|
16278
16278
|
* funding source.
|
|
16279
16279
|
*/
|
|
16280
|
-
this.update = (billingInfo, creditCardInfo, auctanePayInfo, fundingSourceId) => __async$Z(this, null, function* () {
|
|
16280
|
+
this.update = (billingInfo, creditCardInfo, bankAccountInfo, auctanePayInfo, fundingSourceId) => __async$Z(this, null, function* () {
|
|
16281
16281
|
const endUserIpAddress = yield getEndUserIpAddress();
|
|
16282
16282
|
if (!endUserIpAddress) {
|
|
16283
16283
|
return Promise.reject([new CodedError("Unable to get IP address")]);
|
|
@@ -16287,7 +16287,8 @@ class FundingSourcesAPI {
|
|
|
16287
16287
|
{
|
|
16288
16288
|
billingInfo,
|
|
16289
16289
|
endUserIpAddress,
|
|
16290
|
-
paymentMethod: __spreadValues$
|
|
16290
|
+
paymentMethod: __spreadValues$D({
|
|
16291
|
+
bankAccountInfo,
|
|
16291
16292
|
creditCardInfo
|
|
16292
16293
|
}, auctanePayInfo)
|
|
16293
16294
|
}
|
|
@@ -16302,7 +16303,7 @@ class FundingSourcesAPI {
|
|
|
16302
16303
|
if (!endUserIpAddress) {
|
|
16303
16304
|
return Promise.reject([new CodedError("Unable to get IP address")]);
|
|
16304
16305
|
}
|
|
16305
|
-
return yield this.client.post("/v1/registration/funding_source", __spreadValues$
|
|
16306
|
+
return yield this.client.post("/v1/registration/funding_source", __spreadValues$D({
|
|
16306
16307
|
endUserIpAddress
|
|
16307
16308
|
}, carrier));
|
|
16308
16309
|
});
|
|
@@ -16471,17 +16472,17 @@ class LabelsAPI {
|
|
|
16471
16472
|
}
|
|
16472
16473
|
}
|
|
16473
16474
|
|
|
16474
|
-
var __getOwnPropSymbols$
|
|
16475
|
-
var __hasOwnProp$
|
|
16476
|
-
var __propIsEnum$
|
|
16477
|
-
var __objRest$
|
|
16475
|
+
var __getOwnPropSymbols$M = Object.getOwnPropertySymbols;
|
|
16476
|
+
var __hasOwnProp$M = Object.prototype.hasOwnProperty;
|
|
16477
|
+
var __propIsEnum$M = Object.prototype.propertyIsEnumerable;
|
|
16478
|
+
var __objRest$r = (source, exclude) => {
|
|
16478
16479
|
var target = {};
|
|
16479
16480
|
for (var prop in source)
|
|
16480
|
-
if (__hasOwnProp$
|
|
16481
|
+
if (__hasOwnProp$M.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
16481
16482
|
target[prop] = source[prop];
|
|
16482
|
-
if (source != null && __getOwnPropSymbols$
|
|
16483
|
-
for (var prop of __getOwnPropSymbols$
|
|
16484
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
16483
|
+
if (source != null && __getOwnPropSymbols$M)
|
|
16484
|
+
for (var prop of __getOwnPropSymbols$M(source)) {
|
|
16485
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$M.call(source, prop))
|
|
16485
16486
|
target[prop] = source[prop];
|
|
16486
16487
|
}
|
|
16487
16488
|
return target;
|
|
@@ -16513,7 +16514,7 @@ class OrderSourcesAPI {
|
|
|
16513
16514
|
* The `update` method will allow the user to update a connected Order Source
|
|
16514
16515
|
*/
|
|
16515
16516
|
this.update = (_a) => {
|
|
16516
|
-
var _b = _a, { orderSourceId } = _b, rest = __objRest$
|
|
16517
|
+
var _b = _a, { orderSourceId } = _b, rest = __objRest$r(_b, ["orderSourceId"]);
|
|
16517
16518
|
return this.client.put(`/v-beta/order_sources/${orderSourceId}`, rest);
|
|
16518
16519
|
};
|
|
16519
16520
|
/**
|
|
@@ -16602,19 +16603,19 @@ class RateCardsAPI {
|
|
|
16602
16603
|
}
|
|
16603
16604
|
}
|
|
16604
16605
|
|
|
16605
|
-
var __defProp$
|
|
16606
|
-
var __getOwnPropSymbols$
|
|
16607
|
-
var __hasOwnProp$
|
|
16608
|
-
var __propIsEnum$
|
|
16609
|
-
var __defNormalProp$
|
|
16610
|
-
var __spreadValues$
|
|
16606
|
+
var __defProp$C = Object.defineProperty;
|
|
16607
|
+
var __getOwnPropSymbols$L = Object.getOwnPropertySymbols;
|
|
16608
|
+
var __hasOwnProp$L = Object.prototype.hasOwnProperty;
|
|
16609
|
+
var __propIsEnum$L = Object.prototype.propertyIsEnumerable;
|
|
16610
|
+
var __defNormalProp$C = (obj, key, value) => key in obj ? __defProp$C(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
16611
|
+
var __spreadValues$C = (a, b) => {
|
|
16611
16612
|
for (var prop in b || (b = {}))
|
|
16612
|
-
if (__hasOwnProp$
|
|
16613
|
-
__defNormalProp$
|
|
16614
|
-
if (__getOwnPropSymbols$
|
|
16615
|
-
for (var prop of __getOwnPropSymbols$
|
|
16616
|
-
if (__propIsEnum$
|
|
16617
|
-
__defNormalProp$
|
|
16613
|
+
if (__hasOwnProp$L.call(b, prop))
|
|
16614
|
+
__defNormalProp$C(a, prop, b[prop]);
|
|
16615
|
+
if (__getOwnPropSymbols$L)
|
|
16616
|
+
for (var prop of __getOwnPropSymbols$L(b)) {
|
|
16617
|
+
if (__propIsEnum$L.call(b, prop))
|
|
16618
|
+
__defNormalProp$C(a, prop, b[prop]);
|
|
16618
16619
|
}
|
|
16619
16620
|
return a;
|
|
16620
16621
|
};
|
|
@@ -16636,7 +16637,7 @@ class RatesAPI {
|
|
|
16636
16637
|
* method.
|
|
16637
16638
|
*/
|
|
16638
16639
|
this.estimate = (params) => {
|
|
16639
|
-
return this.client.post("/v1/rates/estimate", __spreadValues$
|
|
16640
|
+
return this.client.post("/v1/rates/estimate", __spreadValues$C({}, params));
|
|
16640
16641
|
};
|
|
16641
16642
|
this.client = client;
|
|
16642
16643
|
}
|
|
@@ -16820,19 +16821,19 @@ class SellersAPI {
|
|
|
16820
16821
|
}
|
|
16821
16822
|
}
|
|
16822
16823
|
|
|
16823
|
-
var __defProp$
|
|
16824
|
-
var __getOwnPropSymbols$
|
|
16825
|
-
var __hasOwnProp$
|
|
16826
|
-
var __propIsEnum$
|
|
16827
|
-
var __defNormalProp$
|
|
16828
|
-
var __spreadValues$
|
|
16824
|
+
var __defProp$B = Object.defineProperty;
|
|
16825
|
+
var __getOwnPropSymbols$K = Object.getOwnPropertySymbols;
|
|
16826
|
+
var __hasOwnProp$K = Object.prototype.hasOwnProperty;
|
|
16827
|
+
var __propIsEnum$K = Object.prototype.propertyIsEnumerable;
|
|
16828
|
+
var __defNormalProp$B = (obj, key, value) => key in obj ? __defProp$B(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
16829
|
+
var __spreadValues$B = (a, b) => {
|
|
16829
16830
|
for (var prop in b || (b = {}))
|
|
16830
|
-
if (__hasOwnProp$
|
|
16831
|
-
__defNormalProp$
|
|
16832
|
-
if (__getOwnPropSymbols$
|
|
16833
|
-
for (var prop of __getOwnPropSymbols$
|
|
16834
|
-
if (__propIsEnum$
|
|
16835
|
-
__defNormalProp$
|
|
16831
|
+
if (__hasOwnProp$K.call(b, prop))
|
|
16832
|
+
__defNormalProp$B(a, prop, b[prop]);
|
|
16833
|
+
if (__getOwnPropSymbols$K)
|
|
16834
|
+
for (var prop of __getOwnPropSymbols$K(b)) {
|
|
16835
|
+
if (__propIsEnum$K.call(b, prop))
|
|
16836
|
+
__defNormalProp$B(a, prop, b[prop]);
|
|
16836
16837
|
}
|
|
16837
16838
|
return a;
|
|
16838
16839
|
};
|
|
@@ -16844,7 +16845,7 @@ class ServicePointsAPI {
|
|
|
16844
16845
|
* Either an address, coordinates, or an address query
|
|
16845
16846
|
*/
|
|
16846
16847
|
this.list = (options) => {
|
|
16847
|
-
return this.client.post("/v1/service_points/list", __spreadValues$
|
|
16848
|
+
return this.client.post("/v1/service_points/list", __spreadValues$B({}, options));
|
|
16848
16849
|
};
|
|
16849
16850
|
/**
|
|
16850
16851
|
* Get a specific service point by its carrier code, country code, and id
|
|
@@ -16927,6 +16928,18 @@ class ShipmentsAPI {
|
|
|
16927
16928
|
this.cancel = (shipmentId) => {
|
|
16928
16929
|
return this.client.put(`/v1/shipments/${shipmentId}/cancel`);
|
|
16929
16930
|
};
|
|
16931
|
+
/**
|
|
16932
|
+
* The `download` method allows for downloading a CSV document of shipments based on the provided parameters.
|
|
16933
|
+
*/
|
|
16934
|
+
this.download = (params) => {
|
|
16935
|
+
return this.client.get("/v1/shipments/downloads", {
|
|
16936
|
+
headers: {
|
|
16937
|
+
Accept: "text/csv"
|
|
16938
|
+
},
|
|
16939
|
+
params,
|
|
16940
|
+
responseType: "blob"
|
|
16941
|
+
});
|
|
16942
|
+
};
|
|
16930
16943
|
this.client = client;
|
|
16931
16944
|
}
|
|
16932
16945
|
}
|
|
@@ -34303,25 +34316,25 @@ class WebhooksAPI {
|
|
|
34303
34316
|
}
|
|
34304
34317
|
}
|
|
34305
34318
|
|
|
34306
|
-
var __defProp$
|
|
34307
|
-
var __defProps$
|
|
34308
|
-
var __getOwnPropDescs$
|
|
34309
|
-
var __getOwnPropSymbols$
|
|
34310
|
-
var __hasOwnProp$
|
|
34311
|
-
var __propIsEnum$
|
|
34312
|
-
var __defNormalProp$
|
|
34313
|
-
var __spreadValues$
|
|
34319
|
+
var __defProp$A = Object.defineProperty;
|
|
34320
|
+
var __defProps$x = Object.defineProperties;
|
|
34321
|
+
var __getOwnPropDescs$x = Object.getOwnPropertyDescriptors;
|
|
34322
|
+
var __getOwnPropSymbols$J = Object.getOwnPropertySymbols;
|
|
34323
|
+
var __hasOwnProp$J = Object.prototype.hasOwnProperty;
|
|
34324
|
+
var __propIsEnum$J = Object.prototype.propertyIsEnumerable;
|
|
34325
|
+
var __defNormalProp$A = (obj, key, value) => key in obj ? __defProp$A(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
34326
|
+
var __spreadValues$A = (a, b) => {
|
|
34314
34327
|
for (var prop in b || (b = {}))
|
|
34315
|
-
if (__hasOwnProp$
|
|
34316
|
-
__defNormalProp$
|
|
34317
|
-
if (__getOwnPropSymbols$
|
|
34318
|
-
for (var prop of __getOwnPropSymbols$
|
|
34319
|
-
if (__propIsEnum$
|
|
34320
|
-
__defNormalProp$
|
|
34328
|
+
if (__hasOwnProp$J.call(b, prop))
|
|
34329
|
+
__defNormalProp$A(a, prop, b[prop]);
|
|
34330
|
+
if (__getOwnPropSymbols$J)
|
|
34331
|
+
for (var prop of __getOwnPropSymbols$J(b)) {
|
|
34332
|
+
if (__propIsEnum$J.call(b, prop))
|
|
34333
|
+
__defNormalProp$A(a, prop, b[prop]);
|
|
34321
34334
|
}
|
|
34322
34335
|
return a;
|
|
34323
34336
|
};
|
|
34324
|
-
var __spreadProps$
|
|
34337
|
+
var __spreadProps$x = (a, b) => __defProps$x(a, __getOwnPropDescs$x(b));
|
|
34325
34338
|
var __async$V = (__this, __arguments, generator) => {
|
|
34326
34339
|
return new Promise((resolve, reject) => {
|
|
34327
34340
|
var fulfilled = (value) => {
|
|
@@ -34345,7 +34358,7 @@ var __async$V = (__this, __arguments, generator) => {
|
|
|
34345
34358
|
const logger$1 = E({
|
|
34346
34359
|
level: process.env.NODE_ENV === "production" ? "fatal" : "info",
|
|
34347
34360
|
name: "shipengine-api",
|
|
34348
|
-
serializers: __spreadProps$
|
|
34361
|
+
serializers: __spreadProps$x(__spreadValues$A({}, k), {
|
|
34349
34362
|
req: (req) => ({
|
|
34350
34363
|
headers: req.headers,
|
|
34351
34364
|
method: req.method,
|
|
@@ -34370,7 +34383,7 @@ class ShipEngineAPI {
|
|
|
34370
34383
|
this.getSandboxToken = getSandboxToken;
|
|
34371
34384
|
const client = axios.create({
|
|
34372
34385
|
baseURL,
|
|
34373
|
-
headers: __spreadProps$
|
|
34386
|
+
headers: __spreadProps$x(__spreadValues$A({}, headers), {
|
|
34374
34387
|
"Content-Type": "application/json"
|
|
34375
34388
|
}),
|
|
34376
34389
|
paramsSerializer: (params) => lib.stringify(decamelizeKeys(params), { arrayFormat: "brackets" }),
|
|
@@ -34774,25 +34787,25 @@ const delay = (ms) => new Promise((resolve) => {
|
|
|
34774
34787
|
|
|
34775
34788
|
const onError = (_errors) => _default();
|
|
34776
34789
|
|
|
34777
|
-
var __defProp$
|
|
34778
|
-
var __defProps$
|
|
34779
|
-
var __getOwnPropDescs$
|
|
34780
|
-
var __getOwnPropSymbols$
|
|
34781
|
-
var __hasOwnProp$
|
|
34782
|
-
var __propIsEnum$
|
|
34783
|
-
var __defNormalProp$
|
|
34784
|
-
var __spreadValues$
|
|
34790
|
+
var __defProp$z = Object.defineProperty;
|
|
34791
|
+
var __defProps$w = Object.defineProperties;
|
|
34792
|
+
var __getOwnPropDescs$w = Object.getOwnPropertyDescriptors;
|
|
34793
|
+
var __getOwnPropSymbols$I = Object.getOwnPropertySymbols;
|
|
34794
|
+
var __hasOwnProp$I = Object.prototype.hasOwnProperty;
|
|
34795
|
+
var __propIsEnum$I = Object.prototype.propertyIsEnumerable;
|
|
34796
|
+
var __defNormalProp$z = (obj, key, value) => key in obj ? __defProp$z(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
34797
|
+
var __spreadValues$z = (a, b) => {
|
|
34785
34798
|
for (var prop in b || (b = {}))
|
|
34786
|
-
if (__hasOwnProp$
|
|
34787
|
-
__defNormalProp$
|
|
34788
|
-
if (__getOwnPropSymbols$
|
|
34789
|
-
for (var prop of __getOwnPropSymbols$
|
|
34790
|
-
if (__propIsEnum$
|
|
34791
|
-
__defNormalProp$
|
|
34799
|
+
if (__hasOwnProp$I.call(b, prop))
|
|
34800
|
+
__defNormalProp$z(a, prop, b[prop]);
|
|
34801
|
+
if (__getOwnPropSymbols$I)
|
|
34802
|
+
for (var prop of __getOwnPropSymbols$I(b)) {
|
|
34803
|
+
if (__propIsEnum$I.call(b, prop))
|
|
34804
|
+
__defNormalProp$z(a, prop, b[prop]);
|
|
34792
34805
|
}
|
|
34793
34806
|
return a;
|
|
34794
34807
|
};
|
|
34795
|
-
var __spreadProps$
|
|
34808
|
+
var __spreadProps$w = (a, b) => __defProps$w(a, __getOwnPropDescs$w(b));
|
|
34796
34809
|
const streams = [];
|
|
34797
34810
|
if (process.env.NODE_ENV === "production") {
|
|
34798
34811
|
streams.push({
|
|
@@ -34801,7 +34814,7 @@ if (process.env.NODE_ENV === "production") {
|
|
|
34801
34814
|
}
|
|
34802
34815
|
const logger = E({
|
|
34803
34816
|
name: "shipengine",
|
|
34804
|
-
serializers: __spreadProps$
|
|
34817
|
+
serializers: __spreadProps$w(__spreadValues$z({}, k), {
|
|
34805
34818
|
req: (req) => ({
|
|
34806
34819
|
headers: req.headers,
|
|
34807
34820
|
method: req.method,
|
|
@@ -35038,25 +35051,25 @@ const useValidateAddresses = () => {
|
|
|
35038
35051
|
});
|
|
35039
35052
|
};
|
|
35040
35053
|
|
|
35041
|
-
var __defProp$
|
|
35042
|
-
var __defProps$
|
|
35043
|
-
var __getOwnPropDescs$
|
|
35044
|
-
var __getOwnPropSymbols$
|
|
35045
|
-
var __hasOwnProp$
|
|
35046
|
-
var __propIsEnum$
|
|
35047
|
-
var __defNormalProp$
|
|
35048
|
-
var __spreadValues$
|
|
35054
|
+
var __defProp$y = Object.defineProperty;
|
|
35055
|
+
var __defProps$v = Object.defineProperties;
|
|
35056
|
+
var __getOwnPropDescs$v = Object.getOwnPropertyDescriptors;
|
|
35057
|
+
var __getOwnPropSymbols$H = Object.getOwnPropertySymbols;
|
|
35058
|
+
var __hasOwnProp$H = Object.prototype.hasOwnProperty;
|
|
35059
|
+
var __propIsEnum$H = Object.prototype.propertyIsEnumerable;
|
|
35060
|
+
var __defNormalProp$y = (obj, key, value) => key in obj ? __defProp$y(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
35061
|
+
var __spreadValues$y = (a, b) => {
|
|
35049
35062
|
for (var prop in b || (b = {}))
|
|
35050
|
-
if (__hasOwnProp$
|
|
35051
|
-
__defNormalProp$
|
|
35052
|
-
if (__getOwnPropSymbols$
|
|
35053
|
-
for (var prop of __getOwnPropSymbols$
|
|
35054
|
-
if (__propIsEnum$
|
|
35055
|
-
__defNormalProp$
|
|
35063
|
+
if (__hasOwnProp$H.call(b, prop))
|
|
35064
|
+
__defNormalProp$y(a, prop, b[prop]);
|
|
35065
|
+
if (__getOwnPropSymbols$H)
|
|
35066
|
+
for (var prop of __getOwnPropSymbols$H(b)) {
|
|
35067
|
+
if (__propIsEnum$H.call(b, prop))
|
|
35068
|
+
__defNormalProp$y(a, prop, b[prop]);
|
|
35056
35069
|
}
|
|
35057
35070
|
return a;
|
|
35058
35071
|
};
|
|
35059
|
-
var __spreadProps$
|
|
35072
|
+
var __spreadProps$v = (a, b) => __defProps$v(a, __getOwnPropDescs$v(b));
|
|
35060
35073
|
var __async$O = (__this, __arguments, generator) => {
|
|
35061
35074
|
return new Promise((resolve, reject) => {
|
|
35062
35075
|
var fulfilled = (value) => {
|
|
@@ -35079,7 +35092,7 @@ var __async$O = (__this, __arguments, generator) => {
|
|
|
35079
35092
|
};
|
|
35080
35093
|
const useCreateAuctanePaySession = (params) => {
|
|
35081
35094
|
const { client } = useShipEngine();
|
|
35082
|
-
return reactQuery.useMutation(__spreadProps$
|
|
35095
|
+
return reactQuery.useMutation(__spreadProps$v(__spreadValues$y({}, params), {
|
|
35083
35096
|
mutationFn: (request) => __async$O(void 0, null, function* () {
|
|
35084
35097
|
const result = yield client.auctanePay.createSession(request);
|
|
35085
35098
|
return result.data;
|
|
@@ -35089,29 +35102,29 @@ const useCreateAuctanePaySession = (params) => {
|
|
|
35089
35102
|
}));
|
|
35090
35103
|
};
|
|
35091
35104
|
|
|
35092
|
-
var __defProp$
|
|
35093
|
-
var __defProps$
|
|
35094
|
-
var __getOwnPropDescs$
|
|
35095
|
-
var __getOwnPropSymbols$
|
|
35096
|
-
var __hasOwnProp$
|
|
35097
|
-
var __propIsEnum$
|
|
35098
|
-
var __defNormalProp$
|
|
35099
|
-
var __spreadValues$
|
|
35105
|
+
var __defProp$x = Object.defineProperty;
|
|
35106
|
+
var __defProps$u = Object.defineProperties;
|
|
35107
|
+
var __getOwnPropDescs$u = Object.getOwnPropertyDescriptors;
|
|
35108
|
+
var __getOwnPropSymbols$G = Object.getOwnPropertySymbols;
|
|
35109
|
+
var __hasOwnProp$G = Object.prototype.hasOwnProperty;
|
|
35110
|
+
var __propIsEnum$G = Object.prototype.propertyIsEnumerable;
|
|
35111
|
+
var __defNormalProp$x = (obj, key, value) => key in obj ? __defProp$x(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
35112
|
+
var __spreadValues$x = (a, b) => {
|
|
35100
35113
|
for (var prop in b || (b = {}))
|
|
35101
|
-
if (__hasOwnProp$
|
|
35102
|
-
__defNormalProp$
|
|
35103
|
-
if (__getOwnPropSymbols$
|
|
35104
|
-
for (var prop of __getOwnPropSymbols$
|
|
35105
|
-
if (__propIsEnum$
|
|
35106
|
-
__defNormalProp$
|
|
35114
|
+
if (__hasOwnProp$G.call(b, prop))
|
|
35115
|
+
__defNormalProp$x(a, prop, b[prop]);
|
|
35116
|
+
if (__getOwnPropSymbols$G)
|
|
35117
|
+
for (var prop of __getOwnPropSymbols$G(b)) {
|
|
35118
|
+
if (__propIsEnum$G.call(b, prop))
|
|
35119
|
+
__defNormalProp$x(a, prop, b[prop]);
|
|
35107
35120
|
}
|
|
35108
35121
|
return a;
|
|
35109
35122
|
};
|
|
35110
|
-
var __spreadProps$
|
|
35123
|
+
var __spreadProps$u = (a, b) => __defProps$u(a, __getOwnPropDescs$u(b));
|
|
35111
35124
|
const useGetAuctanePayConfig = (params) => {
|
|
35112
35125
|
const { client } = useShipEngine();
|
|
35113
|
-
const queryParams = __spreadValues$
|
|
35114
|
-
return reactQuery.useQuery(__spreadProps$
|
|
35126
|
+
const queryParams = __spreadValues$x({}, params);
|
|
35127
|
+
return reactQuery.useQuery(__spreadProps$u(__spreadValues$x({}, queryParams), {
|
|
35115
35128
|
onError,
|
|
35116
35129
|
queryFn: () => client.auctanePay.getConfig(),
|
|
35117
35130
|
queryKey: ["useGetAuctanePayConfig"],
|
|
@@ -35283,41 +35296,41 @@ const useGetServicesByCarrier = (carrierId) => {
|
|
|
35283
35296
|
});
|
|
35284
35297
|
};
|
|
35285
35298
|
|
|
35286
|
-
var __defProp$
|
|
35287
|
-
var __defProps$
|
|
35288
|
-
var __getOwnPropDescs$
|
|
35289
|
-
var __getOwnPropSymbols$
|
|
35290
|
-
var __hasOwnProp$
|
|
35291
|
-
var __propIsEnum$
|
|
35292
|
-
var __defNormalProp$
|
|
35293
|
-
var __spreadValues$
|
|
35299
|
+
var __defProp$w = Object.defineProperty;
|
|
35300
|
+
var __defProps$t = Object.defineProperties;
|
|
35301
|
+
var __getOwnPropDescs$t = Object.getOwnPropertyDescriptors;
|
|
35302
|
+
var __getOwnPropSymbols$F = Object.getOwnPropertySymbols;
|
|
35303
|
+
var __hasOwnProp$F = Object.prototype.hasOwnProperty;
|
|
35304
|
+
var __propIsEnum$F = Object.prototype.propertyIsEnumerable;
|
|
35305
|
+
var __defNormalProp$w = (obj, key, value) => key in obj ? __defProp$w(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
35306
|
+
var __spreadValues$w = (a, b) => {
|
|
35294
35307
|
for (var prop in b || (b = {}))
|
|
35295
|
-
if (__hasOwnProp$
|
|
35296
|
-
__defNormalProp$
|
|
35297
|
-
if (__getOwnPropSymbols$
|
|
35298
|
-
for (var prop of __getOwnPropSymbols$
|
|
35299
|
-
if (__propIsEnum$
|
|
35300
|
-
__defNormalProp$
|
|
35308
|
+
if (__hasOwnProp$F.call(b, prop))
|
|
35309
|
+
__defNormalProp$w(a, prop, b[prop]);
|
|
35310
|
+
if (__getOwnPropSymbols$F)
|
|
35311
|
+
for (var prop of __getOwnPropSymbols$F(b)) {
|
|
35312
|
+
if (__propIsEnum$F.call(b, prop))
|
|
35313
|
+
__defNormalProp$w(a, prop, b[prop]);
|
|
35301
35314
|
}
|
|
35302
35315
|
return a;
|
|
35303
35316
|
};
|
|
35304
|
-
var __spreadProps$
|
|
35305
|
-
var __objRest$
|
|
35317
|
+
var __spreadProps$t = (a, b) => __defProps$t(a, __getOwnPropDescs$t(b));
|
|
35318
|
+
var __objRest$q = (source, exclude) => {
|
|
35306
35319
|
var target = {};
|
|
35307
35320
|
for (var prop in source)
|
|
35308
|
-
if (__hasOwnProp$
|
|
35321
|
+
if (__hasOwnProp$F.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
35309
35322
|
target[prop] = source[prop];
|
|
35310
|
-
if (source != null && __getOwnPropSymbols$
|
|
35311
|
-
for (var prop of __getOwnPropSymbols$
|
|
35312
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
35323
|
+
if (source != null && __getOwnPropSymbols$F)
|
|
35324
|
+
for (var prop of __getOwnPropSymbols$F(source)) {
|
|
35325
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$F.call(source, prop))
|
|
35313
35326
|
target[prop] = source[prop];
|
|
35314
35327
|
}
|
|
35315
35328
|
return target;
|
|
35316
35329
|
};
|
|
35317
35330
|
const useListCarriers = (params) => {
|
|
35318
35331
|
const { client } = useShipEngine();
|
|
35319
|
-
const _a = __spreadValues$
|
|
35320
|
-
return reactQuery.useQuery(__spreadProps$
|
|
35332
|
+
const _a = __spreadValues$w({}, params), { queryFnParams } = _a, rest = __objRest$q(_a, ["queryFnParams"]);
|
|
35333
|
+
return reactQuery.useQuery(__spreadProps$t(__spreadValues$w({}, rest), {
|
|
35321
35334
|
onError,
|
|
35322
35335
|
queryFn: () => client.carriers.list(queryFnParams),
|
|
35323
35336
|
queryKey: ["useListCarriers", queryFnParams],
|
|
@@ -35325,17 +35338,17 @@ const useListCarriers = (params) => {
|
|
|
35325
35338
|
}));
|
|
35326
35339
|
};
|
|
35327
35340
|
|
|
35328
|
-
var __getOwnPropSymbols$
|
|
35329
|
-
var __hasOwnProp$
|
|
35330
|
-
var __propIsEnum$
|
|
35331
|
-
var __objRest$
|
|
35341
|
+
var __getOwnPropSymbols$E = Object.getOwnPropertySymbols;
|
|
35342
|
+
var __hasOwnProp$E = Object.prototype.hasOwnProperty;
|
|
35343
|
+
var __propIsEnum$E = Object.prototype.propertyIsEnumerable;
|
|
35344
|
+
var __objRest$p = (source, exclude) => {
|
|
35332
35345
|
var target = {};
|
|
35333
35346
|
for (var prop in source)
|
|
35334
|
-
if (__hasOwnProp$
|
|
35347
|
+
if (__hasOwnProp$E.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
35335
35348
|
target[prop] = source[prop];
|
|
35336
|
-
if (source != null && __getOwnPropSymbols$
|
|
35337
|
-
for (var prop of __getOwnPropSymbols$
|
|
35338
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
35349
|
+
if (source != null && __getOwnPropSymbols$E)
|
|
35350
|
+
for (var prop of __getOwnPropSymbols$E(source)) {
|
|
35351
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$E.call(source, prop))
|
|
35339
35352
|
target[prop] = source[prop];
|
|
35340
35353
|
}
|
|
35341
35354
|
return target;
|
|
@@ -35365,7 +35378,7 @@ const useUpdateAutoFunding = () => {
|
|
|
35365
35378
|
const queryClient = reactQuery.useQueryClient();
|
|
35366
35379
|
return reactQuery.useMutation({
|
|
35367
35380
|
mutationFn: (_a) => __async$L(void 0, null, function* () {
|
|
35368
|
-
var _b = _a, { carrierId } = _b, options = __objRest$
|
|
35381
|
+
var _b = _a, { carrierId } = _b, options = __objRest$p(_b, ["carrierId"]);
|
|
35369
35382
|
const result = yield client.carriers.updateAutoFunding(carrierId, options);
|
|
35370
35383
|
return result.data;
|
|
35371
35384
|
}),
|
|
@@ -35426,24 +35439,24 @@ const useDeleteCarrier = () => {
|
|
|
35426
35439
|
});
|
|
35427
35440
|
};
|
|
35428
35441
|
|
|
35429
|
-
var __getOwnPropSymbols$
|
|
35430
|
-
var __hasOwnProp$
|
|
35431
|
-
var __propIsEnum$
|
|
35432
|
-
var __objRest$
|
|
35442
|
+
var __getOwnPropSymbols$D = Object.getOwnPropertySymbols;
|
|
35443
|
+
var __hasOwnProp$D = Object.prototype.hasOwnProperty;
|
|
35444
|
+
var __propIsEnum$D = Object.prototype.propertyIsEnumerable;
|
|
35445
|
+
var __objRest$o = (source, exclude) => {
|
|
35433
35446
|
var target = {};
|
|
35434
35447
|
for (var prop in source)
|
|
35435
|
-
if (__hasOwnProp$
|
|
35448
|
+
if (__hasOwnProp$D.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
35436
35449
|
target[prop] = source[prop];
|
|
35437
|
-
if (source != null && __getOwnPropSymbols$
|
|
35438
|
-
for (var prop of __getOwnPropSymbols$
|
|
35439
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
35450
|
+
if (source != null && __getOwnPropSymbols$D)
|
|
35451
|
+
for (var prop of __getOwnPropSymbols$D(source)) {
|
|
35452
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$D.call(source, prop))
|
|
35440
35453
|
target[prop] = source[prop];
|
|
35441
35454
|
}
|
|
35442
35455
|
return target;
|
|
35443
35456
|
};
|
|
35444
35457
|
const useGetCarrierConnectionForm = (_params) => {
|
|
35445
35458
|
const { client } = useShipEngine();
|
|
35446
|
-
const _a = _params || {}, { carrierName, enabled = true } = _a, params = __objRest$
|
|
35459
|
+
const _a = _params || {}, { carrierName, enabled = true } = _a, params = __objRest$o(_a, ["carrierName", "enabled"]);
|
|
35447
35460
|
return reactQuery.useQuery({
|
|
35448
35461
|
enabled,
|
|
35449
35462
|
onError,
|
|
@@ -35453,24 +35466,24 @@ const useGetCarrierConnectionForm = (_params) => {
|
|
|
35453
35466
|
});
|
|
35454
35467
|
};
|
|
35455
35468
|
|
|
35456
|
-
var __getOwnPropSymbols$
|
|
35457
|
-
var __hasOwnProp$
|
|
35458
|
-
var __propIsEnum$
|
|
35459
|
-
var __objRest$
|
|
35469
|
+
var __getOwnPropSymbols$C = Object.getOwnPropertySymbols;
|
|
35470
|
+
var __hasOwnProp$C = Object.prototype.hasOwnProperty;
|
|
35471
|
+
var __propIsEnum$C = Object.prototype.propertyIsEnumerable;
|
|
35472
|
+
var __objRest$n = (source, exclude) => {
|
|
35460
35473
|
var target = {};
|
|
35461
35474
|
for (var prop in source)
|
|
35462
|
-
if (__hasOwnProp$
|
|
35475
|
+
if (__hasOwnProp$C.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
35463
35476
|
target[prop] = source[prop];
|
|
35464
|
-
if (source != null && __getOwnPropSymbols$
|
|
35465
|
-
for (var prop of __getOwnPropSymbols$
|
|
35466
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
35477
|
+
if (source != null && __getOwnPropSymbols$C)
|
|
35478
|
+
for (var prop of __getOwnPropSymbols$C(source)) {
|
|
35479
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$C.call(source, prop))
|
|
35467
35480
|
target[prop] = source[prop];
|
|
35468
35481
|
}
|
|
35469
35482
|
return target;
|
|
35470
35483
|
};
|
|
35471
35484
|
const useListCarrierConnections = (_params) => {
|
|
35472
35485
|
const { client } = useShipEngine();
|
|
35473
|
-
const _a = _params || {}, { enabled = true } = _a, params = __objRest$
|
|
35486
|
+
const _a = _params || {}, { enabled = true } = _a, params = __objRest$n(_a, ["enabled"]);
|
|
35474
35487
|
return reactQuery.useQuery({
|
|
35475
35488
|
enabled,
|
|
35476
35489
|
onError,
|
|
@@ -35523,33 +35536,33 @@ const useCarrierConnectionsServicesList = (carrierCode) => {
|
|
|
35523
35536
|
});
|
|
35524
35537
|
};
|
|
35525
35538
|
|
|
35526
|
-
var __defProp$
|
|
35527
|
-
var __defProps$
|
|
35528
|
-
var __getOwnPropDescs$
|
|
35529
|
-
var __getOwnPropSymbols$
|
|
35530
|
-
var __hasOwnProp$
|
|
35531
|
-
var __propIsEnum$
|
|
35532
|
-
var __defNormalProp$
|
|
35533
|
-
var __spreadValues$
|
|
35539
|
+
var __defProp$v = Object.defineProperty;
|
|
35540
|
+
var __defProps$s = Object.defineProperties;
|
|
35541
|
+
var __getOwnPropDescs$s = Object.getOwnPropertyDescriptors;
|
|
35542
|
+
var __getOwnPropSymbols$B = Object.getOwnPropertySymbols;
|
|
35543
|
+
var __hasOwnProp$B = Object.prototype.hasOwnProperty;
|
|
35544
|
+
var __propIsEnum$B = Object.prototype.propertyIsEnumerable;
|
|
35545
|
+
var __defNormalProp$v = (obj, key, value) => key in obj ? __defProp$v(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
35546
|
+
var __spreadValues$v = (a, b) => {
|
|
35534
35547
|
for (var prop in b || (b = {}))
|
|
35535
|
-
if (__hasOwnProp$
|
|
35536
|
-
__defNormalProp$
|
|
35537
|
-
if (__getOwnPropSymbols$
|
|
35538
|
-
for (var prop of __getOwnPropSymbols$
|
|
35539
|
-
if (__propIsEnum$
|
|
35540
|
-
__defNormalProp$
|
|
35548
|
+
if (__hasOwnProp$B.call(b, prop))
|
|
35549
|
+
__defNormalProp$v(a, prop, b[prop]);
|
|
35550
|
+
if (__getOwnPropSymbols$B)
|
|
35551
|
+
for (var prop of __getOwnPropSymbols$B(b)) {
|
|
35552
|
+
if (__propIsEnum$B.call(b, prop))
|
|
35553
|
+
__defNormalProp$v(a, prop, b[prop]);
|
|
35541
35554
|
}
|
|
35542
35555
|
return a;
|
|
35543
35556
|
};
|
|
35544
|
-
var __spreadProps$
|
|
35545
|
-
var __objRest$
|
|
35557
|
+
var __spreadProps$s = (a, b) => __defProps$s(a, __getOwnPropDescs$s(b));
|
|
35558
|
+
var __objRest$m = (source, exclude) => {
|
|
35546
35559
|
var target = {};
|
|
35547
35560
|
for (var prop in source)
|
|
35548
|
-
if (__hasOwnProp$
|
|
35561
|
+
if (__hasOwnProp$B.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
35549
35562
|
target[prop] = source[prop];
|
|
35550
|
-
if (source != null && __getOwnPropSymbols$
|
|
35551
|
-
for (var prop of __getOwnPropSymbols$
|
|
35552
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
35563
|
+
if (source != null && __getOwnPropSymbols$B)
|
|
35564
|
+
for (var prop of __getOwnPropSymbols$B(source)) {
|
|
35565
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$B.call(source, prop))
|
|
35553
35566
|
target[prop] = source[prop];
|
|
35554
35567
|
}
|
|
35555
35568
|
return target;
|
|
@@ -35557,12 +35570,12 @@ var __objRest$l = (source, exclude) => {
|
|
|
35557
35570
|
const useGetConnectionsCarrierSettings = (_a) => {
|
|
35558
35571
|
var _b = _a, {
|
|
35559
35572
|
queryFnParams
|
|
35560
|
-
} = _b, params = __objRest$
|
|
35573
|
+
} = _b, params = __objRest$m(_b, [
|
|
35561
35574
|
"queryFnParams"
|
|
35562
35575
|
]);
|
|
35563
35576
|
const { client } = useShipEngine();
|
|
35564
35577
|
const { carrierName, carrierId } = queryFnParams;
|
|
35565
|
-
return reactQuery.useQuery(__spreadProps$
|
|
35578
|
+
return reactQuery.useQuery(__spreadProps$s(__spreadValues$v({}, params), {
|
|
35566
35579
|
onError,
|
|
35567
35580
|
queryFn: () => client.connections.getCarrierSettings(carrierName, carrierId),
|
|
35568
35581
|
queryKey: ["useGetConnectionsCarrierSettings", carrierName, carrierId],
|
|
@@ -35570,25 +35583,25 @@ const useGetConnectionsCarrierSettings = (_a) => {
|
|
|
35570
35583
|
}));
|
|
35571
35584
|
};
|
|
35572
35585
|
|
|
35573
|
-
var __defProp$
|
|
35574
|
-
var __defProps$
|
|
35575
|
-
var __getOwnPropDescs$
|
|
35576
|
-
var __getOwnPropSymbols$
|
|
35577
|
-
var __hasOwnProp$
|
|
35578
|
-
var __propIsEnum$
|
|
35579
|
-
var __defNormalProp$
|
|
35580
|
-
var __spreadValues$
|
|
35586
|
+
var __defProp$u = Object.defineProperty;
|
|
35587
|
+
var __defProps$r = Object.defineProperties;
|
|
35588
|
+
var __getOwnPropDescs$r = Object.getOwnPropertyDescriptors;
|
|
35589
|
+
var __getOwnPropSymbols$A = Object.getOwnPropertySymbols;
|
|
35590
|
+
var __hasOwnProp$A = Object.prototype.hasOwnProperty;
|
|
35591
|
+
var __propIsEnum$A = Object.prototype.propertyIsEnumerable;
|
|
35592
|
+
var __defNormalProp$u = (obj, key, value) => key in obj ? __defProp$u(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
35593
|
+
var __spreadValues$u = (a, b) => {
|
|
35581
35594
|
for (var prop in b || (b = {}))
|
|
35582
|
-
if (__hasOwnProp$
|
|
35583
|
-
__defNormalProp$
|
|
35584
|
-
if (__getOwnPropSymbols$
|
|
35585
|
-
for (var prop of __getOwnPropSymbols$
|
|
35586
|
-
if (__propIsEnum$
|
|
35587
|
-
__defNormalProp$
|
|
35595
|
+
if (__hasOwnProp$A.call(b, prop))
|
|
35596
|
+
__defNormalProp$u(a, prop, b[prop]);
|
|
35597
|
+
if (__getOwnPropSymbols$A)
|
|
35598
|
+
for (var prop of __getOwnPropSymbols$A(b)) {
|
|
35599
|
+
if (__propIsEnum$A.call(b, prop))
|
|
35600
|
+
__defNormalProp$u(a, prop, b[prop]);
|
|
35588
35601
|
}
|
|
35589
35602
|
return a;
|
|
35590
35603
|
};
|
|
35591
|
-
var __spreadProps$
|
|
35604
|
+
var __spreadProps$r = (a, b) => __defProps$r(a, __getOwnPropDescs$r(b));
|
|
35592
35605
|
var __async$I = (__this, __arguments, generator) => {
|
|
35593
35606
|
return new Promise((resolve, reject) => {
|
|
35594
35607
|
var fulfilled = (value) => {
|
|
@@ -35611,7 +35624,7 @@ var __async$I = (__this, __arguments, generator) => {
|
|
|
35611
35624
|
};
|
|
35612
35625
|
const useUpdateConnectionsCarrierSettings = (params) => {
|
|
35613
35626
|
const { client } = useShipEngine();
|
|
35614
|
-
return reactQuery.useMutation(__spreadProps$
|
|
35627
|
+
return reactQuery.useMutation(__spreadProps$r(__spreadValues$u({}, params), {
|
|
35615
35628
|
mutationFn: (_0) => __async$I(void 0, [_0], function* ({
|
|
35616
35629
|
carrierName,
|
|
35617
35630
|
carrierId,
|
|
@@ -35781,12 +35794,14 @@ const useUpdateFundingSource = () => {
|
|
|
35781
35794
|
mutationFn: (_0) => __async$E(void 0, [_0], function* ({
|
|
35782
35795
|
billingInfo,
|
|
35783
35796
|
creditCardInfo,
|
|
35797
|
+
bankAccountInfo,
|
|
35784
35798
|
fundingSourceId,
|
|
35785
35799
|
auctanePayInfo
|
|
35786
35800
|
}) {
|
|
35787
35801
|
const result = yield client.fundingSources.update(
|
|
35788
35802
|
billingInfo,
|
|
35789
35803
|
creditCardInfo,
|
|
35804
|
+
bankAccountInfo,
|
|
35790
35805
|
auctanePayInfo,
|
|
35791
35806
|
fundingSourceId
|
|
35792
35807
|
);
|
|
@@ -35819,29 +35834,29 @@ const useGetFundingSourceTransactions = (fundingSourceId, params) => {
|
|
|
35819
35834
|
});
|
|
35820
35835
|
};
|
|
35821
35836
|
|
|
35822
|
-
var __defProp$
|
|
35823
|
-
var __defProps$
|
|
35824
|
-
var __getOwnPropDescs$
|
|
35825
|
-
var __getOwnPropSymbols$
|
|
35826
|
-
var __hasOwnProp$
|
|
35827
|
-
var __propIsEnum$
|
|
35828
|
-
var __defNormalProp$
|
|
35829
|
-
var __spreadValues$
|
|
35837
|
+
var __defProp$t = Object.defineProperty;
|
|
35838
|
+
var __defProps$q = Object.defineProperties;
|
|
35839
|
+
var __getOwnPropDescs$q = Object.getOwnPropertyDescriptors;
|
|
35840
|
+
var __getOwnPropSymbols$z = Object.getOwnPropertySymbols;
|
|
35841
|
+
var __hasOwnProp$z = Object.prototype.hasOwnProperty;
|
|
35842
|
+
var __propIsEnum$z = Object.prototype.propertyIsEnumerable;
|
|
35843
|
+
var __defNormalProp$t = (obj, key, value) => key in obj ? __defProp$t(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
35844
|
+
var __spreadValues$t = (a, b) => {
|
|
35830
35845
|
for (var prop in b || (b = {}))
|
|
35831
|
-
if (__hasOwnProp$
|
|
35832
|
-
__defNormalProp$
|
|
35833
|
-
if (__getOwnPropSymbols$
|
|
35834
|
-
for (var prop of __getOwnPropSymbols$
|
|
35835
|
-
if (__propIsEnum$
|
|
35836
|
-
__defNormalProp$
|
|
35846
|
+
if (__hasOwnProp$z.call(b, prop))
|
|
35847
|
+
__defNormalProp$t(a, prop, b[prop]);
|
|
35848
|
+
if (__getOwnPropSymbols$z)
|
|
35849
|
+
for (var prop of __getOwnPropSymbols$z(b)) {
|
|
35850
|
+
if (__propIsEnum$z.call(b, prop))
|
|
35851
|
+
__defNormalProp$t(a, prop, b[prop]);
|
|
35837
35852
|
}
|
|
35838
35853
|
return a;
|
|
35839
35854
|
};
|
|
35840
|
-
var __spreadProps$
|
|
35855
|
+
var __spreadProps$q = (a, b) => __defProps$q(a, __getOwnPropDescs$q(b));
|
|
35841
35856
|
const useGetInsuranceFundingSourceAcceptedTerms = (params) => {
|
|
35842
35857
|
const { client } = useShipEngine();
|
|
35843
|
-
const queryParams = __spreadValues$
|
|
35844
|
-
return reactQuery.useQuery(__spreadProps$
|
|
35858
|
+
const queryParams = __spreadValues$t({}, params);
|
|
35859
|
+
return reactQuery.useQuery(__spreadProps$q(__spreadValues$t({}, queryParams), {
|
|
35845
35860
|
onError,
|
|
35846
35861
|
queryFn: () => client.fundingSources.insuranceAcceptedTerms(),
|
|
35847
35862
|
queryKey: ["useGetInsuranceFundingSourceAcceptedTerms"],
|
|
@@ -35864,17 +35879,17 @@ const useGetInsuranceAccount = (insuranceProvider) => {
|
|
|
35864
35879
|
});
|
|
35865
35880
|
};
|
|
35866
35881
|
|
|
35867
|
-
var __getOwnPropSymbols$
|
|
35868
|
-
var __hasOwnProp$
|
|
35869
|
-
var __propIsEnum$
|
|
35870
|
-
var __objRest$
|
|
35882
|
+
var __getOwnPropSymbols$y = Object.getOwnPropertySymbols;
|
|
35883
|
+
var __hasOwnProp$y = Object.prototype.hasOwnProperty;
|
|
35884
|
+
var __propIsEnum$y = Object.prototype.propertyIsEnumerable;
|
|
35885
|
+
var __objRest$l = (source, exclude) => {
|
|
35871
35886
|
var target = {};
|
|
35872
35887
|
for (var prop in source)
|
|
35873
|
-
if (__hasOwnProp$
|
|
35888
|
+
if (__hasOwnProp$y.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
35874
35889
|
target[prop] = source[prop];
|
|
35875
|
-
if (source != null && __getOwnPropSymbols$
|
|
35876
|
-
for (var prop of __getOwnPropSymbols$
|
|
35877
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
35890
|
+
if (source != null && __getOwnPropSymbols$y)
|
|
35891
|
+
for (var prop of __getOwnPropSymbols$y(source)) {
|
|
35892
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$y.call(source, prop))
|
|
35878
35893
|
target[prop] = source[prop];
|
|
35879
35894
|
}
|
|
35880
35895
|
return target;
|
|
@@ -35903,7 +35918,7 @@ const useAddInsuranceFunds = () => {
|
|
|
35903
35918
|
const { client } = useShipEngine();
|
|
35904
35919
|
return reactQuery.useMutation({
|
|
35905
35920
|
mutationFn: (_a) => __async$D(void 0, null, function* () {
|
|
35906
|
-
var _b = _a, { insuranceProvider } = _b, rest = __objRest$
|
|
35921
|
+
var _b = _a, { insuranceProvider } = _b, rest = __objRest$l(_b, ["insuranceProvider"]);
|
|
35907
35922
|
const result = yield client.insurance.addFunds(insuranceProvider, rest);
|
|
35908
35923
|
return result.data;
|
|
35909
35924
|
}),
|
|
@@ -35912,25 +35927,25 @@ const useAddInsuranceFunds = () => {
|
|
|
35912
35927
|
});
|
|
35913
35928
|
};
|
|
35914
35929
|
|
|
35915
|
-
var __defProp$
|
|
35916
|
-
var __defProps$
|
|
35917
|
-
var __getOwnPropDescs$
|
|
35918
|
-
var __getOwnPropSymbols$
|
|
35919
|
-
var __hasOwnProp$
|
|
35920
|
-
var __propIsEnum$
|
|
35921
|
-
var __defNormalProp$
|
|
35922
|
-
var __spreadValues$
|
|
35930
|
+
var __defProp$s = Object.defineProperty;
|
|
35931
|
+
var __defProps$p = Object.defineProperties;
|
|
35932
|
+
var __getOwnPropDescs$p = Object.getOwnPropertyDescriptors;
|
|
35933
|
+
var __getOwnPropSymbols$x = Object.getOwnPropertySymbols;
|
|
35934
|
+
var __hasOwnProp$x = Object.prototype.hasOwnProperty;
|
|
35935
|
+
var __propIsEnum$x = Object.prototype.propertyIsEnumerable;
|
|
35936
|
+
var __defNormalProp$s = (obj, key, value) => key in obj ? __defProp$s(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
35937
|
+
var __spreadValues$s = (a, b) => {
|
|
35923
35938
|
for (var prop in b || (b = {}))
|
|
35924
|
-
if (__hasOwnProp$
|
|
35925
|
-
__defNormalProp$
|
|
35926
|
-
if (__getOwnPropSymbols$
|
|
35927
|
-
for (var prop of __getOwnPropSymbols$
|
|
35928
|
-
if (__propIsEnum$
|
|
35929
|
-
__defNormalProp$
|
|
35939
|
+
if (__hasOwnProp$x.call(b, prop))
|
|
35940
|
+
__defNormalProp$s(a, prop, b[prop]);
|
|
35941
|
+
if (__getOwnPropSymbols$x)
|
|
35942
|
+
for (var prop of __getOwnPropSymbols$x(b)) {
|
|
35943
|
+
if (__propIsEnum$x.call(b, prop))
|
|
35944
|
+
__defNormalProp$s(a, prop, b[prop]);
|
|
35930
35945
|
}
|
|
35931
35946
|
return a;
|
|
35932
35947
|
};
|
|
35933
|
-
var __spreadProps$
|
|
35948
|
+
var __spreadProps$p = (a, b) => __defProps$p(a, __getOwnPropDescs$p(b));
|
|
35934
35949
|
var __async$C = (__this, __arguments, generator) => {
|
|
35935
35950
|
return new Promise((resolve, reject) => {
|
|
35936
35951
|
var fulfilled = (value) => {
|
|
@@ -35953,7 +35968,7 @@ var __async$C = (__this, __arguments, generator) => {
|
|
|
35953
35968
|
};
|
|
35954
35969
|
const useCreateInvoiceAddress = (params) => {
|
|
35955
35970
|
const { client } = useShipEngine();
|
|
35956
|
-
return reactQuery.useMutation(__spreadProps$
|
|
35971
|
+
return reactQuery.useMutation(__spreadProps$p(__spreadValues$s({}, params), {
|
|
35957
35972
|
mutationFn: (invoiceAddress) => __async$C(void 0, null, function* () {
|
|
35958
35973
|
const result = yield client.invoiceAddress.create(invoiceAddress);
|
|
35959
35974
|
return result.data;
|
|
@@ -35963,25 +35978,25 @@ const useCreateInvoiceAddress = (params) => {
|
|
|
35963
35978
|
}));
|
|
35964
35979
|
};
|
|
35965
35980
|
|
|
35966
|
-
var __defProp$
|
|
35967
|
-
var __defProps$
|
|
35968
|
-
var __getOwnPropDescs$
|
|
35969
|
-
var __getOwnPropSymbols$
|
|
35970
|
-
var __hasOwnProp$
|
|
35971
|
-
var __propIsEnum$
|
|
35972
|
-
var __defNormalProp$
|
|
35973
|
-
var __spreadValues$
|
|
35981
|
+
var __defProp$r = Object.defineProperty;
|
|
35982
|
+
var __defProps$o = Object.defineProperties;
|
|
35983
|
+
var __getOwnPropDescs$o = Object.getOwnPropertyDescriptors;
|
|
35984
|
+
var __getOwnPropSymbols$w = Object.getOwnPropertySymbols;
|
|
35985
|
+
var __hasOwnProp$w = Object.prototype.hasOwnProperty;
|
|
35986
|
+
var __propIsEnum$w = Object.prototype.propertyIsEnumerable;
|
|
35987
|
+
var __defNormalProp$r = (obj, key, value) => key in obj ? __defProp$r(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
35988
|
+
var __spreadValues$r = (a, b) => {
|
|
35974
35989
|
for (var prop in b || (b = {}))
|
|
35975
|
-
if (__hasOwnProp$
|
|
35976
|
-
__defNormalProp$
|
|
35977
|
-
if (__getOwnPropSymbols$
|
|
35978
|
-
for (var prop of __getOwnPropSymbols$
|
|
35979
|
-
if (__propIsEnum$
|
|
35980
|
-
__defNormalProp$
|
|
35990
|
+
if (__hasOwnProp$w.call(b, prop))
|
|
35991
|
+
__defNormalProp$r(a, prop, b[prop]);
|
|
35992
|
+
if (__getOwnPropSymbols$w)
|
|
35993
|
+
for (var prop of __getOwnPropSymbols$w(b)) {
|
|
35994
|
+
if (__propIsEnum$w.call(b, prop))
|
|
35995
|
+
__defNormalProp$r(a, prop, b[prop]);
|
|
35981
35996
|
}
|
|
35982
35997
|
return a;
|
|
35983
35998
|
};
|
|
35984
|
-
var __spreadProps$
|
|
35999
|
+
var __spreadProps$o = (a, b) => __defProps$o(a, __getOwnPropDescs$o(b));
|
|
35985
36000
|
var __async$B = (__this, __arguments, generator) => {
|
|
35986
36001
|
return new Promise((resolve, reject) => {
|
|
35987
36002
|
var fulfilled = (value) => {
|
|
@@ -36004,7 +36019,7 @@ var __async$B = (__this, __arguments, generator) => {
|
|
|
36004
36019
|
};
|
|
36005
36020
|
const useUpdateInvoiceAddress = (params) => {
|
|
36006
36021
|
const { client } = useShipEngine();
|
|
36007
|
-
return reactQuery.useMutation(__spreadProps$
|
|
36022
|
+
return reactQuery.useMutation(__spreadProps$o(__spreadValues$r({}, params), {
|
|
36008
36023
|
mutationFn: (invoiceAddress) => __async$B(void 0, null, function* () {
|
|
36009
36024
|
const result = yield client.invoiceAddress.update(invoiceAddress);
|
|
36010
36025
|
return result.data;
|
|
@@ -36014,6 +36029,35 @@ const useUpdateInvoiceAddress = (params) => {
|
|
|
36014
36029
|
}));
|
|
36015
36030
|
};
|
|
36016
36031
|
|
|
36032
|
+
var __defProp$q = Object.defineProperty;
|
|
36033
|
+
var __defProps$n = Object.defineProperties;
|
|
36034
|
+
var __getOwnPropDescs$n = Object.getOwnPropertyDescriptors;
|
|
36035
|
+
var __getOwnPropSymbols$v = Object.getOwnPropertySymbols;
|
|
36036
|
+
var __hasOwnProp$v = Object.prototype.hasOwnProperty;
|
|
36037
|
+
var __propIsEnum$v = Object.prototype.propertyIsEnumerable;
|
|
36038
|
+
var __defNormalProp$q = (obj, key, value) => key in obj ? __defProp$q(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
36039
|
+
var __spreadValues$q = (a, b) => {
|
|
36040
|
+
for (var prop in b || (b = {}))
|
|
36041
|
+
if (__hasOwnProp$v.call(b, prop))
|
|
36042
|
+
__defNormalProp$q(a, prop, b[prop]);
|
|
36043
|
+
if (__getOwnPropSymbols$v)
|
|
36044
|
+
for (var prop of __getOwnPropSymbols$v(b)) {
|
|
36045
|
+
if (__propIsEnum$v.call(b, prop))
|
|
36046
|
+
__defNormalProp$q(a, prop, b[prop]);
|
|
36047
|
+
}
|
|
36048
|
+
return a;
|
|
36049
|
+
};
|
|
36050
|
+
var __spreadProps$n = (a, b) => __defProps$n(a, __getOwnPropDescs$n(b));
|
|
36051
|
+
const useGetInvoiceAddress = (params) => {
|
|
36052
|
+
const { client } = useShipEngine();
|
|
36053
|
+
return reactQuery.useQuery(__spreadProps$n(__spreadValues$q({}, params), {
|
|
36054
|
+
onError,
|
|
36055
|
+
queryFn: () => client.invoiceAddress.get(),
|
|
36056
|
+
queryKey: ["useGetInvoiceAddress"],
|
|
36057
|
+
select: (result) => result.data
|
|
36058
|
+
}));
|
|
36059
|
+
};
|
|
36060
|
+
|
|
36017
36061
|
var __defProp$p = Object.defineProperty;
|
|
36018
36062
|
var __defProps$m = Object.defineProperties;
|
|
36019
36063
|
var __getOwnPropDescs$m = Object.getOwnPropertyDescriptors;
|
|
@@ -36033,13 +36077,48 @@ var __spreadValues$p = (a, b) => {
|
|
|
36033
36077
|
return a;
|
|
36034
36078
|
};
|
|
36035
36079
|
var __spreadProps$m = (a, b) => __defProps$m(a, __getOwnPropDescs$m(b));
|
|
36036
|
-
|
|
36080
|
+
var __objRest$k = (source, exclude) => {
|
|
36081
|
+
var target = {};
|
|
36082
|
+
for (var prop in source)
|
|
36083
|
+
if (__hasOwnProp$u.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
36084
|
+
target[prop] = source[prop];
|
|
36085
|
+
if (source != null && __getOwnPropSymbols$u)
|
|
36086
|
+
for (var prop of __getOwnPropSymbols$u(source)) {
|
|
36087
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$u.call(source, prop))
|
|
36088
|
+
target[prop] = source[prop];
|
|
36089
|
+
}
|
|
36090
|
+
return target;
|
|
36091
|
+
};
|
|
36092
|
+
var __async$A = (__this, __arguments, generator) => {
|
|
36093
|
+
return new Promise((resolve, reject) => {
|
|
36094
|
+
var fulfilled = (value) => {
|
|
36095
|
+
try {
|
|
36096
|
+
step(generator.next(value));
|
|
36097
|
+
} catch (e) {
|
|
36098
|
+
reject(e);
|
|
36099
|
+
}
|
|
36100
|
+
};
|
|
36101
|
+
var rejected = (value) => {
|
|
36102
|
+
try {
|
|
36103
|
+
step(generator.throw(value));
|
|
36104
|
+
} catch (e) {
|
|
36105
|
+
reject(e);
|
|
36106
|
+
}
|
|
36107
|
+
};
|
|
36108
|
+
var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
|
|
36109
|
+
step((generator = generator.apply(__this, __arguments)).next());
|
|
36110
|
+
});
|
|
36111
|
+
};
|
|
36112
|
+
const useCreateLabelByRateId = (params) => {
|
|
36037
36113
|
const { client } = useShipEngine();
|
|
36038
|
-
return reactQuery.
|
|
36039
|
-
|
|
36040
|
-
|
|
36041
|
-
|
|
36042
|
-
|
|
36114
|
+
return reactQuery.useMutation(__spreadProps$m(__spreadValues$p({}, params), {
|
|
36115
|
+
mutationFn: (_a) => __async$A(void 0, null, function* () {
|
|
36116
|
+
var _b = _a, { rateId } = _b, options = __objRest$k(_b, ["rateId"]);
|
|
36117
|
+
const result = yield client.labels.createByRateId(rateId, options);
|
|
36118
|
+
return result.data;
|
|
36119
|
+
}),
|
|
36120
|
+
mutationKey: ["useCreateLabelByRateId"],
|
|
36121
|
+
onError
|
|
36043
36122
|
}));
|
|
36044
36123
|
};
|
|
36045
36124
|
|
|
@@ -36074,7 +36153,7 @@ var __objRest$j = (source, exclude) => {
|
|
|
36074
36153
|
}
|
|
36075
36154
|
return target;
|
|
36076
36155
|
};
|
|
36077
|
-
var __async$
|
|
36156
|
+
var __async$z = (__this, __arguments, generator) => {
|
|
36078
36157
|
return new Promise((resolve, reject) => {
|
|
36079
36158
|
var fulfilled = (value) => {
|
|
36080
36159
|
try {
|
|
@@ -36094,15 +36173,15 @@ var __async$A = (__this, __arguments, generator) => {
|
|
|
36094
36173
|
step((generator = generator.apply(__this, __arguments)).next());
|
|
36095
36174
|
});
|
|
36096
36175
|
};
|
|
36097
|
-
const
|
|
36176
|
+
const useCreateLabelByShipmentId = (params) => {
|
|
36098
36177
|
const { client } = useShipEngine();
|
|
36099
36178
|
return reactQuery.useMutation(__spreadProps$l(__spreadValues$o({}, params), {
|
|
36100
|
-
mutationFn: (_a) => __async$
|
|
36101
|
-
var _b = _a, {
|
|
36102
|
-
const result = yield client.labels.
|
|
36179
|
+
mutationFn: (_a) => __async$z(void 0, null, function* () {
|
|
36180
|
+
var _b = _a, { shipmentId } = _b, options = __objRest$j(_b, ["shipmentId"]);
|
|
36181
|
+
const result = yield client.labels.createByShipmentId(shipmentId, options);
|
|
36103
36182
|
return result.data;
|
|
36104
36183
|
}),
|
|
36105
|
-
mutationKey: ["
|
|
36184
|
+
mutationKey: ["useCreateLabelByShipmentId"],
|
|
36106
36185
|
onError
|
|
36107
36186
|
}));
|
|
36108
36187
|
};
|
|
@@ -36138,7 +36217,7 @@ var __objRest$i = (source, exclude) => {
|
|
|
36138
36217
|
}
|
|
36139
36218
|
return target;
|
|
36140
36219
|
};
|
|
36141
|
-
var __async$
|
|
36220
|
+
var __async$y = (__this, __arguments, generator) => {
|
|
36142
36221
|
return new Promise((resolve, reject) => {
|
|
36143
36222
|
var fulfilled = (value) => {
|
|
36144
36223
|
try {
|
|
@@ -36158,19 +36237,34 @@ var __async$z = (__this, __arguments, generator) => {
|
|
|
36158
36237
|
step((generator = generator.apply(__this, __arguments)).next());
|
|
36159
36238
|
});
|
|
36160
36239
|
};
|
|
36161
|
-
const
|
|
36240
|
+
const useCreateLabel = (params) => {
|
|
36162
36241
|
const { client } = useShipEngine();
|
|
36163
36242
|
return reactQuery.useMutation(__spreadProps$k(__spreadValues$n({}, params), {
|
|
36164
|
-
mutationFn: (_a) => __async$
|
|
36165
|
-
var _b = _a, {
|
|
36166
|
-
const result = yield client.labels.
|
|
36243
|
+
mutationFn: (_a) => __async$y(void 0, null, function* () {
|
|
36244
|
+
var _b = _a, { rateId } = _b, options = __objRest$i(_b, ["rateId"]);
|
|
36245
|
+
const result = yield client.labels.createByRateId(rateId, options);
|
|
36167
36246
|
return result.data;
|
|
36168
36247
|
}),
|
|
36169
|
-
mutationKey: ["
|
|
36248
|
+
mutationKey: ["useCreateLabel"],
|
|
36170
36249
|
onError
|
|
36171
36250
|
}));
|
|
36172
36251
|
};
|
|
36173
36252
|
|
|
36253
|
+
const useGetLabel = (labelId) => {
|
|
36254
|
+
const { client } = useShipEngine();
|
|
36255
|
+
return reactQuery.useQuery({
|
|
36256
|
+
enabled: labelId !== void 0,
|
|
36257
|
+
onError,
|
|
36258
|
+
queryFn: () => {
|
|
36259
|
+
if (labelId)
|
|
36260
|
+
return client.labels.get(labelId);
|
|
36261
|
+
return Promise.reject(new Error("labelId is require"));
|
|
36262
|
+
},
|
|
36263
|
+
queryKey: ["useGetLabel", labelId],
|
|
36264
|
+
select: (result) => result.data
|
|
36265
|
+
});
|
|
36266
|
+
};
|
|
36267
|
+
|
|
36174
36268
|
var __defProp$m = Object.defineProperty;
|
|
36175
36269
|
var __defProps$j = Object.defineProperties;
|
|
36176
36270
|
var __getOwnPropDescs$j = Object.getOwnPropertyDescriptors;
|
|
@@ -36202,7 +36296,18 @@ var __objRest$h = (source, exclude) => {
|
|
|
36202
36296
|
}
|
|
36203
36297
|
return target;
|
|
36204
36298
|
};
|
|
36205
|
-
|
|
36299
|
+
const useListLabels = (params) => {
|
|
36300
|
+
const { client } = useShipEngine();
|
|
36301
|
+
const _a = __spreadValues$m({}, params), { queryFnParams } = _a, rest = __objRest$h(_a, ["queryFnParams"]);
|
|
36302
|
+
return reactQuery.useQuery(__spreadProps$j(__spreadValues$m({}, rest), {
|
|
36303
|
+
onError,
|
|
36304
|
+
queryFn: () => client.labels.list(queryFnParams),
|
|
36305
|
+
queryKey: ["useListLabels", params],
|
|
36306
|
+
select: (result) => result.data
|
|
36307
|
+
}));
|
|
36308
|
+
};
|
|
36309
|
+
|
|
36310
|
+
var __async$x = (__this, __arguments, generator) => {
|
|
36206
36311
|
return new Promise((resolve, reject) => {
|
|
36207
36312
|
var fulfilled = (value) => {
|
|
36208
36313
|
try {
|
|
@@ -36222,31 +36327,15 @@ var __async$y = (__this, __arguments, generator) => {
|
|
|
36222
36327
|
step((generator = generator.apply(__this, __arguments)).next());
|
|
36223
36328
|
});
|
|
36224
36329
|
};
|
|
36225
|
-
const
|
|
36330
|
+
const useVoidLabel = () => {
|
|
36226
36331
|
const { client } = useShipEngine();
|
|
36227
|
-
return reactQuery.useMutation(
|
|
36228
|
-
mutationFn: (
|
|
36229
|
-
|
|
36230
|
-
const result = yield client.labels.createByRateId(rateId, options);
|
|
36332
|
+
return reactQuery.useMutation({
|
|
36333
|
+
mutationFn: (labelId) => __async$x(void 0, null, function* () {
|
|
36334
|
+
const result = yield client.labels.void(labelId);
|
|
36231
36335
|
return result.data;
|
|
36232
36336
|
}),
|
|
36233
|
-
mutationKey: ["
|
|
36337
|
+
mutationKey: ["useVoidLabel"],
|
|
36234
36338
|
onError
|
|
36235
|
-
}));
|
|
36236
|
-
};
|
|
36237
|
-
|
|
36238
|
-
const useGetLabel = (labelId) => {
|
|
36239
|
-
const { client } = useShipEngine();
|
|
36240
|
-
return reactQuery.useQuery({
|
|
36241
|
-
enabled: labelId !== void 0,
|
|
36242
|
-
onError,
|
|
36243
|
-
queryFn: () => {
|
|
36244
|
-
if (labelId)
|
|
36245
|
-
return client.labels.get(labelId);
|
|
36246
|
-
return Promise.reject(new Error("labelId is require"));
|
|
36247
|
-
},
|
|
36248
|
-
queryKey: ["useGetLabel", labelId],
|
|
36249
|
-
select: (result) => result.data
|
|
36250
36339
|
});
|
|
36251
36340
|
};
|
|
36252
36341
|
|
|
@@ -36281,80 +36370,6 @@ var __objRest$g = (source, exclude) => {
|
|
|
36281
36370
|
}
|
|
36282
36371
|
return target;
|
|
36283
36372
|
};
|
|
36284
|
-
const useListLabels = (params) => {
|
|
36285
|
-
const { client } = useShipEngine();
|
|
36286
|
-
const _a = __spreadValues$l({}, params), { queryFnParams } = _a, rest = __objRest$g(_a, ["queryFnParams"]);
|
|
36287
|
-
return reactQuery.useQuery(__spreadProps$i(__spreadValues$l({}, rest), {
|
|
36288
|
-
onError,
|
|
36289
|
-
queryFn: () => client.labels.list(queryFnParams),
|
|
36290
|
-
queryKey: ["useListLabels", params],
|
|
36291
|
-
select: (result) => result.data
|
|
36292
|
-
}));
|
|
36293
|
-
};
|
|
36294
|
-
|
|
36295
|
-
var __async$x = (__this, __arguments, generator) => {
|
|
36296
|
-
return new Promise((resolve, reject) => {
|
|
36297
|
-
var fulfilled = (value) => {
|
|
36298
|
-
try {
|
|
36299
|
-
step(generator.next(value));
|
|
36300
|
-
} catch (e) {
|
|
36301
|
-
reject(e);
|
|
36302
|
-
}
|
|
36303
|
-
};
|
|
36304
|
-
var rejected = (value) => {
|
|
36305
|
-
try {
|
|
36306
|
-
step(generator.throw(value));
|
|
36307
|
-
} catch (e) {
|
|
36308
|
-
reject(e);
|
|
36309
|
-
}
|
|
36310
|
-
};
|
|
36311
|
-
var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
|
|
36312
|
-
step((generator = generator.apply(__this, __arguments)).next());
|
|
36313
|
-
});
|
|
36314
|
-
};
|
|
36315
|
-
const useVoidLabel = () => {
|
|
36316
|
-
const { client } = useShipEngine();
|
|
36317
|
-
return reactQuery.useMutation({
|
|
36318
|
-
mutationFn: (labelId) => __async$x(void 0, null, function* () {
|
|
36319
|
-
const result = yield client.labels.void(labelId);
|
|
36320
|
-
return result.data;
|
|
36321
|
-
}),
|
|
36322
|
-
mutationKey: ["useVoidLabel"],
|
|
36323
|
-
onError
|
|
36324
|
-
});
|
|
36325
|
-
};
|
|
36326
|
-
|
|
36327
|
-
var __defProp$k = Object.defineProperty;
|
|
36328
|
-
var __defProps$h = Object.defineProperties;
|
|
36329
|
-
var __getOwnPropDescs$h = Object.getOwnPropertyDescriptors;
|
|
36330
|
-
var __getOwnPropSymbols$p = Object.getOwnPropertySymbols;
|
|
36331
|
-
var __hasOwnProp$p = Object.prototype.hasOwnProperty;
|
|
36332
|
-
var __propIsEnum$p = Object.prototype.propertyIsEnumerable;
|
|
36333
|
-
var __defNormalProp$k = (obj, key, value) => key in obj ? __defProp$k(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
36334
|
-
var __spreadValues$k = (a, b) => {
|
|
36335
|
-
for (var prop in b || (b = {}))
|
|
36336
|
-
if (__hasOwnProp$p.call(b, prop))
|
|
36337
|
-
__defNormalProp$k(a, prop, b[prop]);
|
|
36338
|
-
if (__getOwnPropSymbols$p)
|
|
36339
|
-
for (var prop of __getOwnPropSymbols$p(b)) {
|
|
36340
|
-
if (__propIsEnum$p.call(b, prop))
|
|
36341
|
-
__defNormalProp$k(a, prop, b[prop]);
|
|
36342
|
-
}
|
|
36343
|
-
return a;
|
|
36344
|
-
};
|
|
36345
|
-
var __spreadProps$h = (a, b) => __defProps$h(a, __getOwnPropDescs$h(b));
|
|
36346
|
-
var __objRest$f = (source, exclude) => {
|
|
36347
|
-
var target = {};
|
|
36348
|
-
for (var prop in source)
|
|
36349
|
-
if (__hasOwnProp$p.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
36350
|
-
target[prop] = source[prop];
|
|
36351
|
-
if (source != null && __getOwnPropSymbols$p)
|
|
36352
|
-
for (var prop of __getOwnPropSymbols$p(source)) {
|
|
36353
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$p.call(source, prop))
|
|
36354
|
-
target[prop] = source[prop];
|
|
36355
|
-
}
|
|
36356
|
-
return target;
|
|
36357
|
-
};
|
|
36358
36373
|
var __async$w = (__this, __arguments, generator) => {
|
|
36359
36374
|
return new Promise((resolve, reject) => {
|
|
36360
36375
|
var fulfilled = (value) => {
|
|
@@ -36377,8 +36392,8 @@ var __async$w = (__this, __arguments, generator) => {
|
|
|
36377
36392
|
};
|
|
36378
36393
|
const useListLabelsInfinite = (params) => {
|
|
36379
36394
|
const { client } = useShipEngine();
|
|
36380
|
-
const _a = __spreadValues$
|
|
36381
|
-
return reactQuery.useInfiniteQuery(__spreadProps$
|
|
36395
|
+
const _a = __spreadValues$l({}, params), { queryFnParams } = _a, rest = __objRest$g(_a, ["queryFnParams"]);
|
|
36396
|
+
return reactQuery.useInfiniteQuery(__spreadProps$i(__spreadValues$l({}, rest), {
|
|
36382
36397
|
getNextPageParam: (lastPage) => {
|
|
36383
36398
|
if (lastPage.page < lastPage.pages) {
|
|
36384
36399
|
return lastPage.page + 1;
|
|
@@ -36387,7 +36402,7 @@ const useListLabelsInfinite = (params) => {
|
|
|
36387
36402
|
},
|
|
36388
36403
|
onError,
|
|
36389
36404
|
queryFn: (_0) => __async$w(void 0, [_0], function* ({ pageParam = 1 }) {
|
|
36390
|
-
const response = yield client.labels.list(__spreadProps$
|
|
36405
|
+
const response = yield client.labels.list(__spreadProps$i(__spreadValues$l({}, queryFnParams), { page: pageParam }));
|
|
36391
36406
|
return response.data;
|
|
36392
36407
|
}),
|
|
36393
36408
|
queryKey: ["useListLabelsInfinite", params],
|
|
@@ -36401,69 +36416,69 @@ const useListLabelsInfinite = (params) => {
|
|
|
36401
36416
|
}));
|
|
36402
36417
|
};
|
|
36403
36418
|
|
|
36404
|
-
var __defProp$
|
|
36405
|
-
var __defProps$
|
|
36406
|
-
var __getOwnPropDescs$
|
|
36407
|
-
var __getOwnPropSymbols$
|
|
36408
|
-
var __hasOwnProp$
|
|
36409
|
-
var __propIsEnum$
|
|
36410
|
-
var __defNormalProp$
|
|
36411
|
-
var __spreadValues$
|
|
36419
|
+
var __defProp$k = Object.defineProperty;
|
|
36420
|
+
var __defProps$h = Object.defineProperties;
|
|
36421
|
+
var __getOwnPropDescs$h = Object.getOwnPropertyDescriptors;
|
|
36422
|
+
var __getOwnPropSymbols$p = Object.getOwnPropertySymbols;
|
|
36423
|
+
var __hasOwnProp$p = Object.prototype.hasOwnProperty;
|
|
36424
|
+
var __propIsEnum$p = Object.prototype.propertyIsEnumerable;
|
|
36425
|
+
var __defNormalProp$k = (obj, key, value) => key in obj ? __defProp$k(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
36426
|
+
var __spreadValues$k = (a, b) => {
|
|
36412
36427
|
for (var prop in b || (b = {}))
|
|
36413
|
-
if (__hasOwnProp$
|
|
36414
|
-
__defNormalProp$
|
|
36415
|
-
if (__getOwnPropSymbols$
|
|
36416
|
-
for (var prop of __getOwnPropSymbols$
|
|
36417
|
-
if (__propIsEnum$
|
|
36418
|
-
__defNormalProp$
|
|
36428
|
+
if (__hasOwnProp$p.call(b, prop))
|
|
36429
|
+
__defNormalProp$k(a, prop, b[prop]);
|
|
36430
|
+
if (__getOwnPropSymbols$p)
|
|
36431
|
+
for (var prop of __getOwnPropSymbols$p(b)) {
|
|
36432
|
+
if (__propIsEnum$p.call(b, prop))
|
|
36433
|
+
__defNormalProp$k(a, prop, b[prop]);
|
|
36419
36434
|
}
|
|
36420
36435
|
return a;
|
|
36421
36436
|
};
|
|
36422
|
-
var __spreadProps$
|
|
36423
|
-
var __objRest$
|
|
36437
|
+
var __spreadProps$h = (a, b) => __defProps$h(a, __getOwnPropDescs$h(b));
|
|
36438
|
+
var __objRest$f = (source, exclude) => {
|
|
36424
36439
|
var target = {};
|
|
36425
36440
|
for (var prop in source)
|
|
36426
|
-
if (__hasOwnProp$
|
|
36441
|
+
if (__hasOwnProp$p.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
36427
36442
|
target[prop] = source[prop];
|
|
36428
|
-
if (source != null && __getOwnPropSymbols$
|
|
36429
|
-
for (var prop of __getOwnPropSymbols$
|
|
36430
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
36443
|
+
if (source != null && __getOwnPropSymbols$p)
|
|
36444
|
+
for (var prop of __getOwnPropSymbols$p(source)) {
|
|
36445
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$p.call(source, prop))
|
|
36431
36446
|
target[prop] = source[prop];
|
|
36432
36447
|
}
|
|
36433
36448
|
return target;
|
|
36434
36449
|
};
|
|
36435
36450
|
const useDownloadLabels = (params) => {
|
|
36436
36451
|
const { client } = useShipEngine();
|
|
36437
|
-
const _a = __spreadValues$
|
|
36438
|
-
return reactQuery.useQuery(__spreadProps$
|
|
36452
|
+
const _a = __spreadValues$k({}, params), { queryFnParams } = _a, rest = __objRest$f(_a, ["queryFnParams"]);
|
|
36453
|
+
return reactQuery.useQuery(__spreadProps$h(__spreadValues$k({}, rest), {
|
|
36439
36454
|
onError,
|
|
36440
36455
|
queryFn: () => client.labels.download(queryFnParams),
|
|
36441
36456
|
queryKey: ["useDownloadLabels", params]
|
|
36442
36457
|
}));
|
|
36443
36458
|
};
|
|
36444
36459
|
|
|
36445
|
-
var __defProp$
|
|
36446
|
-
var __defProps$
|
|
36447
|
-
var __getOwnPropDescs$
|
|
36448
|
-
var __getOwnPropSymbols$
|
|
36449
|
-
var __hasOwnProp$
|
|
36450
|
-
var __propIsEnum$
|
|
36451
|
-
var __defNormalProp$
|
|
36452
|
-
var __spreadValues$
|
|
36460
|
+
var __defProp$j = Object.defineProperty;
|
|
36461
|
+
var __defProps$g = Object.defineProperties;
|
|
36462
|
+
var __getOwnPropDescs$g = Object.getOwnPropertyDescriptors;
|
|
36463
|
+
var __getOwnPropSymbols$o = Object.getOwnPropertySymbols;
|
|
36464
|
+
var __hasOwnProp$o = Object.prototype.hasOwnProperty;
|
|
36465
|
+
var __propIsEnum$o = Object.prototype.propertyIsEnumerable;
|
|
36466
|
+
var __defNormalProp$j = (obj, key, value) => key in obj ? __defProp$j(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
36467
|
+
var __spreadValues$j = (a, b) => {
|
|
36453
36468
|
for (var prop in b || (b = {}))
|
|
36454
|
-
if (__hasOwnProp$
|
|
36455
|
-
__defNormalProp$
|
|
36456
|
-
if (__getOwnPropSymbols$
|
|
36457
|
-
for (var prop of __getOwnPropSymbols$
|
|
36458
|
-
if (__propIsEnum$
|
|
36459
|
-
__defNormalProp$
|
|
36469
|
+
if (__hasOwnProp$o.call(b, prop))
|
|
36470
|
+
__defNormalProp$j(a, prop, b[prop]);
|
|
36471
|
+
if (__getOwnPropSymbols$o)
|
|
36472
|
+
for (var prop of __getOwnPropSymbols$o(b)) {
|
|
36473
|
+
if (__propIsEnum$o.call(b, prop))
|
|
36474
|
+
__defNormalProp$j(a, prop, b[prop]);
|
|
36460
36475
|
}
|
|
36461
36476
|
return a;
|
|
36462
36477
|
};
|
|
36463
|
-
var __spreadProps$
|
|
36478
|
+
var __spreadProps$g = (a, b) => __defProps$g(a, __getOwnPropDescs$g(b));
|
|
36464
36479
|
const useListOrderSources = (params) => {
|
|
36465
36480
|
const { client } = useShipEngine();
|
|
36466
|
-
return reactQuery.useQuery(__spreadProps$
|
|
36481
|
+
return reactQuery.useQuery(__spreadProps$g(__spreadValues$j({}, params), {
|
|
36467
36482
|
onError,
|
|
36468
36483
|
queryFn: () => client.orderSources.list(),
|
|
36469
36484
|
queryKey: ["useListOrderSources"],
|
|
@@ -36901,17 +36916,17 @@ const useListSalesOrders = (params = {}) => {
|
|
|
36901
36916
|
});
|
|
36902
36917
|
};
|
|
36903
36918
|
|
|
36904
|
-
var __getOwnPropSymbols$
|
|
36905
|
-
var __hasOwnProp$
|
|
36906
|
-
var __propIsEnum$
|
|
36907
|
-
var __objRest$
|
|
36919
|
+
var __getOwnPropSymbols$n = Object.getOwnPropertySymbols;
|
|
36920
|
+
var __hasOwnProp$n = Object.prototype.hasOwnProperty;
|
|
36921
|
+
var __propIsEnum$n = Object.prototype.propertyIsEnumerable;
|
|
36922
|
+
var __objRest$e = (source, exclude) => {
|
|
36908
36923
|
var target = {};
|
|
36909
36924
|
for (var prop in source)
|
|
36910
|
-
if (__hasOwnProp$
|
|
36925
|
+
if (__hasOwnProp$n.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
36911
36926
|
target[prop] = source[prop];
|
|
36912
|
-
if (source != null && __getOwnPropSymbols$
|
|
36913
|
-
for (var prop of __getOwnPropSymbols$
|
|
36914
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
36927
|
+
if (source != null && __getOwnPropSymbols$n)
|
|
36928
|
+
for (var prop of __getOwnPropSymbols$n(source)) {
|
|
36929
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$n.call(source, prop))
|
|
36915
36930
|
target[prop] = source[prop];
|
|
36916
36931
|
}
|
|
36917
36932
|
return target;
|
|
@@ -36940,7 +36955,7 @@ const useNotifySalesOrderShipped = () => {
|
|
|
36940
36955
|
const { client } = useShipEngine();
|
|
36941
36956
|
return reactQuery.useMutation({
|
|
36942
36957
|
mutationFn: (_a) => __async$l(void 0, null, function* () {
|
|
36943
|
-
var _b = _a, { salesOrderId } = _b, tracking = __objRest$
|
|
36958
|
+
var _b = _a, { salesOrderId } = _b, tracking = __objRest$e(_b, ["salesOrderId"]);
|
|
36944
36959
|
const result = yield client.salesOrders.notifyShipped(salesOrderId, tracking);
|
|
36945
36960
|
return result.data;
|
|
36946
36961
|
}),
|
|
@@ -36949,17 +36964,17 @@ const useNotifySalesOrderShipped = () => {
|
|
|
36949
36964
|
});
|
|
36950
36965
|
};
|
|
36951
36966
|
|
|
36952
|
-
var __getOwnPropSymbols$
|
|
36953
|
-
var __hasOwnProp$
|
|
36954
|
-
var __propIsEnum$
|
|
36955
|
-
var __objRest$
|
|
36967
|
+
var __getOwnPropSymbols$m = Object.getOwnPropertySymbols;
|
|
36968
|
+
var __hasOwnProp$m = Object.prototype.hasOwnProperty;
|
|
36969
|
+
var __propIsEnum$m = Object.prototype.propertyIsEnumerable;
|
|
36970
|
+
var __objRest$d = (source, exclude) => {
|
|
36956
36971
|
var target = {};
|
|
36957
36972
|
for (var prop in source)
|
|
36958
|
-
if (__hasOwnProp$
|
|
36973
|
+
if (__hasOwnProp$m.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
36959
36974
|
target[prop] = source[prop];
|
|
36960
|
-
if (source != null && __getOwnPropSymbols$
|
|
36961
|
-
for (var prop of __getOwnPropSymbols$
|
|
36962
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
36975
|
+
if (source != null && __getOwnPropSymbols$m)
|
|
36976
|
+
for (var prop of __getOwnPropSymbols$m(source)) {
|
|
36977
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$m.call(source, prop))
|
|
36963
36978
|
target[prop] = source[prop];
|
|
36964
36979
|
}
|
|
36965
36980
|
return target;
|
|
@@ -36988,7 +37003,7 @@ const useCreateSalesOrderShipment = () => {
|
|
|
36988
37003
|
const { client } = useShipEngine();
|
|
36989
37004
|
return reactQuery.useMutation({
|
|
36990
37005
|
mutationFn: (_a) => __async$k(void 0, null, function* () {
|
|
36991
|
-
var _b = _a, { salesOrderId } = _b, shipment = __objRest$
|
|
37006
|
+
var _b = _a, { salesOrderId } = _b, shipment = __objRest$d(_b, ["salesOrderId"]);
|
|
36992
37007
|
const result = yield client.salesOrderShipments.create(salesOrderId, shipment);
|
|
36993
37008
|
return result.data;
|
|
36994
37009
|
}),
|
|
@@ -37024,17 +37039,17 @@ const useListSalesOrderShipments = (body) => {
|
|
|
37024
37039
|
});
|
|
37025
37040
|
};
|
|
37026
37041
|
|
|
37027
|
-
var __getOwnPropSymbols$
|
|
37028
|
-
var __hasOwnProp$
|
|
37029
|
-
var __propIsEnum$
|
|
37030
|
-
var __objRest$
|
|
37042
|
+
var __getOwnPropSymbols$l = Object.getOwnPropertySymbols;
|
|
37043
|
+
var __hasOwnProp$l = Object.prototype.hasOwnProperty;
|
|
37044
|
+
var __propIsEnum$l = Object.prototype.propertyIsEnumerable;
|
|
37045
|
+
var __objRest$c = (source, exclude) => {
|
|
37031
37046
|
var target = {};
|
|
37032
37047
|
for (var prop in source)
|
|
37033
|
-
if (__hasOwnProp$
|
|
37048
|
+
if (__hasOwnProp$l.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
37034
37049
|
target[prop] = source[prop];
|
|
37035
|
-
if (source != null && __getOwnPropSymbols$
|
|
37036
|
-
for (var prop of __getOwnPropSymbols$
|
|
37037
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
37050
|
+
if (source != null && __getOwnPropSymbols$l)
|
|
37051
|
+
for (var prop of __getOwnPropSymbols$l(source)) {
|
|
37052
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$l.call(source, prop))
|
|
37038
37053
|
target[prop] = source[prop];
|
|
37039
37054
|
}
|
|
37040
37055
|
return target;
|
|
@@ -37063,7 +37078,7 @@ const useUpdateSalesOrderShipment = () => {
|
|
|
37063
37078
|
const { client } = useShipEngine();
|
|
37064
37079
|
return reactQuery.useMutation({
|
|
37065
37080
|
mutationFn: (_a) => __async$j(void 0, null, function* () {
|
|
37066
|
-
var _b = _a, { shipmentId } = _b, shipment = __objRest$
|
|
37081
|
+
var _b = _a, { shipmentId } = _b, shipment = __objRest$c(_b, ["shipmentId"]);
|
|
37067
37082
|
const result = yield client.salesOrderShipments.update(shipmentId, shipment);
|
|
37068
37083
|
return result.data;
|
|
37069
37084
|
}),
|
|
@@ -37083,25 +37098,25 @@ const useListSalesOrderShipmentsByExternalOrderId = (externalOrderId) => {
|
|
|
37083
37098
|
});
|
|
37084
37099
|
};
|
|
37085
37100
|
|
|
37086
|
-
var __defProp$
|
|
37087
|
-
var __defProps$
|
|
37088
|
-
var __getOwnPropDescs$
|
|
37089
|
-
var __getOwnPropSymbols$
|
|
37090
|
-
var __hasOwnProp$
|
|
37091
|
-
var __propIsEnum$
|
|
37092
|
-
var __defNormalProp$
|
|
37093
|
-
var __spreadValues$
|
|
37101
|
+
var __defProp$i = Object.defineProperty;
|
|
37102
|
+
var __defProps$f = Object.defineProperties;
|
|
37103
|
+
var __getOwnPropDescs$f = Object.getOwnPropertyDescriptors;
|
|
37104
|
+
var __getOwnPropSymbols$k = Object.getOwnPropertySymbols;
|
|
37105
|
+
var __hasOwnProp$k = Object.prototype.hasOwnProperty;
|
|
37106
|
+
var __propIsEnum$k = Object.prototype.propertyIsEnumerable;
|
|
37107
|
+
var __defNormalProp$i = (obj, key, value) => key in obj ? __defProp$i(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
37108
|
+
var __spreadValues$i = (a, b) => {
|
|
37094
37109
|
for (var prop in b || (b = {}))
|
|
37095
|
-
if (__hasOwnProp$
|
|
37096
|
-
__defNormalProp$
|
|
37097
|
-
if (__getOwnPropSymbols$
|
|
37098
|
-
for (var prop of __getOwnPropSymbols$
|
|
37099
|
-
if (__propIsEnum$
|
|
37100
|
-
__defNormalProp$
|
|
37110
|
+
if (__hasOwnProp$k.call(b, prop))
|
|
37111
|
+
__defNormalProp$i(a, prop, b[prop]);
|
|
37112
|
+
if (__getOwnPropSymbols$k)
|
|
37113
|
+
for (var prop of __getOwnPropSymbols$k(b)) {
|
|
37114
|
+
if (__propIsEnum$k.call(b, prop))
|
|
37115
|
+
__defNormalProp$i(a, prop, b[prop]);
|
|
37101
37116
|
}
|
|
37102
37117
|
return a;
|
|
37103
37118
|
};
|
|
37104
|
-
var __spreadProps$
|
|
37119
|
+
var __spreadProps$f = (a, b) => __defProps$f(a, __getOwnPropDescs$f(b));
|
|
37105
37120
|
var __async$i = (__this, __arguments, generator) => {
|
|
37106
37121
|
return new Promise((resolve, reject) => {
|
|
37107
37122
|
var fulfilled = (value) => {
|
|
@@ -37143,7 +37158,7 @@ const useCreateShipment = () => {
|
|
|
37143
37158
|
postalCode: "",
|
|
37144
37159
|
stateProvince: ""
|
|
37145
37160
|
};
|
|
37146
|
-
return (yield client.shipments.create(__spreadProps$
|
|
37161
|
+
return (yield client.shipments.create(__spreadProps$f(__spreadValues$i({}, shipment), {
|
|
37147
37162
|
shipTo
|
|
37148
37163
|
}))).data;
|
|
37149
37164
|
}),
|
|
@@ -37152,43 +37167,43 @@ const useCreateShipment = () => {
|
|
|
37152
37167
|
});
|
|
37153
37168
|
};
|
|
37154
37169
|
|
|
37155
|
-
var __defProp$
|
|
37156
|
-
var __defProps$
|
|
37157
|
-
var __getOwnPropDescs$
|
|
37158
|
-
var __getOwnPropSymbols$
|
|
37159
|
-
var __hasOwnProp$
|
|
37160
|
-
var __propIsEnum$
|
|
37161
|
-
var __defNormalProp$
|
|
37162
|
-
var __spreadValues$
|
|
37170
|
+
var __defProp$h = Object.defineProperty;
|
|
37171
|
+
var __defProps$e = Object.defineProperties;
|
|
37172
|
+
var __getOwnPropDescs$e = Object.getOwnPropertyDescriptors;
|
|
37173
|
+
var __getOwnPropSymbols$j = Object.getOwnPropertySymbols;
|
|
37174
|
+
var __hasOwnProp$j = Object.prototype.hasOwnProperty;
|
|
37175
|
+
var __propIsEnum$j = Object.prototype.propertyIsEnumerable;
|
|
37176
|
+
var __defNormalProp$h = (obj, key, value) => key in obj ? __defProp$h(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
37177
|
+
var __spreadValues$h = (a, b) => {
|
|
37163
37178
|
for (var prop in b || (b = {}))
|
|
37164
|
-
if (__hasOwnProp$
|
|
37165
|
-
__defNormalProp$
|
|
37166
|
-
if (__getOwnPropSymbols$
|
|
37167
|
-
for (var prop of __getOwnPropSymbols$
|
|
37168
|
-
if (__propIsEnum$
|
|
37169
|
-
__defNormalProp$
|
|
37179
|
+
if (__hasOwnProp$j.call(b, prop))
|
|
37180
|
+
__defNormalProp$h(a, prop, b[prop]);
|
|
37181
|
+
if (__getOwnPropSymbols$j)
|
|
37182
|
+
for (var prop of __getOwnPropSymbols$j(b)) {
|
|
37183
|
+
if (__propIsEnum$j.call(b, prop))
|
|
37184
|
+
__defNormalProp$h(a, prop, b[prop]);
|
|
37170
37185
|
}
|
|
37171
37186
|
return a;
|
|
37172
37187
|
};
|
|
37173
|
-
var __spreadProps$
|
|
37174
|
-
var __objRest$
|
|
37188
|
+
var __spreadProps$e = (a, b) => __defProps$e(a, __getOwnPropDescs$e(b));
|
|
37189
|
+
var __objRest$b = (source, exclude) => {
|
|
37175
37190
|
var target = {};
|
|
37176
37191
|
for (var prop in source)
|
|
37177
|
-
if (__hasOwnProp$
|
|
37192
|
+
if (__hasOwnProp$j.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
37178
37193
|
target[prop] = source[prop];
|
|
37179
|
-
if (source != null && __getOwnPropSymbols$
|
|
37180
|
-
for (var prop of __getOwnPropSymbols$
|
|
37181
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
37194
|
+
if (source != null && __getOwnPropSymbols$j)
|
|
37195
|
+
for (var prop of __getOwnPropSymbols$j(source)) {
|
|
37196
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$j.call(source, prop))
|
|
37182
37197
|
target[prop] = source[prop];
|
|
37183
37198
|
}
|
|
37184
37199
|
return target;
|
|
37185
37200
|
};
|
|
37186
37201
|
const useGetShipmentRates = (params) => {
|
|
37187
37202
|
const { client } = useShipEngine();
|
|
37188
|
-
const _a = params, { queryFnParams } = _a, rest = __objRest$
|
|
37203
|
+
const _a = params, { queryFnParams } = _a, rest = __objRest$b(_a, ["queryFnParams"]);
|
|
37189
37204
|
const shipmentId = queryFnParams == null ? void 0 : queryFnParams.shipmentId;
|
|
37190
37205
|
const createdAtStart = queryFnParams == null ? void 0 : queryFnParams.createdAtStart;
|
|
37191
|
-
return reactQuery.useQuery(__spreadProps$
|
|
37206
|
+
return reactQuery.useQuery(__spreadProps$e(__spreadValues$h({
|
|
37192
37207
|
enabled: shipmentId !== void 0
|
|
37193
37208
|
}, rest), {
|
|
37194
37209
|
onError,
|
|
@@ -37203,33 +37218,33 @@ const useGetShipmentRates = (params) => {
|
|
|
37203
37218
|
}));
|
|
37204
37219
|
};
|
|
37205
37220
|
|
|
37206
|
-
var __defProp$
|
|
37207
|
-
var __defProps$
|
|
37208
|
-
var __getOwnPropDescs$
|
|
37209
|
-
var __getOwnPropSymbols$
|
|
37210
|
-
var __hasOwnProp$
|
|
37211
|
-
var __propIsEnum$
|
|
37212
|
-
var __defNormalProp$
|
|
37213
|
-
var __spreadValues$
|
|
37221
|
+
var __defProp$g = Object.defineProperty;
|
|
37222
|
+
var __defProps$d = Object.defineProperties;
|
|
37223
|
+
var __getOwnPropDescs$d = Object.getOwnPropertyDescriptors;
|
|
37224
|
+
var __getOwnPropSymbols$i = Object.getOwnPropertySymbols;
|
|
37225
|
+
var __hasOwnProp$i = Object.prototype.hasOwnProperty;
|
|
37226
|
+
var __propIsEnum$i = Object.prototype.propertyIsEnumerable;
|
|
37227
|
+
var __defNormalProp$g = (obj, key, value) => key in obj ? __defProp$g(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
37228
|
+
var __spreadValues$g = (a, b) => {
|
|
37214
37229
|
for (var prop in b || (b = {}))
|
|
37215
|
-
if (__hasOwnProp$
|
|
37216
|
-
__defNormalProp$
|
|
37217
|
-
if (__getOwnPropSymbols$
|
|
37218
|
-
for (var prop of __getOwnPropSymbols$
|
|
37219
|
-
if (__propIsEnum$
|
|
37220
|
-
__defNormalProp$
|
|
37230
|
+
if (__hasOwnProp$i.call(b, prop))
|
|
37231
|
+
__defNormalProp$g(a, prop, b[prop]);
|
|
37232
|
+
if (__getOwnPropSymbols$i)
|
|
37233
|
+
for (var prop of __getOwnPropSymbols$i(b)) {
|
|
37234
|
+
if (__propIsEnum$i.call(b, prop))
|
|
37235
|
+
__defNormalProp$g(a, prop, b[prop]);
|
|
37221
37236
|
}
|
|
37222
37237
|
return a;
|
|
37223
37238
|
};
|
|
37224
|
-
var __spreadProps$
|
|
37225
|
-
var __objRest$
|
|
37239
|
+
var __spreadProps$d = (a, b) => __defProps$d(a, __getOwnPropDescs$d(b));
|
|
37240
|
+
var __objRest$a = (source, exclude) => {
|
|
37226
37241
|
var target = {};
|
|
37227
37242
|
for (var prop in source)
|
|
37228
|
-
if (__hasOwnProp$
|
|
37243
|
+
if (__hasOwnProp$i.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
37229
37244
|
target[prop] = source[prop];
|
|
37230
|
-
if (source != null && __getOwnPropSymbols$
|
|
37231
|
-
for (var prop of __getOwnPropSymbols$
|
|
37232
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
37245
|
+
if (source != null && __getOwnPropSymbols$i)
|
|
37246
|
+
for (var prop of __getOwnPropSymbols$i(source)) {
|
|
37247
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$i.call(source, prop))
|
|
37233
37248
|
target[prop] = source[prop];
|
|
37234
37249
|
}
|
|
37235
37250
|
return target;
|
|
@@ -37240,12 +37255,12 @@ const useGetShipment = (params) => {
|
|
|
37240
37255
|
const shipmentId = typeof params === "string" ? params : (_a = params == null ? void 0 : params.queryFnParams) == null ? void 0 : _a.shipmentId;
|
|
37241
37256
|
const getQueryProps = () => {
|
|
37242
37257
|
if (typeof params !== "string") {
|
|
37243
|
-
const _a2 = params, rest = __objRest$
|
|
37258
|
+
const _a2 = params, rest = __objRest$a(_a2, ["queryFnParams"]);
|
|
37244
37259
|
return rest;
|
|
37245
37260
|
}
|
|
37246
37261
|
return {};
|
|
37247
37262
|
};
|
|
37248
|
-
return reactQuery.useQuery(__spreadProps$
|
|
37263
|
+
return reactQuery.useQuery(__spreadProps$d(__spreadValues$g({}, getQueryProps()), {
|
|
37249
37264
|
enabled: shipmentId !== void 0,
|
|
37250
37265
|
onError,
|
|
37251
37266
|
queryFn: () => {
|
|
@@ -37259,23 +37274,23 @@ const useGetShipment = (params) => {
|
|
|
37259
37274
|
}));
|
|
37260
37275
|
};
|
|
37261
37276
|
|
|
37262
|
-
var __getOwnPropSymbols$
|
|
37263
|
-
var __hasOwnProp$
|
|
37264
|
-
var __propIsEnum$
|
|
37265
|
-
var __objRest$
|
|
37277
|
+
var __getOwnPropSymbols$h = Object.getOwnPropertySymbols;
|
|
37278
|
+
var __hasOwnProp$h = Object.prototype.hasOwnProperty;
|
|
37279
|
+
var __propIsEnum$h = Object.prototype.propertyIsEnumerable;
|
|
37280
|
+
var __objRest$9 = (source, exclude) => {
|
|
37266
37281
|
var target = {};
|
|
37267
37282
|
for (var prop in source)
|
|
37268
|
-
if (__hasOwnProp$
|
|
37283
|
+
if (__hasOwnProp$h.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
37269
37284
|
target[prop] = source[prop];
|
|
37270
|
-
if (source != null && __getOwnPropSymbols$
|
|
37271
|
-
for (var prop of __getOwnPropSymbols$
|
|
37272
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
37285
|
+
if (source != null && __getOwnPropSymbols$h)
|
|
37286
|
+
for (var prop of __getOwnPropSymbols$h(source)) {
|
|
37287
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$h.call(source, prop))
|
|
37273
37288
|
target[prop] = source[prop];
|
|
37274
37289
|
}
|
|
37275
37290
|
return target;
|
|
37276
37291
|
};
|
|
37277
37292
|
const useListShipments = (_params) => {
|
|
37278
|
-
const _a = _params || {}, { enabled = true } = _a, params = __objRest$
|
|
37293
|
+
const _a = _params || {}, { enabled = true } = _a, params = __objRest$9(_a, ["enabled"]);
|
|
37279
37294
|
const { client } = useShipEngine();
|
|
37280
37295
|
return reactQuery.useQuery({
|
|
37281
37296
|
enabled,
|
|
@@ -37286,41 +37301,41 @@ const useListShipments = (_params) => {
|
|
|
37286
37301
|
});
|
|
37287
37302
|
};
|
|
37288
37303
|
|
|
37289
|
-
var __defProp$
|
|
37290
|
-
var __defProps$
|
|
37291
|
-
var __getOwnPropDescs$
|
|
37292
|
-
var __getOwnPropSymbols$
|
|
37293
|
-
var __hasOwnProp$
|
|
37294
|
-
var __propIsEnum$
|
|
37295
|
-
var __defNormalProp$
|
|
37296
|
-
var __spreadValues$
|
|
37304
|
+
var __defProp$f = Object.defineProperty;
|
|
37305
|
+
var __defProps$c = Object.defineProperties;
|
|
37306
|
+
var __getOwnPropDescs$c = Object.getOwnPropertyDescriptors;
|
|
37307
|
+
var __getOwnPropSymbols$g = Object.getOwnPropertySymbols;
|
|
37308
|
+
var __hasOwnProp$g = Object.prototype.hasOwnProperty;
|
|
37309
|
+
var __propIsEnum$g = Object.prototype.propertyIsEnumerable;
|
|
37310
|
+
var __defNormalProp$f = (obj, key, value) => key in obj ? __defProp$f(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
37311
|
+
var __spreadValues$f = (a, b) => {
|
|
37297
37312
|
for (var prop in b || (b = {}))
|
|
37298
|
-
if (__hasOwnProp$
|
|
37299
|
-
__defNormalProp$
|
|
37300
|
-
if (__getOwnPropSymbols$
|
|
37301
|
-
for (var prop of __getOwnPropSymbols$
|
|
37302
|
-
if (__propIsEnum$
|
|
37303
|
-
__defNormalProp$
|
|
37313
|
+
if (__hasOwnProp$g.call(b, prop))
|
|
37314
|
+
__defNormalProp$f(a, prop, b[prop]);
|
|
37315
|
+
if (__getOwnPropSymbols$g)
|
|
37316
|
+
for (var prop of __getOwnPropSymbols$g(b)) {
|
|
37317
|
+
if (__propIsEnum$g.call(b, prop))
|
|
37318
|
+
__defNormalProp$f(a, prop, b[prop]);
|
|
37304
37319
|
}
|
|
37305
37320
|
return a;
|
|
37306
37321
|
};
|
|
37307
|
-
var __spreadProps$
|
|
37308
|
-
var __objRest$
|
|
37322
|
+
var __spreadProps$c = (a, b) => __defProps$c(a, __getOwnPropDescs$c(b));
|
|
37323
|
+
var __objRest$8 = (source, exclude) => {
|
|
37309
37324
|
var target = {};
|
|
37310
37325
|
for (var prop in source)
|
|
37311
|
-
if (__hasOwnProp$
|
|
37326
|
+
if (__hasOwnProp$g.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
37312
37327
|
target[prop] = source[prop];
|
|
37313
|
-
if (source != null && __getOwnPropSymbols$
|
|
37314
|
-
for (var prop of __getOwnPropSymbols$
|
|
37315
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
37328
|
+
if (source != null && __getOwnPropSymbols$g)
|
|
37329
|
+
for (var prop of __getOwnPropSymbols$g(source)) {
|
|
37330
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$g.call(source, prop))
|
|
37316
37331
|
target[prop] = source[prop];
|
|
37317
37332
|
}
|
|
37318
37333
|
return target;
|
|
37319
37334
|
};
|
|
37320
37335
|
const useGetShipmentByExternalId = (params) => {
|
|
37321
37336
|
const { client } = useShipEngine();
|
|
37322
|
-
const _a = params, { queryFnParams } = _a, rest = __objRest$
|
|
37323
|
-
return reactQuery.useQuery(__spreadProps$
|
|
37337
|
+
const _a = params, { queryFnParams } = _a, rest = __objRest$8(_a, ["queryFnParams"]);
|
|
37338
|
+
return reactQuery.useQuery(__spreadProps$c(__spreadValues$f({}, rest), {
|
|
37324
37339
|
onError,
|
|
37325
37340
|
queryFn: () => client.shipments.getByExternalId(queryFnParams.externalId),
|
|
37326
37341
|
queryKey: ["useGetShipmentByExternalId", queryFnParams],
|
|
@@ -37360,6 +37375,47 @@ const useCancelShipment = () => {
|
|
|
37360
37375
|
});
|
|
37361
37376
|
};
|
|
37362
37377
|
|
|
37378
|
+
var __defProp$e = Object.defineProperty;
|
|
37379
|
+
var __defProps$b = Object.defineProperties;
|
|
37380
|
+
var __getOwnPropDescs$b = Object.getOwnPropertyDescriptors;
|
|
37381
|
+
var __getOwnPropSymbols$f = Object.getOwnPropertySymbols;
|
|
37382
|
+
var __hasOwnProp$f = Object.prototype.hasOwnProperty;
|
|
37383
|
+
var __propIsEnum$f = Object.prototype.propertyIsEnumerable;
|
|
37384
|
+
var __defNormalProp$e = (obj, key, value) => key in obj ? __defProp$e(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
37385
|
+
var __spreadValues$e = (a, b) => {
|
|
37386
|
+
for (var prop in b || (b = {}))
|
|
37387
|
+
if (__hasOwnProp$f.call(b, prop))
|
|
37388
|
+
__defNormalProp$e(a, prop, b[prop]);
|
|
37389
|
+
if (__getOwnPropSymbols$f)
|
|
37390
|
+
for (var prop of __getOwnPropSymbols$f(b)) {
|
|
37391
|
+
if (__propIsEnum$f.call(b, prop))
|
|
37392
|
+
__defNormalProp$e(a, prop, b[prop]);
|
|
37393
|
+
}
|
|
37394
|
+
return a;
|
|
37395
|
+
};
|
|
37396
|
+
var __spreadProps$b = (a, b) => __defProps$b(a, __getOwnPropDescs$b(b));
|
|
37397
|
+
var __objRest$7 = (source, exclude) => {
|
|
37398
|
+
var target = {};
|
|
37399
|
+
for (var prop in source)
|
|
37400
|
+
if (__hasOwnProp$f.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
37401
|
+
target[prop] = source[prop];
|
|
37402
|
+
if (source != null && __getOwnPropSymbols$f)
|
|
37403
|
+
for (var prop of __getOwnPropSymbols$f(source)) {
|
|
37404
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$f.call(source, prop))
|
|
37405
|
+
target[prop] = source[prop];
|
|
37406
|
+
}
|
|
37407
|
+
return target;
|
|
37408
|
+
};
|
|
37409
|
+
const useDownloadShipments = (params) => {
|
|
37410
|
+
const { client } = useShipEngine();
|
|
37411
|
+
const _a = __spreadValues$e({}, params), { queryFnParams } = _a, rest = __objRest$7(_a, ["queryFnParams"]);
|
|
37412
|
+
return reactQuery.useQuery(__spreadProps$b(__spreadValues$e({}, rest), {
|
|
37413
|
+
onError,
|
|
37414
|
+
queryFn: () => client.shipments.download(queryFnParams),
|
|
37415
|
+
queryKey: ["useDownloadShipments", params]
|
|
37416
|
+
}));
|
|
37417
|
+
};
|
|
37418
|
+
|
|
37363
37419
|
var __defProp$d = Object.defineProperty;
|
|
37364
37420
|
var __defProps$a = Object.defineProperties;
|
|
37365
37421
|
var __getOwnPropDescs$a = Object.getOwnPropertyDescriptors;
|
|
@@ -39575,6 +39631,7 @@ exports.useDeleteWarehouse = useDeleteWarehouse;
|
|
|
39575
39631
|
exports.useDeleteWebhook = useDeleteWebhook;
|
|
39576
39632
|
exports.useDownloadLabels = useDownloadLabels;
|
|
39577
39633
|
exports.useDownloadRateCard = useDownloadRateCard;
|
|
39634
|
+
exports.useDownloadShipments = useDownloadShipments;
|
|
39578
39635
|
exports.useEditShippingRule = useEditShippingRule;
|
|
39579
39636
|
exports.useFundingSourcesAddFunds = useFundingSourcesAddFunds;
|
|
39580
39637
|
exports.useGetAccountBilling = useGetAccountBilling;
|