@shipengine/alchemy 6.0.86-next.2 → 6.0.86
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 +931 -959
- package/index.mjs +931 -959
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -4905,41 +4905,33 @@ var _getHolder = getHolder$2;
|
|
|
4905
4905
|
|
|
4906
4906
|
/** Used as references for various `Number` constants. */
|
|
4907
4907
|
|
|
4908
|
-
var
|
|
4909
|
-
var hasRequired_isIndex;
|
|
4908
|
+
var MAX_SAFE_INTEGER$1 = 9007199254740991;
|
|
4910
4909
|
|
|
4911
|
-
|
|
4912
|
-
|
|
4913
|
-
hasRequired_isIndex = 1;
|
|
4914
|
-
var MAX_SAFE_INTEGER = 9007199254740991;
|
|
4910
|
+
/** Used to detect unsigned integer values. */
|
|
4911
|
+
var reIsUint = /^(?:0|[1-9]\d*)$/;
|
|
4915
4912
|
|
|
4916
|
-
|
|
4917
|
-
|
|
4918
|
-
|
|
4919
|
-
|
|
4920
|
-
|
|
4921
|
-
|
|
4922
|
-
|
|
4923
|
-
|
|
4924
|
-
|
|
4925
|
-
|
|
4926
|
-
|
|
4927
|
-
function isIndex(value, length) {
|
|
4928
|
-
var type = typeof value;
|
|
4929
|
-
length = length == null ? MAX_SAFE_INTEGER : length;
|
|
4930
|
-
|
|
4931
|
-
return !!length &&
|
|
4932
|
-
(type == 'number' ||
|
|
4933
|
-
(type != 'symbol' && reIsUint.test(value))) &&
|
|
4934
|
-
(value > -1 && value % 1 == 0 && value < length);
|
|
4935
|
-
}
|
|
4913
|
+
/**
|
|
4914
|
+
* Checks if `value` is a valid array-like index.
|
|
4915
|
+
*
|
|
4916
|
+
* @private
|
|
4917
|
+
* @param {*} value The value to check.
|
|
4918
|
+
* @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.
|
|
4919
|
+
* @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
|
|
4920
|
+
*/
|
|
4921
|
+
function isIndex$3(value, length) {
|
|
4922
|
+
var type = typeof value;
|
|
4923
|
+
length = length == null ? MAX_SAFE_INTEGER$1 : length;
|
|
4936
4924
|
|
|
4937
|
-
|
|
4938
|
-
|
|
4925
|
+
return !!length &&
|
|
4926
|
+
(type == 'number' ||
|
|
4927
|
+
(type != 'symbol' && reIsUint.test(value))) &&
|
|
4928
|
+
(value > -1 && value % 1 == 0 && value < length);
|
|
4939
4929
|
}
|
|
4940
4930
|
|
|
4931
|
+
var _isIndex = isIndex$3;
|
|
4932
|
+
|
|
4941
4933
|
var copyArray$2 = _copyArray,
|
|
4942
|
-
isIndex$2 =
|
|
4934
|
+
isIndex$2 = _isIndex;
|
|
4943
4935
|
|
|
4944
4936
|
/* Built-in method references for those with the same name as other `lodash` methods. */
|
|
4945
4937
|
var nativeMin$1 = Math.min;
|
|
@@ -6132,7 +6124,7 @@ var baseTimes = _baseTimes,
|
|
|
6132
6124
|
isArguments$2 = requireIsArguments(),
|
|
6133
6125
|
isArray$f = isArray_1,
|
|
6134
6126
|
isBuffer$4 = isBufferExports,
|
|
6135
|
-
isIndex$1 =
|
|
6127
|
+
isIndex$1 = _isIndex,
|
|
6136
6128
|
isTypedArray$1 = requireIsTypedArray();
|
|
6137
6129
|
|
|
6138
6130
|
/** Used for built-in method references. */
|
|
@@ -9463,7 +9455,7 @@ var _baseHasIn = baseHasIn$1;
|
|
|
9463
9455
|
var castPath = _castPath,
|
|
9464
9456
|
isArguments$1 = requireIsArguments(),
|
|
9465
9457
|
isArray$8 = isArray_1,
|
|
9466
|
-
isIndex =
|
|
9458
|
+
isIndex = _isIndex,
|
|
9467
9459
|
isLength = isLength_1,
|
|
9468
9460
|
toKey$3 = _toKey;
|
|
9469
9461
|
|
|
@@ -10353,7 +10345,7 @@ function require_isIterateeCall () {
|
|
|
10353
10345
|
hasRequired_isIterateeCall = 1;
|
|
10354
10346
|
var eq = requireEq(),
|
|
10355
10347
|
isArrayLike = isArrayLike_1,
|
|
10356
|
-
isIndex =
|
|
10348
|
+
isIndex = _isIndex,
|
|
10357
10349
|
isObject = isObject_1;
|
|
10358
10350
|
|
|
10359
10351
|
/**
|
|
@@ -10835,17 +10827,17 @@ var FeatureId = /* @__PURE__ */ ((FeatureId2) => {
|
|
|
10835
10827
|
return FeatureId2;
|
|
10836
10828
|
})(FeatureId || {});
|
|
10837
10829
|
|
|
10838
|
-
var __getOwnPropSymbols$
|
|
10839
|
-
var __hasOwnProp$
|
|
10840
|
-
var __propIsEnum$
|
|
10830
|
+
var __getOwnPropSymbols$16 = Object.getOwnPropertySymbols;
|
|
10831
|
+
var __hasOwnProp$16 = Object.prototype.hasOwnProperty;
|
|
10832
|
+
var __propIsEnum$16 = Object.prototype.propertyIsEnumerable;
|
|
10841
10833
|
var __objRest$x = (source, exclude) => {
|
|
10842
10834
|
var target = {};
|
|
10843
10835
|
for (var prop in source)
|
|
10844
|
-
if (__hasOwnProp$
|
|
10836
|
+
if (__hasOwnProp$16.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
10845
10837
|
target[prop] = source[prop];
|
|
10846
|
-
if (source != null && __getOwnPropSymbols$
|
|
10847
|
-
for (var prop of __getOwnPropSymbols$
|
|
10848
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
10838
|
+
if (source != null && __getOwnPropSymbols$16)
|
|
10839
|
+
for (var prop of __getOwnPropSymbols$16(source)) {
|
|
10840
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$16.call(source, prop))
|
|
10849
10841
|
target[prop] = source[prop];
|
|
10850
10842
|
}
|
|
10851
10843
|
return target;
|
|
@@ -10981,17 +10973,17 @@ const types = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
|
|
|
10981
10973
|
RateCardStatus
|
|
10982
10974
|
}, Symbol.toStringTag, { value: 'Module' }));
|
|
10983
10975
|
|
|
10984
|
-
var __getOwnPropSymbols$
|
|
10985
|
-
var __hasOwnProp$
|
|
10986
|
-
var __propIsEnum$
|
|
10976
|
+
var __getOwnPropSymbols$15 = Object.getOwnPropertySymbols;
|
|
10977
|
+
var __hasOwnProp$15 = Object.prototype.hasOwnProperty;
|
|
10978
|
+
var __propIsEnum$15 = Object.prototype.propertyIsEnumerable;
|
|
10987
10979
|
var __objRest$w = (source, exclude) => {
|
|
10988
10980
|
var target = {};
|
|
10989
10981
|
for (var prop in source)
|
|
10990
|
-
if (__hasOwnProp$
|
|
10982
|
+
if (__hasOwnProp$15.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
10991
10983
|
target[prop] = source[prop];
|
|
10992
|
-
if (source != null && __getOwnPropSymbols$
|
|
10993
|
-
for (var prop of __getOwnPropSymbols$
|
|
10994
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
10984
|
+
if (source != null && __getOwnPropSymbols$15)
|
|
10985
|
+
for (var prop of __getOwnPropSymbols$15(source)) {
|
|
10986
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$15.call(source, prop))
|
|
10995
10987
|
target[prop] = source[prop];
|
|
10996
10988
|
}
|
|
10997
10989
|
return target;
|
|
@@ -14002,33 +13994,33 @@ const decamelizeKeys = (obj, separator = "_") => {
|
|
|
14002
13994
|
return obj;
|
|
14003
13995
|
};
|
|
14004
13996
|
|
|
14005
|
-
var __defProp$
|
|
14006
|
-
var __defProps$
|
|
14007
|
-
var __getOwnPropDescs$
|
|
14008
|
-
var __getOwnPropSymbols$
|
|
14009
|
-
var __hasOwnProp$
|
|
14010
|
-
var __propIsEnum$
|
|
14011
|
-
var __defNormalProp$
|
|
14012
|
-
var __spreadValues$
|
|
13997
|
+
var __defProp$V = Object.defineProperty;
|
|
13998
|
+
var __defProps$P = Object.defineProperties;
|
|
13999
|
+
var __getOwnPropDescs$P = Object.getOwnPropertyDescriptors;
|
|
14000
|
+
var __getOwnPropSymbols$14 = Object.getOwnPropertySymbols;
|
|
14001
|
+
var __hasOwnProp$14 = Object.prototype.hasOwnProperty;
|
|
14002
|
+
var __propIsEnum$14 = Object.prototype.propertyIsEnumerable;
|
|
14003
|
+
var __defNormalProp$V = (obj, key, value) => key in obj ? __defProp$V(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
14004
|
+
var __spreadValues$V = (a, b) => {
|
|
14013
14005
|
for (var prop in b || (b = {}))
|
|
14014
|
-
if (__hasOwnProp$
|
|
14015
|
-
__defNormalProp$
|
|
14016
|
-
if (__getOwnPropSymbols$
|
|
14017
|
-
for (var prop of __getOwnPropSymbols$
|
|
14018
|
-
if (__propIsEnum$
|
|
14019
|
-
__defNormalProp$
|
|
14006
|
+
if (__hasOwnProp$14.call(b, prop))
|
|
14007
|
+
__defNormalProp$V(a, prop, b[prop]);
|
|
14008
|
+
if (__getOwnPropSymbols$14)
|
|
14009
|
+
for (var prop of __getOwnPropSymbols$14(b)) {
|
|
14010
|
+
if (__propIsEnum$14.call(b, prop))
|
|
14011
|
+
__defNormalProp$V(a, prop, b[prop]);
|
|
14020
14012
|
}
|
|
14021
14013
|
return a;
|
|
14022
14014
|
};
|
|
14023
|
-
var __spreadProps$
|
|
14015
|
+
var __spreadProps$P = (a, b) => __defProps$P(a, __getOwnPropDescs$P(b));
|
|
14024
14016
|
var __objRest$v = (source, exclude) => {
|
|
14025
14017
|
var target = {};
|
|
14026
14018
|
for (var prop in source)
|
|
14027
|
-
if (__hasOwnProp$
|
|
14019
|
+
if (__hasOwnProp$14.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
14028
14020
|
target[prop] = source[prop];
|
|
14029
|
-
if (source != null && __getOwnPropSymbols$
|
|
14030
|
-
for (var prop of __getOwnPropSymbols$
|
|
14031
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
14021
|
+
if (source != null && __getOwnPropSymbols$14)
|
|
14022
|
+
for (var prop of __getOwnPropSymbols$14(source)) {
|
|
14023
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$14.call(source, prop))
|
|
14032
14024
|
target[prop] = source[prop];
|
|
14033
14025
|
}
|
|
14034
14026
|
return target;
|
|
@@ -14078,7 +14070,7 @@ class CarriersAPI {
|
|
|
14078
14070
|
const endUserIpAddress = yield getEndUserIpAddress();
|
|
14079
14071
|
if (!endUserIpAddress)
|
|
14080
14072
|
return Promise.reject([new CodedError("Unable to get IP address")]);
|
|
14081
|
-
return yield this.client.post(`/v1/registration/${carrierCode}`, __spreadProps$
|
|
14073
|
+
return yield this.client.post(`/v1/registration/${carrierCode}`, __spreadProps$P(__spreadValues$V({}, connection), {
|
|
14082
14074
|
endUserIpAddress
|
|
14083
14075
|
}));
|
|
14084
14076
|
});
|
|
@@ -14172,17 +14164,17 @@ class CarriersAPI {
|
|
|
14172
14164
|
}
|
|
14173
14165
|
}
|
|
14174
14166
|
|
|
14175
|
-
var __getOwnPropSymbols$
|
|
14176
|
-
var __hasOwnProp$
|
|
14177
|
-
var __propIsEnum$
|
|
14167
|
+
var __getOwnPropSymbols$13 = Object.getOwnPropertySymbols;
|
|
14168
|
+
var __hasOwnProp$13 = Object.prototype.hasOwnProperty;
|
|
14169
|
+
var __propIsEnum$13 = Object.prototype.propertyIsEnumerable;
|
|
14178
14170
|
var __objRest$u = (source, exclude) => {
|
|
14179
14171
|
var target = {};
|
|
14180
14172
|
for (var prop in source)
|
|
14181
|
-
if (__hasOwnProp$
|
|
14173
|
+
if (__hasOwnProp$13.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
14182
14174
|
target[prop] = source[prop];
|
|
14183
|
-
if (source != null && __getOwnPropSymbols$
|
|
14184
|
-
for (var prop of __getOwnPropSymbols$
|
|
14185
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
14175
|
+
if (source != null && __getOwnPropSymbols$13)
|
|
14176
|
+
for (var prop of __getOwnPropSymbols$13(source)) {
|
|
14177
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$13.call(source, prop))
|
|
14186
14178
|
target[prop] = source[prop];
|
|
14187
14179
|
}
|
|
14188
14180
|
return target;
|
|
@@ -16397,19 +16389,19 @@ class CustomPackagesAPI {
|
|
|
16397
16389
|
}
|
|
16398
16390
|
}
|
|
16399
16391
|
|
|
16400
|
-
var __defProp$
|
|
16401
|
-
var __getOwnPropSymbols$
|
|
16402
|
-
var __hasOwnProp$
|
|
16403
|
-
var __propIsEnum$
|
|
16404
|
-
var __defNormalProp$
|
|
16405
|
-
var __spreadValues$
|
|
16392
|
+
var __defProp$U = Object.defineProperty;
|
|
16393
|
+
var __getOwnPropSymbols$12 = Object.getOwnPropertySymbols;
|
|
16394
|
+
var __hasOwnProp$12 = Object.prototype.hasOwnProperty;
|
|
16395
|
+
var __propIsEnum$12 = Object.prototype.propertyIsEnumerable;
|
|
16396
|
+
var __defNormalProp$U = (obj, key, value) => key in obj ? __defProp$U(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
16397
|
+
var __spreadValues$U = (a, b) => {
|
|
16406
16398
|
for (var prop in b || (b = {}))
|
|
16407
|
-
if (__hasOwnProp$
|
|
16408
|
-
__defNormalProp$
|
|
16409
|
-
if (__getOwnPropSymbols$
|
|
16410
|
-
for (var prop of __getOwnPropSymbols$
|
|
16411
|
-
if (__propIsEnum$
|
|
16412
|
-
__defNormalProp$
|
|
16399
|
+
if (__hasOwnProp$12.call(b, prop))
|
|
16400
|
+
__defNormalProp$U(a, prop, b[prop]);
|
|
16401
|
+
if (__getOwnPropSymbols$12)
|
|
16402
|
+
for (var prop of __getOwnPropSymbols$12(b)) {
|
|
16403
|
+
if (__propIsEnum$12.call(b, prop))
|
|
16404
|
+
__defNormalProp$U(a, prop, b[prop]);
|
|
16413
16405
|
}
|
|
16414
16406
|
return a;
|
|
16415
16407
|
};
|
|
@@ -16457,7 +16449,7 @@ class FundingSourcesAPI {
|
|
|
16457
16449
|
if (!endUserIpAddress) {
|
|
16458
16450
|
return Promise.reject([new CodedError("Unable to get IP address")]);
|
|
16459
16451
|
}
|
|
16460
|
-
return yield this.client.post("/v1/funding_sources", __spreadValues$
|
|
16452
|
+
return yield this.client.post("/v1/funding_sources", __spreadValues$U({
|
|
16461
16453
|
endUserIpAddress
|
|
16462
16454
|
}, createFundingSource));
|
|
16463
16455
|
});
|
|
@@ -16476,7 +16468,7 @@ class FundingSourcesAPI {
|
|
|
16476
16468
|
{
|
|
16477
16469
|
billingInfo,
|
|
16478
16470
|
endUserIpAddress,
|
|
16479
|
-
paymentMethod: __spreadValues$
|
|
16471
|
+
paymentMethod: __spreadValues$U({
|
|
16480
16472
|
creditCardInfo
|
|
16481
16473
|
}, auctanePayInfo)
|
|
16482
16474
|
}
|
|
@@ -16491,7 +16483,7 @@ class FundingSourcesAPI {
|
|
|
16491
16483
|
if (!endUserIpAddress) {
|
|
16492
16484
|
return Promise.reject([new CodedError("Unable to get IP address")]);
|
|
16493
16485
|
}
|
|
16494
|
-
return yield this.client.post("/v1/registration/funding_source", __spreadValues$
|
|
16486
|
+
return yield this.client.post("/v1/registration/funding_source", __spreadValues$U({
|
|
16495
16487
|
endUserIpAddress
|
|
16496
16488
|
}, carrier));
|
|
16497
16489
|
});
|
|
@@ -16683,17 +16675,17 @@ class LabelsAPI {
|
|
|
16683
16675
|
}
|
|
16684
16676
|
}
|
|
16685
16677
|
|
|
16686
|
-
var __getOwnPropSymbols$
|
|
16687
|
-
var __hasOwnProp$
|
|
16688
|
-
var __propIsEnum$
|
|
16678
|
+
var __getOwnPropSymbols$11 = Object.getOwnPropertySymbols;
|
|
16679
|
+
var __hasOwnProp$11 = Object.prototype.hasOwnProperty;
|
|
16680
|
+
var __propIsEnum$11 = Object.prototype.propertyIsEnumerable;
|
|
16689
16681
|
var __objRest$t = (source, exclude) => {
|
|
16690
16682
|
var target = {};
|
|
16691
16683
|
for (var prop in source)
|
|
16692
|
-
if (__hasOwnProp$
|
|
16684
|
+
if (__hasOwnProp$11.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
16693
16685
|
target[prop] = source[prop];
|
|
16694
|
-
if (source != null && __getOwnPropSymbols$
|
|
16695
|
-
for (var prop of __getOwnPropSymbols$
|
|
16696
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
16686
|
+
if (source != null && __getOwnPropSymbols$11)
|
|
16687
|
+
for (var prop of __getOwnPropSymbols$11(source)) {
|
|
16688
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$11.call(source, prop))
|
|
16697
16689
|
target[prop] = source[prop];
|
|
16698
16690
|
}
|
|
16699
16691
|
return target;
|
|
@@ -16814,19 +16806,19 @@ class RateCardsAPI {
|
|
|
16814
16806
|
}
|
|
16815
16807
|
}
|
|
16816
16808
|
|
|
16817
|
-
var __defProp$
|
|
16818
|
-
var __getOwnPropSymbols$
|
|
16819
|
-
var __hasOwnProp$
|
|
16820
|
-
var __propIsEnum$
|
|
16821
|
-
var __defNormalProp$
|
|
16822
|
-
var __spreadValues$
|
|
16809
|
+
var __defProp$T = Object.defineProperty;
|
|
16810
|
+
var __getOwnPropSymbols$10 = Object.getOwnPropertySymbols;
|
|
16811
|
+
var __hasOwnProp$10 = Object.prototype.hasOwnProperty;
|
|
16812
|
+
var __propIsEnum$10 = Object.prototype.propertyIsEnumerable;
|
|
16813
|
+
var __defNormalProp$T = (obj, key, value) => key in obj ? __defProp$T(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
16814
|
+
var __spreadValues$T = (a, b) => {
|
|
16823
16815
|
for (var prop in b || (b = {}))
|
|
16824
|
-
if (__hasOwnProp$
|
|
16825
|
-
__defNormalProp$
|
|
16826
|
-
if (__getOwnPropSymbols$
|
|
16827
|
-
for (var prop of __getOwnPropSymbols$
|
|
16828
|
-
if (__propIsEnum$
|
|
16829
|
-
__defNormalProp$
|
|
16816
|
+
if (__hasOwnProp$10.call(b, prop))
|
|
16817
|
+
__defNormalProp$T(a, prop, b[prop]);
|
|
16818
|
+
if (__getOwnPropSymbols$10)
|
|
16819
|
+
for (var prop of __getOwnPropSymbols$10(b)) {
|
|
16820
|
+
if (__propIsEnum$10.call(b, prop))
|
|
16821
|
+
__defNormalProp$T(a, prop, b[prop]);
|
|
16830
16822
|
}
|
|
16831
16823
|
return a;
|
|
16832
16824
|
};
|
|
@@ -16848,7 +16840,7 @@ class RatesAPI {
|
|
|
16848
16840
|
* method.
|
|
16849
16841
|
*/
|
|
16850
16842
|
this.estimate = (params) => {
|
|
16851
|
-
return this.client.post("/v1/rates/estimate", __spreadValues$
|
|
16843
|
+
return this.client.post("/v1/rates/estimate", __spreadValues$T({}, params));
|
|
16852
16844
|
};
|
|
16853
16845
|
this.client = client;
|
|
16854
16846
|
}
|
|
@@ -17032,19 +17024,19 @@ class SellersAPI {
|
|
|
17032
17024
|
}
|
|
17033
17025
|
}
|
|
17034
17026
|
|
|
17035
|
-
var __defProp$
|
|
17036
|
-
var __getOwnPropSymbols
|
|
17037
|
-
var __hasOwnProp
|
|
17038
|
-
var __propIsEnum
|
|
17039
|
-
var __defNormalProp$
|
|
17040
|
-
var __spreadValues$
|
|
17027
|
+
var __defProp$S = Object.defineProperty;
|
|
17028
|
+
var __getOwnPropSymbols$$ = Object.getOwnPropertySymbols;
|
|
17029
|
+
var __hasOwnProp$$ = Object.prototype.hasOwnProperty;
|
|
17030
|
+
var __propIsEnum$$ = Object.prototype.propertyIsEnumerable;
|
|
17031
|
+
var __defNormalProp$S = (obj, key, value) => key in obj ? __defProp$S(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
17032
|
+
var __spreadValues$S = (a, b) => {
|
|
17041
17033
|
for (var prop in b || (b = {}))
|
|
17042
|
-
if (__hasOwnProp
|
|
17043
|
-
__defNormalProp$
|
|
17044
|
-
if (__getOwnPropSymbols
|
|
17045
|
-
for (var prop of __getOwnPropSymbols
|
|
17046
|
-
if (__propIsEnum
|
|
17047
|
-
__defNormalProp$
|
|
17034
|
+
if (__hasOwnProp$$.call(b, prop))
|
|
17035
|
+
__defNormalProp$S(a, prop, b[prop]);
|
|
17036
|
+
if (__getOwnPropSymbols$$)
|
|
17037
|
+
for (var prop of __getOwnPropSymbols$$(b)) {
|
|
17038
|
+
if (__propIsEnum$$.call(b, prop))
|
|
17039
|
+
__defNormalProp$S(a, prop, b[prop]);
|
|
17048
17040
|
}
|
|
17049
17041
|
return a;
|
|
17050
17042
|
};
|
|
@@ -17056,7 +17048,7 @@ class ServicePointsAPI {
|
|
|
17056
17048
|
* Either an address, coordinates, or an address query
|
|
17057
17049
|
*/
|
|
17058
17050
|
this.list = (options) => {
|
|
17059
|
-
return this.client.post("/v1/service_points/list", __spreadValues$
|
|
17051
|
+
return this.client.post("/v1/service_points/list", __spreadValues$S({}, options));
|
|
17060
17052
|
};
|
|
17061
17053
|
/**
|
|
17062
17054
|
* Get a specific service point by its carrier code, country code, and id
|
|
@@ -34540,33 +34532,33 @@ class WebhooksAPI {
|
|
|
34540
34532
|
}
|
|
34541
34533
|
}
|
|
34542
34534
|
|
|
34543
|
-
var __defProp$
|
|
34544
|
-
var __defProps$
|
|
34545
|
-
var __getOwnPropDescs$
|
|
34546
|
-
var __getOwnPropSymbols
|
|
34547
|
-
var __hasOwnProp
|
|
34548
|
-
var __propIsEnum
|
|
34549
|
-
var __defNormalProp$
|
|
34550
|
-
var __spreadValues$
|
|
34535
|
+
var __defProp$R = Object.defineProperty;
|
|
34536
|
+
var __defProps$O = Object.defineProperties;
|
|
34537
|
+
var __getOwnPropDescs$O = Object.getOwnPropertyDescriptors;
|
|
34538
|
+
var __getOwnPropSymbols$_ = Object.getOwnPropertySymbols;
|
|
34539
|
+
var __hasOwnProp$_ = Object.prototype.hasOwnProperty;
|
|
34540
|
+
var __propIsEnum$_ = Object.prototype.propertyIsEnumerable;
|
|
34541
|
+
var __defNormalProp$R = (obj, key, value) => key in obj ? __defProp$R(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
34542
|
+
var __spreadValues$R = (a, b) => {
|
|
34551
34543
|
for (var prop in b || (b = {}))
|
|
34552
|
-
if (__hasOwnProp
|
|
34553
|
-
__defNormalProp$
|
|
34554
|
-
if (__getOwnPropSymbols
|
|
34555
|
-
for (var prop of __getOwnPropSymbols
|
|
34556
|
-
if (__propIsEnum
|
|
34557
|
-
__defNormalProp$
|
|
34544
|
+
if (__hasOwnProp$_.call(b, prop))
|
|
34545
|
+
__defNormalProp$R(a, prop, b[prop]);
|
|
34546
|
+
if (__getOwnPropSymbols$_)
|
|
34547
|
+
for (var prop of __getOwnPropSymbols$_(b)) {
|
|
34548
|
+
if (__propIsEnum$_.call(b, prop))
|
|
34549
|
+
__defNormalProp$R(a, prop, b[prop]);
|
|
34558
34550
|
}
|
|
34559
34551
|
return a;
|
|
34560
34552
|
};
|
|
34561
|
-
var __spreadProps$
|
|
34553
|
+
var __spreadProps$O = (a, b) => __defProps$O(a, __getOwnPropDescs$O(b));
|
|
34562
34554
|
var __objRest$s = (source, exclude) => {
|
|
34563
34555
|
var target = {};
|
|
34564
34556
|
for (var prop in source)
|
|
34565
|
-
if (__hasOwnProp
|
|
34557
|
+
if (__hasOwnProp$_.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
34566
34558
|
target[prop] = source[prop];
|
|
34567
|
-
if (source != null && __getOwnPropSymbols
|
|
34568
|
-
for (var prop of __getOwnPropSymbols
|
|
34569
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum
|
|
34559
|
+
if (source != null && __getOwnPropSymbols$_)
|
|
34560
|
+
for (var prop of __getOwnPropSymbols$_(source)) {
|
|
34561
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$_.call(source, prop))
|
|
34570
34562
|
target[prop] = source[prop];
|
|
34571
34563
|
}
|
|
34572
34564
|
return target;
|
|
@@ -34594,7 +34586,7 @@ var __async$16 = (__this, __arguments, generator) => {
|
|
|
34594
34586
|
const logger$1 = E({
|
|
34595
34587
|
level: process.env.NODE_ENV === "production" ? "fatal" : "info",
|
|
34596
34588
|
name: "shipengine-api",
|
|
34597
|
-
serializers: __spreadProps$
|
|
34589
|
+
serializers: __spreadProps$O(__spreadValues$R({}, k), {
|
|
34598
34590
|
req: (req) => ({
|
|
34599
34591
|
headers: req.headers,
|
|
34600
34592
|
method: req.method,
|
|
@@ -34619,7 +34611,7 @@ class ShipEngineAPI {
|
|
|
34619
34611
|
this.getSandboxToken = getSandboxToken;
|
|
34620
34612
|
const client = axios.create({
|
|
34621
34613
|
baseURL,
|
|
34622
|
-
headers: __spreadProps$
|
|
34614
|
+
headers: __spreadProps$O(__spreadValues$R({}, headers), {
|
|
34623
34615
|
"Content-Type": "application/json"
|
|
34624
34616
|
}),
|
|
34625
34617
|
paramsSerializer: (params) => lib.stringify(decamelizeKeys(params), { arrayFormat: "brackets" }),
|
|
@@ -35063,25 +35055,25 @@ const delay = (ms) => new Promise((resolve) => {
|
|
|
35063
35055
|
|
|
35064
35056
|
const onError = (_errors) => _default();
|
|
35065
35057
|
|
|
35066
|
-
var __defProp$
|
|
35067
|
-
var __defProps$
|
|
35068
|
-
var __getOwnPropDescs$
|
|
35069
|
-
var __getOwnPropSymbols$
|
|
35070
|
-
var __hasOwnProp$
|
|
35071
|
-
var __propIsEnum$
|
|
35072
|
-
var __defNormalProp$
|
|
35073
|
-
var __spreadValues$
|
|
35058
|
+
var __defProp$Q = Object.defineProperty;
|
|
35059
|
+
var __defProps$N = Object.defineProperties;
|
|
35060
|
+
var __getOwnPropDescs$N = Object.getOwnPropertyDescriptors;
|
|
35061
|
+
var __getOwnPropSymbols$Z = Object.getOwnPropertySymbols;
|
|
35062
|
+
var __hasOwnProp$Z = Object.prototype.hasOwnProperty;
|
|
35063
|
+
var __propIsEnum$Z = Object.prototype.propertyIsEnumerable;
|
|
35064
|
+
var __defNormalProp$Q = (obj, key, value) => key in obj ? __defProp$Q(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
35065
|
+
var __spreadValues$Q = (a, b) => {
|
|
35074
35066
|
for (var prop in b || (b = {}))
|
|
35075
|
-
if (__hasOwnProp$
|
|
35076
|
-
__defNormalProp$
|
|
35077
|
-
if (__getOwnPropSymbols$
|
|
35078
|
-
for (var prop of __getOwnPropSymbols$
|
|
35079
|
-
if (__propIsEnum$
|
|
35080
|
-
__defNormalProp$
|
|
35067
|
+
if (__hasOwnProp$Z.call(b, prop))
|
|
35068
|
+
__defNormalProp$Q(a, prop, b[prop]);
|
|
35069
|
+
if (__getOwnPropSymbols$Z)
|
|
35070
|
+
for (var prop of __getOwnPropSymbols$Z(b)) {
|
|
35071
|
+
if (__propIsEnum$Z.call(b, prop))
|
|
35072
|
+
__defNormalProp$Q(a, prop, b[prop]);
|
|
35081
35073
|
}
|
|
35082
35074
|
return a;
|
|
35083
35075
|
};
|
|
35084
|
-
var __spreadProps$
|
|
35076
|
+
var __spreadProps$N = (a, b) => __defProps$N(a, __getOwnPropDescs$N(b));
|
|
35085
35077
|
const streams = [];
|
|
35086
35078
|
if (process.env.NODE_ENV === "production") {
|
|
35087
35079
|
streams.push({
|
|
@@ -35090,7 +35082,7 @@ if (process.env.NODE_ENV === "production") {
|
|
|
35090
35082
|
}
|
|
35091
35083
|
const logger = E({
|
|
35092
35084
|
name: "shipengine",
|
|
35093
|
-
serializers: __spreadProps$
|
|
35085
|
+
serializers: __spreadProps$N(__spreadValues$Q({}, k), {
|
|
35094
35086
|
req: (req) => ({
|
|
35095
35087
|
headers: req.headers,
|
|
35096
35088
|
method: req.method,
|
|
@@ -35263,35 +35255,6 @@ const useUpdateAccountSettings = () => {
|
|
|
35263
35255
|
});
|
|
35264
35256
|
};
|
|
35265
35257
|
|
|
35266
|
-
var __defProp$Q = Object.defineProperty;
|
|
35267
|
-
var __defProps$N = Object.defineProperties;
|
|
35268
|
-
var __getOwnPropDescs$N = Object.getOwnPropertyDescriptors;
|
|
35269
|
-
var __getOwnPropSymbols$Z = Object.getOwnPropertySymbols;
|
|
35270
|
-
var __hasOwnProp$Z = Object.prototype.hasOwnProperty;
|
|
35271
|
-
var __propIsEnum$Z = Object.prototype.propertyIsEnumerable;
|
|
35272
|
-
var __defNormalProp$Q = (obj, key, value) => key in obj ? __defProp$Q(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
35273
|
-
var __spreadValues$Q = (a, b) => {
|
|
35274
|
-
for (var prop in b || (b = {}))
|
|
35275
|
-
if (__hasOwnProp$Z.call(b, prop))
|
|
35276
|
-
__defNormalProp$Q(a, prop, b[prop]);
|
|
35277
|
-
if (__getOwnPropSymbols$Z)
|
|
35278
|
-
for (var prop of __getOwnPropSymbols$Z(b)) {
|
|
35279
|
-
if (__propIsEnum$Z.call(b, prop))
|
|
35280
|
-
__defNormalProp$Q(a, prop, b[prop]);
|
|
35281
|
-
}
|
|
35282
|
-
return a;
|
|
35283
|
-
};
|
|
35284
|
-
var __spreadProps$N = (a, b) => __defProps$N(a, __getOwnPropDescs$N(b));
|
|
35285
|
-
const useListAccountAddons = (params) => {
|
|
35286
|
-
const { client } = useShipEngine();
|
|
35287
|
-
return reactQuery.useQuery(__spreadProps$N(__spreadValues$Q({}, params), {
|
|
35288
|
-
onError,
|
|
35289
|
-
queryFn: () => client.accountAddons.list(),
|
|
35290
|
-
queryKey: ["useListAccountAddons"],
|
|
35291
|
-
select: (result) => result.data.addons
|
|
35292
|
-
}));
|
|
35293
|
-
};
|
|
35294
|
-
|
|
35295
35258
|
var __defProp$P = Object.defineProperty;
|
|
35296
35259
|
var __defProps$M = Object.defineProperties;
|
|
35297
35260
|
var __getOwnPropDescs$M = Object.getOwnPropertyDescriptors;
|
|
@@ -35311,35 +35274,13 @@ var __spreadValues$P = (a, b) => {
|
|
|
35311
35274
|
return a;
|
|
35312
35275
|
};
|
|
35313
35276
|
var __spreadProps$M = (a, b) => __defProps$M(a, __getOwnPropDescs$M(b));
|
|
35314
|
-
|
|
35315
|
-
return new Promise((resolve, reject) => {
|
|
35316
|
-
var fulfilled = (value) => {
|
|
35317
|
-
try {
|
|
35318
|
-
step(generator.next(value));
|
|
35319
|
-
} catch (e) {
|
|
35320
|
-
reject(e);
|
|
35321
|
-
}
|
|
35322
|
-
};
|
|
35323
|
-
var rejected = (value) => {
|
|
35324
|
-
try {
|
|
35325
|
-
step(generator.throw(value));
|
|
35326
|
-
} catch (e) {
|
|
35327
|
-
reject(e);
|
|
35328
|
-
}
|
|
35329
|
-
};
|
|
35330
|
-
var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
|
|
35331
|
-
step((generator = generator.apply(__this, __arguments)).next());
|
|
35332
|
-
});
|
|
35333
|
-
};
|
|
35334
|
-
const useEnableAccountAddon = (params) => {
|
|
35277
|
+
const useListAccountAddons = (params) => {
|
|
35335
35278
|
const { client } = useShipEngine();
|
|
35336
|
-
return reactQuery.
|
|
35337
|
-
|
|
35338
|
-
|
|
35339
|
-
|
|
35340
|
-
|
|
35341
|
-
mutationKey: ["useEnableAccountAddon"],
|
|
35342
|
-
onError
|
|
35279
|
+
return reactQuery.useQuery(__spreadProps$M(__spreadValues$P({}, params), {
|
|
35280
|
+
onError,
|
|
35281
|
+
queryFn: () => client.accountAddons.list(),
|
|
35282
|
+
queryKey: ["useListAccountAddons"],
|
|
35283
|
+
select: (result) => result.data.addons
|
|
35343
35284
|
}));
|
|
35344
35285
|
};
|
|
35345
35286
|
|
|
@@ -35362,7 +35303,7 @@ var __spreadValues$O = (a, b) => {
|
|
|
35362
35303
|
return a;
|
|
35363
35304
|
};
|
|
35364
35305
|
var __spreadProps$L = (a, b) => __defProps$L(a, __getOwnPropDescs$L(b));
|
|
35365
|
-
var __async$
|
|
35306
|
+
var __async$11 = (__this, __arguments, generator) => {
|
|
35366
35307
|
return new Promise((resolve, reject) => {
|
|
35367
35308
|
var fulfilled = (value) => {
|
|
35368
35309
|
try {
|
|
@@ -35382,14 +35323,14 @@ var __async$10 = (__this, __arguments, generator) => {
|
|
|
35382
35323
|
step((generator = generator.apply(__this, __arguments)).next());
|
|
35383
35324
|
});
|
|
35384
35325
|
};
|
|
35385
|
-
const
|
|
35326
|
+
const useEnableAccountAddon = (params) => {
|
|
35386
35327
|
const { client } = useShipEngine();
|
|
35387
35328
|
return reactQuery.useMutation(__spreadProps$L(__spreadValues$O({}, params), {
|
|
35388
|
-
mutationFn: (addonType) => __async$
|
|
35389
|
-
const result = yield client.accountAddons.
|
|
35329
|
+
mutationFn: (addonType) => __async$11(void 0, null, function* () {
|
|
35330
|
+
const result = yield client.accountAddons.enable(addonType);
|
|
35390
35331
|
return result.data;
|
|
35391
35332
|
}),
|
|
35392
|
-
mutationKey: ["
|
|
35333
|
+
mutationKey: ["useEnableAccountAddon"],
|
|
35393
35334
|
onError
|
|
35394
35335
|
}));
|
|
35395
35336
|
};
|
|
@@ -35413,17 +35354,7 @@ var __spreadValues$N = (a, b) => {
|
|
|
35413
35354
|
return a;
|
|
35414
35355
|
};
|
|
35415
35356
|
var __spreadProps$K = (a, b) => __defProps$K(a, __getOwnPropDescs$K(b));
|
|
35416
|
-
|
|
35417
|
-
const { client } = useShipEngine();
|
|
35418
|
-
return reactQuery.useQuery(__spreadProps$K(__spreadValues$N({}, params), {
|
|
35419
|
-
onError,
|
|
35420
|
-
queryFn: () => client.accountFeatures.list(),
|
|
35421
|
-
queryKey: ["useListAccountFeatures"],
|
|
35422
|
-
select: (result) => result.data.features
|
|
35423
|
-
}));
|
|
35424
|
-
};
|
|
35425
|
-
|
|
35426
|
-
var __async$$ = (__this, __arguments, generator) => {
|
|
35357
|
+
var __async$10 = (__this, __arguments, generator) => {
|
|
35427
35358
|
return new Promise((resolve, reject) => {
|
|
35428
35359
|
var fulfilled = (value) => {
|
|
35429
35360
|
try {
|
|
@@ -35443,16 +35374,16 @@ var __async$$ = (__this, __arguments, generator) => {
|
|
|
35443
35374
|
step((generator = generator.apply(__this, __arguments)).next());
|
|
35444
35375
|
});
|
|
35445
35376
|
};
|
|
35446
|
-
const
|
|
35377
|
+
const useDisableAccountAddon = (params) => {
|
|
35447
35378
|
const { client } = useShipEngine();
|
|
35448
|
-
return reactQuery.useMutation({
|
|
35449
|
-
mutationFn: (
|
|
35450
|
-
const result = yield client.
|
|
35379
|
+
return reactQuery.useMutation(__spreadProps$K(__spreadValues$N({}, params), {
|
|
35380
|
+
mutationFn: (addonType) => __async$10(void 0, null, function* () {
|
|
35381
|
+
const result = yield client.accountAddons.disable(addonType);
|
|
35451
35382
|
return result.data;
|
|
35452
35383
|
}),
|
|
35453
|
-
mutationKey: ["
|
|
35384
|
+
mutationKey: ["useDisableAccountAddon"],
|
|
35454
35385
|
onError
|
|
35455
|
-
});
|
|
35386
|
+
}));
|
|
35456
35387
|
};
|
|
35457
35388
|
|
|
35458
35389
|
var __defProp$M = Object.defineProperty;
|
|
@@ -35474,7 +35405,17 @@ var __spreadValues$M = (a, b) => {
|
|
|
35474
35405
|
return a;
|
|
35475
35406
|
};
|
|
35476
35407
|
var __spreadProps$J = (a, b) => __defProps$J(a, __getOwnPropDescs$J(b));
|
|
35477
|
-
|
|
35408
|
+
const useListAccountFeatures = (params) => {
|
|
35409
|
+
const { client } = useShipEngine();
|
|
35410
|
+
return reactQuery.useQuery(__spreadProps$J(__spreadValues$M({}, params), {
|
|
35411
|
+
onError,
|
|
35412
|
+
queryFn: () => client.accountFeatures.list(),
|
|
35413
|
+
queryKey: ["useListAccountFeatures"],
|
|
35414
|
+
select: (result) => result.data.features
|
|
35415
|
+
}));
|
|
35416
|
+
};
|
|
35417
|
+
|
|
35418
|
+
var __async$$ = (__this, __arguments, generator) => {
|
|
35478
35419
|
return new Promise((resolve, reject) => {
|
|
35479
35420
|
var fulfilled = (value) => {
|
|
35480
35421
|
try {
|
|
@@ -35494,15 +35435,16 @@ var __async$_ = (__this, __arguments, generator) => {
|
|
|
35494
35435
|
step((generator = generator.apply(__this, __arguments)).next());
|
|
35495
35436
|
});
|
|
35496
35437
|
};
|
|
35497
|
-
const
|
|
35438
|
+
const useRequestAccountFeature = () => {
|
|
35498
35439
|
const { client } = useShipEngine();
|
|
35499
|
-
return reactQuery.useMutation(
|
|
35500
|
-
mutationFn: () => __async
|
|
35501
|
-
yield client.
|
|
35440
|
+
return reactQuery.useMutation({
|
|
35441
|
+
mutationFn: (request) => __async$$(void 0, null, function* () {
|
|
35442
|
+
const result = yield client.accountFeatures.request(request);
|
|
35443
|
+
return result.data;
|
|
35502
35444
|
}),
|
|
35503
|
-
mutationKey: ["
|
|
35445
|
+
mutationKey: ["useRequestAccountFeature"],
|
|
35504
35446
|
onError
|
|
35505
|
-
})
|
|
35447
|
+
});
|
|
35506
35448
|
};
|
|
35507
35449
|
|
|
35508
35450
|
var __defProp$L = Object.defineProperty;
|
|
@@ -35524,7 +35466,7 @@ var __spreadValues$L = (a, b) => {
|
|
|
35524
35466
|
return a;
|
|
35525
35467
|
};
|
|
35526
35468
|
var __spreadProps$I = (a, b) => __defProps$I(a, __getOwnPropDescs$I(b));
|
|
35527
|
-
var __async$
|
|
35469
|
+
var __async$_ = (__this, __arguments, generator) => {
|
|
35528
35470
|
return new Promise((resolve, reject) => {
|
|
35529
35471
|
var fulfilled = (value) => {
|
|
35530
35472
|
try {
|
|
@@ -35544,13 +35486,13 @@ var __async$Z = (__this, __arguments, generator) => {
|
|
|
35544
35486
|
step((generator = generator.apply(__this, __arguments)).next());
|
|
35545
35487
|
});
|
|
35546
35488
|
};
|
|
35547
|
-
const
|
|
35489
|
+
const useDisableRefundAssist = (params) => {
|
|
35548
35490
|
const { client } = useShipEngine();
|
|
35549
35491
|
return reactQuery.useMutation(__spreadProps$I(__spreadValues$L({}, params), {
|
|
35550
|
-
mutationFn: () => __async$
|
|
35551
|
-
yield client.accountRefundAssist.
|
|
35492
|
+
mutationFn: () => __async$_(void 0, null, function* () {
|
|
35493
|
+
yield client.accountRefundAssist.disable();
|
|
35552
35494
|
}),
|
|
35553
|
-
mutationKey: ["
|
|
35495
|
+
mutationKey: ["useDisableRefundAssist"],
|
|
35554
35496
|
onError
|
|
35555
35497
|
}));
|
|
35556
35498
|
};
|
|
@@ -35574,9 +35516,59 @@ var __spreadValues$K = (a, b) => {
|
|
|
35574
35516
|
return a;
|
|
35575
35517
|
};
|
|
35576
35518
|
var __spreadProps$H = (a, b) => __defProps$H(a, __getOwnPropDescs$H(b));
|
|
35519
|
+
var __async$Z = (__this, __arguments, generator) => {
|
|
35520
|
+
return new Promise((resolve, reject) => {
|
|
35521
|
+
var fulfilled = (value) => {
|
|
35522
|
+
try {
|
|
35523
|
+
step(generator.next(value));
|
|
35524
|
+
} catch (e) {
|
|
35525
|
+
reject(e);
|
|
35526
|
+
}
|
|
35527
|
+
};
|
|
35528
|
+
var rejected = (value) => {
|
|
35529
|
+
try {
|
|
35530
|
+
step(generator.throw(value));
|
|
35531
|
+
} catch (e) {
|
|
35532
|
+
reject(e);
|
|
35533
|
+
}
|
|
35534
|
+
};
|
|
35535
|
+
var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
|
|
35536
|
+
step((generator = generator.apply(__this, __arguments)).next());
|
|
35537
|
+
});
|
|
35538
|
+
};
|
|
35539
|
+
const useEnableRefundAssist = (params) => {
|
|
35540
|
+
const { client } = useShipEngine();
|
|
35541
|
+
return reactQuery.useMutation(__spreadProps$H(__spreadValues$K({}, params), {
|
|
35542
|
+
mutationFn: () => __async$Z(void 0, null, function* () {
|
|
35543
|
+
yield client.accountRefundAssist.enable();
|
|
35544
|
+
}),
|
|
35545
|
+
mutationKey: ["useEnableRefundAssist"],
|
|
35546
|
+
onError
|
|
35547
|
+
}));
|
|
35548
|
+
};
|
|
35549
|
+
|
|
35550
|
+
var __defProp$J = Object.defineProperty;
|
|
35551
|
+
var __defProps$G = Object.defineProperties;
|
|
35552
|
+
var __getOwnPropDescs$G = Object.getOwnPropertyDescriptors;
|
|
35553
|
+
var __getOwnPropSymbols$S = Object.getOwnPropertySymbols;
|
|
35554
|
+
var __hasOwnProp$S = Object.prototype.hasOwnProperty;
|
|
35555
|
+
var __propIsEnum$S = Object.prototype.propertyIsEnumerable;
|
|
35556
|
+
var __defNormalProp$J = (obj, key, value) => key in obj ? __defProp$J(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
35557
|
+
var __spreadValues$J = (a, b) => {
|
|
35558
|
+
for (var prop in b || (b = {}))
|
|
35559
|
+
if (__hasOwnProp$S.call(b, prop))
|
|
35560
|
+
__defNormalProp$J(a, prop, b[prop]);
|
|
35561
|
+
if (__getOwnPropSymbols$S)
|
|
35562
|
+
for (var prop of __getOwnPropSymbols$S(b)) {
|
|
35563
|
+
if (__propIsEnum$S.call(b, prop))
|
|
35564
|
+
__defNormalProp$J(a, prop, b[prop]);
|
|
35565
|
+
}
|
|
35566
|
+
return a;
|
|
35567
|
+
};
|
|
35568
|
+
var __spreadProps$G = (a, b) => __defProps$G(a, __getOwnPropDescs$G(b));
|
|
35577
35569
|
const useGetRefundAssist = (params) => {
|
|
35578
35570
|
const { client } = useShipEngine();
|
|
35579
|
-
return reactQuery.useQuery(__spreadProps$
|
|
35571
|
+
return reactQuery.useQuery(__spreadProps$G(__spreadValues$J({}, params), {
|
|
35580
35572
|
onError,
|
|
35581
35573
|
queryFn: () => client.accountRefundAssist.get(),
|
|
35582
35574
|
queryKey: ["useGetRefundAssist"],
|
|
@@ -35648,25 +35640,25 @@ const useValidateAddresses = () => {
|
|
|
35648
35640
|
});
|
|
35649
35641
|
};
|
|
35650
35642
|
|
|
35651
|
-
var __defProp$
|
|
35652
|
-
var __defProps$
|
|
35653
|
-
var __getOwnPropDescs$
|
|
35654
|
-
var __getOwnPropSymbols$
|
|
35655
|
-
var __hasOwnProp$
|
|
35656
|
-
var __propIsEnum$
|
|
35657
|
-
var __defNormalProp$
|
|
35658
|
-
var __spreadValues$
|
|
35643
|
+
var __defProp$I = Object.defineProperty;
|
|
35644
|
+
var __defProps$F = Object.defineProperties;
|
|
35645
|
+
var __getOwnPropDescs$F = Object.getOwnPropertyDescriptors;
|
|
35646
|
+
var __getOwnPropSymbols$R = Object.getOwnPropertySymbols;
|
|
35647
|
+
var __hasOwnProp$R = Object.prototype.hasOwnProperty;
|
|
35648
|
+
var __propIsEnum$R = Object.prototype.propertyIsEnumerable;
|
|
35649
|
+
var __defNormalProp$I = (obj, key, value) => key in obj ? __defProp$I(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
35650
|
+
var __spreadValues$I = (a, b) => {
|
|
35659
35651
|
for (var prop in b || (b = {}))
|
|
35660
|
-
if (__hasOwnProp$
|
|
35661
|
-
__defNormalProp$
|
|
35662
|
-
if (__getOwnPropSymbols$
|
|
35663
|
-
for (var prop of __getOwnPropSymbols$
|
|
35664
|
-
if (__propIsEnum$
|
|
35665
|
-
__defNormalProp$
|
|
35652
|
+
if (__hasOwnProp$R.call(b, prop))
|
|
35653
|
+
__defNormalProp$I(a, prop, b[prop]);
|
|
35654
|
+
if (__getOwnPropSymbols$R)
|
|
35655
|
+
for (var prop of __getOwnPropSymbols$R(b)) {
|
|
35656
|
+
if (__propIsEnum$R.call(b, prop))
|
|
35657
|
+
__defNormalProp$I(a, prop, b[prop]);
|
|
35666
35658
|
}
|
|
35667
35659
|
return a;
|
|
35668
35660
|
};
|
|
35669
|
-
var __spreadProps$
|
|
35661
|
+
var __spreadProps$F = (a, b) => __defProps$F(a, __getOwnPropDescs$F(b));
|
|
35670
35662
|
var __async$W = (__this, __arguments, generator) => {
|
|
35671
35663
|
return new Promise((resolve, reject) => {
|
|
35672
35664
|
var fulfilled = (value) => {
|
|
@@ -35689,7 +35681,7 @@ var __async$W = (__this, __arguments, generator) => {
|
|
|
35689
35681
|
};
|
|
35690
35682
|
const useCreateAuctanePaySession = (params) => {
|
|
35691
35683
|
const { client } = useShipEngine();
|
|
35692
|
-
return reactQuery.useMutation(__spreadProps$
|
|
35684
|
+
return reactQuery.useMutation(__spreadProps$F(__spreadValues$I({}, params), {
|
|
35693
35685
|
mutationFn: (request) => __async$W(void 0, null, function* () {
|
|
35694
35686
|
const result = yield client.auctanePay.createSession(request);
|
|
35695
35687
|
return result.data;
|
|
@@ -35699,36 +35691,6 @@ const useCreateAuctanePaySession = (params) => {
|
|
|
35699
35691
|
}));
|
|
35700
35692
|
};
|
|
35701
35693
|
|
|
35702
|
-
var __defProp$I = Object.defineProperty;
|
|
35703
|
-
var __defProps$F = Object.defineProperties;
|
|
35704
|
-
var __getOwnPropDescs$F = Object.getOwnPropertyDescriptors;
|
|
35705
|
-
var __getOwnPropSymbols$R = Object.getOwnPropertySymbols;
|
|
35706
|
-
var __hasOwnProp$R = Object.prototype.hasOwnProperty;
|
|
35707
|
-
var __propIsEnum$R = Object.prototype.propertyIsEnumerable;
|
|
35708
|
-
var __defNormalProp$I = (obj, key, value) => key in obj ? __defProp$I(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
35709
|
-
var __spreadValues$I = (a, b) => {
|
|
35710
|
-
for (var prop in b || (b = {}))
|
|
35711
|
-
if (__hasOwnProp$R.call(b, prop))
|
|
35712
|
-
__defNormalProp$I(a, prop, b[prop]);
|
|
35713
|
-
if (__getOwnPropSymbols$R)
|
|
35714
|
-
for (var prop of __getOwnPropSymbols$R(b)) {
|
|
35715
|
-
if (__propIsEnum$R.call(b, prop))
|
|
35716
|
-
__defNormalProp$I(a, prop, b[prop]);
|
|
35717
|
-
}
|
|
35718
|
-
return a;
|
|
35719
|
-
};
|
|
35720
|
-
var __spreadProps$F = (a, b) => __defProps$F(a, __getOwnPropDescs$F(b));
|
|
35721
|
-
const useGetAuctanePayConfig = (params) => {
|
|
35722
|
-
const { client } = useShipEngine();
|
|
35723
|
-
const queryParams = __spreadValues$I({}, params);
|
|
35724
|
-
return reactQuery.useQuery(__spreadProps$F(__spreadValues$I({}, queryParams), {
|
|
35725
|
-
onError,
|
|
35726
|
-
queryFn: () => client.auctanePay.getConfig(),
|
|
35727
|
-
queryKey: ["useGetAuctanePayConfig"],
|
|
35728
|
-
select: (result) => result.data
|
|
35729
|
-
}));
|
|
35730
|
-
};
|
|
35731
|
-
|
|
35732
35694
|
var __defProp$H = Object.defineProperty;
|
|
35733
35695
|
var __defProps$E = Object.defineProperties;
|
|
35734
35696
|
var __getOwnPropDescs$E = Object.getOwnPropertyDescriptors;
|
|
@@ -35748,6 +35710,36 @@ var __spreadValues$H = (a, b) => {
|
|
|
35748
35710
|
return a;
|
|
35749
35711
|
};
|
|
35750
35712
|
var __spreadProps$E = (a, b) => __defProps$E(a, __getOwnPropDescs$E(b));
|
|
35713
|
+
const useGetAuctanePayConfig = (params) => {
|
|
35714
|
+
const { client } = useShipEngine();
|
|
35715
|
+
const queryParams = __spreadValues$H({}, params);
|
|
35716
|
+
return reactQuery.useQuery(__spreadProps$E(__spreadValues$H({}, queryParams), {
|
|
35717
|
+
onError,
|
|
35718
|
+
queryFn: () => client.auctanePay.getConfig(),
|
|
35719
|
+
queryKey: ["useGetAuctanePayConfig"],
|
|
35720
|
+
select: (result) => result.data
|
|
35721
|
+
}));
|
|
35722
|
+
};
|
|
35723
|
+
|
|
35724
|
+
var __defProp$G = Object.defineProperty;
|
|
35725
|
+
var __defProps$D = Object.defineProperties;
|
|
35726
|
+
var __getOwnPropDescs$D = Object.getOwnPropertyDescriptors;
|
|
35727
|
+
var __getOwnPropSymbols$P = Object.getOwnPropertySymbols;
|
|
35728
|
+
var __hasOwnProp$P = Object.prototype.hasOwnProperty;
|
|
35729
|
+
var __propIsEnum$P = Object.prototype.propertyIsEnumerable;
|
|
35730
|
+
var __defNormalProp$G = (obj, key, value) => key in obj ? __defProp$G(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
35731
|
+
var __spreadValues$G = (a, b) => {
|
|
35732
|
+
for (var prop in b || (b = {}))
|
|
35733
|
+
if (__hasOwnProp$P.call(b, prop))
|
|
35734
|
+
__defNormalProp$G(a, prop, b[prop]);
|
|
35735
|
+
if (__getOwnPropSymbols$P)
|
|
35736
|
+
for (var prop of __getOwnPropSymbols$P(b)) {
|
|
35737
|
+
if (__propIsEnum$P.call(b, prop))
|
|
35738
|
+
__defNormalProp$G(a, prop, b[prop]);
|
|
35739
|
+
}
|
|
35740
|
+
return a;
|
|
35741
|
+
};
|
|
35742
|
+
var __spreadProps$D = (a, b) => __defProps$D(a, __getOwnPropDescs$D(b));
|
|
35751
35743
|
var __async$V = (__this, __arguments, generator) => {
|
|
35752
35744
|
return new Promise((resolve, reject) => {
|
|
35753
35745
|
var fulfilled = (value) => {
|
|
@@ -35770,7 +35762,7 @@ var __async$V = (__this, __arguments, generator) => {
|
|
|
35770
35762
|
};
|
|
35771
35763
|
const usePreviewTransaction = (params) => {
|
|
35772
35764
|
const { client } = useShipEngine();
|
|
35773
|
-
return reactQuery.useMutation(__spreadProps$
|
|
35765
|
+
return reactQuery.useMutation(__spreadProps$D(__spreadValues$G({}, params), {
|
|
35774
35766
|
mutationFn: (_0) => __async$V(void 0, [_0], function* ({ amount, transactionCategory = "add_funds" }) {
|
|
35775
35767
|
const request = {
|
|
35776
35768
|
amount,
|
|
@@ -35784,36 +35776,6 @@ const usePreviewTransaction = (params) => {
|
|
|
35784
35776
|
}));
|
|
35785
35777
|
};
|
|
35786
35778
|
|
|
35787
|
-
var __defProp$G = Object.defineProperty;
|
|
35788
|
-
var __defProps$D = Object.defineProperties;
|
|
35789
|
-
var __getOwnPropDescs$D = Object.getOwnPropertyDescriptors;
|
|
35790
|
-
var __getOwnPropSymbols$P = Object.getOwnPropertySymbols;
|
|
35791
|
-
var __hasOwnProp$P = Object.prototype.hasOwnProperty;
|
|
35792
|
-
var __propIsEnum$P = Object.prototype.propertyIsEnumerable;
|
|
35793
|
-
var __defNormalProp$G = (obj, key, value) => key in obj ? __defProp$G(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
35794
|
-
var __spreadValues$G = (a, b) => {
|
|
35795
|
-
for (var prop in b || (b = {}))
|
|
35796
|
-
if (__hasOwnProp$P.call(b, prop))
|
|
35797
|
-
__defNormalProp$G(a, prop, b[prop]);
|
|
35798
|
-
if (__getOwnPropSymbols$P)
|
|
35799
|
-
for (var prop of __getOwnPropSymbols$P(b)) {
|
|
35800
|
-
if (__propIsEnum$P.call(b, prop))
|
|
35801
|
-
__defNormalProp$G(a, prop, b[prop]);
|
|
35802
|
-
}
|
|
35803
|
-
return a;
|
|
35804
|
-
};
|
|
35805
|
-
var __spreadProps$D = (a, b) => __defProps$D(a, __getOwnPropDescs$D(b));
|
|
35806
|
-
const useGetPaymentMethods = (params) => {
|
|
35807
|
-
const { client } = useShipEngine();
|
|
35808
|
-
const queryParams = __spreadValues$G({}, params);
|
|
35809
|
-
return reactQuery.useQuery(__spreadProps$D(__spreadValues$G({}, queryParams), {
|
|
35810
|
-
onError,
|
|
35811
|
-
queryFn: () => client.auctanePay.getPaymentMethods(),
|
|
35812
|
-
queryKey: ["useGetPaymentMethods"],
|
|
35813
|
-
select: (result) => result.data
|
|
35814
|
-
}));
|
|
35815
|
-
};
|
|
35816
|
-
|
|
35817
35779
|
var __defProp$F = Object.defineProperty;
|
|
35818
35780
|
var __defProps$C = Object.defineProperties;
|
|
35819
35781
|
var __getOwnPropDescs$C = Object.getOwnPropertyDescriptors;
|
|
@@ -35833,35 +35795,14 @@ var __spreadValues$F = (a, b) => {
|
|
|
35833
35795
|
return a;
|
|
35834
35796
|
};
|
|
35835
35797
|
var __spreadProps$C = (a, b) => __defProps$C(a, __getOwnPropDescs$C(b));
|
|
35836
|
-
|
|
35837
|
-
return new Promise((resolve, reject) => {
|
|
35838
|
-
var fulfilled = (value) => {
|
|
35839
|
-
try {
|
|
35840
|
-
step(generator.next(value));
|
|
35841
|
-
} catch (e) {
|
|
35842
|
-
reject(e);
|
|
35843
|
-
}
|
|
35844
|
-
};
|
|
35845
|
-
var rejected = (value) => {
|
|
35846
|
-
try {
|
|
35847
|
-
step(generator.throw(value));
|
|
35848
|
-
} catch (e) {
|
|
35849
|
-
reject(e);
|
|
35850
|
-
}
|
|
35851
|
-
};
|
|
35852
|
-
var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
|
|
35853
|
-
step((generator = generator.apply(__this, __arguments)).next());
|
|
35854
|
-
});
|
|
35855
|
-
};
|
|
35856
|
-
const useDeletePaymentMethod = (params) => {
|
|
35798
|
+
const useGetPaymentMethods = (params) => {
|
|
35857
35799
|
const { client } = useShipEngine();
|
|
35858
|
-
|
|
35859
|
-
|
|
35860
|
-
|
|
35861
|
-
|
|
35862
|
-
|
|
35863
|
-
|
|
35864
|
-
onError
|
|
35800
|
+
const queryParams = __spreadValues$F({}, params);
|
|
35801
|
+
return reactQuery.useQuery(__spreadProps$C(__spreadValues$F({}, queryParams), {
|
|
35802
|
+
onError,
|
|
35803
|
+
queryFn: () => client.auctanePay.getPaymentMethods(),
|
|
35804
|
+
queryKey: ["useGetPaymentMethods"],
|
|
35805
|
+
select: (result) => result.data
|
|
35865
35806
|
}));
|
|
35866
35807
|
};
|
|
35867
35808
|
|
|
@@ -35884,7 +35825,7 @@ var __spreadValues$E = (a, b) => {
|
|
|
35884
35825
|
return a;
|
|
35885
35826
|
};
|
|
35886
35827
|
var __spreadProps$B = (a, b) => __defProps$B(a, __getOwnPropDescs$B(b));
|
|
35887
|
-
var __async$
|
|
35828
|
+
var __async$U = (__this, __arguments, generator) => {
|
|
35888
35829
|
return new Promise((resolve, reject) => {
|
|
35889
35830
|
var fulfilled = (value) => {
|
|
35890
35831
|
try {
|
|
@@ -35904,14 +35845,14 @@ var __async$T = (__this, __arguments, generator) => {
|
|
|
35904
35845
|
step((generator = generator.apply(__this, __arguments)).next());
|
|
35905
35846
|
});
|
|
35906
35847
|
};
|
|
35907
|
-
const
|
|
35848
|
+
const useDeletePaymentMethod = (params) => {
|
|
35908
35849
|
const { client } = useShipEngine();
|
|
35909
35850
|
return reactQuery.useMutation(__spreadProps$B(__spreadValues$E({}, params), {
|
|
35910
|
-
mutationFn: (
|
|
35911
|
-
const result = yield client.auctanePay.
|
|
35851
|
+
mutationFn: (paymentMethodId) => __async$U(void 0, null, function* () {
|
|
35852
|
+
const result = yield client.auctanePay.deletePaymentMethod(paymentMethodId);
|
|
35912
35853
|
return result.data;
|
|
35913
35854
|
}),
|
|
35914
|
-
mutationKey: ["
|
|
35855
|
+
mutationKey: ["useDeletePaymentMethod"],
|
|
35915
35856
|
onError
|
|
35916
35857
|
}));
|
|
35917
35858
|
};
|
|
@@ -35935,7 +35876,7 @@ var __spreadValues$D = (a, b) => {
|
|
|
35935
35876
|
return a;
|
|
35936
35877
|
};
|
|
35937
35878
|
var __spreadProps$A = (a, b) => __defProps$A(a, __getOwnPropDescs$A(b));
|
|
35938
|
-
var __async$
|
|
35879
|
+
var __async$T = (__this, __arguments, generator) => {
|
|
35939
35880
|
return new Promise((resolve, reject) => {
|
|
35940
35881
|
var fulfilled = (value) => {
|
|
35941
35882
|
try {
|
|
@@ -35955,14 +35896,14 @@ var __async$S = (__this, __arguments, generator) => {
|
|
|
35955
35896
|
step((generator = generator.apply(__this, __arguments)).next());
|
|
35956
35897
|
});
|
|
35957
35898
|
};
|
|
35958
|
-
const
|
|
35899
|
+
const useUpdatePaymentMethod = (params) => {
|
|
35959
35900
|
const { client } = useShipEngine();
|
|
35960
35901
|
return reactQuery.useMutation(__spreadProps$A(__spreadValues$D({}, params), {
|
|
35961
|
-
mutationFn: () => __async$
|
|
35962
|
-
const result = yield client.auctanePay.
|
|
35902
|
+
mutationFn: (_0) => __async$T(void 0, [_0], function* ({ paymentMethodId, payload }) {
|
|
35903
|
+
const result = yield client.auctanePay.updatePaymentMethod(paymentMethodId, payload);
|
|
35963
35904
|
return result.data;
|
|
35964
35905
|
}),
|
|
35965
|
-
mutationKey: ["
|
|
35906
|
+
mutationKey: ["useUpdatePaymentMethod"],
|
|
35966
35907
|
onError
|
|
35967
35908
|
}));
|
|
35968
35909
|
};
|
|
@@ -35986,10 +35927,61 @@ var __spreadValues$C = (a, b) => {
|
|
|
35986
35927
|
return a;
|
|
35987
35928
|
};
|
|
35988
35929
|
var __spreadProps$z = (a, b) => __defProps$z(a, __getOwnPropDescs$z(b));
|
|
35930
|
+
var __async$S = (__this, __arguments, generator) => {
|
|
35931
|
+
return new Promise((resolve, reject) => {
|
|
35932
|
+
var fulfilled = (value) => {
|
|
35933
|
+
try {
|
|
35934
|
+
step(generator.next(value));
|
|
35935
|
+
} catch (e) {
|
|
35936
|
+
reject(e);
|
|
35937
|
+
}
|
|
35938
|
+
};
|
|
35939
|
+
var rejected = (value) => {
|
|
35940
|
+
try {
|
|
35941
|
+
step(generator.throw(value));
|
|
35942
|
+
} catch (e) {
|
|
35943
|
+
reject(e);
|
|
35944
|
+
}
|
|
35945
|
+
};
|
|
35946
|
+
var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
|
|
35947
|
+
step((generator = generator.apply(__this, __arguments)).next());
|
|
35948
|
+
});
|
|
35949
|
+
};
|
|
35950
|
+
const useIdentityVerification = (params) => {
|
|
35951
|
+
const { client } = useShipEngine();
|
|
35952
|
+
return reactQuery.useMutation(__spreadProps$z(__spreadValues$C({}, params), {
|
|
35953
|
+
mutationFn: () => __async$S(void 0, null, function* () {
|
|
35954
|
+
const result = yield client.auctanePay.identityVerification();
|
|
35955
|
+
return result.data;
|
|
35956
|
+
}),
|
|
35957
|
+
mutationKey: ["useIdentityVerification"],
|
|
35958
|
+
onError
|
|
35959
|
+
}));
|
|
35960
|
+
};
|
|
35961
|
+
|
|
35962
|
+
var __defProp$B = Object.defineProperty;
|
|
35963
|
+
var __defProps$y = Object.defineProperties;
|
|
35964
|
+
var __getOwnPropDescs$y = Object.getOwnPropertyDescriptors;
|
|
35965
|
+
var __getOwnPropSymbols$K = Object.getOwnPropertySymbols;
|
|
35966
|
+
var __hasOwnProp$K = Object.prototype.hasOwnProperty;
|
|
35967
|
+
var __propIsEnum$K = Object.prototype.propertyIsEnumerable;
|
|
35968
|
+
var __defNormalProp$B = (obj, key, value) => key in obj ? __defProp$B(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
35969
|
+
var __spreadValues$B = (a, b) => {
|
|
35970
|
+
for (var prop in b || (b = {}))
|
|
35971
|
+
if (__hasOwnProp$K.call(b, prop))
|
|
35972
|
+
__defNormalProp$B(a, prop, b[prop]);
|
|
35973
|
+
if (__getOwnPropSymbols$K)
|
|
35974
|
+
for (var prop of __getOwnPropSymbols$K(b)) {
|
|
35975
|
+
if (__propIsEnum$K.call(b, prop))
|
|
35976
|
+
__defNormalProp$B(a, prop, b[prop]);
|
|
35977
|
+
}
|
|
35978
|
+
return a;
|
|
35979
|
+
};
|
|
35980
|
+
var __spreadProps$y = (a, b) => __defProps$y(a, __getOwnPropDescs$y(b));
|
|
35989
35981
|
const useGetPaymentAccount = (params) => {
|
|
35990
35982
|
const { client } = useShipEngine();
|
|
35991
|
-
const queryParams = __spreadValues$
|
|
35992
|
-
return reactQuery.useQuery(__spreadProps$
|
|
35983
|
+
const queryParams = __spreadValues$B({}, params);
|
|
35984
|
+
return reactQuery.useQuery(__spreadProps$y(__spreadValues$B({}, queryParams), {
|
|
35993
35985
|
onError,
|
|
35994
35986
|
queryFn: () => client.auctanePay.getPaymentAccount(),
|
|
35995
35987
|
queryKey: ["useGetPaymentAccount"],
|
|
@@ -36193,41 +36185,41 @@ const useGetServicesByCarrier = (carrierId) => {
|
|
|
36193
36185
|
});
|
|
36194
36186
|
};
|
|
36195
36187
|
|
|
36196
|
-
var __defProp$
|
|
36197
|
-
var __defProps$
|
|
36198
|
-
var __getOwnPropDescs$
|
|
36199
|
-
var __getOwnPropSymbols$
|
|
36200
|
-
var __hasOwnProp$
|
|
36201
|
-
var __propIsEnum$
|
|
36202
|
-
var __defNormalProp$
|
|
36203
|
-
var __spreadValues$
|
|
36188
|
+
var __defProp$A = Object.defineProperty;
|
|
36189
|
+
var __defProps$x = Object.defineProperties;
|
|
36190
|
+
var __getOwnPropDescs$x = Object.getOwnPropertyDescriptors;
|
|
36191
|
+
var __getOwnPropSymbols$J = Object.getOwnPropertySymbols;
|
|
36192
|
+
var __hasOwnProp$J = Object.prototype.hasOwnProperty;
|
|
36193
|
+
var __propIsEnum$J = Object.prototype.propertyIsEnumerable;
|
|
36194
|
+
var __defNormalProp$A = (obj, key, value) => key in obj ? __defProp$A(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
36195
|
+
var __spreadValues$A = (a, b) => {
|
|
36204
36196
|
for (var prop in b || (b = {}))
|
|
36205
|
-
if (__hasOwnProp$
|
|
36206
|
-
__defNormalProp$
|
|
36207
|
-
if (__getOwnPropSymbols$
|
|
36208
|
-
for (var prop of __getOwnPropSymbols$
|
|
36209
|
-
if (__propIsEnum$
|
|
36210
|
-
__defNormalProp$
|
|
36197
|
+
if (__hasOwnProp$J.call(b, prop))
|
|
36198
|
+
__defNormalProp$A(a, prop, b[prop]);
|
|
36199
|
+
if (__getOwnPropSymbols$J)
|
|
36200
|
+
for (var prop of __getOwnPropSymbols$J(b)) {
|
|
36201
|
+
if (__propIsEnum$J.call(b, prop))
|
|
36202
|
+
__defNormalProp$A(a, prop, b[prop]);
|
|
36211
36203
|
}
|
|
36212
36204
|
return a;
|
|
36213
36205
|
};
|
|
36214
|
-
var __spreadProps$
|
|
36206
|
+
var __spreadProps$x = (a, b) => __defProps$x(a, __getOwnPropDescs$x(b));
|
|
36215
36207
|
var __objRest$r = (source, exclude) => {
|
|
36216
36208
|
var target = {};
|
|
36217
36209
|
for (var prop in source)
|
|
36218
|
-
if (__hasOwnProp$
|
|
36210
|
+
if (__hasOwnProp$J.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
36219
36211
|
target[prop] = source[prop];
|
|
36220
|
-
if (source != null && __getOwnPropSymbols$
|
|
36221
|
-
for (var prop of __getOwnPropSymbols$
|
|
36222
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
36212
|
+
if (source != null && __getOwnPropSymbols$J)
|
|
36213
|
+
for (var prop of __getOwnPropSymbols$J(source)) {
|
|
36214
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$J.call(source, prop))
|
|
36223
36215
|
target[prop] = source[prop];
|
|
36224
36216
|
}
|
|
36225
36217
|
return target;
|
|
36226
36218
|
};
|
|
36227
36219
|
const useListCarriers = (params) => {
|
|
36228
36220
|
const { client } = useShipEngine();
|
|
36229
|
-
const _a = __spreadValues$
|
|
36230
|
-
return reactQuery.useQuery(__spreadProps$
|
|
36221
|
+
const _a = __spreadValues$A({}, params), { queryFnParams } = _a, rest = __objRest$r(_a, ["queryFnParams"]);
|
|
36222
|
+
return reactQuery.useQuery(__spreadProps$x(__spreadValues$A({}, rest), {
|
|
36231
36223
|
onError,
|
|
36232
36224
|
queryFn: () => client.carriers.list(queryFnParams),
|
|
36233
36225
|
queryKey: ["useListCarriers", queryFnParams],
|
|
@@ -36235,17 +36227,17 @@ const useListCarriers = (params) => {
|
|
|
36235
36227
|
}));
|
|
36236
36228
|
};
|
|
36237
36229
|
|
|
36238
|
-
var __getOwnPropSymbols$
|
|
36239
|
-
var __hasOwnProp$
|
|
36240
|
-
var __propIsEnum$
|
|
36230
|
+
var __getOwnPropSymbols$I = Object.getOwnPropertySymbols;
|
|
36231
|
+
var __hasOwnProp$I = Object.prototype.hasOwnProperty;
|
|
36232
|
+
var __propIsEnum$I = Object.prototype.propertyIsEnumerable;
|
|
36241
36233
|
var __objRest$q = (source, exclude) => {
|
|
36242
36234
|
var target = {};
|
|
36243
36235
|
for (var prop in source)
|
|
36244
|
-
if (__hasOwnProp$
|
|
36236
|
+
if (__hasOwnProp$I.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
36245
36237
|
target[prop] = source[prop];
|
|
36246
|
-
if (source != null && __getOwnPropSymbols$
|
|
36247
|
-
for (var prop of __getOwnPropSymbols$
|
|
36248
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
36238
|
+
if (source != null && __getOwnPropSymbols$I)
|
|
36239
|
+
for (var prop of __getOwnPropSymbols$I(source)) {
|
|
36240
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$I.call(source, prop))
|
|
36249
36241
|
target[prop] = source[prop];
|
|
36250
36242
|
}
|
|
36251
36243
|
return target;
|
|
@@ -36336,17 +36328,17 @@ const useDeleteCarrier = () => {
|
|
|
36336
36328
|
});
|
|
36337
36329
|
};
|
|
36338
36330
|
|
|
36339
|
-
var __getOwnPropSymbols$
|
|
36340
|
-
var __hasOwnProp$
|
|
36341
|
-
var __propIsEnum$
|
|
36331
|
+
var __getOwnPropSymbols$H = Object.getOwnPropertySymbols;
|
|
36332
|
+
var __hasOwnProp$H = Object.prototype.hasOwnProperty;
|
|
36333
|
+
var __propIsEnum$H = Object.prototype.propertyIsEnumerable;
|
|
36342
36334
|
var __objRest$p = (source, exclude) => {
|
|
36343
36335
|
var target = {};
|
|
36344
36336
|
for (var prop in source)
|
|
36345
|
-
if (__hasOwnProp$
|
|
36337
|
+
if (__hasOwnProp$H.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
36346
36338
|
target[prop] = source[prop];
|
|
36347
|
-
if (source != null && __getOwnPropSymbols$
|
|
36348
|
-
for (var prop of __getOwnPropSymbols$
|
|
36349
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
36339
|
+
if (source != null && __getOwnPropSymbols$H)
|
|
36340
|
+
for (var prop of __getOwnPropSymbols$H(source)) {
|
|
36341
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$H.call(source, prop))
|
|
36350
36342
|
target[prop] = source[prop];
|
|
36351
36343
|
}
|
|
36352
36344
|
return target;
|
|
@@ -36363,17 +36355,17 @@ const useGetCarrierConnectionForm = (_params) => {
|
|
|
36363
36355
|
});
|
|
36364
36356
|
};
|
|
36365
36357
|
|
|
36366
|
-
var __getOwnPropSymbols$
|
|
36367
|
-
var __hasOwnProp$
|
|
36368
|
-
var __propIsEnum$
|
|
36358
|
+
var __getOwnPropSymbols$G = Object.getOwnPropertySymbols;
|
|
36359
|
+
var __hasOwnProp$G = Object.prototype.hasOwnProperty;
|
|
36360
|
+
var __propIsEnum$G = Object.prototype.propertyIsEnumerable;
|
|
36369
36361
|
var __objRest$o = (source, exclude) => {
|
|
36370
36362
|
var target = {};
|
|
36371
36363
|
for (var prop in source)
|
|
36372
|
-
if (__hasOwnProp$
|
|
36364
|
+
if (__hasOwnProp$G.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
36373
36365
|
target[prop] = source[prop];
|
|
36374
|
-
if (source != null && __getOwnPropSymbols$
|
|
36375
|
-
for (var prop of __getOwnPropSymbols$
|
|
36376
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
36366
|
+
if (source != null && __getOwnPropSymbols$G)
|
|
36367
|
+
for (var prop of __getOwnPropSymbols$G(source)) {
|
|
36368
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$G.call(source, prop))
|
|
36377
36369
|
target[prop] = source[prop];
|
|
36378
36370
|
}
|
|
36379
36371
|
return target;
|
|
@@ -36390,25 +36382,25 @@ const useListCarrierConnections = (_params) => {
|
|
|
36390
36382
|
});
|
|
36391
36383
|
};
|
|
36392
36384
|
|
|
36393
|
-
var __defProp$
|
|
36394
|
-
var __defProps$
|
|
36395
|
-
var __getOwnPropDescs$
|
|
36396
|
-
var __getOwnPropSymbols$
|
|
36397
|
-
var __hasOwnProp$
|
|
36398
|
-
var __propIsEnum$
|
|
36399
|
-
var __defNormalProp$
|
|
36400
|
-
var __spreadValues$
|
|
36385
|
+
var __defProp$z = Object.defineProperty;
|
|
36386
|
+
var __defProps$w = Object.defineProperties;
|
|
36387
|
+
var __getOwnPropDescs$w = Object.getOwnPropertyDescriptors;
|
|
36388
|
+
var __getOwnPropSymbols$F = Object.getOwnPropertySymbols;
|
|
36389
|
+
var __hasOwnProp$F = Object.prototype.hasOwnProperty;
|
|
36390
|
+
var __propIsEnum$F = Object.prototype.propertyIsEnumerable;
|
|
36391
|
+
var __defNormalProp$z = (obj, key, value) => key in obj ? __defProp$z(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
36392
|
+
var __spreadValues$z = (a, b) => {
|
|
36401
36393
|
for (var prop in b || (b = {}))
|
|
36402
|
-
if (__hasOwnProp$
|
|
36403
|
-
__defNormalProp$
|
|
36404
|
-
if (__getOwnPropSymbols$
|
|
36405
|
-
for (var prop of __getOwnPropSymbols$
|
|
36406
|
-
if (__propIsEnum$
|
|
36407
|
-
__defNormalProp$
|
|
36394
|
+
if (__hasOwnProp$F.call(b, prop))
|
|
36395
|
+
__defNormalProp$z(a, prop, b[prop]);
|
|
36396
|
+
if (__getOwnPropSymbols$F)
|
|
36397
|
+
for (var prop of __getOwnPropSymbols$F(b)) {
|
|
36398
|
+
if (__propIsEnum$F.call(b, prop))
|
|
36399
|
+
__defNormalProp$z(a, prop, b[prop]);
|
|
36408
36400
|
}
|
|
36409
36401
|
return a;
|
|
36410
36402
|
};
|
|
36411
|
-
var __spreadProps$
|
|
36403
|
+
var __spreadProps$w = (a, b) => __defProps$w(a, __getOwnPropDescs$w(b));
|
|
36412
36404
|
var __async$M = (__this, __arguments, generator) => {
|
|
36413
36405
|
return new Promise((resolve, reject) => {
|
|
36414
36406
|
var fulfilled = (value) => {
|
|
@@ -36433,7 +36425,7 @@ const useConnectCarrierAccount = () => {
|
|
|
36433
36425
|
const { client } = useShipEngine();
|
|
36434
36426
|
return reactQuery.useMutation({
|
|
36435
36427
|
mutationFn: (_0) => __async$M(void 0, [_0], function* ({ carrierName, formData }) {
|
|
36436
|
-
const formDataWithFlag = __spreadProps$
|
|
36428
|
+
const formDataWithFlag = __spreadProps$w(__spreadValues$z({}, formData), { __skipDecamelize: true });
|
|
36437
36429
|
const result = yield client.connections.connectCarrier(carrierName, formDataWithFlag);
|
|
36438
36430
|
return result.data;
|
|
36439
36431
|
}),
|
|
@@ -36453,33 +36445,33 @@ const useCarrierConnectionsServicesList = (carrierCode) => {
|
|
|
36453
36445
|
});
|
|
36454
36446
|
};
|
|
36455
36447
|
|
|
36456
|
-
var __defProp$
|
|
36457
|
-
var __defProps$
|
|
36458
|
-
var __getOwnPropDescs$
|
|
36459
|
-
var __getOwnPropSymbols$
|
|
36460
|
-
var __hasOwnProp$
|
|
36461
|
-
var __propIsEnum$
|
|
36462
|
-
var __defNormalProp$
|
|
36463
|
-
var __spreadValues$
|
|
36448
|
+
var __defProp$y = Object.defineProperty;
|
|
36449
|
+
var __defProps$v = Object.defineProperties;
|
|
36450
|
+
var __getOwnPropDescs$v = Object.getOwnPropertyDescriptors;
|
|
36451
|
+
var __getOwnPropSymbols$E = Object.getOwnPropertySymbols;
|
|
36452
|
+
var __hasOwnProp$E = Object.prototype.hasOwnProperty;
|
|
36453
|
+
var __propIsEnum$E = Object.prototype.propertyIsEnumerable;
|
|
36454
|
+
var __defNormalProp$y = (obj, key, value) => key in obj ? __defProp$y(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
36455
|
+
var __spreadValues$y = (a, b) => {
|
|
36464
36456
|
for (var prop in b || (b = {}))
|
|
36465
|
-
if (__hasOwnProp$
|
|
36466
|
-
__defNormalProp$
|
|
36467
|
-
if (__getOwnPropSymbols$
|
|
36468
|
-
for (var prop of __getOwnPropSymbols$
|
|
36469
|
-
if (__propIsEnum$
|
|
36470
|
-
__defNormalProp$
|
|
36457
|
+
if (__hasOwnProp$E.call(b, prop))
|
|
36458
|
+
__defNormalProp$y(a, prop, b[prop]);
|
|
36459
|
+
if (__getOwnPropSymbols$E)
|
|
36460
|
+
for (var prop of __getOwnPropSymbols$E(b)) {
|
|
36461
|
+
if (__propIsEnum$E.call(b, prop))
|
|
36462
|
+
__defNormalProp$y(a, prop, b[prop]);
|
|
36471
36463
|
}
|
|
36472
36464
|
return a;
|
|
36473
36465
|
};
|
|
36474
|
-
var __spreadProps$
|
|
36466
|
+
var __spreadProps$v = (a, b) => __defProps$v(a, __getOwnPropDescs$v(b));
|
|
36475
36467
|
var __objRest$n = (source, exclude) => {
|
|
36476
36468
|
var target = {};
|
|
36477
36469
|
for (var prop in source)
|
|
36478
|
-
if (__hasOwnProp$
|
|
36470
|
+
if (__hasOwnProp$E.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
36479
36471
|
target[prop] = source[prop];
|
|
36480
|
-
if (source != null && __getOwnPropSymbols$
|
|
36481
|
-
for (var prop of __getOwnPropSymbols$
|
|
36482
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
36472
|
+
if (source != null && __getOwnPropSymbols$E)
|
|
36473
|
+
for (var prop of __getOwnPropSymbols$E(source)) {
|
|
36474
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$E.call(source, prop))
|
|
36483
36475
|
target[prop] = source[prop];
|
|
36484
36476
|
}
|
|
36485
36477
|
return target;
|
|
@@ -36492,7 +36484,7 @@ const useGetConnectionsCarrierSettings = (_a) => {
|
|
|
36492
36484
|
]);
|
|
36493
36485
|
const { client } = useShipEngine();
|
|
36494
36486
|
const { carrierName, carrierId } = queryFnParams;
|
|
36495
|
-
return reactQuery.useQuery(__spreadProps$
|
|
36487
|
+
return reactQuery.useQuery(__spreadProps$v(__spreadValues$y({}, params), {
|
|
36496
36488
|
onError,
|
|
36497
36489
|
queryFn: () => client.connections.getCarrierSettings(carrierName, carrierId),
|
|
36498
36490
|
queryKey: ["useGetConnectionsCarrierSettings", carrierName, carrierId],
|
|
@@ -36500,25 +36492,25 @@ const useGetConnectionsCarrierSettings = (_a) => {
|
|
|
36500
36492
|
}));
|
|
36501
36493
|
};
|
|
36502
36494
|
|
|
36503
|
-
var __defProp$
|
|
36504
|
-
var __defProps$
|
|
36505
|
-
var __getOwnPropDescs$
|
|
36506
|
-
var __getOwnPropSymbols$
|
|
36507
|
-
var __hasOwnProp$
|
|
36508
|
-
var __propIsEnum$
|
|
36509
|
-
var __defNormalProp$
|
|
36510
|
-
var __spreadValues$
|
|
36495
|
+
var __defProp$x = Object.defineProperty;
|
|
36496
|
+
var __defProps$u = Object.defineProperties;
|
|
36497
|
+
var __getOwnPropDescs$u = Object.getOwnPropertyDescriptors;
|
|
36498
|
+
var __getOwnPropSymbols$D = Object.getOwnPropertySymbols;
|
|
36499
|
+
var __hasOwnProp$D = Object.prototype.hasOwnProperty;
|
|
36500
|
+
var __propIsEnum$D = Object.prototype.propertyIsEnumerable;
|
|
36501
|
+
var __defNormalProp$x = (obj, key, value) => key in obj ? __defProp$x(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
36502
|
+
var __spreadValues$x = (a, b) => {
|
|
36511
36503
|
for (var prop in b || (b = {}))
|
|
36512
|
-
if (__hasOwnProp$
|
|
36513
|
-
__defNormalProp$
|
|
36514
|
-
if (__getOwnPropSymbols$
|
|
36515
|
-
for (var prop of __getOwnPropSymbols$
|
|
36516
|
-
if (__propIsEnum$
|
|
36517
|
-
__defNormalProp$
|
|
36504
|
+
if (__hasOwnProp$D.call(b, prop))
|
|
36505
|
+
__defNormalProp$x(a, prop, b[prop]);
|
|
36506
|
+
if (__getOwnPropSymbols$D)
|
|
36507
|
+
for (var prop of __getOwnPropSymbols$D(b)) {
|
|
36508
|
+
if (__propIsEnum$D.call(b, prop))
|
|
36509
|
+
__defNormalProp$x(a, prop, b[prop]);
|
|
36518
36510
|
}
|
|
36519
36511
|
return a;
|
|
36520
36512
|
};
|
|
36521
|
-
var __spreadProps$
|
|
36513
|
+
var __spreadProps$u = (a, b) => __defProps$u(a, __getOwnPropDescs$u(b));
|
|
36522
36514
|
var __async$L = (__this, __arguments, generator) => {
|
|
36523
36515
|
return new Promise((resolve, reject) => {
|
|
36524
36516
|
var fulfilled = (value) => {
|
|
@@ -36541,7 +36533,7 @@ var __async$L = (__this, __arguments, generator) => {
|
|
|
36541
36533
|
};
|
|
36542
36534
|
const useUpdateConnectionsCarrierSettings = (params) => {
|
|
36543
36535
|
const { client } = useShipEngine();
|
|
36544
|
-
return reactQuery.useMutation(__spreadProps$
|
|
36536
|
+
return reactQuery.useMutation(__spreadProps$u(__spreadValues$x({}, params), {
|
|
36545
36537
|
mutationFn: (_0) => __async$L(void 0, [_0], function* ({
|
|
36546
36538
|
carrierName,
|
|
36547
36539
|
carrierId,
|
|
@@ -36559,25 +36551,25 @@ const useUpdateConnectionsCarrierSettings = (params) => {
|
|
|
36559
36551
|
}));
|
|
36560
36552
|
};
|
|
36561
36553
|
|
|
36562
|
-
var __defProp$
|
|
36563
|
-
var __defProps$
|
|
36564
|
-
var __getOwnPropDescs$
|
|
36565
|
-
var __getOwnPropSymbols$
|
|
36566
|
-
var __hasOwnProp$
|
|
36567
|
-
var __propIsEnum$
|
|
36568
|
-
var __defNormalProp$
|
|
36569
|
-
var __spreadValues$
|
|
36554
|
+
var __defProp$w = Object.defineProperty;
|
|
36555
|
+
var __defProps$t = Object.defineProperties;
|
|
36556
|
+
var __getOwnPropDescs$t = Object.getOwnPropertyDescriptors;
|
|
36557
|
+
var __getOwnPropSymbols$C = Object.getOwnPropertySymbols;
|
|
36558
|
+
var __hasOwnProp$C = Object.prototype.hasOwnProperty;
|
|
36559
|
+
var __propIsEnum$C = Object.prototype.propertyIsEnumerable;
|
|
36560
|
+
var __defNormalProp$w = (obj, key, value) => key in obj ? __defProp$w(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
36561
|
+
var __spreadValues$w = (a, b) => {
|
|
36570
36562
|
for (var prop in b || (b = {}))
|
|
36571
|
-
if (__hasOwnProp$
|
|
36572
|
-
__defNormalProp$
|
|
36573
|
-
if (__getOwnPropSymbols$
|
|
36574
|
-
for (var prop of __getOwnPropSymbols$
|
|
36575
|
-
if (__propIsEnum$
|
|
36576
|
-
__defNormalProp$
|
|
36563
|
+
if (__hasOwnProp$C.call(b, prop))
|
|
36564
|
+
__defNormalProp$w(a, prop, b[prop]);
|
|
36565
|
+
if (__getOwnPropSymbols$C)
|
|
36566
|
+
for (var prop of __getOwnPropSymbols$C(b)) {
|
|
36567
|
+
if (__propIsEnum$C.call(b, prop))
|
|
36568
|
+
__defNormalProp$w(a, prop, b[prop]);
|
|
36577
36569
|
}
|
|
36578
36570
|
return a;
|
|
36579
36571
|
};
|
|
36580
|
-
var __spreadProps$
|
|
36572
|
+
var __spreadProps$t = (a, b) => __defProps$t(a, __getOwnPropDescs$t(b));
|
|
36581
36573
|
var __async$K = (__this, __arguments, generator) => {
|
|
36582
36574
|
return new Promise((resolve, reject) => {
|
|
36583
36575
|
var fulfilled = (value) => {
|
|
@@ -36600,7 +36592,7 @@ var __async$K = (__this, __arguments, generator) => {
|
|
|
36600
36592
|
};
|
|
36601
36593
|
const useRequestStampsAccountUrls = (params) => {
|
|
36602
36594
|
const { client } = useShipEngine();
|
|
36603
|
-
return reactQuery.useMutation(__spreadProps$
|
|
36595
|
+
return reactQuery.useMutation(__spreadProps$t(__spreadValues$w({}, params), {
|
|
36604
36596
|
mutationFn: (request) => __async$K(void 0, null, function* () {
|
|
36605
36597
|
const result = yield client.connections.requestStampsAccountUrls(request);
|
|
36606
36598
|
return result.data;
|
|
@@ -36716,29 +36708,29 @@ const useFundingSourcesAddFunds = () => {
|
|
|
36716
36708
|
});
|
|
36717
36709
|
};
|
|
36718
36710
|
|
|
36719
|
-
var __defProp$
|
|
36720
|
-
var __defProps$
|
|
36721
|
-
var __getOwnPropDescs$
|
|
36722
|
-
var __getOwnPropSymbols$
|
|
36723
|
-
var __hasOwnProp$
|
|
36724
|
-
var __propIsEnum$
|
|
36725
|
-
var __defNormalProp$
|
|
36726
|
-
var __spreadValues$
|
|
36711
|
+
var __defProp$v = Object.defineProperty;
|
|
36712
|
+
var __defProps$s = Object.defineProperties;
|
|
36713
|
+
var __getOwnPropDescs$s = Object.getOwnPropertyDescriptors;
|
|
36714
|
+
var __getOwnPropSymbols$B = Object.getOwnPropertySymbols;
|
|
36715
|
+
var __hasOwnProp$B = Object.prototype.hasOwnProperty;
|
|
36716
|
+
var __propIsEnum$B = Object.prototype.propertyIsEnumerable;
|
|
36717
|
+
var __defNormalProp$v = (obj, key, value) => key in obj ? __defProp$v(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
36718
|
+
var __spreadValues$v = (a, b) => {
|
|
36727
36719
|
for (var prop in b || (b = {}))
|
|
36728
|
-
if (__hasOwnProp$
|
|
36729
|
-
__defNormalProp$
|
|
36730
|
-
if (__getOwnPropSymbols$
|
|
36731
|
-
for (var prop of __getOwnPropSymbols$
|
|
36732
|
-
if (__propIsEnum$
|
|
36733
|
-
__defNormalProp$
|
|
36720
|
+
if (__hasOwnProp$B.call(b, prop))
|
|
36721
|
+
__defNormalProp$v(a, prop, b[prop]);
|
|
36722
|
+
if (__getOwnPropSymbols$B)
|
|
36723
|
+
for (var prop of __getOwnPropSymbols$B(b)) {
|
|
36724
|
+
if (__propIsEnum$B.call(b, prop))
|
|
36725
|
+
__defNormalProp$v(a, prop, b[prop]);
|
|
36734
36726
|
}
|
|
36735
36727
|
return a;
|
|
36736
36728
|
};
|
|
36737
|
-
var __spreadProps$
|
|
36729
|
+
var __spreadProps$s = (a, b) => __defProps$s(a, __getOwnPropDescs$s(b));
|
|
36738
36730
|
const useGetFundingSourceAcceptedTerms = (fundingSourceId, params) => {
|
|
36739
36731
|
const { client } = useShipEngine();
|
|
36740
|
-
const queryParams = __spreadValues$
|
|
36741
|
-
return reactQuery.useQuery(__spreadProps$
|
|
36732
|
+
const queryParams = __spreadValues$v({}, params);
|
|
36733
|
+
return reactQuery.useQuery(__spreadProps$s(__spreadValues$v({}, queryParams), {
|
|
36742
36734
|
onError,
|
|
36743
36735
|
queryFn: () => client.fundingSources.acceptedTerms(fundingSourceId),
|
|
36744
36736
|
queryKey: ["useGetFundingSourceAcceptedTerms", fundingSourceId],
|
|
@@ -36862,29 +36854,29 @@ const useGetFundingSourceTransactions = (fundingSourceId, params) => {
|
|
|
36862
36854
|
});
|
|
36863
36855
|
};
|
|
36864
36856
|
|
|
36865
|
-
var __defProp$
|
|
36866
|
-
var __defProps$
|
|
36867
|
-
var __getOwnPropDescs$
|
|
36868
|
-
var __getOwnPropSymbols$
|
|
36869
|
-
var __hasOwnProp$
|
|
36870
|
-
var __propIsEnum$
|
|
36871
|
-
var __defNormalProp$
|
|
36872
|
-
var __spreadValues$
|
|
36857
|
+
var __defProp$u = Object.defineProperty;
|
|
36858
|
+
var __defProps$r = Object.defineProperties;
|
|
36859
|
+
var __getOwnPropDescs$r = Object.getOwnPropertyDescriptors;
|
|
36860
|
+
var __getOwnPropSymbols$A = Object.getOwnPropertySymbols;
|
|
36861
|
+
var __hasOwnProp$A = Object.prototype.hasOwnProperty;
|
|
36862
|
+
var __propIsEnum$A = Object.prototype.propertyIsEnumerable;
|
|
36863
|
+
var __defNormalProp$u = (obj, key, value) => key in obj ? __defProp$u(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
36864
|
+
var __spreadValues$u = (a, b) => {
|
|
36873
36865
|
for (var prop in b || (b = {}))
|
|
36874
|
-
if (__hasOwnProp$
|
|
36875
|
-
__defNormalProp$
|
|
36876
|
-
if (__getOwnPropSymbols$
|
|
36877
|
-
for (var prop of __getOwnPropSymbols$
|
|
36878
|
-
if (__propIsEnum$
|
|
36879
|
-
__defNormalProp$
|
|
36866
|
+
if (__hasOwnProp$A.call(b, prop))
|
|
36867
|
+
__defNormalProp$u(a, prop, b[prop]);
|
|
36868
|
+
if (__getOwnPropSymbols$A)
|
|
36869
|
+
for (var prop of __getOwnPropSymbols$A(b)) {
|
|
36870
|
+
if (__propIsEnum$A.call(b, prop))
|
|
36871
|
+
__defNormalProp$u(a, prop, b[prop]);
|
|
36880
36872
|
}
|
|
36881
36873
|
return a;
|
|
36882
36874
|
};
|
|
36883
|
-
var __spreadProps$
|
|
36875
|
+
var __spreadProps$r = (a, b) => __defProps$r(a, __getOwnPropDescs$r(b));
|
|
36884
36876
|
const useGetInsuranceFundingSourceAcceptedTerms = (params) => {
|
|
36885
36877
|
const { client } = useShipEngine();
|
|
36886
|
-
const queryParams = __spreadValues$
|
|
36887
|
-
return reactQuery.useQuery(__spreadProps$
|
|
36878
|
+
const queryParams = __spreadValues$u({}, params);
|
|
36879
|
+
return reactQuery.useQuery(__spreadProps$r(__spreadValues$u({}, queryParams), {
|
|
36888
36880
|
onError,
|
|
36889
36881
|
queryFn: () => client.fundingSources.insuranceAcceptedTerms(),
|
|
36890
36882
|
queryKey: ["useGetInsuranceFundingSourceAcceptedTerms"],
|
|
@@ -36907,17 +36899,17 @@ const useGetInsuranceAccount = (insuranceProvider) => {
|
|
|
36907
36899
|
});
|
|
36908
36900
|
};
|
|
36909
36901
|
|
|
36910
|
-
var __getOwnPropSymbols$
|
|
36911
|
-
var __hasOwnProp$
|
|
36912
|
-
var __propIsEnum$
|
|
36902
|
+
var __getOwnPropSymbols$z = Object.getOwnPropertySymbols;
|
|
36903
|
+
var __hasOwnProp$z = Object.prototype.hasOwnProperty;
|
|
36904
|
+
var __propIsEnum$z = Object.prototype.propertyIsEnumerable;
|
|
36913
36905
|
var __objRest$m = (source, exclude) => {
|
|
36914
36906
|
var target = {};
|
|
36915
36907
|
for (var prop in source)
|
|
36916
|
-
if (__hasOwnProp$
|
|
36908
|
+
if (__hasOwnProp$z.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
36917
36909
|
target[prop] = source[prop];
|
|
36918
|
-
if (source != null && __getOwnPropSymbols$
|
|
36919
|
-
for (var prop of __getOwnPropSymbols$
|
|
36920
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
36910
|
+
if (source != null && __getOwnPropSymbols$z)
|
|
36911
|
+
for (var prop of __getOwnPropSymbols$z(source)) {
|
|
36912
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$z.call(source, prop))
|
|
36921
36913
|
target[prop] = source[prop];
|
|
36922
36914
|
}
|
|
36923
36915
|
return target;
|
|
@@ -36955,57 +36947,6 @@ const useAddInsuranceFunds = () => {
|
|
|
36955
36947
|
});
|
|
36956
36948
|
};
|
|
36957
36949
|
|
|
36958
|
-
var __defProp$u = Object.defineProperty;
|
|
36959
|
-
var __defProps$r = Object.defineProperties;
|
|
36960
|
-
var __getOwnPropDescs$r = Object.getOwnPropertyDescriptors;
|
|
36961
|
-
var __getOwnPropSymbols$z = Object.getOwnPropertySymbols;
|
|
36962
|
-
var __hasOwnProp$z = Object.prototype.hasOwnProperty;
|
|
36963
|
-
var __propIsEnum$z = Object.prototype.propertyIsEnumerable;
|
|
36964
|
-
var __defNormalProp$u = (obj, key, value) => key in obj ? __defProp$u(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
36965
|
-
var __spreadValues$u = (a, b) => {
|
|
36966
|
-
for (var prop in b || (b = {}))
|
|
36967
|
-
if (__hasOwnProp$z.call(b, prop))
|
|
36968
|
-
__defNormalProp$u(a, prop, b[prop]);
|
|
36969
|
-
if (__getOwnPropSymbols$z)
|
|
36970
|
-
for (var prop of __getOwnPropSymbols$z(b)) {
|
|
36971
|
-
if (__propIsEnum$z.call(b, prop))
|
|
36972
|
-
__defNormalProp$u(a, prop, b[prop]);
|
|
36973
|
-
}
|
|
36974
|
-
return a;
|
|
36975
|
-
};
|
|
36976
|
-
var __spreadProps$r = (a, b) => __defProps$r(a, __getOwnPropDescs$r(b));
|
|
36977
|
-
var __async$D = (__this, __arguments, generator) => {
|
|
36978
|
-
return new Promise((resolve, reject) => {
|
|
36979
|
-
var fulfilled = (value) => {
|
|
36980
|
-
try {
|
|
36981
|
-
step(generator.next(value));
|
|
36982
|
-
} catch (e) {
|
|
36983
|
-
reject(e);
|
|
36984
|
-
}
|
|
36985
|
-
};
|
|
36986
|
-
var rejected = (value) => {
|
|
36987
|
-
try {
|
|
36988
|
-
step(generator.throw(value));
|
|
36989
|
-
} catch (e) {
|
|
36990
|
-
reject(e);
|
|
36991
|
-
}
|
|
36992
|
-
};
|
|
36993
|
-
var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
|
|
36994
|
-
step((generator = generator.apply(__this, __arguments)).next());
|
|
36995
|
-
});
|
|
36996
|
-
};
|
|
36997
|
-
const useCreateInvoiceAddress = (params) => {
|
|
36998
|
-
const { client } = useShipEngine();
|
|
36999
|
-
return reactQuery.useMutation(__spreadProps$r(__spreadValues$u({}, params), {
|
|
37000
|
-
mutationFn: (invoiceAddress) => __async$D(void 0, null, function* () {
|
|
37001
|
-
const result = yield client.invoiceAddress.create(invoiceAddress);
|
|
37002
|
-
return result.data;
|
|
37003
|
-
}),
|
|
37004
|
-
mutationKey: ["useCreateInvoiceAddress"],
|
|
37005
|
-
onError
|
|
37006
|
-
}));
|
|
37007
|
-
};
|
|
37008
|
-
|
|
37009
36950
|
var __defProp$t = Object.defineProperty;
|
|
37010
36951
|
var __defProps$q = Object.defineProperties;
|
|
37011
36952
|
var __getOwnPropDescs$q = Object.getOwnPropertyDescriptors;
|
|
@@ -37025,7 +36966,7 @@ var __spreadValues$t = (a, b) => {
|
|
|
37025
36966
|
return a;
|
|
37026
36967
|
};
|
|
37027
36968
|
var __spreadProps$q = (a, b) => __defProps$q(a, __getOwnPropDescs$q(b));
|
|
37028
|
-
var __async$
|
|
36969
|
+
var __async$D = (__this, __arguments, generator) => {
|
|
37029
36970
|
return new Promise((resolve, reject) => {
|
|
37030
36971
|
var fulfilled = (value) => {
|
|
37031
36972
|
try {
|
|
@@ -37045,14 +36986,14 @@ var __async$C = (__this, __arguments, generator) => {
|
|
|
37045
36986
|
step((generator = generator.apply(__this, __arguments)).next());
|
|
37046
36987
|
});
|
|
37047
36988
|
};
|
|
37048
|
-
const
|
|
36989
|
+
const useCreateInvoiceAddress = (params) => {
|
|
37049
36990
|
const { client } = useShipEngine();
|
|
37050
36991
|
return reactQuery.useMutation(__spreadProps$q(__spreadValues$t({}, params), {
|
|
37051
|
-
mutationFn: (invoiceAddress) => __async$
|
|
37052
|
-
const result = yield client.invoiceAddress.
|
|
36992
|
+
mutationFn: (invoiceAddress) => __async$D(void 0, null, function* () {
|
|
36993
|
+
const result = yield client.invoiceAddress.create(invoiceAddress);
|
|
37053
36994
|
return result.data;
|
|
37054
36995
|
}),
|
|
37055
|
-
mutationKey: ["
|
|
36996
|
+
mutationKey: ["useCreateInvoiceAddress"],
|
|
37056
36997
|
onError
|
|
37057
36998
|
}));
|
|
37058
36999
|
};
|
|
@@ -37076,17 +37017,7 @@ var __spreadValues$s = (a, b) => {
|
|
|
37076
37017
|
return a;
|
|
37077
37018
|
};
|
|
37078
37019
|
var __spreadProps$p = (a, b) => __defProps$p(a, __getOwnPropDescs$p(b));
|
|
37079
|
-
|
|
37080
|
-
const { client } = useShipEngine();
|
|
37081
|
-
return reactQuery.useQuery(__spreadProps$p(__spreadValues$s({}, params), {
|
|
37082
|
-
onError,
|
|
37083
|
-
queryFn: () => client.invoiceAddress.get(),
|
|
37084
|
-
queryKey: ["useGetInvoiceAddress"],
|
|
37085
|
-
select: (result) => result.data
|
|
37086
|
-
}));
|
|
37087
|
-
};
|
|
37088
|
-
|
|
37089
|
-
var __async$B = (__this, __arguments, generator) => {
|
|
37020
|
+
var __async$C = (__this, __arguments, generator) => {
|
|
37090
37021
|
return new Promise((resolve, reject) => {
|
|
37091
37022
|
var fulfilled = (value) => {
|
|
37092
37023
|
try {
|
|
@@ -37106,16 +37037,16 @@ var __async$B = (__this, __arguments, generator) => {
|
|
|
37106
37037
|
step((generator = generator.apply(__this, __arguments)).next());
|
|
37107
37038
|
});
|
|
37108
37039
|
};
|
|
37109
|
-
const
|
|
37040
|
+
const useUpdateInvoiceAddress = (params) => {
|
|
37110
37041
|
const { client } = useShipEngine();
|
|
37111
|
-
return reactQuery.useMutation({
|
|
37112
|
-
mutationFn: (
|
|
37113
|
-
const result = yield client.
|
|
37042
|
+
return reactQuery.useMutation(__spreadProps$p(__spreadValues$s({}, params), {
|
|
37043
|
+
mutationFn: (invoiceAddress) => __async$C(void 0, null, function* () {
|
|
37044
|
+
const result = yield client.invoiceAddress.update(invoiceAddress);
|
|
37114
37045
|
return result.data;
|
|
37115
37046
|
}),
|
|
37116
|
-
mutationKey: ["
|
|
37047
|
+
mutationKey: ["useUpdateInvoiceAddress"],
|
|
37117
37048
|
onError
|
|
37118
|
-
});
|
|
37049
|
+
}));
|
|
37119
37050
|
};
|
|
37120
37051
|
|
|
37121
37052
|
var __defProp$r = Object.defineProperty;
|
|
@@ -37137,19 +37068,17 @@ var __spreadValues$r = (a, b) => {
|
|
|
37137
37068
|
return a;
|
|
37138
37069
|
};
|
|
37139
37070
|
var __spreadProps$o = (a, b) => __defProps$o(a, __getOwnPropDescs$o(b));
|
|
37140
|
-
|
|
37141
|
-
|
|
37142
|
-
|
|
37143
|
-
|
|
37144
|
-
|
|
37145
|
-
|
|
37146
|
-
|
|
37147
|
-
|
|
37148
|
-
target[prop] = source[prop];
|
|
37149
|
-
}
|
|
37150
|
-
return target;
|
|
37071
|
+
const useGetInvoiceAddress = (params) => {
|
|
37072
|
+
const { client } = useShipEngine();
|
|
37073
|
+
return reactQuery.useQuery(__spreadProps$o(__spreadValues$r({}, params), {
|
|
37074
|
+
onError,
|
|
37075
|
+
queryFn: () => client.invoiceAddress.get(),
|
|
37076
|
+
queryKey: ["useGetInvoiceAddress"],
|
|
37077
|
+
select: (result) => result.data
|
|
37078
|
+
}));
|
|
37151
37079
|
};
|
|
37152
|
-
|
|
37080
|
+
|
|
37081
|
+
var __async$B = (__this, __arguments, generator) => {
|
|
37153
37082
|
return new Promise((resolve, reject) => {
|
|
37154
37083
|
var fulfilled = (value) => {
|
|
37155
37084
|
try {
|
|
@@ -37169,17 +37098,16 @@ var __async$A = (__this, __arguments, generator) => {
|
|
|
37169
37098
|
step((generator = generator.apply(__this, __arguments)).next());
|
|
37170
37099
|
});
|
|
37171
37100
|
};
|
|
37172
|
-
const
|
|
37101
|
+
const useCancelRefund = () => {
|
|
37173
37102
|
const { client } = useShipEngine();
|
|
37174
|
-
return reactQuery.useMutation(
|
|
37175
|
-
mutationFn: (
|
|
37176
|
-
|
|
37177
|
-
const result = yield client.labels.createByRateId(rateId, options);
|
|
37103
|
+
return reactQuery.useMutation({
|
|
37104
|
+
mutationFn: (labelId) => __async$B(void 0, null, function* () {
|
|
37105
|
+
const result = yield client.labels.cancelRefund(labelId);
|
|
37178
37106
|
return result.data;
|
|
37179
37107
|
}),
|
|
37180
|
-
mutationKey: ["
|
|
37108
|
+
mutationKey: ["useCancelRefund"],
|
|
37181
37109
|
onError
|
|
37182
|
-
})
|
|
37110
|
+
});
|
|
37183
37111
|
};
|
|
37184
37112
|
|
|
37185
37113
|
var __defProp$q = Object.defineProperty;
|
|
@@ -37201,7 +37129,7 @@ var __spreadValues$q = (a, b) => {
|
|
|
37201
37129
|
return a;
|
|
37202
37130
|
};
|
|
37203
37131
|
var __spreadProps$n = (a, b) => __defProps$n(a, __getOwnPropDescs$n(b));
|
|
37204
|
-
var __objRest$
|
|
37132
|
+
var __objRest$l = (source, exclude) => {
|
|
37205
37133
|
var target = {};
|
|
37206
37134
|
for (var prop in source)
|
|
37207
37135
|
if (__hasOwnProp$v.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
@@ -37213,7 +37141,7 @@ var __objRest$k = (source, exclude) => {
|
|
|
37213
37141
|
}
|
|
37214
37142
|
return target;
|
|
37215
37143
|
};
|
|
37216
|
-
var __async$
|
|
37144
|
+
var __async$A = (__this, __arguments, generator) => {
|
|
37217
37145
|
return new Promise((resolve, reject) => {
|
|
37218
37146
|
var fulfilled = (value) => {
|
|
37219
37147
|
try {
|
|
@@ -37233,15 +37161,15 @@ var __async$z = (__this, __arguments, generator) => {
|
|
|
37233
37161
|
step((generator = generator.apply(__this, __arguments)).next());
|
|
37234
37162
|
});
|
|
37235
37163
|
};
|
|
37236
|
-
const
|
|
37164
|
+
const useCreateLabelByRateId = (params) => {
|
|
37237
37165
|
const { client } = useShipEngine();
|
|
37238
37166
|
return reactQuery.useMutation(__spreadProps$n(__spreadValues$q({}, params), {
|
|
37239
|
-
mutationFn: (_a) => __async$
|
|
37240
|
-
var _b = _a, {
|
|
37241
|
-
const result = yield client.labels.
|
|
37167
|
+
mutationFn: (_a) => __async$A(void 0, null, function* () {
|
|
37168
|
+
var _b = _a, { rateId } = _b, options = __objRest$l(_b, ["rateId"]);
|
|
37169
|
+
const result = yield client.labels.createByRateId(rateId, options);
|
|
37242
37170
|
return result.data;
|
|
37243
37171
|
}),
|
|
37244
|
-
mutationKey: ["
|
|
37172
|
+
mutationKey: ["useCreateLabelByRateId"],
|
|
37245
37173
|
onError
|
|
37246
37174
|
}));
|
|
37247
37175
|
};
|
|
@@ -37265,7 +37193,7 @@ var __spreadValues$p = (a, b) => {
|
|
|
37265
37193
|
return a;
|
|
37266
37194
|
};
|
|
37267
37195
|
var __spreadProps$m = (a, b) => __defProps$m(a, __getOwnPropDescs$m(b));
|
|
37268
|
-
var __objRest$
|
|
37196
|
+
var __objRest$k = (source, exclude) => {
|
|
37269
37197
|
var target = {};
|
|
37270
37198
|
for (var prop in source)
|
|
37271
37199
|
if (__hasOwnProp$u.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
@@ -37277,7 +37205,7 @@ var __objRest$j = (source, exclude) => {
|
|
|
37277
37205
|
}
|
|
37278
37206
|
return target;
|
|
37279
37207
|
};
|
|
37280
|
-
var __async$
|
|
37208
|
+
var __async$z = (__this, __arguments, generator) => {
|
|
37281
37209
|
return new Promise((resolve, reject) => {
|
|
37282
37210
|
var fulfilled = (value) => {
|
|
37283
37211
|
try {
|
|
@@ -37297,15 +37225,15 @@ var __async$y = (__this, __arguments, generator) => {
|
|
|
37297
37225
|
step((generator = generator.apply(__this, __arguments)).next());
|
|
37298
37226
|
});
|
|
37299
37227
|
};
|
|
37300
|
-
const
|
|
37228
|
+
const useCreateLabelByShipmentId = (params) => {
|
|
37301
37229
|
const { client } = useShipEngine();
|
|
37302
37230
|
return reactQuery.useMutation(__spreadProps$m(__spreadValues$p({}, params), {
|
|
37303
|
-
mutationFn: (_a) => __async$
|
|
37304
|
-
var _b = _a, {
|
|
37305
|
-
const result = yield client.labels.
|
|
37231
|
+
mutationFn: (_a) => __async$z(void 0, null, function* () {
|
|
37232
|
+
var _b = _a, { shipmentId } = _b, options = __objRest$k(_b, ["shipmentId"]);
|
|
37233
|
+
const result = yield client.labels.createByShipmentId(shipmentId, options);
|
|
37306
37234
|
return result.data;
|
|
37307
37235
|
}),
|
|
37308
|
-
mutationKey: ["
|
|
37236
|
+
mutationKey: ["useCreateLabelByShipmentId"],
|
|
37309
37237
|
onError
|
|
37310
37238
|
}));
|
|
37311
37239
|
};
|
|
@@ -37329,7 +37257,7 @@ var __spreadValues$o = (a, b) => {
|
|
|
37329
37257
|
return a;
|
|
37330
37258
|
};
|
|
37331
37259
|
var __spreadProps$l = (a, b) => __defProps$l(a, __getOwnPropDescs$l(b));
|
|
37332
|
-
var __objRest$
|
|
37260
|
+
var __objRest$j = (source, exclude) => {
|
|
37333
37261
|
var target = {};
|
|
37334
37262
|
for (var prop in source)
|
|
37335
37263
|
if (__hasOwnProp$t.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
@@ -37341,29 +37269,37 @@ var __objRest$i = (source, exclude) => {
|
|
|
37341
37269
|
}
|
|
37342
37270
|
return target;
|
|
37343
37271
|
};
|
|
37344
|
-
|
|
37345
|
-
|
|
37346
|
-
|
|
37347
|
-
|
|
37348
|
-
|
|
37349
|
-
|
|
37350
|
-
|
|
37351
|
-
|
|
37272
|
+
var __async$y = (__this, __arguments, generator) => {
|
|
37273
|
+
return new Promise((resolve, reject) => {
|
|
37274
|
+
var fulfilled = (value) => {
|
|
37275
|
+
try {
|
|
37276
|
+
step(generator.next(value));
|
|
37277
|
+
} catch (e) {
|
|
37278
|
+
reject(e);
|
|
37279
|
+
}
|
|
37280
|
+
};
|
|
37281
|
+
var rejected = (value) => {
|
|
37282
|
+
try {
|
|
37283
|
+
step(generator.throw(value));
|
|
37284
|
+
} catch (e) {
|
|
37285
|
+
reject(e);
|
|
37286
|
+
}
|
|
37287
|
+
};
|
|
37288
|
+
var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
|
|
37289
|
+
step((generator = generator.apply(__this, __arguments)).next());
|
|
37290
|
+
});
|
|
37352
37291
|
};
|
|
37353
|
-
|
|
37354
|
-
const useGetLabel = (labelId) => {
|
|
37292
|
+
const useCreateLabel = (params) => {
|
|
37355
37293
|
const { client } = useShipEngine();
|
|
37356
|
-
return reactQuery.
|
|
37357
|
-
|
|
37358
|
-
|
|
37359
|
-
|
|
37360
|
-
|
|
37361
|
-
|
|
37362
|
-
|
|
37363
|
-
|
|
37364
|
-
|
|
37365
|
-
select: (result) => result.data
|
|
37366
|
-
});
|
|
37294
|
+
return reactQuery.useMutation(__spreadProps$l(__spreadValues$o({}, params), {
|
|
37295
|
+
mutationFn: (_a) => __async$y(void 0, null, function* () {
|
|
37296
|
+
var _b = _a, { rateId } = _b, options = __objRest$j(_b, ["rateId"]);
|
|
37297
|
+
const result = yield client.labels.createByRateId(rateId, options);
|
|
37298
|
+
return result.data;
|
|
37299
|
+
}),
|
|
37300
|
+
mutationKey: ["useCreateLabel"],
|
|
37301
|
+
onError
|
|
37302
|
+
}));
|
|
37367
37303
|
};
|
|
37368
37304
|
|
|
37369
37305
|
var __defProp$n = Object.defineProperty;
|
|
@@ -37385,7 +37321,7 @@ var __spreadValues$n = (a, b) => {
|
|
|
37385
37321
|
return a;
|
|
37386
37322
|
};
|
|
37387
37323
|
var __spreadProps$k = (a, b) => __defProps$k(a, __getOwnPropDescs$k(b));
|
|
37388
|
-
var __objRest$
|
|
37324
|
+
var __objRest$i = (source, exclude) => {
|
|
37389
37325
|
var target = {};
|
|
37390
37326
|
for (var prop in source)
|
|
37391
37327
|
if (__hasOwnProp$s.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
@@ -37397,17 +37333,31 @@ var __objRest$h = (source, exclude) => {
|
|
|
37397
37333
|
}
|
|
37398
37334
|
return target;
|
|
37399
37335
|
};
|
|
37400
|
-
const
|
|
37336
|
+
const useExportLabels = (params) => {
|
|
37401
37337
|
const { client } = useShipEngine();
|
|
37402
|
-
const _a = __spreadValues$n({}, params), { queryFnParams } = _a, rest = __objRest$
|
|
37338
|
+
const _a = __spreadValues$n({}, params), { queryFnParams } = _a, rest = __objRest$i(_a, ["queryFnParams"]);
|
|
37403
37339
|
return reactQuery.useQuery(__spreadProps$k(__spreadValues$n({}, rest), {
|
|
37404
37340
|
onError,
|
|
37405
|
-
queryFn: () => client.labels.
|
|
37406
|
-
queryKey: ["
|
|
37407
|
-
select: (result) => result.data
|
|
37341
|
+
queryFn: () => client.labels.export(queryFnParams),
|
|
37342
|
+
queryKey: ["useExportLabels", params]
|
|
37408
37343
|
}));
|
|
37409
37344
|
};
|
|
37410
37345
|
|
|
37346
|
+
const useGetLabel = (labelId) => {
|
|
37347
|
+
const { client } = useShipEngine();
|
|
37348
|
+
return reactQuery.useQuery({
|
|
37349
|
+
enabled: labelId !== void 0,
|
|
37350
|
+
onError,
|
|
37351
|
+
queryFn: () => {
|
|
37352
|
+
if (labelId)
|
|
37353
|
+
return client.labels.get(labelId);
|
|
37354
|
+
return Promise.reject(new Error("labelId is require"));
|
|
37355
|
+
},
|
|
37356
|
+
queryKey: ["useGetLabel", labelId],
|
|
37357
|
+
select: (result) => result.data
|
|
37358
|
+
});
|
|
37359
|
+
};
|
|
37360
|
+
|
|
37411
37361
|
var __defProp$m = Object.defineProperty;
|
|
37412
37362
|
var __defProps$j = Object.defineProperties;
|
|
37413
37363
|
var __getOwnPropDescs$j = Object.getOwnPropertyDescriptors;
|
|
@@ -37427,7 +37377,7 @@ var __spreadValues$m = (a, b) => {
|
|
|
37427
37377
|
return a;
|
|
37428
37378
|
};
|
|
37429
37379
|
var __spreadProps$j = (a, b) => __defProps$j(a, __getOwnPropDescs$j(b));
|
|
37430
|
-
var __objRest$
|
|
37380
|
+
var __objRest$h = (source, exclude) => {
|
|
37431
37381
|
var target = {};
|
|
37432
37382
|
for (var prop in source)
|
|
37433
37383
|
if (__hasOwnProp$r.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
@@ -37439,6 +37389,48 @@ var __objRest$g = (source, exclude) => {
|
|
|
37439
37389
|
}
|
|
37440
37390
|
return target;
|
|
37441
37391
|
};
|
|
37392
|
+
const useListLabels = (params) => {
|
|
37393
|
+
const { client } = useShipEngine();
|
|
37394
|
+
const _a = __spreadValues$m({}, params), { queryFnParams } = _a, rest = __objRest$h(_a, ["queryFnParams"]);
|
|
37395
|
+
return reactQuery.useQuery(__spreadProps$j(__spreadValues$m({}, rest), {
|
|
37396
|
+
onError,
|
|
37397
|
+
queryFn: () => client.labels.list(queryFnParams),
|
|
37398
|
+
queryKey: ["useListLabels", params],
|
|
37399
|
+
select: (result) => result.data
|
|
37400
|
+
}));
|
|
37401
|
+
};
|
|
37402
|
+
|
|
37403
|
+
var __defProp$l = Object.defineProperty;
|
|
37404
|
+
var __defProps$i = Object.defineProperties;
|
|
37405
|
+
var __getOwnPropDescs$i = Object.getOwnPropertyDescriptors;
|
|
37406
|
+
var __getOwnPropSymbols$q = Object.getOwnPropertySymbols;
|
|
37407
|
+
var __hasOwnProp$q = Object.prototype.hasOwnProperty;
|
|
37408
|
+
var __propIsEnum$q = Object.prototype.propertyIsEnumerable;
|
|
37409
|
+
var __defNormalProp$l = (obj, key, value) => key in obj ? __defProp$l(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
37410
|
+
var __spreadValues$l = (a, b) => {
|
|
37411
|
+
for (var prop in b || (b = {}))
|
|
37412
|
+
if (__hasOwnProp$q.call(b, prop))
|
|
37413
|
+
__defNormalProp$l(a, prop, b[prop]);
|
|
37414
|
+
if (__getOwnPropSymbols$q)
|
|
37415
|
+
for (var prop of __getOwnPropSymbols$q(b)) {
|
|
37416
|
+
if (__propIsEnum$q.call(b, prop))
|
|
37417
|
+
__defNormalProp$l(a, prop, b[prop]);
|
|
37418
|
+
}
|
|
37419
|
+
return a;
|
|
37420
|
+
};
|
|
37421
|
+
var __spreadProps$i = (a, b) => __defProps$i(a, __getOwnPropDescs$i(b));
|
|
37422
|
+
var __objRest$g = (source, exclude) => {
|
|
37423
|
+
var target = {};
|
|
37424
|
+
for (var prop in source)
|
|
37425
|
+
if (__hasOwnProp$q.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
37426
|
+
target[prop] = source[prop];
|
|
37427
|
+
if (source != null && __getOwnPropSymbols$q)
|
|
37428
|
+
for (var prop of __getOwnPropSymbols$q(source)) {
|
|
37429
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$q.call(source, prop))
|
|
37430
|
+
target[prop] = source[prop];
|
|
37431
|
+
}
|
|
37432
|
+
return target;
|
|
37433
|
+
};
|
|
37442
37434
|
var __async$x = (__this, __arguments, generator) => {
|
|
37443
37435
|
return new Promise((resolve, reject) => {
|
|
37444
37436
|
var fulfilled = (value) => {
|
|
@@ -37461,8 +37453,8 @@ var __async$x = (__this, __arguments, generator) => {
|
|
|
37461
37453
|
};
|
|
37462
37454
|
const useListLabelsInfinite = (params) => {
|
|
37463
37455
|
const { client } = useShipEngine();
|
|
37464
|
-
const _a = __spreadValues$
|
|
37465
|
-
return reactQuery.useInfiniteQuery(__spreadProps$
|
|
37456
|
+
const _a = __spreadValues$l({}, params), { queryFnParams } = _a, rest = __objRest$g(_a, ["queryFnParams"]);
|
|
37457
|
+
return reactQuery.useInfiniteQuery(__spreadProps$i(__spreadValues$l({}, rest), {
|
|
37466
37458
|
getNextPageParam: (lastPage) => {
|
|
37467
37459
|
if (lastPage.page < lastPage.pages) {
|
|
37468
37460
|
return lastPage.page + 1;
|
|
@@ -37471,7 +37463,7 @@ const useListLabelsInfinite = (params) => {
|
|
|
37471
37463
|
},
|
|
37472
37464
|
onError,
|
|
37473
37465
|
queryFn: (_0) => __async$x(void 0, [_0], function* ({ pageParam = 1 }) {
|
|
37474
|
-
const response = yield client.labels.list(__spreadProps$
|
|
37466
|
+
const response = yield client.labels.list(__spreadProps$i(__spreadValues$l({}, queryFnParams), { page: pageParam }));
|
|
37475
37467
|
return response.data;
|
|
37476
37468
|
}),
|
|
37477
37469
|
queryKey: ["useListLabelsInfinite", params],
|
|
@@ -37517,28 +37509,28 @@ const useVoidLabel = () => {
|
|
|
37517
37509
|
});
|
|
37518
37510
|
};
|
|
37519
37511
|
|
|
37520
|
-
var __defProp$
|
|
37521
|
-
var __defProps$
|
|
37522
|
-
var __getOwnPropDescs$
|
|
37523
|
-
var __getOwnPropSymbols$
|
|
37524
|
-
var __hasOwnProp$
|
|
37525
|
-
var __propIsEnum$
|
|
37526
|
-
var __defNormalProp$
|
|
37527
|
-
var __spreadValues$
|
|
37512
|
+
var __defProp$k = Object.defineProperty;
|
|
37513
|
+
var __defProps$h = Object.defineProperties;
|
|
37514
|
+
var __getOwnPropDescs$h = Object.getOwnPropertyDescriptors;
|
|
37515
|
+
var __getOwnPropSymbols$p = Object.getOwnPropertySymbols;
|
|
37516
|
+
var __hasOwnProp$p = Object.prototype.hasOwnProperty;
|
|
37517
|
+
var __propIsEnum$p = Object.prototype.propertyIsEnumerable;
|
|
37518
|
+
var __defNormalProp$k = (obj, key, value) => key in obj ? __defProp$k(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
37519
|
+
var __spreadValues$k = (a, b) => {
|
|
37528
37520
|
for (var prop in b || (b = {}))
|
|
37529
|
-
if (__hasOwnProp$
|
|
37530
|
-
__defNormalProp$
|
|
37531
|
-
if (__getOwnPropSymbols$
|
|
37532
|
-
for (var prop of __getOwnPropSymbols$
|
|
37533
|
-
if (__propIsEnum$
|
|
37534
|
-
__defNormalProp$
|
|
37521
|
+
if (__hasOwnProp$p.call(b, prop))
|
|
37522
|
+
__defNormalProp$k(a, prop, b[prop]);
|
|
37523
|
+
if (__getOwnPropSymbols$p)
|
|
37524
|
+
for (var prop of __getOwnPropSymbols$p(b)) {
|
|
37525
|
+
if (__propIsEnum$p.call(b, prop))
|
|
37526
|
+
__defNormalProp$k(a, prop, b[prop]);
|
|
37535
37527
|
}
|
|
37536
37528
|
return a;
|
|
37537
37529
|
};
|
|
37538
|
-
var __spreadProps$
|
|
37530
|
+
var __spreadProps$h = (a, b) => __defProps$h(a, __getOwnPropDescs$h(b));
|
|
37539
37531
|
const useListOrderSources = (params) => {
|
|
37540
37532
|
const { client } = useShipEngine();
|
|
37541
|
-
return reactQuery.useQuery(__spreadProps$
|
|
37533
|
+
return reactQuery.useQuery(__spreadProps$h(__spreadValues$k({}, params), {
|
|
37542
37534
|
onError,
|
|
37543
37535
|
queryFn: () => client.orderSources.list(),
|
|
37544
37536
|
queryKey: ["useListOrderSources"],
|
|
@@ -37976,17 +37968,17 @@ const useListSalesOrders = (params = {}) => {
|
|
|
37976
37968
|
});
|
|
37977
37969
|
};
|
|
37978
37970
|
|
|
37979
|
-
var __getOwnPropSymbols$
|
|
37980
|
-
var __hasOwnProp$
|
|
37981
|
-
var __propIsEnum$
|
|
37971
|
+
var __getOwnPropSymbols$o = Object.getOwnPropertySymbols;
|
|
37972
|
+
var __hasOwnProp$o = Object.prototype.hasOwnProperty;
|
|
37973
|
+
var __propIsEnum$o = Object.prototype.propertyIsEnumerable;
|
|
37982
37974
|
var __objRest$f = (source, exclude) => {
|
|
37983
37975
|
var target = {};
|
|
37984
37976
|
for (var prop in source)
|
|
37985
|
-
if (__hasOwnProp$
|
|
37977
|
+
if (__hasOwnProp$o.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
37986
37978
|
target[prop] = source[prop];
|
|
37987
|
-
if (source != null && __getOwnPropSymbols$
|
|
37988
|
-
for (var prop of __getOwnPropSymbols$
|
|
37989
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
37979
|
+
if (source != null && __getOwnPropSymbols$o)
|
|
37980
|
+
for (var prop of __getOwnPropSymbols$o(source)) {
|
|
37981
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$o.call(source, prop))
|
|
37990
37982
|
target[prop] = source[prop];
|
|
37991
37983
|
}
|
|
37992
37984
|
return target;
|
|
@@ -38024,17 +38016,17 @@ const useNotifySalesOrderShipped = () => {
|
|
|
38024
38016
|
});
|
|
38025
38017
|
};
|
|
38026
38018
|
|
|
38027
|
-
var __getOwnPropSymbols$
|
|
38028
|
-
var __hasOwnProp$
|
|
38029
|
-
var __propIsEnum$
|
|
38019
|
+
var __getOwnPropSymbols$n = Object.getOwnPropertySymbols;
|
|
38020
|
+
var __hasOwnProp$n = Object.prototype.hasOwnProperty;
|
|
38021
|
+
var __propIsEnum$n = Object.prototype.propertyIsEnumerable;
|
|
38030
38022
|
var __objRest$e = (source, exclude) => {
|
|
38031
38023
|
var target = {};
|
|
38032
38024
|
for (var prop in source)
|
|
38033
|
-
if (__hasOwnProp$
|
|
38025
|
+
if (__hasOwnProp$n.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
38034
38026
|
target[prop] = source[prop];
|
|
38035
|
-
if (source != null && __getOwnPropSymbols$
|
|
38036
|
-
for (var prop of __getOwnPropSymbols$
|
|
38037
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
38027
|
+
if (source != null && __getOwnPropSymbols$n)
|
|
38028
|
+
for (var prop of __getOwnPropSymbols$n(source)) {
|
|
38029
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$n.call(source, prop))
|
|
38038
38030
|
target[prop] = source[prop];
|
|
38039
38031
|
}
|
|
38040
38032
|
return target;
|
|
@@ -38099,17 +38091,17 @@ const useListSalesOrderShipments = (body) => {
|
|
|
38099
38091
|
});
|
|
38100
38092
|
};
|
|
38101
38093
|
|
|
38102
|
-
var __getOwnPropSymbols$
|
|
38103
|
-
var __hasOwnProp$
|
|
38104
|
-
var __propIsEnum$
|
|
38094
|
+
var __getOwnPropSymbols$m = Object.getOwnPropertySymbols;
|
|
38095
|
+
var __hasOwnProp$m = Object.prototype.hasOwnProperty;
|
|
38096
|
+
var __propIsEnum$m = Object.prototype.propertyIsEnumerable;
|
|
38105
38097
|
var __objRest$d = (source, exclude) => {
|
|
38106
38098
|
var target = {};
|
|
38107
38099
|
for (var prop in source)
|
|
38108
|
-
if (__hasOwnProp$
|
|
38100
|
+
if (__hasOwnProp$m.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
38109
38101
|
target[prop] = source[prop];
|
|
38110
|
-
if (source != null && __getOwnPropSymbols$
|
|
38111
|
-
for (var prop of __getOwnPropSymbols$
|
|
38112
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
38102
|
+
if (source != null && __getOwnPropSymbols$m)
|
|
38103
|
+
for (var prop of __getOwnPropSymbols$m(source)) {
|
|
38104
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$m.call(source, prop))
|
|
38113
38105
|
target[prop] = source[prop];
|
|
38114
38106
|
}
|
|
38115
38107
|
return target;
|
|
@@ -38158,25 +38150,25 @@ const useListSalesOrderShipmentsByExternalOrderId = (externalOrderId) => {
|
|
|
38158
38150
|
});
|
|
38159
38151
|
};
|
|
38160
38152
|
|
|
38161
|
-
var __defProp$
|
|
38162
|
-
var __defProps$
|
|
38163
|
-
var __getOwnPropDescs$
|
|
38164
|
-
var __getOwnPropSymbols$
|
|
38165
|
-
var __hasOwnProp$
|
|
38166
|
-
var __propIsEnum$
|
|
38167
|
-
var __defNormalProp$
|
|
38168
|
-
var __spreadValues$
|
|
38153
|
+
var __defProp$j = Object.defineProperty;
|
|
38154
|
+
var __defProps$g = Object.defineProperties;
|
|
38155
|
+
var __getOwnPropDescs$g = Object.getOwnPropertyDescriptors;
|
|
38156
|
+
var __getOwnPropSymbols$l = Object.getOwnPropertySymbols;
|
|
38157
|
+
var __hasOwnProp$l = Object.prototype.hasOwnProperty;
|
|
38158
|
+
var __propIsEnum$l = Object.prototype.propertyIsEnumerable;
|
|
38159
|
+
var __defNormalProp$j = (obj, key, value) => key in obj ? __defProp$j(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
38160
|
+
var __spreadValues$j = (a, b) => {
|
|
38169
38161
|
for (var prop in b || (b = {}))
|
|
38170
|
-
if (__hasOwnProp$
|
|
38171
|
-
__defNormalProp$
|
|
38172
|
-
if (__getOwnPropSymbols$
|
|
38173
|
-
for (var prop of __getOwnPropSymbols$
|
|
38174
|
-
if (__propIsEnum$
|
|
38175
|
-
__defNormalProp$
|
|
38162
|
+
if (__hasOwnProp$l.call(b, prop))
|
|
38163
|
+
__defNormalProp$j(a, prop, b[prop]);
|
|
38164
|
+
if (__getOwnPropSymbols$l)
|
|
38165
|
+
for (var prop of __getOwnPropSymbols$l(b)) {
|
|
38166
|
+
if (__propIsEnum$l.call(b, prop))
|
|
38167
|
+
__defNormalProp$j(a, prop, b[prop]);
|
|
38176
38168
|
}
|
|
38177
38169
|
return a;
|
|
38178
38170
|
};
|
|
38179
|
-
var __spreadProps$
|
|
38171
|
+
var __spreadProps$g = (a, b) => __defProps$g(a, __getOwnPropDescs$g(b));
|
|
38180
38172
|
var __async$i = (__this, __arguments, generator) => {
|
|
38181
38173
|
return new Promise((resolve, reject) => {
|
|
38182
38174
|
var fulfilled = (value) => {
|
|
@@ -38218,7 +38210,7 @@ const useCreateShipment = () => {
|
|
|
38218
38210
|
postalCode: "",
|
|
38219
38211
|
stateProvince: ""
|
|
38220
38212
|
};
|
|
38221
|
-
return (yield client.shipments.create(__spreadProps$
|
|
38213
|
+
return (yield client.shipments.create(__spreadProps$g(__spreadValues$j({}, shipment), {
|
|
38222
38214
|
shipTo
|
|
38223
38215
|
}))).data;
|
|
38224
38216
|
}),
|
|
@@ -38227,33 +38219,33 @@ const useCreateShipment = () => {
|
|
|
38227
38219
|
});
|
|
38228
38220
|
};
|
|
38229
38221
|
|
|
38230
|
-
var __defProp$
|
|
38231
|
-
var __defProps$
|
|
38232
|
-
var __getOwnPropDescs$
|
|
38233
|
-
var __getOwnPropSymbols$
|
|
38234
|
-
var __hasOwnProp$
|
|
38235
|
-
var __propIsEnum$
|
|
38236
|
-
var __defNormalProp$
|
|
38237
|
-
var __spreadValues$
|
|
38222
|
+
var __defProp$i = Object.defineProperty;
|
|
38223
|
+
var __defProps$f = Object.defineProperties;
|
|
38224
|
+
var __getOwnPropDescs$f = Object.getOwnPropertyDescriptors;
|
|
38225
|
+
var __getOwnPropSymbols$k = Object.getOwnPropertySymbols;
|
|
38226
|
+
var __hasOwnProp$k = Object.prototype.hasOwnProperty;
|
|
38227
|
+
var __propIsEnum$k = Object.prototype.propertyIsEnumerable;
|
|
38228
|
+
var __defNormalProp$i = (obj, key, value) => key in obj ? __defProp$i(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
38229
|
+
var __spreadValues$i = (a, b) => {
|
|
38238
38230
|
for (var prop in b || (b = {}))
|
|
38239
|
-
if (__hasOwnProp$
|
|
38240
|
-
__defNormalProp$
|
|
38241
|
-
if (__getOwnPropSymbols$
|
|
38242
|
-
for (var prop of __getOwnPropSymbols$
|
|
38243
|
-
if (__propIsEnum$
|
|
38244
|
-
__defNormalProp$
|
|
38231
|
+
if (__hasOwnProp$k.call(b, prop))
|
|
38232
|
+
__defNormalProp$i(a, prop, b[prop]);
|
|
38233
|
+
if (__getOwnPropSymbols$k)
|
|
38234
|
+
for (var prop of __getOwnPropSymbols$k(b)) {
|
|
38235
|
+
if (__propIsEnum$k.call(b, prop))
|
|
38236
|
+
__defNormalProp$i(a, prop, b[prop]);
|
|
38245
38237
|
}
|
|
38246
38238
|
return a;
|
|
38247
38239
|
};
|
|
38248
|
-
var __spreadProps$
|
|
38240
|
+
var __spreadProps$f = (a, b) => __defProps$f(a, __getOwnPropDescs$f(b));
|
|
38249
38241
|
var __objRest$c = (source, exclude) => {
|
|
38250
38242
|
var target = {};
|
|
38251
38243
|
for (var prop in source)
|
|
38252
|
-
if (__hasOwnProp$
|
|
38244
|
+
if (__hasOwnProp$k.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
38253
38245
|
target[prop] = source[prop];
|
|
38254
|
-
if (source != null && __getOwnPropSymbols$
|
|
38255
|
-
for (var prop of __getOwnPropSymbols$
|
|
38256
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
38246
|
+
if (source != null && __getOwnPropSymbols$k)
|
|
38247
|
+
for (var prop of __getOwnPropSymbols$k(source)) {
|
|
38248
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$k.call(source, prop))
|
|
38257
38249
|
target[prop] = source[prop];
|
|
38258
38250
|
}
|
|
38259
38251
|
return target;
|
|
@@ -38263,7 +38255,7 @@ const useGetShipmentRates = (params) => {
|
|
|
38263
38255
|
const _a = params, { queryFnParams } = _a, rest = __objRest$c(_a, ["queryFnParams"]);
|
|
38264
38256
|
const shipmentId = queryFnParams == null ? void 0 : queryFnParams.shipmentId;
|
|
38265
38257
|
const createdAtStart = queryFnParams == null ? void 0 : queryFnParams.createdAtStart;
|
|
38266
|
-
return reactQuery.useQuery(__spreadProps$
|
|
38258
|
+
return reactQuery.useQuery(__spreadProps$f(__spreadValues$i({
|
|
38267
38259
|
enabled: shipmentId !== void 0
|
|
38268
38260
|
}, rest), {
|
|
38269
38261
|
onError,
|
|
@@ -38278,33 +38270,33 @@ const useGetShipmentRates = (params) => {
|
|
|
38278
38270
|
}));
|
|
38279
38271
|
};
|
|
38280
38272
|
|
|
38281
|
-
var __defProp$
|
|
38282
|
-
var __defProps$
|
|
38283
|
-
var __getOwnPropDescs$
|
|
38284
|
-
var __getOwnPropSymbols$
|
|
38285
|
-
var __hasOwnProp$
|
|
38286
|
-
var __propIsEnum$
|
|
38287
|
-
var __defNormalProp$
|
|
38288
|
-
var __spreadValues$
|
|
38273
|
+
var __defProp$h = Object.defineProperty;
|
|
38274
|
+
var __defProps$e = Object.defineProperties;
|
|
38275
|
+
var __getOwnPropDescs$e = Object.getOwnPropertyDescriptors;
|
|
38276
|
+
var __getOwnPropSymbols$j = Object.getOwnPropertySymbols;
|
|
38277
|
+
var __hasOwnProp$j = Object.prototype.hasOwnProperty;
|
|
38278
|
+
var __propIsEnum$j = Object.prototype.propertyIsEnumerable;
|
|
38279
|
+
var __defNormalProp$h = (obj, key, value) => key in obj ? __defProp$h(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
38280
|
+
var __spreadValues$h = (a, b) => {
|
|
38289
38281
|
for (var prop in b || (b = {}))
|
|
38290
|
-
if (__hasOwnProp$
|
|
38291
|
-
__defNormalProp$
|
|
38292
|
-
if (__getOwnPropSymbols$
|
|
38293
|
-
for (var prop of __getOwnPropSymbols$
|
|
38294
|
-
if (__propIsEnum$
|
|
38295
|
-
__defNormalProp$
|
|
38282
|
+
if (__hasOwnProp$j.call(b, prop))
|
|
38283
|
+
__defNormalProp$h(a, prop, b[prop]);
|
|
38284
|
+
if (__getOwnPropSymbols$j)
|
|
38285
|
+
for (var prop of __getOwnPropSymbols$j(b)) {
|
|
38286
|
+
if (__propIsEnum$j.call(b, prop))
|
|
38287
|
+
__defNormalProp$h(a, prop, b[prop]);
|
|
38296
38288
|
}
|
|
38297
38289
|
return a;
|
|
38298
38290
|
};
|
|
38299
|
-
var __spreadProps$
|
|
38291
|
+
var __spreadProps$e = (a, b) => __defProps$e(a, __getOwnPropDescs$e(b));
|
|
38300
38292
|
var __objRest$b = (source, exclude) => {
|
|
38301
38293
|
var target = {};
|
|
38302
38294
|
for (var prop in source)
|
|
38303
|
-
if (__hasOwnProp$
|
|
38295
|
+
if (__hasOwnProp$j.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
38304
38296
|
target[prop] = source[prop];
|
|
38305
|
-
if (source != null && __getOwnPropSymbols$
|
|
38306
|
-
for (var prop of __getOwnPropSymbols$
|
|
38307
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
38297
|
+
if (source != null && __getOwnPropSymbols$j)
|
|
38298
|
+
for (var prop of __getOwnPropSymbols$j(source)) {
|
|
38299
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$j.call(source, prop))
|
|
38308
38300
|
target[prop] = source[prop];
|
|
38309
38301
|
}
|
|
38310
38302
|
return target;
|
|
@@ -38320,7 +38312,7 @@ const useGetShipment = (params) => {
|
|
|
38320
38312
|
}
|
|
38321
38313
|
return {};
|
|
38322
38314
|
};
|
|
38323
|
-
return reactQuery.useQuery(__spreadProps$
|
|
38315
|
+
return reactQuery.useQuery(__spreadProps$e(__spreadValues$h({}, getQueryProps()), {
|
|
38324
38316
|
enabled: shipmentId !== void 0,
|
|
38325
38317
|
onError,
|
|
38326
38318
|
queryFn: () => {
|
|
@@ -38334,17 +38326,17 @@ const useGetShipment = (params) => {
|
|
|
38334
38326
|
}));
|
|
38335
38327
|
};
|
|
38336
38328
|
|
|
38337
|
-
var __getOwnPropSymbols$
|
|
38338
|
-
var __hasOwnProp$
|
|
38339
|
-
var __propIsEnum$
|
|
38329
|
+
var __getOwnPropSymbols$i = Object.getOwnPropertySymbols;
|
|
38330
|
+
var __hasOwnProp$i = Object.prototype.hasOwnProperty;
|
|
38331
|
+
var __propIsEnum$i = Object.prototype.propertyIsEnumerable;
|
|
38340
38332
|
var __objRest$a = (source, exclude) => {
|
|
38341
38333
|
var target = {};
|
|
38342
38334
|
for (var prop in source)
|
|
38343
|
-
if (__hasOwnProp$
|
|
38335
|
+
if (__hasOwnProp$i.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
38344
38336
|
target[prop] = source[prop];
|
|
38345
|
-
if (source != null && __getOwnPropSymbols$
|
|
38346
|
-
for (var prop of __getOwnPropSymbols$
|
|
38347
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
38337
|
+
if (source != null && __getOwnPropSymbols$i)
|
|
38338
|
+
for (var prop of __getOwnPropSymbols$i(source)) {
|
|
38339
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$i.call(source, prop))
|
|
38348
38340
|
target[prop] = source[prop];
|
|
38349
38341
|
}
|
|
38350
38342
|
return target;
|
|
@@ -38361,33 +38353,33 @@ const useListShipments = (_params) => {
|
|
|
38361
38353
|
});
|
|
38362
38354
|
};
|
|
38363
38355
|
|
|
38364
|
-
var __defProp$
|
|
38365
|
-
var __defProps$
|
|
38366
|
-
var __getOwnPropDescs$
|
|
38367
|
-
var __getOwnPropSymbols$
|
|
38368
|
-
var __hasOwnProp$
|
|
38369
|
-
var __propIsEnum$
|
|
38370
|
-
var __defNormalProp$
|
|
38371
|
-
var __spreadValues$
|
|
38356
|
+
var __defProp$g = Object.defineProperty;
|
|
38357
|
+
var __defProps$d = Object.defineProperties;
|
|
38358
|
+
var __getOwnPropDescs$d = Object.getOwnPropertyDescriptors;
|
|
38359
|
+
var __getOwnPropSymbols$h = Object.getOwnPropertySymbols;
|
|
38360
|
+
var __hasOwnProp$h = Object.prototype.hasOwnProperty;
|
|
38361
|
+
var __propIsEnum$h = Object.prototype.propertyIsEnumerable;
|
|
38362
|
+
var __defNormalProp$g = (obj, key, value) => key in obj ? __defProp$g(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
38363
|
+
var __spreadValues$g = (a, b) => {
|
|
38372
38364
|
for (var prop in b || (b = {}))
|
|
38373
|
-
if (__hasOwnProp$
|
|
38374
|
-
__defNormalProp$
|
|
38375
|
-
if (__getOwnPropSymbols$
|
|
38376
|
-
for (var prop of __getOwnPropSymbols$
|
|
38377
|
-
if (__propIsEnum$
|
|
38378
|
-
__defNormalProp$
|
|
38365
|
+
if (__hasOwnProp$h.call(b, prop))
|
|
38366
|
+
__defNormalProp$g(a, prop, b[prop]);
|
|
38367
|
+
if (__getOwnPropSymbols$h)
|
|
38368
|
+
for (var prop of __getOwnPropSymbols$h(b)) {
|
|
38369
|
+
if (__propIsEnum$h.call(b, prop))
|
|
38370
|
+
__defNormalProp$g(a, prop, b[prop]);
|
|
38379
38371
|
}
|
|
38380
38372
|
return a;
|
|
38381
38373
|
};
|
|
38382
|
-
var __spreadProps$
|
|
38374
|
+
var __spreadProps$d = (a, b) => __defProps$d(a, __getOwnPropDescs$d(b));
|
|
38383
38375
|
var __objRest$9 = (source, exclude) => {
|
|
38384
38376
|
var target = {};
|
|
38385
38377
|
for (var prop in source)
|
|
38386
|
-
if (__hasOwnProp$
|
|
38378
|
+
if (__hasOwnProp$h.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
38387
38379
|
target[prop] = source[prop];
|
|
38388
|
-
if (source != null && __getOwnPropSymbols$
|
|
38389
|
-
for (var prop of __getOwnPropSymbols$
|
|
38390
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
38380
|
+
if (source != null && __getOwnPropSymbols$h)
|
|
38381
|
+
for (var prop of __getOwnPropSymbols$h(source)) {
|
|
38382
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$h.call(source, prop))
|
|
38391
38383
|
target[prop] = source[prop];
|
|
38392
38384
|
}
|
|
38393
38385
|
return target;
|
|
@@ -38395,7 +38387,7 @@ var __objRest$9 = (source, exclude) => {
|
|
|
38395
38387
|
const useGetShipmentByExternalId = (params) => {
|
|
38396
38388
|
const { client } = useShipEngine();
|
|
38397
38389
|
const _a = params, { queryFnParams } = _a, rest = __objRest$9(_a, ["queryFnParams"]);
|
|
38398
|
-
return reactQuery.useQuery(__spreadProps$
|
|
38390
|
+
return reactQuery.useQuery(__spreadProps$d(__spreadValues$g({}, rest), {
|
|
38399
38391
|
onError,
|
|
38400
38392
|
queryFn: () => client.shipments.getByExternalId(queryFnParams.externalId),
|
|
38401
38393
|
queryKey: ["useGetShipmentByExternalId", queryFnParams],
|
|
@@ -38435,47 +38427,6 @@ const useCancelShipment = () => {
|
|
|
38435
38427
|
});
|
|
38436
38428
|
};
|
|
38437
38429
|
|
|
38438
|
-
var __defProp$g = Object.defineProperty;
|
|
38439
|
-
var __defProps$d = Object.defineProperties;
|
|
38440
|
-
var __getOwnPropDescs$d = Object.getOwnPropertyDescriptors;
|
|
38441
|
-
var __getOwnPropSymbols$h = Object.getOwnPropertySymbols;
|
|
38442
|
-
var __hasOwnProp$h = Object.prototype.hasOwnProperty;
|
|
38443
|
-
var __propIsEnum$h = Object.prototype.propertyIsEnumerable;
|
|
38444
|
-
var __defNormalProp$g = (obj, key, value) => key in obj ? __defProp$g(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
38445
|
-
var __spreadValues$g = (a, b) => {
|
|
38446
|
-
for (var prop in b || (b = {}))
|
|
38447
|
-
if (__hasOwnProp$h.call(b, prop))
|
|
38448
|
-
__defNormalProp$g(a, prop, b[prop]);
|
|
38449
|
-
if (__getOwnPropSymbols$h)
|
|
38450
|
-
for (var prop of __getOwnPropSymbols$h(b)) {
|
|
38451
|
-
if (__propIsEnum$h.call(b, prop))
|
|
38452
|
-
__defNormalProp$g(a, prop, b[prop]);
|
|
38453
|
-
}
|
|
38454
|
-
return a;
|
|
38455
|
-
};
|
|
38456
|
-
var __spreadProps$d = (a, b) => __defProps$d(a, __getOwnPropDescs$d(b));
|
|
38457
|
-
var __objRest$8 = (source, exclude) => {
|
|
38458
|
-
var target = {};
|
|
38459
|
-
for (var prop in source)
|
|
38460
|
-
if (__hasOwnProp$h.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
38461
|
-
target[prop] = source[prop];
|
|
38462
|
-
if (source != null && __getOwnPropSymbols$h)
|
|
38463
|
-
for (var prop of __getOwnPropSymbols$h(source)) {
|
|
38464
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$h.call(source, prop))
|
|
38465
|
-
target[prop] = source[prop];
|
|
38466
|
-
}
|
|
38467
|
-
return target;
|
|
38468
|
-
};
|
|
38469
|
-
const useExportShipments = (params) => {
|
|
38470
|
-
const { client } = useShipEngine();
|
|
38471
|
-
const _a = __spreadValues$g({}, params), { queryFnParams } = _a, rest = __objRest$8(_a, ["queryFnParams"]);
|
|
38472
|
-
return reactQuery.useQuery(__spreadProps$d(__spreadValues$g({}, rest), {
|
|
38473
|
-
onError,
|
|
38474
|
-
queryFn: () => client.shipments.export(queryFnParams),
|
|
38475
|
-
queryKey: ["useExportShipments", params]
|
|
38476
|
-
}));
|
|
38477
|
-
};
|
|
38478
|
-
|
|
38479
38430
|
var __defProp$f = Object.defineProperty;
|
|
38480
38431
|
var __defProps$c = Object.defineProperties;
|
|
38481
38432
|
var __getOwnPropDescs$c = Object.getOwnPropertyDescriptors;
|
|
@@ -38495,7 +38446,7 @@ var __spreadValues$f = (a, b) => {
|
|
|
38495
38446
|
return a;
|
|
38496
38447
|
};
|
|
38497
38448
|
var __spreadProps$c = (a, b) => __defProps$c(a, __getOwnPropDescs$c(b));
|
|
38498
|
-
var __objRest$
|
|
38449
|
+
var __objRest$8 = (source, exclude) => {
|
|
38499
38450
|
var target = {};
|
|
38500
38451
|
for (var prop in source)
|
|
38501
38452
|
if (__hasOwnProp$g.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
@@ -38507,10 +38458,51 @@ var __objRest$7 = (source, exclude) => {
|
|
|
38507
38458
|
}
|
|
38508
38459
|
return target;
|
|
38509
38460
|
};
|
|
38510
|
-
const
|
|
38461
|
+
const useExportShipments = (params) => {
|
|
38511
38462
|
const { client } = useShipEngine();
|
|
38512
|
-
const _a = __spreadValues$f({}, params), { queryFnParams } = _a, rest = __objRest$
|
|
38463
|
+
const _a = __spreadValues$f({}, params), { queryFnParams } = _a, rest = __objRest$8(_a, ["queryFnParams"]);
|
|
38513
38464
|
return reactQuery.useQuery(__spreadProps$c(__spreadValues$f({}, rest), {
|
|
38465
|
+
onError,
|
|
38466
|
+
queryFn: () => client.shipments.export(queryFnParams),
|
|
38467
|
+
queryKey: ["useExportShipments", params]
|
|
38468
|
+
}));
|
|
38469
|
+
};
|
|
38470
|
+
|
|
38471
|
+
var __defProp$e = Object.defineProperty;
|
|
38472
|
+
var __defProps$b = Object.defineProperties;
|
|
38473
|
+
var __getOwnPropDescs$b = Object.getOwnPropertyDescriptors;
|
|
38474
|
+
var __getOwnPropSymbols$f = Object.getOwnPropertySymbols;
|
|
38475
|
+
var __hasOwnProp$f = Object.prototype.hasOwnProperty;
|
|
38476
|
+
var __propIsEnum$f = Object.prototype.propertyIsEnumerable;
|
|
38477
|
+
var __defNormalProp$e = (obj, key, value) => key in obj ? __defProp$e(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
38478
|
+
var __spreadValues$e = (a, b) => {
|
|
38479
|
+
for (var prop in b || (b = {}))
|
|
38480
|
+
if (__hasOwnProp$f.call(b, prop))
|
|
38481
|
+
__defNormalProp$e(a, prop, b[prop]);
|
|
38482
|
+
if (__getOwnPropSymbols$f)
|
|
38483
|
+
for (var prop of __getOwnPropSymbols$f(b)) {
|
|
38484
|
+
if (__propIsEnum$f.call(b, prop))
|
|
38485
|
+
__defNormalProp$e(a, prop, b[prop]);
|
|
38486
|
+
}
|
|
38487
|
+
return a;
|
|
38488
|
+
};
|
|
38489
|
+
var __spreadProps$b = (a, b) => __defProps$b(a, __getOwnPropDescs$b(b));
|
|
38490
|
+
var __objRest$7 = (source, exclude) => {
|
|
38491
|
+
var target = {};
|
|
38492
|
+
for (var prop in source)
|
|
38493
|
+
if (__hasOwnProp$f.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
38494
|
+
target[prop] = source[prop];
|
|
38495
|
+
if (source != null && __getOwnPropSymbols$f)
|
|
38496
|
+
for (var prop of __getOwnPropSymbols$f(source)) {
|
|
38497
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$f.call(source, prop))
|
|
38498
|
+
target[prop] = source[prop];
|
|
38499
|
+
}
|
|
38500
|
+
return target;
|
|
38501
|
+
};
|
|
38502
|
+
const useListShippingRules = (params) => {
|
|
38503
|
+
const { client } = useShipEngine();
|
|
38504
|
+
const _a = __spreadValues$e({}, params), { queryFnParams } = _a, rest = __objRest$7(_a, ["queryFnParams"]);
|
|
38505
|
+
return reactQuery.useQuery(__spreadProps$b(__spreadValues$e({}, rest), {
|
|
38514
38506
|
onError,
|
|
38515
38507
|
queryFn: () => {
|
|
38516
38508
|
return client.shippingRules.list(queryFnParams);
|
|
@@ -38616,41 +38608,41 @@ const useEditShippingRule = () => {
|
|
|
38616
38608
|
});
|
|
38617
38609
|
};
|
|
38618
38610
|
|
|
38619
|
-
var __defProp$
|
|
38620
|
-
var __defProps$
|
|
38621
|
-
var __getOwnPropDescs$
|
|
38622
|
-
var __getOwnPropSymbols$
|
|
38623
|
-
var __hasOwnProp$
|
|
38624
|
-
var __propIsEnum$
|
|
38625
|
-
var __defNormalProp$
|
|
38626
|
-
var __spreadValues$
|
|
38611
|
+
var __defProp$d = Object.defineProperty;
|
|
38612
|
+
var __defProps$a = Object.defineProperties;
|
|
38613
|
+
var __getOwnPropDescs$a = Object.getOwnPropertyDescriptors;
|
|
38614
|
+
var __getOwnPropSymbols$e = Object.getOwnPropertySymbols;
|
|
38615
|
+
var __hasOwnProp$e = Object.prototype.hasOwnProperty;
|
|
38616
|
+
var __propIsEnum$e = Object.prototype.propertyIsEnumerable;
|
|
38617
|
+
var __defNormalProp$d = (obj, key, value) => key in obj ? __defProp$d(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
38618
|
+
var __spreadValues$d = (a, b) => {
|
|
38627
38619
|
for (var prop in b || (b = {}))
|
|
38628
|
-
if (__hasOwnProp$
|
|
38629
|
-
__defNormalProp$
|
|
38630
|
-
if (__getOwnPropSymbols$
|
|
38631
|
-
for (var prop of __getOwnPropSymbols$
|
|
38632
|
-
if (__propIsEnum$
|
|
38633
|
-
__defNormalProp$
|
|
38620
|
+
if (__hasOwnProp$e.call(b, prop))
|
|
38621
|
+
__defNormalProp$d(a, prop, b[prop]);
|
|
38622
|
+
if (__getOwnPropSymbols$e)
|
|
38623
|
+
for (var prop of __getOwnPropSymbols$e(b)) {
|
|
38624
|
+
if (__propIsEnum$e.call(b, prop))
|
|
38625
|
+
__defNormalProp$d(a, prop, b[prop]);
|
|
38634
38626
|
}
|
|
38635
38627
|
return a;
|
|
38636
38628
|
};
|
|
38637
|
-
var __spreadProps$
|
|
38629
|
+
var __spreadProps$a = (a, b) => __defProps$a(a, __getOwnPropDescs$a(b));
|
|
38638
38630
|
var __objRest$6 = (source, exclude) => {
|
|
38639
38631
|
var target = {};
|
|
38640
38632
|
for (var prop in source)
|
|
38641
|
-
if (__hasOwnProp$
|
|
38633
|
+
if (__hasOwnProp$e.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
38642
38634
|
target[prop] = source[prop];
|
|
38643
|
-
if (source != null && __getOwnPropSymbols$
|
|
38644
|
-
for (var prop of __getOwnPropSymbols$
|
|
38645
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
38635
|
+
if (source != null && __getOwnPropSymbols$e)
|
|
38636
|
+
for (var prop of __getOwnPropSymbols$e(source)) {
|
|
38637
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$e.call(source, prop))
|
|
38646
38638
|
target[prop] = source[prop];
|
|
38647
38639
|
}
|
|
38648
38640
|
return target;
|
|
38649
38641
|
};
|
|
38650
38642
|
const useGetShippingRuleConditionsOptions = (params) => {
|
|
38651
38643
|
const { client } = useShipEngine();
|
|
38652
|
-
const _a = __spreadValues$
|
|
38653
|
-
return reactQuery.useQuery(__spreadProps$
|
|
38644
|
+
const _a = __spreadValues$d({}, params), { queryFnParams } = _a, rest = __objRest$6(_a, ["queryFnParams"]);
|
|
38645
|
+
return reactQuery.useQuery(__spreadProps$a(__spreadValues$d({}, rest), {
|
|
38654
38646
|
onError,
|
|
38655
38647
|
queryFn: () => {
|
|
38656
38648
|
return client.shippingRules.getConditionOptions(queryFnParams);
|
|
@@ -38660,41 +38652,41 @@ const useGetShippingRuleConditionsOptions = (params) => {
|
|
|
38660
38652
|
}));
|
|
38661
38653
|
};
|
|
38662
38654
|
|
|
38663
|
-
var __defProp$
|
|
38664
|
-
var __defProps$
|
|
38665
|
-
var __getOwnPropDescs$
|
|
38666
|
-
var __getOwnPropSymbols$
|
|
38667
|
-
var __hasOwnProp$
|
|
38668
|
-
var __propIsEnum$
|
|
38669
|
-
var __defNormalProp$
|
|
38670
|
-
var __spreadValues$
|
|
38655
|
+
var __defProp$c = Object.defineProperty;
|
|
38656
|
+
var __defProps$9 = Object.defineProperties;
|
|
38657
|
+
var __getOwnPropDescs$9 = Object.getOwnPropertyDescriptors;
|
|
38658
|
+
var __getOwnPropSymbols$d = Object.getOwnPropertySymbols;
|
|
38659
|
+
var __hasOwnProp$d = Object.prototype.hasOwnProperty;
|
|
38660
|
+
var __propIsEnum$d = Object.prototype.propertyIsEnumerable;
|
|
38661
|
+
var __defNormalProp$c = (obj, key, value) => key in obj ? __defProp$c(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
38662
|
+
var __spreadValues$c = (a, b) => {
|
|
38671
38663
|
for (var prop in b || (b = {}))
|
|
38672
|
-
if (__hasOwnProp$
|
|
38673
|
-
__defNormalProp$
|
|
38674
|
-
if (__getOwnPropSymbols$
|
|
38675
|
-
for (var prop of __getOwnPropSymbols$
|
|
38676
|
-
if (__propIsEnum$
|
|
38677
|
-
__defNormalProp$
|
|
38664
|
+
if (__hasOwnProp$d.call(b, prop))
|
|
38665
|
+
__defNormalProp$c(a, prop, b[prop]);
|
|
38666
|
+
if (__getOwnPropSymbols$d)
|
|
38667
|
+
for (var prop of __getOwnPropSymbols$d(b)) {
|
|
38668
|
+
if (__propIsEnum$d.call(b, prop))
|
|
38669
|
+
__defNormalProp$c(a, prop, b[prop]);
|
|
38678
38670
|
}
|
|
38679
38671
|
return a;
|
|
38680
38672
|
};
|
|
38681
|
-
var __spreadProps$
|
|
38673
|
+
var __spreadProps$9 = (a, b) => __defProps$9(a, __getOwnPropDescs$9(b));
|
|
38682
38674
|
var __objRest$5 = (source, exclude) => {
|
|
38683
38675
|
var target = {};
|
|
38684
38676
|
for (var prop in source)
|
|
38685
|
-
if (__hasOwnProp$
|
|
38677
|
+
if (__hasOwnProp$d.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
38686
38678
|
target[prop] = source[prop];
|
|
38687
|
-
if (source != null && __getOwnPropSymbols$
|
|
38688
|
-
for (var prop of __getOwnPropSymbols$
|
|
38689
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
38679
|
+
if (source != null && __getOwnPropSymbols$d)
|
|
38680
|
+
for (var prop of __getOwnPropSymbols$d(source)) {
|
|
38681
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$d.call(source, prop))
|
|
38690
38682
|
target[prop] = source[prop];
|
|
38691
38683
|
}
|
|
38692
38684
|
return target;
|
|
38693
38685
|
};
|
|
38694
38686
|
const useGetShippingRuleById = (params) => {
|
|
38695
38687
|
const { client } = useShipEngine();
|
|
38696
|
-
const _a = __spreadValues$
|
|
38697
|
-
return reactQuery.useQuery(__spreadProps$
|
|
38688
|
+
const _a = __spreadValues$c({}, params), { queryFnParams } = _a, rest = __objRest$5(_a, ["queryFnParams"]);
|
|
38689
|
+
return reactQuery.useQuery(__spreadProps$9(__spreadValues$c({}, rest), {
|
|
38698
38690
|
onError,
|
|
38699
38691
|
queryFn: () => {
|
|
38700
38692
|
return client.shippingRules.get(queryFnParams);
|
|
@@ -38783,41 +38775,41 @@ const useDeleteWarehouse = () => {
|
|
|
38783
38775
|
});
|
|
38784
38776
|
};
|
|
38785
38777
|
|
|
38786
|
-
var __defProp$
|
|
38787
|
-
var __defProps$
|
|
38788
|
-
var __getOwnPropDescs$
|
|
38789
|
-
var __getOwnPropSymbols$
|
|
38790
|
-
var __hasOwnProp$
|
|
38791
|
-
var __propIsEnum$
|
|
38792
|
-
var __defNormalProp$
|
|
38793
|
-
var __spreadValues$
|
|
38778
|
+
var __defProp$b = Object.defineProperty;
|
|
38779
|
+
var __defProps$8 = Object.defineProperties;
|
|
38780
|
+
var __getOwnPropDescs$8 = Object.getOwnPropertyDescriptors;
|
|
38781
|
+
var __getOwnPropSymbols$c = Object.getOwnPropertySymbols;
|
|
38782
|
+
var __hasOwnProp$c = Object.prototype.hasOwnProperty;
|
|
38783
|
+
var __propIsEnum$c = Object.prototype.propertyIsEnumerable;
|
|
38784
|
+
var __defNormalProp$b = (obj, key, value) => key in obj ? __defProp$b(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
38785
|
+
var __spreadValues$b = (a, b) => {
|
|
38794
38786
|
for (var prop in b || (b = {}))
|
|
38795
|
-
if (__hasOwnProp$
|
|
38796
|
-
__defNormalProp$
|
|
38797
|
-
if (__getOwnPropSymbols$
|
|
38798
|
-
for (var prop of __getOwnPropSymbols$
|
|
38799
|
-
if (__propIsEnum$
|
|
38800
|
-
__defNormalProp$
|
|
38787
|
+
if (__hasOwnProp$c.call(b, prop))
|
|
38788
|
+
__defNormalProp$b(a, prop, b[prop]);
|
|
38789
|
+
if (__getOwnPropSymbols$c)
|
|
38790
|
+
for (var prop of __getOwnPropSymbols$c(b)) {
|
|
38791
|
+
if (__propIsEnum$c.call(b, prop))
|
|
38792
|
+
__defNormalProp$b(a, prop, b[prop]);
|
|
38801
38793
|
}
|
|
38802
38794
|
return a;
|
|
38803
38795
|
};
|
|
38804
|
-
var __spreadProps$
|
|
38796
|
+
var __spreadProps$8 = (a, b) => __defProps$8(a, __getOwnPropDescs$8(b));
|
|
38805
38797
|
var __objRest$4 = (source, exclude) => {
|
|
38806
38798
|
var target = {};
|
|
38807
38799
|
for (var prop in source)
|
|
38808
|
-
if (__hasOwnProp$
|
|
38800
|
+
if (__hasOwnProp$c.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
38809
38801
|
target[prop] = source[prop];
|
|
38810
|
-
if (source != null && __getOwnPropSymbols$
|
|
38811
|
-
for (var prop of __getOwnPropSymbols$
|
|
38812
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
38802
|
+
if (source != null && __getOwnPropSymbols$c)
|
|
38803
|
+
for (var prop of __getOwnPropSymbols$c(source)) {
|
|
38804
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$c.call(source, prop))
|
|
38813
38805
|
target[prop] = source[prop];
|
|
38814
38806
|
}
|
|
38815
38807
|
return target;
|
|
38816
38808
|
};
|
|
38817
38809
|
const useListWarehouses = (params) => {
|
|
38818
38810
|
const { client } = useShipEngine();
|
|
38819
|
-
const _a = __spreadValues$
|
|
38820
|
-
return reactQuery.useQuery(__spreadProps$
|
|
38811
|
+
const _a = __spreadValues$b({}, params), { queryFnParams } = _a, rest = __objRest$4(_a, ["queryFnParams"]);
|
|
38812
|
+
return reactQuery.useQuery(__spreadProps$8(__spreadValues$b({}, rest), {
|
|
38821
38813
|
onError,
|
|
38822
38814
|
queryFn: () => client.warehouses.list(queryFnParams),
|
|
38823
38815
|
queryKey: ["useListWarehouses", queryFnParams],
|
|
@@ -38825,17 +38817,17 @@ const useListWarehouses = (params) => {
|
|
|
38825
38817
|
}));
|
|
38826
38818
|
};
|
|
38827
38819
|
|
|
38828
|
-
var __getOwnPropSymbols$
|
|
38829
|
-
var __hasOwnProp$
|
|
38830
|
-
var __propIsEnum$
|
|
38820
|
+
var __getOwnPropSymbols$b = Object.getOwnPropertySymbols;
|
|
38821
|
+
var __hasOwnProp$b = Object.prototype.hasOwnProperty;
|
|
38822
|
+
var __propIsEnum$b = Object.prototype.propertyIsEnumerable;
|
|
38831
38823
|
var __objRest$3 = (source, exclude) => {
|
|
38832
38824
|
var target = {};
|
|
38833
38825
|
for (var prop in source)
|
|
38834
|
-
if (__hasOwnProp$
|
|
38826
|
+
if (__hasOwnProp$b.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
38835
38827
|
target[prop] = source[prop];
|
|
38836
|
-
if (source != null && __getOwnPropSymbols$
|
|
38837
|
-
for (var prop of __getOwnPropSymbols$
|
|
38838
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
38828
|
+
if (source != null && __getOwnPropSymbols$b)
|
|
38829
|
+
for (var prop of __getOwnPropSymbols$b(source)) {
|
|
38830
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$b.call(source, prop))
|
|
38839
38831
|
target[prop] = source[prop];
|
|
38840
38832
|
}
|
|
38841
38833
|
return target;
|
|
@@ -38915,35 +38907,6 @@ const useUpdateAccountBillingPlan = () => {
|
|
|
38915
38907
|
});
|
|
38916
38908
|
};
|
|
38917
38909
|
|
|
38918
|
-
var __defProp$b = Object.defineProperty;
|
|
38919
|
-
var __defProps$8 = Object.defineProperties;
|
|
38920
|
-
var __getOwnPropDescs$8 = Object.getOwnPropertyDescriptors;
|
|
38921
|
-
var __getOwnPropSymbols$b = Object.getOwnPropertySymbols;
|
|
38922
|
-
var __hasOwnProp$b = Object.prototype.hasOwnProperty;
|
|
38923
|
-
var __propIsEnum$b = Object.prototype.propertyIsEnumerable;
|
|
38924
|
-
var __defNormalProp$b = (obj, key, value) => key in obj ? __defProp$b(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
38925
|
-
var __spreadValues$b = (a, b) => {
|
|
38926
|
-
for (var prop in b || (b = {}))
|
|
38927
|
-
if (__hasOwnProp$b.call(b, prop))
|
|
38928
|
-
__defNormalProp$b(a, prop, b[prop]);
|
|
38929
|
-
if (__getOwnPropSymbols$b)
|
|
38930
|
-
for (var prop of __getOwnPropSymbols$b(b)) {
|
|
38931
|
-
if (__propIsEnum$b.call(b, prop))
|
|
38932
|
-
__defNormalProp$b(a, prop, b[prop]);
|
|
38933
|
-
}
|
|
38934
|
-
return a;
|
|
38935
|
-
};
|
|
38936
|
-
var __spreadProps$8 = (a, b) => __defProps$8(a, __getOwnPropDescs$8(b));
|
|
38937
|
-
const useGetAccountBilling = (params) => {
|
|
38938
|
-
const { client } = useShipEngine();
|
|
38939
|
-
return reactQuery.useQuery(__spreadProps$8(__spreadValues$b({}, params), {
|
|
38940
|
-
onError,
|
|
38941
|
-
queryFn: () => client.accountBilling.get(),
|
|
38942
|
-
queryKey: ["useGetAccountBilling"],
|
|
38943
|
-
select: (result) => result.data
|
|
38944
|
-
}));
|
|
38945
|
-
};
|
|
38946
|
-
|
|
38947
38910
|
var __defProp$a = Object.defineProperty;
|
|
38948
38911
|
var __defProps$7 = Object.defineProperties;
|
|
38949
38912
|
var __getOwnPropDescs$7 = Object.getOwnPropertyDescriptors;
|
|
@@ -38963,6 +38926,35 @@ var __spreadValues$a = (a, b) => {
|
|
|
38963
38926
|
return a;
|
|
38964
38927
|
};
|
|
38965
38928
|
var __spreadProps$7 = (a, b) => __defProps$7(a, __getOwnPropDescs$7(b));
|
|
38929
|
+
const useGetAccountBilling = (params) => {
|
|
38930
|
+
const { client } = useShipEngine();
|
|
38931
|
+
return reactQuery.useQuery(__spreadProps$7(__spreadValues$a({}, params), {
|
|
38932
|
+
onError,
|
|
38933
|
+
queryFn: () => client.accountBilling.get(),
|
|
38934
|
+
queryKey: ["useGetAccountBilling"],
|
|
38935
|
+
select: (result) => result.data
|
|
38936
|
+
}));
|
|
38937
|
+
};
|
|
38938
|
+
|
|
38939
|
+
var __defProp$9 = Object.defineProperty;
|
|
38940
|
+
var __defProps$6 = Object.defineProperties;
|
|
38941
|
+
var __getOwnPropDescs$6 = Object.getOwnPropertyDescriptors;
|
|
38942
|
+
var __getOwnPropSymbols$9 = Object.getOwnPropertySymbols;
|
|
38943
|
+
var __hasOwnProp$9 = Object.prototype.hasOwnProperty;
|
|
38944
|
+
var __propIsEnum$9 = Object.prototype.propertyIsEnumerable;
|
|
38945
|
+
var __defNormalProp$9 = (obj, key, value) => key in obj ? __defProp$9(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
38946
|
+
var __spreadValues$9 = (a, b) => {
|
|
38947
|
+
for (var prop in b || (b = {}))
|
|
38948
|
+
if (__hasOwnProp$9.call(b, prop))
|
|
38949
|
+
__defNormalProp$9(a, prop, b[prop]);
|
|
38950
|
+
if (__getOwnPropSymbols$9)
|
|
38951
|
+
for (var prop of __getOwnPropSymbols$9(b)) {
|
|
38952
|
+
if (__propIsEnum$9.call(b, prop))
|
|
38953
|
+
__defNormalProp$9(a, prop, b[prop]);
|
|
38954
|
+
}
|
|
38955
|
+
return a;
|
|
38956
|
+
};
|
|
38957
|
+
var __spreadProps$6 = (a, b) => __defProps$6(a, __getOwnPropDescs$6(b));
|
|
38966
38958
|
var __async$9 = (__this, __arguments, generator) => {
|
|
38967
38959
|
return new Promise((resolve, reject) => {
|
|
38968
38960
|
var fulfilled = (value) => {
|
|
@@ -38985,7 +38977,7 @@ var __async$9 = (__this, __arguments, generator) => {
|
|
|
38985
38977
|
};
|
|
38986
38978
|
const useUpsertAccountBilling = (params) => {
|
|
38987
38979
|
const { client } = useShipEngine();
|
|
38988
|
-
return reactQuery.useMutation(__spreadProps$
|
|
38980
|
+
return reactQuery.useMutation(__spreadProps$6(__spreadValues$9({}, params), {
|
|
38989
38981
|
mutationFn: (billing) => __async$9(void 0, null, function* () {
|
|
38990
38982
|
const result = yield client.accountBilling.put(billing);
|
|
38991
38983
|
return result.data;
|
|
@@ -38995,28 +38987,28 @@ const useUpsertAccountBilling = (params) => {
|
|
|
38995
38987
|
}));
|
|
38996
38988
|
};
|
|
38997
38989
|
|
|
38998
|
-
var __defProp$
|
|
38999
|
-
var __defProps$
|
|
39000
|
-
var __getOwnPropDescs$
|
|
39001
|
-
var __getOwnPropSymbols$
|
|
39002
|
-
var __hasOwnProp$
|
|
39003
|
-
var __propIsEnum$
|
|
39004
|
-
var __defNormalProp$
|
|
39005
|
-
var __spreadValues$
|
|
38990
|
+
var __defProp$8 = Object.defineProperty;
|
|
38991
|
+
var __defProps$5 = Object.defineProperties;
|
|
38992
|
+
var __getOwnPropDescs$5 = Object.getOwnPropertyDescriptors;
|
|
38993
|
+
var __getOwnPropSymbols$8 = Object.getOwnPropertySymbols;
|
|
38994
|
+
var __hasOwnProp$8 = Object.prototype.hasOwnProperty;
|
|
38995
|
+
var __propIsEnum$8 = Object.prototype.propertyIsEnumerable;
|
|
38996
|
+
var __defNormalProp$8 = (obj, key, value) => key in obj ? __defProp$8(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
38997
|
+
var __spreadValues$8 = (a, b) => {
|
|
39006
38998
|
for (var prop in b || (b = {}))
|
|
39007
|
-
if (__hasOwnProp$
|
|
39008
|
-
__defNormalProp$
|
|
39009
|
-
if (__getOwnPropSymbols$
|
|
39010
|
-
for (var prop of __getOwnPropSymbols$
|
|
39011
|
-
if (__propIsEnum$
|
|
39012
|
-
__defNormalProp$
|
|
38999
|
+
if (__hasOwnProp$8.call(b, prop))
|
|
39000
|
+
__defNormalProp$8(a, prop, b[prop]);
|
|
39001
|
+
if (__getOwnPropSymbols$8)
|
|
39002
|
+
for (var prop of __getOwnPropSymbols$8(b)) {
|
|
39003
|
+
if (__propIsEnum$8.call(b, prop))
|
|
39004
|
+
__defNormalProp$8(a, prop, b[prop]);
|
|
39013
39005
|
}
|
|
39014
39006
|
return a;
|
|
39015
39007
|
};
|
|
39016
|
-
var __spreadProps$
|
|
39008
|
+
var __spreadProps$5 = (a, b) => __defProps$5(a, __getOwnPropDescs$5(b));
|
|
39017
39009
|
const useGetHereToken = (params) => {
|
|
39018
39010
|
const { client } = useShipEngine();
|
|
39019
|
-
return reactQuery.useQuery(__spreadProps$
|
|
39011
|
+
return reactQuery.useQuery(__spreadProps$5(__spreadValues$8({}, params), {
|
|
39020
39012
|
onError,
|
|
39021
39013
|
queryFn: () => client.servicePoints.getHereToken(),
|
|
39022
39014
|
queryKey: ["useGetHereToken"],
|
|
@@ -39126,34 +39118,14 @@ const useCreateSandboxSeller = () => {
|
|
|
39126
39118
|
});
|
|
39127
39119
|
};
|
|
39128
39120
|
|
|
39129
|
-
|
|
39130
|
-
var __defProps$5 = Object.defineProperties;
|
|
39131
|
-
var __getOwnPropDescs$5 = Object.getOwnPropertyDescriptors;
|
|
39132
|
-
var __getOwnPropSymbols$8 = Object.getOwnPropertySymbols;
|
|
39133
|
-
var __hasOwnProp$8 = Object.prototype.hasOwnProperty;
|
|
39134
|
-
var __propIsEnum$8 = Object.prototype.propertyIsEnumerable;
|
|
39135
|
-
var __defNormalProp$8 = (obj, key, value) => key in obj ? __defProp$8(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
39136
|
-
var __spreadValues$8 = (a, b) => {
|
|
39137
|
-
for (var prop in b || (b = {}))
|
|
39138
|
-
if (__hasOwnProp$8.call(b, prop))
|
|
39139
|
-
__defNormalProp$8(a, prop, b[prop]);
|
|
39140
|
-
if (__getOwnPropSymbols$8)
|
|
39141
|
-
for (var prop of __getOwnPropSymbols$8(b)) {
|
|
39142
|
-
if (__propIsEnum$8.call(b, prop))
|
|
39143
|
-
__defNormalProp$8(a, prop, b[prop]);
|
|
39144
|
-
}
|
|
39145
|
-
return a;
|
|
39146
|
-
};
|
|
39147
|
-
var __spreadProps$5 = (a, b) => __defProps$5(a, __getOwnPropDescs$5(b));
|
|
39148
|
-
const useListSandboxSellerIds = (sellerId, params) => {
|
|
39121
|
+
const useListSandboxSellerIds = (sellerId) => {
|
|
39149
39122
|
const { client } = useShipEngine();
|
|
39150
|
-
|
|
39151
|
-
return reactQuery.useQuery(__spreadProps$5(__spreadValues$8({}, queryParams), {
|
|
39123
|
+
return reactQuery.useQuery({
|
|
39152
39124
|
onError,
|
|
39153
39125
|
queryFn: () => client.sellers.listSandboxSellerIds({ sellerId }),
|
|
39154
39126
|
queryKey: ["useListSandboxSellerIds", sellerId],
|
|
39155
39127
|
select: (result) => result.data
|
|
39156
|
-
})
|
|
39128
|
+
});
|
|
39157
39129
|
};
|
|
39158
39130
|
|
|
39159
39131
|
var __defProp$7 = Object.defineProperty;
|