@shipengine/alchemy 6.0.29 → 6.0.30

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 +438 -360
  2. package/index.mjs +439 -362
  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$H = Object.getOwnPropertySymbols;
10816
- var __hasOwnProp$H = Object.prototype.hasOwnProperty;
10817
- var __propIsEnum$H = Object.prototype.propertyIsEnumerable;
10818
- var __objRest$p = (source, exclude) => {
10815
+ var __getOwnPropSymbols$I = Object.getOwnPropertySymbols;
10816
+ var __hasOwnProp$I = Object.prototype.hasOwnProperty;
10817
+ var __propIsEnum$I = Object.prototype.propertyIsEnumerable;
10818
+ var __objRest$q = (source, exclude) => {
10819
10819
  var target = {};
10820
10820
  for (var prop in source)
10821
- if (__hasOwnProp$H.call(source, prop) && exclude.indexOf(prop) < 0)
10821
+ if (__hasOwnProp$I.call(source, prop) && exclude.indexOf(prop) < 0)
10822
10822
  target[prop] = source[prop];
10823
- if (source != null && __getOwnPropSymbols$H)
10824
- for (var prop of __getOwnPropSymbols$H(source)) {
10825
- if (exclude.indexOf(prop) < 0 && __propIsEnum$H.call(source, prop))
10823
+ if (source != null && __getOwnPropSymbols$I)
10824
+ for (var prop of __getOwnPropSymbols$I(source)) {
10825
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$I.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$p(_b, ["message"]);
10839
+ var _b = _a, { message } = _b, options = __objRest$q(_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$G = Object.getOwnPropertySymbols;
10959
- var __hasOwnProp$G = Object.prototype.hasOwnProperty;
10960
- var __propIsEnum$G = Object.prototype.propertyIsEnumerable;
10961
- var __objRest$o = (source, exclude) => {
10958
+ var __getOwnPropSymbols$H = Object.getOwnPropertySymbols;
10959
+ var __hasOwnProp$H = Object.prototype.hasOwnProperty;
10960
+ var __propIsEnum$H = Object.prototype.propertyIsEnumerable;
10961
+ var __objRest$p = (source, exclude) => {
10962
10962
  var target = {};
10963
10963
  for (var prop in source)
10964
- if (__hasOwnProp$G.call(source, prop) && exclude.indexOf(prop) < 0)
10964
+ if (__hasOwnProp$H.call(source, prop) && exclude.indexOf(prop) < 0)
10965
10965
  target[prop] = source[prop];
10966
- if (source != null && __getOwnPropSymbols$G)
10967
- for (var prop of __getOwnPropSymbols$G(source)) {
10968
- if (exclude.indexOf(prop) < 0 && __propIsEnum$G.call(source, prop))
10966
+ if (source != null && __getOwnPropSymbols$H)
10967
+ for (var prop of __getOwnPropSymbols$H(source)) {
10968
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$H.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$o(_b, ["labelImageId"]);
11000
+ var _b = _a, { labelImageId } = _b, data = __objRest$p(_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$X = (__this, __arguments, generator) => {
13710
+ var __async$Y = (__this, __arguments, generator) => {
13711
13711
  return new Promise((resolve, reject) => {
13712
13712
  var fulfilled = (value) => {
13713
13713
  try {
@@ -13727,7 +13727,7 @@ var __async$X = (__this, __arguments, generator) => {
13727
13727
  step((generator = generator.apply(__this, __arguments)).next());
13728
13728
  });
13729
13729
  };
13730
- const getEndUserIpAddress = () => __async$X(void 0, null, function* () {
13730
+ const getEndUserIpAddress = () => __async$Y(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)) {
@@ -13784,38 +13784,38 @@ const decamelizeKeys = (obj, separator = "_") => {
13784
13784
  return obj;
13785
13785
  };
13786
13786
 
13787
- var __defProp$u = Object.defineProperty;
13788
- var __defProps$o = Object.defineProperties;
13789
- var __getOwnPropDescs$o = Object.getOwnPropertyDescriptors;
13790
- var __getOwnPropSymbols$F = Object.getOwnPropertySymbols;
13791
- var __hasOwnProp$F = Object.prototype.hasOwnProperty;
13792
- var __propIsEnum$F = Object.prototype.propertyIsEnumerable;
13793
- var __defNormalProp$u = (obj, key, value) => key in obj ? __defProp$u(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
13794
- var __spreadValues$u = (a, b) => {
13787
+ var __defProp$v = Object.defineProperty;
13788
+ var __defProps$p = Object.defineProperties;
13789
+ var __getOwnPropDescs$p = Object.getOwnPropertyDescriptors;
13790
+ var __getOwnPropSymbols$G = Object.getOwnPropertySymbols;
13791
+ var __hasOwnProp$G = Object.prototype.hasOwnProperty;
13792
+ var __propIsEnum$G = Object.prototype.propertyIsEnumerable;
13793
+ var __defNormalProp$v = (obj, key, value) => key in obj ? __defProp$v(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
13794
+ var __spreadValues$v = (a, b) => {
13795
13795
  for (var prop in b || (b = {}))
13796
- if (__hasOwnProp$F.call(b, prop))
13797
- __defNormalProp$u(a, prop, b[prop]);
13798
- if (__getOwnPropSymbols$F)
13799
- for (var prop of __getOwnPropSymbols$F(b)) {
13800
- if (__propIsEnum$F.call(b, prop))
13801
- __defNormalProp$u(a, prop, b[prop]);
13796
+ if (__hasOwnProp$G.call(b, prop))
13797
+ __defNormalProp$v(a, prop, b[prop]);
13798
+ if (__getOwnPropSymbols$G)
13799
+ for (var prop of __getOwnPropSymbols$G(b)) {
13800
+ if (__propIsEnum$G.call(b, prop))
13801
+ __defNormalProp$v(a, prop, b[prop]);
13802
13802
  }
13803
13803
  return a;
13804
13804
  };
13805
- var __spreadProps$o = (a, b) => __defProps$o(a, __getOwnPropDescs$o(b));
13806
- var __objRest$n = (source, exclude) => {
13805
+ var __spreadProps$p = (a, b) => __defProps$p(a, __getOwnPropDescs$p(b));
13806
+ var __objRest$o = (source, exclude) => {
13807
13807
  var target = {};
13808
13808
  for (var prop in source)
13809
- if (__hasOwnProp$F.call(source, prop) && exclude.indexOf(prop) < 0)
13809
+ if (__hasOwnProp$G.call(source, prop) && exclude.indexOf(prop) < 0)
13810
13810
  target[prop] = source[prop];
13811
- if (source != null && __getOwnPropSymbols$F)
13812
- for (var prop of __getOwnPropSymbols$F(source)) {
13813
- if (exclude.indexOf(prop) < 0 && __propIsEnum$F.call(source, prop))
13811
+ if (source != null && __getOwnPropSymbols$G)
13812
+ for (var prop of __getOwnPropSymbols$G(source)) {
13813
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$G.call(source, prop))
13814
13814
  target[prop] = source[prop];
13815
13815
  }
13816
13816
  return target;
13817
13817
  };
13818
- var __async$W = (__this, __arguments, generator) => {
13818
+ var __async$X = (__this, __arguments, generator) => {
13819
13819
  return new Promise((resolve, reject) => {
13820
13820
  var fulfilled = (value) => {
13821
13821
  try {
@@ -13855,12 +13855,12 @@ class CarriersAPI {
13855
13855
  /**
13856
13856
  * The `connect` method connects a carrier account to a user's ShipEngine account.
13857
13857
  */
13858
- this.connect = (_a) => __async$W(this, null, function* () {
13859
- var _b = _a, { carrierCode } = _b, connection = __objRest$n(_b, ["carrierCode"]);
13858
+ this.connect = (_a) => __async$X(this, null, function* () {
13859
+ var _b = _a, { carrierCode } = _b, connection = __objRest$o(_b, ["carrierCode"]);
13860
13860
  const endUserIpAddress = yield getEndUserIpAddress();
13861
13861
  if (!endUserIpAddress)
13862
13862
  return Promise.reject([new CodedError("Unable to get IP address")]);
13863
- return yield this.client.post(`/v1/registration/${carrierCode}`, __spreadProps$o(__spreadValues$u({}, connection), {
13863
+ return yield this.client.post(`/v1/registration/${carrierCode}`, __spreadProps$p(__spreadValues$v({}, connection), {
13864
13864
  endUserIpAddress
13865
13865
  }));
13866
13866
  });
@@ -13946,7 +13946,7 @@ class CarriersAPI {
13946
13946
  }
13947
13947
  }
13948
13948
 
13949
- var __async$V = (__this, __arguments, generator) => {
13949
+ var __async$W = (__this, __arguments, generator) => {
13950
13950
  return new Promise((resolve, reject) => {
13951
13951
  var fulfilled = (value) => {
13952
13952
  try {
@@ -13988,7 +13988,7 @@ class ConnectionsAPI {
13988
13988
  /**
13989
13989
  * The `connectCarrier` method connects a carrier to account.
13990
13990
  */
13991
- this.connectCarrier = (carrierName, formData) => __async$V(this, null, function* () {
13991
+ this.connectCarrier = (carrierName, formData) => __async$W(this, null, function* () {
13992
13992
  return yield this.client.post(
13993
13993
  `/v1/connections/carriers/${carrierName}`,
13994
13994
  formData,
@@ -16163,23 +16163,23 @@ class CustomPackagesAPI {
16163
16163
  }
16164
16164
  }
16165
16165
 
16166
- var __defProp$t = Object.defineProperty;
16167
- var __getOwnPropSymbols$E = Object.getOwnPropertySymbols;
16168
- var __hasOwnProp$E = Object.prototype.hasOwnProperty;
16169
- var __propIsEnum$E = Object.prototype.propertyIsEnumerable;
16170
- var __defNormalProp$t = (obj, key, value) => key in obj ? __defProp$t(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
16171
- var __spreadValues$t = (a, b) => {
16166
+ var __defProp$u = Object.defineProperty;
16167
+ var __getOwnPropSymbols$F = Object.getOwnPropertySymbols;
16168
+ var __hasOwnProp$F = Object.prototype.hasOwnProperty;
16169
+ var __propIsEnum$F = Object.prototype.propertyIsEnumerable;
16170
+ var __defNormalProp$u = (obj, key, value) => key in obj ? __defProp$u(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
16171
+ var __spreadValues$u = (a, b) => {
16172
16172
  for (var prop in b || (b = {}))
16173
- if (__hasOwnProp$E.call(b, prop))
16174
- __defNormalProp$t(a, prop, b[prop]);
16175
- if (__getOwnPropSymbols$E)
16176
- for (var prop of __getOwnPropSymbols$E(b)) {
16177
- if (__propIsEnum$E.call(b, prop))
16178
- __defNormalProp$t(a, prop, b[prop]);
16173
+ if (__hasOwnProp$F.call(b, prop))
16174
+ __defNormalProp$u(a, prop, b[prop]);
16175
+ if (__getOwnPropSymbols$F)
16176
+ for (var prop of __getOwnPropSymbols$F(b)) {
16177
+ if (__propIsEnum$F.call(b, prop))
16178
+ __defNormalProp$u(a, prop, b[prop]);
16179
16179
  }
16180
16180
  return a;
16181
16181
  };
16182
- var __async$U = (__this, __arguments, generator) => {
16182
+ var __async$V = (__this, __arguments, generator) => {
16183
16183
  return new Promise((resolve, reject) => {
16184
16184
  var fulfilled = (value) => {
16185
16185
  try {
@@ -16218,12 +16218,12 @@ class FundingSourcesAPI {
16218
16218
  * The `create` method creates a new funding source for a given user. This requires
16219
16219
  * payment information to be collected from the user.
16220
16220
  */
16221
- this.create = (createFundingSource) => __async$U(this, null, function* () {
16221
+ this.create = (createFundingSource) => __async$V(this, null, function* () {
16222
16222
  const endUserIpAddress = yield getEndUserIpAddress();
16223
16223
  if (!endUserIpAddress) {
16224
16224
  return Promise.reject([new CodedError("Unable to get IP address")]);
16225
16225
  }
16226
- return yield this.client.post("/v1/funding_sources", __spreadValues$t({
16226
+ return yield this.client.post("/v1/funding_sources", __spreadValues$u({
16227
16227
  endUserIpAddress
16228
16228
  }, createFundingSource));
16229
16229
  });
@@ -16232,7 +16232,7 @@ class FundingSourcesAPI {
16232
16232
  * user to update the billing address or payment information associated with the
16233
16233
  * funding source.
16234
16234
  */
16235
- this.update = (billingInfo, creditCardInfo, fundingSourceId) => __async$U(this, null, function* () {
16235
+ this.update = (billingInfo, creditCardInfo, fundingSourceId) => __async$V(this, null, function* () {
16236
16236
  const endUserIpAddress = yield getEndUserIpAddress();
16237
16237
  if (!endUserIpAddress) {
16238
16238
  return Promise.reject([new CodedError("Unable to get IP address")]);
@@ -16250,19 +16250,19 @@ class FundingSourcesAPI {
16250
16250
  * The `registerCarrier` method registers a carrier account and associates
16251
16251
  * it with a given funding source.
16252
16252
  */
16253
- this.registerCarrier = (carrier) => __async$U(this, null, function* () {
16253
+ this.registerCarrier = (carrier) => __async$V(this, null, function* () {
16254
16254
  const endUserIpAddress = yield getEndUserIpAddress();
16255
16255
  if (!endUserIpAddress) {
16256
16256
  return Promise.reject([new CodedError("Unable to get IP address")]);
16257
16257
  }
16258
- return yield this.client.post("/v1/registration/funding_source", __spreadValues$t({
16258
+ return yield this.client.post("/v1/registration/funding_source", __spreadValues$u({
16259
16259
  endUserIpAddress
16260
16260
  }, carrier));
16261
16261
  });
16262
16262
  /**
16263
16263
  * The `addFunds` method allows you to add funds to a funding source.
16264
16264
  */
16265
- this.addFunds = (amount, fundingSourceId) => __async$U(this, null, function* () {
16265
+ this.addFunds = (amount, fundingSourceId) => __async$V(this, null, function* () {
16266
16266
  return yield this.client.put(
16267
16267
  `/v1/funding_sources/${fundingSourceId}/add_funds`,
16268
16268
  amount
@@ -16272,7 +16272,7 @@ class FundingSourcesAPI {
16272
16272
  * The `metadata` method returns seller-specific requirements for creating funding sources
16273
16273
  * and attaching carriers
16274
16274
  */
16275
- this.metadata = () => __async$U(this, null, function* () {
16275
+ this.metadata = () => __async$V(this, null, function* () {
16276
16276
  return yield this.client.get("/v1/funding_sources/metadata");
16277
16277
  });
16278
16278
  /**
@@ -16324,7 +16324,7 @@ class InsuranceAPI {
16324
16324
  }
16325
16325
  }
16326
16326
 
16327
- var __async$T = (__this, __arguments, generator) => {
16327
+ var __async$U = (__this, __arguments, generator) => {
16328
16328
  return new Promise((resolve, reject) => {
16329
16329
  var fulfilled = (value) => {
16330
16330
  try {
@@ -16356,13 +16356,13 @@ class InvoiceAddressAPI {
16356
16356
  /**
16357
16357
  * The `create` method creates a new invoice address for a given user.
16358
16358
  */
16359
- this.create = (invoiceAddress) => __async$T(this, null, function* () {
16359
+ this.create = (invoiceAddress) => __async$U(this, null, function* () {
16360
16360
  return yield this.client.post("/v1/invoice_address", invoiceAddress);
16361
16361
  });
16362
16362
  /**
16363
16363
  * The `update` method updates a invoice address for a given user.
16364
16364
  */
16365
- this.update = (invoiceAddress) => __async$T(this, null, function* () {
16365
+ this.update = (invoiceAddress) => __async$U(this, null, function* () {
16366
16366
  return yield this.client.put("/v1/invoice_address", invoiceAddress);
16367
16367
  });
16368
16368
  this.client = client;
@@ -16404,17 +16404,17 @@ class LabelsAPI {
16404
16404
  }
16405
16405
  }
16406
16406
 
16407
- var __getOwnPropSymbols$D = Object.getOwnPropertySymbols;
16408
- var __hasOwnProp$D = Object.prototype.hasOwnProperty;
16409
- var __propIsEnum$D = Object.prototype.propertyIsEnumerable;
16410
- var __objRest$m = (source, exclude) => {
16407
+ var __getOwnPropSymbols$E = Object.getOwnPropertySymbols;
16408
+ var __hasOwnProp$E = Object.prototype.hasOwnProperty;
16409
+ var __propIsEnum$E = Object.prototype.propertyIsEnumerable;
16410
+ var __objRest$n = (source, exclude) => {
16411
16411
  var target = {};
16412
16412
  for (var prop in source)
16413
- if (__hasOwnProp$D.call(source, prop) && exclude.indexOf(prop) < 0)
16413
+ if (__hasOwnProp$E.call(source, prop) && exclude.indexOf(prop) < 0)
16414
16414
  target[prop] = source[prop];
16415
- if (source != null && __getOwnPropSymbols$D)
16416
- for (var prop of __getOwnPropSymbols$D(source)) {
16417
- if (exclude.indexOf(prop) < 0 && __propIsEnum$D.call(source, prop))
16415
+ if (source != null && __getOwnPropSymbols$E)
16416
+ for (var prop of __getOwnPropSymbols$E(source)) {
16417
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$E.call(source, prop))
16418
16418
  target[prop] = source[prop];
16419
16419
  }
16420
16420
  return target;
@@ -16446,7 +16446,7 @@ class OrderSourcesAPI {
16446
16446
  * The `update` method will allow the user to update a connected Order Source
16447
16447
  */
16448
16448
  this.update = (_a) => {
16449
- var _b = _a, { orderSourceId } = _b, rest = __objRest$m(_b, ["orderSourceId"]);
16449
+ var _b = _a, { orderSourceId } = _b, rest = __objRest$n(_b, ["orderSourceId"]);
16450
16450
  return this.client.put(`/v-beta/order_sources/${orderSourceId}`, rest);
16451
16451
  };
16452
16452
  /**
@@ -16535,19 +16535,19 @@ class RateCardsAPI {
16535
16535
  }
16536
16536
  }
16537
16537
 
16538
- var __defProp$s = Object.defineProperty;
16539
- var __getOwnPropSymbols$C = Object.getOwnPropertySymbols;
16540
- var __hasOwnProp$C = Object.prototype.hasOwnProperty;
16541
- var __propIsEnum$C = Object.prototype.propertyIsEnumerable;
16542
- var __defNormalProp$s = (obj, key, value) => key in obj ? __defProp$s(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
16543
- var __spreadValues$s = (a, b) => {
16538
+ var __defProp$t = Object.defineProperty;
16539
+ var __getOwnPropSymbols$D = Object.getOwnPropertySymbols;
16540
+ var __hasOwnProp$D = Object.prototype.hasOwnProperty;
16541
+ var __propIsEnum$D = Object.prototype.propertyIsEnumerable;
16542
+ var __defNormalProp$t = (obj, key, value) => key in obj ? __defProp$t(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
16543
+ var __spreadValues$t = (a, b) => {
16544
16544
  for (var prop in b || (b = {}))
16545
- if (__hasOwnProp$C.call(b, prop))
16546
- __defNormalProp$s(a, prop, b[prop]);
16547
- if (__getOwnPropSymbols$C)
16548
- for (var prop of __getOwnPropSymbols$C(b)) {
16549
- if (__propIsEnum$C.call(b, prop))
16550
- __defNormalProp$s(a, prop, b[prop]);
16545
+ if (__hasOwnProp$D.call(b, prop))
16546
+ __defNormalProp$t(a, prop, b[prop]);
16547
+ if (__getOwnPropSymbols$D)
16548
+ for (var prop of __getOwnPropSymbols$D(b)) {
16549
+ if (__propIsEnum$D.call(b, prop))
16550
+ __defNormalProp$t(a, prop, b[prop]);
16551
16551
  }
16552
16552
  return a;
16553
16553
  };
@@ -16569,7 +16569,7 @@ class RatesAPI {
16569
16569
  * method.
16570
16570
  */
16571
16571
  this.estimate = (params) => {
16572
- return this.client.post("/v1/rates/estimate", __spreadValues$s({}, params));
16572
+ return this.client.post("/v1/rates/estimate", __spreadValues$t({}, params));
16573
16573
  };
16574
16574
  this.client = client;
16575
16575
  }
@@ -16649,7 +16649,7 @@ class SalesOrdersAPI {
16649
16649
  }
16650
16650
  }
16651
16651
 
16652
- var __async$S = (__this, __arguments, generator) => {
16652
+ var __async$T = (__this, __arguments, generator) => {
16653
16653
  return new Promise((resolve, reject) => {
16654
16654
  var fulfilled = (value) => {
16655
16655
  try {
@@ -16707,7 +16707,7 @@ class SellersAPI {
16707
16707
  /**
16708
16708
  * Deletes an API Key
16709
16709
  */
16710
- this.deleteSellerApiKey = (_0) => __async$S(this, [_0], function* ({
16710
+ this.deleteSellerApiKey = (_0) => __async$T(this, [_0], function* ({
16711
16711
  encryptedApiKey,
16712
16712
  sellerId,
16713
16713
  isSandbox
@@ -16753,19 +16753,19 @@ class SellersAPI {
16753
16753
  }
16754
16754
  }
16755
16755
 
16756
- var __defProp$r = Object.defineProperty;
16757
- var __getOwnPropSymbols$B = Object.getOwnPropertySymbols;
16758
- var __hasOwnProp$B = Object.prototype.hasOwnProperty;
16759
- var __propIsEnum$B = Object.prototype.propertyIsEnumerable;
16760
- var __defNormalProp$r = (obj, key, value) => key in obj ? __defProp$r(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
16761
- var __spreadValues$r = (a, b) => {
16756
+ var __defProp$s = Object.defineProperty;
16757
+ var __getOwnPropSymbols$C = Object.getOwnPropertySymbols;
16758
+ var __hasOwnProp$C = Object.prototype.hasOwnProperty;
16759
+ var __propIsEnum$C = Object.prototype.propertyIsEnumerable;
16760
+ var __defNormalProp$s = (obj, key, value) => key in obj ? __defProp$s(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
16761
+ var __spreadValues$s = (a, b) => {
16762
16762
  for (var prop in b || (b = {}))
16763
- if (__hasOwnProp$B.call(b, prop))
16764
- __defNormalProp$r(a, prop, b[prop]);
16765
- if (__getOwnPropSymbols$B)
16766
- for (var prop of __getOwnPropSymbols$B(b)) {
16767
- if (__propIsEnum$B.call(b, prop))
16768
- __defNormalProp$r(a, prop, b[prop]);
16763
+ if (__hasOwnProp$C.call(b, prop))
16764
+ __defNormalProp$s(a, prop, b[prop]);
16765
+ if (__getOwnPropSymbols$C)
16766
+ for (var prop of __getOwnPropSymbols$C(b)) {
16767
+ if (__propIsEnum$C.call(b, prop))
16768
+ __defNormalProp$s(a, prop, b[prop]);
16769
16769
  }
16770
16770
  return a;
16771
16771
  };
@@ -16777,7 +16777,7 @@ class ServicePointsAPI {
16777
16777
  * Either an address, coordinates, or an address query
16778
16778
  */
16779
16779
  this.list = (options) => {
16780
- return this.client.post("/v1/service_points/list", __spreadValues$r({}, options));
16780
+ return this.client.post("/v1/service_points/list", __spreadValues$s({}, options));
16781
16781
  };
16782
16782
  /**
16783
16783
  * Get a specific service point by its carrier code, country code, and id
@@ -16795,7 +16795,7 @@ class ServicePointsAPI {
16795
16795
  }
16796
16796
  }
16797
16797
 
16798
- var __async$R = (__this, __arguments, generator) => {
16798
+ var __async$S = (__this, __arguments, generator) => {
16799
16799
  return new Promise((resolve, reject) => {
16800
16800
  var fulfilled = (value) => {
16801
16801
  try {
@@ -16844,7 +16844,7 @@ class ShipmentsAPI {
16844
16844
  * The `create` method allows for creating shipments based on a list of shipment
16845
16845
  * items passed into this method.
16846
16846
  */
16847
- this.create = (...shipments) => __async$R(this, null, function* () {
16847
+ this.create = (...shipments) => __async$S(this, null, function* () {
16848
16848
  return this.client.post("/v1/shipments", {
16849
16849
  shipments
16850
16850
  });
@@ -34236,26 +34236,26 @@ class WebhooksAPI {
34236
34236
  }
34237
34237
  }
34238
34238
 
34239
- var __defProp$q = Object.defineProperty;
34240
- var __defProps$n = Object.defineProperties;
34241
- var __getOwnPropDescs$n = Object.getOwnPropertyDescriptors;
34242
- var __getOwnPropSymbols$A = Object.getOwnPropertySymbols;
34243
- var __hasOwnProp$A = Object.prototype.hasOwnProperty;
34244
- var __propIsEnum$A = Object.prototype.propertyIsEnumerable;
34245
- var __defNormalProp$q = (obj, key, value) => key in obj ? __defProp$q(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
34246
- var __spreadValues$q = (a, b) => {
34239
+ var __defProp$r = Object.defineProperty;
34240
+ var __defProps$o = Object.defineProperties;
34241
+ var __getOwnPropDescs$o = Object.getOwnPropertyDescriptors;
34242
+ var __getOwnPropSymbols$B = Object.getOwnPropertySymbols;
34243
+ var __hasOwnProp$B = Object.prototype.hasOwnProperty;
34244
+ var __propIsEnum$B = Object.prototype.propertyIsEnumerable;
34245
+ var __defNormalProp$r = (obj, key, value) => key in obj ? __defProp$r(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
34246
+ var __spreadValues$r = (a, b) => {
34247
34247
  for (var prop in b || (b = {}))
34248
- if (__hasOwnProp$A.call(b, prop))
34249
- __defNormalProp$q(a, prop, b[prop]);
34250
- if (__getOwnPropSymbols$A)
34251
- for (var prop of __getOwnPropSymbols$A(b)) {
34252
- if (__propIsEnum$A.call(b, prop))
34253
- __defNormalProp$q(a, prop, b[prop]);
34248
+ if (__hasOwnProp$B.call(b, prop))
34249
+ __defNormalProp$r(a, prop, b[prop]);
34250
+ if (__getOwnPropSymbols$B)
34251
+ for (var prop of __getOwnPropSymbols$B(b)) {
34252
+ if (__propIsEnum$B.call(b, prop))
34253
+ __defNormalProp$r(a, prop, b[prop]);
34254
34254
  }
34255
34255
  return a;
34256
34256
  };
34257
- var __spreadProps$n = (a, b) => __defProps$n(a, __getOwnPropDescs$n(b));
34258
- var __async$Q = (__this, __arguments, generator) => {
34257
+ var __spreadProps$o = (a, b) => __defProps$o(a, __getOwnPropDescs$o(b));
34258
+ var __async$R = (__this, __arguments, generator) => {
34259
34259
  return new Promise((resolve, reject) => {
34260
34260
  var fulfilled = (value) => {
34261
34261
  try {
@@ -34278,7 +34278,7 @@ var __async$Q = (__this, __arguments, generator) => {
34278
34278
  const logger$1 = E({
34279
34279
  level: process.env.NODE_ENV === "production" ? "fatal" : "info",
34280
34280
  name: "shipengine-api",
34281
- serializers: __spreadProps$n(__spreadValues$q({}, k), {
34281
+ serializers: __spreadProps$o(__spreadValues$r({}, k), {
34282
34282
  req: (req) => ({
34283
34283
  headers: req.headers,
34284
34284
  method: req.method,
@@ -34303,7 +34303,7 @@ class ShipEngineAPI {
34303
34303
  this.getSandboxToken = getSandboxToken;
34304
34304
  const client = axios.create({
34305
34305
  baseURL,
34306
- headers: __spreadProps$n(__spreadValues$q({}, headers), {
34306
+ headers: __spreadProps$o(__spreadValues$r({}, headers), {
34307
34307
  "Content-Type": "application/json"
34308
34308
  }),
34309
34309
  paramsSerializer: (params) => lib.stringify(decamelizeKeys(params), { arrayFormat: "brackets" }),
@@ -34338,7 +34338,7 @@ class ShipEngineAPI {
34338
34338
  });
34339
34339
  client.defaults.headers.common["Authorization"] = `Bearer ${token}`;
34340
34340
  client.interceptors.request.use(
34341
- (config) => __async$Q(this, null, function* () {
34341
+ (config) => __async$R(this, null, function* () {
34342
34342
  if (config.isSandbox) {
34343
34343
  if (!this.sandboxToken) {
34344
34344
  this.sandboxToken = yield getSandboxToken == null ? void 0 : getSandboxToken();
@@ -34365,7 +34365,7 @@ class ShipEngineAPI {
34365
34365
  );
34366
34366
  return res;
34367
34367
  },
34368
- (err) => __async$Q(this, null, function* () {
34368
+ (err) => __async$R(this, null, function* () {
34369
34369
  var _a, _b, _c, _d, _e;
34370
34370
  logger$1.error(
34371
34371
  { err, req: err.config, res: err.response },
@@ -34412,7 +34412,7 @@ class ShipEngineAPI {
34412
34412
  * that token (also known as Seller ID)
34413
34413
  */
34414
34414
  getTenant(isSandbox) {
34415
- return __async$Q(this, null, function* () {
34415
+ return __async$R(this, null, function* () {
34416
34416
  var _a;
34417
34417
  if (!isSandbox) {
34418
34418
  return this.getTenantFromToken(this.token);
@@ -34691,25 +34691,25 @@ const delay = (ms) => new Promise((resolve) => {
34691
34691
 
34692
34692
  const onError = (_errors) => _default();
34693
34693
 
34694
- var __defProp$p = Object.defineProperty;
34695
- var __defProps$m = Object.defineProperties;
34696
- var __getOwnPropDescs$m = Object.getOwnPropertyDescriptors;
34697
- var __getOwnPropSymbols$z = Object.getOwnPropertySymbols;
34698
- var __hasOwnProp$z = Object.prototype.hasOwnProperty;
34699
- var __propIsEnum$z = Object.prototype.propertyIsEnumerable;
34700
- var __defNormalProp$p = (obj, key, value) => key in obj ? __defProp$p(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
34701
- var __spreadValues$p = (a, b) => {
34694
+ var __defProp$q = Object.defineProperty;
34695
+ var __defProps$n = Object.defineProperties;
34696
+ var __getOwnPropDescs$n = Object.getOwnPropertyDescriptors;
34697
+ var __getOwnPropSymbols$A = Object.getOwnPropertySymbols;
34698
+ var __hasOwnProp$A = Object.prototype.hasOwnProperty;
34699
+ var __propIsEnum$A = Object.prototype.propertyIsEnumerable;
34700
+ var __defNormalProp$q = (obj, key, value) => key in obj ? __defProp$q(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
34701
+ var __spreadValues$q = (a, b) => {
34702
34702
  for (var prop in b || (b = {}))
34703
- if (__hasOwnProp$z.call(b, prop))
34704
- __defNormalProp$p(a, prop, b[prop]);
34705
- if (__getOwnPropSymbols$z)
34706
- for (var prop of __getOwnPropSymbols$z(b)) {
34707
- if (__propIsEnum$z.call(b, prop))
34708
- __defNormalProp$p(a, prop, b[prop]);
34703
+ if (__hasOwnProp$A.call(b, prop))
34704
+ __defNormalProp$q(a, prop, b[prop]);
34705
+ if (__getOwnPropSymbols$A)
34706
+ for (var prop of __getOwnPropSymbols$A(b)) {
34707
+ if (__propIsEnum$A.call(b, prop))
34708
+ __defNormalProp$q(a, prop, b[prop]);
34709
34709
  }
34710
34710
  return a;
34711
34711
  };
34712
- var __spreadProps$m = (a, b) => __defProps$m(a, __getOwnPropDescs$m(b));
34712
+ var __spreadProps$n = (a, b) => __defProps$n(a, __getOwnPropDescs$n(b));
34713
34713
  const streams = [];
34714
34714
  if (process.env.NODE_ENV === "production") {
34715
34715
  streams.push({
@@ -34718,7 +34718,7 @@ if (process.env.NODE_ENV === "production") {
34718
34718
  }
34719
34719
  const logger = E({
34720
34720
  name: "shipengine",
34721
- serializers: __spreadProps$m(__spreadValues$p({}, k), {
34721
+ serializers: __spreadProps$n(__spreadValues$q({}, k), {
34722
34722
  req: (req) => ({
34723
34723
  headers: req.headers,
34724
34724
  method: req.method,
@@ -34743,7 +34743,7 @@ const retryUntil = (callbackFn, retries = 10, timeoutBetweenAttempts = 1e3) => P
34743
34743
  throw error;
34744
34744
  });
34745
34745
 
34746
- var __async$P = (__this, __arguments, generator) => {
34746
+ var __async$Q = (__this, __arguments, generator) => {
34747
34747
  return new Promise((resolve, reject) => {
34748
34748
  var fulfilled = (value) => {
34749
34749
  try {
@@ -34766,7 +34766,7 @@ var __async$P = (__this, __arguments, generator) => {
34766
34766
  const useCreateAccountImage = () => {
34767
34767
  const { client } = useShipEngine();
34768
34768
  return reactQuery.useMutation({
34769
- mutationFn: (data) => __async$P(void 0, null, function* () {
34769
+ mutationFn: (data) => __async$Q(void 0, null, function* () {
34770
34770
  const result = yield client.accountSettings.createImage(data);
34771
34771
  return result.data;
34772
34772
  }),
@@ -34775,7 +34775,7 @@ const useCreateAccountImage = () => {
34775
34775
  });
34776
34776
  };
34777
34777
 
34778
- var __async$O = (__this, __arguments, generator) => {
34778
+ var __async$P = (__this, __arguments, generator) => {
34779
34779
  return new Promise((resolve, reject) => {
34780
34780
  var fulfilled = (value) => {
34781
34781
  try {
@@ -34798,7 +34798,7 @@ var __async$O = (__this, __arguments, generator) => {
34798
34798
  const useDeleteAccountImage = () => {
34799
34799
  const { client } = useShipEngine();
34800
34800
  return reactQuery.useMutation({
34801
- mutationFn: (labelImageId) => __async$O(void 0, null, function* () {
34801
+ mutationFn: (labelImageId) => __async$P(void 0, null, function* () {
34802
34802
  const result = yield client.accountSettings.deleteImage(labelImageId);
34803
34803
  return result.data;
34804
34804
  }),
@@ -34827,7 +34827,7 @@ const useGetAccountSettings = () => {
34827
34827
  });
34828
34828
  };
34829
34829
 
34830
- var __async$N = (__this, __arguments, generator) => {
34830
+ var __async$O = (__this, __arguments, generator) => {
34831
34831
  return new Promise((resolve, reject) => {
34832
34832
  var fulfilled = (value) => {
34833
34833
  try {
@@ -34850,7 +34850,7 @@ var __async$N = (__this, __arguments, generator) => {
34850
34850
  const useUpdateAccountImage = () => {
34851
34851
  const { client } = useShipEngine();
34852
34852
  return reactQuery.useMutation({
34853
- mutationFn: (data) => __async$N(void 0, null, function* () {
34853
+ mutationFn: (data) => __async$O(void 0, null, function* () {
34854
34854
  const result = yield client.accountSettings.updateImage(data);
34855
34855
  return result.data;
34856
34856
  }),
@@ -34859,7 +34859,7 @@ const useUpdateAccountImage = () => {
34859
34859
  });
34860
34860
  };
34861
34861
 
34862
- var __async$M = (__this, __arguments, generator) => {
34862
+ var __async$N = (__this, __arguments, generator) => {
34863
34863
  return new Promise((resolve, reject) => {
34864
34864
  var fulfilled = (value) => {
34865
34865
  try {
@@ -34882,7 +34882,7 @@ var __async$M = (__this, __arguments, generator) => {
34882
34882
  const useUpdateAccountSettings = () => {
34883
34883
  const { client } = useShipEngine();
34884
34884
  return reactQuery.useMutation({
34885
- mutationFn: (settings) => __async$M(void 0, null, function* () {
34885
+ mutationFn: (settings) => __async$N(void 0, null, function* () {
34886
34886
  const result = yield client.accountSettings.update(settings);
34887
34887
  return result.data;
34888
34888
  }),
@@ -34891,7 +34891,7 @@ const useUpdateAccountSettings = () => {
34891
34891
  });
34892
34892
  };
34893
34893
 
34894
- var __async$L = (__this, __arguments, generator) => {
34894
+ var __async$M = (__this, __arguments, generator) => {
34895
34895
  return new Promise((resolve, reject) => {
34896
34896
  var fulfilled = (value) => {
34897
34897
  try {
@@ -34914,7 +34914,7 @@ var __async$L = (__this, __arguments, generator) => {
34914
34914
  const useParseAddress = () => {
34915
34915
  const { client } = useShipEngine();
34916
34916
  return reactQuery.useMutation({
34917
- mutationFn: (_0) => __async$L(void 0, [_0], function* ({ address, text }) {
34917
+ mutationFn: (_0) => __async$M(void 0, [_0], function* ({ address, text }) {
34918
34918
  const result = yield client.addresses.parse(text, address);
34919
34919
  return result.data;
34920
34920
  }),
@@ -34923,7 +34923,7 @@ const useParseAddress = () => {
34923
34923
  });
34924
34924
  };
34925
34925
 
34926
- var __async$K = (__this, __arguments, generator) => {
34926
+ var __async$L = (__this, __arguments, generator) => {
34927
34927
  return new Promise((resolve, reject) => {
34928
34928
  var fulfilled = (value) => {
34929
34929
  try {
@@ -34946,7 +34946,7 @@ var __async$K = (__this, __arguments, generator) => {
34946
34946
  const useValidateAddresses = () => {
34947
34947
  const { client } = useShipEngine();
34948
34948
  return reactQuery.useMutation({
34949
- mutationFn: (addresses) => __async$K(void 0, null, function* () {
34949
+ mutationFn: (addresses) => __async$L(void 0, null, function* () {
34950
34950
  const result = yield client.addresses.validate(addresses);
34951
34951
  return result.data;
34952
34952
  }),
@@ -34955,7 +34955,7 @@ const useValidateAddresses = () => {
34955
34955
  });
34956
34956
  };
34957
34957
 
34958
- var __async$J = (__this, __arguments, generator) => {
34958
+ var __async$K = (__this, __arguments, generator) => {
34959
34959
  return new Promise((resolve, reject) => {
34960
34960
  var fulfilled = (value) => {
34961
34961
  try {
@@ -34978,7 +34978,7 @@ var __async$J = (__this, __arguments, generator) => {
34978
34978
  const useAddFunds = () => {
34979
34979
  const { client } = useShipEngine();
34980
34980
  return reactQuery.useMutation({
34981
- mutationFn: (_0) => __async$J(void 0, [_0], function* ({ carrierId, funds }) {
34981
+ mutationFn: (_0) => __async$K(void 0, [_0], function* ({ carrierId, funds }) {
34982
34982
  const result = yield client.carriers.addFunds(carrierId, funds);
34983
34983
  return result.data;
34984
34984
  }),
@@ -34987,7 +34987,7 @@ const useAddFunds = () => {
34987
34987
  });
34988
34988
  };
34989
34989
 
34990
- var __async$I = (__this, __arguments, generator) => {
34990
+ var __async$J = (__this, __arguments, generator) => {
34991
34991
  return new Promise((resolve, reject) => {
34992
34992
  var fulfilled = (value) => {
34993
34993
  try {
@@ -35010,7 +35010,7 @@ var __async$I = (__this, __arguments, generator) => {
35010
35010
  const useConnectCarrier = () => {
35011
35011
  const { client } = useShipEngine();
35012
35012
  return reactQuery.useMutation({
35013
- mutationFn: (params) => __async$I(void 0, null, function* () {
35013
+ mutationFn: (params) => __async$J(void 0, null, function* () {
35014
35014
  const result = yield client.carriers.connect(params);
35015
35015
  return result.data;
35016
35016
  }),
@@ -35119,41 +35119,41 @@ const useGetServicesByCarrier = (carrierId) => {
35119
35119
  });
35120
35120
  };
35121
35121
 
35122
- var __defProp$o = Object.defineProperty;
35123
- var __defProps$l = Object.defineProperties;
35124
- var __getOwnPropDescs$l = Object.getOwnPropertyDescriptors;
35125
- var __getOwnPropSymbols$y = Object.getOwnPropertySymbols;
35126
- var __hasOwnProp$y = Object.prototype.hasOwnProperty;
35127
- var __propIsEnum$y = Object.prototype.propertyIsEnumerable;
35128
- var __defNormalProp$o = (obj, key, value) => key in obj ? __defProp$o(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35129
- var __spreadValues$o = (a, b) => {
35122
+ var __defProp$p = Object.defineProperty;
35123
+ var __defProps$m = Object.defineProperties;
35124
+ var __getOwnPropDescs$m = Object.getOwnPropertyDescriptors;
35125
+ var __getOwnPropSymbols$z = Object.getOwnPropertySymbols;
35126
+ var __hasOwnProp$z = Object.prototype.hasOwnProperty;
35127
+ var __propIsEnum$z = Object.prototype.propertyIsEnumerable;
35128
+ var __defNormalProp$p = (obj, key, value) => key in obj ? __defProp$p(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35129
+ var __spreadValues$p = (a, b) => {
35130
35130
  for (var prop in b || (b = {}))
35131
- if (__hasOwnProp$y.call(b, prop))
35132
- __defNormalProp$o(a, prop, b[prop]);
35133
- if (__getOwnPropSymbols$y)
35134
- for (var prop of __getOwnPropSymbols$y(b)) {
35135
- if (__propIsEnum$y.call(b, prop))
35136
- __defNormalProp$o(a, prop, b[prop]);
35131
+ if (__hasOwnProp$z.call(b, prop))
35132
+ __defNormalProp$p(a, prop, b[prop]);
35133
+ if (__getOwnPropSymbols$z)
35134
+ for (var prop of __getOwnPropSymbols$z(b)) {
35135
+ if (__propIsEnum$z.call(b, prop))
35136
+ __defNormalProp$p(a, prop, b[prop]);
35137
35137
  }
35138
35138
  return a;
35139
35139
  };
35140
- var __spreadProps$l = (a, b) => __defProps$l(a, __getOwnPropDescs$l(b));
35141
- var __objRest$l = (source, exclude) => {
35140
+ var __spreadProps$m = (a, b) => __defProps$m(a, __getOwnPropDescs$m(b));
35141
+ var __objRest$m = (source, exclude) => {
35142
35142
  var target = {};
35143
35143
  for (var prop in source)
35144
- if (__hasOwnProp$y.call(source, prop) && exclude.indexOf(prop) < 0)
35144
+ if (__hasOwnProp$z.call(source, prop) && exclude.indexOf(prop) < 0)
35145
35145
  target[prop] = source[prop];
35146
- if (source != null && __getOwnPropSymbols$y)
35147
- for (var prop of __getOwnPropSymbols$y(source)) {
35148
- if (exclude.indexOf(prop) < 0 && __propIsEnum$y.call(source, prop))
35146
+ if (source != null && __getOwnPropSymbols$z)
35147
+ for (var prop of __getOwnPropSymbols$z(source)) {
35148
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$z.call(source, prop))
35149
35149
  target[prop] = source[prop];
35150
35150
  }
35151
35151
  return target;
35152
35152
  };
35153
35153
  const useListCarriers = (params) => {
35154
35154
  const { client } = useShipEngine();
35155
- const _a = __spreadValues$o({}, params), { queryFnParams } = _a, rest = __objRest$l(_a, ["queryFnParams"]);
35156
- return reactQuery.useQuery(__spreadProps$l(__spreadValues$o({}, rest), {
35155
+ const _a = __spreadValues$p({}, params), { queryFnParams } = _a, rest = __objRest$m(_a, ["queryFnParams"]);
35156
+ return reactQuery.useQuery(__spreadProps$m(__spreadValues$p({}, rest), {
35157
35157
  onError,
35158
35158
  queryFn: () => client.carriers.list(queryFnParams),
35159
35159
  queryKey: ["useListCarriers", queryFnParams],
@@ -35161,22 +35161,22 @@ const useListCarriers = (params) => {
35161
35161
  }));
35162
35162
  };
35163
35163
 
35164
- var __getOwnPropSymbols$x = Object.getOwnPropertySymbols;
35165
- var __hasOwnProp$x = Object.prototype.hasOwnProperty;
35166
- var __propIsEnum$x = Object.prototype.propertyIsEnumerable;
35167
- var __objRest$k = (source, exclude) => {
35164
+ var __getOwnPropSymbols$y = Object.getOwnPropertySymbols;
35165
+ var __hasOwnProp$y = Object.prototype.hasOwnProperty;
35166
+ var __propIsEnum$y = Object.prototype.propertyIsEnumerable;
35167
+ var __objRest$l = (source, exclude) => {
35168
35168
  var target = {};
35169
35169
  for (var prop in source)
35170
- if (__hasOwnProp$x.call(source, prop) && exclude.indexOf(prop) < 0)
35170
+ if (__hasOwnProp$y.call(source, prop) && exclude.indexOf(prop) < 0)
35171
35171
  target[prop] = source[prop];
35172
- if (source != null && __getOwnPropSymbols$x)
35173
- for (var prop of __getOwnPropSymbols$x(source)) {
35174
- if (exclude.indexOf(prop) < 0 && __propIsEnum$x.call(source, prop))
35172
+ if (source != null && __getOwnPropSymbols$y)
35173
+ for (var prop of __getOwnPropSymbols$y(source)) {
35174
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$y.call(source, prop))
35175
35175
  target[prop] = source[prop];
35176
35176
  }
35177
35177
  return target;
35178
35178
  };
35179
- var __async$H = (__this, __arguments, generator) => {
35179
+ var __async$I = (__this, __arguments, generator) => {
35180
35180
  return new Promise((resolve, reject) => {
35181
35181
  var fulfilled = (value) => {
35182
35182
  try {
@@ -35200,8 +35200,8 @@ const useUpdateAutoFunding = () => {
35200
35200
  const { client } = useShipEngine();
35201
35201
  const queryClient = reactQuery.useQueryClient();
35202
35202
  return reactQuery.useMutation({
35203
- mutationFn: (_a) => __async$H(void 0, null, function* () {
35204
- var _b = _a, { carrierId } = _b, options = __objRest$k(_b, ["carrierId"]);
35203
+ mutationFn: (_a) => __async$I(void 0, null, function* () {
35204
+ var _b = _a, { carrierId } = _b, options = __objRest$l(_b, ["carrierId"]);
35205
35205
  const result = yield client.carriers.updateAutoFunding(carrierId, options);
35206
35206
  return result.data;
35207
35207
  }),
@@ -35230,7 +35230,7 @@ const useGetZonesByCarrier = (carrierId) => {
35230
35230
  });
35231
35231
  };
35232
35232
 
35233
- var __async$G = (__this, __arguments, generator) => {
35233
+ var __async$H = (__this, __arguments, generator) => {
35234
35234
  return new Promise((resolve, reject) => {
35235
35235
  var fulfilled = (value) => {
35236
35236
  try {
@@ -35253,7 +35253,7 @@ var __async$G = (__this, __arguments, generator) => {
35253
35253
  const useDeleteCarrier = () => {
35254
35254
  const { client } = useShipEngine();
35255
35255
  return reactQuery.useMutation({
35256
- mutationFn: (carrierId) => __async$G(void 0, null, function* () {
35256
+ mutationFn: (carrierId) => __async$H(void 0, null, function* () {
35257
35257
  const result = yield client.carriers.delete(carrierId);
35258
35258
  return result.data;
35259
35259
  }),
@@ -35262,24 +35262,24 @@ const useDeleteCarrier = () => {
35262
35262
  });
35263
35263
  };
35264
35264
 
35265
- var __getOwnPropSymbols$w = Object.getOwnPropertySymbols;
35266
- var __hasOwnProp$w = Object.prototype.hasOwnProperty;
35267
- var __propIsEnum$w = Object.prototype.propertyIsEnumerable;
35268
- var __objRest$j = (source, exclude) => {
35265
+ var __getOwnPropSymbols$x = Object.getOwnPropertySymbols;
35266
+ var __hasOwnProp$x = Object.prototype.hasOwnProperty;
35267
+ var __propIsEnum$x = Object.prototype.propertyIsEnumerable;
35268
+ var __objRest$k = (source, exclude) => {
35269
35269
  var target = {};
35270
35270
  for (var prop in source)
35271
- if (__hasOwnProp$w.call(source, prop) && exclude.indexOf(prop) < 0)
35271
+ if (__hasOwnProp$x.call(source, prop) && exclude.indexOf(prop) < 0)
35272
35272
  target[prop] = source[prop];
35273
- if (source != null && __getOwnPropSymbols$w)
35274
- for (var prop of __getOwnPropSymbols$w(source)) {
35275
- if (exclude.indexOf(prop) < 0 && __propIsEnum$w.call(source, prop))
35273
+ if (source != null && __getOwnPropSymbols$x)
35274
+ for (var prop of __getOwnPropSymbols$x(source)) {
35275
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$x.call(source, prop))
35276
35276
  target[prop] = source[prop];
35277
35277
  }
35278
35278
  return target;
35279
35279
  };
35280
35280
  const useGetCarrierConnectionForm = (_params) => {
35281
35281
  const { client } = useShipEngine();
35282
- const _a = _params || {}, { carrierName, enabled = true } = _a, params = __objRest$j(_a, ["carrierName", "enabled"]);
35282
+ const _a = _params || {}, { carrierName, enabled = true } = _a, params = __objRest$k(_a, ["carrierName", "enabled"]);
35283
35283
  return reactQuery.useQuery({
35284
35284
  enabled,
35285
35285
  onError,
@@ -35289,24 +35289,24 @@ const useGetCarrierConnectionForm = (_params) => {
35289
35289
  });
35290
35290
  };
35291
35291
 
35292
- var __getOwnPropSymbols$v = Object.getOwnPropertySymbols;
35293
- var __hasOwnProp$v = Object.prototype.hasOwnProperty;
35294
- var __propIsEnum$v = Object.prototype.propertyIsEnumerable;
35295
- var __objRest$i = (source, exclude) => {
35292
+ var __getOwnPropSymbols$w = Object.getOwnPropertySymbols;
35293
+ var __hasOwnProp$w = Object.prototype.hasOwnProperty;
35294
+ var __propIsEnum$w = Object.prototype.propertyIsEnumerable;
35295
+ var __objRest$j = (source, exclude) => {
35296
35296
  var target = {};
35297
35297
  for (var prop in source)
35298
- if (__hasOwnProp$v.call(source, prop) && exclude.indexOf(prop) < 0)
35298
+ if (__hasOwnProp$w.call(source, prop) && exclude.indexOf(prop) < 0)
35299
35299
  target[prop] = source[prop];
35300
- if (source != null && __getOwnPropSymbols$v)
35301
- for (var prop of __getOwnPropSymbols$v(source)) {
35302
- if (exclude.indexOf(prop) < 0 && __propIsEnum$v.call(source, prop))
35300
+ if (source != null && __getOwnPropSymbols$w)
35301
+ for (var prop of __getOwnPropSymbols$w(source)) {
35302
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$w.call(source, prop))
35303
35303
  target[prop] = source[prop];
35304
35304
  }
35305
35305
  return target;
35306
35306
  };
35307
35307
  const useListCarrierConnections = (_params) => {
35308
35308
  const { client } = useShipEngine();
35309
- const _a = _params || {}, { enabled = true } = _a, params = __objRest$i(_a, ["enabled"]);
35309
+ const _a = _params || {}, { enabled = true } = _a, params = __objRest$j(_a, ["enabled"]);
35310
35310
  return reactQuery.useQuery({
35311
35311
  enabled,
35312
35312
  onError,
@@ -35316,7 +35316,7 @@ const useListCarrierConnections = (_params) => {
35316
35316
  });
35317
35317
  };
35318
35318
 
35319
- var __async$F = (__this, __arguments, generator) => {
35319
+ var __async$G = (__this, __arguments, generator) => {
35320
35320
  return new Promise((resolve, reject) => {
35321
35321
  var fulfilled = (value) => {
35322
35322
  try {
@@ -35339,7 +35339,7 @@ var __async$F = (__this, __arguments, generator) => {
35339
35339
  const useConnectCarrierAccount = () => {
35340
35340
  const { client } = useShipEngine();
35341
35341
  return reactQuery.useMutation({
35342
- mutationFn: (_0) => __async$F(void 0, [_0], function* ({ carrierName, formData }) {
35342
+ mutationFn: (_0) => __async$G(void 0, [_0], function* ({ carrierName, formData }) {
35343
35343
  const result = yield client.connections.connectCarrier(carrierName, formData);
35344
35344
  return result.data;
35345
35345
  }),
@@ -35359,33 +35359,33 @@ const useCarrierConnectionsServicesList = (carrierCode) => {
35359
35359
  });
35360
35360
  };
35361
35361
 
35362
- var __defProp$n = Object.defineProperty;
35363
- var __defProps$k = Object.defineProperties;
35364
- var __getOwnPropDescs$k = Object.getOwnPropertyDescriptors;
35365
- var __getOwnPropSymbols$u = Object.getOwnPropertySymbols;
35366
- var __hasOwnProp$u = Object.prototype.hasOwnProperty;
35367
- var __propIsEnum$u = Object.prototype.propertyIsEnumerable;
35368
- var __defNormalProp$n = (obj, key, value) => key in obj ? __defProp$n(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35369
- var __spreadValues$n = (a, b) => {
35362
+ var __defProp$o = Object.defineProperty;
35363
+ var __defProps$l = Object.defineProperties;
35364
+ var __getOwnPropDescs$l = Object.getOwnPropertyDescriptors;
35365
+ var __getOwnPropSymbols$v = Object.getOwnPropertySymbols;
35366
+ var __hasOwnProp$v = Object.prototype.hasOwnProperty;
35367
+ var __propIsEnum$v = Object.prototype.propertyIsEnumerable;
35368
+ var __defNormalProp$o = (obj, key, value) => key in obj ? __defProp$o(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35369
+ var __spreadValues$o = (a, b) => {
35370
35370
  for (var prop in b || (b = {}))
35371
- if (__hasOwnProp$u.call(b, prop))
35372
- __defNormalProp$n(a, prop, b[prop]);
35373
- if (__getOwnPropSymbols$u)
35374
- for (var prop of __getOwnPropSymbols$u(b)) {
35375
- if (__propIsEnum$u.call(b, prop))
35376
- __defNormalProp$n(a, prop, b[prop]);
35371
+ if (__hasOwnProp$v.call(b, prop))
35372
+ __defNormalProp$o(a, prop, b[prop]);
35373
+ if (__getOwnPropSymbols$v)
35374
+ for (var prop of __getOwnPropSymbols$v(b)) {
35375
+ if (__propIsEnum$v.call(b, prop))
35376
+ __defNormalProp$o(a, prop, b[prop]);
35377
35377
  }
35378
35378
  return a;
35379
35379
  };
35380
- var __spreadProps$k = (a, b) => __defProps$k(a, __getOwnPropDescs$k(b));
35381
- var __objRest$h = (source, exclude) => {
35380
+ var __spreadProps$l = (a, b) => __defProps$l(a, __getOwnPropDescs$l(b));
35381
+ var __objRest$i = (source, exclude) => {
35382
35382
  var target = {};
35383
35383
  for (var prop in source)
35384
- if (__hasOwnProp$u.call(source, prop) && exclude.indexOf(prop) < 0)
35384
+ if (__hasOwnProp$v.call(source, prop) && exclude.indexOf(prop) < 0)
35385
35385
  target[prop] = source[prop];
35386
- if (source != null && __getOwnPropSymbols$u)
35387
- for (var prop of __getOwnPropSymbols$u(source)) {
35388
- if (exclude.indexOf(prop) < 0 && __propIsEnum$u.call(source, prop))
35386
+ if (source != null && __getOwnPropSymbols$v)
35387
+ for (var prop of __getOwnPropSymbols$v(source)) {
35388
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$v.call(source, prop))
35389
35389
  target[prop] = source[prop];
35390
35390
  }
35391
35391
  return target;
@@ -35393,12 +35393,12 @@ var __objRest$h = (source, exclude) => {
35393
35393
  const useGetConnectionsCarrierSettings = (_a) => {
35394
35394
  var _b = _a, {
35395
35395
  queryFnParams
35396
- } = _b, params = __objRest$h(_b, [
35396
+ } = _b, params = __objRest$i(_b, [
35397
35397
  "queryFnParams"
35398
35398
  ]);
35399
35399
  const { client } = useShipEngine();
35400
35400
  const { carrierName, carrierId } = queryFnParams;
35401
- return reactQuery.useQuery(__spreadProps$k(__spreadValues$n({}, params), {
35401
+ return reactQuery.useQuery(__spreadProps$l(__spreadValues$o({}, params), {
35402
35402
  onError,
35403
35403
  queryFn: () => client.connections.getCarrierSettings(carrierName, carrierId),
35404
35404
  queryKey: ["useGetConnectionsCarrierSettings", carrierName, carrierId],
@@ -35406,26 +35406,26 @@ const useGetConnectionsCarrierSettings = (_a) => {
35406
35406
  }));
35407
35407
  };
35408
35408
 
35409
- var __defProp$m = Object.defineProperty;
35410
- var __defProps$j = Object.defineProperties;
35411
- var __getOwnPropDescs$j = Object.getOwnPropertyDescriptors;
35412
- var __getOwnPropSymbols$t = Object.getOwnPropertySymbols;
35413
- var __hasOwnProp$t = Object.prototype.hasOwnProperty;
35414
- var __propIsEnum$t = Object.prototype.propertyIsEnumerable;
35415
- var __defNormalProp$m = (obj, key, value) => key in obj ? __defProp$m(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35416
- var __spreadValues$m = (a, b) => {
35409
+ var __defProp$n = Object.defineProperty;
35410
+ var __defProps$k = Object.defineProperties;
35411
+ var __getOwnPropDescs$k = Object.getOwnPropertyDescriptors;
35412
+ var __getOwnPropSymbols$u = Object.getOwnPropertySymbols;
35413
+ var __hasOwnProp$u = Object.prototype.hasOwnProperty;
35414
+ var __propIsEnum$u = Object.prototype.propertyIsEnumerable;
35415
+ var __defNormalProp$n = (obj, key, value) => key in obj ? __defProp$n(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35416
+ var __spreadValues$n = (a, b) => {
35417
35417
  for (var prop in b || (b = {}))
35418
- if (__hasOwnProp$t.call(b, prop))
35419
- __defNormalProp$m(a, prop, b[prop]);
35420
- if (__getOwnPropSymbols$t)
35421
- for (var prop of __getOwnPropSymbols$t(b)) {
35422
- if (__propIsEnum$t.call(b, prop))
35423
- __defNormalProp$m(a, prop, b[prop]);
35418
+ if (__hasOwnProp$u.call(b, prop))
35419
+ __defNormalProp$n(a, prop, b[prop]);
35420
+ if (__getOwnPropSymbols$u)
35421
+ for (var prop of __getOwnPropSymbols$u(b)) {
35422
+ if (__propIsEnum$u.call(b, prop))
35423
+ __defNormalProp$n(a, prop, b[prop]);
35424
35424
  }
35425
35425
  return a;
35426
35426
  };
35427
- var __spreadProps$j = (a, b) => __defProps$j(a, __getOwnPropDescs$j(b));
35428
- var __async$E = (__this, __arguments, generator) => {
35427
+ var __spreadProps$k = (a, b) => __defProps$k(a, __getOwnPropDescs$k(b));
35428
+ var __async$F = (__this, __arguments, generator) => {
35429
35429
  return new Promise((resolve, reject) => {
35430
35430
  var fulfilled = (value) => {
35431
35431
  try {
@@ -35447,8 +35447,8 @@ var __async$E = (__this, __arguments, generator) => {
35447
35447
  };
35448
35448
  const useUpdateConnectionsCarrierSettings = (params) => {
35449
35449
  const { client } = useShipEngine();
35450
- return reactQuery.useMutation(__spreadProps$j(__spreadValues$m({}, params), {
35451
- mutationFn: (_0) => __async$E(void 0, [_0], function* ({
35450
+ return reactQuery.useMutation(__spreadProps$k(__spreadValues$n({}, params), {
35451
+ mutationFn: (_0) => __async$F(void 0, [_0], function* ({
35452
35452
  carrierName,
35453
35453
  carrierId,
35454
35454
  formData
@@ -35475,7 +35475,7 @@ const useListCustomPackageTypes = () => {
35475
35475
  });
35476
35476
  };
35477
35477
 
35478
- var __async$D = (__this, __arguments, generator) => {
35478
+ var __async$E = (__this, __arguments, generator) => {
35479
35479
  return new Promise((resolve, reject) => {
35480
35480
  var fulfilled = (value) => {
35481
35481
  try {
@@ -35498,7 +35498,7 @@ var __async$D = (__this, __arguments, generator) => {
35498
35498
  const useCreateFundingSource = () => {
35499
35499
  const { client } = useShipEngine();
35500
35500
  return reactQuery.useMutation({
35501
- mutationFn: (fundingSource) => __async$D(void 0, null, function* () {
35501
+ mutationFn: (fundingSource) => __async$E(void 0, null, function* () {
35502
35502
  const result = yield client.fundingSources.create(fundingSource);
35503
35503
  return result.data;
35504
35504
  }),
@@ -35507,7 +35507,7 @@ const useCreateFundingSource = () => {
35507
35507
  });
35508
35508
  };
35509
35509
 
35510
- var __async$C = (__this, __arguments, generator) => {
35510
+ var __async$D = (__this, __arguments, generator) => {
35511
35511
  return new Promise((resolve, reject) => {
35512
35512
  var fulfilled = (value) => {
35513
35513
  try {
@@ -35530,7 +35530,7 @@ var __async$C = (__this, __arguments, generator) => {
35530
35530
  const useFundingSourcesAddFunds = () => {
35531
35531
  const { client } = useShipEngine();
35532
35532
  return reactQuery.useMutation({
35533
- mutationFn: (_0) => __async$C(void 0, [_0], function* ({ funds, fundingSourceId }) {
35533
+ mutationFn: (_0) => __async$D(void 0, [_0], function* ({ funds, fundingSourceId }) {
35534
35534
  const result = yield client.fundingSources.addFunds(funds, fundingSourceId);
35535
35535
  return result.data;
35536
35536
  }),
@@ -35559,7 +35559,7 @@ const useListFundingSources = () => {
35559
35559
  });
35560
35560
  };
35561
35561
 
35562
- var __async$B = (__this, __arguments, generator) => {
35562
+ var __async$C = (__this, __arguments, generator) => {
35563
35563
  return new Promise((resolve, reject) => {
35564
35564
  var fulfilled = (value) => {
35565
35565
  try {
@@ -35582,7 +35582,7 @@ var __async$B = (__this, __arguments, generator) => {
35582
35582
  const useRegisterCarrier = () => {
35583
35583
  const { client } = useShipEngine();
35584
35584
  return reactQuery.useMutation({
35585
- mutationFn: (carrier) => __async$B(void 0, null, function* () {
35585
+ mutationFn: (carrier) => __async$C(void 0, null, function* () {
35586
35586
  const result = yield client.fundingSources.registerCarrier(carrier);
35587
35587
  return result.data;
35588
35588
  }),
@@ -35591,7 +35591,7 @@ const useRegisterCarrier = () => {
35591
35591
  });
35592
35592
  };
35593
35593
 
35594
- var __async$A = (__this, __arguments, generator) => {
35594
+ var __async$B = (__this, __arguments, generator) => {
35595
35595
  return new Promise((resolve, reject) => {
35596
35596
  var fulfilled = (value) => {
35597
35597
  try {
@@ -35614,7 +35614,7 @@ var __async$A = (__this, __arguments, generator) => {
35614
35614
  const useUpdateFundingSource = () => {
35615
35615
  const { client } = useShipEngine();
35616
35616
  return reactQuery.useMutation({
35617
- mutationFn: (_0) => __async$A(void 0, [_0], function* ({
35617
+ mutationFn: (_0) => __async$B(void 0, [_0], function* ({
35618
35618
  billingInfo,
35619
35619
  creditCardInfo,
35620
35620
  fundingSourceId
@@ -35653,29 +35653,29 @@ const useGetFundingSourceTransactions = (fundingSourceId, params) => {
35653
35653
  });
35654
35654
  };
35655
35655
 
35656
- var __defProp$l = Object.defineProperty;
35657
- var __defProps$i = Object.defineProperties;
35658
- var __getOwnPropDescs$i = Object.getOwnPropertyDescriptors;
35659
- var __getOwnPropSymbols$s = Object.getOwnPropertySymbols;
35660
- var __hasOwnProp$s = Object.prototype.hasOwnProperty;
35661
- var __propIsEnum$s = Object.prototype.propertyIsEnumerable;
35662
- var __defNormalProp$l = (obj, key, value) => key in obj ? __defProp$l(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35663
- var __spreadValues$l = (a, b) => {
35656
+ var __defProp$m = Object.defineProperty;
35657
+ var __defProps$j = Object.defineProperties;
35658
+ var __getOwnPropDescs$j = Object.getOwnPropertyDescriptors;
35659
+ var __getOwnPropSymbols$t = Object.getOwnPropertySymbols;
35660
+ var __hasOwnProp$t = Object.prototype.hasOwnProperty;
35661
+ var __propIsEnum$t = Object.prototype.propertyIsEnumerable;
35662
+ var __defNormalProp$m = (obj, key, value) => key in obj ? __defProp$m(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35663
+ var __spreadValues$m = (a, b) => {
35664
35664
  for (var prop in b || (b = {}))
35665
- if (__hasOwnProp$s.call(b, prop))
35666
- __defNormalProp$l(a, prop, b[prop]);
35667
- if (__getOwnPropSymbols$s)
35668
- for (var prop of __getOwnPropSymbols$s(b)) {
35669
- if (__propIsEnum$s.call(b, prop))
35670
- __defNormalProp$l(a, prop, b[prop]);
35665
+ if (__hasOwnProp$t.call(b, prop))
35666
+ __defNormalProp$m(a, prop, b[prop]);
35667
+ if (__getOwnPropSymbols$t)
35668
+ for (var prop of __getOwnPropSymbols$t(b)) {
35669
+ if (__propIsEnum$t.call(b, prop))
35670
+ __defNormalProp$m(a, prop, b[prop]);
35671
35671
  }
35672
35672
  return a;
35673
35673
  };
35674
- var __spreadProps$i = (a, b) => __defProps$i(a, __getOwnPropDescs$i(b));
35674
+ var __spreadProps$j = (a, b) => __defProps$j(a, __getOwnPropDescs$j(b));
35675
35675
  const useGetInsuranceFundingSourceAcceptedTerms = (params) => {
35676
35676
  const { client } = useShipEngine();
35677
- const queryParams = __spreadValues$l({}, params);
35678
- return reactQuery.useQuery(__spreadProps$i(__spreadValues$l({}, queryParams), {
35677
+ const queryParams = __spreadValues$m({}, params);
35678
+ return reactQuery.useQuery(__spreadProps$j(__spreadValues$m({}, queryParams), {
35679
35679
  onError,
35680
35680
  queryFn: () => client.fundingSources.insuranceAcceptedTerms(),
35681
35681
  queryKey: ["useGetInsuranceFundingSourceAcceptedTerms"],
@@ -35698,22 +35698,22 @@ const useGetInsuranceAccount = (insuranceProvider) => {
35698
35698
  });
35699
35699
  };
35700
35700
 
35701
- var __getOwnPropSymbols$r = Object.getOwnPropertySymbols;
35702
- var __hasOwnProp$r = Object.prototype.hasOwnProperty;
35703
- var __propIsEnum$r = Object.prototype.propertyIsEnumerable;
35704
- var __objRest$g = (source, exclude) => {
35701
+ var __getOwnPropSymbols$s = Object.getOwnPropertySymbols;
35702
+ var __hasOwnProp$s = Object.prototype.hasOwnProperty;
35703
+ var __propIsEnum$s = Object.prototype.propertyIsEnumerable;
35704
+ var __objRest$h = (source, exclude) => {
35705
35705
  var target = {};
35706
35706
  for (var prop in source)
35707
- if (__hasOwnProp$r.call(source, prop) && exclude.indexOf(prop) < 0)
35707
+ if (__hasOwnProp$s.call(source, prop) && exclude.indexOf(prop) < 0)
35708
35708
  target[prop] = source[prop];
35709
- if (source != null && __getOwnPropSymbols$r)
35710
- for (var prop of __getOwnPropSymbols$r(source)) {
35711
- if (exclude.indexOf(prop) < 0 && __propIsEnum$r.call(source, prop))
35709
+ if (source != null && __getOwnPropSymbols$s)
35710
+ for (var prop of __getOwnPropSymbols$s(source)) {
35711
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$s.call(source, prop))
35712
35712
  target[prop] = source[prop];
35713
35713
  }
35714
35714
  return target;
35715
35715
  };
35716
- var __async$z = (__this, __arguments, generator) => {
35716
+ var __async$A = (__this, __arguments, generator) => {
35717
35717
  return new Promise((resolve, reject) => {
35718
35718
  var fulfilled = (value) => {
35719
35719
  try {
@@ -35736,8 +35736,8 @@ var __async$z = (__this, __arguments, generator) => {
35736
35736
  const useAddInsuranceFunds = () => {
35737
35737
  const { client } = useShipEngine();
35738
35738
  return reactQuery.useMutation({
35739
- mutationFn: (_a) => __async$z(void 0, null, function* () {
35740
- var _b = _a, { insuranceProvider } = _b, rest = __objRest$g(_b, ["insuranceProvider"]);
35739
+ mutationFn: (_a) => __async$A(void 0, null, function* () {
35740
+ var _b = _a, { insuranceProvider } = _b, rest = __objRest$h(_b, ["insuranceProvider"]);
35741
35741
  const result = yield client.insurance.addFunds(insuranceProvider, rest);
35742
35742
  return result.data;
35743
35743
  }),
@@ -35746,6 +35746,57 @@ const useAddInsuranceFunds = () => {
35746
35746
  });
35747
35747
  };
35748
35748
 
35749
+ var __defProp$l = Object.defineProperty;
35750
+ var __defProps$i = Object.defineProperties;
35751
+ var __getOwnPropDescs$i = Object.getOwnPropertyDescriptors;
35752
+ var __getOwnPropSymbols$r = Object.getOwnPropertySymbols;
35753
+ var __hasOwnProp$r = Object.prototype.hasOwnProperty;
35754
+ var __propIsEnum$r = Object.prototype.propertyIsEnumerable;
35755
+ var __defNormalProp$l = (obj, key, value) => key in obj ? __defProp$l(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35756
+ var __spreadValues$l = (a, b) => {
35757
+ for (var prop in b || (b = {}))
35758
+ if (__hasOwnProp$r.call(b, prop))
35759
+ __defNormalProp$l(a, prop, b[prop]);
35760
+ if (__getOwnPropSymbols$r)
35761
+ for (var prop of __getOwnPropSymbols$r(b)) {
35762
+ if (__propIsEnum$r.call(b, prop))
35763
+ __defNormalProp$l(a, prop, b[prop]);
35764
+ }
35765
+ return a;
35766
+ };
35767
+ var __spreadProps$i = (a, b) => __defProps$i(a, __getOwnPropDescs$i(b));
35768
+ var __async$z = (__this, __arguments, generator) => {
35769
+ return new Promise((resolve, reject) => {
35770
+ var fulfilled = (value) => {
35771
+ try {
35772
+ step(generator.next(value));
35773
+ } catch (e) {
35774
+ reject(e);
35775
+ }
35776
+ };
35777
+ var rejected = (value) => {
35778
+ try {
35779
+ step(generator.throw(value));
35780
+ } catch (e) {
35781
+ reject(e);
35782
+ }
35783
+ };
35784
+ var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
35785
+ step((generator = generator.apply(__this, __arguments)).next());
35786
+ });
35787
+ };
35788
+ const useCreateInvoiceAddress = (params) => {
35789
+ const { client } = useShipEngine();
35790
+ return reactQuery.useMutation(__spreadProps$i(__spreadValues$l({}, params), {
35791
+ mutationFn: (invoiceAddress) => __async$z(void 0, null, function* () {
35792
+ const result = yield client.invoiceAddress.create(invoiceAddress);
35793
+ return result.data;
35794
+ }),
35795
+ mutationKey: ["useCreateInvoiceAddress"],
35796
+ onError
35797
+ }));
35798
+ };
35799
+
35749
35800
  var __defProp$k = Object.defineProperty;
35750
35801
  var __defProps$h = Object.defineProperties;
35751
35802
  var __getOwnPropDescs$h = Object.getOwnPropertyDescriptors;
@@ -35785,14 +35836,14 @@ var __async$y = (__this, __arguments, generator) => {
35785
35836
  step((generator = generator.apply(__this, __arguments)).next());
35786
35837
  });
35787
35838
  };
35788
- const useCreateInvoiceAddress = (params) => {
35839
+ const useUpdateInvoiceAddress = (params) => {
35789
35840
  const { client } = useShipEngine();
35790
35841
  return reactQuery.useMutation(__spreadProps$h(__spreadValues$k({}, params), {
35791
35842
  mutationFn: (invoiceAddress) => __async$y(void 0, null, function* () {
35792
- const result = yield client.invoiceAddress.create(invoiceAddress);
35843
+ const result = yield client.invoiceAddress.update(invoiceAddress);
35793
35844
  return result.data;
35794
35845
  }),
35795
- mutationKey: ["useCreateInvoiceAddress"],
35846
+ mutationKey: ["useUpdateInvoiceAddress"],
35796
35847
  onError
35797
35848
  }));
35798
35849
  };
@@ -35816,6 +35867,31 @@ var __spreadValues$j = (a, b) => {
35816
35867
  return a;
35817
35868
  };
35818
35869
  var __spreadProps$g = (a, b) => __defProps$g(a, __getOwnPropDescs$g(b));
35870
+ const useGetInvoiceAddress = (params) => {
35871
+ const { client } = useShipEngine();
35872
+ return reactQuery.useQuery(__spreadProps$g(__spreadValues$j({}, params), {
35873
+ onError,
35874
+ queryFn: () => client.invoiceAddress.get(),
35875
+ queryKey: ["useGetInvoiceAddress"],
35876
+ select: (result) => result.data
35877
+ }));
35878
+ };
35879
+
35880
+ var __getOwnPropSymbols$o = Object.getOwnPropertySymbols;
35881
+ var __hasOwnProp$o = Object.prototype.hasOwnProperty;
35882
+ var __propIsEnum$o = Object.prototype.propertyIsEnumerable;
35883
+ var __objRest$g = (source, exclude) => {
35884
+ var target = {};
35885
+ for (var prop in source)
35886
+ if (__hasOwnProp$o.call(source, prop) && exclude.indexOf(prop) < 0)
35887
+ target[prop] = source[prop];
35888
+ if (source != null && __getOwnPropSymbols$o)
35889
+ for (var prop of __getOwnPropSymbols$o(source)) {
35890
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$o.call(source, prop))
35891
+ target[prop] = source[prop];
35892
+ }
35893
+ return target;
35894
+ };
35819
35895
  var __async$x = (__this, __arguments, generator) => {
35820
35896
  return new Promise((resolve, reject) => {
35821
35897
  var fulfilled = (value) => {
@@ -35836,50 +35912,53 @@ var __async$x = (__this, __arguments, generator) => {
35836
35912
  step((generator = generator.apply(__this, __arguments)).next());
35837
35913
  });
35838
35914
  };
35839
- const useUpdateInvoiceAddress = (params) => {
35915
+ const useCreateLabel = () => {
35840
35916
  const { client } = useShipEngine();
35841
- return reactQuery.useMutation(__spreadProps$g(__spreadValues$j({}, params), {
35842
- mutationFn: (invoiceAddress) => __async$x(void 0, null, function* () {
35843
- const result = yield client.invoiceAddress.update(invoiceAddress);
35917
+ return reactQuery.useMutation({
35918
+ mutationFn: (_a) => __async$x(void 0, null, function* () {
35919
+ var _b = _a, { rateId } = _b, options = __objRest$g(_b, ["rateId"]);
35920
+ const result = yield client.labels.createByRateId(rateId, options);
35844
35921
  return result.data;
35845
35922
  }),
35846
- mutationKey: ["useUpdateInvoiceAddress"],
35923
+ mutationKey: ["useCreateLabel"],
35847
35924
  onError
35848
- }));
35925
+ });
35926
+ };
35927
+
35928
+ const useGetLabel = (labelId) => {
35929
+ const { client } = useShipEngine();
35930
+ return reactQuery.useQuery({
35931
+ enabled: labelId !== void 0,
35932
+ onError,
35933
+ queryFn: () => {
35934
+ if (labelId)
35935
+ return client.labels.get(labelId);
35936
+ return Promise.reject(new Error("labelId is require"));
35937
+ },
35938
+ queryKey: ["useGetLabel", labelId],
35939
+ select: (result) => result.data
35940
+ });
35849
35941
  };
35850
35942
 
35851
35943
  var __defProp$i = Object.defineProperty;
35852
35944
  var __defProps$f = Object.defineProperties;
35853
35945
  var __getOwnPropDescs$f = Object.getOwnPropertyDescriptors;
35854
- var __getOwnPropSymbols$o = Object.getOwnPropertySymbols;
35855
- var __hasOwnProp$o = Object.prototype.hasOwnProperty;
35856
- var __propIsEnum$o = Object.prototype.propertyIsEnumerable;
35946
+ var __getOwnPropSymbols$n = Object.getOwnPropertySymbols;
35947
+ var __hasOwnProp$n = Object.prototype.hasOwnProperty;
35948
+ var __propIsEnum$n = Object.prototype.propertyIsEnumerable;
35857
35949
  var __defNormalProp$i = (obj, key, value) => key in obj ? __defProp$i(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35858
35950
  var __spreadValues$i = (a, b) => {
35859
35951
  for (var prop in b || (b = {}))
35860
- if (__hasOwnProp$o.call(b, prop))
35952
+ if (__hasOwnProp$n.call(b, prop))
35861
35953
  __defNormalProp$i(a, prop, b[prop]);
35862
- if (__getOwnPropSymbols$o)
35863
- for (var prop of __getOwnPropSymbols$o(b)) {
35864
- if (__propIsEnum$o.call(b, prop))
35954
+ if (__getOwnPropSymbols$n)
35955
+ for (var prop of __getOwnPropSymbols$n(b)) {
35956
+ if (__propIsEnum$n.call(b, prop))
35865
35957
  __defNormalProp$i(a, prop, b[prop]);
35866
35958
  }
35867
35959
  return a;
35868
35960
  };
35869
35961
  var __spreadProps$f = (a, b) => __defProps$f(a, __getOwnPropDescs$f(b));
35870
- const useGetInvoiceAddress = (params) => {
35871
- const { client } = useShipEngine();
35872
- return reactQuery.useQuery(__spreadProps$f(__spreadValues$i({}, params), {
35873
- onError,
35874
- queryFn: () => client.invoiceAddress.get(),
35875
- queryKey: ["useGetInvoiceAddress"],
35876
- select: (result) => result.data
35877
- }));
35878
- };
35879
-
35880
- var __getOwnPropSymbols$n = Object.getOwnPropertySymbols;
35881
- var __hasOwnProp$n = Object.prototype.hasOwnProperty;
35882
- var __propIsEnum$n = Object.prototype.propertyIsEnumerable;
35883
35962
  var __objRest$f = (source, exclude) => {
35884
35963
  var target = {};
35885
35964
  for (var prop in source)
@@ -35892,6 +35971,17 @@ var __objRest$f = (source, exclude) => {
35892
35971
  }
35893
35972
  return target;
35894
35973
  };
35974
+ const useListLabels = (params) => {
35975
+ const { client } = useShipEngine();
35976
+ const _a = __spreadValues$i({}, params), { queryFnParams } = _a, rest = __objRest$f(_a, ["queryFnParams"]);
35977
+ return reactQuery.useQuery(__spreadProps$f(__spreadValues$i({}, rest), {
35978
+ onError,
35979
+ queryFn: () => client.labels.list(queryFnParams),
35980
+ queryKey: ["useListLabels", params],
35981
+ select: (result) => result.data
35982
+ }));
35983
+ };
35984
+
35895
35985
  var __async$w = (__this, __arguments, generator) => {
35896
35986
  return new Promise((resolve, reject) => {
35897
35987
  var fulfilled = (value) => {
@@ -35912,34 +36002,18 @@ var __async$w = (__this, __arguments, generator) => {
35912
36002
  step((generator = generator.apply(__this, __arguments)).next());
35913
36003
  });
35914
36004
  };
35915
- const useCreateLabel = () => {
36005
+ const useVoidLabel = () => {
35916
36006
  const { client } = useShipEngine();
35917
36007
  return reactQuery.useMutation({
35918
- mutationFn: (_a) => __async$w(void 0, null, function* () {
35919
- var _b = _a, { rateId } = _b, options = __objRest$f(_b, ["rateId"]);
35920
- const result = yield client.labels.createByRateId(rateId, options);
36008
+ mutationFn: (labelId) => __async$w(void 0, null, function* () {
36009
+ const result = yield client.labels.void(labelId);
35921
36010
  return result.data;
35922
36011
  }),
35923
- mutationKey: ["useCreateLabel"],
36012
+ mutationKey: ["useVoidLabel"],
35924
36013
  onError
35925
36014
  });
35926
36015
  };
35927
36016
 
35928
- const useGetLabel = (labelId) => {
35929
- const { client } = useShipEngine();
35930
- return reactQuery.useQuery({
35931
- enabled: labelId !== void 0,
35932
- onError,
35933
- queryFn: () => {
35934
- if (labelId)
35935
- return client.labels.get(labelId);
35936
- return Promise.reject(new Error("labelId is require"));
35937
- },
35938
- queryKey: ["useGetLabel", labelId],
35939
- select: (result) => result.data
35940
- });
35941
- };
35942
-
35943
36017
  var __defProp$h = Object.defineProperty;
35944
36018
  var __defProps$e = Object.defineProperties;
35945
36019
  var __getOwnPropDescs$e = Object.getOwnPropertyDescriptors;
@@ -35971,17 +36045,6 @@ var __objRest$e = (source, exclude) => {
35971
36045
  }
35972
36046
  return target;
35973
36047
  };
35974
- const useListLabels = (params) => {
35975
- const { client } = useShipEngine();
35976
- const _a = __spreadValues$h({}, params), { queryFnParams } = _a, rest = __objRest$e(_a, ["queryFnParams"]);
35977
- return reactQuery.useQuery(__spreadProps$e(__spreadValues$h({}, rest), {
35978
- onError,
35979
- queryFn: () => client.labels.list(queryFnParams),
35980
- queryKey: ["useListLabels", params],
35981
- select: (result) => result.data
35982
- }));
35983
- };
35984
-
35985
36048
  var __async$v = (__this, __arguments, generator) => {
35986
36049
  return new Promise((resolve, reject) => {
35987
36050
  var fulfilled = (value) => {
@@ -36002,16 +36065,30 @@ var __async$v = (__this, __arguments, generator) => {
36002
36065
  step((generator = generator.apply(__this, __arguments)).next());
36003
36066
  });
36004
36067
  };
36005
- const useVoidLabel = () => {
36068
+ const useListLabelsInfinite = (params) => {
36006
36069
  const { client } = useShipEngine();
36007
- return reactQuery.useMutation({
36008
- mutationFn: (labelId) => __async$v(void 0, null, function* () {
36009
- const result = yield client.labels.void(labelId);
36010
- return result.data;
36070
+ const _a = __spreadValues$h({}, params), { queryFnParams } = _a, rest = __objRest$e(_a, ["queryFnParams"]);
36071
+ return reactQuery.useInfiniteQuery(__spreadProps$e(__spreadValues$h({}, rest), {
36072
+ getNextPageParam: (lastPage) => {
36073
+ if (lastPage.page < lastPage.pages) {
36074
+ return lastPage.page + 1;
36075
+ }
36076
+ return void 0;
36077
+ },
36078
+ onError,
36079
+ queryFn: (_0) => __async$v(void 0, [_0], function* ({ pageParam = 1 }) {
36080
+ const response = yield client.labels.list(__spreadProps$e(__spreadValues$h({}, queryFnParams), { page: pageParam }));
36081
+ return response.data;
36011
36082
  }),
36012
- mutationKey: ["useVoidLabel"],
36013
- onError
36014
- });
36083
+ queryKey: ["useListLabelsInfinite", params],
36084
+ select: (data) => {
36085
+ return {
36086
+ labels: data.pages.flatMap((page) => page.labels),
36087
+ pageParams: data.pageParams,
36088
+ pages: data.pages
36089
+ };
36090
+ }
36091
+ }));
36015
36092
  };
36016
36093
 
36017
36094
  var __defProp$g = Object.defineProperty;
@@ -39098,6 +39175,7 @@ exports.useListCarriers = useListCarriers;
39098
39175
  exports.useListCustomPackageTypes = useListCustomPackageTypes;
39099
39176
  exports.useListFundingSources = useListFundingSources;
39100
39177
  exports.useListLabels = useListLabels;
39178
+ exports.useListLabelsInfinite = useListLabelsInfinite;
39101
39179
  exports.useListOrderSources = useListOrderSources;
39102
39180
  exports.useListOrderSourcesConnections = useListOrderSourcesConnections;
39103
39181
  exports.useListRateCards = useListRateCards;