@shipengine/alchemy 6.0.17 → 6.0.19

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 +474 -385
  2. package/index.mjs +474 -386
  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$C = Object.getOwnPropertySymbols;
10794
- var __hasOwnProp$C = Object.prototype.hasOwnProperty;
10795
- var __propIsEnum$C = Object.prototype.propertyIsEnumerable;
10796
- var __objRest$n = (source, exclude) => {
10793
+ var __getOwnPropSymbols$E = Object.getOwnPropertySymbols;
10794
+ var __hasOwnProp$E = Object.prototype.hasOwnProperty;
10795
+ var __propIsEnum$E = Object.prototype.propertyIsEnumerable;
10796
+ var __objRest$p = (source, exclude) => {
10797
10797
  var target = {};
10798
10798
  for (var prop in source)
10799
- if (__hasOwnProp$C.call(source, prop) && exclude.indexOf(prop) < 0)
10799
+ if (__hasOwnProp$E.call(source, prop) && exclude.indexOf(prop) < 0)
10800
10800
  target[prop] = source[prop];
10801
- if (source != null && __getOwnPropSymbols$C)
10802
- for (var prop of __getOwnPropSymbols$C(source)) {
10803
- if (exclude.indexOf(prop) < 0 && __propIsEnum$C.call(source, prop))
10801
+ if (source != null && __getOwnPropSymbols$E)
10802
+ for (var prop of __getOwnPropSymbols$E(source)) {
10803
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$E.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$n(_b, ["message"]);
10817
+ var _b = _a, { message } = _b, options = __objRest$p(_b, ["message"]);
10818
10818
  return new CodedError(message, options);
10819
10819
  }
10820
10820
  }
@@ -10933,17 +10933,17 @@ const types = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
10933
10933
  RateCardStatus
10934
10934
  }, Symbol.toStringTag, { value: 'Module' }));
10935
10935
 
10936
- var __getOwnPropSymbols$B = Object.getOwnPropertySymbols;
10937
- var __hasOwnProp$B = Object.prototype.hasOwnProperty;
10938
- var __propIsEnum$B = Object.prototype.propertyIsEnumerable;
10939
- var __objRest$m = (source, exclude) => {
10936
+ var __getOwnPropSymbols$D = Object.getOwnPropertySymbols;
10937
+ var __hasOwnProp$D = Object.prototype.hasOwnProperty;
10938
+ var __propIsEnum$D = Object.prototype.propertyIsEnumerable;
10939
+ var __objRest$o = (source, exclude) => {
10940
10940
  var target = {};
10941
10941
  for (var prop in source)
10942
- if (__hasOwnProp$B.call(source, prop) && exclude.indexOf(prop) < 0)
10942
+ if (__hasOwnProp$D.call(source, prop) && exclude.indexOf(prop) < 0)
10943
10943
  target[prop] = source[prop];
10944
- if (source != null && __getOwnPropSymbols$B)
10945
- for (var prop of __getOwnPropSymbols$B(source)) {
10946
- if (exclude.indexOf(prop) < 0 && __propIsEnum$B.call(source, prop))
10944
+ if (source != null && __getOwnPropSymbols$D)
10945
+ for (var prop of __getOwnPropSymbols$D(source)) {
10946
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$D.call(source, prop))
10947
10947
  target[prop] = source[prop];
10948
10948
  }
10949
10949
  return target;
@@ -10975,7 +10975,7 @@ class AccountSettingsAPI {
10975
10975
  * The `updateImage` method updates specific image data for a given image id.
10976
10976
  */
10977
10977
  this.updateImage = (_a) => {
10978
- var _b = _a, { labelImageId } = _b, data = __objRest$m(_b, ["labelImageId"]);
10978
+ var _b = _a, { labelImageId } = _b, data = __objRest$o(_b, ["labelImageId"]);
10979
10979
  return this.client.put(`/v1/account/settings/images/${labelImageId}`, data);
10980
10980
  };
10981
10981
  /**
@@ -13685,7 +13685,7 @@ var ipaddr = {
13685
13685
  }).call(commonjsGlobal);
13686
13686
  } (ipaddr));
13687
13687
 
13688
- var __async$T = (__this, __arguments, generator) => {
13688
+ var __async$U = (__this, __arguments, generator) => {
13689
13689
  return new Promise((resolve, reject) => {
13690
13690
  var fulfilled = (value) => {
13691
13691
  try {
@@ -13705,7 +13705,7 @@ var __async$T = (__this, __arguments, generator) => {
13705
13705
  step((generator = generator.apply(__this, __arguments)).next());
13706
13706
  });
13707
13707
  };
13708
- const getEndUserIpAddress = () => __async$T(void 0, null, function* () {
13708
+ const getEndUserIpAddress = () => __async$U(void 0, null, function* () {
13709
13709
  try {
13710
13710
  const response = yield axios.get("https://api.ipify.org/?format=json");
13711
13711
  if (response.data.ip && ipaddrExports.isValid(response.data.ip)) {
@@ -13717,38 +13717,38 @@ const getEndUserIpAddress = () => __async$T(void 0, null, function* () {
13717
13717
  }
13718
13718
  });
13719
13719
 
13720
- var __defProp$q = Object.defineProperty;
13721
- var __defProps$k = Object.defineProperties;
13722
- var __getOwnPropDescs$k = Object.getOwnPropertyDescriptors;
13723
- var __getOwnPropSymbols$A = Object.getOwnPropertySymbols;
13724
- var __hasOwnProp$A = Object.prototype.hasOwnProperty;
13725
- var __propIsEnum$A = Object.prototype.propertyIsEnumerable;
13726
- var __defNormalProp$q = (obj, key, value) => key in obj ? __defProp$q(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
13727
- var __spreadValues$q = (a, b) => {
13720
+ var __defProp$r = Object.defineProperty;
13721
+ var __defProps$l = Object.defineProperties;
13722
+ var __getOwnPropDescs$l = Object.getOwnPropertyDescriptors;
13723
+ var __getOwnPropSymbols$C = Object.getOwnPropertySymbols;
13724
+ var __hasOwnProp$C = Object.prototype.hasOwnProperty;
13725
+ var __propIsEnum$C = Object.prototype.propertyIsEnumerable;
13726
+ var __defNormalProp$r = (obj, key, value) => key in obj ? __defProp$r(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
13727
+ var __spreadValues$r = (a, b) => {
13728
13728
  for (var prop in b || (b = {}))
13729
- if (__hasOwnProp$A.call(b, prop))
13730
- __defNormalProp$q(a, prop, b[prop]);
13731
- if (__getOwnPropSymbols$A)
13732
- for (var prop of __getOwnPropSymbols$A(b)) {
13733
- if (__propIsEnum$A.call(b, prop))
13734
- __defNormalProp$q(a, prop, b[prop]);
13729
+ if (__hasOwnProp$C.call(b, prop))
13730
+ __defNormalProp$r(a, prop, b[prop]);
13731
+ if (__getOwnPropSymbols$C)
13732
+ for (var prop of __getOwnPropSymbols$C(b)) {
13733
+ if (__propIsEnum$C.call(b, prop))
13734
+ __defNormalProp$r(a, prop, b[prop]);
13735
13735
  }
13736
13736
  return a;
13737
13737
  };
13738
- var __spreadProps$k = (a, b) => __defProps$k(a, __getOwnPropDescs$k(b));
13739
- var __objRest$l = (source, exclude) => {
13738
+ var __spreadProps$l = (a, b) => __defProps$l(a, __getOwnPropDescs$l(b));
13739
+ var __objRest$n = (source, exclude) => {
13740
13740
  var target = {};
13741
13741
  for (var prop in source)
13742
- if (__hasOwnProp$A.call(source, prop) && exclude.indexOf(prop) < 0)
13742
+ if (__hasOwnProp$C.call(source, prop) && exclude.indexOf(prop) < 0)
13743
13743
  target[prop] = source[prop];
13744
- if (source != null && __getOwnPropSymbols$A)
13745
- for (var prop of __getOwnPropSymbols$A(source)) {
13746
- if (exclude.indexOf(prop) < 0 && __propIsEnum$A.call(source, prop))
13744
+ if (source != null && __getOwnPropSymbols$C)
13745
+ for (var prop of __getOwnPropSymbols$C(source)) {
13746
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$C.call(source, prop))
13747
13747
  target[prop] = source[prop];
13748
13748
  }
13749
13749
  return target;
13750
13750
  };
13751
- var __async$S = (__this, __arguments, generator) => {
13751
+ var __async$T = (__this, __arguments, generator) => {
13752
13752
  return new Promise((resolve, reject) => {
13753
13753
  var fulfilled = (value) => {
13754
13754
  try {
@@ -13788,12 +13788,12 @@ class CarriersAPI {
13788
13788
  /**
13789
13789
  * The `connect` method connects a carrier account to a user's ShipEngine account.
13790
13790
  */
13791
- this.connect = (_a) => __async$S(this, null, function* () {
13792
- var _b = _a, { carrierCode } = _b, connection = __objRest$l(_b, ["carrierCode"]);
13791
+ this.connect = (_a) => __async$T(this, null, function* () {
13792
+ var _b = _a, { carrierCode } = _b, connection = __objRest$n(_b, ["carrierCode"]);
13793
13793
  const endUserIpAddress = yield getEndUserIpAddress();
13794
13794
  if (!endUserIpAddress)
13795
13795
  return Promise.reject([new CodedError("Unable to get IP address")]);
13796
- return yield this.client.post(`/v1/registration/${carrierCode}`, __spreadProps$k(__spreadValues$q({}, connection), {
13796
+ return yield this.client.post(`/v1/registration/${carrierCode}`, __spreadProps$l(__spreadValues$r({}, connection), {
13797
13797
  endUserIpAddress
13798
13798
  }));
13799
13799
  });
@@ -13879,7 +13879,7 @@ class CarriersAPI {
13879
13879
  }
13880
13880
  }
13881
13881
 
13882
- var __async$R = (__this, __arguments, generator) => {
13882
+ var __async$S = (__this, __arguments, generator) => {
13883
13883
  return new Promise((resolve, reject) => {
13884
13884
  var fulfilled = (value) => {
13885
13885
  try {
@@ -13921,7 +13921,7 @@ class ConnectionsAPI {
13921
13921
  /**
13922
13922
  * The `connectCarrier` method connects a carrier to account.
13923
13923
  */
13924
- this.connectCarrier = (carrierName, formData) => __async$R(this, null, function* () {
13924
+ this.connectCarrier = (carrierName, formData) => __async$S(this, null, function* () {
13925
13925
  return yield this.client.post(
13926
13926
  `/v1/connections/carriers/${carrierName}`,
13927
13927
  formData,
@@ -16234,23 +16234,23 @@ class CustomPackagesAPI {
16234
16234
  }
16235
16235
  }
16236
16236
 
16237
- var __defProp$p = Object.defineProperty;
16238
- var __getOwnPropSymbols$z = Object.getOwnPropertySymbols;
16239
- var __hasOwnProp$z = Object.prototype.hasOwnProperty;
16240
- var __propIsEnum$z = Object.prototype.propertyIsEnumerable;
16241
- var __defNormalProp$p = (obj, key, value) => key in obj ? __defProp$p(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
16242
- var __spreadValues$p = (a, b) => {
16237
+ var __defProp$q = Object.defineProperty;
16238
+ var __getOwnPropSymbols$B = Object.getOwnPropertySymbols;
16239
+ var __hasOwnProp$B = Object.prototype.hasOwnProperty;
16240
+ var __propIsEnum$B = Object.prototype.propertyIsEnumerable;
16241
+ var __defNormalProp$q = (obj, key, value) => key in obj ? __defProp$q(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
16242
+ var __spreadValues$q = (a, b) => {
16243
16243
  for (var prop in b || (b = {}))
16244
- if (__hasOwnProp$z.call(b, prop))
16245
- __defNormalProp$p(a, prop, b[prop]);
16246
- if (__getOwnPropSymbols$z)
16247
- for (var prop of __getOwnPropSymbols$z(b)) {
16248
- if (__propIsEnum$z.call(b, prop))
16249
- __defNormalProp$p(a, prop, b[prop]);
16244
+ if (__hasOwnProp$B.call(b, prop))
16245
+ __defNormalProp$q(a, prop, b[prop]);
16246
+ if (__getOwnPropSymbols$B)
16247
+ for (var prop of __getOwnPropSymbols$B(b)) {
16248
+ if (__propIsEnum$B.call(b, prop))
16249
+ __defNormalProp$q(a, prop, b[prop]);
16250
16250
  }
16251
16251
  return a;
16252
16252
  };
16253
- var __async$Q = (__this, __arguments, generator) => {
16253
+ var __async$R = (__this, __arguments, generator) => {
16254
16254
  return new Promise((resolve, reject) => {
16255
16255
  var fulfilled = (value) => {
16256
16256
  try {
@@ -16289,12 +16289,12 @@ class FundingSourcesAPI {
16289
16289
  * The `create` method creates a new funding source for a given user. This requires
16290
16290
  * payment information to be collected from the user.
16291
16291
  */
16292
- this.create = (createFundingSource) => __async$Q(this, null, function* () {
16292
+ this.create = (createFundingSource) => __async$R(this, null, function* () {
16293
16293
  const endUserIpAddress = yield getEndUserIpAddress();
16294
16294
  if (!endUserIpAddress) {
16295
16295
  return Promise.reject([new CodedError("Unable to get IP address")]);
16296
16296
  }
16297
- return yield this.client.post("/v1/funding_sources", __spreadValues$p({
16297
+ return yield this.client.post("/v1/funding_sources", __spreadValues$q({
16298
16298
  endUserIpAddress
16299
16299
  }, createFundingSource));
16300
16300
  });
@@ -16303,7 +16303,7 @@ class FundingSourcesAPI {
16303
16303
  * user to update the billing address or payment information associated with the
16304
16304
  * funding source.
16305
16305
  */
16306
- this.update = (billingInfo, creditCardInfo, fundingSourceId) => __async$Q(this, null, function* () {
16306
+ this.update = (billingInfo, creditCardInfo, fundingSourceId) => __async$R(this, null, function* () {
16307
16307
  const endUserIpAddress = yield getEndUserIpAddress();
16308
16308
  if (!endUserIpAddress) {
16309
16309
  return Promise.reject([new CodedError("Unable to get IP address")]);
@@ -16321,19 +16321,19 @@ class FundingSourcesAPI {
16321
16321
  * The `registerCarrier` method registers a carrier account and associates
16322
16322
  * it with a given funding source.
16323
16323
  */
16324
- this.registerCarrier = (carrier) => __async$Q(this, null, function* () {
16324
+ this.registerCarrier = (carrier) => __async$R(this, null, function* () {
16325
16325
  const endUserIpAddress = yield getEndUserIpAddress();
16326
16326
  if (!endUserIpAddress) {
16327
16327
  return Promise.reject([new CodedError("Unable to get IP address")]);
16328
16328
  }
16329
- return yield this.client.post("/v1/registration/funding_source", __spreadValues$p({
16329
+ return yield this.client.post("/v1/registration/funding_source", __spreadValues$q({
16330
16330
  endUserIpAddress
16331
16331
  }, carrier));
16332
16332
  });
16333
16333
  /**
16334
16334
  * The `addFunds` method allows you to add funds to a funding source.
16335
16335
  */
16336
- this.addFunds = (amount, fundingSourceId) => __async$Q(this, null, function* () {
16336
+ this.addFunds = (amount, fundingSourceId) => __async$R(this, null, function* () {
16337
16337
  return yield this.client.put(
16338
16338
  `/v1/funding_sources/${fundingSourceId}/add_funds`,
16339
16339
  amount
@@ -16343,7 +16343,7 @@ class FundingSourcesAPI {
16343
16343
  * The `metadata` method returns seller-specific requirements for creating funding sources
16344
16344
  * and attaching carriers
16345
16345
  */
16346
- this.metadata = () => __async$Q(this, null, function* () {
16346
+ this.metadata = () => __async$R(this, null, function* () {
16347
16347
  return yield this.client.get("/v1/funding_sources/metadata");
16348
16348
  });
16349
16349
  /**
@@ -16430,6 +16430,21 @@ class LabelsAPI {
16430
16430
  }
16431
16431
  }
16432
16432
 
16433
+ var __getOwnPropSymbols$A = Object.getOwnPropertySymbols;
16434
+ var __hasOwnProp$A = Object.prototype.hasOwnProperty;
16435
+ var __propIsEnum$A = Object.prototype.propertyIsEnumerable;
16436
+ var __objRest$m = (source, exclude) => {
16437
+ var target = {};
16438
+ for (var prop in source)
16439
+ if (__hasOwnProp$A.call(source, prop) && exclude.indexOf(prop) < 0)
16440
+ target[prop] = source[prop];
16441
+ if (source != null && __getOwnPropSymbols$A)
16442
+ for (var prop of __getOwnPropSymbols$A(source)) {
16443
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$A.call(source, prop))
16444
+ target[prop] = source[prop];
16445
+ }
16446
+ return target;
16447
+ };
16433
16448
  class OrderSourcesAPI {
16434
16449
  constructor(client) {
16435
16450
  this.client = client;
@@ -16453,6 +16468,13 @@ class OrderSourcesAPI {
16453
16468
  this.get = (orderSourceId) => {
16454
16469
  return this.client.get(`/v-beta/order_sources/${orderSourceId}`);
16455
16470
  };
16471
+ /**
16472
+ * The `update` method will allow the user to update a connected Order Source
16473
+ */
16474
+ this.update = (_a) => {
16475
+ var _b = _a, { orderSourceId } = _b, rest = __objRest$m(_b, ["orderSourceId"]);
16476
+ return this.client.put(`/v-beta/order_sources/${orderSourceId}`, rest);
16477
+ };
16456
16478
  /**
16457
16479
  * The `refresh` method refreshes a specific order source by `orderSourceId`.
16458
16480
  * This will pull in any `new orders` since the last order import.
@@ -16539,19 +16561,19 @@ class RateCardsAPI {
16539
16561
  }
16540
16562
  }
16541
16563
 
16542
- var __defProp$o = Object.defineProperty;
16543
- var __getOwnPropSymbols$y = Object.getOwnPropertySymbols;
16544
- var __hasOwnProp$y = Object.prototype.hasOwnProperty;
16545
- var __propIsEnum$y = Object.prototype.propertyIsEnumerable;
16546
- var __defNormalProp$o = (obj, key, value) => key in obj ? __defProp$o(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
16547
- var __spreadValues$o = (a, b) => {
16564
+ var __defProp$p = Object.defineProperty;
16565
+ var __getOwnPropSymbols$z = Object.getOwnPropertySymbols;
16566
+ var __hasOwnProp$z = Object.prototype.hasOwnProperty;
16567
+ var __propIsEnum$z = Object.prototype.propertyIsEnumerable;
16568
+ var __defNormalProp$p = (obj, key, value) => key in obj ? __defProp$p(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
16569
+ var __spreadValues$p = (a, b) => {
16548
16570
  for (var prop in b || (b = {}))
16549
- if (__hasOwnProp$y.call(b, prop))
16550
- __defNormalProp$o(a, prop, b[prop]);
16551
- if (__getOwnPropSymbols$y)
16552
- for (var prop of __getOwnPropSymbols$y(b)) {
16553
- if (__propIsEnum$y.call(b, prop))
16554
- __defNormalProp$o(a, prop, b[prop]);
16571
+ if (__hasOwnProp$z.call(b, prop))
16572
+ __defNormalProp$p(a, prop, b[prop]);
16573
+ if (__getOwnPropSymbols$z)
16574
+ for (var prop of __getOwnPropSymbols$z(b)) {
16575
+ if (__propIsEnum$z.call(b, prop))
16576
+ __defNormalProp$p(a, prop, b[prop]);
16555
16577
  }
16556
16578
  return a;
16557
16579
  };
@@ -16573,7 +16595,7 @@ class RatesAPI {
16573
16595
  * method.
16574
16596
  */
16575
16597
  this.estimate = (params) => {
16576
- return this.client.post("/v1/rates/estimate", __spreadValues$o({}, params));
16598
+ return this.client.post("/v1/rates/estimate", __spreadValues$p({}, params));
16577
16599
  };
16578
16600
  this.client = client;
16579
16601
  }
@@ -16642,7 +16664,7 @@ class SalesOrdersAPI {
16642
16664
  }
16643
16665
  }
16644
16666
 
16645
- var __async$P = (__this, __arguments, generator) => {
16667
+ var __async$Q = (__this, __arguments, generator) => {
16646
16668
  return new Promise((resolve, reject) => {
16647
16669
  var fulfilled = (value) => {
16648
16670
  try {
@@ -16700,7 +16722,7 @@ class SellersAPI {
16700
16722
  /**
16701
16723
  * Deletes an API Key
16702
16724
  */
16703
- this.deleteSellerApiKey = (_0) => __async$P(this, [_0], function* ({
16725
+ this.deleteSellerApiKey = (_0) => __async$Q(this, [_0], function* ({
16704
16726
  encryptedApiKey,
16705
16727
  sellerId,
16706
16728
  isSandbox
@@ -16746,19 +16768,19 @@ class SellersAPI {
16746
16768
  }
16747
16769
  }
16748
16770
 
16749
- var __defProp$n = Object.defineProperty;
16750
- var __getOwnPropSymbols$x = Object.getOwnPropertySymbols;
16751
- var __hasOwnProp$x = Object.prototype.hasOwnProperty;
16752
- var __propIsEnum$x = Object.prototype.propertyIsEnumerable;
16753
- var __defNormalProp$n = (obj, key, value) => key in obj ? __defProp$n(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
16754
- var __spreadValues$n = (a, b) => {
16771
+ var __defProp$o = Object.defineProperty;
16772
+ var __getOwnPropSymbols$y = Object.getOwnPropertySymbols;
16773
+ var __hasOwnProp$y = Object.prototype.hasOwnProperty;
16774
+ var __propIsEnum$y = Object.prototype.propertyIsEnumerable;
16775
+ var __defNormalProp$o = (obj, key, value) => key in obj ? __defProp$o(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
16776
+ var __spreadValues$o = (a, b) => {
16755
16777
  for (var prop in b || (b = {}))
16756
- if (__hasOwnProp$x.call(b, prop))
16757
- __defNormalProp$n(a, prop, b[prop]);
16758
- if (__getOwnPropSymbols$x)
16759
- for (var prop of __getOwnPropSymbols$x(b)) {
16760
- if (__propIsEnum$x.call(b, prop))
16761
- __defNormalProp$n(a, prop, b[prop]);
16778
+ if (__hasOwnProp$y.call(b, prop))
16779
+ __defNormalProp$o(a, prop, b[prop]);
16780
+ if (__getOwnPropSymbols$y)
16781
+ for (var prop of __getOwnPropSymbols$y(b)) {
16782
+ if (__propIsEnum$y.call(b, prop))
16783
+ __defNormalProp$o(a, prop, b[prop]);
16762
16784
  }
16763
16785
  return a;
16764
16786
  };
@@ -16770,7 +16792,7 @@ class ServicePointsAPI {
16770
16792
  * Either an address, coordinates, or an address query
16771
16793
  */
16772
16794
  this.list = (options) => {
16773
- return this.client.post("/v1/service_points/list", __spreadValues$n({}, options));
16795
+ return this.client.post("/v1/service_points/list", __spreadValues$o({}, options));
16774
16796
  };
16775
16797
  /**
16776
16798
  * Get a specific service point by its carrier code, country code, and id
@@ -16788,7 +16810,7 @@ class ServicePointsAPI {
16788
16810
  }
16789
16811
  }
16790
16812
 
16791
- var __async$O = (__this, __arguments, generator) => {
16813
+ var __async$P = (__this, __arguments, generator) => {
16792
16814
  return new Promise((resolve, reject) => {
16793
16815
  var fulfilled = (value) => {
16794
16816
  try {
@@ -16837,7 +16859,7 @@ class ShipmentsAPI {
16837
16859
  * The `create` method allows for creating shipments based on a list of shipment
16838
16860
  * items passed into this method.
16839
16861
  */
16840
- this.create = (...shipments) => __async$O(this, null, function* () {
16862
+ this.create = (...shipments) => __async$P(this, null, function* () {
16841
16863
  return this.client.post("/v1/shipments", {
16842
16864
  shipments
16843
16865
  });
@@ -34229,26 +34251,26 @@ class WebhooksAPI {
34229
34251
  }
34230
34252
  }
34231
34253
 
34232
- var __defProp$m = Object.defineProperty;
34233
- var __defProps$j = Object.defineProperties;
34234
- var __getOwnPropDescs$j = Object.getOwnPropertyDescriptors;
34235
- var __getOwnPropSymbols$w = Object.getOwnPropertySymbols;
34236
- var __hasOwnProp$w = Object.prototype.hasOwnProperty;
34237
- var __propIsEnum$w = Object.prototype.propertyIsEnumerable;
34238
- var __defNormalProp$m = (obj, key, value) => key in obj ? __defProp$m(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
34239
- var __spreadValues$m = (a, b) => {
34254
+ var __defProp$n = Object.defineProperty;
34255
+ var __defProps$k = Object.defineProperties;
34256
+ var __getOwnPropDescs$k = Object.getOwnPropertyDescriptors;
34257
+ var __getOwnPropSymbols$x = Object.getOwnPropertySymbols;
34258
+ var __hasOwnProp$x = Object.prototype.hasOwnProperty;
34259
+ var __propIsEnum$x = Object.prototype.propertyIsEnumerable;
34260
+ var __defNormalProp$n = (obj, key, value) => key in obj ? __defProp$n(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
34261
+ var __spreadValues$n = (a, b) => {
34240
34262
  for (var prop in b || (b = {}))
34241
- if (__hasOwnProp$w.call(b, prop))
34242
- __defNormalProp$m(a, prop, b[prop]);
34243
- if (__getOwnPropSymbols$w)
34244
- for (var prop of __getOwnPropSymbols$w(b)) {
34245
- if (__propIsEnum$w.call(b, prop))
34246
- __defNormalProp$m(a, prop, b[prop]);
34263
+ if (__hasOwnProp$x.call(b, prop))
34264
+ __defNormalProp$n(a, prop, b[prop]);
34265
+ if (__getOwnPropSymbols$x)
34266
+ for (var prop of __getOwnPropSymbols$x(b)) {
34267
+ if (__propIsEnum$x.call(b, prop))
34268
+ __defNormalProp$n(a, prop, b[prop]);
34247
34269
  }
34248
34270
  return a;
34249
34271
  };
34250
- var __spreadProps$j = (a, b) => __defProps$j(a, __getOwnPropDescs$j(b));
34251
- var __async$N = (__this, __arguments, generator) => {
34272
+ var __spreadProps$k = (a, b) => __defProps$k(a, __getOwnPropDescs$k(b));
34273
+ var __async$O = (__this, __arguments, generator) => {
34252
34274
  return new Promise((resolve, reject) => {
34253
34275
  var fulfilled = (value) => {
34254
34276
  try {
@@ -34271,7 +34293,7 @@ var __async$N = (__this, __arguments, generator) => {
34271
34293
  const logger$1 = E({
34272
34294
  level: process.env.NODE_ENV === "production" ? "fatal" : "info",
34273
34295
  name: "shipengine-api",
34274
- serializers: __spreadProps$j(__spreadValues$m({}, k), {
34296
+ serializers: __spreadProps$k(__spreadValues$n({}, k), {
34275
34297
  req: (req) => ({
34276
34298
  headers: req.headers,
34277
34299
  method: req.method,
@@ -34296,7 +34318,7 @@ class ShipEngineAPI {
34296
34318
  this.getSandboxToken = getSandboxToken;
34297
34319
  const client = axios.create({
34298
34320
  baseURL,
34299
- headers: __spreadProps$j(__spreadValues$m({}, headers), {
34321
+ headers: __spreadProps$k(__spreadValues$n({}, headers), {
34300
34322
  "Content-Type": "application/json"
34301
34323
  }),
34302
34324
  paramsSerializer: (params) => lib.stringify(humpsExports.decamelizeKeys(params), { arrayFormat: "brackets" }),
@@ -34331,7 +34353,7 @@ class ShipEngineAPI {
34331
34353
  });
34332
34354
  client.defaults.headers.common["Authorization"] = `Bearer ${token}`;
34333
34355
  client.interceptors.request.use(
34334
- (config) => __async$N(this, null, function* () {
34356
+ (config) => __async$O(this, null, function* () {
34335
34357
  if (config.isSandbox) {
34336
34358
  if (!this.sandboxToken) {
34337
34359
  this.sandboxToken = yield getSandboxToken == null ? void 0 : getSandboxToken();
@@ -34358,7 +34380,7 @@ class ShipEngineAPI {
34358
34380
  );
34359
34381
  return res;
34360
34382
  },
34361
- (err) => __async$N(this, null, function* () {
34383
+ (err) => __async$O(this, null, function* () {
34362
34384
  var _a, _b, _c, _d, _e;
34363
34385
  logger$1.error(
34364
34386
  { err, req: err.config, res: err.response },
@@ -34405,7 +34427,7 @@ class ShipEngineAPI {
34405
34427
  * that token (also known as Seller ID)
34406
34428
  */
34407
34429
  getTenant(isSandbox) {
34408
- return __async$N(this, null, function* () {
34430
+ return __async$O(this, null, function* () {
34409
34431
  var _a;
34410
34432
  if (!isSandbox) {
34411
34433
  return this.getTenantFromToken(this.token);
@@ -34675,25 +34697,25 @@ const delay = (ms) => new Promise((resolve) => {
34675
34697
 
34676
34698
  const onError = (_errors) => _default();
34677
34699
 
34678
- var __defProp$l = Object.defineProperty;
34679
- var __defProps$i = Object.defineProperties;
34680
- var __getOwnPropDescs$i = Object.getOwnPropertyDescriptors;
34681
- var __getOwnPropSymbols$v = Object.getOwnPropertySymbols;
34682
- var __hasOwnProp$v = Object.prototype.hasOwnProperty;
34683
- var __propIsEnum$v = Object.prototype.propertyIsEnumerable;
34684
- var __defNormalProp$l = (obj, key, value) => key in obj ? __defProp$l(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
34685
- var __spreadValues$l = (a, b) => {
34700
+ var __defProp$m = Object.defineProperty;
34701
+ var __defProps$j = Object.defineProperties;
34702
+ var __getOwnPropDescs$j = Object.getOwnPropertyDescriptors;
34703
+ var __getOwnPropSymbols$w = Object.getOwnPropertySymbols;
34704
+ var __hasOwnProp$w = Object.prototype.hasOwnProperty;
34705
+ var __propIsEnum$w = Object.prototype.propertyIsEnumerable;
34706
+ var __defNormalProp$m = (obj, key, value) => key in obj ? __defProp$m(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
34707
+ var __spreadValues$m = (a, b) => {
34686
34708
  for (var prop in b || (b = {}))
34687
- if (__hasOwnProp$v.call(b, prop))
34688
- __defNormalProp$l(a, prop, b[prop]);
34689
- if (__getOwnPropSymbols$v)
34690
- for (var prop of __getOwnPropSymbols$v(b)) {
34691
- if (__propIsEnum$v.call(b, prop))
34692
- __defNormalProp$l(a, prop, b[prop]);
34709
+ if (__hasOwnProp$w.call(b, prop))
34710
+ __defNormalProp$m(a, prop, b[prop]);
34711
+ if (__getOwnPropSymbols$w)
34712
+ for (var prop of __getOwnPropSymbols$w(b)) {
34713
+ if (__propIsEnum$w.call(b, prop))
34714
+ __defNormalProp$m(a, prop, b[prop]);
34693
34715
  }
34694
34716
  return a;
34695
34717
  };
34696
- var __spreadProps$i = (a, b) => __defProps$i(a, __getOwnPropDescs$i(b));
34718
+ var __spreadProps$j = (a, b) => __defProps$j(a, __getOwnPropDescs$j(b));
34697
34719
  const streams = [];
34698
34720
  if (process.env.NODE_ENV === "production") {
34699
34721
  streams.push({
@@ -34702,7 +34724,7 @@ if (process.env.NODE_ENV === "production") {
34702
34724
  }
34703
34725
  const logger = E({
34704
34726
  name: "shipengine",
34705
- serializers: __spreadProps$i(__spreadValues$l({}, k), {
34727
+ serializers: __spreadProps$j(__spreadValues$m({}, k), {
34706
34728
  req: (req) => ({
34707
34729
  headers: req.headers,
34708
34730
  method: req.method,
@@ -34727,7 +34749,7 @@ const retryUntil = (callbackFn, retries = 10, timeoutBetweenAttempts = 1e3) => P
34727
34749
  throw error;
34728
34750
  });
34729
34751
 
34730
- var __async$M = (__this, __arguments, generator) => {
34752
+ var __async$N = (__this, __arguments, generator) => {
34731
34753
  return new Promise((resolve, reject) => {
34732
34754
  var fulfilled = (value) => {
34733
34755
  try {
@@ -34750,7 +34772,7 @@ var __async$M = (__this, __arguments, generator) => {
34750
34772
  const useCreateAccountImage = () => {
34751
34773
  const { client } = useShipEngine();
34752
34774
  return useMutation({
34753
- mutationFn: (data) => __async$M(void 0, null, function* () {
34775
+ mutationFn: (data) => __async$N(void 0, null, function* () {
34754
34776
  const result = yield client.accountSettings.createImage(data);
34755
34777
  return result.data;
34756
34778
  }),
@@ -34759,7 +34781,7 @@ const useCreateAccountImage = () => {
34759
34781
  });
34760
34782
  };
34761
34783
 
34762
- var __async$L = (__this, __arguments, generator) => {
34784
+ var __async$M = (__this, __arguments, generator) => {
34763
34785
  return new Promise((resolve, reject) => {
34764
34786
  var fulfilled = (value) => {
34765
34787
  try {
@@ -34782,7 +34804,7 @@ var __async$L = (__this, __arguments, generator) => {
34782
34804
  const useDeleteAccountImage = () => {
34783
34805
  const { client } = useShipEngine();
34784
34806
  return useMutation({
34785
- mutationFn: (labelImageId) => __async$L(void 0, null, function* () {
34807
+ mutationFn: (labelImageId) => __async$M(void 0, null, function* () {
34786
34808
  const result = yield client.accountSettings.deleteImage(labelImageId);
34787
34809
  return result.data;
34788
34810
  }),
@@ -34811,7 +34833,7 @@ const useGetAccountSettings = () => {
34811
34833
  });
34812
34834
  };
34813
34835
 
34814
- var __async$K = (__this, __arguments, generator) => {
34836
+ var __async$L = (__this, __arguments, generator) => {
34815
34837
  return new Promise((resolve, reject) => {
34816
34838
  var fulfilled = (value) => {
34817
34839
  try {
@@ -34834,7 +34856,7 @@ var __async$K = (__this, __arguments, generator) => {
34834
34856
  const useUpdateAccountImage = () => {
34835
34857
  const { client } = useShipEngine();
34836
34858
  return useMutation({
34837
- mutationFn: (data) => __async$K(void 0, null, function* () {
34859
+ mutationFn: (data) => __async$L(void 0, null, function* () {
34838
34860
  const result = yield client.accountSettings.updateImage(data);
34839
34861
  return result.data;
34840
34862
  }),
@@ -34843,7 +34865,7 @@ const useUpdateAccountImage = () => {
34843
34865
  });
34844
34866
  };
34845
34867
 
34846
- var __async$J = (__this, __arguments, generator) => {
34868
+ var __async$K = (__this, __arguments, generator) => {
34847
34869
  return new Promise((resolve, reject) => {
34848
34870
  var fulfilled = (value) => {
34849
34871
  try {
@@ -34866,7 +34888,7 @@ var __async$J = (__this, __arguments, generator) => {
34866
34888
  const useUpdateAccountSettings = () => {
34867
34889
  const { client } = useShipEngine();
34868
34890
  return useMutation({
34869
- mutationFn: (settings) => __async$J(void 0, null, function* () {
34891
+ mutationFn: (settings) => __async$K(void 0, null, function* () {
34870
34892
  const result = yield client.accountSettings.update(settings);
34871
34893
  return result.data;
34872
34894
  }),
@@ -34875,7 +34897,7 @@ const useUpdateAccountSettings = () => {
34875
34897
  });
34876
34898
  };
34877
34899
 
34878
- var __async$I = (__this, __arguments, generator) => {
34900
+ var __async$J = (__this, __arguments, generator) => {
34879
34901
  return new Promise((resolve, reject) => {
34880
34902
  var fulfilled = (value) => {
34881
34903
  try {
@@ -34898,7 +34920,7 @@ var __async$I = (__this, __arguments, generator) => {
34898
34920
  const useParseAddress = () => {
34899
34921
  const { client } = useShipEngine();
34900
34922
  return useMutation({
34901
- mutationFn: (_0) => __async$I(void 0, [_0], function* ({ address, text }) {
34923
+ mutationFn: (_0) => __async$J(void 0, [_0], function* ({ address, text }) {
34902
34924
  const result = yield client.addresses.parse(text, address);
34903
34925
  return result.data;
34904
34926
  }),
@@ -34907,7 +34929,7 @@ const useParseAddress = () => {
34907
34929
  });
34908
34930
  };
34909
34931
 
34910
- var __async$H = (__this, __arguments, generator) => {
34932
+ var __async$I = (__this, __arguments, generator) => {
34911
34933
  return new Promise((resolve, reject) => {
34912
34934
  var fulfilled = (value) => {
34913
34935
  try {
@@ -34930,7 +34952,7 @@ var __async$H = (__this, __arguments, generator) => {
34930
34952
  const useValidateAddresses = () => {
34931
34953
  const { client } = useShipEngine();
34932
34954
  return useMutation({
34933
- mutationFn: (addresses) => __async$H(void 0, null, function* () {
34955
+ mutationFn: (addresses) => __async$I(void 0, null, function* () {
34934
34956
  const result = yield client.addresses.validate(addresses);
34935
34957
  return result.data;
34936
34958
  }),
@@ -34939,7 +34961,7 @@ const useValidateAddresses = () => {
34939
34961
  });
34940
34962
  };
34941
34963
 
34942
- var __async$G = (__this, __arguments, generator) => {
34964
+ var __async$H = (__this, __arguments, generator) => {
34943
34965
  return new Promise((resolve, reject) => {
34944
34966
  var fulfilled = (value) => {
34945
34967
  try {
@@ -34962,7 +34984,7 @@ var __async$G = (__this, __arguments, generator) => {
34962
34984
  const useAddFunds = () => {
34963
34985
  const { client } = useShipEngine();
34964
34986
  return useMutation({
34965
- mutationFn: (_0) => __async$G(void 0, [_0], function* ({ carrierId, funds }) {
34987
+ mutationFn: (_0) => __async$H(void 0, [_0], function* ({ carrierId, funds }) {
34966
34988
  const result = yield client.carriers.addFunds(carrierId, funds);
34967
34989
  return result.data;
34968
34990
  }),
@@ -34971,7 +34993,7 @@ const useAddFunds = () => {
34971
34993
  });
34972
34994
  };
34973
34995
 
34974
- var __async$F = (__this, __arguments, generator) => {
34996
+ var __async$G = (__this, __arguments, generator) => {
34975
34997
  return new Promise((resolve, reject) => {
34976
34998
  var fulfilled = (value) => {
34977
34999
  try {
@@ -34994,7 +35016,7 @@ var __async$F = (__this, __arguments, generator) => {
34994
35016
  const useConnectCarrier = () => {
34995
35017
  const { client } = useShipEngine();
34996
35018
  return useMutation({
34997
- mutationFn: (params) => __async$F(void 0, null, function* () {
35019
+ mutationFn: (params) => __async$G(void 0, null, function* () {
34998
35020
  const result = yield client.carriers.connect(params);
34999
35021
  return result.data;
35000
35022
  }),
@@ -35103,41 +35125,41 @@ const useGetServicesByCarrier = (carrierId) => {
35103
35125
  });
35104
35126
  };
35105
35127
 
35106
- var __defProp$k = Object.defineProperty;
35107
- var __defProps$h = Object.defineProperties;
35108
- var __getOwnPropDescs$h = Object.getOwnPropertyDescriptors;
35109
- var __getOwnPropSymbols$u = Object.getOwnPropertySymbols;
35110
- var __hasOwnProp$u = Object.prototype.hasOwnProperty;
35111
- var __propIsEnum$u = Object.prototype.propertyIsEnumerable;
35112
- var __defNormalProp$k = (obj, key, value) => key in obj ? __defProp$k(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35113
- var __spreadValues$k = (a, b) => {
35128
+ var __defProp$l = Object.defineProperty;
35129
+ var __defProps$i = Object.defineProperties;
35130
+ var __getOwnPropDescs$i = Object.getOwnPropertyDescriptors;
35131
+ var __getOwnPropSymbols$v = Object.getOwnPropertySymbols;
35132
+ var __hasOwnProp$v = Object.prototype.hasOwnProperty;
35133
+ var __propIsEnum$v = Object.prototype.propertyIsEnumerable;
35134
+ var __defNormalProp$l = (obj, key, value) => key in obj ? __defProp$l(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35135
+ var __spreadValues$l = (a, b) => {
35114
35136
  for (var prop in b || (b = {}))
35115
- if (__hasOwnProp$u.call(b, prop))
35116
- __defNormalProp$k(a, prop, b[prop]);
35117
- if (__getOwnPropSymbols$u)
35118
- for (var prop of __getOwnPropSymbols$u(b)) {
35119
- if (__propIsEnum$u.call(b, prop))
35120
- __defNormalProp$k(a, prop, b[prop]);
35137
+ if (__hasOwnProp$v.call(b, prop))
35138
+ __defNormalProp$l(a, prop, b[prop]);
35139
+ if (__getOwnPropSymbols$v)
35140
+ for (var prop of __getOwnPropSymbols$v(b)) {
35141
+ if (__propIsEnum$v.call(b, prop))
35142
+ __defNormalProp$l(a, prop, b[prop]);
35121
35143
  }
35122
35144
  return a;
35123
35145
  };
35124
- var __spreadProps$h = (a, b) => __defProps$h(a, __getOwnPropDescs$h(b));
35125
- var __objRest$k = (source, exclude) => {
35146
+ var __spreadProps$i = (a, b) => __defProps$i(a, __getOwnPropDescs$i(b));
35147
+ var __objRest$l = (source, exclude) => {
35126
35148
  var target = {};
35127
35149
  for (var prop in source)
35128
- if (__hasOwnProp$u.call(source, prop) && exclude.indexOf(prop) < 0)
35150
+ if (__hasOwnProp$v.call(source, prop) && exclude.indexOf(prop) < 0)
35129
35151
  target[prop] = source[prop];
35130
- if (source != null && __getOwnPropSymbols$u)
35131
- for (var prop of __getOwnPropSymbols$u(source)) {
35132
- if (exclude.indexOf(prop) < 0 && __propIsEnum$u.call(source, prop))
35152
+ if (source != null && __getOwnPropSymbols$v)
35153
+ for (var prop of __getOwnPropSymbols$v(source)) {
35154
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$v.call(source, prop))
35133
35155
  target[prop] = source[prop];
35134
35156
  }
35135
35157
  return target;
35136
35158
  };
35137
35159
  const useListCarriers = (params) => {
35138
35160
  const { client } = useShipEngine();
35139
- const _a = __spreadValues$k({}, params), { queryFnParams } = _a, rest = __objRest$k(_a, ["queryFnParams"]);
35140
- return useQuery(__spreadProps$h(__spreadValues$k({}, rest), {
35161
+ const _a = __spreadValues$l({}, params), { queryFnParams } = _a, rest = __objRest$l(_a, ["queryFnParams"]);
35162
+ return useQuery(__spreadProps$i(__spreadValues$l({}, rest), {
35141
35163
  onError,
35142
35164
  queryFn: () => client.carriers.list(queryFnParams),
35143
35165
  queryKey: ["useListCarriers", queryFnParams],
@@ -35145,22 +35167,22 @@ const useListCarriers = (params) => {
35145
35167
  }));
35146
35168
  };
35147
35169
 
35148
- var __getOwnPropSymbols$t = Object.getOwnPropertySymbols;
35149
- var __hasOwnProp$t = Object.prototype.hasOwnProperty;
35150
- var __propIsEnum$t = Object.prototype.propertyIsEnumerable;
35151
- var __objRest$j = (source, exclude) => {
35170
+ var __getOwnPropSymbols$u = Object.getOwnPropertySymbols;
35171
+ var __hasOwnProp$u = Object.prototype.hasOwnProperty;
35172
+ var __propIsEnum$u = Object.prototype.propertyIsEnumerable;
35173
+ var __objRest$k = (source, exclude) => {
35152
35174
  var target = {};
35153
35175
  for (var prop in source)
35154
- if (__hasOwnProp$t.call(source, prop) && exclude.indexOf(prop) < 0)
35176
+ if (__hasOwnProp$u.call(source, prop) && exclude.indexOf(prop) < 0)
35155
35177
  target[prop] = source[prop];
35156
- if (source != null && __getOwnPropSymbols$t)
35157
- for (var prop of __getOwnPropSymbols$t(source)) {
35158
- if (exclude.indexOf(prop) < 0 && __propIsEnum$t.call(source, prop))
35178
+ if (source != null && __getOwnPropSymbols$u)
35179
+ for (var prop of __getOwnPropSymbols$u(source)) {
35180
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$u.call(source, prop))
35159
35181
  target[prop] = source[prop];
35160
35182
  }
35161
35183
  return target;
35162
35184
  };
35163
- var __async$E = (__this, __arguments, generator) => {
35185
+ var __async$F = (__this, __arguments, generator) => {
35164
35186
  return new Promise((resolve, reject) => {
35165
35187
  var fulfilled = (value) => {
35166
35188
  try {
@@ -35184,8 +35206,8 @@ const useUpdateAutoFunding = () => {
35184
35206
  const { client } = useShipEngine();
35185
35207
  const queryClient = useQueryClient();
35186
35208
  return useMutation({
35187
- mutationFn: (_a) => __async$E(void 0, null, function* () {
35188
- var _b = _a, { carrierId } = _b, options = __objRest$j(_b, ["carrierId"]);
35209
+ mutationFn: (_a) => __async$F(void 0, null, function* () {
35210
+ var _b = _a, { carrierId } = _b, options = __objRest$k(_b, ["carrierId"]);
35189
35211
  const result = yield client.carriers.updateAutoFunding(carrierId, options);
35190
35212
  return result.data;
35191
35213
  }),
@@ -35214,7 +35236,7 @@ const useGetZonesByCarrier = (carrierId) => {
35214
35236
  });
35215
35237
  };
35216
35238
 
35217
- var __async$D = (__this, __arguments, generator) => {
35239
+ var __async$E = (__this, __arguments, generator) => {
35218
35240
  return new Promise((resolve, reject) => {
35219
35241
  var fulfilled = (value) => {
35220
35242
  try {
@@ -35237,7 +35259,7 @@ var __async$D = (__this, __arguments, generator) => {
35237
35259
  const useDeleteCarrier = () => {
35238
35260
  const { client } = useShipEngine();
35239
35261
  return useMutation({
35240
- mutationFn: (carrierId) => __async$D(void 0, null, function* () {
35262
+ mutationFn: (carrierId) => __async$E(void 0, null, function* () {
35241
35263
  const result = yield client.carriers.delete(carrierId);
35242
35264
  return result.data;
35243
35265
  }),
@@ -35246,24 +35268,24 @@ const useDeleteCarrier = () => {
35246
35268
  });
35247
35269
  };
35248
35270
 
35249
- var __getOwnPropSymbols$s = Object.getOwnPropertySymbols;
35250
- var __hasOwnProp$s = Object.prototype.hasOwnProperty;
35251
- var __propIsEnum$s = Object.prototype.propertyIsEnumerable;
35252
- var __objRest$i = (source, exclude) => {
35271
+ var __getOwnPropSymbols$t = Object.getOwnPropertySymbols;
35272
+ var __hasOwnProp$t = Object.prototype.hasOwnProperty;
35273
+ var __propIsEnum$t = Object.prototype.propertyIsEnumerable;
35274
+ var __objRest$j = (source, exclude) => {
35253
35275
  var target = {};
35254
35276
  for (var prop in source)
35255
- if (__hasOwnProp$s.call(source, prop) && exclude.indexOf(prop) < 0)
35277
+ if (__hasOwnProp$t.call(source, prop) && exclude.indexOf(prop) < 0)
35256
35278
  target[prop] = source[prop];
35257
- if (source != null && __getOwnPropSymbols$s)
35258
- for (var prop of __getOwnPropSymbols$s(source)) {
35259
- if (exclude.indexOf(prop) < 0 && __propIsEnum$s.call(source, prop))
35279
+ if (source != null && __getOwnPropSymbols$t)
35280
+ for (var prop of __getOwnPropSymbols$t(source)) {
35281
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$t.call(source, prop))
35260
35282
  target[prop] = source[prop];
35261
35283
  }
35262
35284
  return target;
35263
35285
  };
35264
35286
  const useGetCarrierConnectionForm = (_params) => {
35265
35287
  const { client } = useShipEngine();
35266
- const _a = _params || {}, { carrierName, enabled = true } = _a, params = __objRest$i(_a, ["carrierName", "enabled"]);
35288
+ const _a = _params || {}, { carrierName, enabled = true } = _a, params = __objRest$j(_a, ["carrierName", "enabled"]);
35267
35289
  return useQuery({
35268
35290
  enabled,
35269
35291
  onError,
@@ -35273,24 +35295,24 @@ const useGetCarrierConnectionForm = (_params) => {
35273
35295
  });
35274
35296
  };
35275
35297
 
35276
- var __getOwnPropSymbols$r = Object.getOwnPropertySymbols;
35277
- var __hasOwnProp$r = Object.prototype.hasOwnProperty;
35278
- var __propIsEnum$r = Object.prototype.propertyIsEnumerable;
35279
- var __objRest$h = (source, exclude) => {
35298
+ var __getOwnPropSymbols$s = Object.getOwnPropertySymbols;
35299
+ var __hasOwnProp$s = Object.prototype.hasOwnProperty;
35300
+ var __propIsEnum$s = Object.prototype.propertyIsEnumerable;
35301
+ var __objRest$i = (source, exclude) => {
35280
35302
  var target = {};
35281
35303
  for (var prop in source)
35282
- if (__hasOwnProp$r.call(source, prop) && exclude.indexOf(prop) < 0)
35304
+ if (__hasOwnProp$s.call(source, prop) && exclude.indexOf(prop) < 0)
35283
35305
  target[prop] = source[prop];
35284
- if (source != null && __getOwnPropSymbols$r)
35285
- for (var prop of __getOwnPropSymbols$r(source)) {
35286
- if (exclude.indexOf(prop) < 0 && __propIsEnum$r.call(source, prop))
35306
+ if (source != null && __getOwnPropSymbols$s)
35307
+ for (var prop of __getOwnPropSymbols$s(source)) {
35308
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$s.call(source, prop))
35287
35309
  target[prop] = source[prop];
35288
35310
  }
35289
35311
  return target;
35290
35312
  };
35291
35313
  const useListCarrierConnections = (_params) => {
35292
35314
  const { client } = useShipEngine();
35293
- const _a = _params || {}, { enabled = true } = _a, params = __objRest$h(_a, ["enabled"]);
35315
+ const _a = _params || {}, { enabled = true } = _a, params = __objRest$i(_a, ["enabled"]);
35294
35316
  return useQuery({
35295
35317
  enabled,
35296
35318
  onError,
@@ -35300,7 +35322,7 @@ const useListCarrierConnections = (_params) => {
35300
35322
  });
35301
35323
  };
35302
35324
 
35303
- var __async$C = (__this, __arguments, generator) => {
35325
+ var __async$D = (__this, __arguments, generator) => {
35304
35326
  return new Promise((resolve, reject) => {
35305
35327
  var fulfilled = (value) => {
35306
35328
  try {
@@ -35323,7 +35345,7 @@ var __async$C = (__this, __arguments, generator) => {
35323
35345
  const useConnectCarrierAccount = () => {
35324
35346
  const { client } = useShipEngine();
35325
35347
  return useMutation({
35326
- mutationFn: (_0) => __async$C(void 0, [_0], function* ({ carrierName, formData }) {
35348
+ mutationFn: (_0) => __async$D(void 0, [_0], function* ({ carrierName, formData }) {
35327
35349
  const result = yield client.connections.connectCarrier(carrierName, formData);
35328
35350
  return result.data;
35329
35351
  }),
@@ -35343,33 +35365,33 @@ const useCarrierConnectionsServicesList = (carrierCode) => {
35343
35365
  });
35344
35366
  };
35345
35367
 
35346
- var __defProp$j = Object.defineProperty;
35347
- var __defProps$g = Object.defineProperties;
35348
- var __getOwnPropDescs$g = Object.getOwnPropertyDescriptors;
35349
- var __getOwnPropSymbols$q = Object.getOwnPropertySymbols;
35350
- var __hasOwnProp$q = Object.prototype.hasOwnProperty;
35351
- var __propIsEnum$q = Object.prototype.propertyIsEnumerable;
35352
- var __defNormalProp$j = (obj, key, value) => key in obj ? __defProp$j(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35353
- var __spreadValues$j = (a, b) => {
35368
+ var __defProp$k = Object.defineProperty;
35369
+ var __defProps$h = Object.defineProperties;
35370
+ var __getOwnPropDescs$h = Object.getOwnPropertyDescriptors;
35371
+ var __getOwnPropSymbols$r = Object.getOwnPropertySymbols;
35372
+ var __hasOwnProp$r = Object.prototype.hasOwnProperty;
35373
+ var __propIsEnum$r = Object.prototype.propertyIsEnumerable;
35374
+ var __defNormalProp$k = (obj, key, value) => key in obj ? __defProp$k(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35375
+ var __spreadValues$k = (a, b) => {
35354
35376
  for (var prop in b || (b = {}))
35355
- if (__hasOwnProp$q.call(b, prop))
35356
- __defNormalProp$j(a, prop, b[prop]);
35357
- if (__getOwnPropSymbols$q)
35358
- for (var prop of __getOwnPropSymbols$q(b)) {
35359
- if (__propIsEnum$q.call(b, prop))
35360
- __defNormalProp$j(a, prop, b[prop]);
35377
+ if (__hasOwnProp$r.call(b, prop))
35378
+ __defNormalProp$k(a, prop, b[prop]);
35379
+ if (__getOwnPropSymbols$r)
35380
+ for (var prop of __getOwnPropSymbols$r(b)) {
35381
+ if (__propIsEnum$r.call(b, prop))
35382
+ __defNormalProp$k(a, prop, b[prop]);
35361
35383
  }
35362
35384
  return a;
35363
35385
  };
35364
- var __spreadProps$g = (a, b) => __defProps$g(a, __getOwnPropDescs$g(b));
35365
- var __objRest$g = (source, exclude) => {
35386
+ var __spreadProps$h = (a, b) => __defProps$h(a, __getOwnPropDescs$h(b));
35387
+ var __objRest$h = (source, exclude) => {
35366
35388
  var target = {};
35367
35389
  for (var prop in source)
35368
- if (__hasOwnProp$q.call(source, prop) && exclude.indexOf(prop) < 0)
35390
+ if (__hasOwnProp$r.call(source, prop) && exclude.indexOf(prop) < 0)
35369
35391
  target[prop] = source[prop];
35370
- if (source != null && __getOwnPropSymbols$q)
35371
- for (var prop of __getOwnPropSymbols$q(source)) {
35372
- if (exclude.indexOf(prop) < 0 && __propIsEnum$q.call(source, prop))
35392
+ if (source != null && __getOwnPropSymbols$r)
35393
+ for (var prop of __getOwnPropSymbols$r(source)) {
35394
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$r.call(source, prop))
35373
35395
  target[prop] = source[prop];
35374
35396
  }
35375
35397
  return target;
@@ -35377,12 +35399,12 @@ var __objRest$g = (source, exclude) => {
35377
35399
  const useGetConnectionsCarrierSettings = (_a) => {
35378
35400
  var _b = _a, {
35379
35401
  queryFnParams
35380
- } = _b, params = __objRest$g(_b, [
35402
+ } = _b, params = __objRest$h(_b, [
35381
35403
  "queryFnParams"
35382
35404
  ]);
35383
35405
  const { client } = useShipEngine();
35384
35406
  const { carrierName, carrierId } = queryFnParams;
35385
- return useQuery(__spreadProps$g(__spreadValues$j({}, params), {
35407
+ return useQuery(__spreadProps$h(__spreadValues$k({}, params), {
35386
35408
  onError,
35387
35409
  queryFn: () => client.connections.getCarrierSettings(carrierName, carrierId),
35388
35410
  queryKey: ["useGetConnectionsCarrierSettings", carrierName, carrierId],
@@ -35390,26 +35412,26 @@ const useGetConnectionsCarrierSettings = (_a) => {
35390
35412
  }));
35391
35413
  };
35392
35414
 
35393
- var __defProp$i = Object.defineProperty;
35394
- var __defProps$f = Object.defineProperties;
35395
- var __getOwnPropDescs$f = Object.getOwnPropertyDescriptors;
35396
- var __getOwnPropSymbols$p = Object.getOwnPropertySymbols;
35397
- var __hasOwnProp$p = Object.prototype.hasOwnProperty;
35398
- var __propIsEnum$p = Object.prototype.propertyIsEnumerable;
35399
- var __defNormalProp$i = (obj, key, value) => key in obj ? __defProp$i(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35400
- var __spreadValues$i = (a, b) => {
35415
+ var __defProp$j = Object.defineProperty;
35416
+ var __defProps$g = Object.defineProperties;
35417
+ var __getOwnPropDescs$g = Object.getOwnPropertyDescriptors;
35418
+ var __getOwnPropSymbols$q = Object.getOwnPropertySymbols;
35419
+ var __hasOwnProp$q = Object.prototype.hasOwnProperty;
35420
+ var __propIsEnum$q = Object.prototype.propertyIsEnumerable;
35421
+ var __defNormalProp$j = (obj, key, value) => key in obj ? __defProp$j(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35422
+ var __spreadValues$j = (a, b) => {
35401
35423
  for (var prop in b || (b = {}))
35402
- if (__hasOwnProp$p.call(b, prop))
35403
- __defNormalProp$i(a, prop, b[prop]);
35404
- if (__getOwnPropSymbols$p)
35405
- for (var prop of __getOwnPropSymbols$p(b)) {
35406
- if (__propIsEnum$p.call(b, prop))
35407
- __defNormalProp$i(a, prop, b[prop]);
35424
+ if (__hasOwnProp$q.call(b, prop))
35425
+ __defNormalProp$j(a, prop, b[prop]);
35426
+ if (__getOwnPropSymbols$q)
35427
+ for (var prop of __getOwnPropSymbols$q(b)) {
35428
+ if (__propIsEnum$q.call(b, prop))
35429
+ __defNormalProp$j(a, prop, b[prop]);
35408
35430
  }
35409
35431
  return a;
35410
35432
  };
35411
- var __spreadProps$f = (a, b) => __defProps$f(a, __getOwnPropDescs$f(b));
35412
- var __async$B = (__this, __arguments, generator) => {
35433
+ var __spreadProps$g = (a, b) => __defProps$g(a, __getOwnPropDescs$g(b));
35434
+ var __async$C = (__this, __arguments, generator) => {
35413
35435
  return new Promise((resolve, reject) => {
35414
35436
  var fulfilled = (value) => {
35415
35437
  try {
@@ -35431,8 +35453,8 @@ var __async$B = (__this, __arguments, generator) => {
35431
35453
  };
35432
35454
  const useUpdateConnectionsCarrierSettings = (params) => {
35433
35455
  const { client } = useShipEngine();
35434
- return useMutation(__spreadProps$f(__spreadValues$i({}, params), {
35435
- mutationFn: (_0) => __async$B(void 0, [_0], function* ({
35456
+ return useMutation(__spreadProps$g(__spreadValues$j({}, params), {
35457
+ mutationFn: (_0) => __async$C(void 0, [_0], function* ({
35436
35458
  carrierName,
35437
35459
  carrierId,
35438
35460
  formData
@@ -35459,7 +35481,7 @@ const useListCustomPackageTypes = () => {
35459
35481
  });
35460
35482
  };
35461
35483
 
35462
- var __async$A = (__this, __arguments, generator) => {
35484
+ var __async$B = (__this, __arguments, generator) => {
35463
35485
  return new Promise((resolve, reject) => {
35464
35486
  var fulfilled = (value) => {
35465
35487
  try {
@@ -35482,7 +35504,7 @@ var __async$A = (__this, __arguments, generator) => {
35482
35504
  const useCreateFundingSource = () => {
35483
35505
  const { client } = useShipEngine();
35484
35506
  return useMutation({
35485
- mutationFn: (fundingSource) => __async$A(void 0, null, function* () {
35507
+ mutationFn: (fundingSource) => __async$B(void 0, null, function* () {
35486
35508
  const result = yield client.fundingSources.create(fundingSource);
35487
35509
  return result.data;
35488
35510
  }),
@@ -35491,7 +35513,7 @@ const useCreateFundingSource = () => {
35491
35513
  });
35492
35514
  };
35493
35515
 
35494
- var __async$z = (__this, __arguments, generator) => {
35516
+ var __async$A = (__this, __arguments, generator) => {
35495
35517
  return new Promise((resolve, reject) => {
35496
35518
  var fulfilled = (value) => {
35497
35519
  try {
@@ -35514,7 +35536,7 @@ var __async$z = (__this, __arguments, generator) => {
35514
35536
  const useFundingSourcesAddFunds = () => {
35515
35537
  const { client } = useShipEngine();
35516
35538
  return useMutation({
35517
- mutationFn: (_0) => __async$z(void 0, [_0], function* ({ funds, fundingSourceId }) {
35539
+ mutationFn: (_0) => __async$A(void 0, [_0], function* ({ funds, fundingSourceId }) {
35518
35540
  const result = yield client.fundingSources.addFunds(funds, fundingSourceId);
35519
35541
  return result.data;
35520
35542
  }),
@@ -35543,7 +35565,7 @@ const useListFundingSources = () => {
35543
35565
  });
35544
35566
  };
35545
35567
 
35546
- var __async$y = (__this, __arguments, generator) => {
35568
+ var __async$z = (__this, __arguments, generator) => {
35547
35569
  return new Promise((resolve, reject) => {
35548
35570
  var fulfilled = (value) => {
35549
35571
  try {
@@ -35566,7 +35588,7 @@ var __async$y = (__this, __arguments, generator) => {
35566
35588
  const useRegisterCarrier = () => {
35567
35589
  const { client } = useShipEngine();
35568
35590
  return useMutation({
35569
- mutationFn: (carrier) => __async$y(void 0, null, function* () {
35591
+ mutationFn: (carrier) => __async$z(void 0, null, function* () {
35570
35592
  const result = yield client.fundingSources.registerCarrier(carrier);
35571
35593
  return result.data;
35572
35594
  }),
@@ -35575,7 +35597,7 @@ const useRegisterCarrier = () => {
35575
35597
  });
35576
35598
  };
35577
35599
 
35578
- var __async$x = (__this, __arguments, generator) => {
35600
+ var __async$y = (__this, __arguments, generator) => {
35579
35601
  return new Promise((resolve, reject) => {
35580
35602
  var fulfilled = (value) => {
35581
35603
  try {
@@ -35598,7 +35620,7 @@ var __async$x = (__this, __arguments, generator) => {
35598
35620
  const useUpdateFundingSource = () => {
35599
35621
  const { client } = useShipEngine();
35600
35622
  return useMutation({
35601
- mutationFn: (_0) => __async$x(void 0, [_0], function* ({
35623
+ mutationFn: (_0) => __async$y(void 0, [_0], function* ({
35602
35624
  billingInfo,
35603
35625
  creditCardInfo,
35604
35626
  fundingSourceId
@@ -35637,29 +35659,29 @@ const useGetFundingSourceTransactions = (fundingSourceId, params) => {
35637
35659
  });
35638
35660
  };
35639
35661
 
35640
- var __defProp$h = Object.defineProperty;
35641
- var __defProps$e = Object.defineProperties;
35642
- var __getOwnPropDescs$e = Object.getOwnPropertyDescriptors;
35643
- var __getOwnPropSymbols$o = Object.getOwnPropertySymbols;
35644
- var __hasOwnProp$o = Object.prototype.hasOwnProperty;
35645
- var __propIsEnum$o = Object.prototype.propertyIsEnumerable;
35646
- var __defNormalProp$h = (obj, key, value) => key in obj ? __defProp$h(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35647
- var __spreadValues$h = (a, b) => {
35662
+ var __defProp$i = Object.defineProperty;
35663
+ var __defProps$f = Object.defineProperties;
35664
+ var __getOwnPropDescs$f = Object.getOwnPropertyDescriptors;
35665
+ var __getOwnPropSymbols$p = Object.getOwnPropertySymbols;
35666
+ var __hasOwnProp$p = Object.prototype.hasOwnProperty;
35667
+ var __propIsEnum$p = Object.prototype.propertyIsEnumerable;
35668
+ var __defNormalProp$i = (obj, key, value) => key in obj ? __defProp$i(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35669
+ var __spreadValues$i = (a, b) => {
35648
35670
  for (var prop in b || (b = {}))
35649
- if (__hasOwnProp$o.call(b, prop))
35650
- __defNormalProp$h(a, prop, b[prop]);
35651
- if (__getOwnPropSymbols$o)
35652
- for (var prop of __getOwnPropSymbols$o(b)) {
35653
- if (__propIsEnum$o.call(b, prop))
35654
- __defNormalProp$h(a, prop, b[prop]);
35671
+ if (__hasOwnProp$p.call(b, prop))
35672
+ __defNormalProp$i(a, prop, b[prop]);
35673
+ if (__getOwnPropSymbols$p)
35674
+ for (var prop of __getOwnPropSymbols$p(b)) {
35675
+ if (__propIsEnum$p.call(b, prop))
35676
+ __defNormalProp$i(a, prop, b[prop]);
35655
35677
  }
35656
35678
  return a;
35657
35679
  };
35658
- var __spreadProps$e = (a, b) => __defProps$e(a, __getOwnPropDescs$e(b));
35680
+ var __spreadProps$f = (a, b) => __defProps$f(a, __getOwnPropDescs$f(b));
35659
35681
  const useGetInsuranceFundingSourceAcceptedTerms = (params) => {
35660
35682
  const { client } = useShipEngine();
35661
- const queryParams = __spreadValues$h({}, params);
35662
- return useQuery(__spreadProps$e(__spreadValues$h({}, queryParams), {
35683
+ const queryParams = __spreadValues$i({}, params);
35684
+ return useQuery(__spreadProps$f(__spreadValues$i({}, queryParams), {
35663
35685
  onError,
35664
35686
  queryFn: () => client.fundingSources.insuranceAcceptedTerms(),
35665
35687
  queryKey: ["useGetInsuranceFundingSourceAcceptedTerms"],
@@ -35682,22 +35704,22 @@ const useGetInsuranceAccount = (insuranceProvider) => {
35682
35704
  });
35683
35705
  };
35684
35706
 
35685
- var __getOwnPropSymbols$n = Object.getOwnPropertySymbols;
35686
- var __hasOwnProp$n = Object.prototype.hasOwnProperty;
35687
- var __propIsEnum$n = Object.prototype.propertyIsEnumerable;
35688
- var __objRest$f = (source, exclude) => {
35707
+ var __getOwnPropSymbols$o = Object.getOwnPropertySymbols;
35708
+ var __hasOwnProp$o = Object.prototype.hasOwnProperty;
35709
+ var __propIsEnum$o = Object.prototype.propertyIsEnumerable;
35710
+ var __objRest$g = (source, exclude) => {
35689
35711
  var target = {};
35690
35712
  for (var prop in source)
35691
- if (__hasOwnProp$n.call(source, prop) && exclude.indexOf(prop) < 0)
35713
+ if (__hasOwnProp$o.call(source, prop) && exclude.indexOf(prop) < 0)
35692
35714
  target[prop] = source[prop];
35693
- if (source != null && __getOwnPropSymbols$n)
35694
- for (var prop of __getOwnPropSymbols$n(source)) {
35695
- if (exclude.indexOf(prop) < 0 && __propIsEnum$n.call(source, prop))
35715
+ if (source != null && __getOwnPropSymbols$o)
35716
+ for (var prop of __getOwnPropSymbols$o(source)) {
35717
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$o.call(source, prop))
35696
35718
  target[prop] = source[prop];
35697
35719
  }
35698
35720
  return target;
35699
35721
  };
35700
- var __async$w = (__this, __arguments, generator) => {
35722
+ var __async$x = (__this, __arguments, generator) => {
35701
35723
  return new Promise((resolve, reject) => {
35702
35724
  var fulfilled = (value) => {
35703
35725
  try {
@@ -35720,8 +35742,8 @@ var __async$w = (__this, __arguments, generator) => {
35720
35742
  const useAddInsuranceFunds = () => {
35721
35743
  const { client } = useShipEngine();
35722
35744
  return useMutation({
35723
- mutationFn: (_a) => __async$w(void 0, null, function* () {
35724
- var _b = _a, { insuranceProvider } = _b, rest = __objRest$f(_b, ["insuranceProvider"]);
35745
+ mutationFn: (_a) => __async$x(void 0, null, function* () {
35746
+ var _b = _a, { insuranceProvider } = _b, rest = __objRest$g(_b, ["insuranceProvider"]);
35725
35747
  const result = yield client.insurance.addFunds(insuranceProvider, rest);
35726
35748
  return result.data;
35727
35749
  }),
@@ -35730,22 +35752,22 @@ const useAddInsuranceFunds = () => {
35730
35752
  });
35731
35753
  };
35732
35754
 
35733
- var __getOwnPropSymbols$m = Object.getOwnPropertySymbols;
35734
- var __hasOwnProp$m = Object.prototype.hasOwnProperty;
35735
- var __propIsEnum$m = Object.prototype.propertyIsEnumerable;
35736
- var __objRest$e = (source, exclude) => {
35755
+ var __getOwnPropSymbols$n = Object.getOwnPropertySymbols;
35756
+ var __hasOwnProp$n = Object.prototype.hasOwnProperty;
35757
+ var __propIsEnum$n = Object.prototype.propertyIsEnumerable;
35758
+ var __objRest$f = (source, exclude) => {
35737
35759
  var target = {};
35738
35760
  for (var prop in source)
35739
- if (__hasOwnProp$m.call(source, prop) && exclude.indexOf(prop) < 0)
35761
+ if (__hasOwnProp$n.call(source, prop) && exclude.indexOf(prop) < 0)
35740
35762
  target[prop] = source[prop];
35741
- if (source != null && __getOwnPropSymbols$m)
35742
- for (var prop of __getOwnPropSymbols$m(source)) {
35743
- if (exclude.indexOf(prop) < 0 && __propIsEnum$m.call(source, prop))
35763
+ if (source != null && __getOwnPropSymbols$n)
35764
+ for (var prop of __getOwnPropSymbols$n(source)) {
35765
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$n.call(source, prop))
35744
35766
  target[prop] = source[prop];
35745
35767
  }
35746
35768
  return target;
35747
35769
  };
35748
- var __async$v = (__this, __arguments, generator) => {
35770
+ var __async$w = (__this, __arguments, generator) => {
35749
35771
  return new Promise((resolve, reject) => {
35750
35772
  var fulfilled = (value) => {
35751
35773
  try {
@@ -35768,8 +35790,8 @@ var __async$v = (__this, __arguments, generator) => {
35768
35790
  const useCreateLabel = () => {
35769
35791
  const { client } = useShipEngine();
35770
35792
  return useMutation({
35771
- mutationFn: (_a) => __async$v(void 0, null, function* () {
35772
- var _b = _a, { rateId } = _b, options = __objRest$e(_b, ["rateId"]);
35793
+ mutationFn: (_a) => __async$w(void 0, null, function* () {
35794
+ var _b = _a, { rateId } = _b, options = __objRest$f(_b, ["rateId"]);
35773
35795
  const result = yield client.labels.createByRateId(rateId, options);
35774
35796
  return result.data;
35775
35797
  }),
@@ -35793,41 +35815,41 @@ const useGetLabel = (labelId) => {
35793
35815
  });
35794
35816
  };
35795
35817
 
35796
- var __defProp$g = Object.defineProperty;
35797
- var __defProps$d = Object.defineProperties;
35798
- var __getOwnPropDescs$d = Object.getOwnPropertyDescriptors;
35799
- var __getOwnPropSymbols$l = Object.getOwnPropertySymbols;
35800
- var __hasOwnProp$l = Object.prototype.hasOwnProperty;
35801
- var __propIsEnum$l = Object.prototype.propertyIsEnumerable;
35802
- var __defNormalProp$g = (obj, key, value) => key in obj ? __defProp$g(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35803
- var __spreadValues$g = (a, b) => {
35818
+ var __defProp$h = Object.defineProperty;
35819
+ var __defProps$e = Object.defineProperties;
35820
+ var __getOwnPropDescs$e = Object.getOwnPropertyDescriptors;
35821
+ var __getOwnPropSymbols$m = Object.getOwnPropertySymbols;
35822
+ var __hasOwnProp$m = Object.prototype.hasOwnProperty;
35823
+ var __propIsEnum$m = Object.prototype.propertyIsEnumerable;
35824
+ var __defNormalProp$h = (obj, key, value) => key in obj ? __defProp$h(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35825
+ var __spreadValues$h = (a, b) => {
35804
35826
  for (var prop in b || (b = {}))
35805
- if (__hasOwnProp$l.call(b, prop))
35806
- __defNormalProp$g(a, prop, b[prop]);
35807
- if (__getOwnPropSymbols$l)
35808
- for (var prop of __getOwnPropSymbols$l(b)) {
35809
- if (__propIsEnum$l.call(b, prop))
35810
- __defNormalProp$g(a, prop, b[prop]);
35827
+ if (__hasOwnProp$m.call(b, prop))
35828
+ __defNormalProp$h(a, prop, b[prop]);
35829
+ if (__getOwnPropSymbols$m)
35830
+ for (var prop of __getOwnPropSymbols$m(b)) {
35831
+ if (__propIsEnum$m.call(b, prop))
35832
+ __defNormalProp$h(a, prop, b[prop]);
35811
35833
  }
35812
35834
  return a;
35813
35835
  };
35814
- var __spreadProps$d = (a, b) => __defProps$d(a, __getOwnPropDescs$d(b));
35815
- var __objRest$d = (source, exclude) => {
35836
+ var __spreadProps$e = (a, b) => __defProps$e(a, __getOwnPropDescs$e(b));
35837
+ var __objRest$e = (source, exclude) => {
35816
35838
  var target = {};
35817
35839
  for (var prop in source)
35818
- if (__hasOwnProp$l.call(source, prop) && exclude.indexOf(prop) < 0)
35840
+ if (__hasOwnProp$m.call(source, prop) && exclude.indexOf(prop) < 0)
35819
35841
  target[prop] = source[prop];
35820
- if (source != null && __getOwnPropSymbols$l)
35821
- for (var prop of __getOwnPropSymbols$l(source)) {
35822
- if (exclude.indexOf(prop) < 0 && __propIsEnum$l.call(source, prop))
35842
+ if (source != null && __getOwnPropSymbols$m)
35843
+ for (var prop of __getOwnPropSymbols$m(source)) {
35844
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$m.call(source, prop))
35823
35845
  target[prop] = source[prop];
35824
35846
  }
35825
35847
  return target;
35826
35848
  };
35827
35849
  const useListLabels = (params) => {
35828
35850
  const { client } = useShipEngine();
35829
- const _a = __spreadValues$g({}, params), { queryFnParams } = _a, rest = __objRest$d(_a, ["queryFnParams"]);
35830
- return useQuery(__spreadProps$d(__spreadValues$g({}, rest), {
35851
+ const _a = __spreadValues$h({}, params), { queryFnParams } = _a, rest = __objRest$e(_a, ["queryFnParams"]);
35852
+ return useQuery(__spreadProps$e(__spreadValues$h({}, rest), {
35831
35853
  onError,
35832
35854
  queryFn: () => client.labels.list(queryFnParams),
35833
35855
  queryKey: ["useListLabels", params],
@@ -35835,7 +35857,7 @@ const useListLabels = (params) => {
35835
35857
  }));
35836
35858
  };
35837
35859
 
35838
- var __async$u = (__this, __arguments, generator) => {
35860
+ var __async$v = (__this, __arguments, generator) => {
35839
35861
  return new Promise((resolve, reject) => {
35840
35862
  var fulfilled = (value) => {
35841
35863
  try {
@@ -35858,7 +35880,7 @@ var __async$u = (__this, __arguments, generator) => {
35858
35880
  const useVoidLabel = () => {
35859
35881
  const { client } = useShipEngine();
35860
35882
  return useMutation({
35861
- mutationFn: (labelId) => __async$u(void 0, null, function* () {
35883
+ mutationFn: (labelId) => __async$v(void 0, null, function* () {
35862
35884
  const result = yield client.labels.void(labelId);
35863
35885
  return result.data;
35864
35886
  }),
@@ -35867,28 +35889,28 @@ const useVoidLabel = () => {
35867
35889
  });
35868
35890
  };
35869
35891
 
35870
- var __defProp$f = Object.defineProperty;
35871
- var __defProps$c = Object.defineProperties;
35872
- var __getOwnPropDescs$c = Object.getOwnPropertyDescriptors;
35873
- var __getOwnPropSymbols$k = Object.getOwnPropertySymbols;
35874
- var __hasOwnProp$k = Object.prototype.hasOwnProperty;
35875
- var __propIsEnum$k = Object.prototype.propertyIsEnumerable;
35876
- var __defNormalProp$f = (obj, key, value) => key in obj ? __defProp$f(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35877
- var __spreadValues$f = (a, b) => {
35892
+ var __defProp$g = Object.defineProperty;
35893
+ var __defProps$d = Object.defineProperties;
35894
+ var __getOwnPropDescs$d = Object.getOwnPropertyDescriptors;
35895
+ var __getOwnPropSymbols$l = Object.getOwnPropertySymbols;
35896
+ var __hasOwnProp$l = Object.prototype.hasOwnProperty;
35897
+ var __propIsEnum$l = Object.prototype.propertyIsEnumerable;
35898
+ var __defNormalProp$g = (obj, key, value) => key in obj ? __defProp$g(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35899
+ var __spreadValues$g = (a, b) => {
35878
35900
  for (var prop in b || (b = {}))
35879
- if (__hasOwnProp$k.call(b, prop))
35880
- __defNormalProp$f(a, prop, b[prop]);
35881
- if (__getOwnPropSymbols$k)
35882
- for (var prop of __getOwnPropSymbols$k(b)) {
35883
- if (__propIsEnum$k.call(b, prop))
35884
- __defNormalProp$f(a, prop, b[prop]);
35901
+ if (__hasOwnProp$l.call(b, prop))
35902
+ __defNormalProp$g(a, prop, b[prop]);
35903
+ if (__getOwnPropSymbols$l)
35904
+ for (var prop of __getOwnPropSymbols$l(b)) {
35905
+ if (__propIsEnum$l.call(b, prop))
35906
+ __defNormalProp$g(a, prop, b[prop]);
35885
35907
  }
35886
35908
  return a;
35887
35909
  };
35888
- var __spreadProps$c = (a, b) => __defProps$c(a, __getOwnPropDescs$c(b));
35910
+ var __spreadProps$d = (a, b) => __defProps$d(a, __getOwnPropDescs$d(b));
35889
35911
  const useListOrderSources = (params) => {
35890
35912
  const { client } = useShipEngine();
35891
- return useQuery(__spreadProps$c(__spreadValues$f({}, params), {
35913
+ return useQuery(__spreadProps$d(__spreadValues$g({}, params), {
35892
35914
  onError,
35893
35915
  queryFn: () => client.orderSources.list(),
35894
35916
  queryKey: ["useListOrderSources"],
@@ -35896,7 +35918,7 @@ const useListOrderSources = (params) => {
35896
35918
  }));
35897
35919
  };
35898
35920
 
35899
- var __async$t = (__this, __arguments, generator) => {
35921
+ var __async$u = (__this, __arguments, generator) => {
35900
35922
  return new Promise((resolve, reject) => {
35901
35923
  var fulfilled = (value) => {
35902
35924
  try {
@@ -35919,7 +35941,7 @@ var __async$t = (__this, __arguments, generator) => {
35919
35941
  const useRefreshOrderSourceAsync = () => {
35920
35942
  const { client } = useShipEngine();
35921
35943
  return useMutation({
35922
- mutationFn: (orderSourceId) => __async$t(void 0, null, function* () {
35944
+ mutationFn: (orderSourceId) => __async$u(void 0, null, function* () {
35923
35945
  const result = yield client.orderSources.refresh(orderSourceId);
35924
35946
  return result.data;
35925
35947
  }),
@@ -35930,9 +35952,9 @@ const useRefreshOrderSource = () => {
35930
35952
  const { client } = useShipEngine();
35931
35953
  const { mutateAsync: refreshOrderSourceAsync } = useRefreshOrderSourceAsync();
35932
35954
  return useMutation({
35933
- mutationFn: (orderSourceId) => __async$t(void 0, null, function* () {
35955
+ mutationFn: (orderSourceId) => __async$u(void 0, null, function* () {
35934
35956
  yield refreshOrderSourceAsync(orderSourceId);
35935
- const waitResult = yield retryUntil(() => __async$t(void 0, null, function* () {
35957
+ const waitResult = yield retryUntil(() => __async$u(void 0, null, function* () {
35936
35958
  const { data: checkResult } = yield client.orderSources.get(orderSourceId);
35937
35959
  if (["preparing_update", "updating"].includes(checkResult.refreshInfo.status)) {
35938
35960
  throw new CodedError("Order source is still refreshing");
@@ -35946,7 +35968,7 @@ const useRefreshOrderSource = () => {
35946
35968
  });
35947
35969
  };
35948
35970
 
35949
- var __async$s = (__this, __arguments, generator) => {
35971
+ var __async$t = (__this, __arguments, generator) => {
35950
35972
  return new Promise((resolve, reject) => {
35951
35973
  var fulfilled = (value) => {
35952
35974
  try {
@@ -35969,7 +35991,7 @@ var __async$s = (__this, __arguments, generator) => {
35969
35991
  const useDeactivateOrderSource = () => {
35970
35992
  const { client } = useShipEngine();
35971
35993
  return useMutation({
35972
- mutationFn: (orderSourceId) => __async$s(void 0, null, function* () {
35994
+ mutationFn: (orderSourceId) => __async$t(void 0, null, function* () {
35973
35995
  const result = yield client.orderSources.deactivate(orderSourceId);
35974
35996
  return result.data;
35975
35997
  }),
@@ -35988,6 +36010,38 @@ const useListOrderSourcesConnections = () => {
35988
36010
  });
35989
36011
  };
35990
36012
 
36013
+ var __async$s = (__this, __arguments, generator) => {
36014
+ return new Promise((resolve, reject) => {
36015
+ var fulfilled = (value) => {
36016
+ try {
36017
+ step(generator.next(value));
36018
+ } catch (e) {
36019
+ reject(e);
36020
+ }
36021
+ };
36022
+ var rejected = (value) => {
36023
+ try {
36024
+ step(generator.throw(value));
36025
+ } catch (e) {
36026
+ reject(e);
36027
+ }
36028
+ };
36029
+ var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
36030
+ step((generator = generator.apply(__this, __arguments)).next());
36031
+ });
36032
+ };
36033
+ const useUpdateOrderSource = () => {
36034
+ const { client } = useShipEngine();
36035
+ return useMutation({
36036
+ mutationFn: (params) => __async$s(void 0, null, function* () {
36037
+ const result = yield client.orderSources.update(params);
36038
+ return result.data;
36039
+ }),
36040
+ mutationKey: ["useUpdateOrderSource"],
36041
+ onError
36042
+ });
36043
+ };
36044
+
35991
36045
  var __async$r = (__this, __arguments, generator) => {
35992
36046
  return new Promise((resolve, reject) => {
35993
36047
  var fulfilled = (value) => {
@@ -36275,17 +36329,17 @@ const useListSalesOrders = (params = {}) => {
36275
36329
  });
36276
36330
  };
36277
36331
 
36278
- var __getOwnPropSymbols$j = Object.getOwnPropertySymbols;
36279
- var __hasOwnProp$j = Object.prototype.hasOwnProperty;
36280
- var __propIsEnum$j = Object.prototype.propertyIsEnumerable;
36281
- var __objRest$c = (source, exclude) => {
36332
+ var __getOwnPropSymbols$k = Object.getOwnPropertySymbols;
36333
+ var __hasOwnProp$k = Object.prototype.hasOwnProperty;
36334
+ var __propIsEnum$k = Object.prototype.propertyIsEnumerable;
36335
+ var __objRest$d = (source, exclude) => {
36282
36336
  var target = {};
36283
36337
  for (var prop in source)
36284
- if (__hasOwnProp$j.call(source, prop) && exclude.indexOf(prop) < 0)
36338
+ if (__hasOwnProp$k.call(source, prop) && exclude.indexOf(prop) < 0)
36285
36339
  target[prop] = source[prop];
36286
- if (source != null && __getOwnPropSymbols$j)
36287
- for (var prop of __getOwnPropSymbols$j(source)) {
36288
- if (exclude.indexOf(prop) < 0 && __propIsEnum$j.call(source, prop))
36340
+ if (source != null && __getOwnPropSymbols$k)
36341
+ for (var prop of __getOwnPropSymbols$k(source)) {
36342
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$k.call(source, prop))
36289
36343
  target[prop] = source[prop];
36290
36344
  }
36291
36345
  return target;
@@ -36314,7 +36368,7 @@ const useNotifySalesOrderShipped = () => {
36314
36368
  const { client } = useShipEngine();
36315
36369
  return useMutation({
36316
36370
  mutationFn: (_a) => __async$k(void 0, null, function* () {
36317
- var _b = _a, { salesOrderId } = _b, tracking = __objRest$c(_b, ["salesOrderId"]);
36371
+ var _b = _a, { salesOrderId } = _b, tracking = __objRest$d(_b, ["salesOrderId"]);
36318
36372
  const result = yield client.salesOrders.notifyShipped(salesOrderId, tracking);
36319
36373
  return result.data;
36320
36374
  }),
@@ -36323,17 +36377,17 @@ const useNotifySalesOrderShipped = () => {
36323
36377
  });
36324
36378
  };
36325
36379
 
36326
- var __getOwnPropSymbols$i = Object.getOwnPropertySymbols;
36327
- var __hasOwnProp$i = Object.prototype.hasOwnProperty;
36328
- var __propIsEnum$i = Object.prototype.propertyIsEnumerable;
36329
- var __objRest$b = (source, exclude) => {
36380
+ var __getOwnPropSymbols$j = Object.getOwnPropertySymbols;
36381
+ var __hasOwnProp$j = Object.prototype.hasOwnProperty;
36382
+ var __propIsEnum$j = Object.prototype.propertyIsEnumerable;
36383
+ var __objRest$c = (source, exclude) => {
36330
36384
  var target = {};
36331
36385
  for (var prop in source)
36332
- if (__hasOwnProp$i.call(source, prop) && exclude.indexOf(prop) < 0)
36386
+ if (__hasOwnProp$j.call(source, prop) && exclude.indexOf(prop) < 0)
36333
36387
  target[prop] = source[prop];
36334
- if (source != null && __getOwnPropSymbols$i)
36335
- for (var prop of __getOwnPropSymbols$i(source)) {
36336
- if (exclude.indexOf(prop) < 0 && __propIsEnum$i.call(source, prop))
36388
+ if (source != null && __getOwnPropSymbols$j)
36389
+ for (var prop of __getOwnPropSymbols$j(source)) {
36390
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$j.call(source, prop))
36337
36391
  target[prop] = source[prop];
36338
36392
  }
36339
36393
  return target;
@@ -36362,7 +36416,7 @@ const useCreateSalesOrderShipment = () => {
36362
36416
  const { client } = useShipEngine();
36363
36417
  return useMutation({
36364
36418
  mutationFn: (_a) => __async$j(void 0, null, function* () {
36365
- var _b = _a, { salesOrderId } = _b, shipment = __objRest$b(_b, ["salesOrderId"]);
36419
+ var _b = _a, { salesOrderId } = _b, shipment = __objRest$c(_b, ["salesOrderId"]);
36366
36420
  const result = yield client.salesOrderShipments.create(salesOrderId, shipment);
36367
36421
  return result.data;
36368
36422
  }),
@@ -36397,17 +36451,17 @@ const useListSalesOrderShipments = (params) => {
36397
36451
  });
36398
36452
  };
36399
36453
 
36400
- var __getOwnPropSymbols$h = Object.getOwnPropertySymbols;
36401
- var __hasOwnProp$h = Object.prototype.hasOwnProperty;
36402
- var __propIsEnum$h = Object.prototype.propertyIsEnumerable;
36403
- var __objRest$a = (source, exclude) => {
36454
+ var __getOwnPropSymbols$i = Object.getOwnPropertySymbols;
36455
+ var __hasOwnProp$i = Object.prototype.hasOwnProperty;
36456
+ var __propIsEnum$i = Object.prototype.propertyIsEnumerable;
36457
+ var __objRest$b = (source, exclude) => {
36404
36458
  var target = {};
36405
36459
  for (var prop in source)
36406
- if (__hasOwnProp$h.call(source, prop) && exclude.indexOf(prop) < 0)
36460
+ if (__hasOwnProp$i.call(source, prop) && exclude.indexOf(prop) < 0)
36407
36461
  target[prop] = source[prop];
36408
- if (source != null && __getOwnPropSymbols$h)
36409
- for (var prop of __getOwnPropSymbols$h(source)) {
36410
- if (exclude.indexOf(prop) < 0 && __propIsEnum$h.call(source, prop))
36462
+ if (source != null && __getOwnPropSymbols$i)
36463
+ for (var prop of __getOwnPropSymbols$i(source)) {
36464
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$i.call(source, prop))
36411
36465
  target[prop] = source[prop];
36412
36466
  }
36413
36467
  return target;
@@ -36436,7 +36490,7 @@ const useUpdateSalesOrderShipment = () => {
36436
36490
  const { client } = useShipEngine();
36437
36491
  return useMutation({
36438
36492
  mutationFn: (_a) => __async$i(void 0, null, function* () {
36439
- var _b = _a, { shipmentId } = _b, shipment = __objRest$a(_b, ["shipmentId"]);
36493
+ var _b = _a, { shipmentId } = _b, shipment = __objRest$b(_b, ["shipmentId"]);
36440
36494
  const result = yield client.salesOrderShipments.update(shipmentId, shipment);
36441
36495
  return result.data;
36442
36496
  }),
@@ -36445,25 +36499,25 @@ const useUpdateSalesOrderShipment = () => {
36445
36499
  });
36446
36500
  };
36447
36501
 
36448
- var __defProp$e = Object.defineProperty;
36449
- var __defProps$b = Object.defineProperties;
36450
- var __getOwnPropDescs$b = Object.getOwnPropertyDescriptors;
36451
- var __getOwnPropSymbols$g = Object.getOwnPropertySymbols;
36452
- var __hasOwnProp$g = Object.prototype.hasOwnProperty;
36453
- var __propIsEnum$g = Object.prototype.propertyIsEnumerable;
36454
- var __defNormalProp$e = (obj, key, value) => key in obj ? __defProp$e(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
36455
- var __spreadValues$e = (a, b) => {
36502
+ var __defProp$f = Object.defineProperty;
36503
+ var __defProps$c = Object.defineProperties;
36504
+ var __getOwnPropDescs$c = Object.getOwnPropertyDescriptors;
36505
+ var __getOwnPropSymbols$h = Object.getOwnPropertySymbols;
36506
+ var __hasOwnProp$h = Object.prototype.hasOwnProperty;
36507
+ var __propIsEnum$h = Object.prototype.propertyIsEnumerable;
36508
+ var __defNormalProp$f = (obj, key, value) => key in obj ? __defProp$f(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
36509
+ var __spreadValues$f = (a, b) => {
36456
36510
  for (var prop in b || (b = {}))
36457
- if (__hasOwnProp$g.call(b, prop))
36458
- __defNormalProp$e(a, prop, b[prop]);
36459
- if (__getOwnPropSymbols$g)
36460
- for (var prop of __getOwnPropSymbols$g(b)) {
36461
- if (__propIsEnum$g.call(b, prop))
36462
- __defNormalProp$e(a, prop, b[prop]);
36511
+ if (__hasOwnProp$h.call(b, prop))
36512
+ __defNormalProp$f(a, prop, b[prop]);
36513
+ if (__getOwnPropSymbols$h)
36514
+ for (var prop of __getOwnPropSymbols$h(b)) {
36515
+ if (__propIsEnum$h.call(b, prop))
36516
+ __defNormalProp$f(a, prop, b[prop]);
36463
36517
  }
36464
36518
  return a;
36465
36519
  };
36466
- var __spreadProps$b = (a, b) => __defProps$b(a, __getOwnPropDescs$b(b));
36520
+ var __spreadProps$c = (a, b) => __defProps$c(a, __getOwnPropDescs$c(b));
36467
36521
  var __async$h = (__this, __arguments, generator) => {
36468
36522
  return new Promise((resolve, reject) => {
36469
36523
  var fulfilled = (value) => {
@@ -36505,7 +36559,7 @@ const useCreateShipment = () => {
36505
36559
  postalCode: "",
36506
36560
  stateProvince: ""
36507
36561
  };
36508
- return (yield client.shipments.create(__spreadProps$b(__spreadValues$e({}, shipment), {
36562
+ return (yield client.shipments.create(__spreadProps$c(__spreadValues$f({}, shipment), {
36509
36563
  shipTo
36510
36564
  }))).data;
36511
36565
  }),
@@ -36514,10 +36568,44 @@ const useCreateShipment = () => {
36514
36568
  });
36515
36569
  };
36516
36570
 
36517
- const useGetShipmentRates = (shipmentId, createdAtStart) => {
36571
+ var __defProp$e = Object.defineProperty;
36572
+ var __defProps$b = Object.defineProperties;
36573
+ var __getOwnPropDescs$b = Object.getOwnPropertyDescriptors;
36574
+ var __getOwnPropSymbols$g = Object.getOwnPropertySymbols;
36575
+ var __hasOwnProp$g = Object.prototype.hasOwnProperty;
36576
+ var __propIsEnum$g = Object.prototype.propertyIsEnumerable;
36577
+ var __defNormalProp$e = (obj, key, value) => key in obj ? __defProp$e(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
36578
+ var __spreadValues$e = (a, b) => {
36579
+ for (var prop in b || (b = {}))
36580
+ if (__hasOwnProp$g.call(b, prop))
36581
+ __defNormalProp$e(a, prop, b[prop]);
36582
+ if (__getOwnPropSymbols$g)
36583
+ for (var prop of __getOwnPropSymbols$g(b)) {
36584
+ if (__propIsEnum$g.call(b, prop))
36585
+ __defNormalProp$e(a, prop, b[prop]);
36586
+ }
36587
+ return a;
36588
+ };
36589
+ var __spreadProps$b = (a, b) => __defProps$b(a, __getOwnPropDescs$b(b));
36590
+ var __objRest$a = (source, exclude) => {
36591
+ var target = {};
36592
+ for (var prop in source)
36593
+ if (__hasOwnProp$g.call(source, prop) && exclude.indexOf(prop) < 0)
36594
+ target[prop] = source[prop];
36595
+ if (source != null && __getOwnPropSymbols$g)
36596
+ for (var prop of __getOwnPropSymbols$g(source)) {
36597
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$g.call(source, prop))
36598
+ target[prop] = source[prop];
36599
+ }
36600
+ return target;
36601
+ };
36602
+ const useGetShipmentRates = (params) => {
36518
36603
  const { client } = useShipEngine();
36519
- return useQuery({
36520
- enabled: shipmentId !== void 0,
36604
+ const _a = params, { queryFnParams } = _a, rest = __objRest$a(_a, ["queryFnParams"]);
36605
+ const { createdAtStart, shipmentId } = queryFnParams;
36606
+ return useQuery(__spreadProps$b(__spreadValues$e({
36607
+ enabled: shipmentId !== void 0
36608
+ }, rest), {
36521
36609
  onError,
36522
36610
  queryFn: () => {
36523
36611
  if (shipmentId) {
@@ -36525,9 +36613,9 @@ const useGetShipmentRates = (shipmentId, createdAtStart) => {
36525
36613
  }
36526
36614
  return Promise.reject(new Error("shipmentId is required"));
36527
36615
  },
36528
- queryKey: ["useGetShipmentRates", shipmentId, createdAtStart],
36616
+ queryKey: ["useGetShipmentRates", queryFnParams],
36529
36617
  select: (result) => result.data
36530
- });
36618
+ }));
36531
36619
  };
36532
36620
 
36533
36621
  var __defProp$d = Object.defineProperty;
@@ -38727,4 +38815,4 @@ const alchemy = {
38727
38815
  createElement
38728
38816
  };
38729
38817
 
38730
- export { AccountSettingsAPI, AddressesAPI, AlchemyContext, AlchemyProvider, AlchemyTestProvider, CarriersAPI, CodedError, ConfirmationType, ConnectionsAPI, CreditCardVendor, Currency, CustomPackagesAPI, CustomsContentsType, CustomsNonDeliveryType, Element, ErrorBoundary, FundingSourcesAPI, InsuranceAPI, InsuranceProviderType, LabelsAPI, MetadataCapability, MetadataRequirement, MetadataSatisfyingFormTypes, MovementIndicator, OrderSourcesAPI, RateCardStatus, RateCardsAPI, RatesAPI, types as SE, SalesOrderShipmentsAPI, SalesOrdersAPI, SellersAPI, ServicePointsAPI, ShipEngine, ShipEngineAPI, ShipEngineContext, ShipmentsAPI, ShippingRulesAPI, ThemesAPI, WarehousesAPI, WebhooksAPI, alchemy, alchemy as default, delay, getEmotionCache, getEndUserIpAddress, isCodedError, isCodedErrors, isDataCodedErrors, isInvalidTokenError, logger, onError, parseError, retryUntil, useAddFunds, useAddInsuranceFunds, useAddSandboxCarriers, useAlchemy, useCalculateRates, useCancelShipment, useCarrierConnectionsServicesList, useConnectCarrier, useConnectCarrierAccount, useCreateAccountImage, useCreateFundingSource, useCreateLabel, useCreateRateCard, useCreateSalesOrderShipment, useCreateSandboxSeller, useCreateSellerApiKey, useCreateShipment, useCreateShippingRule, useCreateWarehouse, useCreateWebhook, useDeactivateOrderSource, useDeleteAccountImage, useDeleteCarrier, useDeleteRateCard, useDeleteSellerApiKey, useDeleteShippingRule, useDeleteWarehouse, useDeleteWebhook, useDownloadRateCard, useEditShippingRule, useFundingSourcesAddFunds, useGetAccountBillingPlan, useGetAccountImages, useGetAccountSettings, useGetAutoFundingConfiguration, useGetCarrierById, useGetCarrierConnectionForm, useGetConnectionsCarrierSettings, useGetCountriesByCarrier, useGetCurrenciesByCarrier, useGetFundingSourceById, useGetFundingSourceMetadata, useGetFundingSourceTransactions, useGetHereToken, useGetInsuranceAccount, useGetInsuranceFundingSourceAcceptedTerms, useGetLabel, useGetPackageRatingGroupByCarrier, useGetRateCardById, useGetSalesOrder, useGetSalesOrderShipment, useGetServicePoint, useGetServicesByCarrier, useGetShipment, useGetShipmentByExternalId, useGetShipmentRates, useGetShippingRuleById, useGetShippingRuleConditionsOptions, useGetThemeById, useGetZonesByCarrier, useI18n, useListCarrierConnections, useListCarriers, useListCustomPackageTypes, useListFundingSources, useListLabels, useListOrderSources, useListOrderSourcesConnections, useListRateCards, useListSalesOrderShipments, useListSalesOrders, useListSandboxSellerIds, useListSellerApiKeys, useListServicePoints, useListShipments, useListShippingRules, useListWarehouses, useListWebhooks, useLoadIcons, useNotifySalesOrderShipped, useParseAddress, usePublishRateCard, useRatesEstimate, useRefreshOrderSource, useRefreshOrderSourceAsync, useRegisterCarrier, useShipEngine, useUpdateAccountBillingPlan, useUpdateAccountImage, useUpdateAccountSettings, useUpdateAutoFunding, useUpdateConnectionsCarrierSettings, useUpdateFundingSource, useUpdateRateCard, useUpdateSalesOrderShipment, useUpdateWarehouse, useUpdateWebhook, useUploadRateCard, useValidateAddresses, useVoidLabel };
38818
+ export { AccountSettingsAPI, AddressesAPI, AlchemyContext, AlchemyProvider, AlchemyTestProvider, CarriersAPI, CodedError, ConfirmationType, ConnectionsAPI, CreditCardVendor, Currency, CustomPackagesAPI, CustomsContentsType, CustomsNonDeliveryType, Element, ErrorBoundary, FundingSourcesAPI, InsuranceAPI, InsuranceProviderType, LabelsAPI, MetadataCapability, MetadataRequirement, MetadataSatisfyingFormTypes, MovementIndicator, OrderSourcesAPI, RateCardStatus, RateCardsAPI, RatesAPI, types as SE, SalesOrderShipmentsAPI, SalesOrdersAPI, SellersAPI, ServicePointsAPI, ShipEngine, ShipEngineAPI, ShipEngineContext, ShipmentsAPI, ShippingRulesAPI, ThemesAPI, WarehousesAPI, WebhooksAPI, alchemy, alchemy as default, delay, getEmotionCache, getEndUserIpAddress, isCodedError, isCodedErrors, isDataCodedErrors, isInvalidTokenError, logger, onError, parseError, retryUntil, useAddFunds, useAddInsuranceFunds, useAddSandboxCarriers, useAlchemy, useCalculateRates, useCancelShipment, useCarrierConnectionsServicesList, useConnectCarrier, useConnectCarrierAccount, useCreateAccountImage, useCreateFundingSource, useCreateLabel, useCreateRateCard, useCreateSalesOrderShipment, useCreateSandboxSeller, useCreateSellerApiKey, useCreateShipment, useCreateShippingRule, useCreateWarehouse, useCreateWebhook, useDeactivateOrderSource, useDeleteAccountImage, useDeleteCarrier, useDeleteRateCard, useDeleteSellerApiKey, useDeleteShippingRule, useDeleteWarehouse, useDeleteWebhook, useDownloadRateCard, useEditShippingRule, useFundingSourcesAddFunds, useGetAccountBillingPlan, useGetAccountImages, useGetAccountSettings, useGetAutoFundingConfiguration, useGetCarrierById, useGetCarrierConnectionForm, useGetConnectionsCarrierSettings, useGetCountriesByCarrier, useGetCurrenciesByCarrier, useGetFundingSourceById, useGetFundingSourceMetadata, useGetFundingSourceTransactions, useGetHereToken, useGetInsuranceAccount, useGetInsuranceFundingSourceAcceptedTerms, useGetLabel, useGetPackageRatingGroupByCarrier, useGetRateCardById, useGetSalesOrder, useGetSalesOrderShipment, useGetServicePoint, useGetServicesByCarrier, useGetShipment, useGetShipmentByExternalId, useGetShipmentRates, useGetShippingRuleById, useGetShippingRuleConditionsOptions, useGetThemeById, useGetZonesByCarrier, useI18n, useListCarrierConnections, useListCarriers, useListCustomPackageTypes, useListFundingSources, useListLabels, useListOrderSources, useListOrderSourcesConnections, useListRateCards, useListSalesOrderShipments, useListSalesOrders, useListSandboxSellerIds, useListSellerApiKeys, useListServicePoints, useListShipments, useListShippingRules, useListWarehouses, useListWebhooks, useLoadIcons, useNotifySalesOrderShipped, useParseAddress, usePublishRateCard, useRatesEstimate, useRefreshOrderSource, useRefreshOrderSourceAsync, useRegisterCarrier, useShipEngine, useUpdateAccountBillingPlan, useUpdateAccountImage, useUpdateAccountSettings, useUpdateAutoFunding, useUpdateConnectionsCarrierSettings, useUpdateFundingSource, useUpdateOrderSource, useUpdateRateCard, useUpdateSalesOrderShipment, useUpdateWarehouse, useUpdateWebhook, useUploadRateCard, useValidateAddresses, useVoidLabel };