@shipengine/alchemy 6.0.46 → 6.0.47

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 +270 -225
  2. package/index.mjs +270 -225
  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
+
4931
+ return !!length &&
4932
+ (type == 'number' ||
4933
+ (type != 'symbol' && reIsUint.test(value))) &&
4934
+ (value > -1 && value % 1 == 0 && value < length);
4935
+ }
4930
4936
 
4931
- var _isIndex = isIndex$3;
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
  /**
@@ -10812,17 +10820,17 @@ var AccountBillingPlanChangeType = /* @__PURE__ */ ((AccountBillingPlanChangeTyp
10812
10820
  return AccountBillingPlanChangeType2;
10813
10821
  })(AccountBillingPlanChangeType || {});
10814
10822
 
10815
- var __getOwnPropSymbols$Q = Object.getOwnPropertySymbols;
10816
- var __hasOwnProp$Q = Object.prototype.hasOwnProperty;
10817
- var __propIsEnum$Q = Object.prototype.propertyIsEnumerable;
10818
- var __objRest$u = (source, exclude) => {
10823
+ var __getOwnPropSymbols$R = Object.getOwnPropertySymbols;
10824
+ var __hasOwnProp$R = Object.prototype.hasOwnProperty;
10825
+ var __propIsEnum$R = Object.prototype.propertyIsEnumerable;
10826
+ var __objRest$v = (source, exclude) => {
10819
10827
  var target = {};
10820
10828
  for (var prop in source)
10821
- if (__hasOwnProp$Q.call(source, prop) && exclude.indexOf(prop) < 0)
10829
+ if (__hasOwnProp$R.call(source, prop) && exclude.indexOf(prop) < 0)
10822
10830
  target[prop] = source[prop];
10823
- if (source != null && __getOwnPropSymbols$Q)
10824
- for (var prop of __getOwnPropSymbols$Q(source)) {
10825
- if (exclude.indexOf(prop) < 0 && __propIsEnum$Q.call(source, prop))
10831
+ if (source != null && __getOwnPropSymbols$R)
10832
+ for (var prop of __getOwnPropSymbols$R(source)) {
10833
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$R.call(source, prop))
10826
10834
  target[prop] = source[prop];
10827
10835
  }
10828
10836
  return target;
@@ -10836,7 +10844,7 @@ class CodedError {
10836
10844
  this.message = message;
10837
10845
  }
10838
10846
  static fromObject(_a) {
10839
- var _b = _a, { message } = _b, options = __objRest$u(_b, ["message"]);
10847
+ var _b = _a, { message } = _b, options = __objRest$v(_b, ["message"]);
10840
10848
  return new CodedError(message, options);
10841
10849
  }
10842
10850
  }
@@ -10957,17 +10965,17 @@ const types = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
10957
10965
  RateCardStatus
10958
10966
  }, Symbol.toStringTag, { value: 'Module' }));
10959
10967
 
10960
- var __getOwnPropSymbols$P = Object.getOwnPropertySymbols;
10961
- var __hasOwnProp$P = Object.prototype.hasOwnProperty;
10962
- var __propIsEnum$P = Object.prototype.propertyIsEnumerable;
10963
- var __objRest$t = (source, exclude) => {
10968
+ var __getOwnPropSymbols$Q = Object.getOwnPropertySymbols;
10969
+ var __hasOwnProp$Q = Object.prototype.hasOwnProperty;
10970
+ var __propIsEnum$Q = Object.prototype.propertyIsEnumerable;
10971
+ var __objRest$u = (source, exclude) => {
10964
10972
  var target = {};
10965
10973
  for (var prop in source)
10966
- if (__hasOwnProp$P.call(source, prop) && exclude.indexOf(prop) < 0)
10974
+ if (__hasOwnProp$Q.call(source, prop) && exclude.indexOf(prop) < 0)
10967
10975
  target[prop] = source[prop];
10968
- if (source != null && __getOwnPropSymbols$P)
10969
- for (var prop of __getOwnPropSymbols$P(source)) {
10970
- if (exclude.indexOf(prop) < 0 && __propIsEnum$P.call(source, prop))
10976
+ if (source != null && __getOwnPropSymbols$Q)
10977
+ for (var prop of __getOwnPropSymbols$Q(source)) {
10978
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$Q.call(source, prop))
10971
10979
  target[prop] = source[prop];
10972
10980
  }
10973
10981
  return target;
@@ -10999,7 +11007,7 @@ class AccountSettingsAPI {
10999
11007
  * The `updateImage` method updates specific image data for a given image id.
11000
11008
  */
11001
11009
  this.updateImage = (_a) => {
11002
- var _b = _a, { labelImageId } = _b, data = __objRest$t(_b, ["labelImageId"]);
11010
+ var _b = _a, { labelImageId } = _b, data = __objRest$u(_b, ["labelImageId"]);
11003
11011
  return this.client.put(`/v1/account/settings/images/${labelImageId}`, data);
11004
11012
  };
11005
11013
  /**
@@ -13848,33 +13856,33 @@ const decamelizeKeys = (obj, separator = "_") => {
13848
13856
  return obj;
13849
13857
  };
13850
13858
 
13851
- var __defProp$E = Object.defineProperty;
13852
- var __defProps$y = Object.defineProperties;
13853
- var __getOwnPropDescs$y = Object.getOwnPropertyDescriptors;
13854
- var __getOwnPropSymbols$O = Object.getOwnPropertySymbols;
13855
- var __hasOwnProp$O = Object.prototype.hasOwnProperty;
13856
- var __propIsEnum$O = Object.prototype.propertyIsEnumerable;
13857
- var __defNormalProp$E = (obj, key, value) => key in obj ? __defProp$E(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
13858
- var __spreadValues$E = (a, b) => {
13859
+ var __defProp$F = Object.defineProperty;
13860
+ var __defProps$z = Object.defineProperties;
13861
+ var __getOwnPropDescs$z = Object.getOwnPropertyDescriptors;
13862
+ var __getOwnPropSymbols$P = Object.getOwnPropertySymbols;
13863
+ var __hasOwnProp$P = Object.prototype.hasOwnProperty;
13864
+ var __propIsEnum$P = Object.prototype.propertyIsEnumerable;
13865
+ var __defNormalProp$F = (obj, key, value) => key in obj ? __defProp$F(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
13866
+ var __spreadValues$F = (a, b) => {
13859
13867
  for (var prop in b || (b = {}))
13860
- if (__hasOwnProp$O.call(b, prop))
13861
- __defNormalProp$E(a, prop, b[prop]);
13862
- if (__getOwnPropSymbols$O)
13863
- for (var prop of __getOwnPropSymbols$O(b)) {
13864
- if (__propIsEnum$O.call(b, prop))
13865
- __defNormalProp$E(a, prop, b[prop]);
13868
+ if (__hasOwnProp$P.call(b, prop))
13869
+ __defNormalProp$F(a, prop, b[prop]);
13870
+ if (__getOwnPropSymbols$P)
13871
+ for (var prop of __getOwnPropSymbols$P(b)) {
13872
+ if (__propIsEnum$P.call(b, prop))
13873
+ __defNormalProp$F(a, prop, b[prop]);
13866
13874
  }
13867
13875
  return a;
13868
13876
  };
13869
- var __spreadProps$y = (a, b) => __defProps$y(a, __getOwnPropDescs$y(b));
13870
- var __objRest$s = (source, exclude) => {
13877
+ var __spreadProps$z = (a, b) => __defProps$z(a, __getOwnPropDescs$z(b));
13878
+ var __objRest$t = (source, exclude) => {
13871
13879
  var target = {};
13872
13880
  for (var prop in source)
13873
- if (__hasOwnProp$O.call(source, prop) && exclude.indexOf(prop) < 0)
13881
+ if (__hasOwnProp$P.call(source, prop) && exclude.indexOf(prop) < 0)
13874
13882
  target[prop] = source[prop];
13875
- if (source != null && __getOwnPropSymbols$O)
13876
- for (var prop of __getOwnPropSymbols$O(source)) {
13877
- if (exclude.indexOf(prop) < 0 && __propIsEnum$O.call(source, prop))
13883
+ if (source != null && __getOwnPropSymbols$P)
13884
+ for (var prop of __getOwnPropSymbols$P(source)) {
13885
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$P.call(source, prop))
13878
13886
  target[prop] = source[prop];
13879
13887
  }
13880
13888
  return target;
@@ -13920,11 +13928,11 @@ class CarriersAPI {
13920
13928
  * The `connect` method connects a carrier account to a user's ShipEngine account.
13921
13929
  */
13922
13930
  this.connect = (_a) => __async$$(this, null, function* () {
13923
- var _b = _a, { carrierCode } = _b, connection = __objRest$s(_b, ["carrierCode"]);
13931
+ var _b = _a, { carrierCode } = _b, connection = __objRest$t(_b, ["carrierCode"]);
13924
13932
  const endUserIpAddress = yield getEndUserIpAddress();
13925
13933
  if (!endUserIpAddress)
13926
13934
  return Promise.reject([new CodedError("Unable to get IP address")]);
13927
- return yield this.client.post(`/v1/registration/${carrierCode}`, __spreadProps$y(__spreadValues$E({}, connection), {
13935
+ return yield this.client.post(`/v1/registration/${carrierCode}`, __spreadProps$z(__spreadValues$F({}, connection), {
13928
13936
  endUserIpAddress
13929
13937
  }));
13930
13938
  });
@@ -16208,19 +16216,19 @@ class CustomPackagesAPI {
16208
16216
  }
16209
16217
  }
16210
16218
 
16211
- var __defProp$D = Object.defineProperty;
16212
- var __getOwnPropSymbols$N = Object.getOwnPropertySymbols;
16213
- var __hasOwnProp$N = Object.prototype.hasOwnProperty;
16214
- var __propIsEnum$N = Object.prototype.propertyIsEnumerable;
16215
- var __defNormalProp$D = (obj, key, value) => key in obj ? __defProp$D(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
16216
- var __spreadValues$D = (a, b) => {
16219
+ var __defProp$E = Object.defineProperty;
16220
+ var __getOwnPropSymbols$O = Object.getOwnPropertySymbols;
16221
+ var __hasOwnProp$O = Object.prototype.hasOwnProperty;
16222
+ var __propIsEnum$O = Object.prototype.propertyIsEnumerable;
16223
+ var __defNormalProp$E = (obj, key, value) => key in obj ? __defProp$E(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
16224
+ var __spreadValues$E = (a, b) => {
16217
16225
  for (var prop in b || (b = {}))
16218
- if (__hasOwnProp$N.call(b, prop))
16219
- __defNormalProp$D(a, prop, b[prop]);
16220
- if (__getOwnPropSymbols$N)
16221
- for (var prop of __getOwnPropSymbols$N(b)) {
16222
- if (__propIsEnum$N.call(b, prop))
16223
- __defNormalProp$D(a, prop, b[prop]);
16226
+ if (__hasOwnProp$O.call(b, prop))
16227
+ __defNormalProp$E(a, prop, b[prop]);
16228
+ if (__getOwnPropSymbols$O)
16229
+ for (var prop of __getOwnPropSymbols$O(b)) {
16230
+ if (__propIsEnum$O.call(b, prop))
16231
+ __defNormalProp$E(a, prop, b[prop]);
16224
16232
  }
16225
16233
  return a;
16226
16234
  };
@@ -16268,7 +16276,7 @@ class FundingSourcesAPI {
16268
16276
  if (!endUserIpAddress) {
16269
16277
  return Promise.reject([new CodedError("Unable to get IP address")]);
16270
16278
  }
16271
- return yield this.client.post("/v1/funding_sources", __spreadValues$D({
16279
+ return yield this.client.post("/v1/funding_sources", __spreadValues$E({
16272
16280
  endUserIpAddress
16273
16281
  }, createFundingSource));
16274
16282
  });
@@ -16287,7 +16295,7 @@ class FundingSourcesAPI {
16287
16295
  {
16288
16296
  billingInfo,
16289
16297
  endUserIpAddress,
16290
- paymentMethod: __spreadValues$D({
16298
+ paymentMethod: __spreadValues$E({
16291
16299
  bankAccountInfo,
16292
16300
  creditCardInfo
16293
16301
  }, auctanePayInfo)
@@ -16303,7 +16311,7 @@ class FundingSourcesAPI {
16303
16311
  if (!endUserIpAddress) {
16304
16312
  return Promise.reject([new CodedError("Unable to get IP address")]);
16305
16313
  }
16306
- return yield this.client.post("/v1/registration/funding_source", __spreadValues$D({
16314
+ return yield this.client.post("/v1/registration/funding_source", __spreadValues$E({
16307
16315
  endUserIpAddress
16308
16316
  }, carrier));
16309
16317
  });
@@ -16472,17 +16480,17 @@ class LabelsAPI {
16472
16480
  }
16473
16481
  }
16474
16482
 
16475
- var __getOwnPropSymbols$M = Object.getOwnPropertySymbols;
16476
- var __hasOwnProp$M = Object.prototype.hasOwnProperty;
16477
- var __propIsEnum$M = Object.prototype.propertyIsEnumerable;
16478
- var __objRest$r = (source, exclude) => {
16483
+ var __getOwnPropSymbols$N = Object.getOwnPropertySymbols;
16484
+ var __hasOwnProp$N = Object.prototype.hasOwnProperty;
16485
+ var __propIsEnum$N = Object.prototype.propertyIsEnumerable;
16486
+ var __objRest$s = (source, exclude) => {
16479
16487
  var target = {};
16480
16488
  for (var prop in source)
16481
- if (__hasOwnProp$M.call(source, prop) && exclude.indexOf(prop) < 0)
16489
+ if (__hasOwnProp$N.call(source, prop) && exclude.indexOf(prop) < 0)
16482
16490
  target[prop] = source[prop];
16483
- if (source != null && __getOwnPropSymbols$M)
16484
- for (var prop of __getOwnPropSymbols$M(source)) {
16485
- if (exclude.indexOf(prop) < 0 && __propIsEnum$M.call(source, prop))
16491
+ if (source != null && __getOwnPropSymbols$N)
16492
+ for (var prop of __getOwnPropSymbols$N(source)) {
16493
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$N.call(source, prop))
16486
16494
  target[prop] = source[prop];
16487
16495
  }
16488
16496
  return target;
@@ -16514,7 +16522,7 @@ class OrderSourcesAPI {
16514
16522
  * The `update` method will allow the user to update a connected Order Source
16515
16523
  */
16516
16524
  this.update = (_a) => {
16517
- var _b = _a, { orderSourceId } = _b, rest = __objRest$r(_b, ["orderSourceId"]);
16525
+ var _b = _a, { orderSourceId } = _b, rest = __objRest$s(_b, ["orderSourceId"]);
16518
16526
  return this.client.put(`/v-beta/order_sources/${orderSourceId}`, rest);
16519
16527
  };
16520
16528
  /**
@@ -16603,19 +16611,19 @@ class RateCardsAPI {
16603
16611
  }
16604
16612
  }
16605
16613
 
16606
- var __defProp$C = Object.defineProperty;
16607
- var __getOwnPropSymbols$L = Object.getOwnPropertySymbols;
16608
- var __hasOwnProp$L = Object.prototype.hasOwnProperty;
16609
- var __propIsEnum$L = Object.prototype.propertyIsEnumerable;
16610
- var __defNormalProp$C = (obj, key, value) => key in obj ? __defProp$C(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
16611
- var __spreadValues$C = (a, b) => {
16614
+ var __defProp$D = Object.defineProperty;
16615
+ var __getOwnPropSymbols$M = Object.getOwnPropertySymbols;
16616
+ var __hasOwnProp$M = Object.prototype.hasOwnProperty;
16617
+ var __propIsEnum$M = Object.prototype.propertyIsEnumerable;
16618
+ var __defNormalProp$D = (obj, key, value) => key in obj ? __defProp$D(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
16619
+ var __spreadValues$D = (a, b) => {
16612
16620
  for (var prop in b || (b = {}))
16613
- if (__hasOwnProp$L.call(b, prop))
16614
- __defNormalProp$C(a, prop, b[prop]);
16615
- if (__getOwnPropSymbols$L)
16616
- for (var prop of __getOwnPropSymbols$L(b)) {
16617
- if (__propIsEnum$L.call(b, prop))
16618
- __defNormalProp$C(a, prop, b[prop]);
16621
+ if (__hasOwnProp$M.call(b, prop))
16622
+ __defNormalProp$D(a, prop, b[prop]);
16623
+ if (__getOwnPropSymbols$M)
16624
+ for (var prop of __getOwnPropSymbols$M(b)) {
16625
+ if (__propIsEnum$M.call(b, prop))
16626
+ __defNormalProp$D(a, prop, b[prop]);
16619
16627
  }
16620
16628
  return a;
16621
16629
  };
@@ -16637,7 +16645,7 @@ class RatesAPI {
16637
16645
  * method.
16638
16646
  */
16639
16647
  this.estimate = (params) => {
16640
- return this.client.post("/v1/rates/estimate", __spreadValues$C({}, params));
16648
+ return this.client.post("/v1/rates/estimate", __spreadValues$D({}, params));
16641
16649
  };
16642
16650
  this.client = client;
16643
16651
  }
@@ -16821,19 +16829,19 @@ class SellersAPI {
16821
16829
  }
16822
16830
  }
16823
16831
 
16824
- var __defProp$B = Object.defineProperty;
16825
- var __getOwnPropSymbols$K = Object.getOwnPropertySymbols;
16826
- var __hasOwnProp$K = Object.prototype.hasOwnProperty;
16827
- var __propIsEnum$K = Object.prototype.propertyIsEnumerable;
16828
- var __defNormalProp$B = (obj, key, value) => key in obj ? __defProp$B(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
16829
- var __spreadValues$B = (a, b) => {
16832
+ var __defProp$C = Object.defineProperty;
16833
+ var __getOwnPropSymbols$L = Object.getOwnPropertySymbols;
16834
+ var __hasOwnProp$L = Object.prototype.hasOwnProperty;
16835
+ var __propIsEnum$L = Object.prototype.propertyIsEnumerable;
16836
+ var __defNormalProp$C = (obj, key, value) => key in obj ? __defProp$C(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
16837
+ var __spreadValues$C = (a, b) => {
16830
16838
  for (var prop in b || (b = {}))
16831
- if (__hasOwnProp$K.call(b, prop))
16832
- __defNormalProp$B(a, prop, b[prop]);
16833
- if (__getOwnPropSymbols$K)
16834
- for (var prop of __getOwnPropSymbols$K(b)) {
16835
- if (__propIsEnum$K.call(b, prop))
16836
- __defNormalProp$B(a, prop, b[prop]);
16839
+ if (__hasOwnProp$L.call(b, prop))
16840
+ __defNormalProp$C(a, prop, b[prop]);
16841
+ if (__getOwnPropSymbols$L)
16842
+ for (var prop of __getOwnPropSymbols$L(b)) {
16843
+ if (__propIsEnum$L.call(b, prop))
16844
+ __defNormalProp$C(a, prop, b[prop]);
16837
16845
  }
16838
16846
  return a;
16839
16847
  };
@@ -16845,7 +16853,7 @@ class ServicePointsAPI {
16845
16853
  * Either an address, coordinates, or an address query
16846
16854
  */
16847
16855
  this.list = (options) => {
16848
- return this.client.post("/v1/service_points/list", __spreadValues$B({}, options));
16856
+ return this.client.post("/v1/service_points/list", __spreadValues$C({}, options));
16849
16857
  };
16850
16858
  /**
16851
16859
  * Get a specific service point by its carrier code, country code, and id
@@ -34316,25 +34324,37 @@ class WebhooksAPI {
34316
34324
  }
34317
34325
  }
34318
34326
 
34319
- var __defProp$A = Object.defineProperty;
34320
- var __defProps$x = Object.defineProperties;
34321
- var __getOwnPropDescs$x = Object.getOwnPropertyDescriptors;
34322
- var __getOwnPropSymbols$J = Object.getOwnPropertySymbols;
34323
- var __hasOwnProp$J = Object.prototype.hasOwnProperty;
34324
- var __propIsEnum$J = Object.prototype.propertyIsEnumerable;
34325
- var __defNormalProp$A = (obj, key, value) => key in obj ? __defProp$A(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
34326
- var __spreadValues$A = (a, b) => {
34327
+ var __defProp$B = Object.defineProperty;
34328
+ var __defProps$y = Object.defineProperties;
34329
+ var __getOwnPropDescs$y = Object.getOwnPropertyDescriptors;
34330
+ var __getOwnPropSymbols$K = Object.getOwnPropertySymbols;
34331
+ var __hasOwnProp$K = Object.prototype.hasOwnProperty;
34332
+ var __propIsEnum$K = Object.prototype.propertyIsEnumerable;
34333
+ var __defNormalProp$B = (obj, key, value) => key in obj ? __defProp$B(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
34334
+ var __spreadValues$B = (a, b) => {
34327
34335
  for (var prop in b || (b = {}))
34328
- if (__hasOwnProp$J.call(b, prop))
34329
- __defNormalProp$A(a, prop, b[prop]);
34330
- if (__getOwnPropSymbols$J)
34331
- for (var prop of __getOwnPropSymbols$J(b)) {
34332
- if (__propIsEnum$J.call(b, prop))
34333
- __defNormalProp$A(a, prop, b[prop]);
34336
+ if (__hasOwnProp$K.call(b, prop))
34337
+ __defNormalProp$B(a, prop, b[prop]);
34338
+ if (__getOwnPropSymbols$K)
34339
+ for (var prop of __getOwnPropSymbols$K(b)) {
34340
+ if (__propIsEnum$K.call(b, prop))
34341
+ __defNormalProp$B(a, prop, b[prop]);
34334
34342
  }
34335
34343
  return a;
34336
34344
  };
34337
- var __spreadProps$x = (a, b) => __defProps$x(a, __getOwnPropDescs$x(b));
34345
+ var __spreadProps$y = (a, b) => __defProps$y(a, __getOwnPropDescs$y(b));
34346
+ var __objRest$r = (source, exclude) => {
34347
+ var target = {};
34348
+ for (var prop in source)
34349
+ if (__hasOwnProp$K.call(source, prop) && exclude.indexOf(prop) < 0)
34350
+ target[prop] = source[prop];
34351
+ if (source != null && __getOwnPropSymbols$K)
34352
+ for (var prop of __getOwnPropSymbols$K(source)) {
34353
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$K.call(source, prop))
34354
+ target[prop] = source[prop];
34355
+ }
34356
+ return target;
34357
+ };
34338
34358
  var __async$V = (__this, __arguments, generator) => {
34339
34359
  return new Promise((resolve, reject) => {
34340
34360
  var fulfilled = (value) => {
@@ -34358,7 +34378,7 @@ var __async$V = (__this, __arguments, generator) => {
34358
34378
  const logger$1 = E({
34359
34379
  level: process.env.NODE_ENV === "production" ? "fatal" : "info",
34360
34380
  name: "shipengine-api",
34361
- serializers: __spreadProps$x(__spreadValues$A({}, k), {
34381
+ serializers: __spreadProps$y(__spreadValues$B({}, k), {
34362
34382
  req: (req) => ({
34363
34383
  headers: req.headers,
34364
34384
  method: req.method,
@@ -34383,16 +34403,21 @@ class ShipEngineAPI {
34383
34403
  this.getSandboxToken = getSandboxToken;
34384
34404
  const client = axios.create({
34385
34405
  baseURL,
34386
- headers: __spreadProps$x(__spreadValues$A({}, headers), {
34406
+ headers: __spreadProps$y(__spreadValues$B({}, headers), {
34387
34407
  "Content-Type": "application/json"
34388
34408
  }),
34389
34409
  paramsSerializer: (params) => lib.stringify(decamelizeKeys(params), { arrayFormat: "brackets" }),
34390
34410
  transformRequest: [
34391
34411
  (data) => {
34392
- if (data && !(data instanceof FormData))
34412
+ if (data && !(data instanceof FormData) && !data.__skipDecamelize)
34393
34413
  return decamelizeKeys(data);
34394
- else
34414
+ else {
34415
+ if (data && data.__skipDecamelize) {
34416
+ const _a = data, cleanData = __objRest$r(_a, ["__skipDecamelize"]);
34417
+ return cleanData;
34418
+ }
34395
34419
  return data;
34420
+ }
34396
34421
  },
34397
34422
  (data) => {
34398
34423
  if (data && !(data instanceof FormData))
@@ -34787,25 +34812,25 @@ const delay = (ms) => new Promise((resolve) => {
34787
34812
 
34788
34813
  const onError = (_errors) => _default();
34789
34814
 
34790
- var __defProp$z = Object.defineProperty;
34791
- var __defProps$w = Object.defineProperties;
34792
- var __getOwnPropDescs$w = Object.getOwnPropertyDescriptors;
34793
- var __getOwnPropSymbols$I = Object.getOwnPropertySymbols;
34794
- var __hasOwnProp$I = Object.prototype.hasOwnProperty;
34795
- var __propIsEnum$I = Object.prototype.propertyIsEnumerable;
34796
- var __defNormalProp$z = (obj, key, value) => key in obj ? __defProp$z(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
34797
- var __spreadValues$z = (a, b) => {
34815
+ var __defProp$A = Object.defineProperty;
34816
+ var __defProps$x = Object.defineProperties;
34817
+ var __getOwnPropDescs$x = Object.getOwnPropertyDescriptors;
34818
+ var __getOwnPropSymbols$J = Object.getOwnPropertySymbols;
34819
+ var __hasOwnProp$J = Object.prototype.hasOwnProperty;
34820
+ var __propIsEnum$J = Object.prototype.propertyIsEnumerable;
34821
+ var __defNormalProp$A = (obj, key, value) => key in obj ? __defProp$A(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
34822
+ var __spreadValues$A = (a, b) => {
34798
34823
  for (var prop in b || (b = {}))
34799
- if (__hasOwnProp$I.call(b, prop))
34800
- __defNormalProp$z(a, prop, b[prop]);
34801
- if (__getOwnPropSymbols$I)
34802
- for (var prop of __getOwnPropSymbols$I(b)) {
34803
- if (__propIsEnum$I.call(b, prop))
34804
- __defNormalProp$z(a, prop, b[prop]);
34824
+ if (__hasOwnProp$J.call(b, prop))
34825
+ __defNormalProp$A(a, prop, b[prop]);
34826
+ if (__getOwnPropSymbols$J)
34827
+ for (var prop of __getOwnPropSymbols$J(b)) {
34828
+ if (__propIsEnum$J.call(b, prop))
34829
+ __defNormalProp$A(a, prop, b[prop]);
34805
34830
  }
34806
34831
  return a;
34807
34832
  };
34808
- var __spreadProps$w = (a, b) => __defProps$w(a, __getOwnPropDescs$w(b));
34833
+ var __spreadProps$x = (a, b) => __defProps$x(a, __getOwnPropDescs$x(b));
34809
34834
  const streams = [];
34810
34835
  if (process.env.NODE_ENV === "production") {
34811
34836
  streams.push({
@@ -34814,7 +34839,7 @@ if (process.env.NODE_ENV === "production") {
34814
34839
  }
34815
34840
  const logger = E({
34816
34841
  name: "shipengine",
34817
- serializers: __spreadProps$w(__spreadValues$z({}, k), {
34842
+ serializers: __spreadProps$x(__spreadValues$A({}, k), {
34818
34843
  req: (req) => ({
34819
34844
  headers: req.headers,
34820
34845
  method: req.method,
@@ -35051,25 +35076,25 @@ const useValidateAddresses = () => {
35051
35076
  });
35052
35077
  };
35053
35078
 
35054
- var __defProp$y = Object.defineProperty;
35055
- var __defProps$v = Object.defineProperties;
35056
- var __getOwnPropDescs$v = Object.getOwnPropertyDescriptors;
35057
- var __getOwnPropSymbols$H = Object.getOwnPropertySymbols;
35058
- var __hasOwnProp$H = Object.prototype.hasOwnProperty;
35059
- var __propIsEnum$H = Object.prototype.propertyIsEnumerable;
35060
- var __defNormalProp$y = (obj, key, value) => key in obj ? __defProp$y(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35061
- var __spreadValues$y = (a, b) => {
35079
+ var __defProp$z = Object.defineProperty;
35080
+ var __defProps$w = Object.defineProperties;
35081
+ var __getOwnPropDescs$w = Object.getOwnPropertyDescriptors;
35082
+ var __getOwnPropSymbols$I = Object.getOwnPropertySymbols;
35083
+ var __hasOwnProp$I = Object.prototype.hasOwnProperty;
35084
+ var __propIsEnum$I = Object.prototype.propertyIsEnumerable;
35085
+ var __defNormalProp$z = (obj, key, value) => key in obj ? __defProp$z(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35086
+ var __spreadValues$z = (a, b) => {
35062
35087
  for (var prop in b || (b = {}))
35063
- if (__hasOwnProp$H.call(b, prop))
35064
- __defNormalProp$y(a, prop, b[prop]);
35065
- if (__getOwnPropSymbols$H)
35066
- for (var prop of __getOwnPropSymbols$H(b)) {
35067
- if (__propIsEnum$H.call(b, prop))
35068
- __defNormalProp$y(a, prop, b[prop]);
35088
+ if (__hasOwnProp$I.call(b, prop))
35089
+ __defNormalProp$z(a, prop, b[prop]);
35090
+ if (__getOwnPropSymbols$I)
35091
+ for (var prop of __getOwnPropSymbols$I(b)) {
35092
+ if (__propIsEnum$I.call(b, prop))
35093
+ __defNormalProp$z(a, prop, b[prop]);
35069
35094
  }
35070
35095
  return a;
35071
35096
  };
35072
- var __spreadProps$v = (a, b) => __defProps$v(a, __getOwnPropDescs$v(b));
35097
+ var __spreadProps$w = (a, b) => __defProps$w(a, __getOwnPropDescs$w(b));
35073
35098
  var __async$O = (__this, __arguments, generator) => {
35074
35099
  return new Promise((resolve, reject) => {
35075
35100
  var fulfilled = (value) => {
@@ -35092,7 +35117,7 @@ var __async$O = (__this, __arguments, generator) => {
35092
35117
  };
35093
35118
  const useCreateAuctanePaySession = (params) => {
35094
35119
  const { client } = useShipEngine();
35095
- return reactQuery.useMutation(__spreadProps$v(__spreadValues$y({}, params), {
35120
+ return reactQuery.useMutation(__spreadProps$w(__spreadValues$z({}, params), {
35096
35121
  mutationFn: (request) => __async$O(void 0, null, function* () {
35097
35122
  const result = yield client.auctanePay.createSession(request);
35098
35123
  return result.data;
@@ -35102,29 +35127,29 @@ const useCreateAuctanePaySession = (params) => {
35102
35127
  }));
35103
35128
  };
35104
35129
 
35105
- var __defProp$x = Object.defineProperty;
35106
- var __defProps$u = Object.defineProperties;
35107
- var __getOwnPropDescs$u = Object.getOwnPropertyDescriptors;
35108
- var __getOwnPropSymbols$G = Object.getOwnPropertySymbols;
35109
- var __hasOwnProp$G = Object.prototype.hasOwnProperty;
35110
- var __propIsEnum$G = Object.prototype.propertyIsEnumerable;
35111
- var __defNormalProp$x = (obj, key, value) => key in obj ? __defProp$x(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35112
- var __spreadValues$x = (a, b) => {
35130
+ var __defProp$y = Object.defineProperty;
35131
+ var __defProps$v = Object.defineProperties;
35132
+ var __getOwnPropDescs$v = Object.getOwnPropertyDescriptors;
35133
+ var __getOwnPropSymbols$H = Object.getOwnPropertySymbols;
35134
+ var __hasOwnProp$H = Object.prototype.hasOwnProperty;
35135
+ var __propIsEnum$H = Object.prototype.propertyIsEnumerable;
35136
+ var __defNormalProp$y = (obj, key, value) => key in obj ? __defProp$y(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35137
+ var __spreadValues$y = (a, b) => {
35113
35138
  for (var prop in b || (b = {}))
35114
- if (__hasOwnProp$G.call(b, prop))
35115
- __defNormalProp$x(a, prop, b[prop]);
35116
- if (__getOwnPropSymbols$G)
35117
- for (var prop of __getOwnPropSymbols$G(b)) {
35118
- if (__propIsEnum$G.call(b, prop))
35119
- __defNormalProp$x(a, prop, b[prop]);
35139
+ if (__hasOwnProp$H.call(b, prop))
35140
+ __defNormalProp$y(a, prop, b[prop]);
35141
+ if (__getOwnPropSymbols$H)
35142
+ for (var prop of __getOwnPropSymbols$H(b)) {
35143
+ if (__propIsEnum$H.call(b, prop))
35144
+ __defNormalProp$y(a, prop, b[prop]);
35120
35145
  }
35121
35146
  return a;
35122
35147
  };
35123
- var __spreadProps$u = (a, b) => __defProps$u(a, __getOwnPropDescs$u(b));
35148
+ var __spreadProps$v = (a, b) => __defProps$v(a, __getOwnPropDescs$v(b));
35124
35149
  const useGetAuctanePayConfig = (params) => {
35125
35150
  const { client } = useShipEngine();
35126
- const queryParams = __spreadValues$x({}, params);
35127
- return reactQuery.useQuery(__spreadProps$u(__spreadValues$x({}, queryParams), {
35151
+ const queryParams = __spreadValues$y({}, params);
35152
+ return reactQuery.useQuery(__spreadProps$v(__spreadValues$y({}, queryParams), {
35128
35153
  onError,
35129
35154
  queryFn: () => client.auctanePay.getConfig(),
35130
35155
  queryKey: ["useGetAuctanePayConfig"],
@@ -35296,41 +35321,41 @@ const useGetServicesByCarrier = (carrierId) => {
35296
35321
  });
35297
35322
  };
35298
35323
 
35299
- var __defProp$w = Object.defineProperty;
35300
- var __defProps$t = Object.defineProperties;
35301
- var __getOwnPropDescs$t = Object.getOwnPropertyDescriptors;
35302
- var __getOwnPropSymbols$F = Object.getOwnPropertySymbols;
35303
- var __hasOwnProp$F = Object.prototype.hasOwnProperty;
35304
- var __propIsEnum$F = Object.prototype.propertyIsEnumerable;
35305
- var __defNormalProp$w = (obj, key, value) => key in obj ? __defProp$w(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35306
- var __spreadValues$w = (a, b) => {
35324
+ var __defProp$x = Object.defineProperty;
35325
+ var __defProps$u = Object.defineProperties;
35326
+ var __getOwnPropDescs$u = Object.getOwnPropertyDescriptors;
35327
+ var __getOwnPropSymbols$G = Object.getOwnPropertySymbols;
35328
+ var __hasOwnProp$G = Object.prototype.hasOwnProperty;
35329
+ var __propIsEnum$G = Object.prototype.propertyIsEnumerable;
35330
+ var __defNormalProp$x = (obj, key, value) => key in obj ? __defProp$x(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35331
+ var __spreadValues$x = (a, b) => {
35307
35332
  for (var prop in b || (b = {}))
35308
- if (__hasOwnProp$F.call(b, prop))
35309
- __defNormalProp$w(a, prop, b[prop]);
35310
- if (__getOwnPropSymbols$F)
35311
- for (var prop of __getOwnPropSymbols$F(b)) {
35312
- if (__propIsEnum$F.call(b, prop))
35313
- __defNormalProp$w(a, prop, b[prop]);
35333
+ if (__hasOwnProp$G.call(b, prop))
35334
+ __defNormalProp$x(a, prop, b[prop]);
35335
+ if (__getOwnPropSymbols$G)
35336
+ for (var prop of __getOwnPropSymbols$G(b)) {
35337
+ if (__propIsEnum$G.call(b, prop))
35338
+ __defNormalProp$x(a, prop, b[prop]);
35314
35339
  }
35315
35340
  return a;
35316
35341
  };
35317
- var __spreadProps$t = (a, b) => __defProps$t(a, __getOwnPropDescs$t(b));
35342
+ var __spreadProps$u = (a, b) => __defProps$u(a, __getOwnPropDescs$u(b));
35318
35343
  var __objRest$q = (source, exclude) => {
35319
35344
  var target = {};
35320
35345
  for (var prop in source)
35321
- if (__hasOwnProp$F.call(source, prop) && exclude.indexOf(prop) < 0)
35346
+ if (__hasOwnProp$G.call(source, prop) && exclude.indexOf(prop) < 0)
35322
35347
  target[prop] = source[prop];
35323
- if (source != null && __getOwnPropSymbols$F)
35324
- for (var prop of __getOwnPropSymbols$F(source)) {
35325
- if (exclude.indexOf(prop) < 0 && __propIsEnum$F.call(source, prop))
35348
+ if (source != null && __getOwnPropSymbols$G)
35349
+ for (var prop of __getOwnPropSymbols$G(source)) {
35350
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$G.call(source, prop))
35326
35351
  target[prop] = source[prop];
35327
35352
  }
35328
35353
  return target;
35329
35354
  };
35330
35355
  const useListCarriers = (params) => {
35331
35356
  const { client } = useShipEngine();
35332
- const _a = __spreadValues$w({}, params), { queryFnParams } = _a, rest = __objRest$q(_a, ["queryFnParams"]);
35333
- return reactQuery.useQuery(__spreadProps$t(__spreadValues$w({}, rest), {
35357
+ const _a = __spreadValues$x({}, params), { queryFnParams } = _a, rest = __objRest$q(_a, ["queryFnParams"]);
35358
+ return reactQuery.useQuery(__spreadProps$u(__spreadValues$x({}, rest), {
35334
35359
  onError,
35335
35360
  queryFn: () => client.carriers.list(queryFnParams),
35336
35361
  queryKey: ["useListCarriers", queryFnParams],
@@ -35338,17 +35363,17 @@ const useListCarriers = (params) => {
35338
35363
  }));
35339
35364
  };
35340
35365
 
35341
- var __getOwnPropSymbols$E = Object.getOwnPropertySymbols;
35342
- var __hasOwnProp$E = Object.prototype.hasOwnProperty;
35343
- var __propIsEnum$E = Object.prototype.propertyIsEnumerable;
35366
+ var __getOwnPropSymbols$F = Object.getOwnPropertySymbols;
35367
+ var __hasOwnProp$F = Object.prototype.hasOwnProperty;
35368
+ var __propIsEnum$F = Object.prototype.propertyIsEnumerable;
35344
35369
  var __objRest$p = (source, exclude) => {
35345
35370
  var target = {};
35346
35371
  for (var prop in source)
35347
- if (__hasOwnProp$E.call(source, prop) && exclude.indexOf(prop) < 0)
35372
+ if (__hasOwnProp$F.call(source, prop) && exclude.indexOf(prop) < 0)
35348
35373
  target[prop] = source[prop];
35349
- if (source != null && __getOwnPropSymbols$E)
35350
- for (var prop of __getOwnPropSymbols$E(source)) {
35351
- if (exclude.indexOf(prop) < 0 && __propIsEnum$E.call(source, prop))
35374
+ if (source != null && __getOwnPropSymbols$F)
35375
+ for (var prop of __getOwnPropSymbols$F(source)) {
35376
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$F.call(source, prop))
35352
35377
  target[prop] = source[prop];
35353
35378
  }
35354
35379
  return target;
@@ -35439,17 +35464,17 @@ const useDeleteCarrier = () => {
35439
35464
  });
35440
35465
  };
35441
35466
 
35442
- var __getOwnPropSymbols$D = Object.getOwnPropertySymbols;
35443
- var __hasOwnProp$D = Object.prototype.hasOwnProperty;
35444
- var __propIsEnum$D = Object.prototype.propertyIsEnumerable;
35467
+ var __getOwnPropSymbols$E = Object.getOwnPropertySymbols;
35468
+ var __hasOwnProp$E = Object.prototype.hasOwnProperty;
35469
+ var __propIsEnum$E = Object.prototype.propertyIsEnumerable;
35445
35470
  var __objRest$o = (source, exclude) => {
35446
35471
  var target = {};
35447
35472
  for (var prop in source)
35448
- if (__hasOwnProp$D.call(source, prop) && exclude.indexOf(prop) < 0)
35473
+ if (__hasOwnProp$E.call(source, prop) && exclude.indexOf(prop) < 0)
35449
35474
  target[prop] = source[prop];
35450
- if (source != null && __getOwnPropSymbols$D)
35451
- for (var prop of __getOwnPropSymbols$D(source)) {
35452
- if (exclude.indexOf(prop) < 0 && __propIsEnum$D.call(source, prop))
35475
+ if (source != null && __getOwnPropSymbols$E)
35476
+ for (var prop of __getOwnPropSymbols$E(source)) {
35477
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$E.call(source, prop))
35453
35478
  target[prop] = source[prop];
35454
35479
  }
35455
35480
  return target;
@@ -35466,17 +35491,17 @@ const useGetCarrierConnectionForm = (_params) => {
35466
35491
  });
35467
35492
  };
35468
35493
 
35469
- var __getOwnPropSymbols$C = Object.getOwnPropertySymbols;
35470
- var __hasOwnProp$C = Object.prototype.hasOwnProperty;
35471
- var __propIsEnum$C = Object.prototype.propertyIsEnumerable;
35494
+ var __getOwnPropSymbols$D = Object.getOwnPropertySymbols;
35495
+ var __hasOwnProp$D = Object.prototype.hasOwnProperty;
35496
+ var __propIsEnum$D = Object.prototype.propertyIsEnumerable;
35472
35497
  var __objRest$n = (source, exclude) => {
35473
35498
  var target = {};
35474
35499
  for (var prop in source)
35475
- if (__hasOwnProp$C.call(source, prop) && exclude.indexOf(prop) < 0)
35500
+ if (__hasOwnProp$D.call(source, prop) && exclude.indexOf(prop) < 0)
35476
35501
  target[prop] = source[prop];
35477
- if (source != null && __getOwnPropSymbols$C)
35478
- for (var prop of __getOwnPropSymbols$C(source)) {
35479
- if (exclude.indexOf(prop) < 0 && __propIsEnum$C.call(source, prop))
35502
+ if (source != null && __getOwnPropSymbols$D)
35503
+ for (var prop of __getOwnPropSymbols$D(source)) {
35504
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$D.call(source, prop))
35480
35505
  target[prop] = source[prop];
35481
35506
  }
35482
35507
  return target;
@@ -35493,6 +35518,25 @@ const useListCarrierConnections = (_params) => {
35493
35518
  });
35494
35519
  };
35495
35520
 
35521
+ var __defProp$w = Object.defineProperty;
35522
+ var __defProps$t = Object.defineProperties;
35523
+ var __getOwnPropDescs$t = Object.getOwnPropertyDescriptors;
35524
+ var __getOwnPropSymbols$C = Object.getOwnPropertySymbols;
35525
+ var __hasOwnProp$C = Object.prototype.hasOwnProperty;
35526
+ var __propIsEnum$C = Object.prototype.propertyIsEnumerable;
35527
+ var __defNormalProp$w = (obj, key, value) => key in obj ? __defProp$w(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35528
+ var __spreadValues$w = (a, b) => {
35529
+ for (var prop in b || (b = {}))
35530
+ if (__hasOwnProp$C.call(b, prop))
35531
+ __defNormalProp$w(a, prop, b[prop]);
35532
+ if (__getOwnPropSymbols$C)
35533
+ for (var prop of __getOwnPropSymbols$C(b)) {
35534
+ if (__propIsEnum$C.call(b, prop))
35535
+ __defNormalProp$w(a, prop, b[prop]);
35536
+ }
35537
+ return a;
35538
+ };
35539
+ var __spreadProps$t = (a, b) => __defProps$t(a, __getOwnPropDescs$t(b));
35496
35540
  var __async$J = (__this, __arguments, generator) => {
35497
35541
  return new Promise((resolve, reject) => {
35498
35542
  var fulfilled = (value) => {
@@ -35517,7 +35561,8 @@ const useConnectCarrierAccount = () => {
35517
35561
  const { client } = useShipEngine();
35518
35562
  return reactQuery.useMutation({
35519
35563
  mutationFn: (_0) => __async$J(void 0, [_0], function* ({ carrierName, formData }) {
35520
- const result = yield client.connections.connectCarrier(carrierName, formData);
35564
+ const formDataWithFlag = __spreadProps$t(__spreadValues$w({}, formData), { __skipDecamelize: true });
35565
+ const result = yield client.connections.connectCarrier(carrierName, formDataWithFlag);
35521
35566
  return result.data;
35522
35567
  }),
35523
35568
  mutationKey: ["useConnectCarrierAccount"],