@shipengine/alchemy 6.0.86-next.1 → 6.0.86-next.2

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