@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.mjs
CHANGED
|
@@ -4883,41 +4883,33 @@ var _getHolder = getHolder$2;
|
|
|
4883
4883
|
|
|
4884
4884
|
/** Used as references for various `Number` constants. */
|
|
4885
4885
|
|
|
4886
|
-
var
|
|
4887
|
-
var hasRequired_isIndex;
|
|
4886
|
+
var MAX_SAFE_INTEGER$1 = 9007199254740991;
|
|
4888
4887
|
|
|
4889
|
-
|
|
4890
|
-
|
|
4891
|
-
hasRequired_isIndex = 1;
|
|
4892
|
-
var MAX_SAFE_INTEGER = 9007199254740991;
|
|
4888
|
+
/** Used to detect unsigned integer values. */
|
|
4889
|
+
var reIsUint = /^(?:0|[1-9]\d*)$/;
|
|
4893
4890
|
|
|
4894
|
-
|
|
4895
|
-
|
|
4896
|
-
|
|
4897
|
-
|
|
4898
|
-
|
|
4899
|
-
|
|
4900
|
-
|
|
4901
|
-
|
|
4902
|
-
|
|
4903
|
-
|
|
4904
|
-
|
|
4905
|
-
function isIndex(value, length) {
|
|
4906
|
-
var type = typeof value;
|
|
4907
|
-
length = length == null ? MAX_SAFE_INTEGER : length;
|
|
4908
|
-
|
|
4909
|
-
return !!length &&
|
|
4910
|
-
(type == 'number' ||
|
|
4911
|
-
(type != 'symbol' && reIsUint.test(value))) &&
|
|
4912
|
-
(value > -1 && value % 1 == 0 && value < length);
|
|
4913
|
-
}
|
|
4891
|
+
/**
|
|
4892
|
+
* Checks if `value` is a valid array-like index.
|
|
4893
|
+
*
|
|
4894
|
+
* @private
|
|
4895
|
+
* @param {*} value The value to check.
|
|
4896
|
+
* @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.
|
|
4897
|
+
* @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
|
|
4898
|
+
*/
|
|
4899
|
+
function isIndex$3(value, length) {
|
|
4900
|
+
var type = typeof value;
|
|
4901
|
+
length = length == null ? MAX_SAFE_INTEGER$1 : length;
|
|
4914
4902
|
|
|
4915
|
-
|
|
4916
|
-
|
|
4903
|
+
return !!length &&
|
|
4904
|
+
(type == 'number' ||
|
|
4905
|
+
(type != 'symbol' && reIsUint.test(value))) &&
|
|
4906
|
+
(value > -1 && value % 1 == 0 && value < length);
|
|
4917
4907
|
}
|
|
4918
4908
|
|
|
4909
|
+
var _isIndex = isIndex$3;
|
|
4910
|
+
|
|
4919
4911
|
var copyArray$2 = _copyArray,
|
|
4920
|
-
isIndex$2 =
|
|
4912
|
+
isIndex$2 = _isIndex;
|
|
4921
4913
|
|
|
4922
4914
|
/* Built-in method references for those with the same name as other `lodash` methods. */
|
|
4923
4915
|
var nativeMin$1 = Math.min;
|
|
@@ -6110,7 +6102,7 @@ var baseTimes = _baseTimes,
|
|
|
6110
6102
|
isArguments$2 = requireIsArguments(),
|
|
6111
6103
|
isArray$f = isArray_1,
|
|
6112
6104
|
isBuffer$4 = isBufferExports,
|
|
6113
|
-
isIndex$1 =
|
|
6105
|
+
isIndex$1 = _isIndex,
|
|
6114
6106
|
isTypedArray$1 = requireIsTypedArray();
|
|
6115
6107
|
|
|
6116
6108
|
/** Used for built-in method references. */
|
|
@@ -9441,7 +9433,7 @@ var _baseHasIn = baseHasIn$1;
|
|
|
9441
9433
|
var castPath = _castPath,
|
|
9442
9434
|
isArguments$1 = requireIsArguments(),
|
|
9443
9435
|
isArray$8 = isArray_1,
|
|
9444
|
-
isIndex =
|
|
9436
|
+
isIndex = _isIndex,
|
|
9445
9437
|
isLength = isLength_1,
|
|
9446
9438
|
toKey$3 = _toKey;
|
|
9447
9439
|
|
|
@@ -10331,7 +10323,7 @@ function require_isIterateeCall () {
|
|
|
10331
10323
|
hasRequired_isIterateeCall = 1;
|
|
10332
10324
|
var eq = requireEq(),
|
|
10333
10325
|
isArrayLike = isArrayLike_1,
|
|
10334
|
-
isIndex =
|
|
10326
|
+
isIndex = _isIndex,
|
|
10335
10327
|
isObject = isObject_1;
|
|
10336
10328
|
|
|
10337
10329
|
/**
|
|
@@ -10813,17 +10805,17 @@ var FeatureId = /* @__PURE__ */ ((FeatureId2) => {
|
|
|
10813
10805
|
return FeatureId2;
|
|
10814
10806
|
})(FeatureId || {});
|
|
10815
10807
|
|
|
10816
|
-
var __getOwnPropSymbols$
|
|
10817
|
-
var __hasOwnProp$
|
|
10818
|
-
var __propIsEnum$
|
|
10808
|
+
var __getOwnPropSymbols$16 = Object.getOwnPropertySymbols;
|
|
10809
|
+
var __hasOwnProp$16 = Object.prototype.hasOwnProperty;
|
|
10810
|
+
var __propIsEnum$16 = Object.prototype.propertyIsEnumerable;
|
|
10819
10811
|
var __objRest$x = (source, exclude) => {
|
|
10820
10812
|
var target = {};
|
|
10821
10813
|
for (var prop in source)
|
|
10822
|
-
if (__hasOwnProp$
|
|
10814
|
+
if (__hasOwnProp$16.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
10823
10815
|
target[prop] = source[prop];
|
|
10824
|
-
if (source != null && __getOwnPropSymbols$
|
|
10825
|
-
for (var prop of __getOwnPropSymbols$
|
|
10826
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
10816
|
+
if (source != null && __getOwnPropSymbols$16)
|
|
10817
|
+
for (var prop of __getOwnPropSymbols$16(source)) {
|
|
10818
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$16.call(source, prop))
|
|
10827
10819
|
target[prop] = source[prop];
|
|
10828
10820
|
}
|
|
10829
10821
|
return target;
|
|
@@ -10959,17 +10951,17 @@ const types = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
|
|
|
10959
10951
|
RateCardStatus
|
|
10960
10952
|
}, Symbol.toStringTag, { value: 'Module' }));
|
|
10961
10953
|
|
|
10962
|
-
var __getOwnPropSymbols$
|
|
10963
|
-
var __hasOwnProp$
|
|
10964
|
-
var __propIsEnum$
|
|
10954
|
+
var __getOwnPropSymbols$15 = Object.getOwnPropertySymbols;
|
|
10955
|
+
var __hasOwnProp$15 = Object.prototype.hasOwnProperty;
|
|
10956
|
+
var __propIsEnum$15 = Object.prototype.propertyIsEnumerable;
|
|
10965
10957
|
var __objRest$w = (source, exclude) => {
|
|
10966
10958
|
var target = {};
|
|
10967
10959
|
for (var prop in source)
|
|
10968
|
-
if (__hasOwnProp$
|
|
10960
|
+
if (__hasOwnProp$15.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
10969
10961
|
target[prop] = source[prop];
|
|
10970
|
-
if (source != null && __getOwnPropSymbols$
|
|
10971
|
-
for (var prop of __getOwnPropSymbols$
|
|
10972
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
10962
|
+
if (source != null && __getOwnPropSymbols$15)
|
|
10963
|
+
for (var prop of __getOwnPropSymbols$15(source)) {
|
|
10964
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$15.call(source, prop))
|
|
10973
10965
|
target[prop] = source[prop];
|
|
10974
10966
|
}
|
|
10975
10967
|
return target;
|
|
@@ -13980,33 +13972,33 @@ const decamelizeKeys = (obj, separator = "_") => {
|
|
|
13980
13972
|
return obj;
|
|
13981
13973
|
};
|
|
13982
13974
|
|
|
13983
|
-
var __defProp$
|
|
13984
|
-
var __defProps$
|
|
13985
|
-
var __getOwnPropDescs$
|
|
13986
|
-
var __getOwnPropSymbols$
|
|
13987
|
-
var __hasOwnProp$
|
|
13988
|
-
var __propIsEnum$
|
|
13989
|
-
var __defNormalProp$
|
|
13990
|
-
var __spreadValues$
|
|
13975
|
+
var __defProp$V = Object.defineProperty;
|
|
13976
|
+
var __defProps$P = Object.defineProperties;
|
|
13977
|
+
var __getOwnPropDescs$P = Object.getOwnPropertyDescriptors;
|
|
13978
|
+
var __getOwnPropSymbols$14 = Object.getOwnPropertySymbols;
|
|
13979
|
+
var __hasOwnProp$14 = Object.prototype.hasOwnProperty;
|
|
13980
|
+
var __propIsEnum$14 = Object.prototype.propertyIsEnumerable;
|
|
13981
|
+
var __defNormalProp$V = (obj, key, value) => key in obj ? __defProp$V(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
13982
|
+
var __spreadValues$V = (a, b) => {
|
|
13991
13983
|
for (var prop in b || (b = {}))
|
|
13992
|
-
if (__hasOwnProp$
|
|
13993
|
-
__defNormalProp$
|
|
13994
|
-
if (__getOwnPropSymbols$
|
|
13995
|
-
for (var prop of __getOwnPropSymbols$
|
|
13996
|
-
if (__propIsEnum$
|
|
13997
|
-
__defNormalProp$
|
|
13984
|
+
if (__hasOwnProp$14.call(b, prop))
|
|
13985
|
+
__defNormalProp$V(a, prop, b[prop]);
|
|
13986
|
+
if (__getOwnPropSymbols$14)
|
|
13987
|
+
for (var prop of __getOwnPropSymbols$14(b)) {
|
|
13988
|
+
if (__propIsEnum$14.call(b, prop))
|
|
13989
|
+
__defNormalProp$V(a, prop, b[prop]);
|
|
13998
13990
|
}
|
|
13999
13991
|
return a;
|
|
14000
13992
|
};
|
|
14001
|
-
var __spreadProps$
|
|
13993
|
+
var __spreadProps$P = (a, b) => __defProps$P(a, __getOwnPropDescs$P(b));
|
|
14002
13994
|
var __objRest$v = (source, exclude) => {
|
|
14003
13995
|
var target = {};
|
|
14004
13996
|
for (var prop in source)
|
|
14005
|
-
if (__hasOwnProp$
|
|
13997
|
+
if (__hasOwnProp$14.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
14006
13998
|
target[prop] = source[prop];
|
|
14007
|
-
if (source != null && __getOwnPropSymbols$
|
|
14008
|
-
for (var prop of __getOwnPropSymbols$
|
|
14009
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
13999
|
+
if (source != null && __getOwnPropSymbols$14)
|
|
14000
|
+
for (var prop of __getOwnPropSymbols$14(source)) {
|
|
14001
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$14.call(source, prop))
|
|
14010
14002
|
target[prop] = source[prop];
|
|
14011
14003
|
}
|
|
14012
14004
|
return target;
|
|
@@ -14056,7 +14048,7 @@ class CarriersAPI {
|
|
|
14056
14048
|
const endUserIpAddress = yield getEndUserIpAddress();
|
|
14057
14049
|
if (!endUserIpAddress)
|
|
14058
14050
|
return Promise.reject([new CodedError("Unable to get IP address")]);
|
|
14059
|
-
return yield this.client.post(`/v1/registration/${carrierCode}`, __spreadProps$
|
|
14051
|
+
return yield this.client.post(`/v1/registration/${carrierCode}`, __spreadProps$P(__spreadValues$V({}, connection), {
|
|
14060
14052
|
endUserIpAddress
|
|
14061
14053
|
}));
|
|
14062
14054
|
});
|
|
@@ -14150,17 +14142,17 @@ class CarriersAPI {
|
|
|
14150
14142
|
}
|
|
14151
14143
|
}
|
|
14152
14144
|
|
|
14153
|
-
var __getOwnPropSymbols$
|
|
14154
|
-
var __hasOwnProp$
|
|
14155
|
-
var __propIsEnum$
|
|
14145
|
+
var __getOwnPropSymbols$13 = Object.getOwnPropertySymbols;
|
|
14146
|
+
var __hasOwnProp$13 = Object.prototype.hasOwnProperty;
|
|
14147
|
+
var __propIsEnum$13 = Object.prototype.propertyIsEnumerable;
|
|
14156
14148
|
var __objRest$u = (source, exclude) => {
|
|
14157
14149
|
var target = {};
|
|
14158
14150
|
for (var prop in source)
|
|
14159
|
-
if (__hasOwnProp$
|
|
14151
|
+
if (__hasOwnProp$13.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
14160
14152
|
target[prop] = source[prop];
|
|
14161
|
-
if (source != null && __getOwnPropSymbols$
|
|
14162
|
-
for (var prop of __getOwnPropSymbols$
|
|
14163
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
14153
|
+
if (source != null && __getOwnPropSymbols$13)
|
|
14154
|
+
for (var prop of __getOwnPropSymbols$13(source)) {
|
|
14155
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$13.call(source, prop))
|
|
14164
14156
|
target[prop] = source[prop];
|
|
14165
14157
|
}
|
|
14166
14158
|
return target;
|
|
@@ -16375,19 +16367,19 @@ class CustomPackagesAPI {
|
|
|
16375
16367
|
}
|
|
16376
16368
|
}
|
|
16377
16369
|
|
|
16378
|
-
var __defProp$
|
|
16379
|
-
var __getOwnPropSymbols$
|
|
16380
|
-
var __hasOwnProp$
|
|
16381
|
-
var __propIsEnum$
|
|
16382
|
-
var __defNormalProp$
|
|
16383
|
-
var __spreadValues$
|
|
16370
|
+
var __defProp$U = Object.defineProperty;
|
|
16371
|
+
var __getOwnPropSymbols$12 = Object.getOwnPropertySymbols;
|
|
16372
|
+
var __hasOwnProp$12 = Object.prototype.hasOwnProperty;
|
|
16373
|
+
var __propIsEnum$12 = Object.prototype.propertyIsEnumerable;
|
|
16374
|
+
var __defNormalProp$U = (obj, key, value) => key in obj ? __defProp$U(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
16375
|
+
var __spreadValues$U = (a, b) => {
|
|
16384
16376
|
for (var prop in b || (b = {}))
|
|
16385
|
-
if (__hasOwnProp$
|
|
16386
|
-
__defNormalProp$
|
|
16387
|
-
if (__getOwnPropSymbols$
|
|
16388
|
-
for (var prop of __getOwnPropSymbols$
|
|
16389
|
-
if (__propIsEnum$
|
|
16390
|
-
__defNormalProp$
|
|
16377
|
+
if (__hasOwnProp$12.call(b, prop))
|
|
16378
|
+
__defNormalProp$U(a, prop, b[prop]);
|
|
16379
|
+
if (__getOwnPropSymbols$12)
|
|
16380
|
+
for (var prop of __getOwnPropSymbols$12(b)) {
|
|
16381
|
+
if (__propIsEnum$12.call(b, prop))
|
|
16382
|
+
__defNormalProp$U(a, prop, b[prop]);
|
|
16391
16383
|
}
|
|
16392
16384
|
return a;
|
|
16393
16385
|
};
|
|
@@ -16435,7 +16427,7 @@ class FundingSourcesAPI {
|
|
|
16435
16427
|
if (!endUserIpAddress) {
|
|
16436
16428
|
return Promise.reject([new CodedError("Unable to get IP address")]);
|
|
16437
16429
|
}
|
|
16438
|
-
return yield this.client.post("/v1/funding_sources", __spreadValues$
|
|
16430
|
+
return yield this.client.post("/v1/funding_sources", __spreadValues$U({
|
|
16439
16431
|
endUserIpAddress
|
|
16440
16432
|
}, createFundingSource));
|
|
16441
16433
|
});
|
|
@@ -16454,7 +16446,7 @@ class FundingSourcesAPI {
|
|
|
16454
16446
|
{
|
|
16455
16447
|
billingInfo,
|
|
16456
16448
|
endUserIpAddress,
|
|
16457
|
-
paymentMethod: __spreadValues$
|
|
16449
|
+
paymentMethod: __spreadValues$U({
|
|
16458
16450
|
creditCardInfo
|
|
16459
16451
|
}, auctanePayInfo)
|
|
16460
16452
|
}
|
|
@@ -16469,7 +16461,7 @@ class FundingSourcesAPI {
|
|
|
16469
16461
|
if (!endUserIpAddress) {
|
|
16470
16462
|
return Promise.reject([new CodedError("Unable to get IP address")]);
|
|
16471
16463
|
}
|
|
16472
|
-
return yield this.client.post("/v1/registration/funding_source", __spreadValues$
|
|
16464
|
+
return yield this.client.post("/v1/registration/funding_source", __spreadValues$U({
|
|
16473
16465
|
endUserIpAddress
|
|
16474
16466
|
}, carrier));
|
|
16475
16467
|
});
|
|
@@ -16661,17 +16653,17 @@ class LabelsAPI {
|
|
|
16661
16653
|
}
|
|
16662
16654
|
}
|
|
16663
16655
|
|
|
16664
|
-
var __getOwnPropSymbols$
|
|
16665
|
-
var __hasOwnProp$
|
|
16666
|
-
var __propIsEnum$
|
|
16656
|
+
var __getOwnPropSymbols$11 = Object.getOwnPropertySymbols;
|
|
16657
|
+
var __hasOwnProp$11 = Object.prototype.hasOwnProperty;
|
|
16658
|
+
var __propIsEnum$11 = Object.prototype.propertyIsEnumerable;
|
|
16667
16659
|
var __objRest$t = (source, exclude) => {
|
|
16668
16660
|
var target = {};
|
|
16669
16661
|
for (var prop in source)
|
|
16670
|
-
if (__hasOwnProp$
|
|
16662
|
+
if (__hasOwnProp$11.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
16671
16663
|
target[prop] = source[prop];
|
|
16672
|
-
if (source != null && __getOwnPropSymbols$
|
|
16673
|
-
for (var prop of __getOwnPropSymbols$
|
|
16674
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
16664
|
+
if (source != null && __getOwnPropSymbols$11)
|
|
16665
|
+
for (var prop of __getOwnPropSymbols$11(source)) {
|
|
16666
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$11.call(source, prop))
|
|
16675
16667
|
target[prop] = source[prop];
|
|
16676
16668
|
}
|
|
16677
16669
|
return target;
|
|
@@ -16792,19 +16784,19 @@ class RateCardsAPI {
|
|
|
16792
16784
|
}
|
|
16793
16785
|
}
|
|
16794
16786
|
|
|
16795
|
-
var __defProp$
|
|
16796
|
-
var __getOwnPropSymbols$
|
|
16797
|
-
var __hasOwnProp$
|
|
16798
|
-
var __propIsEnum$
|
|
16799
|
-
var __defNormalProp$
|
|
16800
|
-
var __spreadValues$
|
|
16787
|
+
var __defProp$T = Object.defineProperty;
|
|
16788
|
+
var __getOwnPropSymbols$10 = Object.getOwnPropertySymbols;
|
|
16789
|
+
var __hasOwnProp$10 = Object.prototype.hasOwnProperty;
|
|
16790
|
+
var __propIsEnum$10 = Object.prototype.propertyIsEnumerable;
|
|
16791
|
+
var __defNormalProp$T = (obj, key, value) => key in obj ? __defProp$T(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
16792
|
+
var __spreadValues$T = (a, b) => {
|
|
16801
16793
|
for (var prop in b || (b = {}))
|
|
16802
|
-
if (__hasOwnProp$
|
|
16803
|
-
__defNormalProp$
|
|
16804
|
-
if (__getOwnPropSymbols$
|
|
16805
|
-
for (var prop of __getOwnPropSymbols$
|
|
16806
|
-
if (__propIsEnum$
|
|
16807
|
-
__defNormalProp$
|
|
16794
|
+
if (__hasOwnProp$10.call(b, prop))
|
|
16795
|
+
__defNormalProp$T(a, prop, b[prop]);
|
|
16796
|
+
if (__getOwnPropSymbols$10)
|
|
16797
|
+
for (var prop of __getOwnPropSymbols$10(b)) {
|
|
16798
|
+
if (__propIsEnum$10.call(b, prop))
|
|
16799
|
+
__defNormalProp$T(a, prop, b[prop]);
|
|
16808
16800
|
}
|
|
16809
16801
|
return a;
|
|
16810
16802
|
};
|
|
@@ -16826,7 +16818,7 @@ class RatesAPI {
|
|
|
16826
16818
|
* method.
|
|
16827
16819
|
*/
|
|
16828
16820
|
this.estimate = (params) => {
|
|
16829
|
-
return this.client.post("/v1/rates/estimate", __spreadValues$
|
|
16821
|
+
return this.client.post("/v1/rates/estimate", __spreadValues$T({}, params));
|
|
16830
16822
|
};
|
|
16831
16823
|
this.client = client;
|
|
16832
16824
|
}
|
|
@@ -17010,19 +17002,19 @@ class SellersAPI {
|
|
|
17010
17002
|
}
|
|
17011
17003
|
}
|
|
17012
17004
|
|
|
17013
|
-
var __defProp$
|
|
17014
|
-
var __getOwnPropSymbols
|
|
17015
|
-
var __hasOwnProp
|
|
17016
|
-
var __propIsEnum
|
|
17017
|
-
var __defNormalProp$
|
|
17018
|
-
var __spreadValues$
|
|
17005
|
+
var __defProp$S = Object.defineProperty;
|
|
17006
|
+
var __getOwnPropSymbols$$ = Object.getOwnPropertySymbols;
|
|
17007
|
+
var __hasOwnProp$$ = Object.prototype.hasOwnProperty;
|
|
17008
|
+
var __propIsEnum$$ = Object.prototype.propertyIsEnumerable;
|
|
17009
|
+
var __defNormalProp$S = (obj, key, value) => key in obj ? __defProp$S(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
17010
|
+
var __spreadValues$S = (a, b) => {
|
|
17019
17011
|
for (var prop in b || (b = {}))
|
|
17020
|
-
if (__hasOwnProp
|
|
17021
|
-
__defNormalProp$
|
|
17022
|
-
if (__getOwnPropSymbols
|
|
17023
|
-
for (var prop of __getOwnPropSymbols
|
|
17024
|
-
if (__propIsEnum
|
|
17025
|
-
__defNormalProp$
|
|
17012
|
+
if (__hasOwnProp$$.call(b, prop))
|
|
17013
|
+
__defNormalProp$S(a, prop, b[prop]);
|
|
17014
|
+
if (__getOwnPropSymbols$$)
|
|
17015
|
+
for (var prop of __getOwnPropSymbols$$(b)) {
|
|
17016
|
+
if (__propIsEnum$$.call(b, prop))
|
|
17017
|
+
__defNormalProp$S(a, prop, b[prop]);
|
|
17026
17018
|
}
|
|
17027
17019
|
return a;
|
|
17028
17020
|
};
|
|
@@ -17034,7 +17026,7 @@ class ServicePointsAPI {
|
|
|
17034
17026
|
* Either an address, coordinates, or an address query
|
|
17035
17027
|
*/
|
|
17036
17028
|
this.list = (options) => {
|
|
17037
|
-
return this.client.post("/v1/service_points/list", __spreadValues$
|
|
17029
|
+
return this.client.post("/v1/service_points/list", __spreadValues$S({}, options));
|
|
17038
17030
|
};
|
|
17039
17031
|
/**
|
|
17040
17032
|
* Get a specific service point by its carrier code, country code, and id
|
|
@@ -34518,33 +34510,33 @@ class WebhooksAPI {
|
|
|
34518
34510
|
}
|
|
34519
34511
|
}
|
|
34520
34512
|
|
|
34521
|
-
var __defProp$
|
|
34522
|
-
var __defProps$
|
|
34523
|
-
var __getOwnPropDescs$
|
|
34524
|
-
var __getOwnPropSymbols
|
|
34525
|
-
var __hasOwnProp
|
|
34526
|
-
var __propIsEnum
|
|
34527
|
-
var __defNormalProp$
|
|
34528
|
-
var __spreadValues$
|
|
34513
|
+
var __defProp$R = Object.defineProperty;
|
|
34514
|
+
var __defProps$O = Object.defineProperties;
|
|
34515
|
+
var __getOwnPropDescs$O = Object.getOwnPropertyDescriptors;
|
|
34516
|
+
var __getOwnPropSymbols$_ = Object.getOwnPropertySymbols;
|
|
34517
|
+
var __hasOwnProp$_ = Object.prototype.hasOwnProperty;
|
|
34518
|
+
var __propIsEnum$_ = Object.prototype.propertyIsEnumerable;
|
|
34519
|
+
var __defNormalProp$R = (obj, key, value) => key in obj ? __defProp$R(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
34520
|
+
var __spreadValues$R = (a, b) => {
|
|
34529
34521
|
for (var prop in b || (b = {}))
|
|
34530
|
-
if (__hasOwnProp
|
|
34531
|
-
__defNormalProp$
|
|
34532
|
-
if (__getOwnPropSymbols
|
|
34533
|
-
for (var prop of __getOwnPropSymbols
|
|
34534
|
-
if (__propIsEnum
|
|
34535
|
-
__defNormalProp$
|
|
34522
|
+
if (__hasOwnProp$_.call(b, prop))
|
|
34523
|
+
__defNormalProp$R(a, prop, b[prop]);
|
|
34524
|
+
if (__getOwnPropSymbols$_)
|
|
34525
|
+
for (var prop of __getOwnPropSymbols$_(b)) {
|
|
34526
|
+
if (__propIsEnum$_.call(b, prop))
|
|
34527
|
+
__defNormalProp$R(a, prop, b[prop]);
|
|
34536
34528
|
}
|
|
34537
34529
|
return a;
|
|
34538
34530
|
};
|
|
34539
|
-
var __spreadProps$
|
|
34531
|
+
var __spreadProps$O = (a, b) => __defProps$O(a, __getOwnPropDescs$O(b));
|
|
34540
34532
|
var __objRest$s = (source, exclude) => {
|
|
34541
34533
|
var target = {};
|
|
34542
34534
|
for (var prop in source)
|
|
34543
|
-
if (__hasOwnProp
|
|
34535
|
+
if (__hasOwnProp$_.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
34544
34536
|
target[prop] = source[prop];
|
|
34545
|
-
if (source != null && __getOwnPropSymbols
|
|
34546
|
-
for (var prop of __getOwnPropSymbols
|
|
34547
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum
|
|
34537
|
+
if (source != null && __getOwnPropSymbols$_)
|
|
34538
|
+
for (var prop of __getOwnPropSymbols$_(source)) {
|
|
34539
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$_.call(source, prop))
|
|
34548
34540
|
target[prop] = source[prop];
|
|
34549
34541
|
}
|
|
34550
34542
|
return target;
|
|
@@ -34572,7 +34564,7 @@ var __async$16 = (__this, __arguments, generator) => {
|
|
|
34572
34564
|
const logger$1 = E({
|
|
34573
34565
|
level: process.env.NODE_ENV === "production" ? "fatal" : "info",
|
|
34574
34566
|
name: "shipengine-api",
|
|
34575
|
-
serializers: __spreadProps$
|
|
34567
|
+
serializers: __spreadProps$O(__spreadValues$R({}, k), {
|
|
34576
34568
|
req: (req) => ({
|
|
34577
34569
|
headers: req.headers,
|
|
34578
34570
|
method: req.method,
|
|
@@ -34597,7 +34589,7 @@ class ShipEngineAPI {
|
|
|
34597
34589
|
this.getSandboxToken = getSandboxToken;
|
|
34598
34590
|
const client = axios.create({
|
|
34599
34591
|
baseURL,
|
|
34600
|
-
headers: __spreadProps$
|
|
34592
|
+
headers: __spreadProps$O(__spreadValues$R({}, headers), {
|
|
34601
34593
|
"Content-Type": "application/json"
|
|
34602
34594
|
}),
|
|
34603
34595
|
paramsSerializer: (params) => lib.stringify(decamelizeKeys(params), { arrayFormat: "brackets" }),
|
|
@@ -35041,25 +35033,25 @@ const delay = (ms) => new Promise((resolve) => {
|
|
|
35041
35033
|
|
|
35042
35034
|
const onError = (_errors) => _default();
|
|
35043
35035
|
|
|
35044
|
-
var __defProp$
|
|
35045
|
-
var __defProps$
|
|
35046
|
-
var __getOwnPropDescs$
|
|
35047
|
-
var __getOwnPropSymbols$
|
|
35048
|
-
var __hasOwnProp$
|
|
35049
|
-
var __propIsEnum$
|
|
35050
|
-
var __defNormalProp$
|
|
35051
|
-
var __spreadValues$
|
|
35036
|
+
var __defProp$Q = Object.defineProperty;
|
|
35037
|
+
var __defProps$N = Object.defineProperties;
|
|
35038
|
+
var __getOwnPropDescs$N = Object.getOwnPropertyDescriptors;
|
|
35039
|
+
var __getOwnPropSymbols$Z = Object.getOwnPropertySymbols;
|
|
35040
|
+
var __hasOwnProp$Z = Object.prototype.hasOwnProperty;
|
|
35041
|
+
var __propIsEnum$Z = Object.prototype.propertyIsEnumerable;
|
|
35042
|
+
var __defNormalProp$Q = (obj, key, value) => key in obj ? __defProp$Q(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
35043
|
+
var __spreadValues$Q = (a, b) => {
|
|
35052
35044
|
for (var prop in b || (b = {}))
|
|
35053
|
-
if (__hasOwnProp$
|
|
35054
|
-
__defNormalProp$
|
|
35055
|
-
if (__getOwnPropSymbols$
|
|
35056
|
-
for (var prop of __getOwnPropSymbols$
|
|
35057
|
-
if (__propIsEnum$
|
|
35058
|
-
__defNormalProp$
|
|
35045
|
+
if (__hasOwnProp$Z.call(b, prop))
|
|
35046
|
+
__defNormalProp$Q(a, prop, b[prop]);
|
|
35047
|
+
if (__getOwnPropSymbols$Z)
|
|
35048
|
+
for (var prop of __getOwnPropSymbols$Z(b)) {
|
|
35049
|
+
if (__propIsEnum$Z.call(b, prop))
|
|
35050
|
+
__defNormalProp$Q(a, prop, b[prop]);
|
|
35059
35051
|
}
|
|
35060
35052
|
return a;
|
|
35061
35053
|
};
|
|
35062
|
-
var __spreadProps$
|
|
35054
|
+
var __spreadProps$N = (a, b) => __defProps$N(a, __getOwnPropDescs$N(b));
|
|
35063
35055
|
const streams = [];
|
|
35064
35056
|
if (process.env.NODE_ENV === "production") {
|
|
35065
35057
|
streams.push({
|
|
@@ -35068,7 +35060,7 @@ if (process.env.NODE_ENV === "production") {
|
|
|
35068
35060
|
}
|
|
35069
35061
|
const logger = E({
|
|
35070
35062
|
name: "shipengine",
|
|
35071
|
-
serializers: __spreadProps$
|
|
35063
|
+
serializers: __spreadProps$N(__spreadValues$Q({}, k), {
|
|
35072
35064
|
req: (req) => ({
|
|
35073
35065
|
headers: req.headers,
|
|
35074
35066
|
method: req.method,
|
|
@@ -35241,35 +35233,6 @@ const useUpdateAccountSettings = () => {
|
|
|
35241
35233
|
});
|
|
35242
35234
|
};
|
|
35243
35235
|
|
|
35244
|
-
var __defProp$Q = Object.defineProperty;
|
|
35245
|
-
var __defProps$N = Object.defineProperties;
|
|
35246
|
-
var __getOwnPropDescs$N = Object.getOwnPropertyDescriptors;
|
|
35247
|
-
var __getOwnPropSymbols$Z = Object.getOwnPropertySymbols;
|
|
35248
|
-
var __hasOwnProp$Z = Object.prototype.hasOwnProperty;
|
|
35249
|
-
var __propIsEnum$Z = Object.prototype.propertyIsEnumerable;
|
|
35250
|
-
var __defNormalProp$Q = (obj, key, value) => key in obj ? __defProp$Q(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
35251
|
-
var __spreadValues$Q = (a, b) => {
|
|
35252
|
-
for (var prop in b || (b = {}))
|
|
35253
|
-
if (__hasOwnProp$Z.call(b, prop))
|
|
35254
|
-
__defNormalProp$Q(a, prop, b[prop]);
|
|
35255
|
-
if (__getOwnPropSymbols$Z)
|
|
35256
|
-
for (var prop of __getOwnPropSymbols$Z(b)) {
|
|
35257
|
-
if (__propIsEnum$Z.call(b, prop))
|
|
35258
|
-
__defNormalProp$Q(a, prop, b[prop]);
|
|
35259
|
-
}
|
|
35260
|
-
return a;
|
|
35261
|
-
};
|
|
35262
|
-
var __spreadProps$N = (a, b) => __defProps$N(a, __getOwnPropDescs$N(b));
|
|
35263
|
-
const useListAccountAddons = (params) => {
|
|
35264
|
-
const { client } = useShipEngine();
|
|
35265
|
-
return useQuery(__spreadProps$N(__spreadValues$Q({}, params), {
|
|
35266
|
-
onError,
|
|
35267
|
-
queryFn: () => client.accountAddons.list(),
|
|
35268
|
-
queryKey: ["useListAccountAddons"],
|
|
35269
|
-
select: (result) => result.data.addons
|
|
35270
|
-
}));
|
|
35271
|
-
};
|
|
35272
|
-
|
|
35273
35236
|
var __defProp$P = Object.defineProperty;
|
|
35274
35237
|
var __defProps$M = Object.defineProperties;
|
|
35275
35238
|
var __getOwnPropDescs$M = Object.getOwnPropertyDescriptors;
|
|
@@ -35289,35 +35252,13 @@ var __spreadValues$P = (a, b) => {
|
|
|
35289
35252
|
return a;
|
|
35290
35253
|
};
|
|
35291
35254
|
var __spreadProps$M = (a, b) => __defProps$M(a, __getOwnPropDescs$M(b));
|
|
35292
|
-
|
|
35293
|
-
return new Promise((resolve, reject) => {
|
|
35294
|
-
var fulfilled = (value) => {
|
|
35295
|
-
try {
|
|
35296
|
-
step(generator.next(value));
|
|
35297
|
-
} catch (e) {
|
|
35298
|
-
reject(e);
|
|
35299
|
-
}
|
|
35300
|
-
};
|
|
35301
|
-
var rejected = (value) => {
|
|
35302
|
-
try {
|
|
35303
|
-
step(generator.throw(value));
|
|
35304
|
-
} catch (e) {
|
|
35305
|
-
reject(e);
|
|
35306
|
-
}
|
|
35307
|
-
};
|
|
35308
|
-
var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
|
|
35309
|
-
step((generator = generator.apply(__this, __arguments)).next());
|
|
35310
|
-
});
|
|
35311
|
-
};
|
|
35312
|
-
const useEnableAccountAddon = (params) => {
|
|
35255
|
+
const useListAccountAddons = (params) => {
|
|
35313
35256
|
const { client } = useShipEngine();
|
|
35314
|
-
return
|
|
35315
|
-
|
|
35316
|
-
|
|
35317
|
-
|
|
35318
|
-
|
|
35319
|
-
mutationKey: ["useEnableAccountAddon"],
|
|
35320
|
-
onError
|
|
35257
|
+
return useQuery(__spreadProps$M(__spreadValues$P({}, params), {
|
|
35258
|
+
onError,
|
|
35259
|
+
queryFn: () => client.accountAddons.list(),
|
|
35260
|
+
queryKey: ["useListAccountAddons"],
|
|
35261
|
+
select: (result) => result.data.addons
|
|
35321
35262
|
}));
|
|
35322
35263
|
};
|
|
35323
35264
|
|
|
@@ -35340,7 +35281,7 @@ var __spreadValues$O = (a, b) => {
|
|
|
35340
35281
|
return a;
|
|
35341
35282
|
};
|
|
35342
35283
|
var __spreadProps$L = (a, b) => __defProps$L(a, __getOwnPropDescs$L(b));
|
|
35343
|
-
var __async$
|
|
35284
|
+
var __async$11 = (__this, __arguments, generator) => {
|
|
35344
35285
|
return new Promise((resolve, reject) => {
|
|
35345
35286
|
var fulfilled = (value) => {
|
|
35346
35287
|
try {
|
|
@@ -35360,14 +35301,14 @@ var __async$10 = (__this, __arguments, generator) => {
|
|
|
35360
35301
|
step((generator = generator.apply(__this, __arguments)).next());
|
|
35361
35302
|
});
|
|
35362
35303
|
};
|
|
35363
|
-
const
|
|
35304
|
+
const useEnableAccountAddon = (params) => {
|
|
35364
35305
|
const { client } = useShipEngine();
|
|
35365
35306
|
return useMutation(__spreadProps$L(__spreadValues$O({}, params), {
|
|
35366
|
-
mutationFn: (addonType) => __async$
|
|
35367
|
-
const result = yield client.accountAddons.
|
|
35307
|
+
mutationFn: (addonType) => __async$11(void 0, null, function* () {
|
|
35308
|
+
const result = yield client.accountAddons.enable(addonType);
|
|
35368
35309
|
return result.data;
|
|
35369
35310
|
}),
|
|
35370
|
-
mutationKey: ["
|
|
35311
|
+
mutationKey: ["useEnableAccountAddon"],
|
|
35371
35312
|
onError
|
|
35372
35313
|
}));
|
|
35373
35314
|
};
|
|
@@ -35391,17 +35332,7 @@ var __spreadValues$N = (a, b) => {
|
|
|
35391
35332
|
return a;
|
|
35392
35333
|
};
|
|
35393
35334
|
var __spreadProps$K = (a, b) => __defProps$K(a, __getOwnPropDescs$K(b));
|
|
35394
|
-
|
|
35395
|
-
const { client } = useShipEngine();
|
|
35396
|
-
return useQuery(__spreadProps$K(__spreadValues$N({}, params), {
|
|
35397
|
-
onError,
|
|
35398
|
-
queryFn: () => client.accountFeatures.list(),
|
|
35399
|
-
queryKey: ["useListAccountFeatures"],
|
|
35400
|
-
select: (result) => result.data.features
|
|
35401
|
-
}));
|
|
35402
|
-
};
|
|
35403
|
-
|
|
35404
|
-
var __async$$ = (__this, __arguments, generator) => {
|
|
35335
|
+
var __async$10 = (__this, __arguments, generator) => {
|
|
35405
35336
|
return new Promise((resolve, reject) => {
|
|
35406
35337
|
var fulfilled = (value) => {
|
|
35407
35338
|
try {
|
|
@@ -35421,16 +35352,16 @@ var __async$$ = (__this, __arguments, generator) => {
|
|
|
35421
35352
|
step((generator = generator.apply(__this, __arguments)).next());
|
|
35422
35353
|
});
|
|
35423
35354
|
};
|
|
35424
|
-
const
|
|
35355
|
+
const useDisableAccountAddon = (params) => {
|
|
35425
35356
|
const { client } = useShipEngine();
|
|
35426
|
-
return useMutation({
|
|
35427
|
-
mutationFn: (
|
|
35428
|
-
const result = yield client.
|
|
35357
|
+
return useMutation(__spreadProps$K(__spreadValues$N({}, params), {
|
|
35358
|
+
mutationFn: (addonType) => __async$10(void 0, null, function* () {
|
|
35359
|
+
const result = yield client.accountAddons.disable(addonType);
|
|
35429
35360
|
return result.data;
|
|
35430
35361
|
}),
|
|
35431
|
-
mutationKey: ["
|
|
35362
|
+
mutationKey: ["useDisableAccountAddon"],
|
|
35432
35363
|
onError
|
|
35433
|
-
});
|
|
35364
|
+
}));
|
|
35434
35365
|
};
|
|
35435
35366
|
|
|
35436
35367
|
var __defProp$M = Object.defineProperty;
|
|
@@ -35452,7 +35383,17 @@ var __spreadValues$M = (a, b) => {
|
|
|
35452
35383
|
return a;
|
|
35453
35384
|
};
|
|
35454
35385
|
var __spreadProps$J = (a, b) => __defProps$J(a, __getOwnPropDescs$J(b));
|
|
35455
|
-
|
|
35386
|
+
const useListAccountFeatures = (params) => {
|
|
35387
|
+
const { client } = useShipEngine();
|
|
35388
|
+
return useQuery(__spreadProps$J(__spreadValues$M({}, params), {
|
|
35389
|
+
onError,
|
|
35390
|
+
queryFn: () => client.accountFeatures.list(),
|
|
35391
|
+
queryKey: ["useListAccountFeatures"],
|
|
35392
|
+
select: (result) => result.data.features
|
|
35393
|
+
}));
|
|
35394
|
+
};
|
|
35395
|
+
|
|
35396
|
+
var __async$$ = (__this, __arguments, generator) => {
|
|
35456
35397
|
return new Promise((resolve, reject) => {
|
|
35457
35398
|
var fulfilled = (value) => {
|
|
35458
35399
|
try {
|
|
@@ -35472,15 +35413,16 @@ var __async$_ = (__this, __arguments, generator) => {
|
|
|
35472
35413
|
step((generator = generator.apply(__this, __arguments)).next());
|
|
35473
35414
|
});
|
|
35474
35415
|
};
|
|
35475
|
-
const
|
|
35416
|
+
const useRequestAccountFeature = () => {
|
|
35476
35417
|
const { client } = useShipEngine();
|
|
35477
|
-
return useMutation(
|
|
35478
|
-
mutationFn: () => __async
|
|
35479
|
-
yield client.
|
|
35418
|
+
return useMutation({
|
|
35419
|
+
mutationFn: (request) => __async$$(void 0, null, function* () {
|
|
35420
|
+
const result = yield client.accountFeatures.request(request);
|
|
35421
|
+
return result.data;
|
|
35480
35422
|
}),
|
|
35481
|
-
mutationKey: ["
|
|
35423
|
+
mutationKey: ["useRequestAccountFeature"],
|
|
35482
35424
|
onError
|
|
35483
|
-
})
|
|
35425
|
+
});
|
|
35484
35426
|
};
|
|
35485
35427
|
|
|
35486
35428
|
var __defProp$L = Object.defineProperty;
|
|
@@ -35502,7 +35444,7 @@ var __spreadValues$L = (a, b) => {
|
|
|
35502
35444
|
return a;
|
|
35503
35445
|
};
|
|
35504
35446
|
var __spreadProps$I = (a, b) => __defProps$I(a, __getOwnPropDescs$I(b));
|
|
35505
|
-
var __async$
|
|
35447
|
+
var __async$_ = (__this, __arguments, generator) => {
|
|
35506
35448
|
return new Promise((resolve, reject) => {
|
|
35507
35449
|
var fulfilled = (value) => {
|
|
35508
35450
|
try {
|
|
@@ -35522,13 +35464,13 @@ var __async$Z = (__this, __arguments, generator) => {
|
|
|
35522
35464
|
step((generator = generator.apply(__this, __arguments)).next());
|
|
35523
35465
|
});
|
|
35524
35466
|
};
|
|
35525
|
-
const
|
|
35467
|
+
const useDisableRefundAssist = (params) => {
|
|
35526
35468
|
const { client } = useShipEngine();
|
|
35527
35469
|
return useMutation(__spreadProps$I(__spreadValues$L({}, params), {
|
|
35528
|
-
mutationFn: () => __async$
|
|
35529
|
-
yield client.accountRefundAssist.
|
|
35470
|
+
mutationFn: () => __async$_(void 0, null, function* () {
|
|
35471
|
+
yield client.accountRefundAssist.disable();
|
|
35530
35472
|
}),
|
|
35531
|
-
mutationKey: ["
|
|
35473
|
+
mutationKey: ["useDisableRefundAssist"],
|
|
35532
35474
|
onError
|
|
35533
35475
|
}));
|
|
35534
35476
|
};
|
|
@@ -35552,9 +35494,59 @@ var __spreadValues$K = (a, b) => {
|
|
|
35552
35494
|
return a;
|
|
35553
35495
|
};
|
|
35554
35496
|
var __spreadProps$H = (a, b) => __defProps$H(a, __getOwnPropDescs$H(b));
|
|
35497
|
+
var __async$Z = (__this, __arguments, generator) => {
|
|
35498
|
+
return new Promise((resolve, reject) => {
|
|
35499
|
+
var fulfilled = (value) => {
|
|
35500
|
+
try {
|
|
35501
|
+
step(generator.next(value));
|
|
35502
|
+
} catch (e) {
|
|
35503
|
+
reject(e);
|
|
35504
|
+
}
|
|
35505
|
+
};
|
|
35506
|
+
var rejected = (value) => {
|
|
35507
|
+
try {
|
|
35508
|
+
step(generator.throw(value));
|
|
35509
|
+
} catch (e) {
|
|
35510
|
+
reject(e);
|
|
35511
|
+
}
|
|
35512
|
+
};
|
|
35513
|
+
var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
|
|
35514
|
+
step((generator = generator.apply(__this, __arguments)).next());
|
|
35515
|
+
});
|
|
35516
|
+
};
|
|
35517
|
+
const useEnableRefundAssist = (params) => {
|
|
35518
|
+
const { client } = useShipEngine();
|
|
35519
|
+
return useMutation(__spreadProps$H(__spreadValues$K({}, params), {
|
|
35520
|
+
mutationFn: () => __async$Z(void 0, null, function* () {
|
|
35521
|
+
yield client.accountRefundAssist.enable();
|
|
35522
|
+
}),
|
|
35523
|
+
mutationKey: ["useEnableRefundAssist"],
|
|
35524
|
+
onError
|
|
35525
|
+
}));
|
|
35526
|
+
};
|
|
35527
|
+
|
|
35528
|
+
var __defProp$J = Object.defineProperty;
|
|
35529
|
+
var __defProps$G = Object.defineProperties;
|
|
35530
|
+
var __getOwnPropDescs$G = Object.getOwnPropertyDescriptors;
|
|
35531
|
+
var __getOwnPropSymbols$S = Object.getOwnPropertySymbols;
|
|
35532
|
+
var __hasOwnProp$S = Object.prototype.hasOwnProperty;
|
|
35533
|
+
var __propIsEnum$S = Object.prototype.propertyIsEnumerable;
|
|
35534
|
+
var __defNormalProp$J = (obj, key, value) => key in obj ? __defProp$J(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
35535
|
+
var __spreadValues$J = (a, b) => {
|
|
35536
|
+
for (var prop in b || (b = {}))
|
|
35537
|
+
if (__hasOwnProp$S.call(b, prop))
|
|
35538
|
+
__defNormalProp$J(a, prop, b[prop]);
|
|
35539
|
+
if (__getOwnPropSymbols$S)
|
|
35540
|
+
for (var prop of __getOwnPropSymbols$S(b)) {
|
|
35541
|
+
if (__propIsEnum$S.call(b, prop))
|
|
35542
|
+
__defNormalProp$J(a, prop, b[prop]);
|
|
35543
|
+
}
|
|
35544
|
+
return a;
|
|
35545
|
+
};
|
|
35546
|
+
var __spreadProps$G = (a, b) => __defProps$G(a, __getOwnPropDescs$G(b));
|
|
35555
35547
|
const useGetRefundAssist = (params) => {
|
|
35556
35548
|
const { client } = useShipEngine();
|
|
35557
|
-
return useQuery(__spreadProps$
|
|
35549
|
+
return useQuery(__spreadProps$G(__spreadValues$J({}, params), {
|
|
35558
35550
|
onError,
|
|
35559
35551
|
queryFn: () => client.accountRefundAssist.get(),
|
|
35560
35552
|
queryKey: ["useGetRefundAssist"],
|
|
@@ -35626,25 +35618,25 @@ const useValidateAddresses = () => {
|
|
|
35626
35618
|
});
|
|
35627
35619
|
};
|
|
35628
35620
|
|
|
35629
|
-
var __defProp$
|
|
35630
|
-
var __defProps$
|
|
35631
|
-
var __getOwnPropDescs$
|
|
35632
|
-
var __getOwnPropSymbols$
|
|
35633
|
-
var __hasOwnProp$
|
|
35634
|
-
var __propIsEnum$
|
|
35635
|
-
var __defNormalProp$
|
|
35636
|
-
var __spreadValues$
|
|
35621
|
+
var __defProp$I = Object.defineProperty;
|
|
35622
|
+
var __defProps$F = Object.defineProperties;
|
|
35623
|
+
var __getOwnPropDescs$F = Object.getOwnPropertyDescriptors;
|
|
35624
|
+
var __getOwnPropSymbols$R = Object.getOwnPropertySymbols;
|
|
35625
|
+
var __hasOwnProp$R = Object.prototype.hasOwnProperty;
|
|
35626
|
+
var __propIsEnum$R = Object.prototype.propertyIsEnumerable;
|
|
35627
|
+
var __defNormalProp$I = (obj, key, value) => key in obj ? __defProp$I(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
35628
|
+
var __spreadValues$I = (a, b) => {
|
|
35637
35629
|
for (var prop in b || (b = {}))
|
|
35638
|
-
if (__hasOwnProp$
|
|
35639
|
-
__defNormalProp$
|
|
35640
|
-
if (__getOwnPropSymbols$
|
|
35641
|
-
for (var prop of __getOwnPropSymbols$
|
|
35642
|
-
if (__propIsEnum$
|
|
35643
|
-
__defNormalProp$
|
|
35630
|
+
if (__hasOwnProp$R.call(b, prop))
|
|
35631
|
+
__defNormalProp$I(a, prop, b[prop]);
|
|
35632
|
+
if (__getOwnPropSymbols$R)
|
|
35633
|
+
for (var prop of __getOwnPropSymbols$R(b)) {
|
|
35634
|
+
if (__propIsEnum$R.call(b, prop))
|
|
35635
|
+
__defNormalProp$I(a, prop, b[prop]);
|
|
35644
35636
|
}
|
|
35645
35637
|
return a;
|
|
35646
35638
|
};
|
|
35647
|
-
var __spreadProps$
|
|
35639
|
+
var __spreadProps$F = (a, b) => __defProps$F(a, __getOwnPropDescs$F(b));
|
|
35648
35640
|
var __async$W = (__this, __arguments, generator) => {
|
|
35649
35641
|
return new Promise((resolve, reject) => {
|
|
35650
35642
|
var fulfilled = (value) => {
|
|
@@ -35667,7 +35659,7 @@ var __async$W = (__this, __arguments, generator) => {
|
|
|
35667
35659
|
};
|
|
35668
35660
|
const useCreateAuctanePaySession = (params) => {
|
|
35669
35661
|
const { client } = useShipEngine();
|
|
35670
|
-
return useMutation(__spreadProps$
|
|
35662
|
+
return useMutation(__spreadProps$F(__spreadValues$I({}, params), {
|
|
35671
35663
|
mutationFn: (request) => __async$W(void 0, null, function* () {
|
|
35672
35664
|
const result = yield client.auctanePay.createSession(request);
|
|
35673
35665
|
return result.data;
|
|
@@ -35677,36 +35669,6 @@ const useCreateAuctanePaySession = (params) => {
|
|
|
35677
35669
|
}));
|
|
35678
35670
|
};
|
|
35679
35671
|
|
|
35680
|
-
var __defProp$I = Object.defineProperty;
|
|
35681
|
-
var __defProps$F = Object.defineProperties;
|
|
35682
|
-
var __getOwnPropDescs$F = Object.getOwnPropertyDescriptors;
|
|
35683
|
-
var __getOwnPropSymbols$R = Object.getOwnPropertySymbols;
|
|
35684
|
-
var __hasOwnProp$R = Object.prototype.hasOwnProperty;
|
|
35685
|
-
var __propIsEnum$R = Object.prototype.propertyIsEnumerable;
|
|
35686
|
-
var __defNormalProp$I = (obj, key, value) => key in obj ? __defProp$I(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
35687
|
-
var __spreadValues$I = (a, b) => {
|
|
35688
|
-
for (var prop in b || (b = {}))
|
|
35689
|
-
if (__hasOwnProp$R.call(b, prop))
|
|
35690
|
-
__defNormalProp$I(a, prop, b[prop]);
|
|
35691
|
-
if (__getOwnPropSymbols$R)
|
|
35692
|
-
for (var prop of __getOwnPropSymbols$R(b)) {
|
|
35693
|
-
if (__propIsEnum$R.call(b, prop))
|
|
35694
|
-
__defNormalProp$I(a, prop, b[prop]);
|
|
35695
|
-
}
|
|
35696
|
-
return a;
|
|
35697
|
-
};
|
|
35698
|
-
var __spreadProps$F = (a, b) => __defProps$F(a, __getOwnPropDescs$F(b));
|
|
35699
|
-
const useGetAuctanePayConfig = (params) => {
|
|
35700
|
-
const { client } = useShipEngine();
|
|
35701
|
-
const queryParams = __spreadValues$I({}, params);
|
|
35702
|
-
return useQuery(__spreadProps$F(__spreadValues$I({}, queryParams), {
|
|
35703
|
-
onError,
|
|
35704
|
-
queryFn: () => client.auctanePay.getConfig(),
|
|
35705
|
-
queryKey: ["useGetAuctanePayConfig"],
|
|
35706
|
-
select: (result) => result.data
|
|
35707
|
-
}));
|
|
35708
|
-
};
|
|
35709
|
-
|
|
35710
35672
|
var __defProp$H = Object.defineProperty;
|
|
35711
35673
|
var __defProps$E = Object.defineProperties;
|
|
35712
35674
|
var __getOwnPropDescs$E = Object.getOwnPropertyDescriptors;
|
|
@@ -35726,6 +35688,36 @@ var __spreadValues$H = (a, b) => {
|
|
|
35726
35688
|
return a;
|
|
35727
35689
|
};
|
|
35728
35690
|
var __spreadProps$E = (a, b) => __defProps$E(a, __getOwnPropDescs$E(b));
|
|
35691
|
+
const useGetAuctanePayConfig = (params) => {
|
|
35692
|
+
const { client } = useShipEngine();
|
|
35693
|
+
const queryParams = __spreadValues$H({}, params);
|
|
35694
|
+
return useQuery(__spreadProps$E(__spreadValues$H({}, queryParams), {
|
|
35695
|
+
onError,
|
|
35696
|
+
queryFn: () => client.auctanePay.getConfig(),
|
|
35697
|
+
queryKey: ["useGetAuctanePayConfig"],
|
|
35698
|
+
select: (result) => result.data
|
|
35699
|
+
}));
|
|
35700
|
+
};
|
|
35701
|
+
|
|
35702
|
+
var __defProp$G = Object.defineProperty;
|
|
35703
|
+
var __defProps$D = Object.defineProperties;
|
|
35704
|
+
var __getOwnPropDescs$D = Object.getOwnPropertyDescriptors;
|
|
35705
|
+
var __getOwnPropSymbols$P = Object.getOwnPropertySymbols;
|
|
35706
|
+
var __hasOwnProp$P = Object.prototype.hasOwnProperty;
|
|
35707
|
+
var __propIsEnum$P = Object.prototype.propertyIsEnumerable;
|
|
35708
|
+
var __defNormalProp$G = (obj, key, value) => key in obj ? __defProp$G(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
35709
|
+
var __spreadValues$G = (a, b) => {
|
|
35710
|
+
for (var prop in b || (b = {}))
|
|
35711
|
+
if (__hasOwnProp$P.call(b, prop))
|
|
35712
|
+
__defNormalProp$G(a, prop, b[prop]);
|
|
35713
|
+
if (__getOwnPropSymbols$P)
|
|
35714
|
+
for (var prop of __getOwnPropSymbols$P(b)) {
|
|
35715
|
+
if (__propIsEnum$P.call(b, prop))
|
|
35716
|
+
__defNormalProp$G(a, prop, b[prop]);
|
|
35717
|
+
}
|
|
35718
|
+
return a;
|
|
35719
|
+
};
|
|
35720
|
+
var __spreadProps$D = (a, b) => __defProps$D(a, __getOwnPropDescs$D(b));
|
|
35729
35721
|
var __async$V = (__this, __arguments, generator) => {
|
|
35730
35722
|
return new Promise((resolve, reject) => {
|
|
35731
35723
|
var fulfilled = (value) => {
|
|
@@ -35748,7 +35740,7 @@ var __async$V = (__this, __arguments, generator) => {
|
|
|
35748
35740
|
};
|
|
35749
35741
|
const usePreviewTransaction = (params) => {
|
|
35750
35742
|
const { client } = useShipEngine();
|
|
35751
|
-
return useMutation(__spreadProps$
|
|
35743
|
+
return useMutation(__spreadProps$D(__spreadValues$G({}, params), {
|
|
35752
35744
|
mutationFn: (_0) => __async$V(void 0, [_0], function* ({ amount, transactionCategory = "add_funds" }) {
|
|
35753
35745
|
const request = {
|
|
35754
35746
|
amount,
|
|
@@ -35762,36 +35754,6 @@ const usePreviewTransaction = (params) => {
|
|
|
35762
35754
|
}));
|
|
35763
35755
|
};
|
|
35764
35756
|
|
|
35765
|
-
var __defProp$G = Object.defineProperty;
|
|
35766
|
-
var __defProps$D = Object.defineProperties;
|
|
35767
|
-
var __getOwnPropDescs$D = Object.getOwnPropertyDescriptors;
|
|
35768
|
-
var __getOwnPropSymbols$P = Object.getOwnPropertySymbols;
|
|
35769
|
-
var __hasOwnProp$P = Object.prototype.hasOwnProperty;
|
|
35770
|
-
var __propIsEnum$P = Object.prototype.propertyIsEnumerable;
|
|
35771
|
-
var __defNormalProp$G = (obj, key, value) => key in obj ? __defProp$G(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
35772
|
-
var __spreadValues$G = (a, b) => {
|
|
35773
|
-
for (var prop in b || (b = {}))
|
|
35774
|
-
if (__hasOwnProp$P.call(b, prop))
|
|
35775
|
-
__defNormalProp$G(a, prop, b[prop]);
|
|
35776
|
-
if (__getOwnPropSymbols$P)
|
|
35777
|
-
for (var prop of __getOwnPropSymbols$P(b)) {
|
|
35778
|
-
if (__propIsEnum$P.call(b, prop))
|
|
35779
|
-
__defNormalProp$G(a, prop, b[prop]);
|
|
35780
|
-
}
|
|
35781
|
-
return a;
|
|
35782
|
-
};
|
|
35783
|
-
var __spreadProps$D = (a, b) => __defProps$D(a, __getOwnPropDescs$D(b));
|
|
35784
|
-
const useGetPaymentMethods = (params) => {
|
|
35785
|
-
const { client } = useShipEngine();
|
|
35786
|
-
const queryParams = __spreadValues$G({}, params);
|
|
35787
|
-
return useQuery(__spreadProps$D(__spreadValues$G({}, queryParams), {
|
|
35788
|
-
onError,
|
|
35789
|
-
queryFn: () => client.auctanePay.getPaymentMethods(),
|
|
35790
|
-
queryKey: ["useGetPaymentMethods"],
|
|
35791
|
-
select: (result) => result.data
|
|
35792
|
-
}));
|
|
35793
|
-
};
|
|
35794
|
-
|
|
35795
35757
|
var __defProp$F = Object.defineProperty;
|
|
35796
35758
|
var __defProps$C = Object.defineProperties;
|
|
35797
35759
|
var __getOwnPropDescs$C = Object.getOwnPropertyDescriptors;
|
|
@@ -35811,35 +35773,14 @@ var __spreadValues$F = (a, b) => {
|
|
|
35811
35773
|
return a;
|
|
35812
35774
|
};
|
|
35813
35775
|
var __spreadProps$C = (a, b) => __defProps$C(a, __getOwnPropDescs$C(b));
|
|
35814
|
-
|
|
35815
|
-
return new Promise((resolve, reject) => {
|
|
35816
|
-
var fulfilled = (value) => {
|
|
35817
|
-
try {
|
|
35818
|
-
step(generator.next(value));
|
|
35819
|
-
} catch (e) {
|
|
35820
|
-
reject(e);
|
|
35821
|
-
}
|
|
35822
|
-
};
|
|
35823
|
-
var rejected = (value) => {
|
|
35824
|
-
try {
|
|
35825
|
-
step(generator.throw(value));
|
|
35826
|
-
} catch (e) {
|
|
35827
|
-
reject(e);
|
|
35828
|
-
}
|
|
35829
|
-
};
|
|
35830
|
-
var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
|
|
35831
|
-
step((generator = generator.apply(__this, __arguments)).next());
|
|
35832
|
-
});
|
|
35833
|
-
};
|
|
35834
|
-
const useDeletePaymentMethod = (params) => {
|
|
35776
|
+
const useGetPaymentMethods = (params) => {
|
|
35835
35777
|
const { client } = useShipEngine();
|
|
35836
|
-
|
|
35837
|
-
|
|
35838
|
-
|
|
35839
|
-
|
|
35840
|
-
|
|
35841
|
-
|
|
35842
|
-
onError
|
|
35778
|
+
const queryParams = __spreadValues$F({}, params);
|
|
35779
|
+
return useQuery(__spreadProps$C(__spreadValues$F({}, queryParams), {
|
|
35780
|
+
onError,
|
|
35781
|
+
queryFn: () => client.auctanePay.getPaymentMethods(),
|
|
35782
|
+
queryKey: ["useGetPaymentMethods"],
|
|
35783
|
+
select: (result) => result.data
|
|
35843
35784
|
}));
|
|
35844
35785
|
};
|
|
35845
35786
|
|
|
@@ -35862,7 +35803,7 @@ var __spreadValues$E = (a, b) => {
|
|
|
35862
35803
|
return a;
|
|
35863
35804
|
};
|
|
35864
35805
|
var __spreadProps$B = (a, b) => __defProps$B(a, __getOwnPropDescs$B(b));
|
|
35865
|
-
var __async$
|
|
35806
|
+
var __async$U = (__this, __arguments, generator) => {
|
|
35866
35807
|
return new Promise((resolve, reject) => {
|
|
35867
35808
|
var fulfilled = (value) => {
|
|
35868
35809
|
try {
|
|
@@ -35882,14 +35823,14 @@ var __async$T = (__this, __arguments, generator) => {
|
|
|
35882
35823
|
step((generator = generator.apply(__this, __arguments)).next());
|
|
35883
35824
|
});
|
|
35884
35825
|
};
|
|
35885
|
-
const
|
|
35826
|
+
const useDeletePaymentMethod = (params) => {
|
|
35886
35827
|
const { client } = useShipEngine();
|
|
35887
35828
|
return useMutation(__spreadProps$B(__spreadValues$E({}, params), {
|
|
35888
|
-
mutationFn: (
|
|
35889
|
-
const result = yield client.auctanePay.
|
|
35829
|
+
mutationFn: (paymentMethodId) => __async$U(void 0, null, function* () {
|
|
35830
|
+
const result = yield client.auctanePay.deletePaymentMethod(paymentMethodId);
|
|
35890
35831
|
return result.data;
|
|
35891
35832
|
}),
|
|
35892
|
-
mutationKey: ["
|
|
35833
|
+
mutationKey: ["useDeletePaymentMethod"],
|
|
35893
35834
|
onError
|
|
35894
35835
|
}));
|
|
35895
35836
|
};
|
|
@@ -35913,7 +35854,7 @@ var __spreadValues$D = (a, b) => {
|
|
|
35913
35854
|
return a;
|
|
35914
35855
|
};
|
|
35915
35856
|
var __spreadProps$A = (a, b) => __defProps$A(a, __getOwnPropDescs$A(b));
|
|
35916
|
-
var __async$
|
|
35857
|
+
var __async$T = (__this, __arguments, generator) => {
|
|
35917
35858
|
return new Promise((resolve, reject) => {
|
|
35918
35859
|
var fulfilled = (value) => {
|
|
35919
35860
|
try {
|
|
@@ -35933,14 +35874,14 @@ var __async$S = (__this, __arguments, generator) => {
|
|
|
35933
35874
|
step((generator = generator.apply(__this, __arguments)).next());
|
|
35934
35875
|
});
|
|
35935
35876
|
};
|
|
35936
|
-
const
|
|
35877
|
+
const useUpdatePaymentMethod = (params) => {
|
|
35937
35878
|
const { client } = useShipEngine();
|
|
35938
35879
|
return useMutation(__spreadProps$A(__spreadValues$D({}, params), {
|
|
35939
|
-
mutationFn: () => __async$
|
|
35940
|
-
const result = yield client.auctanePay.
|
|
35880
|
+
mutationFn: (_0) => __async$T(void 0, [_0], function* ({ paymentMethodId, payload }) {
|
|
35881
|
+
const result = yield client.auctanePay.updatePaymentMethod(paymentMethodId, payload);
|
|
35941
35882
|
return result.data;
|
|
35942
35883
|
}),
|
|
35943
|
-
mutationKey: ["
|
|
35884
|
+
mutationKey: ["useUpdatePaymentMethod"],
|
|
35944
35885
|
onError
|
|
35945
35886
|
}));
|
|
35946
35887
|
};
|
|
@@ -35964,10 +35905,61 @@ var __spreadValues$C = (a, b) => {
|
|
|
35964
35905
|
return a;
|
|
35965
35906
|
};
|
|
35966
35907
|
var __spreadProps$z = (a, b) => __defProps$z(a, __getOwnPropDescs$z(b));
|
|
35908
|
+
var __async$S = (__this, __arguments, generator) => {
|
|
35909
|
+
return new Promise((resolve, reject) => {
|
|
35910
|
+
var fulfilled = (value) => {
|
|
35911
|
+
try {
|
|
35912
|
+
step(generator.next(value));
|
|
35913
|
+
} catch (e) {
|
|
35914
|
+
reject(e);
|
|
35915
|
+
}
|
|
35916
|
+
};
|
|
35917
|
+
var rejected = (value) => {
|
|
35918
|
+
try {
|
|
35919
|
+
step(generator.throw(value));
|
|
35920
|
+
} catch (e) {
|
|
35921
|
+
reject(e);
|
|
35922
|
+
}
|
|
35923
|
+
};
|
|
35924
|
+
var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
|
|
35925
|
+
step((generator = generator.apply(__this, __arguments)).next());
|
|
35926
|
+
});
|
|
35927
|
+
};
|
|
35928
|
+
const useIdentityVerification = (params) => {
|
|
35929
|
+
const { client } = useShipEngine();
|
|
35930
|
+
return useMutation(__spreadProps$z(__spreadValues$C({}, params), {
|
|
35931
|
+
mutationFn: () => __async$S(void 0, null, function* () {
|
|
35932
|
+
const result = yield client.auctanePay.identityVerification();
|
|
35933
|
+
return result.data;
|
|
35934
|
+
}),
|
|
35935
|
+
mutationKey: ["useIdentityVerification"],
|
|
35936
|
+
onError
|
|
35937
|
+
}));
|
|
35938
|
+
};
|
|
35939
|
+
|
|
35940
|
+
var __defProp$B = Object.defineProperty;
|
|
35941
|
+
var __defProps$y = Object.defineProperties;
|
|
35942
|
+
var __getOwnPropDescs$y = Object.getOwnPropertyDescriptors;
|
|
35943
|
+
var __getOwnPropSymbols$K = Object.getOwnPropertySymbols;
|
|
35944
|
+
var __hasOwnProp$K = Object.prototype.hasOwnProperty;
|
|
35945
|
+
var __propIsEnum$K = Object.prototype.propertyIsEnumerable;
|
|
35946
|
+
var __defNormalProp$B = (obj, key, value) => key in obj ? __defProp$B(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
35947
|
+
var __spreadValues$B = (a, b) => {
|
|
35948
|
+
for (var prop in b || (b = {}))
|
|
35949
|
+
if (__hasOwnProp$K.call(b, prop))
|
|
35950
|
+
__defNormalProp$B(a, prop, b[prop]);
|
|
35951
|
+
if (__getOwnPropSymbols$K)
|
|
35952
|
+
for (var prop of __getOwnPropSymbols$K(b)) {
|
|
35953
|
+
if (__propIsEnum$K.call(b, prop))
|
|
35954
|
+
__defNormalProp$B(a, prop, b[prop]);
|
|
35955
|
+
}
|
|
35956
|
+
return a;
|
|
35957
|
+
};
|
|
35958
|
+
var __spreadProps$y = (a, b) => __defProps$y(a, __getOwnPropDescs$y(b));
|
|
35967
35959
|
const useGetPaymentAccount = (params) => {
|
|
35968
35960
|
const { client } = useShipEngine();
|
|
35969
|
-
const queryParams = __spreadValues$
|
|
35970
|
-
return useQuery(__spreadProps$
|
|
35961
|
+
const queryParams = __spreadValues$B({}, params);
|
|
35962
|
+
return useQuery(__spreadProps$y(__spreadValues$B({}, queryParams), {
|
|
35971
35963
|
onError,
|
|
35972
35964
|
queryFn: () => client.auctanePay.getPaymentAccount(),
|
|
35973
35965
|
queryKey: ["useGetPaymentAccount"],
|
|
@@ -36171,41 +36163,41 @@ const useGetServicesByCarrier = (carrierId) => {
|
|
|
36171
36163
|
});
|
|
36172
36164
|
};
|
|
36173
36165
|
|
|
36174
|
-
var __defProp$
|
|
36175
|
-
var __defProps$
|
|
36176
|
-
var __getOwnPropDescs$
|
|
36177
|
-
var __getOwnPropSymbols$
|
|
36178
|
-
var __hasOwnProp$
|
|
36179
|
-
var __propIsEnum$
|
|
36180
|
-
var __defNormalProp$
|
|
36181
|
-
var __spreadValues$
|
|
36166
|
+
var __defProp$A = Object.defineProperty;
|
|
36167
|
+
var __defProps$x = Object.defineProperties;
|
|
36168
|
+
var __getOwnPropDescs$x = Object.getOwnPropertyDescriptors;
|
|
36169
|
+
var __getOwnPropSymbols$J = Object.getOwnPropertySymbols;
|
|
36170
|
+
var __hasOwnProp$J = Object.prototype.hasOwnProperty;
|
|
36171
|
+
var __propIsEnum$J = Object.prototype.propertyIsEnumerable;
|
|
36172
|
+
var __defNormalProp$A = (obj, key, value) => key in obj ? __defProp$A(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
36173
|
+
var __spreadValues$A = (a, b) => {
|
|
36182
36174
|
for (var prop in b || (b = {}))
|
|
36183
|
-
if (__hasOwnProp$
|
|
36184
|
-
__defNormalProp$
|
|
36185
|
-
if (__getOwnPropSymbols$
|
|
36186
|
-
for (var prop of __getOwnPropSymbols$
|
|
36187
|
-
if (__propIsEnum$
|
|
36188
|
-
__defNormalProp$
|
|
36175
|
+
if (__hasOwnProp$J.call(b, prop))
|
|
36176
|
+
__defNormalProp$A(a, prop, b[prop]);
|
|
36177
|
+
if (__getOwnPropSymbols$J)
|
|
36178
|
+
for (var prop of __getOwnPropSymbols$J(b)) {
|
|
36179
|
+
if (__propIsEnum$J.call(b, prop))
|
|
36180
|
+
__defNormalProp$A(a, prop, b[prop]);
|
|
36189
36181
|
}
|
|
36190
36182
|
return a;
|
|
36191
36183
|
};
|
|
36192
|
-
var __spreadProps$
|
|
36184
|
+
var __spreadProps$x = (a, b) => __defProps$x(a, __getOwnPropDescs$x(b));
|
|
36193
36185
|
var __objRest$r = (source, exclude) => {
|
|
36194
36186
|
var target = {};
|
|
36195
36187
|
for (var prop in source)
|
|
36196
|
-
if (__hasOwnProp$
|
|
36188
|
+
if (__hasOwnProp$J.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
36197
36189
|
target[prop] = source[prop];
|
|
36198
|
-
if (source != null && __getOwnPropSymbols$
|
|
36199
|
-
for (var prop of __getOwnPropSymbols$
|
|
36200
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
36190
|
+
if (source != null && __getOwnPropSymbols$J)
|
|
36191
|
+
for (var prop of __getOwnPropSymbols$J(source)) {
|
|
36192
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$J.call(source, prop))
|
|
36201
36193
|
target[prop] = source[prop];
|
|
36202
36194
|
}
|
|
36203
36195
|
return target;
|
|
36204
36196
|
};
|
|
36205
36197
|
const useListCarriers = (params) => {
|
|
36206
36198
|
const { client } = useShipEngine();
|
|
36207
|
-
const _a = __spreadValues$
|
|
36208
|
-
return useQuery(__spreadProps$
|
|
36199
|
+
const _a = __spreadValues$A({}, params), { queryFnParams } = _a, rest = __objRest$r(_a, ["queryFnParams"]);
|
|
36200
|
+
return useQuery(__spreadProps$x(__spreadValues$A({}, rest), {
|
|
36209
36201
|
onError,
|
|
36210
36202
|
queryFn: () => client.carriers.list(queryFnParams),
|
|
36211
36203
|
queryKey: ["useListCarriers", queryFnParams],
|
|
@@ -36213,17 +36205,17 @@ const useListCarriers = (params) => {
|
|
|
36213
36205
|
}));
|
|
36214
36206
|
};
|
|
36215
36207
|
|
|
36216
|
-
var __getOwnPropSymbols$
|
|
36217
|
-
var __hasOwnProp$
|
|
36218
|
-
var __propIsEnum$
|
|
36208
|
+
var __getOwnPropSymbols$I = Object.getOwnPropertySymbols;
|
|
36209
|
+
var __hasOwnProp$I = Object.prototype.hasOwnProperty;
|
|
36210
|
+
var __propIsEnum$I = Object.prototype.propertyIsEnumerable;
|
|
36219
36211
|
var __objRest$q = (source, exclude) => {
|
|
36220
36212
|
var target = {};
|
|
36221
36213
|
for (var prop in source)
|
|
36222
|
-
if (__hasOwnProp$
|
|
36214
|
+
if (__hasOwnProp$I.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
36223
36215
|
target[prop] = source[prop];
|
|
36224
|
-
if (source != null && __getOwnPropSymbols$
|
|
36225
|
-
for (var prop of __getOwnPropSymbols$
|
|
36226
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
36216
|
+
if (source != null && __getOwnPropSymbols$I)
|
|
36217
|
+
for (var prop of __getOwnPropSymbols$I(source)) {
|
|
36218
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$I.call(source, prop))
|
|
36227
36219
|
target[prop] = source[prop];
|
|
36228
36220
|
}
|
|
36229
36221
|
return target;
|
|
@@ -36314,17 +36306,17 @@ const useDeleteCarrier = () => {
|
|
|
36314
36306
|
});
|
|
36315
36307
|
};
|
|
36316
36308
|
|
|
36317
|
-
var __getOwnPropSymbols$
|
|
36318
|
-
var __hasOwnProp$
|
|
36319
|
-
var __propIsEnum$
|
|
36309
|
+
var __getOwnPropSymbols$H = Object.getOwnPropertySymbols;
|
|
36310
|
+
var __hasOwnProp$H = Object.prototype.hasOwnProperty;
|
|
36311
|
+
var __propIsEnum$H = Object.prototype.propertyIsEnumerable;
|
|
36320
36312
|
var __objRest$p = (source, exclude) => {
|
|
36321
36313
|
var target = {};
|
|
36322
36314
|
for (var prop in source)
|
|
36323
|
-
if (__hasOwnProp$
|
|
36315
|
+
if (__hasOwnProp$H.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
36324
36316
|
target[prop] = source[prop];
|
|
36325
|
-
if (source != null && __getOwnPropSymbols$
|
|
36326
|
-
for (var prop of __getOwnPropSymbols$
|
|
36327
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
36317
|
+
if (source != null && __getOwnPropSymbols$H)
|
|
36318
|
+
for (var prop of __getOwnPropSymbols$H(source)) {
|
|
36319
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$H.call(source, prop))
|
|
36328
36320
|
target[prop] = source[prop];
|
|
36329
36321
|
}
|
|
36330
36322
|
return target;
|
|
@@ -36341,17 +36333,17 @@ const useGetCarrierConnectionForm = (_params) => {
|
|
|
36341
36333
|
});
|
|
36342
36334
|
};
|
|
36343
36335
|
|
|
36344
|
-
var __getOwnPropSymbols$
|
|
36345
|
-
var __hasOwnProp$
|
|
36346
|
-
var __propIsEnum$
|
|
36336
|
+
var __getOwnPropSymbols$G = Object.getOwnPropertySymbols;
|
|
36337
|
+
var __hasOwnProp$G = Object.prototype.hasOwnProperty;
|
|
36338
|
+
var __propIsEnum$G = Object.prototype.propertyIsEnumerable;
|
|
36347
36339
|
var __objRest$o = (source, exclude) => {
|
|
36348
36340
|
var target = {};
|
|
36349
36341
|
for (var prop in source)
|
|
36350
|
-
if (__hasOwnProp$
|
|
36342
|
+
if (__hasOwnProp$G.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
36351
36343
|
target[prop] = source[prop];
|
|
36352
|
-
if (source != null && __getOwnPropSymbols$
|
|
36353
|
-
for (var prop of __getOwnPropSymbols$
|
|
36354
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
36344
|
+
if (source != null && __getOwnPropSymbols$G)
|
|
36345
|
+
for (var prop of __getOwnPropSymbols$G(source)) {
|
|
36346
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$G.call(source, prop))
|
|
36355
36347
|
target[prop] = source[prop];
|
|
36356
36348
|
}
|
|
36357
36349
|
return target;
|
|
@@ -36368,25 +36360,25 @@ const useListCarrierConnections = (_params) => {
|
|
|
36368
36360
|
});
|
|
36369
36361
|
};
|
|
36370
36362
|
|
|
36371
|
-
var __defProp$
|
|
36372
|
-
var __defProps$
|
|
36373
|
-
var __getOwnPropDescs$
|
|
36374
|
-
var __getOwnPropSymbols$
|
|
36375
|
-
var __hasOwnProp$
|
|
36376
|
-
var __propIsEnum$
|
|
36377
|
-
var __defNormalProp$
|
|
36378
|
-
var __spreadValues$
|
|
36363
|
+
var __defProp$z = Object.defineProperty;
|
|
36364
|
+
var __defProps$w = Object.defineProperties;
|
|
36365
|
+
var __getOwnPropDescs$w = Object.getOwnPropertyDescriptors;
|
|
36366
|
+
var __getOwnPropSymbols$F = Object.getOwnPropertySymbols;
|
|
36367
|
+
var __hasOwnProp$F = Object.prototype.hasOwnProperty;
|
|
36368
|
+
var __propIsEnum$F = Object.prototype.propertyIsEnumerable;
|
|
36369
|
+
var __defNormalProp$z = (obj, key, value) => key in obj ? __defProp$z(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
36370
|
+
var __spreadValues$z = (a, b) => {
|
|
36379
36371
|
for (var prop in b || (b = {}))
|
|
36380
|
-
if (__hasOwnProp$
|
|
36381
|
-
__defNormalProp$
|
|
36382
|
-
if (__getOwnPropSymbols$
|
|
36383
|
-
for (var prop of __getOwnPropSymbols$
|
|
36384
|
-
if (__propIsEnum$
|
|
36385
|
-
__defNormalProp$
|
|
36372
|
+
if (__hasOwnProp$F.call(b, prop))
|
|
36373
|
+
__defNormalProp$z(a, prop, b[prop]);
|
|
36374
|
+
if (__getOwnPropSymbols$F)
|
|
36375
|
+
for (var prop of __getOwnPropSymbols$F(b)) {
|
|
36376
|
+
if (__propIsEnum$F.call(b, prop))
|
|
36377
|
+
__defNormalProp$z(a, prop, b[prop]);
|
|
36386
36378
|
}
|
|
36387
36379
|
return a;
|
|
36388
36380
|
};
|
|
36389
|
-
var __spreadProps$
|
|
36381
|
+
var __spreadProps$w = (a, b) => __defProps$w(a, __getOwnPropDescs$w(b));
|
|
36390
36382
|
var __async$M = (__this, __arguments, generator) => {
|
|
36391
36383
|
return new Promise((resolve, reject) => {
|
|
36392
36384
|
var fulfilled = (value) => {
|
|
@@ -36411,7 +36403,7 @@ const useConnectCarrierAccount = () => {
|
|
|
36411
36403
|
const { client } = useShipEngine();
|
|
36412
36404
|
return useMutation({
|
|
36413
36405
|
mutationFn: (_0) => __async$M(void 0, [_0], function* ({ carrierName, formData }) {
|
|
36414
|
-
const formDataWithFlag = __spreadProps$
|
|
36406
|
+
const formDataWithFlag = __spreadProps$w(__spreadValues$z({}, formData), { __skipDecamelize: true });
|
|
36415
36407
|
const result = yield client.connections.connectCarrier(carrierName, formDataWithFlag);
|
|
36416
36408
|
return result.data;
|
|
36417
36409
|
}),
|
|
@@ -36431,33 +36423,33 @@ const useCarrierConnectionsServicesList = (carrierCode) => {
|
|
|
36431
36423
|
});
|
|
36432
36424
|
};
|
|
36433
36425
|
|
|
36434
|
-
var __defProp$
|
|
36435
|
-
var __defProps$
|
|
36436
|
-
var __getOwnPropDescs$
|
|
36437
|
-
var __getOwnPropSymbols$
|
|
36438
|
-
var __hasOwnProp$
|
|
36439
|
-
var __propIsEnum$
|
|
36440
|
-
var __defNormalProp$
|
|
36441
|
-
var __spreadValues$
|
|
36426
|
+
var __defProp$y = Object.defineProperty;
|
|
36427
|
+
var __defProps$v = Object.defineProperties;
|
|
36428
|
+
var __getOwnPropDescs$v = Object.getOwnPropertyDescriptors;
|
|
36429
|
+
var __getOwnPropSymbols$E = Object.getOwnPropertySymbols;
|
|
36430
|
+
var __hasOwnProp$E = Object.prototype.hasOwnProperty;
|
|
36431
|
+
var __propIsEnum$E = Object.prototype.propertyIsEnumerable;
|
|
36432
|
+
var __defNormalProp$y = (obj, key, value) => key in obj ? __defProp$y(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
36433
|
+
var __spreadValues$y = (a, b) => {
|
|
36442
36434
|
for (var prop in b || (b = {}))
|
|
36443
|
-
if (__hasOwnProp$
|
|
36444
|
-
__defNormalProp$
|
|
36445
|
-
if (__getOwnPropSymbols$
|
|
36446
|
-
for (var prop of __getOwnPropSymbols$
|
|
36447
|
-
if (__propIsEnum$
|
|
36448
|
-
__defNormalProp$
|
|
36435
|
+
if (__hasOwnProp$E.call(b, prop))
|
|
36436
|
+
__defNormalProp$y(a, prop, b[prop]);
|
|
36437
|
+
if (__getOwnPropSymbols$E)
|
|
36438
|
+
for (var prop of __getOwnPropSymbols$E(b)) {
|
|
36439
|
+
if (__propIsEnum$E.call(b, prop))
|
|
36440
|
+
__defNormalProp$y(a, prop, b[prop]);
|
|
36449
36441
|
}
|
|
36450
36442
|
return a;
|
|
36451
36443
|
};
|
|
36452
|
-
var __spreadProps$
|
|
36444
|
+
var __spreadProps$v = (a, b) => __defProps$v(a, __getOwnPropDescs$v(b));
|
|
36453
36445
|
var __objRest$n = (source, exclude) => {
|
|
36454
36446
|
var target = {};
|
|
36455
36447
|
for (var prop in source)
|
|
36456
|
-
if (__hasOwnProp$
|
|
36448
|
+
if (__hasOwnProp$E.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
36457
36449
|
target[prop] = source[prop];
|
|
36458
|
-
if (source != null && __getOwnPropSymbols$
|
|
36459
|
-
for (var prop of __getOwnPropSymbols$
|
|
36460
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
36450
|
+
if (source != null && __getOwnPropSymbols$E)
|
|
36451
|
+
for (var prop of __getOwnPropSymbols$E(source)) {
|
|
36452
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$E.call(source, prop))
|
|
36461
36453
|
target[prop] = source[prop];
|
|
36462
36454
|
}
|
|
36463
36455
|
return target;
|
|
@@ -36470,7 +36462,7 @@ const useGetConnectionsCarrierSettings = (_a) => {
|
|
|
36470
36462
|
]);
|
|
36471
36463
|
const { client } = useShipEngine();
|
|
36472
36464
|
const { carrierName, carrierId } = queryFnParams;
|
|
36473
|
-
return useQuery(__spreadProps$
|
|
36465
|
+
return useQuery(__spreadProps$v(__spreadValues$y({}, params), {
|
|
36474
36466
|
onError,
|
|
36475
36467
|
queryFn: () => client.connections.getCarrierSettings(carrierName, carrierId),
|
|
36476
36468
|
queryKey: ["useGetConnectionsCarrierSettings", carrierName, carrierId],
|
|
@@ -36478,25 +36470,25 @@ const useGetConnectionsCarrierSettings = (_a) => {
|
|
|
36478
36470
|
}));
|
|
36479
36471
|
};
|
|
36480
36472
|
|
|
36481
|
-
var __defProp$
|
|
36482
|
-
var __defProps$
|
|
36483
|
-
var __getOwnPropDescs$
|
|
36484
|
-
var __getOwnPropSymbols$
|
|
36485
|
-
var __hasOwnProp$
|
|
36486
|
-
var __propIsEnum$
|
|
36487
|
-
var __defNormalProp$
|
|
36488
|
-
var __spreadValues$
|
|
36473
|
+
var __defProp$x = Object.defineProperty;
|
|
36474
|
+
var __defProps$u = Object.defineProperties;
|
|
36475
|
+
var __getOwnPropDescs$u = Object.getOwnPropertyDescriptors;
|
|
36476
|
+
var __getOwnPropSymbols$D = Object.getOwnPropertySymbols;
|
|
36477
|
+
var __hasOwnProp$D = Object.prototype.hasOwnProperty;
|
|
36478
|
+
var __propIsEnum$D = Object.prototype.propertyIsEnumerable;
|
|
36479
|
+
var __defNormalProp$x = (obj, key, value) => key in obj ? __defProp$x(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
36480
|
+
var __spreadValues$x = (a, b) => {
|
|
36489
36481
|
for (var prop in b || (b = {}))
|
|
36490
|
-
if (__hasOwnProp$
|
|
36491
|
-
__defNormalProp$
|
|
36492
|
-
if (__getOwnPropSymbols$
|
|
36493
|
-
for (var prop of __getOwnPropSymbols$
|
|
36494
|
-
if (__propIsEnum$
|
|
36495
|
-
__defNormalProp$
|
|
36482
|
+
if (__hasOwnProp$D.call(b, prop))
|
|
36483
|
+
__defNormalProp$x(a, prop, b[prop]);
|
|
36484
|
+
if (__getOwnPropSymbols$D)
|
|
36485
|
+
for (var prop of __getOwnPropSymbols$D(b)) {
|
|
36486
|
+
if (__propIsEnum$D.call(b, prop))
|
|
36487
|
+
__defNormalProp$x(a, prop, b[prop]);
|
|
36496
36488
|
}
|
|
36497
36489
|
return a;
|
|
36498
36490
|
};
|
|
36499
|
-
var __spreadProps$
|
|
36491
|
+
var __spreadProps$u = (a, b) => __defProps$u(a, __getOwnPropDescs$u(b));
|
|
36500
36492
|
var __async$L = (__this, __arguments, generator) => {
|
|
36501
36493
|
return new Promise((resolve, reject) => {
|
|
36502
36494
|
var fulfilled = (value) => {
|
|
@@ -36519,7 +36511,7 @@ var __async$L = (__this, __arguments, generator) => {
|
|
|
36519
36511
|
};
|
|
36520
36512
|
const useUpdateConnectionsCarrierSettings = (params) => {
|
|
36521
36513
|
const { client } = useShipEngine();
|
|
36522
|
-
return useMutation(__spreadProps$
|
|
36514
|
+
return useMutation(__spreadProps$u(__spreadValues$x({}, params), {
|
|
36523
36515
|
mutationFn: (_0) => __async$L(void 0, [_0], function* ({
|
|
36524
36516
|
carrierName,
|
|
36525
36517
|
carrierId,
|
|
@@ -36537,25 +36529,25 @@ const useUpdateConnectionsCarrierSettings = (params) => {
|
|
|
36537
36529
|
}));
|
|
36538
36530
|
};
|
|
36539
36531
|
|
|
36540
|
-
var __defProp$
|
|
36541
|
-
var __defProps$
|
|
36542
|
-
var __getOwnPropDescs$
|
|
36543
|
-
var __getOwnPropSymbols$
|
|
36544
|
-
var __hasOwnProp$
|
|
36545
|
-
var __propIsEnum$
|
|
36546
|
-
var __defNormalProp$
|
|
36547
|
-
var __spreadValues$
|
|
36532
|
+
var __defProp$w = Object.defineProperty;
|
|
36533
|
+
var __defProps$t = Object.defineProperties;
|
|
36534
|
+
var __getOwnPropDescs$t = Object.getOwnPropertyDescriptors;
|
|
36535
|
+
var __getOwnPropSymbols$C = Object.getOwnPropertySymbols;
|
|
36536
|
+
var __hasOwnProp$C = Object.prototype.hasOwnProperty;
|
|
36537
|
+
var __propIsEnum$C = Object.prototype.propertyIsEnumerable;
|
|
36538
|
+
var __defNormalProp$w = (obj, key, value) => key in obj ? __defProp$w(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
36539
|
+
var __spreadValues$w = (a, b) => {
|
|
36548
36540
|
for (var prop in b || (b = {}))
|
|
36549
|
-
if (__hasOwnProp$
|
|
36550
|
-
__defNormalProp$
|
|
36551
|
-
if (__getOwnPropSymbols$
|
|
36552
|
-
for (var prop of __getOwnPropSymbols$
|
|
36553
|
-
if (__propIsEnum$
|
|
36554
|
-
__defNormalProp$
|
|
36541
|
+
if (__hasOwnProp$C.call(b, prop))
|
|
36542
|
+
__defNormalProp$w(a, prop, b[prop]);
|
|
36543
|
+
if (__getOwnPropSymbols$C)
|
|
36544
|
+
for (var prop of __getOwnPropSymbols$C(b)) {
|
|
36545
|
+
if (__propIsEnum$C.call(b, prop))
|
|
36546
|
+
__defNormalProp$w(a, prop, b[prop]);
|
|
36555
36547
|
}
|
|
36556
36548
|
return a;
|
|
36557
36549
|
};
|
|
36558
|
-
var __spreadProps$
|
|
36550
|
+
var __spreadProps$t = (a, b) => __defProps$t(a, __getOwnPropDescs$t(b));
|
|
36559
36551
|
var __async$K = (__this, __arguments, generator) => {
|
|
36560
36552
|
return new Promise((resolve, reject) => {
|
|
36561
36553
|
var fulfilled = (value) => {
|
|
@@ -36578,7 +36570,7 @@ var __async$K = (__this, __arguments, generator) => {
|
|
|
36578
36570
|
};
|
|
36579
36571
|
const useRequestStampsAccountUrls = (params) => {
|
|
36580
36572
|
const { client } = useShipEngine();
|
|
36581
|
-
return useMutation(__spreadProps$
|
|
36573
|
+
return useMutation(__spreadProps$t(__spreadValues$w({}, params), {
|
|
36582
36574
|
mutationFn: (request) => __async$K(void 0, null, function* () {
|
|
36583
36575
|
const result = yield client.connections.requestStampsAccountUrls(request);
|
|
36584
36576
|
return result.data;
|
|
@@ -36694,29 +36686,29 @@ const useFundingSourcesAddFunds = () => {
|
|
|
36694
36686
|
});
|
|
36695
36687
|
};
|
|
36696
36688
|
|
|
36697
|
-
var __defProp$
|
|
36698
|
-
var __defProps$
|
|
36699
|
-
var __getOwnPropDescs$
|
|
36700
|
-
var __getOwnPropSymbols$
|
|
36701
|
-
var __hasOwnProp$
|
|
36702
|
-
var __propIsEnum$
|
|
36703
|
-
var __defNormalProp$
|
|
36704
|
-
var __spreadValues$
|
|
36689
|
+
var __defProp$v = Object.defineProperty;
|
|
36690
|
+
var __defProps$s = Object.defineProperties;
|
|
36691
|
+
var __getOwnPropDescs$s = Object.getOwnPropertyDescriptors;
|
|
36692
|
+
var __getOwnPropSymbols$B = Object.getOwnPropertySymbols;
|
|
36693
|
+
var __hasOwnProp$B = Object.prototype.hasOwnProperty;
|
|
36694
|
+
var __propIsEnum$B = Object.prototype.propertyIsEnumerable;
|
|
36695
|
+
var __defNormalProp$v = (obj, key, value) => key in obj ? __defProp$v(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
36696
|
+
var __spreadValues$v = (a, b) => {
|
|
36705
36697
|
for (var prop in b || (b = {}))
|
|
36706
|
-
if (__hasOwnProp$
|
|
36707
|
-
__defNormalProp$
|
|
36708
|
-
if (__getOwnPropSymbols$
|
|
36709
|
-
for (var prop of __getOwnPropSymbols$
|
|
36710
|
-
if (__propIsEnum$
|
|
36711
|
-
__defNormalProp$
|
|
36698
|
+
if (__hasOwnProp$B.call(b, prop))
|
|
36699
|
+
__defNormalProp$v(a, prop, b[prop]);
|
|
36700
|
+
if (__getOwnPropSymbols$B)
|
|
36701
|
+
for (var prop of __getOwnPropSymbols$B(b)) {
|
|
36702
|
+
if (__propIsEnum$B.call(b, prop))
|
|
36703
|
+
__defNormalProp$v(a, prop, b[prop]);
|
|
36712
36704
|
}
|
|
36713
36705
|
return a;
|
|
36714
36706
|
};
|
|
36715
|
-
var __spreadProps$
|
|
36707
|
+
var __spreadProps$s = (a, b) => __defProps$s(a, __getOwnPropDescs$s(b));
|
|
36716
36708
|
const useGetFundingSourceAcceptedTerms = (fundingSourceId, params) => {
|
|
36717
36709
|
const { client } = useShipEngine();
|
|
36718
|
-
const queryParams = __spreadValues$
|
|
36719
|
-
return useQuery(__spreadProps$
|
|
36710
|
+
const queryParams = __spreadValues$v({}, params);
|
|
36711
|
+
return useQuery(__spreadProps$s(__spreadValues$v({}, queryParams), {
|
|
36720
36712
|
onError,
|
|
36721
36713
|
queryFn: () => client.fundingSources.acceptedTerms(fundingSourceId),
|
|
36722
36714
|
queryKey: ["useGetFundingSourceAcceptedTerms", fundingSourceId],
|
|
@@ -36840,29 +36832,29 @@ const useGetFundingSourceTransactions = (fundingSourceId, params) => {
|
|
|
36840
36832
|
});
|
|
36841
36833
|
};
|
|
36842
36834
|
|
|
36843
|
-
var __defProp$
|
|
36844
|
-
var __defProps$
|
|
36845
|
-
var __getOwnPropDescs$
|
|
36846
|
-
var __getOwnPropSymbols$
|
|
36847
|
-
var __hasOwnProp$
|
|
36848
|
-
var __propIsEnum$
|
|
36849
|
-
var __defNormalProp$
|
|
36850
|
-
var __spreadValues$
|
|
36835
|
+
var __defProp$u = Object.defineProperty;
|
|
36836
|
+
var __defProps$r = Object.defineProperties;
|
|
36837
|
+
var __getOwnPropDescs$r = Object.getOwnPropertyDescriptors;
|
|
36838
|
+
var __getOwnPropSymbols$A = Object.getOwnPropertySymbols;
|
|
36839
|
+
var __hasOwnProp$A = Object.prototype.hasOwnProperty;
|
|
36840
|
+
var __propIsEnum$A = Object.prototype.propertyIsEnumerable;
|
|
36841
|
+
var __defNormalProp$u = (obj, key, value) => key in obj ? __defProp$u(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
36842
|
+
var __spreadValues$u = (a, b) => {
|
|
36851
36843
|
for (var prop in b || (b = {}))
|
|
36852
|
-
if (__hasOwnProp$
|
|
36853
|
-
__defNormalProp$
|
|
36854
|
-
if (__getOwnPropSymbols$
|
|
36855
|
-
for (var prop of __getOwnPropSymbols$
|
|
36856
|
-
if (__propIsEnum$
|
|
36857
|
-
__defNormalProp$
|
|
36844
|
+
if (__hasOwnProp$A.call(b, prop))
|
|
36845
|
+
__defNormalProp$u(a, prop, b[prop]);
|
|
36846
|
+
if (__getOwnPropSymbols$A)
|
|
36847
|
+
for (var prop of __getOwnPropSymbols$A(b)) {
|
|
36848
|
+
if (__propIsEnum$A.call(b, prop))
|
|
36849
|
+
__defNormalProp$u(a, prop, b[prop]);
|
|
36858
36850
|
}
|
|
36859
36851
|
return a;
|
|
36860
36852
|
};
|
|
36861
|
-
var __spreadProps$
|
|
36853
|
+
var __spreadProps$r = (a, b) => __defProps$r(a, __getOwnPropDescs$r(b));
|
|
36862
36854
|
const useGetInsuranceFundingSourceAcceptedTerms = (params) => {
|
|
36863
36855
|
const { client } = useShipEngine();
|
|
36864
|
-
const queryParams = __spreadValues$
|
|
36865
|
-
return useQuery(__spreadProps$
|
|
36856
|
+
const queryParams = __spreadValues$u({}, params);
|
|
36857
|
+
return useQuery(__spreadProps$r(__spreadValues$u({}, queryParams), {
|
|
36866
36858
|
onError,
|
|
36867
36859
|
queryFn: () => client.fundingSources.insuranceAcceptedTerms(),
|
|
36868
36860
|
queryKey: ["useGetInsuranceFundingSourceAcceptedTerms"],
|
|
@@ -36885,17 +36877,17 @@ const useGetInsuranceAccount = (insuranceProvider) => {
|
|
|
36885
36877
|
});
|
|
36886
36878
|
};
|
|
36887
36879
|
|
|
36888
|
-
var __getOwnPropSymbols$
|
|
36889
|
-
var __hasOwnProp$
|
|
36890
|
-
var __propIsEnum$
|
|
36880
|
+
var __getOwnPropSymbols$z = Object.getOwnPropertySymbols;
|
|
36881
|
+
var __hasOwnProp$z = Object.prototype.hasOwnProperty;
|
|
36882
|
+
var __propIsEnum$z = Object.prototype.propertyIsEnumerable;
|
|
36891
36883
|
var __objRest$m = (source, exclude) => {
|
|
36892
36884
|
var target = {};
|
|
36893
36885
|
for (var prop in source)
|
|
36894
|
-
if (__hasOwnProp$
|
|
36886
|
+
if (__hasOwnProp$z.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
36895
36887
|
target[prop] = source[prop];
|
|
36896
|
-
if (source != null && __getOwnPropSymbols$
|
|
36897
|
-
for (var prop of __getOwnPropSymbols$
|
|
36898
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
36888
|
+
if (source != null && __getOwnPropSymbols$z)
|
|
36889
|
+
for (var prop of __getOwnPropSymbols$z(source)) {
|
|
36890
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$z.call(source, prop))
|
|
36899
36891
|
target[prop] = source[prop];
|
|
36900
36892
|
}
|
|
36901
36893
|
return target;
|
|
@@ -36933,57 +36925,6 @@ const useAddInsuranceFunds = () => {
|
|
|
36933
36925
|
});
|
|
36934
36926
|
};
|
|
36935
36927
|
|
|
36936
|
-
var __defProp$u = Object.defineProperty;
|
|
36937
|
-
var __defProps$r = Object.defineProperties;
|
|
36938
|
-
var __getOwnPropDescs$r = Object.getOwnPropertyDescriptors;
|
|
36939
|
-
var __getOwnPropSymbols$z = Object.getOwnPropertySymbols;
|
|
36940
|
-
var __hasOwnProp$z = Object.prototype.hasOwnProperty;
|
|
36941
|
-
var __propIsEnum$z = Object.prototype.propertyIsEnumerable;
|
|
36942
|
-
var __defNormalProp$u = (obj, key, value) => key in obj ? __defProp$u(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
36943
|
-
var __spreadValues$u = (a, b) => {
|
|
36944
|
-
for (var prop in b || (b = {}))
|
|
36945
|
-
if (__hasOwnProp$z.call(b, prop))
|
|
36946
|
-
__defNormalProp$u(a, prop, b[prop]);
|
|
36947
|
-
if (__getOwnPropSymbols$z)
|
|
36948
|
-
for (var prop of __getOwnPropSymbols$z(b)) {
|
|
36949
|
-
if (__propIsEnum$z.call(b, prop))
|
|
36950
|
-
__defNormalProp$u(a, prop, b[prop]);
|
|
36951
|
-
}
|
|
36952
|
-
return a;
|
|
36953
|
-
};
|
|
36954
|
-
var __spreadProps$r = (a, b) => __defProps$r(a, __getOwnPropDescs$r(b));
|
|
36955
|
-
var __async$D = (__this, __arguments, generator) => {
|
|
36956
|
-
return new Promise((resolve, reject) => {
|
|
36957
|
-
var fulfilled = (value) => {
|
|
36958
|
-
try {
|
|
36959
|
-
step(generator.next(value));
|
|
36960
|
-
} catch (e) {
|
|
36961
|
-
reject(e);
|
|
36962
|
-
}
|
|
36963
|
-
};
|
|
36964
|
-
var rejected = (value) => {
|
|
36965
|
-
try {
|
|
36966
|
-
step(generator.throw(value));
|
|
36967
|
-
} catch (e) {
|
|
36968
|
-
reject(e);
|
|
36969
|
-
}
|
|
36970
|
-
};
|
|
36971
|
-
var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
|
|
36972
|
-
step((generator = generator.apply(__this, __arguments)).next());
|
|
36973
|
-
});
|
|
36974
|
-
};
|
|
36975
|
-
const useCreateInvoiceAddress = (params) => {
|
|
36976
|
-
const { client } = useShipEngine();
|
|
36977
|
-
return useMutation(__spreadProps$r(__spreadValues$u({}, params), {
|
|
36978
|
-
mutationFn: (invoiceAddress) => __async$D(void 0, null, function* () {
|
|
36979
|
-
const result = yield client.invoiceAddress.create(invoiceAddress);
|
|
36980
|
-
return result.data;
|
|
36981
|
-
}),
|
|
36982
|
-
mutationKey: ["useCreateInvoiceAddress"],
|
|
36983
|
-
onError
|
|
36984
|
-
}));
|
|
36985
|
-
};
|
|
36986
|
-
|
|
36987
36928
|
var __defProp$t = Object.defineProperty;
|
|
36988
36929
|
var __defProps$q = Object.defineProperties;
|
|
36989
36930
|
var __getOwnPropDescs$q = Object.getOwnPropertyDescriptors;
|
|
@@ -37003,7 +36944,7 @@ var __spreadValues$t = (a, b) => {
|
|
|
37003
36944
|
return a;
|
|
37004
36945
|
};
|
|
37005
36946
|
var __spreadProps$q = (a, b) => __defProps$q(a, __getOwnPropDescs$q(b));
|
|
37006
|
-
var __async$
|
|
36947
|
+
var __async$D = (__this, __arguments, generator) => {
|
|
37007
36948
|
return new Promise((resolve, reject) => {
|
|
37008
36949
|
var fulfilled = (value) => {
|
|
37009
36950
|
try {
|
|
@@ -37023,14 +36964,14 @@ var __async$C = (__this, __arguments, generator) => {
|
|
|
37023
36964
|
step((generator = generator.apply(__this, __arguments)).next());
|
|
37024
36965
|
});
|
|
37025
36966
|
};
|
|
37026
|
-
const
|
|
36967
|
+
const useCreateInvoiceAddress = (params) => {
|
|
37027
36968
|
const { client } = useShipEngine();
|
|
37028
36969
|
return useMutation(__spreadProps$q(__spreadValues$t({}, params), {
|
|
37029
|
-
mutationFn: (invoiceAddress) => __async$
|
|
37030
|
-
const result = yield client.invoiceAddress.
|
|
36970
|
+
mutationFn: (invoiceAddress) => __async$D(void 0, null, function* () {
|
|
36971
|
+
const result = yield client.invoiceAddress.create(invoiceAddress);
|
|
37031
36972
|
return result.data;
|
|
37032
36973
|
}),
|
|
37033
|
-
mutationKey: ["
|
|
36974
|
+
mutationKey: ["useCreateInvoiceAddress"],
|
|
37034
36975
|
onError
|
|
37035
36976
|
}));
|
|
37036
36977
|
};
|
|
@@ -37054,17 +36995,7 @@ var __spreadValues$s = (a, b) => {
|
|
|
37054
36995
|
return a;
|
|
37055
36996
|
};
|
|
37056
36997
|
var __spreadProps$p = (a, b) => __defProps$p(a, __getOwnPropDescs$p(b));
|
|
37057
|
-
|
|
37058
|
-
const { client } = useShipEngine();
|
|
37059
|
-
return useQuery(__spreadProps$p(__spreadValues$s({}, params), {
|
|
37060
|
-
onError,
|
|
37061
|
-
queryFn: () => client.invoiceAddress.get(),
|
|
37062
|
-
queryKey: ["useGetInvoiceAddress"],
|
|
37063
|
-
select: (result) => result.data
|
|
37064
|
-
}));
|
|
37065
|
-
};
|
|
37066
|
-
|
|
37067
|
-
var __async$B = (__this, __arguments, generator) => {
|
|
36998
|
+
var __async$C = (__this, __arguments, generator) => {
|
|
37068
36999
|
return new Promise((resolve, reject) => {
|
|
37069
37000
|
var fulfilled = (value) => {
|
|
37070
37001
|
try {
|
|
@@ -37084,16 +37015,16 @@ var __async$B = (__this, __arguments, generator) => {
|
|
|
37084
37015
|
step((generator = generator.apply(__this, __arguments)).next());
|
|
37085
37016
|
});
|
|
37086
37017
|
};
|
|
37087
|
-
const
|
|
37018
|
+
const useUpdateInvoiceAddress = (params) => {
|
|
37088
37019
|
const { client } = useShipEngine();
|
|
37089
|
-
return useMutation({
|
|
37090
|
-
mutationFn: (
|
|
37091
|
-
const result = yield client.
|
|
37020
|
+
return useMutation(__spreadProps$p(__spreadValues$s({}, params), {
|
|
37021
|
+
mutationFn: (invoiceAddress) => __async$C(void 0, null, function* () {
|
|
37022
|
+
const result = yield client.invoiceAddress.update(invoiceAddress);
|
|
37092
37023
|
return result.data;
|
|
37093
37024
|
}),
|
|
37094
|
-
mutationKey: ["
|
|
37025
|
+
mutationKey: ["useUpdateInvoiceAddress"],
|
|
37095
37026
|
onError
|
|
37096
|
-
});
|
|
37027
|
+
}));
|
|
37097
37028
|
};
|
|
37098
37029
|
|
|
37099
37030
|
var __defProp$r = Object.defineProperty;
|
|
@@ -37115,19 +37046,17 @@ var __spreadValues$r = (a, b) => {
|
|
|
37115
37046
|
return a;
|
|
37116
37047
|
};
|
|
37117
37048
|
var __spreadProps$o = (a, b) => __defProps$o(a, __getOwnPropDescs$o(b));
|
|
37118
|
-
|
|
37119
|
-
|
|
37120
|
-
|
|
37121
|
-
|
|
37122
|
-
|
|
37123
|
-
|
|
37124
|
-
|
|
37125
|
-
|
|
37126
|
-
target[prop] = source[prop];
|
|
37127
|
-
}
|
|
37128
|
-
return target;
|
|
37049
|
+
const useGetInvoiceAddress = (params) => {
|
|
37050
|
+
const { client } = useShipEngine();
|
|
37051
|
+
return useQuery(__spreadProps$o(__spreadValues$r({}, params), {
|
|
37052
|
+
onError,
|
|
37053
|
+
queryFn: () => client.invoiceAddress.get(),
|
|
37054
|
+
queryKey: ["useGetInvoiceAddress"],
|
|
37055
|
+
select: (result) => result.data
|
|
37056
|
+
}));
|
|
37129
37057
|
};
|
|
37130
|
-
|
|
37058
|
+
|
|
37059
|
+
var __async$B = (__this, __arguments, generator) => {
|
|
37131
37060
|
return new Promise((resolve, reject) => {
|
|
37132
37061
|
var fulfilled = (value) => {
|
|
37133
37062
|
try {
|
|
@@ -37147,17 +37076,16 @@ var __async$A = (__this, __arguments, generator) => {
|
|
|
37147
37076
|
step((generator = generator.apply(__this, __arguments)).next());
|
|
37148
37077
|
});
|
|
37149
37078
|
};
|
|
37150
|
-
const
|
|
37079
|
+
const useCancelRefund = () => {
|
|
37151
37080
|
const { client } = useShipEngine();
|
|
37152
|
-
return useMutation(
|
|
37153
|
-
mutationFn: (
|
|
37154
|
-
|
|
37155
|
-
const result = yield client.labels.createByRateId(rateId, options);
|
|
37081
|
+
return useMutation({
|
|
37082
|
+
mutationFn: (labelId) => __async$B(void 0, null, function* () {
|
|
37083
|
+
const result = yield client.labels.cancelRefund(labelId);
|
|
37156
37084
|
return result.data;
|
|
37157
37085
|
}),
|
|
37158
|
-
mutationKey: ["
|
|
37086
|
+
mutationKey: ["useCancelRefund"],
|
|
37159
37087
|
onError
|
|
37160
|
-
})
|
|
37088
|
+
});
|
|
37161
37089
|
};
|
|
37162
37090
|
|
|
37163
37091
|
var __defProp$q = Object.defineProperty;
|
|
@@ -37179,7 +37107,7 @@ var __spreadValues$q = (a, b) => {
|
|
|
37179
37107
|
return a;
|
|
37180
37108
|
};
|
|
37181
37109
|
var __spreadProps$n = (a, b) => __defProps$n(a, __getOwnPropDescs$n(b));
|
|
37182
|
-
var __objRest$
|
|
37110
|
+
var __objRest$l = (source, exclude) => {
|
|
37183
37111
|
var target = {};
|
|
37184
37112
|
for (var prop in source)
|
|
37185
37113
|
if (__hasOwnProp$v.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
@@ -37191,7 +37119,7 @@ var __objRest$k = (source, exclude) => {
|
|
|
37191
37119
|
}
|
|
37192
37120
|
return target;
|
|
37193
37121
|
};
|
|
37194
|
-
var __async$
|
|
37122
|
+
var __async$A = (__this, __arguments, generator) => {
|
|
37195
37123
|
return new Promise((resolve, reject) => {
|
|
37196
37124
|
var fulfilled = (value) => {
|
|
37197
37125
|
try {
|
|
@@ -37211,15 +37139,15 @@ var __async$z = (__this, __arguments, generator) => {
|
|
|
37211
37139
|
step((generator = generator.apply(__this, __arguments)).next());
|
|
37212
37140
|
});
|
|
37213
37141
|
};
|
|
37214
|
-
const
|
|
37142
|
+
const useCreateLabelByRateId = (params) => {
|
|
37215
37143
|
const { client } = useShipEngine();
|
|
37216
37144
|
return useMutation(__spreadProps$n(__spreadValues$q({}, params), {
|
|
37217
|
-
mutationFn: (_a) => __async$
|
|
37218
|
-
var _b = _a, {
|
|
37219
|
-
const result = yield client.labels.
|
|
37145
|
+
mutationFn: (_a) => __async$A(void 0, null, function* () {
|
|
37146
|
+
var _b = _a, { rateId } = _b, options = __objRest$l(_b, ["rateId"]);
|
|
37147
|
+
const result = yield client.labels.createByRateId(rateId, options);
|
|
37220
37148
|
return result.data;
|
|
37221
37149
|
}),
|
|
37222
|
-
mutationKey: ["
|
|
37150
|
+
mutationKey: ["useCreateLabelByRateId"],
|
|
37223
37151
|
onError
|
|
37224
37152
|
}));
|
|
37225
37153
|
};
|
|
@@ -37243,7 +37171,7 @@ var __spreadValues$p = (a, b) => {
|
|
|
37243
37171
|
return a;
|
|
37244
37172
|
};
|
|
37245
37173
|
var __spreadProps$m = (a, b) => __defProps$m(a, __getOwnPropDescs$m(b));
|
|
37246
|
-
var __objRest$
|
|
37174
|
+
var __objRest$k = (source, exclude) => {
|
|
37247
37175
|
var target = {};
|
|
37248
37176
|
for (var prop in source)
|
|
37249
37177
|
if (__hasOwnProp$u.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
@@ -37255,7 +37183,7 @@ var __objRest$j = (source, exclude) => {
|
|
|
37255
37183
|
}
|
|
37256
37184
|
return target;
|
|
37257
37185
|
};
|
|
37258
|
-
var __async$
|
|
37186
|
+
var __async$z = (__this, __arguments, generator) => {
|
|
37259
37187
|
return new Promise((resolve, reject) => {
|
|
37260
37188
|
var fulfilled = (value) => {
|
|
37261
37189
|
try {
|
|
@@ -37275,15 +37203,15 @@ var __async$y = (__this, __arguments, generator) => {
|
|
|
37275
37203
|
step((generator = generator.apply(__this, __arguments)).next());
|
|
37276
37204
|
});
|
|
37277
37205
|
};
|
|
37278
|
-
const
|
|
37206
|
+
const useCreateLabelByShipmentId = (params) => {
|
|
37279
37207
|
const { client } = useShipEngine();
|
|
37280
37208
|
return useMutation(__spreadProps$m(__spreadValues$p({}, params), {
|
|
37281
|
-
mutationFn: (_a) => __async$
|
|
37282
|
-
var _b = _a, {
|
|
37283
|
-
const result = yield client.labels.
|
|
37209
|
+
mutationFn: (_a) => __async$z(void 0, null, function* () {
|
|
37210
|
+
var _b = _a, { shipmentId } = _b, options = __objRest$k(_b, ["shipmentId"]);
|
|
37211
|
+
const result = yield client.labels.createByShipmentId(shipmentId, options);
|
|
37284
37212
|
return result.data;
|
|
37285
37213
|
}),
|
|
37286
|
-
mutationKey: ["
|
|
37214
|
+
mutationKey: ["useCreateLabelByShipmentId"],
|
|
37287
37215
|
onError
|
|
37288
37216
|
}));
|
|
37289
37217
|
};
|
|
@@ -37307,7 +37235,7 @@ var __spreadValues$o = (a, b) => {
|
|
|
37307
37235
|
return a;
|
|
37308
37236
|
};
|
|
37309
37237
|
var __spreadProps$l = (a, b) => __defProps$l(a, __getOwnPropDescs$l(b));
|
|
37310
|
-
var __objRest$
|
|
37238
|
+
var __objRest$j = (source, exclude) => {
|
|
37311
37239
|
var target = {};
|
|
37312
37240
|
for (var prop in source)
|
|
37313
37241
|
if (__hasOwnProp$t.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
@@ -37319,29 +37247,37 @@ var __objRest$i = (source, exclude) => {
|
|
|
37319
37247
|
}
|
|
37320
37248
|
return target;
|
|
37321
37249
|
};
|
|
37322
|
-
|
|
37323
|
-
|
|
37324
|
-
|
|
37325
|
-
|
|
37326
|
-
|
|
37327
|
-
|
|
37328
|
-
|
|
37329
|
-
|
|
37250
|
+
var __async$y = (__this, __arguments, generator) => {
|
|
37251
|
+
return new Promise((resolve, reject) => {
|
|
37252
|
+
var fulfilled = (value) => {
|
|
37253
|
+
try {
|
|
37254
|
+
step(generator.next(value));
|
|
37255
|
+
} catch (e) {
|
|
37256
|
+
reject(e);
|
|
37257
|
+
}
|
|
37258
|
+
};
|
|
37259
|
+
var rejected = (value) => {
|
|
37260
|
+
try {
|
|
37261
|
+
step(generator.throw(value));
|
|
37262
|
+
} catch (e) {
|
|
37263
|
+
reject(e);
|
|
37264
|
+
}
|
|
37265
|
+
};
|
|
37266
|
+
var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
|
|
37267
|
+
step((generator = generator.apply(__this, __arguments)).next());
|
|
37268
|
+
});
|
|
37330
37269
|
};
|
|
37331
|
-
|
|
37332
|
-
const useGetLabel = (labelId) => {
|
|
37270
|
+
const useCreateLabel = (params) => {
|
|
37333
37271
|
const { client } = useShipEngine();
|
|
37334
|
-
return
|
|
37335
|
-
|
|
37336
|
-
|
|
37337
|
-
|
|
37338
|
-
|
|
37339
|
-
|
|
37340
|
-
|
|
37341
|
-
|
|
37342
|
-
|
|
37343
|
-
select: (result) => result.data
|
|
37344
|
-
});
|
|
37272
|
+
return useMutation(__spreadProps$l(__spreadValues$o({}, params), {
|
|
37273
|
+
mutationFn: (_a) => __async$y(void 0, null, function* () {
|
|
37274
|
+
var _b = _a, { rateId } = _b, options = __objRest$j(_b, ["rateId"]);
|
|
37275
|
+
const result = yield client.labels.createByRateId(rateId, options);
|
|
37276
|
+
return result.data;
|
|
37277
|
+
}),
|
|
37278
|
+
mutationKey: ["useCreateLabel"],
|
|
37279
|
+
onError
|
|
37280
|
+
}));
|
|
37345
37281
|
};
|
|
37346
37282
|
|
|
37347
37283
|
var __defProp$n = Object.defineProperty;
|
|
@@ -37363,7 +37299,7 @@ var __spreadValues$n = (a, b) => {
|
|
|
37363
37299
|
return a;
|
|
37364
37300
|
};
|
|
37365
37301
|
var __spreadProps$k = (a, b) => __defProps$k(a, __getOwnPropDescs$k(b));
|
|
37366
|
-
var __objRest$
|
|
37302
|
+
var __objRest$i = (source, exclude) => {
|
|
37367
37303
|
var target = {};
|
|
37368
37304
|
for (var prop in source)
|
|
37369
37305
|
if (__hasOwnProp$s.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
@@ -37375,17 +37311,31 @@ var __objRest$h = (source, exclude) => {
|
|
|
37375
37311
|
}
|
|
37376
37312
|
return target;
|
|
37377
37313
|
};
|
|
37378
|
-
const
|
|
37314
|
+
const useExportLabels = (params) => {
|
|
37379
37315
|
const { client } = useShipEngine();
|
|
37380
|
-
const _a = __spreadValues$n({}, params), { queryFnParams } = _a, rest = __objRest$
|
|
37316
|
+
const _a = __spreadValues$n({}, params), { queryFnParams } = _a, rest = __objRest$i(_a, ["queryFnParams"]);
|
|
37381
37317
|
return useQuery(__spreadProps$k(__spreadValues$n({}, rest), {
|
|
37382
37318
|
onError,
|
|
37383
|
-
queryFn: () => client.labels.
|
|
37384
|
-
queryKey: ["
|
|
37385
|
-
select: (result) => result.data
|
|
37319
|
+
queryFn: () => client.labels.export(queryFnParams),
|
|
37320
|
+
queryKey: ["useExportLabels", params]
|
|
37386
37321
|
}));
|
|
37387
37322
|
};
|
|
37388
37323
|
|
|
37324
|
+
const useGetLabel = (labelId) => {
|
|
37325
|
+
const { client } = useShipEngine();
|
|
37326
|
+
return useQuery({
|
|
37327
|
+
enabled: labelId !== void 0,
|
|
37328
|
+
onError,
|
|
37329
|
+
queryFn: () => {
|
|
37330
|
+
if (labelId)
|
|
37331
|
+
return client.labels.get(labelId);
|
|
37332
|
+
return Promise.reject(new Error("labelId is require"));
|
|
37333
|
+
},
|
|
37334
|
+
queryKey: ["useGetLabel", labelId],
|
|
37335
|
+
select: (result) => result.data
|
|
37336
|
+
});
|
|
37337
|
+
};
|
|
37338
|
+
|
|
37389
37339
|
var __defProp$m = Object.defineProperty;
|
|
37390
37340
|
var __defProps$j = Object.defineProperties;
|
|
37391
37341
|
var __getOwnPropDescs$j = Object.getOwnPropertyDescriptors;
|
|
@@ -37405,7 +37355,7 @@ var __spreadValues$m = (a, b) => {
|
|
|
37405
37355
|
return a;
|
|
37406
37356
|
};
|
|
37407
37357
|
var __spreadProps$j = (a, b) => __defProps$j(a, __getOwnPropDescs$j(b));
|
|
37408
|
-
var __objRest$
|
|
37358
|
+
var __objRest$h = (source, exclude) => {
|
|
37409
37359
|
var target = {};
|
|
37410
37360
|
for (var prop in source)
|
|
37411
37361
|
if (__hasOwnProp$r.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
@@ -37417,6 +37367,48 @@ var __objRest$g = (source, exclude) => {
|
|
|
37417
37367
|
}
|
|
37418
37368
|
return target;
|
|
37419
37369
|
};
|
|
37370
|
+
const useListLabels = (params) => {
|
|
37371
|
+
const { client } = useShipEngine();
|
|
37372
|
+
const _a = __spreadValues$m({}, params), { queryFnParams } = _a, rest = __objRest$h(_a, ["queryFnParams"]);
|
|
37373
|
+
return useQuery(__spreadProps$j(__spreadValues$m({}, rest), {
|
|
37374
|
+
onError,
|
|
37375
|
+
queryFn: () => client.labels.list(queryFnParams),
|
|
37376
|
+
queryKey: ["useListLabels", params],
|
|
37377
|
+
select: (result) => result.data
|
|
37378
|
+
}));
|
|
37379
|
+
};
|
|
37380
|
+
|
|
37381
|
+
var __defProp$l = Object.defineProperty;
|
|
37382
|
+
var __defProps$i = Object.defineProperties;
|
|
37383
|
+
var __getOwnPropDescs$i = Object.getOwnPropertyDescriptors;
|
|
37384
|
+
var __getOwnPropSymbols$q = Object.getOwnPropertySymbols;
|
|
37385
|
+
var __hasOwnProp$q = Object.prototype.hasOwnProperty;
|
|
37386
|
+
var __propIsEnum$q = Object.prototype.propertyIsEnumerable;
|
|
37387
|
+
var __defNormalProp$l = (obj, key, value) => key in obj ? __defProp$l(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
37388
|
+
var __spreadValues$l = (a, b) => {
|
|
37389
|
+
for (var prop in b || (b = {}))
|
|
37390
|
+
if (__hasOwnProp$q.call(b, prop))
|
|
37391
|
+
__defNormalProp$l(a, prop, b[prop]);
|
|
37392
|
+
if (__getOwnPropSymbols$q)
|
|
37393
|
+
for (var prop of __getOwnPropSymbols$q(b)) {
|
|
37394
|
+
if (__propIsEnum$q.call(b, prop))
|
|
37395
|
+
__defNormalProp$l(a, prop, b[prop]);
|
|
37396
|
+
}
|
|
37397
|
+
return a;
|
|
37398
|
+
};
|
|
37399
|
+
var __spreadProps$i = (a, b) => __defProps$i(a, __getOwnPropDescs$i(b));
|
|
37400
|
+
var __objRest$g = (source, exclude) => {
|
|
37401
|
+
var target = {};
|
|
37402
|
+
for (var prop in source)
|
|
37403
|
+
if (__hasOwnProp$q.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
37404
|
+
target[prop] = source[prop];
|
|
37405
|
+
if (source != null && __getOwnPropSymbols$q)
|
|
37406
|
+
for (var prop of __getOwnPropSymbols$q(source)) {
|
|
37407
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$q.call(source, prop))
|
|
37408
|
+
target[prop] = source[prop];
|
|
37409
|
+
}
|
|
37410
|
+
return target;
|
|
37411
|
+
};
|
|
37420
37412
|
var __async$x = (__this, __arguments, generator) => {
|
|
37421
37413
|
return new Promise((resolve, reject) => {
|
|
37422
37414
|
var fulfilled = (value) => {
|
|
@@ -37439,8 +37431,8 @@ var __async$x = (__this, __arguments, generator) => {
|
|
|
37439
37431
|
};
|
|
37440
37432
|
const useListLabelsInfinite = (params) => {
|
|
37441
37433
|
const { client } = useShipEngine();
|
|
37442
|
-
const _a = __spreadValues$
|
|
37443
|
-
return useInfiniteQuery(__spreadProps$
|
|
37434
|
+
const _a = __spreadValues$l({}, params), { queryFnParams } = _a, rest = __objRest$g(_a, ["queryFnParams"]);
|
|
37435
|
+
return useInfiniteQuery(__spreadProps$i(__spreadValues$l({}, rest), {
|
|
37444
37436
|
getNextPageParam: (lastPage) => {
|
|
37445
37437
|
if (lastPage.page < lastPage.pages) {
|
|
37446
37438
|
return lastPage.page + 1;
|
|
@@ -37449,7 +37441,7 @@ const useListLabelsInfinite = (params) => {
|
|
|
37449
37441
|
},
|
|
37450
37442
|
onError,
|
|
37451
37443
|
queryFn: (_0) => __async$x(void 0, [_0], function* ({ pageParam = 1 }) {
|
|
37452
|
-
const response = yield client.labels.list(__spreadProps$
|
|
37444
|
+
const response = yield client.labels.list(__spreadProps$i(__spreadValues$l({}, queryFnParams), { page: pageParam }));
|
|
37453
37445
|
return response.data;
|
|
37454
37446
|
}),
|
|
37455
37447
|
queryKey: ["useListLabelsInfinite", params],
|
|
@@ -37495,28 +37487,28 @@ const useVoidLabel = () => {
|
|
|
37495
37487
|
});
|
|
37496
37488
|
};
|
|
37497
37489
|
|
|
37498
|
-
var __defProp$
|
|
37499
|
-
var __defProps$
|
|
37500
|
-
var __getOwnPropDescs$
|
|
37501
|
-
var __getOwnPropSymbols$
|
|
37502
|
-
var __hasOwnProp$
|
|
37503
|
-
var __propIsEnum$
|
|
37504
|
-
var __defNormalProp$
|
|
37505
|
-
var __spreadValues$
|
|
37490
|
+
var __defProp$k = Object.defineProperty;
|
|
37491
|
+
var __defProps$h = Object.defineProperties;
|
|
37492
|
+
var __getOwnPropDescs$h = Object.getOwnPropertyDescriptors;
|
|
37493
|
+
var __getOwnPropSymbols$p = Object.getOwnPropertySymbols;
|
|
37494
|
+
var __hasOwnProp$p = Object.prototype.hasOwnProperty;
|
|
37495
|
+
var __propIsEnum$p = Object.prototype.propertyIsEnumerable;
|
|
37496
|
+
var __defNormalProp$k = (obj, key, value) => key in obj ? __defProp$k(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
37497
|
+
var __spreadValues$k = (a, b) => {
|
|
37506
37498
|
for (var prop in b || (b = {}))
|
|
37507
|
-
if (__hasOwnProp$
|
|
37508
|
-
__defNormalProp$
|
|
37509
|
-
if (__getOwnPropSymbols$
|
|
37510
|
-
for (var prop of __getOwnPropSymbols$
|
|
37511
|
-
if (__propIsEnum$
|
|
37512
|
-
__defNormalProp$
|
|
37499
|
+
if (__hasOwnProp$p.call(b, prop))
|
|
37500
|
+
__defNormalProp$k(a, prop, b[prop]);
|
|
37501
|
+
if (__getOwnPropSymbols$p)
|
|
37502
|
+
for (var prop of __getOwnPropSymbols$p(b)) {
|
|
37503
|
+
if (__propIsEnum$p.call(b, prop))
|
|
37504
|
+
__defNormalProp$k(a, prop, b[prop]);
|
|
37513
37505
|
}
|
|
37514
37506
|
return a;
|
|
37515
37507
|
};
|
|
37516
|
-
var __spreadProps$
|
|
37508
|
+
var __spreadProps$h = (a, b) => __defProps$h(a, __getOwnPropDescs$h(b));
|
|
37517
37509
|
const useListOrderSources = (params) => {
|
|
37518
37510
|
const { client } = useShipEngine();
|
|
37519
|
-
return useQuery(__spreadProps$
|
|
37511
|
+
return useQuery(__spreadProps$h(__spreadValues$k({}, params), {
|
|
37520
37512
|
onError,
|
|
37521
37513
|
queryFn: () => client.orderSources.list(),
|
|
37522
37514
|
queryKey: ["useListOrderSources"],
|
|
@@ -37954,17 +37946,17 @@ const useListSalesOrders = (params = {}) => {
|
|
|
37954
37946
|
});
|
|
37955
37947
|
};
|
|
37956
37948
|
|
|
37957
|
-
var __getOwnPropSymbols$
|
|
37958
|
-
var __hasOwnProp$
|
|
37959
|
-
var __propIsEnum$
|
|
37949
|
+
var __getOwnPropSymbols$o = Object.getOwnPropertySymbols;
|
|
37950
|
+
var __hasOwnProp$o = Object.prototype.hasOwnProperty;
|
|
37951
|
+
var __propIsEnum$o = Object.prototype.propertyIsEnumerable;
|
|
37960
37952
|
var __objRest$f = (source, exclude) => {
|
|
37961
37953
|
var target = {};
|
|
37962
37954
|
for (var prop in source)
|
|
37963
|
-
if (__hasOwnProp$
|
|
37955
|
+
if (__hasOwnProp$o.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
37964
37956
|
target[prop] = source[prop];
|
|
37965
|
-
if (source != null && __getOwnPropSymbols$
|
|
37966
|
-
for (var prop of __getOwnPropSymbols$
|
|
37967
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
37957
|
+
if (source != null && __getOwnPropSymbols$o)
|
|
37958
|
+
for (var prop of __getOwnPropSymbols$o(source)) {
|
|
37959
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$o.call(source, prop))
|
|
37968
37960
|
target[prop] = source[prop];
|
|
37969
37961
|
}
|
|
37970
37962
|
return target;
|
|
@@ -38002,17 +37994,17 @@ const useNotifySalesOrderShipped = () => {
|
|
|
38002
37994
|
});
|
|
38003
37995
|
};
|
|
38004
37996
|
|
|
38005
|
-
var __getOwnPropSymbols$
|
|
38006
|
-
var __hasOwnProp$
|
|
38007
|
-
var __propIsEnum$
|
|
37997
|
+
var __getOwnPropSymbols$n = Object.getOwnPropertySymbols;
|
|
37998
|
+
var __hasOwnProp$n = Object.prototype.hasOwnProperty;
|
|
37999
|
+
var __propIsEnum$n = Object.prototype.propertyIsEnumerable;
|
|
38008
38000
|
var __objRest$e = (source, exclude) => {
|
|
38009
38001
|
var target = {};
|
|
38010
38002
|
for (var prop in source)
|
|
38011
|
-
if (__hasOwnProp$
|
|
38003
|
+
if (__hasOwnProp$n.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
38012
38004
|
target[prop] = source[prop];
|
|
38013
|
-
if (source != null && __getOwnPropSymbols$
|
|
38014
|
-
for (var prop of __getOwnPropSymbols$
|
|
38015
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
38005
|
+
if (source != null && __getOwnPropSymbols$n)
|
|
38006
|
+
for (var prop of __getOwnPropSymbols$n(source)) {
|
|
38007
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$n.call(source, prop))
|
|
38016
38008
|
target[prop] = source[prop];
|
|
38017
38009
|
}
|
|
38018
38010
|
return target;
|
|
@@ -38077,17 +38069,17 @@ const useListSalesOrderShipments = (body) => {
|
|
|
38077
38069
|
});
|
|
38078
38070
|
};
|
|
38079
38071
|
|
|
38080
|
-
var __getOwnPropSymbols$
|
|
38081
|
-
var __hasOwnProp$
|
|
38082
|
-
var __propIsEnum$
|
|
38072
|
+
var __getOwnPropSymbols$m = Object.getOwnPropertySymbols;
|
|
38073
|
+
var __hasOwnProp$m = Object.prototype.hasOwnProperty;
|
|
38074
|
+
var __propIsEnum$m = Object.prototype.propertyIsEnumerable;
|
|
38083
38075
|
var __objRest$d = (source, exclude) => {
|
|
38084
38076
|
var target = {};
|
|
38085
38077
|
for (var prop in source)
|
|
38086
|
-
if (__hasOwnProp$
|
|
38078
|
+
if (__hasOwnProp$m.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
38087
38079
|
target[prop] = source[prop];
|
|
38088
|
-
if (source != null && __getOwnPropSymbols$
|
|
38089
|
-
for (var prop of __getOwnPropSymbols$
|
|
38090
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
38080
|
+
if (source != null && __getOwnPropSymbols$m)
|
|
38081
|
+
for (var prop of __getOwnPropSymbols$m(source)) {
|
|
38082
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$m.call(source, prop))
|
|
38091
38083
|
target[prop] = source[prop];
|
|
38092
38084
|
}
|
|
38093
38085
|
return target;
|
|
@@ -38136,25 +38128,25 @@ const useListSalesOrderShipmentsByExternalOrderId = (externalOrderId) => {
|
|
|
38136
38128
|
});
|
|
38137
38129
|
};
|
|
38138
38130
|
|
|
38139
|
-
var __defProp$
|
|
38140
|
-
var __defProps$
|
|
38141
|
-
var __getOwnPropDescs$
|
|
38142
|
-
var __getOwnPropSymbols$
|
|
38143
|
-
var __hasOwnProp$
|
|
38144
|
-
var __propIsEnum$
|
|
38145
|
-
var __defNormalProp$
|
|
38146
|
-
var __spreadValues$
|
|
38131
|
+
var __defProp$j = Object.defineProperty;
|
|
38132
|
+
var __defProps$g = Object.defineProperties;
|
|
38133
|
+
var __getOwnPropDescs$g = Object.getOwnPropertyDescriptors;
|
|
38134
|
+
var __getOwnPropSymbols$l = Object.getOwnPropertySymbols;
|
|
38135
|
+
var __hasOwnProp$l = Object.prototype.hasOwnProperty;
|
|
38136
|
+
var __propIsEnum$l = Object.prototype.propertyIsEnumerable;
|
|
38137
|
+
var __defNormalProp$j = (obj, key, value) => key in obj ? __defProp$j(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
38138
|
+
var __spreadValues$j = (a, b) => {
|
|
38147
38139
|
for (var prop in b || (b = {}))
|
|
38148
|
-
if (__hasOwnProp$
|
|
38149
|
-
__defNormalProp$
|
|
38150
|
-
if (__getOwnPropSymbols$
|
|
38151
|
-
for (var prop of __getOwnPropSymbols$
|
|
38152
|
-
if (__propIsEnum$
|
|
38153
|
-
__defNormalProp$
|
|
38140
|
+
if (__hasOwnProp$l.call(b, prop))
|
|
38141
|
+
__defNormalProp$j(a, prop, b[prop]);
|
|
38142
|
+
if (__getOwnPropSymbols$l)
|
|
38143
|
+
for (var prop of __getOwnPropSymbols$l(b)) {
|
|
38144
|
+
if (__propIsEnum$l.call(b, prop))
|
|
38145
|
+
__defNormalProp$j(a, prop, b[prop]);
|
|
38154
38146
|
}
|
|
38155
38147
|
return a;
|
|
38156
38148
|
};
|
|
38157
|
-
var __spreadProps$
|
|
38149
|
+
var __spreadProps$g = (a, b) => __defProps$g(a, __getOwnPropDescs$g(b));
|
|
38158
38150
|
var __async$i = (__this, __arguments, generator) => {
|
|
38159
38151
|
return new Promise((resolve, reject) => {
|
|
38160
38152
|
var fulfilled = (value) => {
|
|
@@ -38196,7 +38188,7 @@ const useCreateShipment = () => {
|
|
|
38196
38188
|
postalCode: "",
|
|
38197
38189
|
stateProvince: ""
|
|
38198
38190
|
};
|
|
38199
|
-
return (yield client.shipments.create(__spreadProps$
|
|
38191
|
+
return (yield client.shipments.create(__spreadProps$g(__spreadValues$j({}, shipment), {
|
|
38200
38192
|
shipTo
|
|
38201
38193
|
}))).data;
|
|
38202
38194
|
}),
|
|
@@ -38205,33 +38197,33 @@ const useCreateShipment = () => {
|
|
|
38205
38197
|
});
|
|
38206
38198
|
};
|
|
38207
38199
|
|
|
38208
|
-
var __defProp$
|
|
38209
|
-
var __defProps$
|
|
38210
|
-
var __getOwnPropDescs$
|
|
38211
|
-
var __getOwnPropSymbols$
|
|
38212
|
-
var __hasOwnProp$
|
|
38213
|
-
var __propIsEnum$
|
|
38214
|
-
var __defNormalProp$
|
|
38215
|
-
var __spreadValues$
|
|
38200
|
+
var __defProp$i = Object.defineProperty;
|
|
38201
|
+
var __defProps$f = Object.defineProperties;
|
|
38202
|
+
var __getOwnPropDescs$f = Object.getOwnPropertyDescriptors;
|
|
38203
|
+
var __getOwnPropSymbols$k = Object.getOwnPropertySymbols;
|
|
38204
|
+
var __hasOwnProp$k = Object.prototype.hasOwnProperty;
|
|
38205
|
+
var __propIsEnum$k = Object.prototype.propertyIsEnumerable;
|
|
38206
|
+
var __defNormalProp$i = (obj, key, value) => key in obj ? __defProp$i(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
38207
|
+
var __spreadValues$i = (a, b) => {
|
|
38216
38208
|
for (var prop in b || (b = {}))
|
|
38217
|
-
if (__hasOwnProp$
|
|
38218
|
-
__defNormalProp$
|
|
38219
|
-
if (__getOwnPropSymbols$
|
|
38220
|
-
for (var prop of __getOwnPropSymbols$
|
|
38221
|
-
if (__propIsEnum$
|
|
38222
|
-
__defNormalProp$
|
|
38209
|
+
if (__hasOwnProp$k.call(b, prop))
|
|
38210
|
+
__defNormalProp$i(a, prop, b[prop]);
|
|
38211
|
+
if (__getOwnPropSymbols$k)
|
|
38212
|
+
for (var prop of __getOwnPropSymbols$k(b)) {
|
|
38213
|
+
if (__propIsEnum$k.call(b, prop))
|
|
38214
|
+
__defNormalProp$i(a, prop, b[prop]);
|
|
38223
38215
|
}
|
|
38224
38216
|
return a;
|
|
38225
38217
|
};
|
|
38226
|
-
var __spreadProps$
|
|
38218
|
+
var __spreadProps$f = (a, b) => __defProps$f(a, __getOwnPropDescs$f(b));
|
|
38227
38219
|
var __objRest$c = (source, exclude) => {
|
|
38228
38220
|
var target = {};
|
|
38229
38221
|
for (var prop in source)
|
|
38230
|
-
if (__hasOwnProp$
|
|
38222
|
+
if (__hasOwnProp$k.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
38231
38223
|
target[prop] = source[prop];
|
|
38232
|
-
if (source != null && __getOwnPropSymbols$
|
|
38233
|
-
for (var prop of __getOwnPropSymbols$
|
|
38234
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
38224
|
+
if (source != null && __getOwnPropSymbols$k)
|
|
38225
|
+
for (var prop of __getOwnPropSymbols$k(source)) {
|
|
38226
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$k.call(source, prop))
|
|
38235
38227
|
target[prop] = source[prop];
|
|
38236
38228
|
}
|
|
38237
38229
|
return target;
|
|
@@ -38241,7 +38233,7 @@ const useGetShipmentRates = (params) => {
|
|
|
38241
38233
|
const _a = params, { queryFnParams } = _a, rest = __objRest$c(_a, ["queryFnParams"]);
|
|
38242
38234
|
const shipmentId = queryFnParams == null ? void 0 : queryFnParams.shipmentId;
|
|
38243
38235
|
const createdAtStart = queryFnParams == null ? void 0 : queryFnParams.createdAtStart;
|
|
38244
|
-
return useQuery(__spreadProps$
|
|
38236
|
+
return useQuery(__spreadProps$f(__spreadValues$i({
|
|
38245
38237
|
enabled: shipmentId !== void 0
|
|
38246
38238
|
}, rest), {
|
|
38247
38239
|
onError,
|
|
@@ -38256,33 +38248,33 @@ const useGetShipmentRates = (params) => {
|
|
|
38256
38248
|
}));
|
|
38257
38249
|
};
|
|
38258
38250
|
|
|
38259
|
-
var __defProp$
|
|
38260
|
-
var __defProps$
|
|
38261
|
-
var __getOwnPropDescs$
|
|
38262
|
-
var __getOwnPropSymbols$
|
|
38263
|
-
var __hasOwnProp$
|
|
38264
|
-
var __propIsEnum$
|
|
38265
|
-
var __defNormalProp$
|
|
38266
|
-
var __spreadValues$
|
|
38251
|
+
var __defProp$h = Object.defineProperty;
|
|
38252
|
+
var __defProps$e = Object.defineProperties;
|
|
38253
|
+
var __getOwnPropDescs$e = Object.getOwnPropertyDescriptors;
|
|
38254
|
+
var __getOwnPropSymbols$j = Object.getOwnPropertySymbols;
|
|
38255
|
+
var __hasOwnProp$j = Object.prototype.hasOwnProperty;
|
|
38256
|
+
var __propIsEnum$j = Object.prototype.propertyIsEnumerable;
|
|
38257
|
+
var __defNormalProp$h = (obj, key, value) => key in obj ? __defProp$h(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
38258
|
+
var __spreadValues$h = (a, b) => {
|
|
38267
38259
|
for (var prop in b || (b = {}))
|
|
38268
|
-
if (__hasOwnProp$
|
|
38269
|
-
__defNormalProp$
|
|
38270
|
-
if (__getOwnPropSymbols$
|
|
38271
|
-
for (var prop of __getOwnPropSymbols$
|
|
38272
|
-
if (__propIsEnum$
|
|
38273
|
-
__defNormalProp$
|
|
38260
|
+
if (__hasOwnProp$j.call(b, prop))
|
|
38261
|
+
__defNormalProp$h(a, prop, b[prop]);
|
|
38262
|
+
if (__getOwnPropSymbols$j)
|
|
38263
|
+
for (var prop of __getOwnPropSymbols$j(b)) {
|
|
38264
|
+
if (__propIsEnum$j.call(b, prop))
|
|
38265
|
+
__defNormalProp$h(a, prop, b[prop]);
|
|
38274
38266
|
}
|
|
38275
38267
|
return a;
|
|
38276
38268
|
};
|
|
38277
|
-
var __spreadProps$
|
|
38269
|
+
var __spreadProps$e = (a, b) => __defProps$e(a, __getOwnPropDescs$e(b));
|
|
38278
38270
|
var __objRest$b = (source, exclude) => {
|
|
38279
38271
|
var target = {};
|
|
38280
38272
|
for (var prop in source)
|
|
38281
|
-
if (__hasOwnProp$
|
|
38273
|
+
if (__hasOwnProp$j.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
38282
38274
|
target[prop] = source[prop];
|
|
38283
|
-
if (source != null && __getOwnPropSymbols$
|
|
38284
|
-
for (var prop of __getOwnPropSymbols$
|
|
38285
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
38275
|
+
if (source != null && __getOwnPropSymbols$j)
|
|
38276
|
+
for (var prop of __getOwnPropSymbols$j(source)) {
|
|
38277
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$j.call(source, prop))
|
|
38286
38278
|
target[prop] = source[prop];
|
|
38287
38279
|
}
|
|
38288
38280
|
return target;
|
|
@@ -38298,7 +38290,7 @@ const useGetShipment = (params) => {
|
|
|
38298
38290
|
}
|
|
38299
38291
|
return {};
|
|
38300
38292
|
};
|
|
38301
|
-
return useQuery(__spreadProps$
|
|
38293
|
+
return useQuery(__spreadProps$e(__spreadValues$h({}, getQueryProps()), {
|
|
38302
38294
|
enabled: shipmentId !== void 0,
|
|
38303
38295
|
onError,
|
|
38304
38296
|
queryFn: () => {
|
|
@@ -38312,17 +38304,17 @@ const useGetShipment = (params) => {
|
|
|
38312
38304
|
}));
|
|
38313
38305
|
};
|
|
38314
38306
|
|
|
38315
|
-
var __getOwnPropSymbols$
|
|
38316
|
-
var __hasOwnProp$
|
|
38317
|
-
var __propIsEnum$
|
|
38307
|
+
var __getOwnPropSymbols$i = Object.getOwnPropertySymbols;
|
|
38308
|
+
var __hasOwnProp$i = Object.prototype.hasOwnProperty;
|
|
38309
|
+
var __propIsEnum$i = Object.prototype.propertyIsEnumerable;
|
|
38318
38310
|
var __objRest$a = (source, exclude) => {
|
|
38319
38311
|
var target = {};
|
|
38320
38312
|
for (var prop in source)
|
|
38321
|
-
if (__hasOwnProp$
|
|
38313
|
+
if (__hasOwnProp$i.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
38322
38314
|
target[prop] = source[prop];
|
|
38323
|
-
if (source != null && __getOwnPropSymbols$
|
|
38324
|
-
for (var prop of __getOwnPropSymbols$
|
|
38325
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
38315
|
+
if (source != null && __getOwnPropSymbols$i)
|
|
38316
|
+
for (var prop of __getOwnPropSymbols$i(source)) {
|
|
38317
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$i.call(source, prop))
|
|
38326
38318
|
target[prop] = source[prop];
|
|
38327
38319
|
}
|
|
38328
38320
|
return target;
|
|
@@ -38339,33 +38331,33 @@ const useListShipments = (_params) => {
|
|
|
38339
38331
|
});
|
|
38340
38332
|
};
|
|
38341
38333
|
|
|
38342
|
-
var __defProp$
|
|
38343
|
-
var __defProps$
|
|
38344
|
-
var __getOwnPropDescs$
|
|
38345
|
-
var __getOwnPropSymbols$
|
|
38346
|
-
var __hasOwnProp$
|
|
38347
|
-
var __propIsEnum$
|
|
38348
|
-
var __defNormalProp$
|
|
38349
|
-
var __spreadValues$
|
|
38334
|
+
var __defProp$g = Object.defineProperty;
|
|
38335
|
+
var __defProps$d = Object.defineProperties;
|
|
38336
|
+
var __getOwnPropDescs$d = Object.getOwnPropertyDescriptors;
|
|
38337
|
+
var __getOwnPropSymbols$h = Object.getOwnPropertySymbols;
|
|
38338
|
+
var __hasOwnProp$h = Object.prototype.hasOwnProperty;
|
|
38339
|
+
var __propIsEnum$h = Object.prototype.propertyIsEnumerable;
|
|
38340
|
+
var __defNormalProp$g = (obj, key, value) => key in obj ? __defProp$g(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
38341
|
+
var __spreadValues$g = (a, b) => {
|
|
38350
38342
|
for (var prop in b || (b = {}))
|
|
38351
|
-
if (__hasOwnProp$
|
|
38352
|
-
__defNormalProp$
|
|
38353
|
-
if (__getOwnPropSymbols$
|
|
38354
|
-
for (var prop of __getOwnPropSymbols$
|
|
38355
|
-
if (__propIsEnum$
|
|
38356
|
-
__defNormalProp$
|
|
38343
|
+
if (__hasOwnProp$h.call(b, prop))
|
|
38344
|
+
__defNormalProp$g(a, prop, b[prop]);
|
|
38345
|
+
if (__getOwnPropSymbols$h)
|
|
38346
|
+
for (var prop of __getOwnPropSymbols$h(b)) {
|
|
38347
|
+
if (__propIsEnum$h.call(b, prop))
|
|
38348
|
+
__defNormalProp$g(a, prop, b[prop]);
|
|
38357
38349
|
}
|
|
38358
38350
|
return a;
|
|
38359
38351
|
};
|
|
38360
|
-
var __spreadProps$
|
|
38352
|
+
var __spreadProps$d = (a, b) => __defProps$d(a, __getOwnPropDescs$d(b));
|
|
38361
38353
|
var __objRest$9 = (source, exclude) => {
|
|
38362
38354
|
var target = {};
|
|
38363
38355
|
for (var prop in source)
|
|
38364
|
-
if (__hasOwnProp$
|
|
38356
|
+
if (__hasOwnProp$h.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
38365
38357
|
target[prop] = source[prop];
|
|
38366
|
-
if (source != null && __getOwnPropSymbols$
|
|
38367
|
-
for (var prop of __getOwnPropSymbols$
|
|
38368
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
38358
|
+
if (source != null && __getOwnPropSymbols$h)
|
|
38359
|
+
for (var prop of __getOwnPropSymbols$h(source)) {
|
|
38360
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$h.call(source, prop))
|
|
38369
38361
|
target[prop] = source[prop];
|
|
38370
38362
|
}
|
|
38371
38363
|
return target;
|
|
@@ -38373,7 +38365,7 @@ var __objRest$9 = (source, exclude) => {
|
|
|
38373
38365
|
const useGetShipmentByExternalId = (params) => {
|
|
38374
38366
|
const { client } = useShipEngine();
|
|
38375
38367
|
const _a = params, { queryFnParams } = _a, rest = __objRest$9(_a, ["queryFnParams"]);
|
|
38376
|
-
return useQuery(__spreadProps$
|
|
38368
|
+
return useQuery(__spreadProps$d(__spreadValues$g({}, rest), {
|
|
38377
38369
|
onError,
|
|
38378
38370
|
queryFn: () => client.shipments.getByExternalId(queryFnParams.externalId),
|
|
38379
38371
|
queryKey: ["useGetShipmentByExternalId", queryFnParams],
|
|
@@ -38413,47 +38405,6 @@ const useCancelShipment = () => {
|
|
|
38413
38405
|
});
|
|
38414
38406
|
};
|
|
38415
38407
|
|
|
38416
|
-
var __defProp$g = Object.defineProperty;
|
|
38417
|
-
var __defProps$d = Object.defineProperties;
|
|
38418
|
-
var __getOwnPropDescs$d = Object.getOwnPropertyDescriptors;
|
|
38419
|
-
var __getOwnPropSymbols$h = Object.getOwnPropertySymbols;
|
|
38420
|
-
var __hasOwnProp$h = Object.prototype.hasOwnProperty;
|
|
38421
|
-
var __propIsEnum$h = Object.prototype.propertyIsEnumerable;
|
|
38422
|
-
var __defNormalProp$g = (obj, key, value) => key in obj ? __defProp$g(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
38423
|
-
var __spreadValues$g = (a, b) => {
|
|
38424
|
-
for (var prop in b || (b = {}))
|
|
38425
|
-
if (__hasOwnProp$h.call(b, prop))
|
|
38426
|
-
__defNormalProp$g(a, prop, b[prop]);
|
|
38427
|
-
if (__getOwnPropSymbols$h)
|
|
38428
|
-
for (var prop of __getOwnPropSymbols$h(b)) {
|
|
38429
|
-
if (__propIsEnum$h.call(b, prop))
|
|
38430
|
-
__defNormalProp$g(a, prop, b[prop]);
|
|
38431
|
-
}
|
|
38432
|
-
return a;
|
|
38433
|
-
};
|
|
38434
|
-
var __spreadProps$d = (a, b) => __defProps$d(a, __getOwnPropDescs$d(b));
|
|
38435
|
-
var __objRest$8 = (source, exclude) => {
|
|
38436
|
-
var target = {};
|
|
38437
|
-
for (var prop in source)
|
|
38438
|
-
if (__hasOwnProp$h.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
38439
|
-
target[prop] = source[prop];
|
|
38440
|
-
if (source != null && __getOwnPropSymbols$h)
|
|
38441
|
-
for (var prop of __getOwnPropSymbols$h(source)) {
|
|
38442
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$h.call(source, prop))
|
|
38443
|
-
target[prop] = source[prop];
|
|
38444
|
-
}
|
|
38445
|
-
return target;
|
|
38446
|
-
};
|
|
38447
|
-
const useExportShipments = (params) => {
|
|
38448
|
-
const { client } = useShipEngine();
|
|
38449
|
-
const _a = __spreadValues$g({}, params), { queryFnParams } = _a, rest = __objRest$8(_a, ["queryFnParams"]);
|
|
38450
|
-
return useQuery(__spreadProps$d(__spreadValues$g({}, rest), {
|
|
38451
|
-
onError,
|
|
38452
|
-
queryFn: () => client.shipments.export(queryFnParams),
|
|
38453
|
-
queryKey: ["useExportShipments", params]
|
|
38454
|
-
}));
|
|
38455
|
-
};
|
|
38456
|
-
|
|
38457
38408
|
var __defProp$f = Object.defineProperty;
|
|
38458
38409
|
var __defProps$c = Object.defineProperties;
|
|
38459
38410
|
var __getOwnPropDescs$c = Object.getOwnPropertyDescriptors;
|
|
@@ -38473,7 +38424,7 @@ var __spreadValues$f = (a, b) => {
|
|
|
38473
38424
|
return a;
|
|
38474
38425
|
};
|
|
38475
38426
|
var __spreadProps$c = (a, b) => __defProps$c(a, __getOwnPropDescs$c(b));
|
|
38476
|
-
var __objRest$
|
|
38427
|
+
var __objRest$8 = (source, exclude) => {
|
|
38477
38428
|
var target = {};
|
|
38478
38429
|
for (var prop in source)
|
|
38479
38430
|
if (__hasOwnProp$g.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
@@ -38485,10 +38436,51 @@ var __objRest$7 = (source, exclude) => {
|
|
|
38485
38436
|
}
|
|
38486
38437
|
return target;
|
|
38487
38438
|
};
|
|
38488
|
-
const
|
|
38439
|
+
const useExportShipments = (params) => {
|
|
38489
38440
|
const { client } = useShipEngine();
|
|
38490
|
-
const _a = __spreadValues$f({}, params), { queryFnParams } = _a, rest = __objRest$
|
|
38441
|
+
const _a = __spreadValues$f({}, params), { queryFnParams } = _a, rest = __objRest$8(_a, ["queryFnParams"]);
|
|
38491
38442
|
return useQuery(__spreadProps$c(__spreadValues$f({}, rest), {
|
|
38443
|
+
onError,
|
|
38444
|
+
queryFn: () => client.shipments.export(queryFnParams),
|
|
38445
|
+
queryKey: ["useExportShipments", params]
|
|
38446
|
+
}));
|
|
38447
|
+
};
|
|
38448
|
+
|
|
38449
|
+
var __defProp$e = Object.defineProperty;
|
|
38450
|
+
var __defProps$b = Object.defineProperties;
|
|
38451
|
+
var __getOwnPropDescs$b = Object.getOwnPropertyDescriptors;
|
|
38452
|
+
var __getOwnPropSymbols$f = Object.getOwnPropertySymbols;
|
|
38453
|
+
var __hasOwnProp$f = Object.prototype.hasOwnProperty;
|
|
38454
|
+
var __propIsEnum$f = Object.prototype.propertyIsEnumerable;
|
|
38455
|
+
var __defNormalProp$e = (obj, key, value) => key in obj ? __defProp$e(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
38456
|
+
var __spreadValues$e = (a, b) => {
|
|
38457
|
+
for (var prop in b || (b = {}))
|
|
38458
|
+
if (__hasOwnProp$f.call(b, prop))
|
|
38459
|
+
__defNormalProp$e(a, prop, b[prop]);
|
|
38460
|
+
if (__getOwnPropSymbols$f)
|
|
38461
|
+
for (var prop of __getOwnPropSymbols$f(b)) {
|
|
38462
|
+
if (__propIsEnum$f.call(b, prop))
|
|
38463
|
+
__defNormalProp$e(a, prop, b[prop]);
|
|
38464
|
+
}
|
|
38465
|
+
return a;
|
|
38466
|
+
};
|
|
38467
|
+
var __spreadProps$b = (a, b) => __defProps$b(a, __getOwnPropDescs$b(b));
|
|
38468
|
+
var __objRest$7 = (source, exclude) => {
|
|
38469
|
+
var target = {};
|
|
38470
|
+
for (var prop in source)
|
|
38471
|
+
if (__hasOwnProp$f.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
38472
|
+
target[prop] = source[prop];
|
|
38473
|
+
if (source != null && __getOwnPropSymbols$f)
|
|
38474
|
+
for (var prop of __getOwnPropSymbols$f(source)) {
|
|
38475
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$f.call(source, prop))
|
|
38476
|
+
target[prop] = source[prop];
|
|
38477
|
+
}
|
|
38478
|
+
return target;
|
|
38479
|
+
};
|
|
38480
|
+
const useListShippingRules = (params) => {
|
|
38481
|
+
const { client } = useShipEngine();
|
|
38482
|
+
const _a = __spreadValues$e({}, params), { queryFnParams } = _a, rest = __objRest$7(_a, ["queryFnParams"]);
|
|
38483
|
+
return useQuery(__spreadProps$b(__spreadValues$e({}, rest), {
|
|
38492
38484
|
onError,
|
|
38493
38485
|
queryFn: () => {
|
|
38494
38486
|
return client.shippingRules.list(queryFnParams);
|
|
@@ -38594,41 +38586,41 @@ const useEditShippingRule = () => {
|
|
|
38594
38586
|
});
|
|
38595
38587
|
};
|
|
38596
38588
|
|
|
38597
|
-
var __defProp$
|
|
38598
|
-
var __defProps$
|
|
38599
|
-
var __getOwnPropDescs$
|
|
38600
|
-
var __getOwnPropSymbols$
|
|
38601
|
-
var __hasOwnProp$
|
|
38602
|
-
var __propIsEnum$
|
|
38603
|
-
var __defNormalProp$
|
|
38604
|
-
var __spreadValues$
|
|
38589
|
+
var __defProp$d = Object.defineProperty;
|
|
38590
|
+
var __defProps$a = Object.defineProperties;
|
|
38591
|
+
var __getOwnPropDescs$a = Object.getOwnPropertyDescriptors;
|
|
38592
|
+
var __getOwnPropSymbols$e = Object.getOwnPropertySymbols;
|
|
38593
|
+
var __hasOwnProp$e = Object.prototype.hasOwnProperty;
|
|
38594
|
+
var __propIsEnum$e = Object.prototype.propertyIsEnumerable;
|
|
38595
|
+
var __defNormalProp$d = (obj, key, value) => key in obj ? __defProp$d(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
38596
|
+
var __spreadValues$d = (a, b) => {
|
|
38605
38597
|
for (var prop in b || (b = {}))
|
|
38606
|
-
if (__hasOwnProp$
|
|
38607
|
-
__defNormalProp$
|
|
38608
|
-
if (__getOwnPropSymbols$
|
|
38609
|
-
for (var prop of __getOwnPropSymbols$
|
|
38610
|
-
if (__propIsEnum$
|
|
38611
|
-
__defNormalProp$
|
|
38598
|
+
if (__hasOwnProp$e.call(b, prop))
|
|
38599
|
+
__defNormalProp$d(a, prop, b[prop]);
|
|
38600
|
+
if (__getOwnPropSymbols$e)
|
|
38601
|
+
for (var prop of __getOwnPropSymbols$e(b)) {
|
|
38602
|
+
if (__propIsEnum$e.call(b, prop))
|
|
38603
|
+
__defNormalProp$d(a, prop, b[prop]);
|
|
38612
38604
|
}
|
|
38613
38605
|
return a;
|
|
38614
38606
|
};
|
|
38615
|
-
var __spreadProps$
|
|
38607
|
+
var __spreadProps$a = (a, b) => __defProps$a(a, __getOwnPropDescs$a(b));
|
|
38616
38608
|
var __objRest$6 = (source, exclude) => {
|
|
38617
38609
|
var target = {};
|
|
38618
38610
|
for (var prop in source)
|
|
38619
|
-
if (__hasOwnProp$
|
|
38611
|
+
if (__hasOwnProp$e.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
38620
38612
|
target[prop] = source[prop];
|
|
38621
|
-
if (source != null && __getOwnPropSymbols$
|
|
38622
|
-
for (var prop of __getOwnPropSymbols$
|
|
38623
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
38613
|
+
if (source != null && __getOwnPropSymbols$e)
|
|
38614
|
+
for (var prop of __getOwnPropSymbols$e(source)) {
|
|
38615
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$e.call(source, prop))
|
|
38624
38616
|
target[prop] = source[prop];
|
|
38625
38617
|
}
|
|
38626
38618
|
return target;
|
|
38627
38619
|
};
|
|
38628
38620
|
const useGetShippingRuleConditionsOptions = (params) => {
|
|
38629
38621
|
const { client } = useShipEngine();
|
|
38630
|
-
const _a = __spreadValues$
|
|
38631
|
-
return useQuery(__spreadProps$
|
|
38622
|
+
const _a = __spreadValues$d({}, params), { queryFnParams } = _a, rest = __objRest$6(_a, ["queryFnParams"]);
|
|
38623
|
+
return useQuery(__spreadProps$a(__spreadValues$d({}, rest), {
|
|
38632
38624
|
onError,
|
|
38633
38625
|
queryFn: () => {
|
|
38634
38626
|
return client.shippingRules.getConditionOptions(queryFnParams);
|
|
@@ -38638,41 +38630,41 @@ const useGetShippingRuleConditionsOptions = (params) => {
|
|
|
38638
38630
|
}));
|
|
38639
38631
|
};
|
|
38640
38632
|
|
|
38641
|
-
var __defProp$
|
|
38642
|
-
var __defProps$
|
|
38643
|
-
var __getOwnPropDescs$
|
|
38644
|
-
var __getOwnPropSymbols$
|
|
38645
|
-
var __hasOwnProp$
|
|
38646
|
-
var __propIsEnum$
|
|
38647
|
-
var __defNormalProp$
|
|
38648
|
-
var __spreadValues$
|
|
38633
|
+
var __defProp$c = Object.defineProperty;
|
|
38634
|
+
var __defProps$9 = Object.defineProperties;
|
|
38635
|
+
var __getOwnPropDescs$9 = Object.getOwnPropertyDescriptors;
|
|
38636
|
+
var __getOwnPropSymbols$d = Object.getOwnPropertySymbols;
|
|
38637
|
+
var __hasOwnProp$d = Object.prototype.hasOwnProperty;
|
|
38638
|
+
var __propIsEnum$d = Object.prototype.propertyIsEnumerable;
|
|
38639
|
+
var __defNormalProp$c = (obj, key, value) => key in obj ? __defProp$c(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
38640
|
+
var __spreadValues$c = (a, b) => {
|
|
38649
38641
|
for (var prop in b || (b = {}))
|
|
38650
|
-
if (__hasOwnProp$
|
|
38651
|
-
__defNormalProp$
|
|
38652
|
-
if (__getOwnPropSymbols$
|
|
38653
|
-
for (var prop of __getOwnPropSymbols$
|
|
38654
|
-
if (__propIsEnum$
|
|
38655
|
-
__defNormalProp$
|
|
38642
|
+
if (__hasOwnProp$d.call(b, prop))
|
|
38643
|
+
__defNormalProp$c(a, prop, b[prop]);
|
|
38644
|
+
if (__getOwnPropSymbols$d)
|
|
38645
|
+
for (var prop of __getOwnPropSymbols$d(b)) {
|
|
38646
|
+
if (__propIsEnum$d.call(b, prop))
|
|
38647
|
+
__defNormalProp$c(a, prop, b[prop]);
|
|
38656
38648
|
}
|
|
38657
38649
|
return a;
|
|
38658
38650
|
};
|
|
38659
|
-
var __spreadProps$
|
|
38651
|
+
var __spreadProps$9 = (a, b) => __defProps$9(a, __getOwnPropDescs$9(b));
|
|
38660
38652
|
var __objRest$5 = (source, exclude) => {
|
|
38661
38653
|
var target = {};
|
|
38662
38654
|
for (var prop in source)
|
|
38663
|
-
if (__hasOwnProp$
|
|
38655
|
+
if (__hasOwnProp$d.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
38664
38656
|
target[prop] = source[prop];
|
|
38665
|
-
if (source != null && __getOwnPropSymbols$
|
|
38666
|
-
for (var prop of __getOwnPropSymbols$
|
|
38667
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
38657
|
+
if (source != null && __getOwnPropSymbols$d)
|
|
38658
|
+
for (var prop of __getOwnPropSymbols$d(source)) {
|
|
38659
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$d.call(source, prop))
|
|
38668
38660
|
target[prop] = source[prop];
|
|
38669
38661
|
}
|
|
38670
38662
|
return target;
|
|
38671
38663
|
};
|
|
38672
38664
|
const useGetShippingRuleById = (params) => {
|
|
38673
38665
|
const { client } = useShipEngine();
|
|
38674
|
-
const _a = __spreadValues$
|
|
38675
|
-
return useQuery(__spreadProps$
|
|
38666
|
+
const _a = __spreadValues$c({}, params), { queryFnParams } = _a, rest = __objRest$5(_a, ["queryFnParams"]);
|
|
38667
|
+
return useQuery(__spreadProps$9(__spreadValues$c({}, rest), {
|
|
38676
38668
|
onError,
|
|
38677
38669
|
queryFn: () => {
|
|
38678
38670
|
return client.shippingRules.get(queryFnParams);
|
|
@@ -38761,41 +38753,41 @@ const useDeleteWarehouse = () => {
|
|
|
38761
38753
|
});
|
|
38762
38754
|
};
|
|
38763
38755
|
|
|
38764
|
-
var __defProp$
|
|
38765
|
-
var __defProps$
|
|
38766
|
-
var __getOwnPropDescs$
|
|
38767
|
-
var __getOwnPropSymbols$
|
|
38768
|
-
var __hasOwnProp$
|
|
38769
|
-
var __propIsEnum$
|
|
38770
|
-
var __defNormalProp$
|
|
38771
|
-
var __spreadValues$
|
|
38756
|
+
var __defProp$b = Object.defineProperty;
|
|
38757
|
+
var __defProps$8 = Object.defineProperties;
|
|
38758
|
+
var __getOwnPropDescs$8 = Object.getOwnPropertyDescriptors;
|
|
38759
|
+
var __getOwnPropSymbols$c = Object.getOwnPropertySymbols;
|
|
38760
|
+
var __hasOwnProp$c = Object.prototype.hasOwnProperty;
|
|
38761
|
+
var __propIsEnum$c = Object.prototype.propertyIsEnumerable;
|
|
38762
|
+
var __defNormalProp$b = (obj, key, value) => key in obj ? __defProp$b(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
38763
|
+
var __spreadValues$b = (a, b) => {
|
|
38772
38764
|
for (var prop in b || (b = {}))
|
|
38773
|
-
if (__hasOwnProp$
|
|
38774
|
-
__defNormalProp$
|
|
38775
|
-
if (__getOwnPropSymbols$
|
|
38776
|
-
for (var prop of __getOwnPropSymbols$
|
|
38777
|
-
if (__propIsEnum$
|
|
38778
|
-
__defNormalProp$
|
|
38765
|
+
if (__hasOwnProp$c.call(b, prop))
|
|
38766
|
+
__defNormalProp$b(a, prop, b[prop]);
|
|
38767
|
+
if (__getOwnPropSymbols$c)
|
|
38768
|
+
for (var prop of __getOwnPropSymbols$c(b)) {
|
|
38769
|
+
if (__propIsEnum$c.call(b, prop))
|
|
38770
|
+
__defNormalProp$b(a, prop, b[prop]);
|
|
38779
38771
|
}
|
|
38780
38772
|
return a;
|
|
38781
38773
|
};
|
|
38782
|
-
var __spreadProps$
|
|
38774
|
+
var __spreadProps$8 = (a, b) => __defProps$8(a, __getOwnPropDescs$8(b));
|
|
38783
38775
|
var __objRest$4 = (source, exclude) => {
|
|
38784
38776
|
var target = {};
|
|
38785
38777
|
for (var prop in source)
|
|
38786
|
-
if (__hasOwnProp$
|
|
38778
|
+
if (__hasOwnProp$c.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
38787
38779
|
target[prop] = source[prop];
|
|
38788
|
-
if (source != null && __getOwnPropSymbols$
|
|
38789
|
-
for (var prop of __getOwnPropSymbols$
|
|
38790
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
38780
|
+
if (source != null && __getOwnPropSymbols$c)
|
|
38781
|
+
for (var prop of __getOwnPropSymbols$c(source)) {
|
|
38782
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$c.call(source, prop))
|
|
38791
38783
|
target[prop] = source[prop];
|
|
38792
38784
|
}
|
|
38793
38785
|
return target;
|
|
38794
38786
|
};
|
|
38795
38787
|
const useListWarehouses = (params) => {
|
|
38796
38788
|
const { client } = useShipEngine();
|
|
38797
|
-
const _a = __spreadValues$
|
|
38798
|
-
return useQuery(__spreadProps$
|
|
38789
|
+
const _a = __spreadValues$b({}, params), { queryFnParams } = _a, rest = __objRest$4(_a, ["queryFnParams"]);
|
|
38790
|
+
return useQuery(__spreadProps$8(__spreadValues$b({}, rest), {
|
|
38799
38791
|
onError,
|
|
38800
38792
|
queryFn: () => client.warehouses.list(queryFnParams),
|
|
38801
38793
|
queryKey: ["useListWarehouses", queryFnParams],
|
|
@@ -38803,17 +38795,17 @@ const useListWarehouses = (params) => {
|
|
|
38803
38795
|
}));
|
|
38804
38796
|
};
|
|
38805
38797
|
|
|
38806
|
-
var __getOwnPropSymbols$
|
|
38807
|
-
var __hasOwnProp$
|
|
38808
|
-
var __propIsEnum$
|
|
38798
|
+
var __getOwnPropSymbols$b = Object.getOwnPropertySymbols;
|
|
38799
|
+
var __hasOwnProp$b = Object.prototype.hasOwnProperty;
|
|
38800
|
+
var __propIsEnum$b = Object.prototype.propertyIsEnumerable;
|
|
38809
38801
|
var __objRest$3 = (source, exclude) => {
|
|
38810
38802
|
var target = {};
|
|
38811
38803
|
for (var prop in source)
|
|
38812
|
-
if (__hasOwnProp$
|
|
38804
|
+
if (__hasOwnProp$b.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
38813
38805
|
target[prop] = source[prop];
|
|
38814
|
-
if (source != null && __getOwnPropSymbols$
|
|
38815
|
-
for (var prop of __getOwnPropSymbols$
|
|
38816
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
38806
|
+
if (source != null && __getOwnPropSymbols$b)
|
|
38807
|
+
for (var prop of __getOwnPropSymbols$b(source)) {
|
|
38808
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$b.call(source, prop))
|
|
38817
38809
|
target[prop] = source[prop];
|
|
38818
38810
|
}
|
|
38819
38811
|
return target;
|
|
@@ -38893,35 +38885,6 @@ const useUpdateAccountBillingPlan = () => {
|
|
|
38893
38885
|
});
|
|
38894
38886
|
};
|
|
38895
38887
|
|
|
38896
|
-
var __defProp$b = Object.defineProperty;
|
|
38897
|
-
var __defProps$8 = Object.defineProperties;
|
|
38898
|
-
var __getOwnPropDescs$8 = Object.getOwnPropertyDescriptors;
|
|
38899
|
-
var __getOwnPropSymbols$b = Object.getOwnPropertySymbols;
|
|
38900
|
-
var __hasOwnProp$b = Object.prototype.hasOwnProperty;
|
|
38901
|
-
var __propIsEnum$b = Object.prototype.propertyIsEnumerable;
|
|
38902
|
-
var __defNormalProp$b = (obj, key, value) => key in obj ? __defProp$b(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
38903
|
-
var __spreadValues$b = (a, b) => {
|
|
38904
|
-
for (var prop in b || (b = {}))
|
|
38905
|
-
if (__hasOwnProp$b.call(b, prop))
|
|
38906
|
-
__defNormalProp$b(a, prop, b[prop]);
|
|
38907
|
-
if (__getOwnPropSymbols$b)
|
|
38908
|
-
for (var prop of __getOwnPropSymbols$b(b)) {
|
|
38909
|
-
if (__propIsEnum$b.call(b, prop))
|
|
38910
|
-
__defNormalProp$b(a, prop, b[prop]);
|
|
38911
|
-
}
|
|
38912
|
-
return a;
|
|
38913
|
-
};
|
|
38914
|
-
var __spreadProps$8 = (a, b) => __defProps$8(a, __getOwnPropDescs$8(b));
|
|
38915
|
-
const useGetAccountBilling = (params) => {
|
|
38916
|
-
const { client } = useShipEngine();
|
|
38917
|
-
return useQuery(__spreadProps$8(__spreadValues$b({}, params), {
|
|
38918
|
-
onError,
|
|
38919
|
-
queryFn: () => client.accountBilling.get(),
|
|
38920
|
-
queryKey: ["useGetAccountBilling"],
|
|
38921
|
-
select: (result) => result.data
|
|
38922
|
-
}));
|
|
38923
|
-
};
|
|
38924
|
-
|
|
38925
38888
|
var __defProp$a = Object.defineProperty;
|
|
38926
38889
|
var __defProps$7 = Object.defineProperties;
|
|
38927
38890
|
var __getOwnPropDescs$7 = Object.getOwnPropertyDescriptors;
|
|
@@ -38941,6 +38904,35 @@ var __spreadValues$a = (a, b) => {
|
|
|
38941
38904
|
return a;
|
|
38942
38905
|
};
|
|
38943
38906
|
var __spreadProps$7 = (a, b) => __defProps$7(a, __getOwnPropDescs$7(b));
|
|
38907
|
+
const useGetAccountBilling = (params) => {
|
|
38908
|
+
const { client } = useShipEngine();
|
|
38909
|
+
return useQuery(__spreadProps$7(__spreadValues$a({}, params), {
|
|
38910
|
+
onError,
|
|
38911
|
+
queryFn: () => client.accountBilling.get(),
|
|
38912
|
+
queryKey: ["useGetAccountBilling"],
|
|
38913
|
+
select: (result) => result.data
|
|
38914
|
+
}));
|
|
38915
|
+
};
|
|
38916
|
+
|
|
38917
|
+
var __defProp$9 = Object.defineProperty;
|
|
38918
|
+
var __defProps$6 = Object.defineProperties;
|
|
38919
|
+
var __getOwnPropDescs$6 = Object.getOwnPropertyDescriptors;
|
|
38920
|
+
var __getOwnPropSymbols$9 = Object.getOwnPropertySymbols;
|
|
38921
|
+
var __hasOwnProp$9 = Object.prototype.hasOwnProperty;
|
|
38922
|
+
var __propIsEnum$9 = Object.prototype.propertyIsEnumerable;
|
|
38923
|
+
var __defNormalProp$9 = (obj, key, value) => key in obj ? __defProp$9(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
38924
|
+
var __spreadValues$9 = (a, b) => {
|
|
38925
|
+
for (var prop in b || (b = {}))
|
|
38926
|
+
if (__hasOwnProp$9.call(b, prop))
|
|
38927
|
+
__defNormalProp$9(a, prop, b[prop]);
|
|
38928
|
+
if (__getOwnPropSymbols$9)
|
|
38929
|
+
for (var prop of __getOwnPropSymbols$9(b)) {
|
|
38930
|
+
if (__propIsEnum$9.call(b, prop))
|
|
38931
|
+
__defNormalProp$9(a, prop, b[prop]);
|
|
38932
|
+
}
|
|
38933
|
+
return a;
|
|
38934
|
+
};
|
|
38935
|
+
var __spreadProps$6 = (a, b) => __defProps$6(a, __getOwnPropDescs$6(b));
|
|
38944
38936
|
var __async$9 = (__this, __arguments, generator) => {
|
|
38945
38937
|
return new Promise((resolve, reject) => {
|
|
38946
38938
|
var fulfilled = (value) => {
|
|
@@ -38963,7 +38955,7 @@ var __async$9 = (__this, __arguments, generator) => {
|
|
|
38963
38955
|
};
|
|
38964
38956
|
const useUpsertAccountBilling = (params) => {
|
|
38965
38957
|
const { client } = useShipEngine();
|
|
38966
|
-
return useMutation(__spreadProps$
|
|
38958
|
+
return useMutation(__spreadProps$6(__spreadValues$9({}, params), {
|
|
38967
38959
|
mutationFn: (billing) => __async$9(void 0, null, function* () {
|
|
38968
38960
|
const result = yield client.accountBilling.put(billing);
|
|
38969
38961
|
return result.data;
|
|
@@ -38973,28 +38965,28 @@ const useUpsertAccountBilling = (params) => {
|
|
|
38973
38965
|
}));
|
|
38974
38966
|
};
|
|
38975
38967
|
|
|
38976
|
-
var __defProp$
|
|
38977
|
-
var __defProps$
|
|
38978
|
-
var __getOwnPropDescs$
|
|
38979
|
-
var __getOwnPropSymbols$
|
|
38980
|
-
var __hasOwnProp$
|
|
38981
|
-
var __propIsEnum$
|
|
38982
|
-
var __defNormalProp$
|
|
38983
|
-
var __spreadValues$
|
|
38968
|
+
var __defProp$8 = Object.defineProperty;
|
|
38969
|
+
var __defProps$5 = Object.defineProperties;
|
|
38970
|
+
var __getOwnPropDescs$5 = Object.getOwnPropertyDescriptors;
|
|
38971
|
+
var __getOwnPropSymbols$8 = Object.getOwnPropertySymbols;
|
|
38972
|
+
var __hasOwnProp$8 = Object.prototype.hasOwnProperty;
|
|
38973
|
+
var __propIsEnum$8 = Object.prototype.propertyIsEnumerable;
|
|
38974
|
+
var __defNormalProp$8 = (obj, key, value) => key in obj ? __defProp$8(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
38975
|
+
var __spreadValues$8 = (a, b) => {
|
|
38984
38976
|
for (var prop in b || (b = {}))
|
|
38985
|
-
if (__hasOwnProp$
|
|
38986
|
-
__defNormalProp$
|
|
38987
|
-
if (__getOwnPropSymbols$
|
|
38988
|
-
for (var prop of __getOwnPropSymbols$
|
|
38989
|
-
if (__propIsEnum$
|
|
38990
|
-
__defNormalProp$
|
|
38977
|
+
if (__hasOwnProp$8.call(b, prop))
|
|
38978
|
+
__defNormalProp$8(a, prop, b[prop]);
|
|
38979
|
+
if (__getOwnPropSymbols$8)
|
|
38980
|
+
for (var prop of __getOwnPropSymbols$8(b)) {
|
|
38981
|
+
if (__propIsEnum$8.call(b, prop))
|
|
38982
|
+
__defNormalProp$8(a, prop, b[prop]);
|
|
38991
38983
|
}
|
|
38992
38984
|
return a;
|
|
38993
38985
|
};
|
|
38994
|
-
var __spreadProps$
|
|
38986
|
+
var __spreadProps$5 = (a, b) => __defProps$5(a, __getOwnPropDescs$5(b));
|
|
38995
38987
|
const useGetHereToken = (params) => {
|
|
38996
38988
|
const { client } = useShipEngine();
|
|
38997
|
-
return useQuery(__spreadProps$
|
|
38989
|
+
return useQuery(__spreadProps$5(__spreadValues$8({}, params), {
|
|
38998
38990
|
onError,
|
|
38999
38991
|
queryFn: () => client.servicePoints.getHereToken(),
|
|
39000
38992
|
queryKey: ["useGetHereToken"],
|
|
@@ -39104,34 +39096,14 @@ const useCreateSandboxSeller = () => {
|
|
|
39104
39096
|
});
|
|
39105
39097
|
};
|
|
39106
39098
|
|
|
39107
|
-
|
|
39108
|
-
var __defProps$5 = Object.defineProperties;
|
|
39109
|
-
var __getOwnPropDescs$5 = Object.getOwnPropertyDescriptors;
|
|
39110
|
-
var __getOwnPropSymbols$8 = Object.getOwnPropertySymbols;
|
|
39111
|
-
var __hasOwnProp$8 = Object.prototype.hasOwnProperty;
|
|
39112
|
-
var __propIsEnum$8 = Object.prototype.propertyIsEnumerable;
|
|
39113
|
-
var __defNormalProp$8 = (obj, key, value) => key in obj ? __defProp$8(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
39114
|
-
var __spreadValues$8 = (a, b) => {
|
|
39115
|
-
for (var prop in b || (b = {}))
|
|
39116
|
-
if (__hasOwnProp$8.call(b, prop))
|
|
39117
|
-
__defNormalProp$8(a, prop, b[prop]);
|
|
39118
|
-
if (__getOwnPropSymbols$8)
|
|
39119
|
-
for (var prop of __getOwnPropSymbols$8(b)) {
|
|
39120
|
-
if (__propIsEnum$8.call(b, prop))
|
|
39121
|
-
__defNormalProp$8(a, prop, b[prop]);
|
|
39122
|
-
}
|
|
39123
|
-
return a;
|
|
39124
|
-
};
|
|
39125
|
-
var __spreadProps$5 = (a, b) => __defProps$5(a, __getOwnPropDescs$5(b));
|
|
39126
|
-
const useListSandboxSellerIds = (sellerId, params) => {
|
|
39099
|
+
const useListSandboxSellerIds = (sellerId) => {
|
|
39127
39100
|
const { client } = useShipEngine();
|
|
39128
|
-
|
|
39129
|
-
return useQuery(__spreadProps$5(__spreadValues$8({}, queryParams), {
|
|
39101
|
+
return useQuery({
|
|
39130
39102
|
onError,
|
|
39131
39103
|
queryFn: () => client.sellers.listSandboxSellerIds({ sellerId }),
|
|
39132
39104
|
queryKey: ["useListSandboxSellerIds", sellerId],
|
|
39133
39105
|
select: (result) => result.data
|
|
39134
|
-
})
|
|
39106
|
+
});
|
|
39135
39107
|
};
|
|
39136
39108
|
|
|
39137
39109
|
var __defProp$7 = Object.defineProperty;
|