@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.mjs CHANGED
@@ -10790,17 +10790,17 @@ var AccountBillingPlanChangeType = /* @__PURE__ */ ((AccountBillingPlanChangeTyp
10790
10790
  return AccountBillingPlanChangeType2;
10791
10791
  })(AccountBillingPlanChangeType || {});
10792
10792
 
10793
- var __getOwnPropSymbols$Q = Object.getOwnPropertySymbols;
10794
- var __hasOwnProp$Q = Object.prototype.hasOwnProperty;
10795
- var __propIsEnum$Q = Object.prototype.propertyIsEnumerable;
10796
- var __objRest$u = (source, exclude) => {
10793
+ var __getOwnPropSymbols$R = Object.getOwnPropertySymbols;
10794
+ var __hasOwnProp$R = Object.prototype.hasOwnProperty;
10795
+ var __propIsEnum$R = Object.prototype.propertyIsEnumerable;
10796
+ var __objRest$v = (source, exclude) => {
10797
10797
  var target = {};
10798
10798
  for (var prop in source)
10799
- if (__hasOwnProp$Q.call(source, prop) && exclude.indexOf(prop) < 0)
10799
+ if (__hasOwnProp$R.call(source, prop) && exclude.indexOf(prop) < 0)
10800
10800
  target[prop] = source[prop];
10801
- if (source != null && __getOwnPropSymbols$Q)
10802
- for (var prop of __getOwnPropSymbols$Q(source)) {
10803
- if (exclude.indexOf(prop) < 0 && __propIsEnum$Q.call(source, prop))
10801
+ if (source != null && __getOwnPropSymbols$R)
10802
+ for (var prop of __getOwnPropSymbols$R(source)) {
10803
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$R.call(source, prop))
10804
10804
  target[prop] = source[prop];
10805
10805
  }
10806
10806
  return target;
@@ -10814,7 +10814,7 @@ class CodedError {
10814
10814
  this.message = message;
10815
10815
  }
10816
10816
  static fromObject(_a) {
10817
- var _b = _a, { message } = _b, options = __objRest$u(_b, ["message"]);
10817
+ var _b = _a, { message } = _b, options = __objRest$v(_b, ["message"]);
10818
10818
  return new CodedError(message, options);
10819
10819
  }
10820
10820
  }
@@ -10935,17 +10935,17 @@ const types = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
10935
10935
  RateCardStatus
10936
10936
  }, Symbol.toStringTag, { value: 'Module' }));
10937
10937
 
10938
- var __getOwnPropSymbols$P = Object.getOwnPropertySymbols;
10939
- var __hasOwnProp$P = Object.prototype.hasOwnProperty;
10940
- var __propIsEnum$P = Object.prototype.propertyIsEnumerable;
10941
- var __objRest$t = (source, exclude) => {
10938
+ var __getOwnPropSymbols$Q = Object.getOwnPropertySymbols;
10939
+ var __hasOwnProp$Q = Object.prototype.hasOwnProperty;
10940
+ var __propIsEnum$Q = Object.prototype.propertyIsEnumerable;
10941
+ var __objRest$u = (source, exclude) => {
10942
10942
  var target = {};
10943
10943
  for (var prop in source)
10944
- if (__hasOwnProp$P.call(source, prop) && exclude.indexOf(prop) < 0)
10944
+ if (__hasOwnProp$Q.call(source, prop) && exclude.indexOf(prop) < 0)
10945
10945
  target[prop] = source[prop];
10946
- if (source != null && __getOwnPropSymbols$P)
10947
- for (var prop of __getOwnPropSymbols$P(source)) {
10948
- if (exclude.indexOf(prop) < 0 && __propIsEnum$P.call(source, prop))
10946
+ if (source != null && __getOwnPropSymbols$Q)
10947
+ for (var prop of __getOwnPropSymbols$Q(source)) {
10948
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$Q.call(source, prop))
10949
10949
  target[prop] = source[prop];
10950
10950
  }
10951
10951
  return target;
@@ -10977,7 +10977,7 @@ class AccountSettingsAPI {
10977
10977
  * The `updateImage` method updates specific image data for a given image id.
10978
10978
  */
10979
10979
  this.updateImage = (_a) => {
10980
- var _b = _a, { labelImageId } = _b, data = __objRest$t(_b, ["labelImageId"]);
10980
+ var _b = _a, { labelImageId } = _b, data = __objRest$u(_b, ["labelImageId"]);
10981
10981
  return this.client.put(`/v1/account/settings/images/${labelImageId}`, data);
10982
10982
  };
10983
10983
  /**
@@ -13826,33 +13826,33 @@ const decamelizeKeys = (obj, separator = "_") => {
13826
13826
  return obj;
13827
13827
  };
13828
13828
 
13829
- var __defProp$E = Object.defineProperty;
13830
- var __defProps$y = Object.defineProperties;
13831
- var __getOwnPropDescs$y = Object.getOwnPropertyDescriptors;
13832
- var __getOwnPropSymbols$O = Object.getOwnPropertySymbols;
13833
- var __hasOwnProp$O = Object.prototype.hasOwnProperty;
13834
- var __propIsEnum$O = Object.prototype.propertyIsEnumerable;
13835
- var __defNormalProp$E = (obj, key, value) => key in obj ? __defProp$E(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
13836
- var __spreadValues$E = (a, b) => {
13829
+ var __defProp$F = Object.defineProperty;
13830
+ var __defProps$z = Object.defineProperties;
13831
+ var __getOwnPropDescs$z = Object.getOwnPropertyDescriptors;
13832
+ var __getOwnPropSymbols$P = Object.getOwnPropertySymbols;
13833
+ var __hasOwnProp$P = Object.prototype.hasOwnProperty;
13834
+ var __propIsEnum$P = Object.prototype.propertyIsEnumerable;
13835
+ var __defNormalProp$F = (obj, key, value) => key in obj ? __defProp$F(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
13836
+ var __spreadValues$F = (a, b) => {
13837
13837
  for (var prop in b || (b = {}))
13838
- if (__hasOwnProp$O.call(b, prop))
13839
- __defNormalProp$E(a, prop, b[prop]);
13840
- if (__getOwnPropSymbols$O)
13841
- for (var prop of __getOwnPropSymbols$O(b)) {
13842
- if (__propIsEnum$O.call(b, prop))
13843
- __defNormalProp$E(a, prop, b[prop]);
13838
+ if (__hasOwnProp$P.call(b, prop))
13839
+ __defNormalProp$F(a, prop, b[prop]);
13840
+ if (__getOwnPropSymbols$P)
13841
+ for (var prop of __getOwnPropSymbols$P(b)) {
13842
+ if (__propIsEnum$P.call(b, prop))
13843
+ __defNormalProp$F(a, prop, b[prop]);
13844
13844
  }
13845
13845
  return a;
13846
13846
  };
13847
- var __spreadProps$y = (a, b) => __defProps$y(a, __getOwnPropDescs$y(b));
13848
- var __objRest$s = (source, exclude) => {
13847
+ var __spreadProps$z = (a, b) => __defProps$z(a, __getOwnPropDescs$z(b));
13848
+ var __objRest$t = (source, exclude) => {
13849
13849
  var target = {};
13850
13850
  for (var prop in source)
13851
- if (__hasOwnProp$O.call(source, prop) && exclude.indexOf(prop) < 0)
13851
+ if (__hasOwnProp$P.call(source, prop) && exclude.indexOf(prop) < 0)
13852
13852
  target[prop] = source[prop];
13853
- if (source != null && __getOwnPropSymbols$O)
13854
- for (var prop of __getOwnPropSymbols$O(source)) {
13855
- if (exclude.indexOf(prop) < 0 && __propIsEnum$O.call(source, prop))
13853
+ if (source != null && __getOwnPropSymbols$P)
13854
+ for (var prop of __getOwnPropSymbols$P(source)) {
13855
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$P.call(source, prop))
13856
13856
  target[prop] = source[prop];
13857
13857
  }
13858
13858
  return target;
@@ -13898,11 +13898,11 @@ class CarriersAPI {
13898
13898
  * The `connect` method connects a carrier account to a user's ShipEngine account.
13899
13899
  */
13900
13900
  this.connect = (_a) => __async$$(this, null, function* () {
13901
- var _b = _a, { carrierCode } = _b, connection = __objRest$s(_b, ["carrierCode"]);
13901
+ var _b = _a, { carrierCode } = _b, connection = __objRest$t(_b, ["carrierCode"]);
13902
13902
  const endUserIpAddress = yield getEndUserIpAddress();
13903
13903
  if (!endUserIpAddress)
13904
13904
  return Promise.reject([new CodedError("Unable to get IP address")]);
13905
- return yield this.client.post(`/v1/registration/${carrierCode}`, __spreadProps$y(__spreadValues$E({}, connection), {
13905
+ return yield this.client.post(`/v1/registration/${carrierCode}`, __spreadProps$z(__spreadValues$F({}, connection), {
13906
13906
  endUserIpAddress
13907
13907
  }));
13908
13908
  });
@@ -16186,19 +16186,19 @@ class CustomPackagesAPI {
16186
16186
  }
16187
16187
  }
16188
16188
 
16189
- var __defProp$D = Object.defineProperty;
16190
- var __getOwnPropSymbols$N = Object.getOwnPropertySymbols;
16191
- var __hasOwnProp$N = Object.prototype.hasOwnProperty;
16192
- var __propIsEnum$N = Object.prototype.propertyIsEnumerable;
16193
- var __defNormalProp$D = (obj, key, value) => key in obj ? __defProp$D(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
16194
- var __spreadValues$D = (a, b) => {
16189
+ var __defProp$E = Object.defineProperty;
16190
+ var __getOwnPropSymbols$O = Object.getOwnPropertySymbols;
16191
+ var __hasOwnProp$O = Object.prototype.hasOwnProperty;
16192
+ var __propIsEnum$O = Object.prototype.propertyIsEnumerable;
16193
+ var __defNormalProp$E = (obj, key, value) => key in obj ? __defProp$E(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
16194
+ var __spreadValues$E = (a, b) => {
16195
16195
  for (var prop in b || (b = {}))
16196
- if (__hasOwnProp$N.call(b, prop))
16197
- __defNormalProp$D(a, prop, b[prop]);
16198
- if (__getOwnPropSymbols$N)
16199
- for (var prop of __getOwnPropSymbols$N(b)) {
16200
- if (__propIsEnum$N.call(b, prop))
16201
- __defNormalProp$D(a, prop, b[prop]);
16196
+ if (__hasOwnProp$O.call(b, prop))
16197
+ __defNormalProp$E(a, prop, b[prop]);
16198
+ if (__getOwnPropSymbols$O)
16199
+ for (var prop of __getOwnPropSymbols$O(b)) {
16200
+ if (__propIsEnum$O.call(b, prop))
16201
+ __defNormalProp$E(a, prop, b[prop]);
16202
16202
  }
16203
16203
  return a;
16204
16204
  };
@@ -16246,7 +16246,7 @@ class FundingSourcesAPI {
16246
16246
  if (!endUserIpAddress) {
16247
16247
  return Promise.reject([new CodedError("Unable to get IP address")]);
16248
16248
  }
16249
- return yield this.client.post("/v1/funding_sources", __spreadValues$D({
16249
+ return yield this.client.post("/v1/funding_sources", __spreadValues$E({
16250
16250
  endUserIpAddress
16251
16251
  }, createFundingSource));
16252
16252
  });
@@ -16265,7 +16265,7 @@ class FundingSourcesAPI {
16265
16265
  {
16266
16266
  billingInfo,
16267
16267
  endUserIpAddress,
16268
- paymentMethod: __spreadValues$D({
16268
+ paymentMethod: __spreadValues$E({
16269
16269
  bankAccountInfo,
16270
16270
  creditCardInfo
16271
16271
  }, auctanePayInfo)
@@ -16281,7 +16281,7 @@ class FundingSourcesAPI {
16281
16281
  if (!endUserIpAddress) {
16282
16282
  return Promise.reject([new CodedError("Unable to get IP address")]);
16283
16283
  }
16284
- return yield this.client.post("/v1/registration/funding_source", __spreadValues$D({
16284
+ return yield this.client.post("/v1/registration/funding_source", __spreadValues$E({
16285
16285
  endUserIpAddress
16286
16286
  }, carrier));
16287
16287
  });
@@ -16450,17 +16450,17 @@ class LabelsAPI {
16450
16450
  }
16451
16451
  }
16452
16452
 
16453
- var __getOwnPropSymbols$M = Object.getOwnPropertySymbols;
16454
- var __hasOwnProp$M = Object.prototype.hasOwnProperty;
16455
- var __propIsEnum$M = Object.prototype.propertyIsEnumerable;
16456
- var __objRest$r = (source, exclude) => {
16453
+ var __getOwnPropSymbols$N = Object.getOwnPropertySymbols;
16454
+ var __hasOwnProp$N = Object.prototype.hasOwnProperty;
16455
+ var __propIsEnum$N = Object.prototype.propertyIsEnumerable;
16456
+ var __objRest$s = (source, exclude) => {
16457
16457
  var target = {};
16458
16458
  for (var prop in source)
16459
- if (__hasOwnProp$M.call(source, prop) && exclude.indexOf(prop) < 0)
16459
+ if (__hasOwnProp$N.call(source, prop) && exclude.indexOf(prop) < 0)
16460
16460
  target[prop] = source[prop];
16461
- if (source != null && __getOwnPropSymbols$M)
16462
- for (var prop of __getOwnPropSymbols$M(source)) {
16463
- if (exclude.indexOf(prop) < 0 && __propIsEnum$M.call(source, prop))
16461
+ if (source != null && __getOwnPropSymbols$N)
16462
+ for (var prop of __getOwnPropSymbols$N(source)) {
16463
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$N.call(source, prop))
16464
16464
  target[prop] = source[prop];
16465
16465
  }
16466
16466
  return target;
@@ -16492,7 +16492,7 @@ class OrderSourcesAPI {
16492
16492
  * The `update` method will allow the user to update a connected Order Source
16493
16493
  */
16494
16494
  this.update = (_a) => {
16495
- var _b = _a, { orderSourceId } = _b, rest = __objRest$r(_b, ["orderSourceId"]);
16495
+ var _b = _a, { orderSourceId } = _b, rest = __objRest$s(_b, ["orderSourceId"]);
16496
16496
  return this.client.put(`/v-beta/order_sources/${orderSourceId}`, rest);
16497
16497
  };
16498
16498
  /**
@@ -16581,19 +16581,19 @@ class RateCardsAPI {
16581
16581
  }
16582
16582
  }
16583
16583
 
16584
- var __defProp$C = Object.defineProperty;
16585
- var __getOwnPropSymbols$L = Object.getOwnPropertySymbols;
16586
- var __hasOwnProp$L = Object.prototype.hasOwnProperty;
16587
- var __propIsEnum$L = Object.prototype.propertyIsEnumerable;
16588
- var __defNormalProp$C = (obj, key, value) => key in obj ? __defProp$C(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
16589
- var __spreadValues$C = (a, b) => {
16584
+ var __defProp$D = Object.defineProperty;
16585
+ var __getOwnPropSymbols$M = Object.getOwnPropertySymbols;
16586
+ var __hasOwnProp$M = Object.prototype.hasOwnProperty;
16587
+ var __propIsEnum$M = Object.prototype.propertyIsEnumerable;
16588
+ var __defNormalProp$D = (obj, key, value) => key in obj ? __defProp$D(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
16589
+ var __spreadValues$D = (a, b) => {
16590
16590
  for (var prop in b || (b = {}))
16591
- if (__hasOwnProp$L.call(b, prop))
16592
- __defNormalProp$C(a, prop, b[prop]);
16593
- if (__getOwnPropSymbols$L)
16594
- for (var prop of __getOwnPropSymbols$L(b)) {
16595
- if (__propIsEnum$L.call(b, prop))
16596
- __defNormalProp$C(a, prop, b[prop]);
16591
+ if (__hasOwnProp$M.call(b, prop))
16592
+ __defNormalProp$D(a, prop, b[prop]);
16593
+ if (__getOwnPropSymbols$M)
16594
+ for (var prop of __getOwnPropSymbols$M(b)) {
16595
+ if (__propIsEnum$M.call(b, prop))
16596
+ __defNormalProp$D(a, prop, b[prop]);
16597
16597
  }
16598
16598
  return a;
16599
16599
  };
@@ -16615,7 +16615,7 @@ class RatesAPI {
16615
16615
  * method.
16616
16616
  */
16617
16617
  this.estimate = (params) => {
16618
- return this.client.post("/v1/rates/estimate", __spreadValues$C({}, params));
16618
+ return this.client.post("/v1/rates/estimate", __spreadValues$D({}, params));
16619
16619
  };
16620
16620
  this.client = client;
16621
16621
  }
@@ -16799,19 +16799,19 @@ class SellersAPI {
16799
16799
  }
16800
16800
  }
16801
16801
 
16802
- var __defProp$B = Object.defineProperty;
16803
- var __getOwnPropSymbols$K = Object.getOwnPropertySymbols;
16804
- var __hasOwnProp$K = Object.prototype.hasOwnProperty;
16805
- var __propIsEnum$K = Object.prototype.propertyIsEnumerable;
16806
- var __defNormalProp$B = (obj, key, value) => key in obj ? __defProp$B(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
16807
- var __spreadValues$B = (a, b) => {
16802
+ var __defProp$C = Object.defineProperty;
16803
+ var __getOwnPropSymbols$L = Object.getOwnPropertySymbols;
16804
+ var __hasOwnProp$L = Object.prototype.hasOwnProperty;
16805
+ var __propIsEnum$L = Object.prototype.propertyIsEnumerable;
16806
+ var __defNormalProp$C = (obj, key, value) => key in obj ? __defProp$C(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
16807
+ var __spreadValues$C = (a, b) => {
16808
16808
  for (var prop in b || (b = {}))
16809
- if (__hasOwnProp$K.call(b, prop))
16810
- __defNormalProp$B(a, prop, b[prop]);
16811
- if (__getOwnPropSymbols$K)
16812
- for (var prop of __getOwnPropSymbols$K(b)) {
16813
- if (__propIsEnum$K.call(b, prop))
16814
- __defNormalProp$B(a, prop, b[prop]);
16809
+ if (__hasOwnProp$L.call(b, prop))
16810
+ __defNormalProp$C(a, prop, b[prop]);
16811
+ if (__getOwnPropSymbols$L)
16812
+ for (var prop of __getOwnPropSymbols$L(b)) {
16813
+ if (__propIsEnum$L.call(b, prop))
16814
+ __defNormalProp$C(a, prop, b[prop]);
16815
16815
  }
16816
16816
  return a;
16817
16817
  };
@@ -16823,7 +16823,7 @@ class ServicePointsAPI {
16823
16823
  * Either an address, coordinates, or an address query
16824
16824
  */
16825
16825
  this.list = (options) => {
16826
- return this.client.post("/v1/service_points/list", __spreadValues$B({}, options));
16826
+ return this.client.post("/v1/service_points/list", __spreadValues$C({}, options));
16827
16827
  };
16828
16828
  /**
16829
16829
  * Get a specific service point by its carrier code, country code, and id
@@ -34294,25 +34294,37 @@ class WebhooksAPI {
34294
34294
  }
34295
34295
  }
34296
34296
 
34297
- var __defProp$A = Object.defineProperty;
34298
- var __defProps$x = Object.defineProperties;
34299
- var __getOwnPropDescs$x = Object.getOwnPropertyDescriptors;
34300
- var __getOwnPropSymbols$J = Object.getOwnPropertySymbols;
34301
- var __hasOwnProp$J = Object.prototype.hasOwnProperty;
34302
- var __propIsEnum$J = Object.prototype.propertyIsEnumerable;
34303
- var __defNormalProp$A = (obj, key, value) => key in obj ? __defProp$A(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
34304
- var __spreadValues$A = (a, b) => {
34297
+ var __defProp$B = Object.defineProperty;
34298
+ var __defProps$y = Object.defineProperties;
34299
+ var __getOwnPropDescs$y = Object.getOwnPropertyDescriptors;
34300
+ var __getOwnPropSymbols$K = Object.getOwnPropertySymbols;
34301
+ var __hasOwnProp$K = Object.prototype.hasOwnProperty;
34302
+ var __propIsEnum$K = Object.prototype.propertyIsEnumerable;
34303
+ var __defNormalProp$B = (obj, key, value) => key in obj ? __defProp$B(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
34304
+ var __spreadValues$B = (a, b) => {
34305
34305
  for (var prop in b || (b = {}))
34306
- if (__hasOwnProp$J.call(b, prop))
34307
- __defNormalProp$A(a, prop, b[prop]);
34308
- if (__getOwnPropSymbols$J)
34309
- for (var prop of __getOwnPropSymbols$J(b)) {
34310
- if (__propIsEnum$J.call(b, prop))
34311
- __defNormalProp$A(a, prop, b[prop]);
34306
+ if (__hasOwnProp$K.call(b, prop))
34307
+ __defNormalProp$B(a, prop, b[prop]);
34308
+ if (__getOwnPropSymbols$K)
34309
+ for (var prop of __getOwnPropSymbols$K(b)) {
34310
+ if (__propIsEnum$K.call(b, prop))
34311
+ __defNormalProp$B(a, prop, b[prop]);
34312
34312
  }
34313
34313
  return a;
34314
34314
  };
34315
- var __spreadProps$x = (a, b) => __defProps$x(a, __getOwnPropDescs$x(b));
34315
+ var __spreadProps$y = (a, b) => __defProps$y(a, __getOwnPropDescs$y(b));
34316
+ var __objRest$r = (source, exclude) => {
34317
+ var target = {};
34318
+ for (var prop in source)
34319
+ if (__hasOwnProp$K.call(source, prop) && exclude.indexOf(prop) < 0)
34320
+ target[prop] = source[prop];
34321
+ if (source != null && __getOwnPropSymbols$K)
34322
+ for (var prop of __getOwnPropSymbols$K(source)) {
34323
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$K.call(source, prop))
34324
+ target[prop] = source[prop];
34325
+ }
34326
+ return target;
34327
+ };
34316
34328
  var __async$V = (__this, __arguments, generator) => {
34317
34329
  return new Promise((resolve, reject) => {
34318
34330
  var fulfilled = (value) => {
@@ -34336,7 +34348,7 @@ var __async$V = (__this, __arguments, generator) => {
34336
34348
  const logger$1 = E({
34337
34349
  level: process.env.NODE_ENV === "production" ? "fatal" : "info",
34338
34350
  name: "shipengine-api",
34339
- serializers: __spreadProps$x(__spreadValues$A({}, k), {
34351
+ serializers: __spreadProps$y(__spreadValues$B({}, k), {
34340
34352
  req: (req) => ({
34341
34353
  headers: req.headers,
34342
34354
  method: req.method,
@@ -34361,16 +34373,21 @@ class ShipEngineAPI {
34361
34373
  this.getSandboxToken = getSandboxToken;
34362
34374
  const client = axios.create({
34363
34375
  baseURL,
34364
- headers: __spreadProps$x(__spreadValues$A({}, headers), {
34376
+ headers: __spreadProps$y(__spreadValues$B({}, headers), {
34365
34377
  "Content-Type": "application/json"
34366
34378
  }),
34367
34379
  paramsSerializer: (params) => lib.stringify(decamelizeKeys(params), { arrayFormat: "brackets" }),
34368
34380
  transformRequest: [
34369
34381
  (data) => {
34370
- if (data && !(data instanceof FormData))
34382
+ if (data && !(data instanceof FormData) && !data.__skipDecamelize)
34371
34383
  return decamelizeKeys(data);
34372
- else
34384
+ else {
34385
+ if (data && data.__skipDecamelize) {
34386
+ const _a = data, cleanData = __objRest$r(_a, ["__skipDecamelize"]);
34387
+ return cleanData;
34388
+ }
34373
34389
  return data;
34390
+ }
34374
34391
  },
34375
34392
  (data) => {
34376
34393
  if (data && !(data instanceof FormData))
@@ -34765,25 +34782,25 @@ const delay = (ms) => new Promise((resolve) => {
34765
34782
 
34766
34783
  const onError = (_errors) => _default();
34767
34784
 
34768
- var __defProp$z = Object.defineProperty;
34769
- var __defProps$w = Object.defineProperties;
34770
- var __getOwnPropDescs$w = Object.getOwnPropertyDescriptors;
34771
- var __getOwnPropSymbols$I = Object.getOwnPropertySymbols;
34772
- var __hasOwnProp$I = Object.prototype.hasOwnProperty;
34773
- var __propIsEnum$I = Object.prototype.propertyIsEnumerable;
34774
- var __defNormalProp$z = (obj, key, value) => key in obj ? __defProp$z(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
34775
- var __spreadValues$z = (a, b) => {
34785
+ var __defProp$A = Object.defineProperty;
34786
+ var __defProps$x = Object.defineProperties;
34787
+ var __getOwnPropDescs$x = Object.getOwnPropertyDescriptors;
34788
+ var __getOwnPropSymbols$J = Object.getOwnPropertySymbols;
34789
+ var __hasOwnProp$J = Object.prototype.hasOwnProperty;
34790
+ var __propIsEnum$J = Object.prototype.propertyIsEnumerable;
34791
+ var __defNormalProp$A = (obj, key, value) => key in obj ? __defProp$A(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
34792
+ var __spreadValues$A = (a, b) => {
34776
34793
  for (var prop in b || (b = {}))
34777
- if (__hasOwnProp$I.call(b, prop))
34778
- __defNormalProp$z(a, prop, b[prop]);
34779
- if (__getOwnPropSymbols$I)
34780
- for (var prop of __getOwnPropSymbols$I(b)) {
34781
- if (__propIsEnum$I.call(b, prop))
34782
- __defNormalProp$z(a, prop, b[prop]);
34794
+ if (__hasOwnProp$J.call(b, prop))
34795
+ __defNormalProp$A(a, prop, b[prop]);
34796
+ if (__getOwnPropSymbols$J)
34797
+ for (var prop of __getOwnPropSymbols$J(b)) {
34798
+ if (__propIsEnum$J.call(b, prop))
34799
+ __defNormalProp$A(a, prop, b[prop]);
34783
34800
  }
34784
34801
  return a;
34785
34802
  };
34786
- var __spreadProps$w = (a, b) => __defProps$w(a, __getOwnPropDescs$w(b));
34803
+ var __spreadProps$x = (a, b) => __defProps$x(a, __getOwnPropDescs$x(b));
34787
34804
  const streams = [];
34788
34805
  if (process.env.NODE_ENV === "production") {
34789
34806
  streams.push({
@@ -34792,7 +34809,7 @@ if (process.env.NODE_ENV === "production") {
34792
34809
  }
34793
34810
  const logger = E({
34794
34811
  name: "shipengine",
34795
- serializers: __spreadProps$w(__spreadValues$z({}, k), {
34812
+ serializers: __spreadProps$x(__spreadValues$A({}, k), {
34796
34813
  req: (req) => ({
34797
34814
  headers: req.headers,
34798
34815
  method: req.method,
@@ -35029,25 +35046,25 @@ const useValidateAddresses = () => {
35029
35046
  });
35030
35047
  };
35031
35048
 
35032
- var __defProp$y = Object.defineProperty;
35033
- var __defProps$v = Object.defineProperties;
35034
- var __getOwnPropDescs$v = Object.getOwnPropertyDescriptors;
35035
- var __getOwnPropSymbols$H = Object.getOwnPropertySymbols;
35036
- var __hasOwnProp$H = Object.prototype.hasOwnProperty;
35037
- var __propIsEnum$H = Object.prototype.propertyIsEnumerable;
35038
- var __defNormalProp$y = (obj, key, value) => key in obj ? __defProp$y(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35039
- var __spreadValues$y = (a, b) => {
35049
+ var __defProp$z = Object.defineProperty;
35050
+ var __defProps$w = Object.defineProperties;
35051
+ var __getOwnPropDescs$w = Object.getOwnPropertyDescriptors;
35052
+ var __getOwnPropSymbols$I = Object.getOwnPropertySymbols;
35053
+ var __hasOwnProp$I = Object.prototype.hasOwnProperty;
35054
+ var __propIsEnum$I = Object.prototype.propertyIsEnumerable;
35055
+ var __defNormalProp$z = (obj, key, value) => key in obj ? __defProp$z(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35056
+ var __spreadValues$z = (a, b) => {
35040
35057
  for (var prop in b || (b = {}))
35041
- if (__hasOwnProp$H.call(b, prop))
35042
- __defNormalProp$y(a, prop, b[prop]);
35043
- if (__getOwnPropSymbols$H)
35044
- for (var prop of __getOwnPropSymbols$H(b)) {
35045
- if (__propIsEnum$H.call(b, prop))
35046
- __defNormalProp$y(a, prop, b[prop]);
35058
+ if (__hasOwnProp$I.call(b, prop))
35059
+ __defNormalProp$z(a, prop, b[prop]);
35060
+ if (__getOwnPropSymbols$I)
35061
+ for (var prop of __getOwnPropSymbols$I(b)) {
35062
+ if (__propIsEnum$I.call(b, prop))
35063
+ __defNormalProp$z(a, prop, b[prop]);
35047
35064
  }
35048
35065
  return a;
35049
35066
  };
35050
- var __spreadProps$v = (a, b) => __defProps$v(a, __getOwnPropDescs$v(b));
35067
+ var __spreadProps$w = (a, b) => __defProps$w(a, __getOwnPropDescs$w(b));
35051
35068
  var __async$O = (__this, __arguments, generator) => {
35052
35069
  return new Promise((resolve, reject) => {
35053
35070
  var fulfilled = (value) => {
@@ -35070,7 +35087,7 @@ var __async$O = (__this, __arguments, generator) => {
35070
35087
  };
35071
35088
  const useCreateAuctanePaySession = (params) => {
35072
35089
  const { client } = useShipEngine();
35073
- return useMutation(__spreadProps$v(__spreadValues$y({}, params), {
35090
+ return useMutation(__spreadProps$w(__spreadValues$z({}, params), {
35074
35091
  mutationFn: (request) => __async$O(void 0, null, function* () {
35075
35092
  const result = yield client.auctanePay.createSession(request);
35076
35093
  return result.data;
@@ -35080,29 +35097,29 @@ const useCreateAuctanePaySession = (params) => {
35080
35097
  }));
35081
35098
  };
35082
35099
 
35083
- var __defProp$x = Object.defineProperty;
35084
- var __defProps$u = Object.defineProperties;
35085
- var __getOwnPropDescs$u = Object.getOwnPropertyDescriptors;
35086
- var __getOwnPropSymbols$G = Object.getOwnPropertySymbols;
35087
- var __hasOwnProp$G = Object.prototype.hasOwnProperty;
35088
- var __propIsEnum$G = Object.prototype.propertyIsEnumerable;
35089
- var __defNormalProp$x = (obj, key, value) => key in obj ? __defProp$x(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35090
- var __spreadValues$x = (a, b) => {
35100
+ var __defProp$y = Object.defineProperty;
35101
+ var __defProps$v = Object.defineProperties;
35102
+ var __getOwnPropDescs$v = Object.getOwnPropertyDescriptors;
35103
+ var __getOwnPropSymbols$H = Object.getOwnPropertySymbols;
35104
+ var __hasOwnProp$H = Object.prototype.hasOwnProperty;
35105
+ var __propIsEnum$H = Object.prototype.propertyIsEnumerable;
35106
+ var __defNormalProp$y = (obj, key, value) => key in obj ? __defProp$y(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35107
+ var __spreadValues$y = (a, b) => {
35091
35108
  for (var prop in b || (b = {}))
35092
- if (__hasOwnProp$G.call(b, prop))
35093
- __defNormalProp$x(a, prop, b[prop]);
35094
- if (__getOwnPropSymbols$G)
35095
- for (var prop of __getOwnPropSymbols$G(b)) {
35096
- if (__propIsEnum$G.call(b, prop))
35097
- __defNormalProp$x(a, prop, b[prop]);
35109
+ if (__hasOwnProp$H.call(b, prop))
35110
+ __defNormalProp$y(a, prop, b[prop]);
35111
+ if (__getOwnPropSymbols$H)
35112
+ for (var prop of __getOwnPropSymbols$H(b)) {
35113
+ if (__propIsEnum$H.call(b, prop))
35114
+ __defNormalProp$y(a, prop, b[prop]);
35098
35115
  }
35099
35116
  return a;
35100
35117
  };
35101
- var __spreadProps$u = (a, b) => __defProps$u(a, __getOwnPropDescs$u(b));
35118
+ var __spreadProps$v = (a, b) => __defProps$v(a, __getOwnPropDescs$v(b));
35102
35119
  const useGetAuctanePayConfig = (params) => {
35103
35120
  const { client } = useShipEngine();
35104
- const queryParams = __spreadValues$x({}, params);
35105
- return useQuery(__spreadProps$u(__spreadValues$x({}, queryParams), {
35121
+ const queryParams = __spreadValues$y({}, params);
35122
+ return useQuery(__spreadProps$v(__spreadValues$y({}, queryParams), {
35106
35123
  onError,
35107
35124
  queryFn: () => client.auctanePay.getConfig(),
35108
35125
  queryKey: ["useGetAuctanePayConfig"],
@@ -35274,41 +35291,41 @@ const useGetServicesByCarrier = (carrierId) => {
35274
35291
  });
35275
35292
  };
35276
35293
 
35277
- var __defProp$w = Object.defineProperty;
35278
- var __defProps$t = Object.defineProperties;
35279
- var __getOwnPropDescs$t = Object.getOwnPropertyDescriptors;
35280
- var __getOwnPropSymbols$F = Object.getOwnPropertySymbols;
35281
- var __hasOwnProp$F = Object.prototype.hasOwnProperty;
35282
- var __propIsEnum$F = Object.prototype.propertyIsEnumerable;
35283
- var __defNormalProp$w = (obj, key, value) => key in obj ? __defProp$w(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35284
- var __spreadValues$w = (a, b) => {
35294
+ var __defProp$x = Object.defineProperty;
35295
+ var __defProps$u = Object.defineProperties;
35296
+ var __getOwnPropDescs$u = Object.getOwnPropertyDescriptors;
35297
+ var __getOwnPropSymbols$G = Object.getOwnPropertySymbols;
35298
+ var __hasOwnProp$G = Object.prototype.hasOwnProperty;
35299
+ var __propIsEnum$G = Object.prototype.propertyIsEnumerable;
35300
+ var __defNormalProp$x = (obj, key, value) => key in obj ? __defProp$x(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35301
+ var __spreadValues$x = (a, b) => {
35285
35302
  for (var prop in b || (b = {}))
35286
- if (__hasOwnProp$F.call(b, prop))
35287
- __defNormalProp$w(a, prop, b[prop]);
35288
- if (__getOwnPropSymbols$F)
35289
- for (var prop of __getOwnPropSymbols$F(b)) {
35290
- if (__propIsEnum$F.call(b, prop))
35291
- __defNormalProp$w(a, prop, b[prop]);
35303
+ if (__hasOwnProp$G.call(b, prop))
35304
+ __defNormalProp$x(a, prop, b[prop]);
35305
+ if (__getOwnPropSymbols$G)
35306
+ for (var prop of __getOwnPropSymbols$G(b)) {
35307
+ if (__propIsEnum$G.call(b, prop))
35308
+ __defNormalProp$x(a, prop, b[prop]);
35292
35309
  }
35293
35310
  return a;
35294
35311
  };
35295
- var __spreadProps$t = (a, b) => __defProps$t(a, __getOwnPropDescs$t(b));
35312
+ var __spreadProps$u = (a, b) => __defProps$u(a, __getOwnPropDescs$u(b));
35296
35313
  var __objRest$q = (source, exclude) => {
35297
35314
  var target = {};
35298
35315
  for (var prop in source)
35299
- if (__hasOwnProp$F.call(source, prop) && exclude.indexOf(prop) < 0)
35316
+ if (__hasOwnProp$G.call(source, prop) && exclude.indexOf(prop) < 0)
35300
35317
  target[prop] = source[prop];
35301
- if (source != null && __getOwnPropSymbols$F)
35302
- for (var prop of __getOwnPropSymbols$F(source)) {
35303
- if (exclude.indexOf(prop) < 0 && __propIsEnum$F.call(source, prop))
35318
+ if (source != null && __getOwnPropSymbols$G)
35319
+ for (var prop of __getOwnPropSymbols$G(source)) {
35320
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$G.call(source, prop))
35304
35321
  target[prop] = source[prop];
35305
35322
  }
35306
35323
  return target;
35307
35324
  };
35308
35325
  const useListCarriers = (params) => {
35309
35326
  const { client } = useShipEngine();
35310
- const _a = __spreadValues$w({}, params), { queryFnParams } = _a, rest = __objRest$q(_a, ["queryFnParams"]);
35311
- return useQuery(__spreadProps$t(__spreadValues$w({}, rest), {
35327
+ const _a = __spreadValues$x({}, params), { queryFnParams } = _a, rest = __objRest$q(_a, ["queryFnParams"]);
35328
+ return useQuery(__spreadProps$u(__spreadValues$x({}, rest), {
35312
35329
  onError,
35313
35330
  queryFn: () => client.carriers.list(queryFnParams),
35314
35331
  queryKey: ["useListCarriers", queryFnParams],
@@ -35316,17 +35333,17 @@ const useListCarriers = (params) => {
35316
35333
  }));
35317
35334
  };
35318
35335
 
35319
- var __getOwnPropSymbols$E = Object.getOwnPropertySymbols;
35320
- var __hasOwnProp$E = Object.prototype.hasOwnProperty;
35321
- var __propIsEnum$E = Object.prototype.propertyIsEnumerable;
35336
+ var __getOwnPropSymbols$F = Object.getOwnPropertySymbols;
35337
+ var __hasOwnProp$F = Object.prototype.hasOwnProperty;
35338
+ var __propIsEnum$F = Object.prototype.propertyIsEnumerable;
35322
35339
  var __objRest$p = (source, exclude) => {
35323
35340
  var target = {};
35324
35341
  for (var prop in source)
35325
- if (__hasOwnProp$E.call(source, prop) && exclude.indexOf(prop) < 0)
35342
+ if (__hasOwnProp$F.call(source, prop) && exclude.indexOf(prop) < 0)
35326
35343
  target[prop] = source[prop];
35327
- if (source != null && __getOwnPropSymbols$E)
35328
- for (var prop of __getOwnPropSymbols$E(source)) {
35329
- if (exclude.indexOf(prop) < 0 && __propIsEnum$E.call(source, prop))
35344
+ if (source != null && __getOwnPropSymbols$F)
35345
+ for (var prop of __getOwnPropSymbols$F(source)) {
35346
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$F.call(source, prop))
35330
35347
  target[prop] = source[prop];
35331
35348
  }
35332
35349
  return target;
@@ -35417,17 +35434,17 @@ const useDeleteCarrier = () => {
35417
35434
  });
35418
35435
  };
35419
35436
 
35420
- var __getOwnPropSymbols$D = Object.getOwnPropertySymbols;
35421
- var __hasOwnProp$D = Object.prototype.hasOwnProperty;
35422
- var __propIsEnum$D = Object.prototype.propertyIsEnumerable;
35437
+ var __getOwnPropSymbols$E = Object.getOwnPropertySymbols;
35438
+ var __hasOwnProp$E = Object.prototype.hasOwnProperty;
35439
+ var __propIsEnum$E = Object.prototype.propertyIsEnumerable;
35423
35440
  var __objRest$o = (source, exclude) => {
35424
35441
  var target = {};
35425
35442
  for (var prop in source)
35426
- if (__hasOwnProp$D.call(source, prop) && exclude.indexOf(prop) < 0)
35443
+ if (__hasOwnProp$E.call(source, prop) && exclude.indexOf(prop) < 0)
35427
35444
  target[prop] = source[prop];
35428
- if (source != null && __getOwnPropSymbols$D)
35429
- for (var prop of __getOwnPropSymbols$D(source)) {
35430
- if (exclude.indexOf(prop) < 0 && __propIsEnum$D.call(source, prop))
35445
+ if (source != null && __getOwnPropSymbols$E)
35446
+ for (var prop of __getOwnPropSymbols$E(source)) {
35447
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$E.call(source, prop))
35431
35448
  target[prop] = source[prop];
35432
35449
  }
35433
35450
  return target;
@@ -35444,17 +35461,17 @@ const useGetCarrierConnectionForm = (_params) => {
35444
35461
  });
35445
35462
  };
35446
35463
 
35447
- var __getOwnPropSymbols$C = Object.getOwnPropertySymbols;
35448
- var __hasOwnProp$C = Object.prototype.hasOwnProperty;
35449
- var __propIsEnum$C = Object.prototype.propertyIsEnumerable;
35464
+ var __getOwnPropSymbols$D = Object.getOwnPropertySymbols;
35465
+ var __hasOwnProp$D = Object.prototype.hasOwnProperty;
35466
+ var __propIsEnum$D = Object.prototype.propertyIsEnumerable;
35450
35467
  var __objRest$n = (source, exclude) => {
35451
35468
  var target = {};
35452
35469
  for (var prop in source)
35453
- if (__hasOwnProp$C.call(source, prop) && exclude.indexOf(prop) < 0)
35470
+ if (__hasOwnProp$D.call(source, prop) && exclude.indexOf(prop) < 0)
35454
35471
  target[prop] = source[prop];
35455
- if (source != null && __getOwnPropSymbols$C)
35456
- for (var prop of __getOwnPropSymbols$C(source)) {
35457
- if (exclude.indexOf(prop) < 0 && __propIsEnum$C.call(source, prop))
35472
+ if (source != null && __getOwnPropSymbols$D)
35473
+ for (var prop of __getOwnPropSymbols$D(source)) {
35474
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$D.call(source, prop))
35458
35475
  target[prop] = source[prop];
35459
35476
  }
35460
35477
  return target;
@@ -35471,6 +35488,25 @@ const useListCarrierConnections = (_params) => {
35471
35488
  });
35472
35489
  };
35473
35490
 
35491
+ var __defProp$w = Object.defineProperty;
35492
+ var __defProps$t = Object.defineProperties;
35493
+ var __getOwnPropDescs$t = Object.getOwnPropertyDescriptors;
35494
+ var __getOwnPropSymbols$C = Object.getOwnPropertySymbols;
35495
+ var __hasOwnProp$C = Object.prototype.hasOwnProperty;
35496
+ var __propIsEnum$C = Object.prototype.propertyIsEnumerable;
35497
+ var __defNormalProp$w = (obj, key, value) => key in obj ? __defProp$w(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35498
+ var __spreadValues$w = (a, b) => {
35499
+ for (var prop in b || (b = {}))
35500
+ if (__hasOwnProp$C.call(b, prop))
35501
+ __defNormalProp$w(a, prop, b[prop]);
35502
+ if (__getOwnPropSymbols$C)
35503
+ for (var prop of __getOwnPropSymbols$C(b)) {
35504
+ if (__propIsEnum$C.call(b, prop))
35505
+ __defNormalProp$w(a, prop, b[prop]);
35506
+ }
35507
+ return a;
35508
+ };
35509
+ var __spreadProps$t = (a, b) => __defProps$t(a, __getOwnPropDescs$t(b));
35474
35510
  var __async$J = (__this, __arguments, generator) => {
35475
35511
  return new Promise((resolve, reject) => {
35476
35512
  var fulfilled = (value) => {
@@ -35495,7 +35531,8 @@ const useConnectCarrierAccount = () => {
35495
35531
  const { client } = useShipEngine();
35496
35532
  return useMutation({
35497
35533
  mutationFn: (_0) => __async$J(void 0, [_0], function* ({ carrierName, formData }) {
35498
- const result = yield client.connections.connectCarrier(carrierName, formData);
35534
+ const formDataWithFlag = __spreadProps$t(__spreadValues$w({}, formData), { __skipDecamelize: true });
35535
+ const result = yield client.connections.connectCarrier(carrierName, formDataWithFlag);
35499
35536
  return result.data;
35500
35537
  }),
35501
35538
  mutationKey: ["useConnectCarrierAccount"],