@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.js CHANGED
@@ -10812,17 +10812,17 @@ var AccountBillingPlanChangeType = /* @__PURE__ */ ((AccountBillingPlanChangeTyp
10812
10812
  return AccountBillingPlanChangeType2;
10813
10813
  })(AccountBillingPlanChangeType || {});
10814
10814
 
10815
- var __getOwnPropSymbols$C = Object.getOwnPropertySymbols;
10816
- var __hasOwnProp$C = Object.prototype.hasOwnProperty;
10817
- var __propIsEnum$C = Object.prototype.propertyIsEnumerable;
10818
- var __objRest$n = (source, exclude) => {
10815
+ var __getOwnPropSymbols$E = Object.getOwnPropertySymbols;
10816
+ var __hasOwnProp$E = Object.prototype.hasOwnProperty;
10817
+ var __propIsEnum$E = Object.prototype.propertyIsEnumerable;
10818
+ var __objRest$p = (source, exclude) => {
10819
10819
  var target = {};
10820
10820
  for (var prop in source)
10821
- if (__hasOwnProp$C.call(source, prop) && exclude.indexOf(prop) < 0)
10821
+ if (__hasOwnProp$E.call(source, prop) && exclude.indexOf(prop) < 0)
10822
10822
  target[prop] = source[prop];
10823
- if (source != null && __getOwnPropSymbols$C)
10824
- for (var prop of __getOwnPropSymbols$C(source)) {
10825
- if (exclude.indexOf(prop) < 0 && __propIsEnum$C.call(source, prop))
10823
+ if (source != null && __getOwnPropSymbols$E)
10824
+ for (var prop of __getOwnPropSymbols$E(source)) {
10825
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$E.call(source, prop))
10826
10826
  target[prop] = source[prop];
10827
10827
  }
10828
10828
  return target;
@@ -10836,7 +10836,7 @@ class CodedError {
10836
10836
  this.message = message;
10837
10837
  }
10838
10838
  static fromObject(_a) {
10839
- var _b = _a, { message } = _b, options = __objRest$n(_b, ["message"]);
10839
+ var _b = _a, { message } = _b, options = __objRest$p(_b, ["message"]);
10840
10840
  return new CodedError(message, options);
10841
10841
  }
10842
10842
  }
@@ -10955,17 +10955,17 @@ const types = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
10955
10955
  RateCardStatus
10956
10956
  }, Symbol.toStringTag, { value: 'Module' }));
10957
10957
 
10958
- var __getOwnPropSymbols$B = Object.getOwnPropertySymbols;
10959
- var __hasOwnProp$B = Object.prototype.hasOwnProperty;
10960
- var __propIsEnum$B = Object.prototype.propertyIsEnumerable;
10961
- var __objRest$m = (source, exclude) => {
10958
+ var __getOwnPropSymbols$D = Object.getOwnPropertySymbols;
10959
+ var __hasOwnProp$D = Object.prototype.hasOwnProperty;
10960
+ var __propIsEnum$D = Object.prototype.propertyIsEnumerable;
10961
+ var __objRest$o = (source, exclude) => {
10962
10962
  var target = {};
10963
10963
  for (var prop in source)
10964
- if (__hasOwnProp$B.call(source, prop) && exclude.indexOf(prop) < 0)
10964
+ if (__hasOwnProp$D.call(source, prop) && exclude.indexOf(prop) < 0)
10965
10965
  target[prop] = source[prop];
10966
- if (source != null && __getOwnPropSymbols$B)
10967
- for (var prop of __getOwnPropSymbols$B(source)) {
10968
- if (exclude.indexOf(prop) < 0 && __propIsEnum$B.call(source, prop))
10966
+ if (source != null && __getOwnPropSymbols$D)
10967
+ for (var prop of __getOwnPropSymbols$D(source)) {
10968
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$D.call(source, prop))
10969
10969
  target[prop] = source[prop];
10970
10970
  }
10971
10971
  return target;
@@ -10997,7 +10997,7 @@ class AccountSettingsAPI {
10997
10997
  * The `updateImage` method updates specific image data for a given image id.
10998
10998
  */
10999
10999
  this.updateImage = (_a) => {
11000
- var _b = _a, { labelImageId } = _b, data = __objRest$m(_b, ["labelImageId"]);
11000
+ var _b = _a, { labelImageId } = _b, data = __objRest$o(_b, ["labelImageId"]);
11001
11001
  return this.client.put(`/v1/account/settings/images/${labelImageId}`, data);
11002
11002
  };
11003
11003
  /**
@@ -13707,7 +13707,7 @@ var ipaddr = {
13707
13707
  }).call(commonjsGlobal);
13708
13708
  } (ipaddr));
13709
13709
 
13710
- var __async$T = (__this, __arguments, generator) => {
13710
+ var __async$U = (__this, __arguments, generator) => {
13711
13711
  return new Promise((resolve, reject) => {
13712
13712
  var fulfilled = (value) => {
13713
13713
  try {
@@ -13727,7 +13727,7 @@ var __async$T = (__this, __arguments, generator) => {
13727
13727
  step((generator = generator.apply(__this, __arguments)).next());
13728
13728
  });
13729
13729
  };
13730
- const getEndUserIpAddress = () => __async$T(void 0, null, function* () {
13730
+ const getEndUserIpAddress = () => __async$U(void 0, null, function* () {
13731
13731
  try {
13732
13732
  const response = yield axios.get("https://api.ipify.org/?format=json");
13733
13733
  if (response.data.ip && ipaddrExports.isValid(response.data.ip)) {
@@ -13739,38 +13739,38 @@ const getEndUserIpAddress = () => __async$T(void 0, null, function* () {
13739
13739
  }
13740
13740
  });
13741
13741
 
13742
- var __defProp$q = Object.defineProperty;
13743
- var __defProps$k = Object.defineProperties;
13744
- var __getOwnPropDescs$k = Object.getOwnPropertyDescriptors;
13745
- var __getOwnPropSymbols$A = Object.getOwnPropertySymbols;
13746
- var __hasOwnProp$A = Object.prototype.hasOwnProperty;
13747
- var __propIsEnum$A = Object.prototype.propertyIsEnumerable;
13748
- var __defNormalProp$q = (obj, key, value) => key in obj ? __defProp$q(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
13749
- var __spreadValues$q = (a, b) => {
13742
+ var __defProp$r = Object.defineProperty;
13743
+ var __defProps$l = Object.defineProperties;
13744
+ var __getOwnPropDescs$l = Object.getOwnPropertyDescriptors;
13745
+ var __getOwnPropSymbols$C = Object.getOwnPropertySymbols;
13746
+ var __hasOwnProp$C = Object.prototype.hasOwnProperty;
13747
+ var __propIsEnum$C = Object.prototype.propertyIsEnumerable;
13748
+ var __defNormalProp$r = (obj, key, value) => key in obj ? __defProp$r(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
13749
+ var __spreadValues$r = (a, b) => {
13750
13750
  for (var prop in b || (b = {}))
13751
- if (__hasOwnProp$A.call(b, prop))
13752
- __defNormalProp$q(a, prop, b[prop]);
13753
- if (__getOwnPropSymbols$A)
13754
- for (var prop of __getOwnPropSymbols$A(b)) {
13755
- if (__propIsEnum$A.call(b, prop))
13756
- __defNormalProp$q(a, prop, b[prop]);
13751
+ if (__hasOwnProp$C.call(b, prop))
13752
+ __defNormalProp$r(a, prop, b[prop]);
13753
+ if (__getOwnPropSymbols$C)
13754
+ for (var prop of __getOwnPropSymbols$C(b)) {
13755
+ if (__propIsEnum$C.call(b, prop))
13756
+ __defNormalProp$r(a, prop, b[prop]);
13757
13757
  }
13758
13758
  return a;
13759
13759
  };
13760
- var __spreadProps$k = (a, b) => __defProps$k(a, __getOwnPropDescs$k(b));
13761
- var __objRest$l = (source, exclude) => {
13760
+ var __spreadProps$l = (a, b) => __defProps$l(a, __getOwnPropDescs$l(b));
13761
+ var __objRest$n = (source, exclude) => {
13762
13762
  var target = {};
13763
13763
  for (var prop in source)
13764
- if (__hasOwnProp$A.call(source, prop) && exclude.indexOf(prop) < 0)
13764
+ if (__hasOwnProp$C.call(source, prop) && exclude.indexOf(prop) < 0)
13765
13765
  target[prop] = source[prop];
13766
- if (source != null && __getOwnPropSymbols$A)
13767
- for (var prop of __getOwnPropSymbols$A(source)) {
13768
- if (exclude.indexOf(prop) < 0 && __propIsEnum$A.call(source, prop))
13766
+ if (source != null && __getOwnPropSymbols$C)
13767
+ for (var prop of __getOwnPropSymbols$C(source)) {
13768
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$C.call(source, prop))
13769
13769
  target[prop] = source[prop];
13770
13770
  }
13771
13771
  return target;
13772
13772
  };
13773
- var __async$S = (__this, __arguments, generator) => {
13773
+ var __async$T = (__this, __arguments, generator) => {
13774
13774
  return new Promise((resolve, reject) => {
13775
13775
  var fulfilled = (value) => {
13776
13776
  try {
@@ -13810,12 +13810,12 @@ class CarriersAPI {
13810
13810
  /**
13811
13811
  * The `connect` method connects a carrier account to a user's ShipEngine account.
13812
13812
  */
13813
- this.connect = (_a) => __async$S(this, null, function* () {
13814
- var _b = _a, { carrierCode } = _b, connection = __objRest$l(_b, ["carrierCode"]);
13813
+ this.connect = (_a) => __async$T(this, null, function* () {
13814
+ var _b = _a, { carrierCode } = _b, connection = __objRest$n(_b, ["carrierCode"]);
13815
13815
  const endUserIpAddress = yield getEndUserIpAddress();
13816
13816
  if (!endUserIpAddress)
13817
13817
  return Promise.reject([new CodedError("Unable to get IP address")]);
13818
- return yield this.client.post(`/v1/registration/${carrierCode}`, __spreadProps$k(__spreadValues$q({}, connection), {
13818
+ return yield this.client.post(`/v1/registration/${carrierCode}`, __spreadProps$l(__spreadValues$r({}, connection), {
13819
13819
  endUserIpAddress
13820
13820
  }));
13821
13821
  });
@@ -13901,7 +13901,7 @@ class CarriersAPI {
13901
13901
  }
13902
13902
  }
13903
13903
 
13904
- var __async$R = (__this, __arguments, generator) => {
13904
+ var __async$S = (__this, __arguments, generator) => {
13905
13905
  return new Promise((resolve, reject) => {
13906
13906
  var fulfilled = (value) => {
13907
13907
  try {
@@ -13943,7 +13943,7 @@ class ConnectionsAPI {
13943
13943
  /**
13944
13944
  * The `connectCarrier` method connects a carrier to account.
13945
13945
  */
13946
- this.connectCarrier = (carrierName, formData) => __async$R(this, null, function* () {
13946
+ this.connectCarrier = (carrierName, formData) => __async$S(this, null, function* () {
13947
13947
  return yield this.client.post(
13948
13948
  `/v1/connections/carriers/${carrierName}`,
13949
13949
  formData,
@@ -16256,23 +16256,23 @@ class CustomPackagesAPI {
16256
16256
  }
16257
16257
  }
16258
16258
 
16259
- var __defProp$p = Object.defineProperty;
16260
- var __getOwnPropSymbols$z = Object.getOwnPropertySymbols;
16261
- var __hasOwnProp$z = Object.prototype.hasOwnProperty;
16262
- var __propIsEnum$z = Object.prototype.propertyIsEnumerable;
16263
- var __defNormalProp$p = (obj, key, value) => key in obj ? __defProp$p(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
16264
- var __spreadValues$p = (a, b) => {
16259
+ var __defProp$q = Object.defineProperty;
16260
+ var __getOwnPropSymbols$B = Object.getOwnPropertySymbols;
16261
+ var __hasOwnProp$B = Object.prototype.hasOwnProperty;
16262
+ var __propIsEnum$B = Object.prototype.propertyIsEnumerable;
16263
+ var __defNormalProp$q = (obj, key, value) => key in obj ? __defProp$q(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
16264
+ var __spreadValues$q = (a, b) => {
16265
16265
  for (var prop in b || (b = {}))
16266
- if (__hasOwnProp$z.call(b, prop))
16267
- __defNormalProp$p(a, prop, b[prop]);
16268
- if (__getOwnPropSymbols$z)
16269
- for (var prop of __getOwnPropSymbols$z(b)) {
16270
- if (__propIsEnum$z.call(b, prop))
16271
- __defNormalProp$p(a, prop, b[prop]);
16266
+ if (__hasOwnProp$B.call(b, prop))
16267
+ __defNormalProp$q(a, prop, b[prop]);
16268
+ if (__getOwnPropSymbols$B)
16269
+ for (var prop of __getOwnPropSymbols$B(b)) {
16270
+ if (__propIsEnum$B.call(b, prop))
16271
+ __defNormalProp$q(a, prop, b[prop]);
16272
16272
  }
16273
16273
  return a;
16274
16274
  };
16275
- var __async$Q = (__this, __arguments, generator) => {
16275
+ var __async$R = (__this, __arguments, generator) => {
16276
16276
  return new Promise((resolve, reject) => {
16277
16277
  var fulfilled = (value) => {
16278
16278
  try {
@@ -16311,12 +16311,12 @@ class FundingSourcesAPI {
16311
16311
  * The `create` method creates a new funding source for a given user. This requires
16312
16312
  * payment information to be collected from the user.
16313
16313
  */
16314
- this.create = (createFundingSource) => __async$Q(this, null, function* () {
16314
+ this.create = (createFundingSource) => __async$R(this, null, function* () {
16315
16315
  const endUserIpAddress = yield getEndUserIpAddress();
16316
16316
  if (!endUserIpAddress) {
16317
16317
  return Promise.reject([new CodedError("Unable to get IP address")]);
16318
16318
  }
16319
- return yield this.client.post("/v1/funding_sources", __spreadValues$p({
16319
+ return yield this.client.post("/v1/funding_sources", __spreadValues$q({
16320
16320
  endUserIpAddress
16321
16321
  }, createFundingSource));
16322
16322
  });
@@ -16325,7 +16325,7 @@ class FundingSourcesAPI {
16325
16325
  * user to update the billing address or payment information associated with the
16326
16326
  * funding source.
16327
16327
  */
16328
- this.update = (billingInfo, creditCardInfo, fundingSourceId) => __async$Q(this, null, function* () {
16328
+ this.update = (billingInfo, creditCardInfo, fundingSourceId) => __async$R(this, null, function* () {
16329
16329
  const endUserIpAddress = yield getEndUserIpAddress();
16330
16330
  if (!endUserIpAddress) {
16331
16331
  return Promise.reject([new CodedError("Unable to get IP address")]);
@@ -16343,19 +16343,19 @@ class FundingSourcesAPI {
16343
16343
  * The `registerCarrier` method registers a carrier account and associates
16344
16344
  * it with a given funding source.
16345
16345
  */
16346
- this.registerCarrier = (carrier) => __async$Q(this, null, function* () {
16346
+ this.registerCarrier = (carrier) => __async$R(this, null, function* () {
16347
16347
  const endUserIpAddress = yield getEndUserIpAddress();
16348
16348
  if (!endUserIpAddress) {
16349
16349
  return Promise.reject([new CodedError("Unable to get IP address")]);
16350
16350
  }
16351
- return yield this.client.post("/v1/registration/funding_source", __spreadValues$p({
16351
+ return yield this.client.post("/v1/registration/funding_source", __spreadValues$q({
16352
16352
  endUserIpAddress
16353
16353
  }, carrier));
16354
16354
  });
16355
16355
  /**
16356
16356
  * The `addFunds` method allows you to add funds to a funding source.
16357
16357
  */
16358
- this.addFunds = (amount, fundingSourceId) => __async$Q(this, null, function* () {
16358
+ this.addFunds = (amount, fundingSourceId) => __async$R(this, null, function* () {
16359
16359
  return yield this.client.put(
16360
16360
  `/v1/funding_sources/${fundingSourceId}/add_funds`,
16361
16361
  amount
@@ -16365,7 +16365,7 @@ class FundingSourcesAPI {
16365
16365
  * The `metadata` method returns seller-specific requirements for creating funding sources
16366
16366
  * and attaching carriers
16367
16367
  */
16368
- this.metadata = () => __async$Q(this, null, function* () {
16368
+ this.metadata = () => __async$R(this, null, function* () {
16369
16369
  return yield this.client.get("/v1/funding_sources/metadata");
16370
16370
  });
16371
16371
  /**
@@ -16452,6 +16452,21 @@ class LabelsAPI {
16452
16452
  }
16453
16453
  }
16454
16454
 
16455
+ var __getOwnPropSymbols$A = Object.getOwnPropertySymbols;
16456
+ var __hasOwnProp$A = Object.prototype.hasOwnProperty;
16457
+ var __propIsEnum$A = Object.prototype.propertyIsEnumerable;
16458
+ var __objRest$m = (source, exclude) => {
16459
+ var target = {};
16460
+ for (var prop in source)
16461
+ if (__hasOwnProp$A.call(source, prop) && exclude.indexOf(prop) < 0)
16462
+ target[prop] = source[prop];
16463
+ if (source != null && __getOwnPropSymbols$A)
16464
+ for (var prop of __getOwnPropSymbols$A(source)) {
16465
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$A.call(source, prop))
16466
+ target[prop] = source[prop];
16467
+ }
16468
+ return target;
16469
+ };
16455
16470
  class OrderSourcesAPI {
16456
16471
  constructor(client) {
16457
16472
  this.client = client;
@@ -16475,6 +16490,13 @@ class OrderSourcesAPI {
16475
16490
  this.get = (orderSourceId) => {
16476
16491
  return this.client.get(`/v-beta/order_sources/${orderSourceId}`);
16477
16492
  };
16493
+ /**
16494
+ * The `update` method will allow the user to update a connected Order Source
16495
+ */
16496
+ this.update = (_a) => {
16497
+ var _b = _a, { orderSourceId } = _b, rest = __objRest$m(_b, ["orderSourceId"]);
16498
+ return this.client.put(`/v-beta/order_sources/${orderSourceId}`, rest);
16499
+ };
16478
16500
  /**
16479
16501
  * The `refresh` method refreshes a specific order source by `orderSourceId`.
16480
16502
  * This will pull in any `new orders` since the last order import.
@@ -16561,19 +16583,19 @@ class RateCardsAPI {
16561
16583
  }
16562
16584
  }
16563
16585
 
16564
- var __defProp$o = Object.defineProperty;
16565
- var __getOwnPropSymbols$y = Object.getOwnPropertySymbols;
16566
- var __hasOwnProp$y = Object.prototype.hasOwnProperty;
16567
- var __propIsEnum$y = Object.prototype.propertyIsEnumerable;
16568
- var __defNormalProp$o = (obj, key, value) => key in obj ? __defProp$o(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
16569
- var __spreadValues$o = (a, b) => {
16586
+ var __defProp$p = Object.defineProperty;
16587
+ var __getOwnPropSymbols$z = Object.getOwnPropertySymbols;
16588
+ var __hasOwnProp$z = Object.prototype.hasOwnProperty;
16589
+ var __propIsEnum$z = Object.prototype.propertyIsEnumerable;
16590
+ var __defNormalProp$p = (obj, key, value) => key in obj ? __defProp$p(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
16591
+ var __spreadValues$p = (a, b) => {
16570
16592
  for (var prop in b || (b = {}))
16571
- if (__hasOwnProp$y.call(b, prop))
16572
- __defNormalProp$o(a, prop, b[prop]);
16573
- if (__getOwnPropSymbols$y)
16574
- for (var prop of __getOwnPropSymbols$y(b)) {
16575
- if (__propIsEnum$y.call(b, prop))
16576
- __defNormalProp$o(a, prop, b[prop]);
16593
+ if (__hasOwnProp$z.call(b, prop))
16594
+ __defNormalProp$p(a, prop, b[prop]);
16595
+ if (__getOwnPropSymbols$z)
16596
+ for (var prop of __getOwnPropSymbols$z(b)) {
16597
+ if (__propIsEnum$z.call(b, prop))
16598
+ __defNormalProp$p(a, prop, b[prop]);
16577
16599
  }
16578
16600
  return a;
16579
16601
  };
@@ -16595,7 +16617,7 @@ class RatesAPI {
16595
16617
  * method.
16596
16618
  */
16597
16619
  this.estimate = (params) => {
16598
- return this.client.post("/v1/rates/estimate", __spreadValues$o({}, params));
16620
+ return this.client.post("/v1/rates/estimate", __spreadValues$p({}, params));
16599
16621
  };
16600
16622
  this.client = client;
16601
16623
  }
@@ -16664,7 +16686,7 @@ class SalesOrdersAPI {
16664
16686
  }
16665
16687
  }
16666
16688
 
16667
- var __async$P = (__this, __arguments, generator) => {
16689
+ var __async$Q = (__this, __arguments, generator) => {
16668
16690
  return new Promise((resolve, reject) => {
16669
16691
  var fulfilled = (value) => {
16670
16692
  try {
@@ -16722,7 +16744,7 @@ class SellersAPI {
16722
16744
  /**
16723
16745
  * Deletes an API Key
16724
16746
  */
16725
- this.deleteSellerApiKey = (_0) => __async$P(this, [_0], function* ({
16747
+ this.deleteSellerApiKey = (_0) => __async$Q(this, [_0], function* ({
16726
16748
  encryptedApiKey,
16727
16749
  sellerId,
16728
16750
  isSandbox
@@ -16768,19 +16790,19 @@ class SellersAPI {
16768
16790
  }
16769
16791
  }
16770
16792
 
16771
- var __defProp$n = Object.defineProperty;
16772
- var __getOwnPropSymbols$x = Object.getOwnPropertySymbols;
16773
- var __hasOwnProp$x = Object.prototype.hasOwnProperty;
16774
- var __propIsEnum$x = Object.prototype.propertyIsEnumerable;
16775
- var __defNormalProp$n = (obj, key, value) => key in obj ? __defProp$n(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
16776
- var __spreadValues$n = (a, b) => {
16793
+ var __defProp$o = Object.defineProperty;
16794
+ var __getOwnPropSymbols$y = Object.getOwnPropertySymbols;
16795
+ var __hasOwnProp$y = Object.prototype.hasOwnProperty;
16796
+ var __propIsEnum$y = Object.prototype.propertyIsEnumerable;
16797
+ var __defNormalProp$o = (obj, key, value) => key in obj ? __defProp$o(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
16798
+ var __spreadValues$o = (a, b) => {
16777
16799
  for (var prop in b || (b = {}))
16778
- if (__hasOwnProp$x.call(b, prop))
16779
- __defNormalProp$n(a, prop, b[prop]);
16780
- if (__getOwnPropSymbols$x)
16781
- for (var prop of __getOwnPropSymbols$x(b)) {
16782
- if (__propIsEnum$x.call(b, prop))
16783
- __defNormalProp$n(a, prop, b[prop]);
16800
+ if (__hasOwnProp$y.call(b, prop))
16801
+ __defNormalProp$o(a, prop, b[prop]);
16802
+ if (__getOwnPropSymbols$y)
16803
+ for (var prop of __getOwnPropSymbols$y(b)) {
16804
+ if (__propIsEnum$y.call(b, prop))
16805
+ __defNormalProp$o(a, prop, b[prop]);
16784
16806
  }
16785
16807
  return a;
16786
16808
  };
@@ -16792,7 +16814,7 @@ class ServicePointsAPI {
16792
16814
  * Either an address, coordinates, or an address query
16793
16815
  */
16794
16816
  this.list = (options) => {
16795
- return this.client.post("/v1/service_points/list", __spreadValues$n({}, options));
16817
+ return this.client.post("/v1/service_points/list", __spreadValues$o({}, options));
16796
16818
  };
16797
16819
  /**
16798
16820
  * Get a specific service point by its carrier code, country code, and id
@@ -16810,7 +16832,7 @@ class ServicePointsAPI {
16810
16832
  }
16811
16833
  }
16812
16834
 
16813
- var __async$O = (__this, __arguments, generator) => {
16835
+ var __async$P = (__this, __arguments, generator) => {
16814
16836
  return new Promise((resolve, reject) => {
16815
16837
  var fulfilled = (value) => {
16816
16838
  try {
@@ -16859,7 +16881,7 @@ class ShipmentsAPI {
16859
16881
  * The `create` method allows for creating shipments based on a list of shipment
16860
16882
  * items passed into this method.
16861
16883
  */
16862
- this.create = (...shipments) => __async$O(this, null, function* () {
16884
+ this.create = (...shipments) => __async$P(this, null, function* () {
16863
16885
  return this.client.post("/v1/shipments", {
16864
16886
  shipments
16865
16887
  });
@@ -34251,26 +34273,26 @@ class WebhooksAPI {
34251
34273
  }
34252
34274
  }
34253
34275
 
34254
- var __defProp$m = Object.defineProperty;
34255
- var __defProps$j = Object.defineProperties;
34256
- var __getOwnPropDescs$j = Object.getOwnPropertyDescriptors;
34257
- var __getOwnPropSymbols$w = Object.getOwnPropertySymbols;
34258
- var __hasOwnProp$w = Object.prototype.hasOwnProperty;
34259
- var __propIsEnum$w = Object.prototype.propertyIsEnumerable;
34260
- var __defNormalProp$m = (obj, key, value) => key in obj ? __defProp$m(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
34261
- var __spreadValues$m = (a, b) => {
34276
+ var __defProp$n = Object.defineProperty;
34277
+ var __defProps$k = Object.defineProperties;
34278
+ var __getOwnPropDescs$k = Object.getOwnPropertyDescriptors;
34279
+ var __getOwnPropSymbols$x = Object.getOwnPropertySymbols;
34280
+ var __hasOwnProp$x = Object.prototype.hasOwnProperty;
34281
+ var __propIsEnum$x = Object.prototype.propertyIsEnumerable;
34282
+ var __defNormalProp$n = (obj, key, value) => key in obj ? __defProp$n(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
34283
+ var __spreadValues$n = (a, b) => {
34262
34284
  for (var prop in b || (b = {}))
34263
- if (__hasOwnProp$w.call(b, prop))
34264
- __defNormalProp$m(a, prop, b[prop]);
34265
- if (__getOwnPropSymbols$w)
34266
- for (var prop of __getOwnPropSymbols$w(b)) {
34267
- if (__propIsEnum$w.call(b, prop))
34268
- __defNormalProp$m(a, prop, b[prop]);
34285
+ if (__hasOwnProp$x.call(b, prop))
34286
+ __defNormalProp$n(a, prop, b[prop]);
34287
+ if (__getOwnPropSymbols$x)
34288
+ for (var prop of __getOwnPropSymbols$x(b)) {
34289
+ if (__propIsEnum$x.call(b, prop))
34290
+ __defNormalProp$n(a, prop, b[prop]);
34269
34291
  }
34270
34292
  return a;
34271
34293
  };
34272
- var __spreadProps$j = (a, b) => __defProps$j(a, __getOwnPropDescs$j(b));
34273
- var __async$N = (__this, __arguments, generator) => {
34294
+ var __spreadProps$k = (a, b) => __defProps$k(a, __getOwnPropDescs$k(b));
34295
+ var __async$O = (__this, __arguments, generator) => {
34274
34296
  return new Promise((resolve, reject) => {
34275
34297
  var fulfilled = (value) => {
34276
34298
  try {
@@ -34293,7 +34315,7 @@ var __async$N = (__this, __arguments, generator) => {
34293
34315
  const logger$1 = E({
34294
34316
  level: process.env.NODE_ENV === "production" ? "fatal" : "info",
34295
34317
  name: "shipengine-api",
34296
- serializers: __spreadProps$j(__spreadValues$m({}, k), {
34318
+ serializers: __spreadProps$k(__spreadValues$n({}, k), {
34297
34319
  req: (req) => ({
34298
34320
  headers: req.headers,
34299
34321
  method: req.method,
@@ -34318,7 +34340,7 @@ class ShipEngineAPI {
34318
34340
  this.getSandboxToken = getSandboxToken;
34319
34341
  const client = axios.create({
34320
34342
  baseURL,
34321
- headers: __spreadProps$j(__spreadValues$m({}, headers), {
34343
+ headers: __spreadProps$k(__spreadValues$n({}, headers), {
34322
34344
  "Content-Type": "application/json"
34323
34345
  }),
34324
34346
  paramsSerializer: (params) => lib.stringify(humpsExports.decamelizeKeys(params), { arrayFormat: "brackets" }),
@@ -34353,7 +34375,7 @@ class ShipEngineAPI {
34353
34375
  });
34354
34376
  client.defaults.headers.common["Authorization"] = `Bearer ${token}`;
34355
34377
  client.interceptors.request.use(
34356
- (config) => __async$N(this, null, function* () {
34378
+ (config) => __async$O(this, null, function* () {
34357
34379
  if (config.isSandbox) {
34358
34380
  if (!this.sandboxToken) {
34359
34381
  this.sandboxToken = yield getSandboxToken == null ? void 0 : getSandboxToken();
@@ -34380,7 +34402,7 @@ class ShipEngineAPI {
34380
34402
  );
34381
34403
  return res;
34382
34404
  },
34383
- (err) => __async$N(this, null, function* () {
34405
+ (err) => __async$O(this, null, function* () {
34384
34406
  var _a, _b, _c, _d, _e;
34385
34407
  logger$1.error(
34386
34408
  { err, req: err.config, res: err.response },
@@ -34427,7 +34449,7 @@ class ShipEngineAPI {
34427
34449
  * that token (also known as Seller ID)
34428
34450
  */
34429
34451
  getTenant(isSandbox) {
34430
- return __async$N(this, null, function* () {
34452
+ return __async$O(this, null, function* () {
34431
34453
  var _a;
34432
34454
  if (!isSandbox) {
34433
34455
  return this.getTenantFromToken(this.token);
@@ -34697,25 +34719,25 @@ const delay = (ms) => new Promise((resolve) => {
34697
34719
 
34698
34720
  const onError = (_errors) => _default();
34699
34721
 
34700
- var __defProp$l = Object.defineProperty;
34701
- var __defProps$i = Object.defineProperties;
34702
- var __getOwnPropDescs$i = Object.getOwnPropertyDescriptors;
34703
- var __getOwnPropSymbols$v = Object.getOwnPropertySymbols;
34704
- var __hasOwnProp$v = Object.prototype.hasOwnProperty;
34705
- var __propIsEnum$v = Object.prototype.propertyIsEnumerable;
34706
- var __defNormalProp$l = (obj, key, value) => key in obj ? __defProp$l(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
34707
- var __spreadValues$l = (a, b) => {
34722
+ var __defProp$m = Object.defineProperty;
34723
+ var __defProps$j = Object.defineProperties;
34724
+ var __getOwnPropDescs$j = Object.getOwnPropertyDescriptors;
34725
+ var __getOwnPropSymbols$w = Object.getOwnPropertySymbols;
34726
+ var __hasOwnProp$w = Object.prototype.hasOwnProperty;
34727
+ var __propIsEnum$w = Object.prototype.propertyIsEnumerable;
34728
+ var __defNormalProp$m = (obj, key, value) => key in obj ? __defProp$m(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
34729
+ var __spreadValues$m = (a, b) => {
34708
34730
  for (var prop in b || (b = {}))
34709
- if (__hasOwnProp$v.call(b, prop))
34710
- __defNormalProp$l(a, prop, b[prop]);
34711
- if (__getOwnPropSymbols$v)
34712
- for (var prop of __getOwnPropSymbols$v(b)) {
34713
- if (__propIsEnum$v.call(b, prop))
34714
- __defNormalProp$l(a, prop, b[prop]);
34731
+ if (__hasOwnProp$w.call(b, prop))
34732
+ __defNormalProp$m(a, prop, b[prop]);
34733
+ if (__getOwnPropSymbols$w)
34734
+ for (var prop of __getOwnPropSymbols$w(b)) {
34735
+ if (__propIsEnum$w.call(b, prop))
34736
+ __defNormalProp$m(a, prop, b[prop]);
34715
34737
  }
34716
34738
  return a;
34717
34739
  };
34718
- var __spreadProps$i = (a, b) => __defProps$i(a, __getOwnPropDescs$i(b));
34740
+ var __spreadProps$j = (a, b) => __defProps$j(a, __getOwnPropDescs$j(b));
34719
34741
  const streams = [];
34720
34742
  if (process.env.NODE_ENV === "production") {
34721
34743
  streams.push({
@@ -34724,7 +34746,7 @@ if (process.env.NODE_ENV === "production") {
34724
34746
  }
34725
34747
  const logger = E({
34726
34748
  name: "shipengine",
34727
- serializers: __spreadProps$i(__spreadValues$l({}, k), {
34749
+ serializers: __spreadProps$j(__spreadValues$m({}, k), {
34728
34750
  req: (req) => ({
34729
34751
  headers: req.headers,
34730
34752
  method: req.method,
@@ -34749,7 +34771,7 @@ const retryUntil = (callbackFn, retries = 10, timeoutBetweenAttempts = 1e3) => P
34749
34771
  throw error;
34750
34772
  });
34751
34773
 
34752
- var __async$M = (__this, __arguments, generator) => {
34774
+ var __async$N = (__this, __arguments, generator) => {
34753
34775
  return new Promise((resolve, reject) => {
34754
34776
  var fulfilled = (value) => {
34755
34777
  try {
@@ -34772,7 +34794,7 @@ var __async$M = (__this, __arguments, generator) => {
34772
34794
  const useCreateAccountImage = () => {
34773
34795
  const { client } = useShipEngine();
34774
34796
  return reactQuery.useMutation({
34775
- mutationFn: (data) => __async$M(void 0, null, function* () {
34797
+ mutationFn: (data) => __async$N(void 0, null, function* () {
34776
34798
  const result = yield client.accountSettings.createImage(data);
34777
34799
  return result.data;
34778
34800
  }),
@@ -34781,7 +34803,7 @@ const useCreateAccountImage = () => {
34781
34803
  });
34782
34804
  };
34783
34805
 
34784
- var __async$L = (__this, __arguments, generator) => {
34806
+ var __async$M = (__this, __arguments, generator) => {
34785
34807
  return new Promise((resolve, reject) => {
34786
34808
  var fulfilled = (value) => {
34787
34809
  try {
@@ -34804,7 +34826,7 @@ var __async$L = (__this, __arguments, generator) => {
34804
34826
  const useDeleteAccountImage = () => {
34805
34827
  const { client } = useShipEngine();
34806
34828
  return reactQuery.useMutation({
34807
- mutationFn: (labelImageId) => __async$L(void 0, null, function* () {
34829
+ mutationFn: (labelImageId) => __async$M(void 0, null, function* () {
34808
34830
  const result = yield client.accountSettings.deleteImage(labelImageId);
34809
34831
  return result.data;
34810
34832
  }),
@@ -34833,7 +34855,7 @@ const useGetAccountSettings = () => {
34833
34855
  });
34834
34856
  };
34835
34857
 
34836
- var __async$K = (__this, __arguments, generator) => {
34858
+ var __async$L = (__this, __arguments, generator) => {
34837
34859
  return new Promise((resolve, reject) => {
34838
34860
  var fulfilled = (value) => {
34839
34861
  try {
@@ -34856,7 +34878,7 @@ var __async$K = (__this, __arguments, generator) => {
34856
34878
  const useUpdateAccountImage = () => {
34857
34879
  const { client } = useShipEngine();
34858
34880
  return reactQuery.useMutation({
34859
- mutationFn: (data) => __async$K(void 0, null, function* () {
34881
+ mutationFn: (data) => __async$L(void 0, null, function* () {
34860
34882
  const result = yield client.accountSettings.updateImage(data);
34861
34883
  return result.data;
34862
34884
  }),
@@ -34865,7 +34887,7 @@ const useUpdateAccountImage = () => {
34865
34887
  });
34866
34888
  };
34867
34889
 
34868
- var __async$J = (__this, __arguments, generator) => {
34890
+ var __async$K = (__this, __arguments, generator) => {
34869
34891
  return new Promise((resolve, reject) => {
34870
34892
  var fulfilled = (value) => {
34871
34893
  try {
@@ -34888,7 +34910,7 @@ var __async$J = (__this, __arguments, generator) => {
34888
34910
  const useUpdateAccountSettings = () => {
34889
34911
  const { client } = useShipEngine();
34890
34912
  return reactQuery.useMutation({
34891
- mutationFn: (settings) => __async$J(void 0, null, function* () {
34913
+ mutationFn: (settings) => __async$K(void 0, null, function* () {
34892
34914
  const result = yield client.accountSettings.update(settings);
34893
34915
  return result.data;
34894
34916
  }),
@@ -34897,7 +34919,7 @@ const useUpdateAccountSettings = () => {
34897
34919
  });
34898
34920
  };
34899
34921
 
34900
- var __async$I = (__this, __arguments, generator) => {
34922
+ var __async$J = (__this, __arguments, generator) => {
34901
34923
  return new Promise((resolve, reject) => {
34902
34924
  var fulfilled = (value) => {
34903
34925
  try {
@@ -34920,7 +34942,7 @@ var __async$I = (__this, __arguments, generator) => {
34920
34942
  const useParseAddress = () => {
34921
34943
  const { client } = useShipEngine();
34922
34944
  return reactQuery.useMutation({
34923
- mutationFn: (_0) => __async$I(void 0, [_0], function* ({ address, text }) {
34945
+ mutationFn: (_0) => __async$J(void 0, [_0], function* ({ address, text }) {
34924
34946
  const result = yield client.addresses.parse(text, address);
34925
34947
  return result.data;
34926
34948
  }),
@@ -34929,7 +34951,7 @@ const useParseAddress = () => {
34929
34951
  });
34930
34952
  };
34931
34953
 
34932
- var __async$H = (__this, __arguments, generator) => {
34954
+ var __async$I = (__this, __arguments, generator) => {
34933
34955
  return new Promise((resolve, reject) => {
34934
34956
  var fulfilled = (value) => {
34935
34957
  try {
@@ -34952,7 +34974,7 @@ var __async$H = (__this, __arguments, generator) => {
34952
34974
  const useValidateAddresses = () => {
34953
34975
  const { client } = useShipEngine();
34954
34976
  return reactQuery.useMutation({
34955
- mutationFn: (addresses) => __async$H(void 0, null, function* () {
34977
+ mutationFn: (addresses) => __async$I(void 0, null, function* () {
34956
34978
  const result = yield client.addresses.validate(addresses);
34957
34979
  return result.data;
34958
34980
  }),
@@ -34961,7 +34983,7 @@ const useValidateAddresses = () => {
34961
34983
  });
34962
34984
  };
34963
34985
 
34964
- var __async$G = (__this, __arguments, generator) => {
34986
+ var __async$H = (__this, __arguments, generator) => {
34965
34987
  return new Promise((resolve, reject) => {
34966
34988
  var fulfilled = (value) => {
34967
34989
  try {
@@ -34984,7 +35006,7 @@ var __async$G = (__this, __arguments, generator) => {
34984
35006
  const useAddFunds = () => {
34985
35007
  const { client } = useShipEngine();
34986
35008
  return reactQuery.useMutation({
34987
- mutationFn: (_0) => __async$G(void 0, [_0], function* ({ carrierId, funds }) {
35009
+ mutationFn: (_0) => __async$H(void 0, [_0], function* ({ carrierId, funds }) {
34988
35010
  const result = yield client.carriers.addFunds(carrierId, funds);
34989
35011
  return result.data;
34990
35012
  }),
@@ -34993,7 +35015,7 @@ const useAddFunds = () => {
34993
35015
  });
34994
35016
  };
34995
35017
 
34996
- var __async$F = (__this, __arguments, generator) => {
35018
+ var __async$G = (__this, __arguments, generator) => {
34997
35019
  return new Promise((resolve, reject) => {
34998
35020
  var fulfilled = (value) => {
34999
35021
  try {
@@ -35016,7 +35038,7 @@ var __async$F = (__this, __arguments, generator) => {
35016
35038
  const useConnectCarrier = () => {
35017
35039
  const { client } = useShipEngine();
35018
35040
  return reactQuery.useMutation({
35019
- mutationFn: (params) => __async$F(void 0, null, function* () {
35041
+ mutationFn: (params) => __async$G(void 0, null, function* () {
35020
35042
  const result = yield client.carriers.connect(params);
35021
35043
  return result.data;
35022
35044
  }),
@@ -35125,41 +35147,41 @@ const useGetServicesByCarrier = (carrierId) => {
35125
35147
  });
35126
35148
  };
35127
35149
 
35128
- var __defProp$k = Object.defineProperty;
35129
- var __defProps$h = Object.defineProperties;
35130
- var __getOwnPropDescs$h = Object.getOwnPropertyDescriptors;
35131
- var __getOwnPropSymbols$u = Object.getOwnPropertySymbols;
35132
- var __hasOwnProp$u = Object.prototype.hasOwnProperty;
35133
- var __propIsEnum$u = Object.prototype.propertyIsEnumerable;
35134
- var __defNormalProp$k = (obj, key, value) => key in obj ? __defProp$k(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35135
- var __spreadValues$k = (a, b) => {
35150
+ var __defProp$l = Object.defineProperty;
35151
+ var __defProps$i = Object.defineProperties;
35152
+ var __getOwnPropDescs$i = Object.getOwnPropertyDescriptors;
35153
+ var __getOwnPropSymbols$v = Object.getOwnPropertySymbols;
35154
+ var __hasOwnProp$v = Object.prototype.hasOwnProperty;
35155
+ var __propIsEnum$v = Object.prototype.propertyIsEnumerable;
35156
+ var __defNormalProp$l = (obj, key, value) => key in obj ? __defProp$l(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35157
+ var __spreadValues$l = (a, b) => {
35136
35158
  for (var prop in b || (b = {}))
35137
- if (__hasOwnProp$u.call(b, prop))
35138
- __defNormalProp$k(a, prop, b[prop]);
35139
- if (__getOwnPropSymbols$u)
35140
- for (var prop of __getOwnPropSymbols$u(b)) {
35141
- if (__propIsEnum$u.call(b, prop))
35142
- __defNormalProp$k(a, prop, b[prop]);
35159
+ if (__hasOwnProp$v.call(b, prop))
35160
+ __defNormalProp$l(a, prop, b[prop]);
35161
+ if (__getOwnPropSymbols$v)
35162
+ for (var prop of __getOwnPropSymbols$v(b)) {
35163
+ if (__propIsEnum$v.call(b, prop))
35164
+ __defNormalProp$l(a, prop, b[prop]);
35143
35165
  }
35144
35166
  return a;
35145
35167
  };
35146
- var __spreadProps$h = (a, b) => __defProps$h(a, __getOwnPropDescs$h(b));
35147
- var __objRest$k = (source, exclude) => {
35168
+ var __spreadProps$i = (a, b) => __defProps$i(a, __getOwnPropDescs$i(b));
35169
+ var __objRest$l = (source, exclude) => {
35148
35170
  var target = {};
35149
35171
  for (var prop in source)
35150
- if (__hasOwnProp$u.call(source, prop) && exclude.indexOf(prop) < 0)
35172
+ if (__hasOwnProp$v.call(source, prop) && exclude.indexOf(prop) < 0)
35151
35173
  target[prop] = source[prop];
35152
- if (source != null && __getOwnPropSymbols$u)
35153
- for (var prop of __getOwnPropSymbols$u(source)) {
35154
- if (exclude.indexOf(prop) < 0 && __propIsEnum$u.call(source, prop))
35174
+ if (source != null && __getOwnPropSymbols$v)
35175
+ for (var prop of __getOwnPropSymbols$v(source)) {
35176
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$v.call(source, prop))
35155
35177
  target[prop] = source[prop];
35156
35178
  }
35157
35179
  return target;
35158
35180
  };
35159
35181
  const useListCarriers = (params) => {
35160
35182
  const { client } = useShipEngine();
35161
- const _a = __spreadValues$k({}, params), { queryFnParams } = _a, rest = __objRest$k(_a, ["queryFnParams"]);
35162
- return reactQuery.useQuery(__spreadProps$h(__spreadValues$k({}, rest), {
35183
+ const _a = __spreadValues$l({}, params), { queryFnParams } = _a, rest = __objRest$l(_a, ["queryFnParams"]);
35184
+ return reactQuery.useQuery(__spreadProps$i(__spreadValues$l({}, rest), {
35163
35185
  onError,
35164
35186
  queryFn: () => client.carriers.list(queryFnParams),
35165
35187
  queryKey: ["useListCarriers", queryFnParams],
@@ -35167,22 +35189,22 @@ const useListCarriers = (params) => {
35167
35189
  }));
35168
35190
  };
35169
35191
 
35170
- var __getOwnPropSymbols$t = Object.getOwnPropertySymbols;
35171
- var __hasOwnProp$t = Object.prototype.hasOwnProperty;
35172
- var __propIsEnum$t = Object.prototype.propertyIsEnumerable;
35173
- var __objRest$j = (source, exclude) => {
35192
+ var __getOwnPropSymbols$u = Object.getOwnPropertySymbols;
35193
+ var __hasOwnProp$u = Object.prototype.hasOwnProperty;
35194
+ var __propIsEnum$u = Object.prototype.propertyIsEnumerable;
35195
+ var __objRest$k = (source, exclude) => {
35174
35196
  var target = {};
35175
35197
  for (var prop in source)
35176
- if (__hasOwnProp$t.call(source, prop) && exclude.indexOf(prop) < 0)
35198
+ if (__hasOwnProp$u.call(source, prop) && exclude.indexOf(prop) < 0)
35177
35199
  target[prop] = source[prop];
35178
- if (source != null && __getOwnPropSymbols$t)
35179
- for (var prop of __getOwnPropSymbols$t(source)) {
35180
- if (exclude.indexOf(prop) < 0 && __propIsEnum$t.call(source, prop))
35200
+ if (source != null && __getOwnPropSymbols$u)
35201
+ for (var prop of __getOwnPropSymbols$u(source)) {
35202
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$u.call(source, prop))
35181
35203
  target[prop] = source[prop];
35182
35204
  }
35183
35205
  return target;
35184
35206
  };
35185
- var __async$E = (__this, __arguments, generator) => {
35207
+ var __async$F = (__this, __arguments, generator) => {
35186
35208
  return new Promise((resolve, reject) => {
35187
35209
  var fulfilled = (value) => {
35188
35210
  try {
@@ -35206,8 +35228,8 @@ const useUpdateAutoFunding = () => {
35206
35228
  const { client } = useShipEngine();
35207
35229
  const queryClient = reactQuery.useQueryClient();
35208
35230
  return reactQuery.useMutation({
35209
- mutationFn: (_a) => __async$E(void 0, null, function* () {
35210
- var _b = _a, { carrierId } = _b, options = __objRest$j(_b, ["carrierId"]);
35231
+ mutationFn: (_a) => __async$F(void 0, null, function* () {
35232
+ var _b = _a, { carrierId } = _b, options = __objRest$k(_b, ["carrierId"]);
35211
35233
  const result = yield client.carriers.updateAutoFunding(carrierId, options);
35212
35234
  return result.data;
35213
35235
  }),
@@ -35236,7 +35258,7 @@ const useGetZonesByCarrier = (carrierId) => {
35236
35258
  });
35237
35259
  };
35238
35260
 
35239
- var __async$D = (__this, __arguments, generator) => {
35261
+ var __async$E = (__this, __arguments, generator) => {
35240
35262
  return new Promise((resolve, reject) => {
35241
35263
  var fulfilled = (value) => {
35242
35264
  try {
@@ -35259,7 +35281,7 @@ var __async$D = (__this, __arguments, generator) => {
35259
35281
  const useDeleteCarrier = () => {
35260
35282
  const { client } = useShipEngine();
35261
35283
  return reactQuery.useMutation({
35262
- mutationFn: (carrierId) => __async$D(void 0, null, function* () {
35284
+ mutationFn: (carrierId) => __async$E(void 0, null, function* () {
35263
35285
  const result = yield client.carriers.delete(carrierId);
35264
35286
  return result.data;
35265
35287
  }),
@@ -35268,24 +35290,24 @@ const useDeleteCarrier = () => {
35268
35290
  });
35269
35291
  };
35270
35292
 
35271
- var __getOwnPropSymbols$s = Object.getOwnPropertySymbols;
35272
- var __hasOwnProp$s = Object.prototype.hasOwnProperty;
35273
- var __propIsEnum$s = Object.prototype.propertyIsEnumerable;
35274
- var __objRest$i = (source, exclude) => {
35293
+ var __getOwnPropSymbols$t = Object.getOwnPropertySymbols;
35294
+ var __hasOwnProp$t = Object.prototype.hasOwnProperty;
35295
+ var __propIsEnum$t = Object.prototype.propertyIsEnumerable;
35296
+ var __objRest$j = (source, exclude) => {
35275
35297
  var target = {};
35276
35298
  for (var prop in source)
35277
- if (__hasOwnProp$s.call(source, prop) && exclude.indexOf(prop) < 0)
35299
+ if (__hasOwnProp$t.call(source, prop) && exclude.indexOf(prop) < 0)
35278
35300
  target[prop] = source[prop];
35279
- if (source != null && __getOwnPropSymbols$s)
35280
- for (var prop of __getOwnPropSymbols$s(source)) {
35281
- if (exclude.indexOf(prop) < 0 && __propIsEnum$s.call(source, prop))
35301
+ if (source != null && __getOwnPropSymbols$t)
35302
+ for (var prop of __getOwnPropSymbols$t(source)) {
35303
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$t.call(source, prop))
35282
35304
  target[prop] = source[prop];
35283
35305
  }
35284
35306
  return target;
35285
35307
  };
35286
35308
  const useGetCarrierConnectionForm = (_params) => {
35287
35309
  const { client } = useShipEngine();
35288
- const _a = _params || {}, { carrierName, enabled = true } = _a, params = __objRest$i(_a, ["carrierName", "enabled"]);
35310
+ const _a = _params || {}, { carrierName, enabled = true } = _a, params = __objRest$j(_a, ["carrierName", "enabled"]);
35289
35311
  return reactQuery.useQuery({
35290
35312
  enabled,
35291
35313
  onError,
@@ -35295,24 +35317,24 @@ const useGetCarrierConnectionForm = (_params) => {
35295
35317
  });
35296
35318
  };
35297
35319
 
35298
- var __getOwnPropSymbols$r = Object.getOwnPropertySymbols;
35299
- var __hasOwnProp$r = Object.prototype.hasOwnProperty;
35300
- var __propIsEnum$r = Object.prototype.propertyIsEnumerable;
35301
- var __objRest$h = (source, exclude) => {
35320
+ var __getOwnPropSymbols$s = Object.getOwnPropertySymbols;
35321
+ var __hasOwnProp$s = Object.prototype.hasOwnProperty;
35322
+ var __propIsEnum$s = Object.prototype.propertyIsEnumerable;
35323
+ var __objRest$i = (source, exclude) => {
35302
35324
  var target = {};
35303
35325
  for (var prop in source)
35304
- if (__hasOwnProp$r.call(source, prop) && exclude.indexOf(prop) < 0)
35326
+ if (__hasOwnProp$s.call(source, prop) && exclude.indexOf(prop) < 0)
35305
35327
  target[prop] = source[prop];
35306
- if (source != null && __getOwnPropSymbols$r)
35307
- for (var prop of __getOwnPropSymbols$r(source)) {
35308
- if (exclude.indexOf(prop) < 0 && __propIsEnum$r.call(source, prop))
35328
+ if (source != null && __getOwnPropSymbols$s)
35329
+ for (var prop of __getOwnPropSymbols$s(source)) {
35330
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$s.call(source, prop))
35309
35331
  target[prop] = source[prop];
35310
35332
  }
35311
35333
  return target;
35312
35334
  };
35313
35335
  const useListCarrierConnections = (_params) => {
35314
35336
  const { client } = useShipEngine();
35315
- const _a = _params || {}, { enabled = true } = _a, params = __objRest$h(_a, ["enabled"]);
35337
+ const _a = _params || {}, { enabled = true } = _a, params = __objRest$i(_a, ["enabled"]);
35316
35338
  return reactQuery.useQuery({
35317
35339
  enabled,
35318
35340
  onError,
@@ -35322,7 +35344,7 @@ const useListCarrierConnections = (_params) => {
35322
35344
  });
35323
35345
  };
35324
35346
 
35325
- var __async$C = (__this, __arguments, generator) => {
35347
+ var __async$D = (__this, __arguments, generator) => {
35326
35348
  return new Promise((resolve, reject) => {
35327
35349
  var fulfilled = (value) => {
35328
35350
  try {
@@ -35345,7 +35367,7 @@ var __async$C = (__this, __arguments, generator) => {
35345
35367
  const useConnectCarrierAccount = () => {
35346
35368
  const { client } = useShipEngine();
35347
35369
  return reactQuery.useMutation({
35348
- mutationFn: (_0) => __async$C(void 0, [_0], function* ({ carrierName, formData }) {
35370
+ mutationFn: (_0) => __async$D(void 0, [_0], function* ({ carrierName, formData }) {
35349
35371
  const result = yield client.connections.connectCarrier(carrierName, formData);
35350
35372
  return result.data;
35351
35373
  }),
@@ -35365,33 +35387,33 @@ const useCarrierConnectionsServicesList = (carrierCode) => {
35365
35387
  });
35366
35388
  };
35367
35389
 
35368
- var __defProp$j = Object.defineProperty;
35369
- var __defProps$g = Object.defineProperties;
35370
- var __getOwnPropDescs$g = Object.getOwnPropertyDescriptors;
35371
- var __getOwnPropSymbols$q = Object.getOwnPropertySymbols;
35372
- var __hasOwnProp$q = Object.prototype.hasOwnProperty;
35373
- var __propIsEnum$q = Object.prototype.propertyIsEnumerable;
35374
- var __defNormalProp$j = (obj, key, value) => key in obj ? __defProp$j(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35375
- var __spreadValues$j = (a, b) => {
35390
+ var __defProp$k = Object.defineProperty;
35391
+ var __defProps$h = Object.defineProperties;
35392
+ var __getOwnPropDescs$h = Object.getOwnPropertyDescriptors;
35393
+ var __getOwnPropSymbols$r = Object.getOwnPropertySymbols;
35394
+ var __hasOwnProp$r = Object.prototype.hasOwnProperty;
35395
+ var __propIsEnum$r = Object.prototype.propertyIsEnumerable;
35396
+ var __defNormalProp$k = (obj, key, value) => key in obj ? __defProp$k(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35397
+ var __spreadValues$k = (a, b) => {
35376
35398
  for (var prop in b || (b = {}))
35377
- if (__hasOwnProp$q.call(b, prop))
35378
- __defNormalProp$j(a, prop, b[prop]);
35379
- if (__getOwnPropSymbols$q)
35380
- for (var prop of __getOwnPropSymbols$q(b)) {
35381
- if (__propIsEnum$q.call(b, prop))
35382
- __defNormalProp$j(a, prop, b[prop]);
35399
+ if (__hasOwnProp$r.call(b, prop))
35400
+ __defNormalProp$k(a, prop, b[prop]);
35401
+ if (__getOwnPropSymbols$r)
35402
+ for (var prop of __getOwnPropSymbols$r(b)) {
35403
+ if (__propIsEnum$r.call(b, prop))
35404
+ __defNormalProp$k(a, prop, b[prop]);
35383
35405
  }
35384
35406
  return a;
35385
35407
  };
35386
- var __spreadProps$g = (a, b) => __defProps$g(a, __getOwnPropDescs$g(b));
35387
- var __objRest$g = (source, exclude) => {
35408
+ var __spreadProps$h = (a, b) => __defProps$h(a, __getOwnPropDescs$h(b));
35409
+ var __objRest$h = (source, exclude) => {
35388
35410
  var target = {};
35389
35411
  for (var prop in source)
35390
- if (__hasOwnProp$q.call(source, prop) && exclude.indexOf(prop) < 0)
35412
+ if (__hasOwnProp$r.call(source, prop) && exclude.indexOf(prop) < 0)
35391
35413
  target[prop] = source[prop];
35392
- if (source != null && __getOwnPropSymbols$q)
35393
- for (var prop of __getOwnPropSymbols$q(source)) {
35394
- if (exclude.indexOf(prop) < 0 && __propIsEnum$q.call(source, prop))
35414
+ if (source != null && __getOwnPropSymbols$r)
35415
+ for (var prop of __getOwnPropSymbols$r(source)) {
35416
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$r.call(source, prop))
35395
35417
  target[prop] = source[prop];
35396
35418
  }
35397
35419
  return target;
@@ -35399,12 +35421,12 @@ var __objRest$g = (source, exclude) => {
35399
35421
  const useGetConnectionsCarrierSettings = (_a) => {
35400
35422
  var _b = _a, {
35401
35423
  queryFnParams
35402
- } = _b, params = __objRest$g(_b, [
35424
+ } = _b, params = __objRest$h(_b, [
35403
35425
  "queryFnParams"
35404
35426
  ]);
35405
35427
  const { client } = useShipEngine();
35406
35428
  const { carrierName, carrierId } = queryFnParams;
35407
- return reactQuery.useQuery(__spreadProps$g(__spreadValues$j({}, params), {
35429
+ return reactQuery.useQuery(__spreadProps$h(__spreadValues$k({}, params), {
35408
35430
  onError,
35409
35431
  queryFn: () => client.connections.getCarrierSettings(carrierName, carrierId),
35410
35432
  queryKey: ["useGetConnectionsCarrierSettings", carrierName, carrierId],
@@ -35412,26 +35434,26 @@ const useGetConnectionsCarrierSettings = (_a) => {
35412
35434
  }));
35413
35435
  };
35414
35436
 
35415
- var __defProp$i = Object.defineProperty;
35416
- var __defProps$f = Object.defineProperties;
35417
- var __getOwnPropDescs$f = Object.getOwnPropertyDescriptors;
35418
- var __getOwnPropSymbols$p = Object.getOwnPropertySymbols;
35419
- var __hasOwnProp$p = Object.prototype.hasOwnProperty;
35420
- var __propIsEnum$p = Object.prototype.propertyIsEnumerable;
35421
- var __defNormalProp$i = (obj, key, value) => key in obj ? __defProp$i(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35422
- var __spreadValues$i = (a, b) => {
35437
+ var __defProp$j = Object.defineProperty;
35438
+ var __defProps$g = Object.defineProperties;
35439
+ var __getOwnPropDescs$g = Object.getOwnPropertyDescriptors;
35440
+ var __getOwnPropSymbols$q = Object.getOwnPropertySymbols;
35441
+ var __hasOwnProp$q = Object.prototype.hasOwnProperty;
35442
+ var __propIsEnum$q = Object.prototype.propertyIsEnumerable;
35443
+ var __defNormalProp$j = (obj, key, value) => key in obj ? __defProp$j(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35444
+ var __spreadValues$j = (a, b) => {
35423
35445
  for (var prop in b || (b = {}))
35424
- if (__hasOwnProp$p.call(b, prop))
35425
- __defNormalProp$i(a, prop, b[prop]);
35426
- if (__getOwnPropSymbols$p)
35427
- for (var prop of __getOwnPropSymbols$p(b)) {
35428
- if (__propIsEnum$p.call(b, prop))
35429
- __defNormalProp$i(a, prop, b[prop]);
35446
+ if (__hasOwnProp$q.call(b, prop))
35447
+ __defNormalProp$j(a, prop, b[prop]);
35448
+ if (__getOwnPropSymbols$q)
35449
+ for (var prop of __getOwnPropSymbols$q(b)) {
35450
+ if (__propIsEnum$q.call(b, prop))
35451
+ __defNormalProp$j(a, prop, b[prop]);
35430
35452
  }
35431
35453
  return a;
35432
35454
  };
35433
- var __spreadProps$f = (a, b) => __defProps$f(a, __getOwnPropDescs$f(b));
35434
- var __async$B = (__this, __arguments, generator) => {
35455
+ var __spreadProps$g = (a, b) => __defProps$g(a, __getOwnPropDescs$g(b));
35456
+ var __async$C = (__this, __arguments, generator) => {
35435
35457
  return new Promise((resolve, reject) => {
35436
35458
  var fulfilled = (value) => {
35437
35459
  try {
@@ -35453,8 +35475,8 @@ var __async$B = (__this, __arguments, generator) => {
35453
35475
  };
35454
35476
  const useUpdateConnectionsCarrierSettings = (params) => {
35455
35477
  const { client } = useShipEngine();
35456
- return reactQuery.useMutation(__spreadProps$f(__spreadValues$i({}, params), {
35457
- mutationFn: (_0) => __async$B(void 0, [_0], function* ({
35478
+ return reactQuery.useMutation(__spreadProps$g(__spreadValues$j({}, params), {
35479
+ mutationFn: (_0) => __async$C(void 0, [_0], function* ({
35458
35480
  carrierName,
35459
35481
  carrierId,
35460
35482
  formData
@@ -35481,7 +35503,7 @@ const useListCustomPackageTypes = () => {
35481
35503
  });
35482
35504
  };
35483
35505
 
35484
- var __async$A = (__this, __arguments, generator) => {
35506
+ var __async$B = (__this, __arguments, generator) => {
35485
35507
  return new Promise((resolve, reject) => {
35486
35508
  var fulfilled = (value) => {
35487
35509
  try {
@@ -35504,7 +35526,7 @@ var __async$A = (__this, __arguments, generator) => {
35504
35526
  const useCreateFundingSource = () => {
35505
35527
  const { client } = useShipEngine();
35506
35528
  return reactQuery.useMutation({
35507
- mutationFn: (fundingSource) => __async$A(void 0, null, function* () {
35529
+ mutationFn: (fundingSource) => __async$B(void 0, null, function* () {
35508
35530
  const result = yield client.fundingSources.create(fundingSource);
35509
35531
  return result.data;
35510
35532
  }),
@@ -35513,7 +35535,7 @@ const useCreateFundingSource = () => {
35513
35535
  });
35514
35536
  };
35515
35537
 
35516
- var __async$z = (__this, __arguments, generator) => {
35538
+ var __async$A = (__this, __arguments, generator) => {
35517
35539
  return new Promise((resolve, reject) => {
35518
35540
  var fulfilled = (value) => {
35519
35541
  try {
@@ -35536,7 +35558,7 @@ var __async$z = (__this, __arguments, generator) => {
35536
35558
  const useFundingSourcesAddFunds = () => {
35537
35559
  const { client } = useShipEngine();
35538
35560
  return reactQuery.useMutation({
35539
- mutationFn: (_0) => __async$z(void 0, [_0], function* ({ funds, fundingSourceId }) {
35561
+ mutationFn: (_0) => __async$A(void 0, [_0], function* ({ funds, fundingSourceId }) {
35540
35562
  const result = yield client.fundingSources.addFunds(funds, fundingSourceId);
35541
35563
  return result.data;
35542
35564
  }),
@@ -35565,7 +35587,7 @@ const useListFundingSources = () => {
35565
35587
  });
35566
35588
  };
35567
35589
 
35568
- var __async$y = (__this, __arguments, generator) => {
35590
+ var __async$z = (__this, __arguments, generator) => {
35569
35591
  return new Promise((resolve, reject) => {
35570
35592
  var fulfilled = (value) => {
35571
35593
  try {
@@ -35588,7 +35610,7 @@ var __async$y = (__this, __arguments, generator) => {
35588
35610
  const useRegisterCarrier = () => {
35589
35611
  const { client } = useShipEngine();
35590
35612
  return reactQuery.useMutation({
35591
- mutationFn: (carrier) => __async$y(void 0, null, function* () {
35613
+ mutationFn: (carrier) => __async$z(void 0, null, function* () {
35592
35614
  const result = yield client.fundingSources.registerCarrier(carrier);
35593
35615
  return result.data;
35594
35616
  }),
@@ -35597,7 +35619,7 @@ const useRegisterCarrier = () => {
35597
35619
  });
35598
35620
  };
35599
35621
 
35600
- var __async$x = (__this, __arguments, generator) => {
35622
+ var __async$y = (__this, __arguments, generator) => {
35601
35623
  return new Promise((resolve, reject) => {
35602
35624
  var fulfilled = (value) => {
35603
35625
  try {
@@ -35620,7 +35642,7 @@ var __async$x = (__this, __arguments, generator) => {
35620
35642
  const useUpdateFundingSource = () => {
35621
35643
  const { client } = useShipEngine();
35622
35644
  return reactQuery.useMutation({
35623
- mutationFn: (_0) => __async$x(void 0, [_0], function* ({
35645
+ mutationFn: (_0) => __async$y(void 0, [_0], function* ({
35624
35646
  billingInfo,
35625
35647
  creditCardInfo,
35626
35648
  fundingSourceId
@@ -35659,29 +35681,29 @@ const useGetFundingSourceTransactions = (fundingSourceId, params) => {
35659
35681
  });
35660
35682
  };
35661
35683
 
35662
- var __defProp$h = Object.defineProperty;
35663
- var __defProps$e = Object.defineProperties;
35664
- var __getOwnPropDescs$e = Object.getOwnPropertyDescriptors;
35665
- var __getOwnPropSymbols$o = Object.getOwnPropertySymbols;
35666
- var __hasOwnProp$o = Object.prototype.hasOwnProperty;
35667
- var __propIsEnum$o = Object.prototype.propertyIsEnumerable;
35668
- var __defNormalProp$h = (obj, key, value) => key in obj ? __defProp$h(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35669
- var __spreadValues$h = (a, b) => {
35684
+ var __defProp$i = Object.defineProperty;
35685
+ var __defProps$f = Object.defineProperties;
35686
+ var __getOwnPropDescs$f = Object.getOwnPropertyDescriptors;
35687
+ var __getOwnPropSymbols$p = Object.getOwnPropertySymbols;
35688
+ var __hasOwnProp$p = Object.prototype.hasOwnProperty;
35689
+ var __propIsEnum$p = Object.prototype.propertyIsEnumerable;
35690
+ var __defNormalProp$i = (obj, key, value) => key in obj ? __defProp$i(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35691
+ var __spreadValues$i = (a, b) => {
35670
35692
  for (var prop in b || (b = {}))
35671
- if (__hasOwnProp$o.call(b, prop))
35672
- __defNormalProp$h(a, prop, b[prop]);
35673
- if (__getOwnPropSymbols$o)
35674
- for (var prop of __getOwnPropSymbols$o(b)) {
35675
- if (__propIsEnum$o.call(b, prop))
35676
- __defNormalProp$h(a, prop, b[prop]);
35693
+ if (__hasOwnProp$p.call(b, prop))
35694
+ __defNormalProp$i(a, prop, b[prop]);
35695
+ if (__getOwnPropSymbols$p)
35696
+ for (var prop of __getOwnPropSymbols$p(b)) {
35697
+ if (__propIsEnum$p.call(b, prop))
35698
+ __defNormalProp$i(a, prop, b[prop]);
35677
35699
  }
35678
35700
  return a;
35679
35701
  };
35680
- var __spreadProps$e = (a, b) => __defProps$e(a, __getOwnPropDescs$e(b));
35702
+ var __spreadProps$f = (a, b) => __defProps$f(a, __getOwnPropDescs$f(b));
35681
35703
  const useGetInsuranceFundingSourceAcceptedTerms = (params) => {
35682
35704
  const { client } = useShipEngine();
35683
- const queryParams = __spreadValues$h({}, params);
35684
- return reactQuery.useQuery(__spreadProps$e(__spreadValues$h({}, queryParams), {
35705
+ const queryParams = __spreadValues$i({}, params);
35706
+ return reactQuery.useQuery(__spreadProps$f(__spreadValues$i({}, queryParams), {
35685
35707
  onError,
35686
35708
  queryFn: () => client.fundingSources.insuranceAcceptedTerms(),
35687
35709
  queryKey: ["useGetInsuranceFundingSourceAcceptedTerms"],
@@ -35704,22 +35726,22 @@ const useGetInsuranceAccount = (insuranceProvider) => {
35704
35726
  });
35705
35727
  };
35706
35728
 
35707
- var __getOwnPropSymbols$n = Object.getOwnPropertySymbols;
35708
- var __hasOwnProp$n = Object.prototype.hasOwnProperty;
35709
- var __propIsEnum$n = Object.prototype.propertyIsEnumerable;
35710
- var __objRest$f = (source, exclude) => {
35729
+ var __getOwnPropSymbols$o = Object.getOwnPropertySymbols;
35730
+ var __hasOwnProp$o = Object.prototype.hasOwnProperty;
35731
+ var __propIsEnum$o = Object.prototype.propertyIsEnumerable;
35732
+ var __objRest$g = (source, exclude) => {
35711
35733
  var target = {};
35712
35734
  for (var prop in source)
35713
- if (__hasOwnProp$n.call(source, prop) && exclude.indexOf(prop) < 0)
35735
+ if (__hasOwnProp$o.call(source, prop) && exclude.indexOf(prop) < 0)
35714
35736
  target[prop] = source[prop];
35715
- if (source != null && __getOwnPropSymbols$n)
35716
- for (var prop of __getOwnPropSymbols$n(source)) {
35717
- if (exclude.indexOf(prop) < 0 && __propIsEnum$n.call(source, prop))
35737
+ if (source != null && __getOwnPropSymbols$o)
35738
+ for (var prop of __getOwnPropSymbols$o(source)) {
35739
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$o.call(source, prop))
35718
35740
  target[prop] = source[prop];
35719
35741
  }
35720
35742
  return target;
35721
35743
  };
35722
- var __async$w = (__this, __arguments, generator) => {
35744
+ var __async$x = (__this, __arguments, generator) => {
35723
35745
  return new Promise((resolve, reject) => {
35724
35746
  var fulfilled = (value) => {
35725
35747
  try {
@@ -35742,8 +35764,8 @@ var __async$w = (__this, __arguments, generator) => {
35742
35764
  const useAddInsuranceFunds = () => {
35743
35765
  const { client } = useShipEngine();
35744
35766
  return reactQuery.useMutation({
35745
- mutationFn: (_a) => __async$w(void 0, null, function* () {
35746
- var _b = _a, { insuranceProvider } = _b, rest = __objRest$f(_b, ["insuranceProvider"]);
35767
+ mutationFn: (_a) => __async$x(void 0, null, function* () {
35768
+ var _b = _a, { insuranceProvider } = _b, rest = __objRest$g(_b, ["insuranceProvider"]);
35747
35769
  const result = yield client.insurance.addFunds(insuranceProvider, rest);
35748
35770
  return result.data;
35749
35771
  }),
@@ -35752,22 +35774,22 @@ const useAddInsuranceFunds = () => {
35752
35774
  });
35753
35775
  };
35754
35776
 
35755
- var __getOwnPropSymbols$m = Object.getOwnPropertySymbols;
35756
- var __hasOwnProp$m = Object.prototype.hasOwnProperty;
35757
- var __propIsEnum$m = Object.prototype.propertyIsEnumerable;
35758
- var __objRest$e = (source, exclude) => {
35777
+ var __getOwnPropSymbols$n = Object.getOwnPropertySymbols;
35778
+ var __hasOwnProp$n = Object.prototype.hasOwnProperty;
35779
+ var __propIsEnum$n = Object.prototype.propertyIsEnumerable;
35780
+ var __objRest$f = (source, exclude) => {
35759
35781
  var target = {};
35760
35782
  for (var prop in source)
35761
- if (__hasOwnProp$m.call(source, prop) && exclude.indexOf(prop) < 0)
35783
+ if (__hasOwnProp$n.call(source, prop) && exclude.indexOf(prop) < 0)
35762
35784
  target[prop] = source[prop];
35763
- if (source != null && __getOwnPropSymbols$m)
35764
- for (var prop of __getOwnPropSymbols$m(source)) {
35765
- if (exclude.indexOf(prop) < 0 && __propIsEnum$m.call(source, prop))
35785
+ if (source != null && __getOwnPropSymbols$n)
35786
+ for (var prop of __getOwnPropSymbols$n(source)) {
35787
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$n.call(source, prop))
35766
35788
  target[prop] = source[prop];
35767
35789
  }
35768
35790
  return target;
35769
35791
  };
35770
- var __async$v = (__this, __arguments, generator) => {
35792
+ var __async$w = (__this, __arguments, generator) => {
35771
35793
  return new Promise((resolve, reject) => {
35772
35794
  var fulfilled = (value) => {
35773
35795
  try {
@@ -35790,8 +35812,8 @@ var __async$v = (__this, __arguments, generator) => {
35790
35812
  const useCreateLabel = () => {
35791
35813
  const { client } = useShipEngine();
35792
35814
  return reactQuery.useMutation({
35793
- mutationFn: (_a) => __async$v(void 0, null, function* () {
35794
- var _b = _a, { rateId } = _b, options = __objRest$e(_b, ["rateId"]);
35815
+ mutationFn: (_a) => __async$w(void 0, null, function* () {
35816
+ var _b = _a, { rateId } = _b, options = __objRest$f(_b, ["rateId"]);
35795
35817
  const result = yield client.labels.createByRateId(rateId, options);
35796
35818
  return result.data;
35797
35819
  }),
@@ -35815,41 +35837,41 @@ const useGetLabel = (labelId) => {
35815
35837
  });
35816
35838
  };
35817
35839
 
35818
- var __defProp$g = Object.defineProperty;
35819
- var __defProps$d = Object.defineProperties;
35820
- var __getOwnPropDescs$d = Object.getOwnPropertyDescriptors;
35821
- var __getOwnPropSymbols$l = Object.getOwnPropertySymbols;
35822
- var __hasOwnProp$l = Object.prototype.hasOwnProperty;
35823
- var __propIsEnum$l = Object.prototype.propertyIsEnumerable;
35824
- var __defNormalProp$g = (obj, key, value) => key in obj ? __defProp$g(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35825
- var __spreadValues$g = (a, b) => {
35840
+ var __defProp$h = Object.defineProperty;
35841
+ var __defProps$e = Object.defineProperties;
35842
+ var __getOwnPropDescs$e = Object.getOwnPropertyDescriptors;
35843
+ var __getOwnPropSymbols$m = Object.getOwnPropertySymbols;
35844
+ var __hasOwnProp$m = Object.prototype.hasOwnProperty;
35845
+ var __propIsEnum$m = Object.prototype.propertyIsEnumerable;
35846
+ var __defNormalProp$h = (obj, key, value) => key in obj ? __defProp$h(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35847
+ var __spreadValues$h = (a, b) => {
35826
35848
  for (var prop in b || (b = {}))
35827
- if (__hasOwnProp$l.call(b, prop))
35828
- __defNormalProp$g(a, prop, b[prop]);
35829
- if (__getOwnPropSymbols$l)
35830
- for (var prop of __getOwnPropSymbols$l(b)) {
35831
- if (__propIsEnum$l.call(b, prop))
35832
- __defNormalProp$g(a, prop, b[prop]);
35849
+ if (__hasOwnProp$m.call(b, prop))
35850
+ __defNormalProp$h(a, prop, b[prop]);
35851
+ if (__getOwnPropSymbols$m)
35852
+ for (var prop of __getOwnPropSymbols$m(b)) {
35853
+ if (__propIsEnum$m.call(b, prop))
35854
+ __defNormalProp$h(a, prop, b[prop]);
35833
35855
  }
35834
35856
  return a;
35835
35857
  };
35836
- var __spreadProps$d = (a, b) => __defProps$d(a, __getOwnPropDescs$d(b));
35837
- var __objRest$d = (source, exclude) => {
35858
+ var __spreadProps$e = (a, b) => __defProps$e(a, __getOwnPropDescs$e(b));
35859
+ var __objRest$e = (source, exclude) => {
35838
35860
  var target = {};
35839
35861
  for (var prop in source)
35840
- if (__hasOwnProp$l.call(source, prop) && exclude.indexOf(prop) < 0)
35862
+ if (__hasOwnProp$m.call(source, prop) && exclude.indexOf(prop) < 0)
35841
35863
  target[prop] = source[prop];
35842
- if (source != null && __getOwnPropSymbols$l)
35843
- for (var prop of __getOwnPropSymbols$l(source)) {
35844
- if (exclude.indexOf(prop) < 0 && __propIsEnum$l.call(source, prop))
35864
+ if (source != null && __getOwnPropSymbols$m)
35865
+ for (var prop of __getOwnPropSymbols$m(source)) {
35866
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$m.call(source, prop))
35845
35867
  target[prop] = source[prop];
35846
35868
  }
35847
35869
  return target;
35848
35870
  };
35849
35871
  const useListLabels = (params) => {
35850
35872
  const { client } = useShipEngine();
35851
- const _a = __spreadValues$g({}, params), { queryFnParams } = _a, rest = __objRest$d(_a, ["queryFnParams"]);
35852
- return reactQuery.useQuery(__spreadProps$d(__spreadValues$g({}, rest), {
35873
+ const _a = __spreadValues$h({}, params), { queryFnParams } = _a, rest = __objRest$e(_a, ["queryFnParams"]);
35874
+ return reactQuery.useQuery(__spreadProps$e(__spreadValues$h({}, rest), {
35853
35875
  onError,
35854
35876
  queryFn: () => client.labels.list(queryFnParams),
35855
35877
  queryKey: ["useListLabels", params],
@@ -35857,7 +35879,7 @@ const useListLabels = (params) => {
35857
35879
  }));
35858
35880
  };
35859
35881
 
35860
- var __async$u = (__this, __arguments, generator) => {
35882
+ var __async$v = (__this, __arguments, generator) => {
35861
35883
  return new Promise((resolve, reject) => {
35862
35884
  var fulfilled = (value) => {
35863
35885
  try {
@@ -35880,7 +35902,7 @@ var __async$u = (__this, __arguments, generator) => {
35880
35902
  const useVoidLabel = () => {
35881
35903
  const { client } = useShipEngine();
35882
35904
  return reactQuery.useMutation({
35883
- mutationFn: (labelId) => __async$u(void 0, null, function* () {
35905
+ mutationFn: (labelId) => __async$v(void 0, null, function* () {
35884
35906
  const result = yield client.labels.void(labelId);
35885
35907
  return result.data;
35886
35908
  }),
@@ -35889,28 +35911,28 @@ const useVoidLabel = () => {
35889
35911
  });
35890
35912
  };
35891
35913
 
35892
- var __defProp$f = Object.defineProperty;
35893
- var __defProps$c = Object.defineProperties;
35894
- var __getOwnPropDescs$c = Object.getOwnPropertyDescriptors;
35895
- var __getOwnPropSymbols$k = Object.getOwnPropertySymbols;
35896
- var __hasOwnProp$k = Object.prototype.hasOwnProperty;
35897
- var __propIsEnum$k = Object.prototype.propertyIsEnumerable;
35898
- var __defNormalProp$f = (obj, key, value) => key in obj ? __defProp$f(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35899
- var __spreadValues$f = (a, b) => {
35914
+ var __defProp$g = Object.defineProperty;
35915
+ var __defProps$d = Object.defineProperties;
35916
+ var __getOwnPropDescs$d = Object.getOwnPropertyDescriptors;
35917
+ var __getOwnPropSymbols$l = Object.getOwnPropertySymbols;
35918
+ var __hasOwnProp$l = Object.prototype.hasOwnProperty;
35919
+ var __propIsEnum$l = Object.prototype.propertyIsEnumerable;
35920
+ var __defNormalProp$g = (obj, key, value) => key in obj ? __defProp$g(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35921
+ var __spreadValues$g = (a, b) => {
35900
35922
  for (var prop in b || (b = {}))
35901
- if (__hasOwnProp$k.call(b, prop))
35902
- __defNormalProp$f(a, prop, b[prop]);
35903
- if (__getOwnPropSymbols$k)
35904
- for (var prop of __getOwnPropSymbols$k(b)) {
35905
- if (__propIsEnum$k.call(b, prop))
35906
- __defNormalProp$f(a, prop, b[prop]);
35923
+ if (__hasOwnProp$l.call(b, prop))
35924
+ __defNormalProp$g(a, prop, b[prop]);
35925
+ if (__getOwnPropSymbols$l)
35926
+ for (var prop of __getOwnPropSymbols$l(b)) {
35927
+ if (__propIsEnum$l.call(b, prop))
35928
+ __defNormalProp$g(a, prop, b[prop]);
35907
35929
  }
35908
35930
  return a;
35909
35931
  };
35910
- var __spreadProps$c = (a, b) => __defProps$c(a, __getOwnPropDescs$c(b));
35932
+ var __spreadProps$d = (a, b) => __defProps$d(a, __getOwnPropDescs$d(b));
35911
35933
  const useListOrderSources = (params) => {
35912
35934
  const { client } = useShipEngine();
35913
- return reactQuery.useQuery(__spreadProps$c(__spreadValues$f({}, params), {
35935
+ return reactQuery.useQuery(__spreadProps$d(__spreadValues$g({}, params), {
35914
35936
  onError,
35915
35937
  queryFn: () => client.orderSources.list(),
35916
35938
  queryKey: ["useListOrderSources"],
@@ -35918,7 +35940,7 @@ const useListOrderSources = (params) => {
35918
35940
  }));
35919
35941
  };
35920
35942
 
35921
- var __async$t = (__this, __arguments, generator) => {
35943
+ var __async$u = (__this, __arguments, generator) => {
35922
35944
  return new Promise((resolve, reject) => {
35923
35945
  var fulfilled = (value) => {
35924
35946
  try {
@@ -35941,7 +35963,7 @@ var __async$t = (__this, __arguments, generator) => {
35941
35963
  const useRefreshOrderSourceAsync = () => {
35942
35964
  const { client } = useShipEngine();
35943
35965
  return reactQuery.useMutation({
35944
- mutationFn: (orderSourceId) => __async$t(void 0, null, function* () {
35966
+ mutationFn: (orderSourceId) => __async$u(void 0, null, function* () {
35945
35967
  const result = yield client.orderSources.refresh(orderSourceId);
35946
35968
  return result.data;
35947
35969
  }),
@@ -35952,9 +35974,9 @@ const useRefreshOrderSource = () => {
35952
35974
  const { client } = useShipEngine();
35953
35975
  const { mutateAsync: refreshOrderSourceAsync } = useRefreshOrderSourceAsync();
35954
35976
  return reactQuery.useMutation({
35955
- mutationFn: (orderSourceId) => __async$t(void 0, null, function* () {
35977
+ mutationFn: (orderSourceId) => __async$u(void 0, null, function* () {
35956
35978
  yield refreshOrderSourceAsync(orderSourceId);
35957
- const waitResult = yield retryUntil(() => __async$t(void 0, null, function* () {
35979
+ const waitResult = yield retryUntil(() => __async$u(void 0, null, function* () {
35958
35980
  const { data: checkResult } = yield client.orderSources.get(orderSourceId);
35959
35981
  if (["preparing_update", "updating"].includes(checkResult.refreshInfo.status)) {
35960
35982
  throw new CodedError("Order source is still refreshing");
@@ -35968,7 +35990,7 @@ const useRefreshOrderSource = () => {
35968
35990
  });
35969
35991
  };
35970
35992
 
35971
- var __async$s = (__this, __arguments, generator) => {
35993
+ var __async$t = (__this, __arguments, generator) => {
35972
35994
  return new Promise((resolve, reject) => {
35973
35995
  var fulfilled = (value) => {
35974
35996
  try {
@@ -35991,7 +36013,7 @@ var __async$s = (__this, __arguments, generator) => {
35991
36013
  const useDeactivateOrderSource = () => {
35992
36014
  const { client } = useShipEngine();
35993
36015
  return reactQuery.useMutation({
35994
- mutationFn: (orderSourceId) => __async$s(void 0, null, function* () {
36016
+ mutationFn: (orderSourceId) => __async$t(void 0, null, function* () {
35995
36017
  const result = yield client.orderSources.deactivate(orderSourceId);
35996
36018
  return result.data;
35997
36019
  }),
@@ -36010,6 +36032,38 @@ const useListOrderSourcesConnections = () => {
36010
36032
  });
36011
36033
  };
36012
36034
 
36035
+ var __async$s = (__this, __arguments, generator) => {
36036
+ return new Promise((resolve, reject) => {
36037
+ var fulfilled = (value) => {
36038
+ try {
36039
+ step(generator.next(value));
36040
+ } catch (e) {
36041
+ reject(e);
36042
+ }
36043
+ };
36044
+ var rejected = (value) => {
36045
+ try {
36046
+ step(generator.throw(value));
36047
+ } catch (e) {
36048
+ reject(e);
36049
+ }
36050
+ };
36051
+ var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
36052
+ step((generator = generator.apply(__this, __arguments)).next());
36053
+ });
36054
+ };
36055
+ const useUpdateOrderSource = () => {
36056
+ const { client } = useShipEngine();
36057
+ return reactQuery.useMutation({
36058
+ mutationFn: (params) => __async$s(void 0, null, function* () {
36059
+ const result = yield client.orderSources.update(params);
36060
+ return result.data;
36061
+ }),
36062
+ mutationKey: ["useUpdateOrderSource"],
36063
+ onError
36064
+ });
36065
+ };
36066
+
36013
36067
  var __async$r = (__this, __arguments, generator) => {
36014
36068
  return new Promise((resolve, reject) => {
36015
36069
  var fulfilled = (value) => {
@@ -36297,17 +36351,17 @@ const useListSalesOrders = (params = {}) => {
36297
36351
  });
36298
36352
  };
36299
36353
 
36300
- var __getOwnPropSymbols$j = Object.getOwnPropertySymbols;
36301
- var __hasOwnProp$j = Object.prototype.hasOwnProperty;
36302
- var __propIsEnum$j = Object.prototype.propertyIsEnumerable;
36303
- var __objRest$c = (source, exclude) => {
36354
+ var __getOwnPropSymbols$k = Object.getOwnPropertySymbols;
36355
+ var __hasOwnProp$k = Object.prototype.hasOwnProperty;
36356
+ var __propIsEnum$k = Object.prototype.propertyIsEnumerable;
36357
+ var __objRest$d = (source, exclude) => {
36304
36358
  var target = {};
36305
36359
  for (var prop in source)
36306
- if (__hasOwnProp$j.call(source, prop) && exclude.indexOf(prop) < 0)
36360
+ if (__hasOwnProp$k.call(source, prop) && exclude.indexOf(prop) < 0)
36307
36361
  target[prop] = source[prop];
36308
- if (source != null && __getOwnPropSymbols$j)
36309
- for (var prop of __getOwnPropSymbols$j(source)) {
36310
- if (exclude.indexOf(prop) < 0 && __propIsEnum$j.call(source, prop))
36362
+ if (source != null && __getOwnPropSymbols$k)
36363
+ for (var prop of __getOwnPropSymbols$k(source)) {
36364
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$k.call(source, prop))
36311
36365
  target[prop] = source[prop];
36312
36366
  }
36313
36367
  return target;
@@ -36336,7 +36390,7 @@ const useNotifySalesOrderShipped = () => {
36336
36390
  const { client } = useShipEngine();
36337
36391
  return reactQuery.useMutation({
36338
36392
  mutationFn: (_a) => __async$k(void 0, null, function* () {
36339
- var _b = _a, { salesOrderId } = _b, tracking = __objRest$c(_b, ["salesOrderId"]);
36393
+ var _b = _a, { salesOrderId } = _b, tracking = __objRest$d(_b, ["salesOrderId"]);
36340
36394
  const result = yield client.salesOrders.notifyShipped(salesOrderId, tracking);
36341
36395
  return result.data;
36342
36396
  }),
@@ -36345,17 +36399,17 @@ const useNotifySalesOrderShipped = () => {
36345
36399
  });
36346
36400
  };
36347
36401
 
36348
- var __getOwnPropSymbols$i = Object.getOwnPropertySymbols;
36349
- var __hasOwnProp$i = Object.prototype.hasOwnProperty;
36350
- var __propIsEnum$i = Object.prototype.propertyIsEnumerable;
36351
- var __objRest$b = (source, exclude) => {
36402
+ var __getOwnPropSymbols$j = Object.getOwnPropertySymbols;
36403
+ var __hasOwnProp$j = Object.prototype.hasOwnProperty;
36404
+ var __propIsEnum$j = Object.prototype.propertyIsEnumerable;
36405
+ var __objRest$c = (source, exclude) => {
36352
36406
  var target = {};
36353
36407
  for (var prop in source)
36354
- if (__hasOwnProp$i.call(source, prop) && exclude.indexOf(prop) < 0)
36408
+ if (__hasOwnProp$j.call(source, prop) && exclude.indexOf(prop) < 0)
36355
36409
  target[prop] = source[prop];
36356
- if (source != null && __getOwnPropSymbols$i)
36357
- for (var prop of __getOwnPropSymbols$i(source)) {
36358
- if (exclude.indexOf(prop) < 0 && __propIsEnum$i.call(source, prop))
36410
+ if (source != null && __getOwnPropSymbols$j)
36411
+ for (var prop of __getOwnPropSymbols$j(source)) {
36412
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$j.call(source, prop))
36359
36413
  target[prop] = source[prop];
36360
36414
  }
36361
36415
  return target;
@@ -36384,7 +36438,7 @@ const useCreateSalesOrderShipment = () => {
36384
36438
  const { client } = useShipEngine();
36385
36439
  return reactQuery.useMutation({
36386
36440
  mutationFn: (_a) => __async$j(void 0, null, function* () {
36387
- var _b = _a, { salesOrderId } = _b, shipment = __objRest$b(_b, ["salesOrderId"]);
36441
+ var _b = _a, { salesOrderId } = _b, shipment = __objRest$c(_b, ["salesOrderId"]);
36388
36442
  const result = yield client.salesOrderShipments.create(salesOrderId, shipment);
36389
36443
  return result.data;
36390
36444
  }),
@@ -36419,17 +36473,17 @@ const useListSalesOrderShipments = (params) => {
36419
36473
  });
36420
36474
  };
36421
36475
 
36422
- var __getOwnPropSymbols$h = Object.getOwnPropertySymbols;
36423
- var __hasOwnProp$h = Object.prototype.hasOwnProperty;
36424
- var __propIsEnum$h = Object.prototype.propertyIsEnumerable;
36425
- var __objRest$a = (source, exclude) => {
36476
+ var __getOwnPropSymbols$i = Object.getOwnPropertySymbols;
36477
+ var __hasOwnProp$i = Object.prototype.hasOwnProperty;
36478
+ var __propIsEnum$i = Object.prototype.propertyIsEnumerable;
36479
+ var __objRest$b = (source, exclude) => {
36426
36480
  var target = {};
36427
36481
  for (var prop in source)
36428
- if (__hasOwnProp$h.call(source, prop) && exclude.indexOf(prop) < 0)
36482
+ if (__hasOwnProp$i.call(source, prop) && exclude.indexOf(prop) < 0)
36429
36483
  target[prop] = source[prop];
36430
- if (source != null && __getOwnPropSymbols$h)
36431
- for (var prop of __getOwnPropSymbols$h(source)) {
36432
- if (exclude.indexOf(prop) < 0 && __propIsEnum$h.call(source, prop))
36484
+ if (source != null && __getOwnPropSymbols$i)
36485
+ for (var prop of __getOwnPropSymbols$i(source)) {
36486
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$i.call(source, prop))
36433
36487
  target[prop] = source[prop];
36434
36488
  }
36435
36489
  return target;
@@ -36458,7 +36512,7 @@ const useUpdateSalesOrderShipment = () => {
36458
36512
  const { client } = useShipEngine();
36459
36513
  return reactQuery.useMutation({
36460
36514
  mutationFn: (_a) => __async$i(void 0, null, function* () {
36461
- var _b = _a, { shipmentId } = _b, shipment = __objRest$a(_b, ["shipmentId"]);
36515
+ var _b = _a, { shipmentId } = _b, shipment = __objRest$b(_b, ["shipmentId"]);
36462
36516
  const result = yield client.salesOrderShipments.update(shipmentId, shipment);
36463
36517
  return result.data;
36464
36518
  }),
@@ -36467,25 +36521,25 @@ const useUpdateSalesOrderShipment = () => {
36467
36521
  });
36468
36522
  };
36469
36523
 
36470
- var __defProp$e = Object.defineProperty;
36471
- var __defProps$b = Object.defineProperties;
36472
- var __getOwnPropDescs$b = Object.getOwnPropertyDescriptors;
36473
- var __getOwnPropSymbols$g = Object.getOwnPropertySymbols;
36474
- var __hasOwnProp$g = Object.prototype.hasOwnProperty;
36475
- var __propIsEnum$g = Object.prototype.propertyIsEnumerable;
36476
- var __defNormalProp$e = (obj, key, value) => key in obj ? __defProp$e(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
36477
- var __spreadValues$e = (a, b) => {
36524
+ var __defProp$f = Object.defineProperty;
36525
+ var __defProps$c = Object.defineProperties;
36526
+ var __getOwnPropDescs$c = Object.getOwnPropertyDescriptors;
36527
+ var __getOwnPropSymbols$h = Object.getOwnPropertySymbols;
36528
+ var __hasOwnProp$h = Object.prototype.hasOwnProperty;
36529
+ var __propIsEnum$h = Object.prototype.propertyIsEnumerable;
36530
+ var __defNormalProp$f = (obj, key, value) => key in obj ? __defProp$f(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
36531
+ var __spreadValues$f = (a, b) => {
36478
36532
  for (var prop in b || (b = {}))
36479
- if (__hasOwnProp$g.call(b, prop))
36480
- __defNormalProp$e(a, prop, b[prop]);
36481
- if (__getOwnPropSymbols$g)
36482
- for (var prop of __getOwnPropSymbols$g(b)) {
36483
- if (__propIsEnum$g.call(b, prop))
36484
- __defNormalProp$e(a, prop, b[prop]);
36533
+ if (__hasOwnProp$h.call(b, prop))
36534
+ __defNormalProp$f(a, prop, b[prop]);
36535
+ if (__getOwnPropSymbols$h)
36536
+ for (var prop of __getOwnPropSymbols$h(b)) {
36537
+ if (__propIsEnum$h.call(b, prop))
36538
+ __defNormalProp$f(a, prop, b[prop]);
36485
36539
  }
36486
36540
  return a;
36487
36541
  };
36488
- var __spreadProps$b = (a, b) => __defProps$b(a, __getOwnPropDescs$b(b));
36542
+ var __spreadProps$c = (a, b) => __defProps$c(a, __getOwnPropDescs$c(b));
36489
36543
  var __async$h = (__this, __arguments, generator) => {
36490
36544
  return new Promise((resolve, reject) => {
36491
36545
  var fulfilled = (value) => {
@@ -36527,7 +36581,7 @@ const useCreateShipment = () => {
36527
36581
  postalCode: "",
36528
36582
  stateProvince: ""
36529
36583
  };
36530
- return (yield client.shipments.create(__spreadProps$b(__spreadValues$e({}, shipment), {
36584
+ return (yield client.shipments.create(__spreadProps$c(__spreadValues$f({}, shipment), {
36531
36585
  shipTo
36532
36586
  }))).data;
36533
36587
  }),
@@ -36536,10 +36590,44 @@ const useCreateShipment = () => {
36536
36590
  });
36537
36591
  };
36538
36592
 
36539
- const useGetShipmentRates = (shipmentId, createdAtStart) => {
36593
+ var __defProp$e = Object.defineProperty;
36594
+ var __defProps$b = Object.defineProperties;
36595
+ var __getOwnPropDescs$b = Object.getOwnPropertyDescriptors;
36596
+ var __getOwnPropSymbols$g = Object.getOwnPropertySymbols;
36597
+ var __hasOwnProp$g = Object.prototype.hasOwnProperty;
36598
+ var __propIsEnum$g = Object.prototype.propertyIsEnumerable;
36599
+ var __defNormalProp$e = (obj, key, value) => key in obj ? __defProp$e(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
36600
+ var __spreadValues$e = (a, b) => {
36601
+ for (var prop in b || (b = {}))
36602
+ if (__hasOwnProp$g.call(b, prop))
36603
+ __defNormalProp$e(a, prop, b[prop]);
36604
+ if (__getOwnPropSymbols$g)
36605
+ for (var prop of __getOwnPropSymbols$g(b)) {
36606
+ if (__propIsEnum$g.call(b, prop))
36607
+ __defNormalProp$e(a, prop, b[prop]);
36608
+ }
36609
+ return a;
36610
+ };
36611
+ var __spreadProps$b = (a, b) => __defProps$b(a, __getOwnPropDescs$b(b));
36612
+ var __objRest$a = (source, exclude) => {
36613
+ var target = {};
36614
+ for (var prop in source)
36615
+ if (__hasOwnProp$g.call(source, prop) && exclude.indexOf(prop) < 0)
36616
+ target[prop] = source[prop];
36617
+ if (source != null && __getOwnPropSymbols$g)
36618
+ for (var prop of __getOwnPropSymbols$g(source)) {
36619
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$g.call(source, prop))
36620
+ target[prop] = source[prop];
36621
+ }
36622
+ return target;
36623
+ };
36624
+ const useGetShipmentRates = (params) => {
36540
36625
  const { client } = useShipEngine();
36541
- return reactQuery.useQuery({
36542
- enabled: shipmentId !== void 0,
36626
+ const _a = params, { queryFnParams } = _a, rest = __objRest$a(_a, ["queryFnParams"]);
36627
+ const { createdAtStart, shipmentId } = queryFnParams;
36628
+ return reactQuery.useQuery(__spreadProps$b(__spreadValues$e({
36629
+ enabled: shipmentId !== void 0
36630
+ }, rest), {
36543
36631
  onError,
36544
36632
  queryFn: () => {
36545
36633
  if (shipmentId) {
@@ -36547,9 +36635,9 @@ const useGetShipmentRates = (shipmentId, createdAtStart) => {
36547
36635
  }
36548
36636
  return Promise.reject(new Error("shipmentId is required"));
36549
36637
  },
36550
- queryKey: ["useGetShipmentRates", shipmentId, createdAtStart],
36638
+ queryKey: ["useGetShipmentRates", queryFnParams],
36551
36639
  select: (result) => result.data
36552
- });
36640
+ }));
36553
36641
  };
36554
36642
 
36555
36643
  var __defProp$d = Object.defineProperty;
@@ -38896,6 +38984,7 @@ exports.useUpdateAccountSettings = useUpdateAccountSettings;
38896
38984
  exports.useUpdateAutoFunding = useUpdateAutoFunding;
38897
38985
  exports.useUpdateConnectionsCarrierSettings = useUpdateConnectionsCarrierSettings;
38898
38986
  exports.useUpdateFundingSource = useUpdateFundingSource;
38987
+ exports.useUpdateOrderSource = useUpdateOrderSource;
38899
38988
  exports.useUpdateRateCard = useUpdateRateCard;
38900
38989
  exports.useUpdateSalesOrderShipment = useUpdateSalesOrderShipment;
38901
38990
  exports.useUpdateWarehouse = useUpdateWarehouse;