@shipengine/alchemy 6.0.46 → 6.0.48

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 +238 -201
  2. package/index.mjs +238 -201
  3. package/package.json +1 -1
package/index.js CHANGED
@@ -10812,17 +10812,17 @@ var AccountBillingPlanChangeType = /* @__PURE__ */ ((AccountBillingPlanChangeTyp
10812
10812
  return AccountBillingPlanChangeType2;
10813
10813
  })(AccountBillingPlanChangeType || {});
10814
10814
 
10815
- var __getOwnPropSymbols$Q = Object.getOwnPropertySymbols;
10816
- var __hasOwnProp$Q = Object.prototype.hasOwnProperty;
10817
- var __propIsEnum$Q = Object.prototype.propertyIsEnumerable;
10818
- var __objRest$u = (source, exclude) => {
10815
+ var __getOwnPropSymbols$R = Object.getOwnPropertySymbols;
10816
+ var __hasOwnProp$R = Object.prototype.hasOwnProperty;
10817
+ var __propIsEnum$R = Object.prototype.propertyIsEnumerable;
10818
+ var __objRest$v = (source, exclude) => {
10819
10819
  var target = {};
10820
10820
  for (var prop in source)
10821
- if (__hasOwnProp$Q.call(source, prop) && exclude.indexOf(prop) < 0)
10821
+ if (__hasOwnProp$R.call(source, prop) && exclude.indexOf(prop) < 0)
10822
10822
  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))
10823
+ if (source != null && __getOwnPropSymbols$R)
10824
+ for (var prop of __getOwnPropSymbols$R(source)) {
10825
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$R.call(source, prop))
10826
10826
  target[prop] = source[prop];
10827
10827
  }
10828
10828
  return target;
@@ -10836,7 +10836,7 @@ class CodedError {
10836
10836
  this.message = message;
10837
10837
  }
10838
10838
  static fromObject(_a) {
10839
- var _b = _a, { message } = _b, options = __objRest$u(_b, ["message"]);
10839
+ var _b = _a, { message } = _b, options = __objRest$v(_b, ["message"]);
10840
10840
  return new CodedError(message, options);
10841
10841
  }
10842
10842
  }
@@ -10957,17 +10957,17 @@ const types = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
10957
10957
  RateCardStatus
10958
10958
  }, Symbol.toStringTag, { value: 'Module' }));
10959
10959
 
10960
- var __getOwnPropSymbols$P = Object.getOwnPropertySymbols;
10961
- var __hasOwnProp$P = Object.prototype.hasOwnProperty;
10962
- var __propIsEnum$P = Object.prototype.propertyIsEnumerable;
10963
- var __objRest$t = (source, exclude) => {
10960
+ var __getOwnPropSymbols$Q = Object.getOwnPropertySymbols;
10961
+ var __hasOwnProp$Q = Object.prototype.hasOwnProperty;
10962
+ var __propIsEnum$Q = Object.prototype.propertyIsEnumerable;
10963
+ var __objRest$u = (source, exclude) => {
10964
10964
  var target = {};
10965
10965
  for (var prop in source)
10966
- if (__hasOwnProp$P.call(source, prop) && exclude.indexOf(prop) < 0)
10966
+ if (__hasOwnProp$Q.call(source, prop) && exclude.indexOf(prop) < 0)
10967
10967
  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))
10968
+ if (source != null && __getOwnPropSymbols$Q)
10969
+ for (var prop of __getOwnPropSymbols$Q(source)) {
10970
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$Q.call(source, prop))
10971
10971
  target[prop] = source[prop];
10972
10972
  }
10973
10973
  return target;
@@ -10999,7 +10999,7 @@ class AccountSettingsAPI {
10999
10999
  * The `updateImage` method updates specific image data for a given image id.
11000
11000
  */
11001
11001
  this.updateImage = (_a) => {
11002
- var _b = _a, { labelImageId } = _b, data = __objRest$t(_b, ["labelImageId"]);
11002
+ var _b = _a, { labelImageId } = _b, data = __objRest$u(_b, ["labelImageId"]);
11003
11003
  return this.client.put(`/v1/account/settings/images/${labelImageId}`, data);
11004
11004
  };
11005
11005
  /**
@@ -13848,33 +13848,33 @@ const decamelizeKeys = (obj, separator = "_") => {
13848
13848
  return obj;
13849
13849
  };
13850
13850
 
13851
- var __defProp$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) => {
13851
+ var __defProp$F = Object.defineProperty;
13852
+ var __defProps$z = Object.defineProperties;
13853
+ var __getOwnPropDescs$z = Object.getOwnPropertyDescriptors;
13854
+ var __getOwnPropSymbols$P = Object.getOwnPropertySymbols;
13855
+ var __hasOwnProp$P = Object.prototype.hasOwnProperty;
13856
+ var __propIsEnum$P = Object.prototype.propertyIsEnumerable;
13857
+ var __defNormalProp$F = (obj, key, value) => key in obj ? __defProp$F(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
13858
+ var __spreadValues$F = (a, b) => {
13859
13859
  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]);
13860
+ if (__hasOwnProp$P.call(b, prop))
13861
+ __defNormalProp$F(a, prop, b[prop]);
13862
+ if (__getOwnPropSymbols$P)
13863
+ for (var prop of __getOwnPropSymbols$P(b)) {
13864
+ if (__propIsEnum$P.call(b, prop))
13865
+ __defNormalProp$F(a, prop, b[prop]);
13866
13866
  }
13867
13867
  return a;
13868
13868
  };
13869
- var __spreadProps$y = (a, b) => __defProps$y(a, __getOwnPropDescs$y(b));
13870
- var __objRest$s = (source, exclude) => {
13869
+ var __spreadProps$z = (a, b) => __defProps$z(a, __getOwnPropDescs$z(b));
13870
+ var __objRest$t = (source, exclude) => {
13871
13871
  var target = {};
13872
13872
  for (var prop in source)
13873
- if (__hasOwnProp$O.call(source, prop) && exclude.indexOf(prop) < 0)
13873
+ if (__hasOwnProp$P.call(source, prop) && exclude.indexOf(prop) < 0)
13874
13874
  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))
13875
+ if (source != null && __getOwnPropSymbols$P)
13876
+ for (var prop of __getOwnPropSymbols$P(source)) {
13877
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$P.call(source, prop))
13878
13878
  target[prop] = source[prop];
13879
13879
  }
13880
13880
  return target;
@@ -13920,11 +13920,11 @@ class CarriersAPI {
13920
13920
  * The `connect` method connects a carrier account to a user's ShipEngine account.
13921
13921
  */
13922
13922
  this.connect = (_a) => __async$$(this, null, function* () {
13923
- var _b = _a, { carrierCode } = _b, connection = __objRest$s(_b, ["carrierCode"]);
13923
+ var _b = _a, { carrierCode } = _b, connection = __objRest$t(_b, ["carrierCode"]);
13924
13924
  const endUserIpAddress = yield getEndUserIpAddress();
13925
13925
  if (!endUserIpAddress)
13926
13926
  return Promise.reject([new CodedError("Unable to get IP address")]);
13927
- return yield this.client.post(`/v1/registration/${carrierCode}`, __spreadProps$y(__spreadValues$E({}, connection), {
13927
+ return yield this.client.post(`/v1/registration/${carrierCode}`, __spreadProps$z(__spreadValues$F({}, connection), {
13928
13928
  endUserIpAddress
13929
13929
  }));
13930
13930
  });
@@ -16208,19 +16208,19 @@ class CustomPackagesAPI {
16208
16208
  }
16209
16209
  }
16210
16210
 
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) => {
16211
+ var __defProp$E = Object.defineProperty;
16212
+ var __getOwnPropSymbols$O = Object.getOwnPropertySymbols;
16213
+ var __hasOwnProp$O = Object.prototype.hasOwnProperty;
16214
+ var __propIsEnum$O = Object.prototype.propertyIsEnumerable;
16215
+ var __defNormalProp$E = (obj, key, value) => key in obj ? __defProp$E(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
16216
+ var __spreadValues$E = (a, b) => {
16217
16217
  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]);
16218
+ if (__hasOwnProp$O.call(b, prop))
16219
+ __defNormalProp$E(a, prop, b[prop]);
16220
+ if (__getOwnPropSymbols$O)
16221
+ for (var prop of __getOwnPropSymbols$O(b)) {
16222
+ if (__propIsEnum$O.call(b, prop))
16223
+ __defNormalProp$E(a, prop, b[prop]);
16224
16224
  }
16225
16225
  return a;
16226
16226
  };
@@ -16268,7 +16268,7 @@ class FundingSourcesAPI {
16268
16268
  if (!endUserIpAddress) {
16269
16269
  return Promise.reject([new CodedError("Unable to get IP address")]);
16270
16270
  }
16271
- return yield this.client.post("/v1/funding_sources", __spreadValues$D({
16271
+ return yield this.client.post("/v1/funding_sources", __spreadValues$E({
16272
16272
  endUserIpAddress
16273
16273
  }, createFundingSource));
16274
16274
  });
@@ -16287,7 +16287,7 @@ class FundingSourcesAPI {
16287
16287
  {
16288
16288
  billingInfo,
16289
16289
  endUserIpAddress,
16290
- paymentMethod: __spreadValues$D({
16290
+ paymentMethod: __spreadValues$E({
16291
16291
  bankAccountInfo,
16292
16292
  creditCardInfo
16293
16293
  }, auctanePayInfo)
@@ -16303,7 +16303,7 @@ class FundingSourcesAPI {
16303
16303
  if (!endUserIpAddress) {
16304
16304
  return Promise.reject([new CodedError("Unable to get IP address")]);
16305
16305
  }
16306
- return yield this.client.post("/v1/registration/funding_source", __spreadValues$D({
16306
+ return yield this.client.post("/v1/registration/funding_source", __spreadValues$E({
16307
16307
  endUserIpAddress
16308
16308
  }, carrier));
16309
16309
  });
@@ -16472,17 +16472,17 @@ class LabelsAPI {
16472
16472
  }
16473
16473
  }
16474
16474
 
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) => {
16475
+ var __getOwnPropSymbols$N = Object.getOwnPropertySymbols;
16476
+ var __hasOwnProp$N = Object.prototype.hasOwnProperty;
16477
+ var __propIsEnum$N = Object.prototype.propertyIsEnumerable;
16478
+ var __objRest$s = (source, exclude) => {
16479
16479
  var target = {};
16480
16480
  for (var prop in source)
16481
- if (__hasOwnProp$M.call(source, prop) && exclude.indexOf(prop) < 0)
16481
+ if (__hasOwnProp$N.call(source, prop) && exclude.indexOf(prop) < 0)
16482
16482
  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))
16483
+ if (source != null && __getOwnPropSymbols$N)
16484
+ for (var prop of __getOwnPropSymbols$N(source)) {
16485
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$N.call(source, prop))
16486
16486
  target[prop] = source[prop];
16487
16487
  }
16488
16488
  return target;
@@ -16514,7 +16514,7 @@ class OrderSourcesAPI {
16514
16514
  * The `update` method will allow the user to update a connected Order Source
16515
16515
  */
16516
16516
  this.update = (_a) => {
16517
- var _b = _a, { orderSourceId } = _b, rest = __objRest$r(_b, ["orderSourceId"]);
16517
+ var _b = _a, { orderSourceId } = _b, rest = __objRest$s(_b, ["orderSourceId"]);
16518
16518
  return this.client.put(`/v-beta/order_sources/${orderSourceId}`, rest);
16519
16519
  };
16520
16520
  /**
@@ -16603,19 +16603,19 @@ class RateCardsAPI {
16603
16603
  }
16604
16604
  }
16605
16605
 
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) => {
16606
+ var __defProp$D = Object.defineProperty;
16607
+ var __getOwnPropSymbols$M = Object.getOwnPropertySymbols;
16608
+ var __hasOwnProp$M = Object.prototype.hasOwnProperty;
16609
+ var __propIsEnum$M = Object.prototype.propertyIsEnumerable;
16610
+ var __defNormalProp$D = (obj, key, value) => key in obj ? __defProp$D(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
16611
+ var __spreadValues$D = (a, b) => {
16612
16612
  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]);
16613
+ if (__hasOwnProp$M.call(b, prop))
16614
+ __defNormalProp$D(a, prop, b[prop]);
16615
+ if (__getOwnPropSymbols$M)
16616
+ for (var prop of __getOwnPropSymbols$M(b)) {
16617
+ if (__propIsEnum$M.call(b, prop))
16618
+ __defNormalProp$D(a, prop, b[prop]);
16619
16619
  }
16620
16620
  return a;
16621
16621
  };
@@ -16637,7 +16637,7 @@ class RatesAPI {
16637
16637
  * method.
16638
16638
  */
16639
16639
  this.estimate = (params) => {
16640
- return this.client.post("/v1/rates/estimate", __spreadValues$C({}, params));
16640
+ return this.client.post("/v1/rates/estimate", __spreadValues$D({}, params));
16641
16641
  };
16642
16642
  this.client = client;
16643
16643
  }
@@ -16821,19 +16821,19 @@ class SellersAPI {
16821
16821
  }
16822
16822
  }
16823
16823
 
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) => {
16824
+ var __defProp$C = Object.defineProperty;
16825
+ var __getOwnPropSymbols$L = Object.getOwnPropertySymbols;
16826
+ var __hasOwnProp$L = Object.prototype.hasOwnProperty;
16827
+ var __propIsEnum$L = Object.prototype.propertyIsEnumerable;
16828
+ var __defNormalProp$C = (obj, key, value) => key in obj ? __defProp$C(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
16829
+ var __spreadValues$C = (a, b) => {
16830
16830
  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]);
16831
+ if (__hasOwnProp$L.call(b, prop))
16832
+ __defNormalProp$C(a, prop, b[prop]);
16833
+ if (__getOwnPropSymbols$L)
16834
+ for (var prop of __getOwnPropSymbols$L(b)) {
16835
+ if (__propIsEnum$L.call(b, prop))
16836
+ __defNormalProp$C(a, prop, b[prop]);
16837
16837
  }
16838
16838
  return a;
16839
16839
  };
@@ -16845,7 +16845,7 @@ class ServicePointsAPI {
16845
16845
  * Either an address, coordinates, or an address query
16846
16846
  */
16847
16847
  this.list = (options) => {
16848
- return this.client.post("/v1/service_points/list", __spreadValues$B({}, options));
16848
+ return this.client.post("/v1/service_points/list", __spreadValues$C({}, options));
16849
16849
  };
16850
16850
  /**
16851
16851
  * Get a specific service point by its carrier code, country code, and id
@@ -34316,25 +34316,37 @@ class WebhooksAPI {
34316
34316
  }
34317
34317
  }
34318
34318
 
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) => {
34319
+ var __defProp$B = Object.defineProperty;
34320
+ var __defProps$y = Object.defineProperties;
34321
+ var __getOwnPropDescs$y = Object.getOwnPropertyDescriptors;
34322
+ var __getOwnPropSymbols$K = Object.getOwnPropertySymbols;
34323
+ var __hasOwnProp$K = Object.prototype.hasOwnProperty;
34324
+ var __propIsEnum$K = Object.prototype.propertyIsEnumerable;
34325
+ var __defNormalProp$B = (obj, key, value) => key in obj ? __defProp$B(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
34326
+ var __spreadValues$B = (a, b) => {
34327
34327
  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]);
34328
+ if (__hasOwnProp$K.call(b, prop))
34329
+ __defNormalProp$B(a, prop, b[prop]);
34330
+ if (__getOwnPropSymbols$K)
34331
+ for (var prop of __getOwnPropSymbols$K(b)) {
34332
+ if (__propIsEnum$K.call(b, prop))
34333
+ __defNormalProp$B(a, prop, b[prop]);
34334
34334
  }
34335
34335
  return a;
34336
34336
  };
34337
- var __spreadProps$x = (a, b) => __defProps$x(a, __getOwnPropDescs$x(b));
34337
+ var __spreadProps$y = (a, b) => __defProps$y(a, __getOwnPropDescs$y(b));
34338
+ var __objRest$r = (source, exclude) => {
34339
+ var target = {};
34340
+ for (var prop in source)
34341
+ if (__hasOwnProp$K.call(source, prop) && exclude.indexOf(prop) < 0)
34342
+ target[prop] = source[prop];
34343
+ if (source != null && __getOwnPropSymbols$K)
34344
+ for (var prop of __getOwnPropSymbols$K(source)) {
34345
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$K.call(source, prop))
34346
+ target[prop] = source[prop];
34347
+ }
34348
+ return target;
34349
+ };
34338
34350
  var __async$V = (__this, __arguments, generator) => {
34339
34351
  return new Promise((resolve, reject) => {
34340
34352
  var fulfilled = (value) => {
@@ -34358,7 +34370,7 @@ var __async$V = (__this, __arguments, generator) => {
34358
34370
  const logger$1 = E({
34359
34371
  level: process.env.NODE_ENV === "production" ? "fatal" : "info",
34360
34372
  name: "shipengine-api",
34361
- serializers: __spreadProps$x(__spreadValues$A({}, k), {
34373
+ serializers: __spreadProps$y(__spreadValues$B({}, k), {
34362
34374
  req: (req) => ({
34363
34375
  headers: req.headers,
34364
34376
  method: req.method,
@@ -34383,16 +34395,21 @@ class ShipEngineAPI {
34383
34395
  this.getSandboxToken = getSandboxToken;
34384
34396
  const client = axios.create({
34385
34397
  baseURL,
34386
- headers: __spreadProps$x(__spreadValues$A({}, headers), {
34398
+ headers: __spreadProps$y(__spreadValues$B({}, headers), {
34387
34399
  "Content-Type": "application/json"
34388
34400
  }),
34389
34401
  paramsSerializer: (params) => lib.stringify(decamelizeKeys(params), { arrayFormat: "brackets" }),
34390
34402
  transformRequest: [
34391
34403
  (data) => {
34392
- if (data && !(data instanceof FormData))
34404
+ if (data && !(data instanceof FormData) && !data.__skipDecamelize)
34393
34405
  return decamelizeKeys(data);
34394
- else
34406
+ else {
34407
+ if (data && data.__skipDecamelize) {
34408
+ const _a = data, cleanData = __objRest$r(_a, ["__skipDecamelize"]);
34409
+ return cleanData;
34410
+ }
34395
34411
  return data;
34412
+ }
34396
34413
  },
34397
34414
  (data) => {
34398
34415
  if (data && !(data instanceof FormData))
@@ -34787,25 +34804,25 @@ const delay = (ms) => new Promise((resolve) => {
34787
34804
 
34788
34805
  const onError = (_errors) => _default();
34789
34806
 
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) => {
34807
+ var __defProp$A = Object.defineProperty;
34808
+ var __defProps$x = Object.defineProperties;
34809
+ var __getOwnPropDescs$x = Object.getOwnPropertyDescriptors;
34810
+ var __getOwnPropSymbols$J = Object.getOwnPropertySymbols;
34811
+ var __hasOwnProp$J = Object.prototype.hasOwnProperty;
34812
+ var __propIsEnum$J = Object.prototype.propertyIsEnumerable;
34813
+ var __defNormalProp$A = (obj, key, value) => key in obj ? __defProp$A(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
34814
+ var __spreadValues$A = (a, b) => {
34798
34815
  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]);
34816
+ if (__hasOwnProp$J.call(b, prop))
34817
+ __defNormalProp$A(a, prop, b[prop]);
34818
+ if (__getOwnPropSymbols$J)
34819
+ for (var prop of __getOwnPropSymbols$J(b)) {
34820
+ if (__propIsEnum$J.call(b, prop))
34821
+ __defNormalProp$A(a, prop, b[prop]);
34805
34822
  }
34806
34823
  return a;
34807
34824
  };
34808
- var __spreadProps$w = (a, b) => __defProps$w(a, __getOwnPropDescs$w(b));
34825
+ var __spreadProps$x = (a, b) => __defProps$x(a, __getOwnPropDescs$x(b));
34809
34826
  const streams = [];
34810
34827
  if (process.env.NODE_ENV === "production") {
34811
34828
  streams.push({
@@ -34814,7 +34831,7 @@ if (process.env.NODE_ENV === "production") {
34814
34831
  }
34815
34832
  const logger = E({
34816
34833
  name: "shipengine",
34817
- serializers: __spreadProps$w(__spreadValues$z({}, k), {
34834
+ serializers: __spreadProps$x(__spreadValues$A({}, k), {
34818
34835
  req: (req) => ({
34819
34836
  headers: req.headers,
34820
34837
  method: req.method,
@@ -35051,25 +35068,25 @@ const useValidateAddresses = () => {
35051
35068
  });
35052
35069
  };
35053
35070
 
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) => {
35071
+ var __defProp$z = Object.defineProperty;
35072
+ var __defProps$w = Object.defineProperties;
35073
+ var __getOwnPropDescs$w = Object.getOwnPropertyDescriptors;
35074
+ var __getOwnPropSymbols$I = Object.getOwnPropertySymbols;
35075
+ var __hasOwnProp$I = Object.prototype.hasOwnProperty;
35076
+ var __propIsEnum$I = Object.prototype.propertyIsEnumerable;
35077
+ var __defNormalProp$z = (obj, key, value) => key in obj ? __defProp$z(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35078
+ var __spreadValues$z = (a, b) => {
35062
35079
  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]);
35080
+ if (__hasOwnProp$I.call(b, prop))
35081
+ __defNormalProp$z(a, prop, b[prop]);
35082
+ if (__getOwnPropSymbols$I)
35083
+ for (var prop of __getOwnPropSymbols$I(b)) {
35084
+ if (__propIsEnum$I.call(b, prop))
35085
+ __defNormalProp$z(a, prop, b[prop]);
35069
35086
  }
35070
35087
  return a;
35071
35088
  };
35072
- var __spreadProps$v = (a, b) => __defProps$v(a, __getOwnPropDescs$v(b));
35089
+ var __spreadProps$w = (a, b) => __defProps$w(a, __getOwnPropDescs$w(b));
35073
35090
  var __async$O = (__this, __arguments, generator) => {
35074
35091
  return new Promise((resolve, reject) => {
35075
35092
  var fulfilled = (value) => {
@@ -35092,7 +35109,7 @@ var __async$O = (__this, __arguments, generator) => {
35092
35109
  };
35093
35110
  const useCreateAuctanePaySession = (params) => {
35094
35111
  const { client } = useShipEngine();
35095
- return reactQuery.useMutation(__spreadProps$v(__spreadValues$y({}, params), {
35112
+ return reactQuery.useMutation(__spreadProps$w(__spreadValues$z({}, params), {
35096
35113
  mutationFn: (request) => __async$O(void 0, null, function* () {
35097
35114
  const result = yield client.auctanePay.createSession(request);
35098
35115
  return result.data;
@@ -35102,29 +35119,29 @@ const useCreateAuctanePaySession = (params) => {
35102
35119
  }));
35103
35120
  };
35104
35121
 
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) => {
35122
+ var __defProp$y = Object.defineProperty;
35123
+ var __defProps$v = Object.defineProperties;
35124
+ var __getOwnPropDescs$v = Object.getOwnPropertyDescriptors;
35125
+ var __getOwnPropSymbols$H = Object.getOwnPropertySymbols;
35126
+ var __hasOwnProp$H = Object.prototype.hasOwnProperty;
35127
+ var __propIsEnum$H = Object.prototype.propertyIsEnumerable;
35128
+ var __defNormalProp$y = (obj, key, value) => key in obj ? __defProp$y(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35129
+ var __spreadValues$y = (a, b) => {
35113
35130
  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]);
35131
+ if (__hasOwnProp$H.call(b, prop))
35132
+ __defNormalProp$y(a, prop, b[prop]);
35133
+ if (__getOwnPropSymbols$H)
35134
+ for (var prop of __getOwnPropSymbols$H(b)) {
35135
+ if (__propIsEnum$H.call(b, prop))
35136
+ __defNormalProp$y(a, prop, b[prop]);
35120
35137
  }
35121
35138
  return a;
35122
35139
  };
35123
- var __spreadProps$u = (a, b) => __defProps$u(a, __getOwnPropDescs$u(b));
35140
+ var __spreadProps$v = (a, b) => __defProps$v(a, __getOwnPropDescs$v(b));
35124
35141
  const useGetAuctanePayConfig = (params) => {
35125
35142
  const { client } = useShipEngine();
35126
- const queryParams = __spreadValues$x({}, params);
35127
- return reactQuery.useQuery(__spreadProps$u(__spreadValues$x({}, queryParams), {
35143
+ const queryParams = __spreadValues$y({}, params);
35144
+ return reactQuery.useQuery(__spreadProps$v(__spreadValues$y({}, queryParams), {
35128
35145
  onError,
35129
35146
  queryFn: () => client.auctanePay.getConfig(),
35130
35147
  queryKey: ["useGetAuctanePayConfig"],
@@ -35296,41 +35313,41 @@ const useGetServicesByCarrier = (carrierId) => {
35296
35313
  });
35297
35314
  };
35298
35315
 
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) => {
35316
+ var __defProp$x = Object.defineProperty;
35317
+ var __defProps$u = Object.defineProperties;
35318
+ var __getOwnPropDescs$u = Object.getOwnPropertyDescriptors;
35319
+ var __getOwnPropSymbols$G = Object.getOwnPropertySymbols;
35320
+ var __hasOwnProp$G = Object.prototype.hasOwnProperty;
35321
+ var __propIsEnum$G = Object.prototype.propertyIsEnumerable;
35322
+ var __defNormalProp$x = (obj, key, value) => key in obj ? __defProp$x(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35323
+ var __spreadValues$x = (a, b) => {
35307
35324
  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]);
35325
+ if (__hasOwnProp$G.call(b, prop))
35326
+ __defNormalProp$x(a, prop, b[prop]);
35327
+ if (__getOwnPropSymbols$G)
35328
+ for (var prop of __getOwnPropSymbols$G(b)) {
35329
+ if (__propIsEnum$G.call(b, prop))
35330
+ __defNormalProp$x(a, prop, b[prop]);
35314
35331
  }
35315
35332
  return a;
35316
35333
  };
35317
- var __spreadProps$t = (a, b) => __defProps$t(a, __getOwnPropDescs$t(b));
35334
+ var __spreadProps$u = (a, b) => __defProps$u(a, __getOwnPropDescs$u(b));
35318
35335
  var __objRest$q = (source, exclude) => {
35319
35336
  var target = {};
35320
35337
  for (var prop in source)
35321
- if (__hasOwnProp$F.call(source, prop) && exclude.indexOf(prop) < 0)
35338
+ if (__hasOwnProp$G.call(source, prop) && exclude.indexOf(prop) < 0)
35322
35339
  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))
35340
+ if (source != null && __getOwnPropSymbols$G)
35341
+ for (var prop of __getOwnPropSymbols$G(source)) {
35342
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$G.call(source, prop))
35326
35343
  target[prop] = source[prop];
35327
35344
  }
35328
35345
  return target;
35329
35346
  };
35330
35347
  const useListCarriers = (params) => {
35331
35348
  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), {
35349
+ const _a = __spreadValues$x({}, params), { queryFnParams } = _a, rest = __objRest$q(_a, ["queryFnParams"]);
35350
+ return reactQuery.useQuery(__spreadProps$u(__spreadValues$x({}, rest), {
35334
35351
  onError,
35335
35352
  queryFn: () => client.carriers.list(queryFnParams),
35336
35353
  queryKey: ["useListCarriers", queryFnParams],
@@ -35338,17 +35355,17 @@ const useListCarriers = (params) => {
35338
35355
  }));
35339
35356
  };
35340
35357
 
35341
- var __getOwnPropSymbols$E = Object.getOwnPropertySymbols;
35342
- var __hasOwnProp$E = Object.prototype.hasOwnProperty;
35343
- var __propIsEnum$E = Object.prototype.propertyIsEnumerable;
35358
+ var __getOwnPropSymbols$F = Object.getOwnPropertySymbols;
35359
+ var __hasOwnProp$F = Object.prototype.hasOwnProperty;
35360
+ var __propIsEnum$F = Object.prototype.propertyIsEnumerable;
35344
35361
  var __objRest$p = (source, exclude) => {
35345
35362
  var target = {};
35346
35363
  for (var prop in source)
35347
- if (__hasOwnProp$E.call(source, prop) && exclude.indexOf(prop) < 0)
35364
+ if (__hasOwnProp$F.call(source, prop) && exclude.indexOf(prop) < 0)
35348
35365
  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))
35366
+ if (source != null && __getOwnPropSymbols$F)
35367
+ for (var prop of __getOwnPropSymbols$F(source)) {
35368
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$F.call(source, prop))
35352
35369
  target[prop] = source[prop];
35353
35370
  }
35354
35371
  return target;
@@ -35439,17 +35456,17 @@ const useDeleteCarrier = () => {
35439
35456
  });
35440
35457
  };
35441
35458
 
35442
- var __getOwnPropSymbols$D = Object.getOwnPropertySymbols;
35443
- var __hasOwnProp$D = Object.prototype.hasOwnProperty;
35444
- var __propIsEnum$D = Object.prototype.propertyIsEnumerable;
35459
+ var __getOwnPropSymbols$E = Object.getOwnPropertySymbols;
35460
+ var __hasOwnProp$E = Object.prototype.hasOwnProperty;
35461
+ var __propIsEnum$E = Object.prototype.propertyIsEnumerable;
35445
35462
  var __objRest$o = (source, exclude) => {
35446
35463
  var target = {};
35447
35464
  for (var prop in source)
35448
- if (__hasOwnProp$D.call(source, prop) && exclude.indexOf(prop) < 0)
35465
+ if (__hasOwnProp$E.call(source, prop) && exclude.indexOf(prop) < 0)
35449
35466
  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))
35467
+ if (source != null && __getOwnPropSymbols$E)
35468
+ for (var prop of __getOwnPropSymbols$E(source)) {
35469
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$E.call(source, prop))
35453
35470
  target[prop] = source[prop];
35454
35471
  }
35455
35472
  return target;
@@ -35466,17 +35483,17 @@ const useGetCarrierConnectionForm = (_params) => {
35466
35483
  });
35467
35484
  };
35468
35485
 
35469
- var __getOwnPropSymbols$C = Object.getOwnPropertySymbols;
35470
- var __hasOwnProp$C = Object.prototype.hasOwnProperty;
35471
- var __propIsEnum$C = Object.prototype.propertyIsEnumerable;
35486
+ var __getOwnPropSymbols$D = Object.getOwnPropertySymbols;
35487
+ var __hasOwnProp$D = Object.prototype.hasOwnProperty;
35488
+ var __propIsEnum$D = Object.prototype.propertyIsEnumerable;
35472
35489
  var __objRest$n = (source, exclude) => {
35473
35490
  var target = {};
35474
35491
  for (var prop in source)
35475
- if (__hasOwnProp$C.call(source, prop) && exclude.indexOf(prop) < 0)
35492
+ if (__hasOwnProp$D.call(source, prop) && exclude.indexOf(prop) < 0)
35476
35493
  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))
35494
+ if (source != null && __getOwnPropSymbols$D)
35495
+ for (var prop of __getOwnPropSymbols$D(source)) {
35496
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$D.call(source, prop))
35480
35497
  target[prop] = source[prop];
35481
35498
  }
35482
35499
  return target;
@@ -35493,6 +35510,25 @@ const useListCarrierConnections = (_params) => {
35493
35510
  });
35494
35511
  };
35495
35512
 
35513
+ var __defProp$w = Object.defineProperty;
35514
+ var __defProps$t = Object.defineProperties;
35515
+ var __getOwnPropDescs$t = Object.getOwnPropertyDescriptors;
35516
+ var __getOwnPropSymbols$C = Object.getOwnPropertySymbols;
35517
+ var __hasOwnProp$C = Object.prototype.hasOwnProperty;
35518
+ var __propIsEnum$C = Object.prototype.propertyIsEnumerable;
35519
+ var __defNormalProp$w = (obj, key, value) => key in obj ? __defProp$w(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35520
+ var __spreadValues$w = (a, b) => {
35521
+ for (var prop in b || (b = {}))
35522
+ if (__hasOwnProp$C.call(b, prop))
35523
+ __defNormalProp$w(a, prop, b[prop]);
35524
+ if (__getOwnPropSymbols$C)
35525
+ for (var prop of __getOwnPropSymbols$C(b)) {
35526
+ if (__propIsEnum$C.call(b, prop))
35527
+ __defNormalProp$w(a, prop, b[prop]);
35528
+ }
35529
+ return a;
35530
+ };
35531
+ var __spreadProps$t = (a, b) => __defProps$t(a, __getOwnPropDescs$t(b));
35496
35532
  var __async$J = (__this, __arguments, generator) => {
35497
35533
  return new Promise((resolve, reject) => {
35498
35534
  var fulfilled = (value) => {
@@ -35517,7 +35553,8 @@ const useConnectCarrierAccount = () => {
35517
35553
  const { client } = useShipEngine();
35518
35554
  return reactQuery.useMutation({
35519
35555
  mutationFn: (_0) => __async$J(void 0, [_0], function* ({ carrierName, formData }) {
35520
- const result = yield client.connections.connectCarrier(carrierName, formData);
35556
+ const formDataWithFlag = __spreadProps$t(__spreadValues$w({}, formData), { __skipDecamelize: true });
35557
+ const result = yield client.connections.connectCarrier(carrierName, formDataWithFlag);
35521
35558
  return result.data;
35522
35559
  }),
35523
35560
  mutationKey: ["useConnectCarrierAccount"],