@shipengine/alchemy 6.0.96 → 6.0.97-next.0

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 +963 -759
  2. package/index.mjs +958 -760
  3. package/package.json +1 -1
package/index.mjs CHANGED
@@ -10805,17 +10805,17 @@ var FeatureId = /* @__PURE__ */ ((FeatureId2) => {
10805
10805
  return FeatureId2;
10806
10806
  })(FeatureId || {});
10807
10807
 
10808
- var __getOwnPropSymbols$17 = Object.getOwnPropertySymbols;
10809
- var __hasOwnProp$17 = Object.prototype.hasOwnProperty;
10810
- var __propIsEnum$17 = Object.prototype.propertyIsEnumerable;
10811
- var __objRest$x = (source, exclude) => {
10808
+ var __getOwnPropSymbols$18 = Object.getOwnPropertySymbols;
10809
+ var __hasOwnProp$18 = Object.prototype.hasOwnProperty;
10810
+ var __propIsEnum$18 = Object.prototype.propertyIsEnumerable;
10811
+ var __objRest$y = (source, exclude) => {
10812
10812
  var target = {};
10813
10813
  for (var prop in source)
10814
- if (__hasOwnProp$17.call(source, prop) && exclude.indexOf(prop) < 0)
10814
+ if (__hasOwnProp$18.call(source, prop) && exclude.indexOf(prop) < 0)
10815
10815
  target[prop] = source[prop];
10816
- if (source != null && __getOwnPropSymbols$17)
10817
- for (var prop of __getOwnPropSymbols$17(source)) {
10818
- if (exclude.indexOf(prop) < 0 && __propIsEnum$17.call(source, prop))
10816
+ if (source != null && __getOwnPropSymbols$18)
10817
+ for (var prop of __getOwnPropSymbols$18(source)) {
10818
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$18.call(source, prop))
10819
10819
  target[prop] = source[prop];
10820
10820
  }
10821
10821
  return target;
@@ -10829,7 +10829,7 @@ class CodedError {
10829
10829
  this.message = message;
10830
10830
  }
10831
10831
  static fromObject(_a) {
10832
- var _b = _a, { message } = _b, options = __objRest$x(_b, ["message"]);
10832
+ var _b = _a, { message } = _b, options = __objRest$y(_b, ["message"]);
10833
10833
  return new CodedError(message, options);
10834
10834
  }
10835
10835
  }
@@ -10951,17 +10951,17 @@ const types = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
10951
10951
  RateCardStatus
10952
10952
  }, Symbol.toStringTag, { value: 'Module' }));
10953
10953
 
10954
- var __getOwnPropSymbols$16 = Object.getOwnPropertySymbols;
10955
- var __hasOwnProp$16 = Object.prototype.hasOwnProperty;
10956
- var __propIsEnum$16 = Object.prototype.propertyIsEnumerable;
10957
- var __objRest$w = (source, exclude) => {
10954
+ var __getOwnPropSymbols$17 = Object.getOwnPropertySymbols;
10955
+ var __hasOwnProp$17 = Object.prototype.hasOwnProperty;
10956
+ var __propIsEnum$17 = Object.prototype.propertyIsEnumerable;
10957
+ var __objRest$x = (source, exclude) => {
10958
10958
  var target = {};
10959
10959
  for (var prop in source)
10960
- if (__hasOwnProp$16.call(source, prop) && exclude.indexOf(prop) < 0)
10960
+ if (__hasOwnProp$17.call(source, prop) && exclude.indexOf(prop) < 0)
10961
10961
  target[prop] = source[prop];
10962
- if (source != null && __getOwnPropSymbols$16)
10963
- for (var prop of __getOwnPropSymbols$16(source)) {
10964
- if (exclude.indexOf(prop) < 0 && __propIsEnum$16.call(source, prop))
10962
+ if (source != null && __getOwnPropSymbols$17)
10963
+ for (var prop of __getOwnPropSymbols$17(source)) {
10964
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$17.call(source, prop))
10965
10965
  target[prop] = source[prop];
10966
10966
  }
10967
10967
  return target;
@@ -10993,7 +10993,7 @@ class AccountSettingsAPI {
10993
10993
  * The `updateImage` method updates specific image data for a given image id.
10994
10994
  */
10995
10995
  this.updateImage = (_a) => {
10996
- var _b = _a, { labelImageId } = _b, data = __objRest$w(_b, ["labelImageId"]);
10996
+ var _b = _a, { labelImageId } = _b, data = __objRest$x(_b, ["labelImageId"]);
10997
10997
  return this.client.put(`/v1/account/settings/images/${labelImageId}`, data);
10998
10998
  };
10999
10999
  /**
@@ -13891,7 +13891,7 @@ var ipaddr = {
13891
13891
  }).call(commonjsGlobal);
13892
13892
  } (ipaddr));
13893
13893
 
13894
- var __async$1d = (__this, __arguments, generator) => {
13894
+ var __async$1g = (__this, __arguments, generator) => {
13895
13895
  return new Promise((resolve, reject) => {
13896
13896
  var fulfilled = (value) => {
13897
13897
  try {
@@ -13913,7 +13913,7 @@ var __async$1d = (__this, __arguments, generator) => {
13913
13913
  };
13914
13914
  const ipifyProvider = "https://api.ipify.org/?format=json";
13915
13915
  const fallbackProvider = "https://ipecho.net/plain";
13916
- const getEndUserIpFallbackProvider = () => __async$1d(void 0, null, function* () {
13916
+ const getEndUserIpFallbackProvider = () => __async$1g(void 0, null, function* () {
13917
13917
  try {
13918
13918
  const response = yield axios.get(fallbackProvider);
13919
13919
  if (response.data && ipaddrExports.isValid(response.data)) {
@@ -13924,7 +13924,7 @@ const getEndUserIpFallbackProvider = () => __async$1d(void 0, null, function* ()
13924
13924
  return void 0;
13925
13925
  }
13926
13926
  });
13927
- const getEndUserIpAddress = () => __async$1d(void 0, null, function* () {
13927
+ const getEndUserIpAddress = () => __async$1g(void 0, null, function* () {
13928
13928
  try {
13929
13929
  const response = yield axios.get(ipifyProvider);
13930
13930
  if (response.data.ip && ipaddrExports.isValid(response.data.ip)) {
@@ -13985,38 +13985,38 @@ const decamelizeKeys = (obj, separator = "_") => {
13985
13985
  return obj;
13986
13986
  };
13987
13987
 
13988
- var __defProp$W = Object.defineProperty;
13989
- var __defProps$Q = Object.defineProperties;
13990
- var __getOwnPropDescs$Q = Object.getOwnPropertyDescriptors;
13991
- var __getOwnPropSymbols$15 = Object.getOwnPropertySymbols;
13992
- var __hasOwnProp$15 = Object.prototype.hasOwnProperty;
13993
- var __propIsEnum$15 = Object.prototype.propertyIsEnumerable;
13994
- var __defNormalProp$W = (obj, key, value) => key in obj ? __defProp$W(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
13995
- var __spreadValues$W = (a, b) => {
13988
+ var __defProp$X = Object.defineProperty;
13989
+ var __defProps$R = Object.defineProperties;
13990
+ var __getOwnPropDescs$R = Object.getOwnPropertyDescriptors;
13991
+ var __getOwnPropSymbols$16 = Object.getOwnPropertySymbols;
13992
+ var __hasOwnProp$16 = Object.prototype.hasOwnProperty;
13993
+ var __propIsEnum$16 = Object.prototype.propertyIsEnumerable;
13994
+ var __defNormalProp$X = (obj, key, value) => key in obj ? __defProp$X(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
13995
+ var __spreadValues$X = (a, b) => {
13996
13996
  for (var prop in b || (b = {}))
13997
- if (__hasOwnProp$15.call(b, prop))
13998
- __defNormalProp$W(a, prop, b[prop]);
13999
- if (__getOwnPropSymbols$15)
14000
- for (var prop of __getOwnPropSymbols$15(b)) {
14001
- if (__propIsEnum$15.call(b, prop))
14002
- __defNormalProp$W(a, prop, b[prop]);
13997
+ if (__hasOwnProp$16.call(b, prop))
13998
+ __defNormalProp$X(a, prop, b[prop]);
13999
+ if (__getOwnPropSymbols$16)
14000
+ for (var prop of __getOwnPropSymbols$16(b)) {
14001
+ if (__propIsEnum$16.call(b, prop))
14002
+ __defNormalProp$X(a, prop, b[prop]);
14003
14003
  }
14004
14004
  return a;
14005
14005
  };
14006
- var __spreadProps$Q = (a, b) => __defProps$Q(a, __getOwnPropDescs$Q(b));
14007
- var __objRest$v = (source, exclude) => {
14006
+ var __spreadProps$R = (a, b) => __defProps$R(a, __getOwnPropDescs$R(b));
14007
+ var __objRest$w = (source, exclude) => {
14008
14008
  var target = {};
14009
14009
  for (var prop in source)
14010
- if (__hasOwnProp$15.call(source, prop) && exclude.indexOf(prop) < 0)
14010
+ if (__hasOwnProp$16.call(source, prop) && exclude.indexOf(prop) < 0)
14011
14011
  target[prop] = source[prop];
14012
- if (source != null && __getOwnPropSymbols$15)
14013
- for (var prop of __getOwnPropSymbols$15(source)) {
14014
- if (exclude.indexOf(prop) < 0 && __propIsEnum$15.call(source, prop))
14012
+ if (source != null && __getOwnPropSymbols$16)
14013
+ for (var prop of __getOwnPropSymbols$16(source)) {
14014
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$16.call(source, prop))
14015
14015
  target[prop] = source[prop];
14016
14016
  }
14017
14017
  return target;
14018
14018
  };
14019
- var __async$1c = (__this, __arguments, generator) => {
14019
+ var __async$1f = (__this, __arguments, generator) => {
14020
14020
  return new Promise((resolve, reject) => {
14021
14021
  var fulfilled = (value) => {
14022
14022
  try {
@@ -14056,12 +14056,12 @@ class CarriersAPI {
14056
14056
  /**
14057
14057
  * The `connect` method connects a carrier account to a user's ShipEngine account.
14058
14058
  */
14059
- this.connect = (_a) => __async$1c(this, null, function* () {
14060
- var _b = _a, { carrierCode } = _b, connection = __objRest$v(_b, ["carrierCode"]);
14059
+ this.connect = (_a) => __async$1f(this, null, function* () {
14060
+ var _b = _a, { carrierCode } = _b, connection = __objRest$w(_b, ["carrierCode"]);
14061
14061
  const endUserIpAddress = yield getEndUserIpAddress();
14062
14062
  if (!endUserIpAddress)
14063
14063
  return Promise.reject([new CodedError("Unable to get IP address")]);
14064
- return yield this.client.post(`/v1/registration/${carrierCode}`, __spreadProps$Q(__spreadValues$W({}, connection), {
14064
+ return yield this.client.post(`/v1/registration/${carrierCode}`, __spreadProps$R(__spreadValues$X({}, connection), {
14065
14065
  endUserIpAddress
14066
14066
  }));
14067
14067
  });
@@ -14155,22 +14155,22 @@ class CarriersAPI {
14155
14155
  }
14156
14156
  }
14157
14157
 
14158
- var __getOwnPropSymbols$14 = Object.getOwnPropertySymbols;
14159
- var __hasOwnProp$14 = Object.prototype.hasOwnProperty;
14160
- var __propIsEnum$14 = Object.prototype.propertyIsEnumerable;
14161
- var __objRest$u = (source, exclude) => {
14158
+ var __getOwnPropSymbols$15 = Object.getOwnPropertySymbols;
14159
+ var __hasOwnProp$15 = Object.prototype.hasOwnProperty;
14160
+ var __propIsEnum$15 = Object.prototype.propertyIsEnumerable;
14161
+ var __objRest$v = (source, exclude) => {
14162
14162
  var target = {};
14163
14163
  for (var prop in source)
14164
- if (__hasOwnProp$14.call(source, prop) && exclude.indexOf(prop) < 0)
14164
+ if (__hasOwnProp$15.call(source, prop) && exclude.indexOf(prop) < 0)
14165
14165
  target[prop] = source[prop];
14166
- if (source != null && __getOwnPropSymbols$14)
14167
- for (var prop of __getOwnPropSymbols$14(source)) {
14168
- if (exclude.indexOf(prop) < 0 && __propIsEnum$14.call(source, prop))
14166
+ if (source != null && __getOwnPropSymbols$15)
14167
+ for (var prop of __getOwnPropSymbols$15(source)) {
14168
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$15.call(source, prop))
14169
14169
  target[prop] = source[prop];
14170
14170
  }
14171
14171
  return target;
14172
14172
  };
14173
- var __async$1b = (__this, __arguments, generator) => {
14173
+ var __async$1e = (__this, __arguments, generator) => {
14174
14174
  return new Promise((resolve, reject) => {
14175
14175
  var fulfilled = (value) => {
14176
14176
  try {
@@ -14212,7 +14212,7 @@ class ConnectionsAPI {
14212
14212
  /**
14213
14213
  * The `connectCarrier` method connects a carrier to account.
14214
14214
  */
14215
- this.connectCarrier = (carrierName, formData) => __async$1b(this, null, function* () {
14215
+ this.connectCarrier = (carrierName, formData) => __async$1e(this, null, function* () {
14216
14216
  return yield this.client.post(
14217
14217
  `/v1/connections/carriers/${carrierName}`,
14218
14218
  formData,
@@ -14260,7 +14260,7 @@ class ConnectionsAPI {
14260
14260
  * @docs https://auctane.atlassian.net/wiki/spaces/SEEU/pages/6228738069/ENGINE-9471+Endicia+web+client+communication
14261
14261
  */
14262
14262
  this.requestStampsAccountUrls = (_a) => {
14263
- var _b = _a, { carrierId } = _b, rest = __objRest$u(_b, ["carrierId"]);
14263
+ var _b = _a, { carrierId } = _b, rest = __objRest$v(_b, ["carrierId"]);
14264
14264
  return this.client.put(
14265
14265
  `v1/connections/carriers/stamps_com/${carrierId}/request_account_url`,
14266
14266
  rest
@@ -16380,23 +16380,23 @@ class CustomPackagesAPI {
16380
16380
  }
16381
16381
  }
16382
16382
 
16383
- var __defProp$V = Object.defineProperty;
16384
- var __getOwnPropSymbols$13 = Object.getOwnPropertySymbols;
16385
- var __hasOwnProp$13 = Object.prototype.hasOwnProperty;
16386
- var __propIsEnum$13 = Object.prototype.propertyIsEnumerable;
16387
- var __defNormalProp$V = (obj, key, value) => key in obj ? __defProp$V(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
16388
- var __spreadValues$V = (a, b) => {
16383
+ var __defProp$W = Object.defineProperty;
16384
+ var __getOwnPropSymbols$14 = Object.getOwnPropertySymbols;
16385
+ var __hasOwnProp$14 = Object.prototype.hasOwnProperty;
16386
+ var __propIsEnum$14 = Object.prototype.propertyIsEnumerable;
16387
+ var __defNormalProp$W = (obj, key, value) => key in obj ? __defProp$W(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
16388
+ var __spreadValues$W = (a, b) => {
16389
16389
  for (var prop in b || (b = {}))
16390
- if (__hasOwnProp$13.call(b, prop))
16391
- __defNormalProp$V(a, prop, b[prop]);
16392
- if (__getOwnPropSymbols$13)
16393
- for (var prop of __getOwnPropSymbols$13(b)) {
16394
- if (__propIsEnum$13.call(b, prop))
16395
- __defNormalProp$V(a, prop, b[prop]);
16390
+ if (__hasOwnProp$14.call(b, prop))
16391
+ __defNormalProp$W(a, prop, b[prop]);
16392
+ if (__getOwnPropSymbols$14)
16393
+ for (var prop of __getOwnPropSymbols$14(b)) {
16394
+ if (__propIsEnum$14.call(b, prop))
16395
+ __defNormalProp$W(a, prop, b[prop]);
16396
16396
  }
16397
16397
  return a;
16398
16398
  };
16399
- var __async$1a = (__this, __arguments, generator) => {
16399
+ var __async$1d = (__this, __arguments, generator) => {
16400
16400
  return new Promise((resolve, reject) => {
16401
16401
  var fulfilled = (value) => {
16402
16402
  try {
@@ -16435,12 +16435,12 @@ class FundingSourcesAPI {
16435
16435
  * The `create` method creates a new funding source for a given user. This requires
16436
16436
  * payment information to be collected from the user.
16437
16437
  */
16438
- this.create = (createFundingSource) => __async$1a(this, null, function* () {
16438
+ this.create = (createFundingSource) => __async$1d(this, null, function* () {
16439
16439
  const endUserIpAddress = yield getEndUserIpAddress();
16440
16440
  if (!endUserIpAddress) {
16441
16441
  return Promise.reject([new CodedError("Unable to get IP address")]);
16442
16442
  }
16443
- return yield this.client.post("/v1/funding_sources", __spreadValues$V({
16443
+ return yield this.client.post("/v1/funding_sources", __spreadValues$W({
16444
16444
  endUserIpAddress
16445
16445
  }, createFundingSource));
16446
16446
  });
@@ -16449,7 +16449,7 @@ class FundingSourcesAPI {
16449
16449
  * user to update the billing address or payment information associated with the
16450
16450
  * funding source.
16451
16451
  */
16452
- this.update = (billingInfo, creditCardInfo, auctanePayInfo, fundingSourceId) => __async$1a(this, null, function* () {
16452
+ this.update = (billingInfo, creditCardInfo, auctanePayInfo, fundingSourceId) => __async$1d(this, null, function* () {
16453
16453
  const endUserIpAddress = yield getEndUserIpAddress();
16454
16454
  if (!endUserIpAddress) {
16455
16455
  return Promise.reject([new CodedError("Unable to get IP address")]);
@@ -16459,7 +16459,7 @@ class FundingSourcesAPI {
16459
16459
  {
16460
16460
  billingInfo,
16461
16461
  endUserIpAddress,
16462
- paymentMethod: __spreadValues$V({
16462
+ paymentMethod: __spreadValues$W({
16463
16463
  creditCardInfo
16464
16464
  }, auctanePayInfo)
16465
16465
  }
@@ -16469,19 +16469,19 @@ class FundingSourcesAPI {
16469
16469
  * The `registerCarrier` method registers a carrier account and associates
16470
16470
  * it with a given funding source.
16471
16471
  */
16472
- this.registerCarrier = (carrier) => __async$1a(this, null, function* () {
16472
+ this.registerCarrier = (carrier) => __async$1d(this, null, function* () {
16473
16473
  const endUserIpAddress = yield getEndUserIpAddress();
16474
16474
  if (!endUserIpAddress) {
16475
16475
  return Promise.reject([new CodedError("Unable to get IP address")]);
16476
16476
  }
16477
- return yield this.client.post("/v1/registration/funding_source", __spreadValues$V({
16477
+ return yield this.client.post("/v1/registration/funding_source", __spreadValues$W({
16478
16478
  endUserIpAddress
16479
16479
  }, carrier));
16480
16480
  });
16481
16481
  /**
16482
16482
  * The `addFunds` method allows you to add funds to a funding source.
16483
16483
  */
16484
- this.addFunds = (amount, fundingSourceId) => __async$1a(this, null, function* () {
16484
+ this.addFunds = (amount, fundingSourceId) => __async$1d(this, null, function* () {
16485
16485
  return yield this.client.put(
16486
16486
  `/v1/funding_sources/${fundingSourceId}/add_funds`,
16487
16487
  amount
@@ -16491,7 +16491,7 @@ class FundingSourcesAPI {
16491
16491
  * The `metadata` method returns seller-specific requirements for creating funding sources
16492
16492
  * and attaching carriers
16493
16493
  */
16494
- this.metadata = () => __async$1a(this, null, function* () {
16494
+ this.metadata = () => __async$1d(this, null, function* () {
16495
16495
  return yield this.client.get("/v1/funding_sources/metadata");
16496
16496
  });
16497
16497
  /**
@@ -16560,7 +16560,7 @@ class InsuranceAPI {
16560
16560
  }
16561
16561
  }
16562
16562
 
16563
- var __async$19 = (__this, __arguments, generator) => {
16563
+ var __async$1c = (__this, __arguments, generator) => {
16564
16564
  return new Promise((resolve, reject) => {
16565
16565
  var fulfilled = (value) => {
16566
16566
  try {
@@ -16592,13 +16592,13 @@ class InvoiceAddressAPI {
16592
16592
  /**
16593
16593
  * The `create` method creates a new invoice address for a given user.
16594
16594
  */
16595
- this.create = (invoiceAddress) => __async$19(this, null, function* () {
16595
+ this.create = (invoiceAddress) => __async$1c(this, null, function* () {
16596
16596
  return yield this.client.post("/v1/invoice_address", invoiceAddress);
16597
16597
  });
16598
16598
  /**
16599
16599
  * The `update` method updates a invoice address for a given user.
16600
16600
  */
16601
- this.update = (invoiceAddress) => __async$19(this, null, function* () {
16601
+ this.update = (invoiceAddress) => __async$1c(this, null, function* () {
16602
16602
  return yield this.client.put("/v1/invoice_address", invoiceAddress);
16603
16603
  });
16604
16604
  this.client = client;
@@ -16666,17 +16666,17 @@ class LabelsAPI {
16666
16666
  }
16667
16667
  }
16668
16668
 
16669
- var __getOwnPropSymbols$12 = Object.getOwnPropertySymbols;
16670
- var __hasOwnProp$12 = Object.prototype.hasOwnProperty;
16671
- var __propIsEnum$12 = Object.prototype.propertyIsEnumerable;
16672
- var __objRest$t = (source, exclude) => {
16669
+ var __getOwnPropSymbols$13 = Object.getOwnPropertySymbols;
16670
+ var __hasOwnProp$13 = Object.prototype.hasOwnProperty;
16671
+ var __propIsEnum$13 = Object.prototype.propertyIsEnumerable;
16672
+ var __objRest$u = (source, exclude) => {
16673
16673
  var target = {};
16674
16674
  for (var prop in source)
16675
- if (__hasOwnProp$12.call(source, prop) && exclude.indexOf(prop) < 0)
16675
+ if (__hasOwnProp$13.call(source, prop) && exclude.indexOf(prop) < 0)
16676
16676
  target[prop] = source[prop];
16677
- if (source != null && __getOwnPropSymbols$12)
16678
- for (var prop of __getOwnPropSymbols$12(source)) {
16679
- if (exclude.indexOf(prop) < 0 && __propIsEnum$12.call(source, prop))
16677
+ if (source != null && __getOwnPropSymbols$13)
16678
+ for (var prop of __getOwnPropSymbols$13(source)) {
16679
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$13.call(source, prop))
16680
16680
  target[prop] = source[prop];
16681
16681
  }
16682
16682
  return target;
@@ -16708,7 +16708,7 @@ class OrderSourcesAPI {
16708
16708
  * The `update` method will allow the user to update a connected Order Source
16709
16709
  */
16710
16710
  this.update = (_a) => {
16711
- var _b = _a, { orderSourceId } = _b, rest = __objRest$t(_b, ["orderSourceId"]);
16711
+ var _b = _a, { orderSourceId } = _b, rest = __objRest$u(_b, ["orderSourceId"]);
16712
16712
  return this.client.put(`/v-beta/order_sources/${orderSourceId}`, rest);
16713
16713
  };
16714
16714
  /**
@@ -16797,19 +16797,58 @@ class RateCardsAPI {
16797
16797
  }
16798
16798
  }
16799
16799
 
16800
- var __defProp$U = Object.defineProperty;
16801
- var __getOwnPropSymbols$11 = Object.getOwnPropertySymbols;
16802
- var __hasOwnProp$11 = Object.prototype.hasOwnProperty;
16803
- var __propIsEnum$11 = Object.prototype.propertyIsEnumerable;
16804
- var __defNormalProp$U = (obj, key, value) => key in obj ? __defProp$U(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
16805
- var __spreadValues$U = (a, b) => {
16800
+ class RateShoppersAPI {
16801
+ constructor(client) {
16802
+ this.client = client;
16803
+ /**
16804
+ * The `list` method retrieves a list of Rate Shoppers for a given user.
16805
+ */
16806
+ this.list = (params) => {
16807
+ return this.client.get("/v1/rate_shoppers", {
16808
+ params
16809
+ });
16810
+ };
16811
+ /**
16812
+ * The `get` method retrieves a Rate Shoppers for a given user by the Rate Shopper ID
16813
+ */
16814
+ this.get = (rateShopperId) => {
16815
+ return this.client.get(`/v1/rate_shoppers/${rateShopperId}`);
16816
+ };
16817
+ /**
16818
+ * The `create` method allows to create a new Rate Shopper for a given user
16819
+ */
16820
+ this.create = (request) => {
16821
+ return this.client.post("/v1/rate_shoppers", request);
16822
+ };
16823
+ /**
16824
+ * The `edit` method allows to update a Rate Shopper for a given user by the Rate Shopper ID
16825
+ */
16826
+ this.edit = (rateShopperId, request) => {
16827
+ return this.client.put(`/v1/rate_shoppers/${rateShopperId}`, request);
16828
+ };
16829
+ /**
16830
+ * The `delete` method allows to delete a Rate Shopper for a given user by the Rate Shopper ID
16831
+ */
16832
+ this.delete = (rateShopperId) => {
16833
+ return this.client.delete(`/v1/rate_shoppers/${rateShopperId}`);
16834
+ };
16835
+ this.client = client;
16836
+ }
16837
+ }
16838
+
16839
+ var __defProp$V = Object.defineProperty;
16840
+ var __getOwnPropSymbols$12 = Object.getOwnPropertySymbols;
16841
+ var __hasOwnProp$12 = Object.prototype.hasOwnProperty;
16842
+ var __propIsEnum$12 = Object.prototype.propertyIsEnumerable;
16843
+ var __defNormalProp$V = (obj, key, value) => key in obj ? __defProp$V(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
16844
+ var __spreadValues$V = (a, b) => {
16806
16845
  for (var prop in b || (b = {}))
16807
- if (__hasOwnProp$11.call(b, prop))
16808
- __defNormalProp$U(a, prop, b[prop]);
16809
- if (__getOwnPropSymbols$11)
16810
- for (var prop of __getOwnPropSymbols$11(b)) {
16811
- if (__propIsEnum$11.call(b, prop))
16812
- __defNormalProp$U(a, prop, b[prop]);
16846
+ if (__hasOwnProp$12.call(b, prop))
16847
+ __defNormalProp$V(a, prop, b[prop]);
16848
+ if (__getOwnPropSymbols$12)
16849
+ for (var prop of __getOwnPropSymbols$12(b)) {
16850
+ if (__propIsEnum$12.call(b, prop))
16851
+ __defNormalProp$V(a, prop, b[prop]);
16813
16852
  }
16814
16853
  return a;
16815
16854
  };
@@ -16831,7 +16870,7 @@ class RatesAPI {
16831
16870
  * method.
16832
16871
  */
16833
16872
  this.estimate = (params) => {
16834
- return this.client.post("/v1/rates/estimate", __spreadValues$U({}, params));
16873
+ return this.client.post("/v1/rates/estimate", __spreadValues$V({}, params));
16835
16874
  };
16836
16875
  this.client = client;
16837
16876
  }
@@ -16911,7 +16950,7 @@ class SalesOrdersAPI {
16911
16950
  }
16912
16951
  }
16913
16952
 
16914
- var __async$18 = (__this, __arguments, generator) => {
16953
+ var __async$1b = (__this, __arguments, generator) => {
16915
16954
  return new Promise((resolve, reject) => {
16916
16955
  var fulfilled = (value) => {
16917
16956
  try {
@@ -16969,7 +17008,7 @@ class SellersAPI {
16969
17008
  /**
16970
17009
  * Deletes an API Key
16971
17010
  */
16972
- this.deleteSellerApiKey = (_0) => __async$18(this, [_0], function* ({
17011
+ this.deleteSellerApiKey = (_0) => __async$1b(this, [_0], function* ({
16973
17012
  encryptedApiKey,
16974
17013
  sellerId,
16975
17014
  isSandbox
@@ -17015,19 +17054,19 @@ class SellersAPI {
17015
17054
  }
17016
17055
  }
17017
17056
 
17018
- var __defProp$T = Object.defineProperty;
17019
- var __getOwnPropSymbols$10 = Object.getOwnPropertySymbols;
17020
- var __hasOwnProp$10 = Object.prototype.hasOwnProperty;
17021
- var __propIsEnum$10 = Object.prototype.propertyIsEnumerable;
17022
- var __defNormalProp$T = (obj, key, value) => key in obj ? __defProp$T(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
17023
- var __spreadValues$T = (a, b) => {
17057
+ var __defProp$U = Object.defineProperty;
17058
+ var __getOwnPropSymbols$11 = Object.getOwnPropertySymbols;
17059
+ var __hasOwnProp$11 = Object.prototype.hasOwnProperty;
17060
+ var __propIsEnum$11 = Object.prototype.propertyIsEnumerable;
17061
+ var __defNormalProp$U = (obj, key, value) => key in obj ? __defProp$U(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
17062
+ var __spreadValues$U = (a, b) => {
17024
17063
  for (var prop in b || (b = {}))
17025
- if (__hasOwnProp$10.call(b, prop))
17026
- __defNormalProp$T(a, prop, b[prop]);
17027
- if (__getOwnPropSymbols$10)
17028
- for (var prop of __getOwnPropSymbols$10(b)) {
17029
- if (__propIsEnum$10.call(b, prop))
17030
- __defNormalProp$T(a, prop, b[prop]);
17064
+ if (__hasOwnProp$11.call(b, prop))
17065
+ __defNormalProp$U(a, prop, b[prop]);
17066
+ if (__getOwnPropSymbols$11)
17067
+ for (var prop of __getOwnPropSymbols$11(b)) {
17068
+ if (__propIsEnum$11.call(b, prop))
17069
+ __defNormalProp$U(a, prop, b[prop]);
17031
17070
  }
17032
17071
  return a;
17033
17072
  };
@@ -17039,7 +17078,7 @@ class ServicePointsAPI {
17039
17078
  * Either an address, coordinates, or an address query
17040
17079
  */
17041
17080
  this.list = (options) => {
17042
- return this.client.post("/v1/service_points/list", __spreadValues$T({}, options));
17081
+ return this.client.post("/v1/service_points/list", __spreadValues$U({}, options));
17043
17082
  };
17044
17083
  /**
17045
17084
  * Get a specific service point by its carrier code, country code, and id
@@ -17057,7 +17096,7 @@ class ServicePointsAPI {
17057
17096
  }
17058
17097
  }
17059
17098
 
17060
- var __async$17 = (__this, __arguments, generator) => {
17099
+ var __async$1a = (__this, __arguments, generator) => {
17061
17100
  return new Promise((resolve, reject) => {
17062
17101
  var fulfilled = (value) => {
17063
17102
  try {
@@ -17106,7 +17145,7 @@ class ShipmentsAPI {
17106
17145
  * The `create` method allows for creating shipments based on a list of shipment
17107
17146
  * items passed into this method.
17108
17147
  */
17109
- this.create = (...shipments) => __async$17(this, null, function* () {
17148
+ this.create = (...shipments) => __async$1a(this, null, function* () {
17110
17149
  return this.client.post("/v1/shipments", {
17111
17150
  shipments
17112
17151
  });
@@ -34523,38 +34562,38 @@ class WebhooksAPI {
34523
34562
  }
34524
34563
  }
34525
34564
 
34526
- var __defProp$S = Object.defineProperty;
34527
- var __defProps$P = Object.defineProperties;
34528
- var __getOwnPropDescs$P = Object.getOwnPropertyDescriptors;
34529
- var __getOwnPropSymbols$$ = Object.getOwnPropertySymbols;
34530
- var __hasOwnProp$$ = Object.prototype.hasOwnProperty;
34531
- var __propIsEnum$$ = Object.prototype.propertyIsEnumerable;
34532
- var __defNormalProp$S = (obj, key, value) => key in obj ? __defProp$S(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
34533
- var __spreadValues$S = (a, b) => {
34565
+ var __defProp$T = Object.defineProperty;
34566
+ var __defProps$Q = Object.defineProperties;
34567
+ var __getOwnPropDescs$Q = Object.getOwnPropertyDescriptors;
34568
+ var __getOwnPropSymbols$10 = Object.getOwnPropertySymbols;
34569
+ var __hasOwnProp$10 = Object.prototype.hasOwnProperty;
34570
+ var __propIsEnum$10 = Object.prototype.propertyIsEnumerable;
34571
+ var __defNormalProp$T = (obj, key, value) => key in obj ? __defProp$T(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
34572
+ var __spreadValues$T = (a, b) => {
34534
34573
  for (var prop in b || (b = {}))
34535
- if (__hasOwnProp$$.call(b, prop))
34536
- __defNormalProp$S(a, prop, b[prop]);
34537
- if (__getOwnPropSymbols$$)
34538
- for (var prop of __getOwnPropSymbols$$(b)) {
34539
- if (__propIsEnum$$.call(b, prop))
34540
- __defNormalProp$S(a, prop, b[prop]);
34574
+ if (__hasOwnProp$10.call(b, prop))
34575
+ __defNormalProp$T(a, prop, b[prop]);
34576
+ if (__getOwnPropSymbols$10)
34577
+ for (var prop of __getOwnPropSymbols$10(b)) {
34578
+ if (__propIsEnum$10.call(b, prop))
34579
+ __defNormalProp$T(a, prop, b[prop]);
34541
34580
  }
34542
34581
  return a;
34543
34582
  };
34544
- var __spreadProps$P = (a, b) => __defProps$P(a, __getOwnPropDescs$P(b));
34545
- var __objRest$s = (source, exclude) => {
34583
+ var __spreadProps$Q = (a, b) => __defProps$Q(a, __getOwnPropDescs$Q(b));
34584
+ var __objRest$t = (source, exclude) => {
34546
34585
  var target = {};
34547
34586
  for (var prop in source)
34548
- if (__hasOwnProp$$.call(source, prop) && exclude.indexOf(prop) < 0)
34587
+ if (__hasOwnProp$10.call(source, prop) && exclude.indexOf(prop) < 0)
34549
34588
  target[prop] = source[prop];
34550
- if (source != null && __getOwnPropSymbols$$)
34551
- for (var prop of __getOwnPropSymbols$$(source)) {
34552
- if (exclude.indexOf(prop) < 0 && __propIsEnum$$.call(source, prop))
34589
+ if (source != null && __getOwnPropSymbols$10)
34590
+ for (var prop of __getOwnPropSymbols$10(source)) {
34591
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$10.call(source, prop))
34553
34592
  target[prop] = source[prop];
34554
34593
  }
34555
34594
  return target;
34556
34595
  };
34557
- var __async$16 = (__this, __arguments, generator) => {
34596
+ var __async$19 = (__this, __arguments, generator) => {
34558
34597
  return new Promise((resolve, reject) => {
34559
34598
  var fulfilled = (value) => {
34560
34599
  try {
@@ -34577,7 +34616,7 @@ var __async$16 = (__this, __arguments, generator) => {
34577
34616
  const logger$1 = E({
34578
34617
  level: process.env.NODE_ENV === "production" ? "fatal" : "info",
34579
34618
  name: "shipengine-api",
34580
- serializers: __spreadProps$P(__spreadValues$S({}, k), {
34619
+ serializers: __spreadProps$Q(__spreadValues$T({}, k), {
34581
34620
  req: (req) => ({
34582
34621
  headers: req.headers,
34583
34622
  method: req.method,
@@ -34602,7 +34641,7 @@ class ShipEngineAPI {
34602
34641
  this.getSandboxToken = getSandboxToken;
34603
34642
  const client = axios.create({
34604
34643
  baseURL,
34605
- headers: __spreadProps$P(__spreadValues$S({}, headers), {
34644
+ headers: __spreadProps$Q(__spreadValues$T({}, headers), {
34606
34645
  "Content-Type": "application/json"
34607
34646
  }),
34608
34647
  paramsSerializer: (params) => lib.stringify(decamelizeKeys(params), { arrayFormat: "brackets" }),
@@ -34612,7 +34651,7 @@ class ShipEngineAPI {
34612
34651
  return decamelizeKeys(data);
34613
34652
  else {
34614
34653
  if (data && data.__skipDecamelize) {
34615
- const _a = data, cleanData = __objRest$s(_a, ["__skipDecamelize"]);
34654
+ const _a = data, cleanData = __objRest$t(_a, ["__skipDecamelize"]);
34616
34655
  return cleanData;
34617
34656
  }
34618
34657
  return data;
@@ -34642,7 +34681,7 @@ class ShipEngineAPI {
34642
34681
  });
34643
34682
  client.defaults.headers.common["Authorization"] = `Bearer ${token}`;
34644
34683
  client.interceptors.request.use(
34645
- (config) => __async$16(this, null, function* () {
34684
+ (config) => __async$19(this, null, function* () {
34646
34685
  if (config.isSandbox) {
34647
34686
  if (!this.sandboxToken) {
34648
34687
  this.sandboxToken = yield getSandboxToken == null ? void 0 : getSandboxToken();
@@ -34671,7 +34710,7 @@ class ShipEngineAPI {
34671
34710
  }
34672
34711
  return res;
34673
34712
  },
34674
- (err) => __async$16(this, null, function* () {
34713
+ (err) => __async$19(this, null, function* () {
34675
34714
  var _a, _b, _c, _d, _e;
34676
34715
  if (debug) {
34677
34716
  logger$1.error(
@@ -34720,7 +34759,7 @@ class ShipEngineAPI {
34720
34759
  * that token (also known as Seller ID)
34721
34760
  */
34722
34761
  getTenant(isSandbox) {
34723
- return __async$16(this, null, function* () {
34762
+ return __async$19(this, null, function* () {
34724
34763
  var _a;
34725
34764
  if (!isSandbox) {
34726
34765
  return this.getTenantFromToken(this.token);
@@ -34940,6 +34979,15 @@ class ShipEngineAPI {
34940
34979
  get shippingRules() {
34941
34980
  return new ShippingRulesAPI(this.client);
34942
34981
  }
34982
+ /**
34983
+ * The `rateShoppers` method provides access to the Rate Shoppers endpoints in ShipEngine
34984
+ * API.
34985
+ *
34986
+ * @see {@link RateShoppersAPI | The Rate Shoppers API module}
34987
+ */
34988
+ get rateShoppers() {
34989
+ return new RateShoppersAPI(this.client);
34990
+ }
34943
34991
  /**
34944
34992
  * The `webhooks` method provides access to the Webhooks endpoints in ShipEngine
34945
34993
  * API.
@@ -35046,25 +35094,25 @@ const delay = (ms) => new Promise((resolve) => {
35046
35094
 
35047
35095
  const onError = (_errors) => _default();
35048
35096
 
35049
- var __defProp$R = Object.defineProperty;
35050
- var __defProps$O = Object.defineProperties;
35051
- var __getOwnPropDescs$O = Object.getOwnPropertyDescriptors;
35052
- var __getOwnPropSymbols$_ = Object.getOwnPropertySymbols;
35053
- var __hasOwnProp$_ = Object.prototype.hasOwnProperty;
35054
- var __propIsEnum$_ = Object.prototype.propertyIsEnumerable;
35055
- var __defNormalProp$R = (obj, key, value) => key in obj ? __defProp$R(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35056
- var __spreadValues$R = (a, b) => {
35097
+ var __defProp$S = Object.defineProperty;
35098
+ var __defProps$P = Object.defineProperties;
35099
+ var __getOwnPropDescs$P = Object.getOwnPropertyDescriptors;
35100
+ var __getOwnPropSymbols$$ = Object.getOwnPropertySymbols;
35101
+ var __hasOwnProp$$ = Object.prototype.hasOwnProperty;
35102
+ var __propIsEnum$$ = Object.prototype.propertyIsEnumerable;
35103
+ var __defNormalProp$S = (obj, key, value) => key in obj ? __defProp$S(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35104
+ var __spreadValues$S = (a, b) => {
35057
35105
  for (var prop in b || (b = {}))
35058
- if (__hasOwnProp$_.call(b, prop))
35059
- __defNormalProp$R(a, prop, b[prop]);
35060
- if (__getOwnPropSymbols$_)
35061
- for (var prop of __getOwnPropSymbols$_(b)) {
35062
- if (__propIsEnum$_.call(b, prop))
35063
- __defNormalProp$R(a, prop, b[prop]);
35106
+ if (__hasOwnProp$$.call(b, prop))
35107
+ __defNormalProp$S(a, prop, b[prop]);
35108
+ if (__getOwnPropSymbols$$)
35109
+ for (var prop of __getOwnPropSymbols$$(b)) {
35110
+ if (__propIsEnum$$.call(b, prop))
35111
+ __defNormalProp$S(a, prop, b[prop]);
35064
35112
  }
35065
35113
  return a;
35066
35114
  };
35067
- var __spreadProps$O = (a, b) => __defProps$O(a, __getOwnPropDescs$O(b));
35115
+ var __spreadProps$P = (a, b) => __defProps$P(a, __getOwnPropDescs$P(b));
35068
35116
  const streams = [];
35069
35117
  if (process.env.NODE_ENV === "production") {
35070
35118
  streams.push({
@@ -35073,7 +35121,7 @@ if (process.env.NODE_ENV === "production") {
35073
35121
  }
35074
35122
  const logger = E({
35075
35123
  name: "shipengine",
35076
- serializers: __spreadProps$O(__spreadValues$R({}, k), {
35124
+ serializers: __spreadProps$P(__spreadValues$S({}, k), {
35077
35125
  req: (req) => ({
35078
35126
  headers: req.headers,
35079
35127
  method: req.method,
@@ -35098,7 +35146,7 @@ const retryUntil = (callbackFn, retries = 10, timeoutBetweenAttempts = 1e3) => P
35098
35146
  throw error;
35099
35147
  });
35100
35148
 
35101
- var __async$15 = (__this, __arguments, generator) => {
35149
+ var __async$18 = (__this, __arguments, generator) => {
35102
35150
  return new Promise((resolve, reject) => {
35103
35151
  var fulfilled = (value) => {
35104
35152
  try {
@@ -35121,7 +35169,7 @@ var __async$15 = (__this, __arguments, generator) => {
35121
35169
  const useCreateAccountImage = () => {
35122
35170
  const { client } = useShipEngine();
35123
35171
  return useMutation({
35124
- mutationFn: (data) => __async$15(void 0, null, function* () {
35172
+ mutationFn: (data) => __async$18(void 0, null, function* () {
35125
35173
  const result = yield client.accountSettings.createImage(data);
35126
35174
  return result.data;
35127
35175
  }),
@@ -35130,7 +35178,7 @@ const useCreateAccountImage = () => {
35130
35178
  });
35131
35179
  };
35132
35180
 
35133
- var __async$14 = (__this, __arguments, generator) => {
35181
+ var __async$17 = (__this, __arguments, generator) => {
35134
35182
  return new Promise((resolve, reject) => {
35135
35183
  var fulfilled = (value) => {
35136
35184
  try {
@@ -35153,7 +35201,7 @@ var __async$14 = (__this, __arguments, generator) => {
35153
35201
  const useDeleteAccountImage = () => {
35154
35202
  const { client } = useShipEngine();
35155
35203
  return useMutation({
35156
- mutationFn: (labelImageId) => __async$14(void 0, null, function* () {
35204
+ mutationFn: (labelImageId) => __async$17(void 0, null, function* () {
35157
35205
  const result = yield client.accountSettings.deleteImage(labelImageId);
35158
35206
  return result.data;
35159
35207
  }),
@@ -35182,7 +35230,7 @@ const useGetAccountSettings = () => {
35182
35230
  });
35183
35231
  };
35184
35232
 
35185
- var __async$13 = (__this, __arguments, generator) => {
35233
+ var __async$16 = (__this, __arguments, generator) => {
35186
35234
  return new Promise((resolve, reject) => {
35187
35235
  var fulfilled = (value) => {
35188
35236
  try {
@@ -35205,7 +35253,7 @@ var __async$13 = (__this, __arguments, generator) => {
35205
35253
  const useUpdateAccountImage = () => {
35206
35254
  const { client } = useShipEngine();
35207
35255
  return useMutation({
35208
- mutationFn: (data) => __async$13(void 0, null, function* () {
35256
+ mutationFn: (data) => __async$16(void 0, null, function* () {
35209
35257
  const result = yield client.accountSettings.updateImage(data);
35210
35258
  return result.data;
35211
35259
  }),
@@ -35214,7 +35262,7 @@ const useUpdateAccountImage = () => {
35214
35262
  });
35215
35263
  };
35216
35264
 
35217
- var __async$12 = (__this, __arguments, generator) => {
35265
+ var __async$15 = (__this, __arguments, generator) => {
35218
35266
  return new Promise((resolve, reject) => {
35219
35267
  var fulfilled = (value) => {
35220
35268
  try {
@@ -35237,7 +35285,7 @@ var __async$12 = (__this, __arguments, generator) => {
35237
35285
  const useUpdateAccountSettings = () => {
35238
35286
  const { client } = useShipEngine();
35239
35287
  return useMutation({
35240
- mutationFn: (settings) => __async$12(void 0, null, function* () {
35288
+ mutationFn: (settings) => __async$15(void 0, null, function* () {
35241
35289
  const result = yield client.accountSettings.update(settings);
35242
35290
  return result.data;
35243
35291
  }),
@@ -35246,28 +35294,28 @@ const useUpdateAccountSettings = () => {
35246
35294
  });
35247
35295
  };
35248
35296
 
35249
- var __defProp$Q = Object.defineProperty;
35250
- var __defProps$N = Object.defineProperties;
35251
- var __getOwnPropDescs$N = Object.getOwnPropertyDescriptors;
35252
- var __getOwnPropSymbols$Z = Object.getOwnPropertySymbols;
35253
- var __hasOwnProp$Z = Object.prototype.hasOwnProperty;
35254
- var __propIsEnum$Z = Object.prototype.propertyIsEnumerable;
35255
- var __defNormalProp$Q = (obj, key, value) => key in obj ? __defProp$Q(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35256
- var __spreadValues$Q = (a, b) => {
35257
- for (var prop in b || (b = {}))
35258
- if (__hasOwnProp$Z.call(b, prop))
35259
- __defNormalProp$Q(a, prop, b[prop]);
35260
- if (__getOwnPropSymbols$Z)
35261
- for (var prop of __getOwnPropSymbols$Z(b)) {
35262
- if (__propIsEnum$Z.call(b, prop))
35263
- __defNormalProp$Q(a, prop, b[prop]);
35297
+ var __defProp$R = Object.defineProperty;
35298
+ var __defProps$O = Object.defineProperties;
35299
+ var __getOwnPropDescs$O = Object.getOwnPropertyDescriptors;
35300
+ var __getOwnPropSymbols$_ = Object.getOwnPropertySymbols;
35301
+ var __hasOwnProp$_ = Object.prototype.hasOwnProperty;
35302
+ var __propIsEnum$_ = Object.prototype.propertyIsEnumerable;
35303
+ var __defNormalProp$R = (obj, key, value) => key in obj ? __defProp$R(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35304
+ var __spreadValues$R = (a, b) => {
35305
+ for (var prop in b || (b = {}))
35306
+ if (__hasOwnProp$_.call(b, prop))
35307
+ __defNormalProp$R(a, prop, b[prop]);
35308
+ if (__getOwnPropSymbols$_)
35309
+ for (var prop of __getOwnPropSymbols$_(b)) {
35310
+ if (__propIsEnum$_.call(b, prop))
35311
+ __defNormalProp$R(a, prop, b[prop]);
35264
35312
  }
35265
35313
  return a;
35266
35314
  };
35267
- var __spreadProps$N = (a, b) => __defProps$N(a, __getOwnPropDescs$N(b));
35315
+ var __spreadProps$O = (a, b) => __defProps$O(a, __getOwnPropDescs$O(b));
35268
35316
  const useListAccountAddons = (params) => {
35269
35317
  const { client } = useShipEngine();
35270
- return useQuery(__spreadProps$N(__spreadValues$Q({}, params), {
35318
+ return useQuery(__spreadProps$O(__spreadValues$R({}, params), {
35271
35319
  onError,
35272
35320
  queryFn: () => client.accountAddons.list(),
35273
35321
  queryKey: ["useListAccountAddons"],
@@ -35275,6 +35323,57 @@ const useListAccountAddons = (params) => {
35275
35323
  }));
35276
35324
  };
35277
35325
 
35326
+ var __defProp$Q = Object.defineProperty;
35327
+ var __defProps$N = Object.defineProperties;
35328
+ var __getOwnPropDescs$N = Object.getOwnPropertyDescriptors;
35329
+ var __getOwnPropSymbols$Z = Object.getOwnPropertySymbols;
35330
+ var __hasOwnProp$Z = Object.prototype.hasOwnProperty;
35331
+ var __propIsEnum$Z = Object.prototype.propertyIsEnumerable;
35332
+ var __defNormalProp$Q = (obj, key, value) => key in obj ? __defProp$Q(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35333
+ var __spreadValues$Q = (a, b) => {
35334
+ for (var prop in b || (b = {}))
35335
+ if (__hasOwnProp$Z.call(b, prop))
35336
+ __defNormalProp$Q(a, prop, b[prop]);
35337
+ if (__getOwnPropSymbols$Z)
35338
+ for (var prop of __getOwnPropSymbols$Z(b)) {
35339
+ if (__propIsEnum$Z.call(b, prop))
35340
+ __defNormalProp$Q(a, prop, b[prop]);
35341
+ }
35342
+ return a;
35343
+ };
35344
+ var __spreadProps$N = (a, b) => __defProps$N(a, __getOwnPropDescs$N(b));
35345
+ var __async$14 = (__this, __arguments, generator) => {
35346
+ return new Promise((resolve, reject) => {
35347
+ var fulfilled = (value) => {
35348
+ try {
35349
+ step(generator.next(value));
35350
+ } catch (e) {
35351
+ reject(e);
35352
+ }
35353
+ };
35354
+ var rejected = (value) => {
35355
+ try {
35356
+ step(generator.throw(value));
35357
+ } catch (e) {
35358
+ reject(e);
35359
+ }
35360
+ };
35361
+ var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
35362
+ step((generator = generator.apply(__this, __arguments)).next());
35363
+ });
35364
+ };
35365
+ const useEnableAccountAddon = (params) => {
35366
+ const { client } = useShipEngine();
35367
+ return useMutation(__spreadProps$N(__spreadValues$Q({}, params), {
35368
+ mutationFn: (addonType) => __async$14(void 0, null, function* () {
35369
+ const result = yield client.accountAddons.enable(addonType);
35370
+ return result.data;
35371
+ }),
35372
+ mutationKey: ["useEnableAccountAddon"],
35373
+ onError
35374
+ }));
35375
+ };
35376
+
35278
35377
  var __defProp$P = Object.defineProperty;
35279
35378
  var __defProps$M = Object.defineProperties;
35280
35379
  var __getOwnPropDescs$M = Object.getOwnPropertyDescriptors;
@@ -35294,7 +35393,7 @@ var __spreadValues$P = (a, b) => {
35294
35393
  return a;
35295
35394
  };
35296
35395
  var __spreadProps$M = (a, b) => __defProps$M(a, __getOwnPropDescs$M(b));
35297
- var __async$11 = (__this, __arguments, generator) => {
35396
+ var __async$13 = (__this, __arguments, generator) => {
35298
35397
  return new Promise((resolve, reject) => {
35299
35398
  var fulfilled = (value) => {
35300
35399
  try {
@@ -35314,14 +35413,14 @@ var __async$11 = (__this, __arguments, generator) => {
35314
35413
  step((generator = generator.apply(__this, __arguments)).next());
35315
35414
  });
35316
35415
  };
35317
- const useEnableAccountAddon = (params) => {
35416
+ const useDisableAccountAddon = (params) => {
35318
35417
  const { client } = useShipEngine();
35319
35418
  return useMutation(__spreadProps$M(__spreadValues$P({}, params), {
35320
- mutationFn: (addonType) => __async$11(void 0, null, function* () {
35321
- const result = yield client.accountAddons.enable(addonType);
35419
+ mutationFn: (addonType) => __async$13(void 0, null, function* () {
35420
+ const result = yield client.accountAddons.disable(addonType);
35322
35421
  return result.data;
35323
35422
  }),
35324
- mutationKey: ["useEnableAccountAddon"],
35423
+ mutationKey: ["useDisableAccountAddon"],
35325
35424
  onError
35326
35425
  }));
35327
35426
  };
@@ -35345,7 +35444,17 @@ var __spreadValues$O = (a, b) => {
35345
35444
  return a;
35346
35445
  };
35347
35446
  var __spreadProps$L = (a, b) => __defProps$L(a, __getOwnPropDescs$L(b));
35348
- var __async$10 = (__this, __arguments, generator) => {
35447
+ const useListAccountFeatures = (params) => {
35448
+ const { client } = useShipEngine();
35449
+ return useQuery(__spreadProps$L(__spreadValues$O({}, params), {
35450
+ onError,
35451
+ queryFn: () => client.accountFeatures.list(),
35452
+ queryKey: ["useListAccountFeatures"],
35453
+ select: (result) => result.data.features
35454
+ }));
35455
+ };
35456
+
35457
+ var __async$12 = (__this, __arguments, generator) => {
35349
35458
  return new Promise((resolve, reject) => {
35350
35459
  var fulfilled = (value) => {
35351
35460
  try {
@@ -35365,16 +35474,16 @@ var __async$10 = (__this, __arguments, generator) => {
35365
35474
  step((generator = generator.apply(__this, __arguments)).next());
35366
35475
  });
35367
35476
  };
35368
- const useDisableAccountAddon = (params) => {
35477
+ const useRequestAccountFeature = () => {
35369
35478
  const { client } = useShipEngine();
35370
- return useMutation(__spreadProps$L(__spreadValues$O({}, params), {
35371
- mutationFn: (addonType) => __async$10(void 0, null, function* () {
35372
- const result = yield client.accountAddons.disable(addonType);
35479
+ return useMutation({
35480
+ mutationFn: (request) => __async$12(void 0, null, function* () {
35481
+ const result = yield client.accountFeatures.request(request);
35373
35482
  return result.data;
35374
35483
  }),
35375
- mutationKey: ["useDisableAccountAddon"],
35484
+ mutationKey: ["useRequestAccountFeature"],
35376
35485
  onError
35377
- }));
35486
+ });
35378
35487
  };
35379
35488
 
35380
35489
  var __defProp$N = Object.defineProperty;
@@ -35396,17 +35505,7 @@ var __spreadValues$N = (a, b) => {
35396
35505
  return a;
35397
35506
  };
35398
35507
  var __spreadProps$K = (a, b) => __defProps$K(a, __getOwnPropDescs$K(b));
35399
- const useListAccountFeatures = (params) => {
35400
- const { client } = useShipEngine();
35401
- return useQuery(__spreadProps$K(__spreadValues$N({}, params), {
35402
- onError,
35403
- queryFn: () => client.accountFeatures.list(),
35404
- queryKey: ["useListAccountFeatures"],
35405
- select: (result) => result.data.features
35406
- }));
35407
- };
35408
-
35409
- var __async$$ = (__this, __arguments, generator) => {
35508
+ var __async$11 = (__this, __arguments, generator) => {
35410
35509
  return new Promise((resolve, reject) => {
35411
35510
  var fulfilled = (value) => {
35412
35511
  try {
@@ -35426,16 +35525,15 @@ var __async$$ = (__this, __arguments, generator) => {
35426
35525
  step((generator = generator.apply(__this, __arguments)).next());
35427
35526
  });
35428
35527
  };
35429
- const useRequestAccountFeature = () => {
35528
+ const useDisableRefundAssist = (params) => {
35430
35529
  const { client } = useShipEngine();
35431
- return useMutation({
35432
- mutationFn: (request) => __async$$(void 0, null, function* () {
35433
- const result = yield client.accountFeatures.request(request);
35434
- return result.data;
35530
+ return useMutation(__spreadProps$K(__spreadValues$N({}, params), {
35531
+ mutationFn: () => __async$11(void 0, null, function* () {
35532
+ yield client.accountRefundAssist.disable();
35435
35533
  }),
35436
- mutationKey: ["useRequestAccountFeature"],
35534
+ mutationKey: ["useDisableRefundAssist"],
35437
35535
  onError
35438
- });
35536
+ }));
35439
35537
  };
35440
35538
 
35441
35539
  var __defProp$M = Object.defineProperty;
@@ -35457,7 +35555,7 @@ var __spreadValues$M = (a, b) => {
35457
35555
  return a;
35458
35556
  };
35459
35557
  var __spreadProps$J = (a, b) => __defProps$J(a, __getOwnPropDescs$J(b));
35460
- var __async$_ = (__this, __arguments, generator) => {
35558
+ var __async$10 = (__this, __arguments, generator) => {
35461
35559
  return new Promise((resolve, reject) => {
35462
35560
  var fulfilled = (value) => {
35463
35561
  try {
@@ -35477,13 +35575,13 @@ var __async$_ = (__this, __arguments, generator) => {
35477
35575
  step((generator = generator.apply(__this, __arguments)).next());
35478
35576
  });
35479
35577
  };
35480
- const useDisableRefundAssist = (params) => {
35578
+ const useEnableRefundAssist = (params) => {
35481
35579
  const { client } = useShipEngine();
35482
35580
  return useMutation(__spreadProps$J(__spreadValues$M({}, params), {
35483
- mutationFn: () => __async$_(void 0, null, function* () {
35484
- yield client.accountRefundAssist.disable();
35581
+ mutationFn: () => __async$10(void 0, null, function* () {
35582
+ yield client.accountRefundAssist.enable();
35485
35583
  }),
35486
- mutationKey: ["useDisableRefundAssist"],
35584
+ mutationKey: ["useEnableRefundAssist"],
35487
35585
  onError
35488
35586
  }));
35489
35587
  };
@@ -35507,59 +35605,9 @@ var __spreadValues$L = (a, b) => {
35507
35605
  return a;
35508
35606
  };
35509
35607
  var __spreadProps$I = (a, b) => __defProps$I(a, __getOwnPropDescs$I(b));
35510
- var __async$Z = (__this, __arguments, generator) => {
35511
- return new Promise((resolve, reject) => {
35512
- var fulfilled = (value) => {
35513
- try {
35514
- step(generator.next(value));
35515
- } catch (e) {
35516
- reject(e);
35517
- }
35518
- };
35519
- var rejected = (value) => {
35520
- try {
35521
- step(generator.throw(value));
35522
- } catch (e) {
35523
- reject(e);
35524
- }
35525
- };
35526
- var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
35527
- step((generator = generator.apply(__this, __arguments)).next());
35528
- });
35529
- };
35530
- const useEnableRefundAssist = (params) => {
35531
- const { client } = useShipEngine();
35532
- return useMutation(__spreadProps$I(__spreadValues$L({}, params), {
35533
- mutationFn: () => __async$Z(void 0, null, function* () {
35534
- yield client.accountRefundAssist.enable();
35535
- }),
35536
- mutationKey: ["useEnableRefundAssist"],
35537
- onError
35538
- }));
35539
- };
35540
-
35541
- var __defProp$K = Object.defineProperty;
35542
- var __defProps$H = Object.defineProperties;
35543
- var __getOwnPropDescs$H = Object.getOwnPropertyDescriptors;
35544
- var __getOwnPropSymbols$T = Object.getOwnPropertySymbols;
35545
- var __hasOwnProp$T = Object.prototype.hasOwnProperty;
35546
- var __propIsEnum$T = Object.prototype.propertyIsEnumerable;
35547
- var __defNormalProp$K = (obj, key, value) => key in obj ? __defProp$K(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35548
- var __spreadValues$K = (a, b) => {
35549
- for (var prop in b || (b = {}))
35550
- if (__hasOwnProp$T.call(b, prop))
35551
- __defNormalProp$K(a, prop, b[prop]);
35552
- if (__getOwnPropSymbols$T)
35553
- for (var prop of __getOwnPropSymbols$T(b)) {
35554
- if (__propIsEnum$T.call(b, prop))
35555
- __defNormalProp$K(a, prop, b[prop]);
35556
- }
35557
- return a;
35558
- };
35559
- var __spreadProps$H = (a, b) => __defProps$H(a, __getOwnPropDescs$H(b));
35560
35608
  const useGetRefundAssist = (params) => {
35561
35609
  const { client } = useShipEngine();
35562
- return useQuery(__spreadProps$H(__spreadValues$K({}, params), {
35610
+ return useQuery(__spreadProps$I(__spreadValues$L({}, params), {
35563
35611
  onError,
35564
35612
  queryFn: () => client.accountRefundAssist.get(),
35565
35613
  queryKey: ["useGetRefundAssist"],
@@ -35567,7 +35615,7 @@ const useGetRefundAssist = (params) => {
35567
35615
  }));
35568
35616
  };
35569
35617
 
35570
- var __async$Y = (__this, __arguments, generator) => {
35618
+ var __async$$ = (__this, __arguments, generator) => {
35571
35619
  return new Promise((resolve, reject) => {
35572
35620
  var fulfilled = (value) => {
35573
35621
  try {
@@ -35590,7 +35638,7 @@ var __async$Y = (__this, __arguments, generator) => {
35590
35638
  const useParseAddress = () => {
35591
35639
  const { client } = useShipEngine();
35592
35640
  return useMutation({
35593
- mutationFn: (_0) => __async$Y(void 0, [_0], function* ({ address, text }) {
35641
+ mutationFn: (_0) => __async$$(void 0, [_0], function* ({ address, text }) {
35594
35642
  const result = yield client.addresses.parse(text, address);
35595
35643
  return result.data;
35596
35644
  }),
@@ -35599,7 +35647,7 @@ const useParseAddress = () => {
35599
35647
  });
35600
35648
  };
35601
35649
 
35602
- var __async$X = (__this, __arguments, generator) => {
35650
+ var __async$_ = (__this, __arguments, generator) => {
35603
35651
  return new Promise((resolve, reject) => {
35604
35652
  var fulfilled = (value) => {
35605
35653
  try {
@@ -35622,7 +35670,7 @@ var __async$X = (__this, __arguments, generator) => {
35622
35670
  const useValidateAddresses = () => {
35623
35671
  const { client } = useShipEngine();
35624
35672
  return useMutation({
35625
- mutationFn: (addresses) => __async$X(void 0, null, function* () {
35673
+ mutationFn: (addresses) => __async$_(void 0, null, function* () {
35626
35674
  const result = yield client.addresses.validate(addresses);
35627
35675
  return result.data;
35628
35676
  }),
@@ -35631,26 +35679,26 @@ const useValidateAddresses = () => {
35631
35679
  });
35632
35680
  };
35633
35681
 
35634
- var __defProp$J = Object.defineProperty;
35635
- var __defProps$G = Object.defineProperties;
35636
- var __getOwnPropDescs$G = Object.getOwnPropertyDescriptors;
35637
- var __getOwnPropSymbols$S = Object.getOwnPropertySymbols;
35638
- var __hasOwnProp$S = Object.prototype.hasOwnProperty;
35639
- var __propIsEnum$S = Object.prototype.propertyIsEnumerable;
35640
- var __defNormalProp$J = (obj, key, value) => key in obj ? __defProp$J(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35641
- var __spreadValues$J = (a, b) => {
35682
+ var __defProp$K = Object.defineProperty;
35683
+ var __defProps$H = Object.defineProperties;
35684
+ var __getOwnPropDescs$H = Object.getOwnPropertyDescriptors;
35685
+ var __getOwnPropSymbols$T = Object.getOwnPropertySymbols;
35686
+ var __hasOwnProp$T = Object.prototype.hasOwnProperty;
35687
+ var __propIsEnum$T = Object.prototype.propertyIsEnumerable;
35688
+ var __defNormalProp$K = (obj, key, value) => key in obj ? __defProp$K(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35689
+ var __spreadValues$K = (a, b) => {
35642
35690
  for (var prop in b || (b = {}))
35643
- if (__hasOwnProp$S.call(b, prop))
35644
- __defNormalProp$J(a, prop, b[prop]);
35645
- if (__getOwnPropSymbols$S)
35646
- for (var prop of __getOwnPropSymbols$S(b)) {
35647
- if (__propIsEnum$S.call(b, prop))
35648
- __defNormalProp$J(a, prop, b[prop]);
35691
+ if (__hasOwnProp$T.call(b, prop))
35692
+ __defNormalProp$K(a, prop, b[prop]);
35693
+ if (__getOwnPropSymbols$T)
35694
+ for (var prop of __getOwnPropSymbols$T(b)) {
35695
+ if (__propIsEnum$T.call(b, prop))
35696
+ __defNormalProp$K(a, prop, b[prop]);
35649
35697
  }
35650
35698
  return a;
35651
35699
  };
35652
- var __spreadProps$G = (a, b) => __defProps$G(a, __getOwnPropDescs$G(b));
35653
- var __async$W = (__this, __arguments, generator) => {
35700
+ var __spreadProps$H = (a, b) => __defProps$H(a, __getOwnPropDescs$H(b));
35701
+ var __async$Z = (__this, __arguments, generator) => {
35654
35702
  return new Promise((resolve, reject) => {
35655
35703
  var fulfilled = (value) => {
35656
35704
  try {
@@ -35672,8 +35720,8 @@ var __async$W = (__this, __arguments, generator) => {
35672
35720
  };
35673
35721
  const useCreateAuctanePaySession = (params) => {
35674
35722
  const { client } = useShipEngine();
35675
- return useMutation(__spreadProps$G(__spreadValues$J({}, params), {
35676
- mutationFn: (request) => __async$W(void 0, null, function* () {
35723
+ return useMutation(__spreadProps$H(__spreadValues$K({}, params), {
35724
+ mutationFn: (request) => __async$Z(void 0, null, function* () {
35677
35725
  const result = yield client.auctanePay.createSession(request);
35678
35726
  return result.data;
35679
35727
  }),
@@ -35682,6 +35730,36 @@ const useCreateAuctanePaySession = (params) => {
35682
35730
  }));
35683
35731
  };
35684
35732
 
35733
+ var __defProp$J = Object.defineProperty;
35734
+ var __defProps$G = Object.defineProperties;
35735
+ var __getOwnPropDescs$G = Object.getOwnPropertyDescriptors;
35736
+ var __getOwnPropSymbols$S = Object.getOwnPropertySymbols;
35737
+ var __hasOwnProp$S = Object.prototype.hasOwnProperty;
35738
+ var __propIsEnum$S = Object.prototype.propertyIsEnumerable;
35739
+ var __defNormalProp$J = (obj, key, value) => key in obj ? __defProp$J(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35740
+ var __spreadValues$J = (a, b) => {
35741
+ for (var prop in b || (b = {}))
35742
+ if (__hasOwnProp$S.call(b, prop))
35743
+ __defNormalProp$J(a, prop, b[prop]);
35744
+ if (__getOwnPropSymbols$S)
35745
+ for (var prop of __getOwnPropSymbols$S(b)) {
35746
+ if (__propIsEnum$S.call(b, prop))
35747
+ __defNormalProp$J(a, prop, b[prop]);
35748
+ }
35749
+ return a;
35750
+ };
35751
+ var __spreadProps$G = (a, b) => __defProps$G(a, __getOwnPropDescs$G(b));
35752
+ const useGetAuctanePayConfig = (params) => {
35753
+ const { client } = useShipEngine();
35754
+ const queryParams = __spreadValues$J({}, params);
35755
+ return useQuery(__spreadProps$G(__spreadValues$J({}, queryParams), {
35756
+ onError,
35757
+ queryFn: () => client.auctanePay.getConfig(),
35758
+ queryKey: ["useGetAuctanePayConfig"],
35759
+ select: (result) => result.data
35760
+ }));
35761
+ };
35762
+
35685
35763
  var __defProp$I = Object.defineProperty;
35686
35764
  var __defProps$F = Object.defineProperties;
35687
35765
  var __getOwnPropDescs$F = Object.getOwnPropertyDescriptors;
@@ -35701,37 +35779,7 @@ var __spreadValues$I = (a, b) => {
35701
35779
  return a;
35702
35780
  };
35703
35781
  var __spreadProps$F = (a, b) => __defProps$F(a, __getOwnPropDescs$F(b));
35704
- const useGetAuctanePayConfig = (params) => {
35705
- const { client } = useShipEngine();
35706
- const queryParams = __spreadValues$I({}, params);
35707
- return useQuery(__spreadProps$F(__spreadValues$I({}, queryParams), {
35708
- onError,
35709
- queryFn: () => client.auctanePay.getConfig(),
35710
- queryKey: ["useGetAuctanePayConfig"],
35711
- select: (result) => result.data
35712
- }));
35713
- };
35714
-
35715
- var __defProp$H = Object.defineProperty;
35716
- var __defProps$E = Object.defineProperties;
35717
- var __getOwnPropDescs$E = Object.getOwnPropertyDescriptors;
35718
- var __getOwnPropSymbols$Q = Object.getOwnPropertySymbols;
35719
- var __hasOwnProp$Q = Object.prototype.hasOwnProperty;
35720
- var __propIsEnum$Q = Object.prototype.propertyIsEnumerable;
35721
- var __defNormalProp$H = (obj, key, value) => key in obj ? __defProp$H(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35722
- var __spreadValues$H = (a, b) => {
35723
- for (var prop in b || (b = {}))
35724
- if (__hasOwnProp$Q.call(b, prop))
35725
- __defNormalProp$H(a, prop, b[prop]);
35726
- if (__getOwnPropSymbols$Q)
35727
- for (var prop of __getOwnPropSymbols$Q(b)) {
35728
- if (__propIsEnum$Q.call(b, prop))
35729
- __defNormalProp$H(a, prop, b[prop]);
35730
- }
35731
- return a;
35732
- };
35733
- var __spreadProps$E = (a, b) => __defProps$E(a, __getOwnPropDescs$E(b));
35734
- var __async$V = (__this, __arguments, generator) => {
35782
+ var __async$Y = (__this, __arguments, generator) => {
35735
35783
  return new Promise((resolve, reject) => {
35736
35784
  var fulfilled = (value) => {
35737
35785
  try {
@@ -35753,8 +35801,8 @@ var __async$V = (__this, __arguments, generator) => {
35753
35801
  };
35754
35802
  const usePreviewTransaction = (params) => {
35755
35803
  const { client } = useShipEngine();
35756
- return useMutation(__spreadProps$E(__spreadValues$H({}, params), {
35757
- mutationFn: (_0) => __async$V(void 0, [_0], function* ({ amount, transactionCategory = "add_funds" }) {
35804
+ return useMutation(__spreadProps$F(__spreadValues$I({}, params), {
35805
+ mutationFn: (_0) => __async$Y(void 0, [_0], function* ({ amount, transactionCategory = "add_funds" }) {
35758
35806
  const request = {
35759
35807
  amount,
35760
35808
  transactionCategory
@@ -35767,6 +35815,36 @@ const usePreviewTransaction = (params) => {
35767
35815
  }));
35768
35816
  };
35769
35817
 
35818
+ var __defProp$H = Object.defineProperty;
35819
+ var __defProps$E = Object.defineProperties;
35820
+ var __getOwnPropDescs$E = Object.getOwnPropertyDescriptors;
35821
+ var __getOwnPropSymbols$Q = Object.getOwnPropertySymbols;
35822
+ var __hasOwnProp$Q = Object.prototype.hasOwnProperty;
35823
+ var __propIsEnum$Q = Object.prototype.propertyIsEnumerable;
35824
+ var __defNormalProp$H = (obj, key, value) => key in obj ? __defProp$H(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35825
+ var __spreadValues$H = (a, b) => {
35826
+ for (var prop in b || (b = {}))
35827
+ if (__hasOwnProp$Q.call(b, prop))
35828
+ __defNormalProp$H(a, prop, b[prop]);
35829
+ if (__getOwnPropSymbols$Q)
35830
+ for (var prop of __getOwnPropSymbols$Q(b)) {
35831
+ if (__propIsEnum$Q.call(b, prop))
35832
+ __defNormalProp$H(a, prop, b[prop]);
35833
+ }
35834
+ return a;
35835
+ };
35836
+ var __spreadProps$E = (a, b) => __defProps$E(a, __getOwnPropDescs$E(b));
35837
+ const useGetPaymentMethods = (params) => {
35838
+ const { client } = useShipEngine();
35839
+ const queryParams = __spreadValues$H({}, params);
35840
+ return useQuery(__spreadProps$E(__spreadValues$H({}, queryParams), {
35841
+ onError,
35842
+ queryFn: () => client.auctanePay.getPaymentMethods(),
35843
+ queryKey: ["useGetPaymentMethods"],
35844
+ select: (result) => result.data
35845
+ }));
35846
+ };
35847
+
35770
35848
  var __defProp$G = Object.defineProperty;
35771
35849
  var __defProps$D = Object.defineProperties;
35772
35850
  var __getOwnPropDescs$D = Object.getOwnPropertyDescriptors;
@@ -35785,15 +35863,36 @@ var __spreadValues$G = (a, b) => {
35785
35863
  }
35786
35864
  return a;
35787
35865
  };
35788
- var __spreadProps$D = (a, b) => __defProps$D(a, __getOwnPropDescs$D(b));
35789
- const useGetPaymentMethods = (params) => {
35866
+ var __spreadProps$D = (a, b) => __defProps$D(a, __getOwnPropDescs$D(b));
35867
+ var __async$X = (__this, __arguments, generator) => {
35868
+ return new Promise((resolve, reject) => {
35869
+ var fulfilled = (value) => {
35870
+ try {
35871
+ step(generator.next(value));
35872
+ } catch (e) {
35873
+ reject(e);
35874
+ }
35875
+ };
35876
+ var rejected = (value) => {
35877
+ try {
35878
+ step(generator.throw(value));
35879
+ } catch (e) {
35880
+ reject(e);
35881
+ }
35882
+ };
35883
+ var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
35884
+ step((generator = generator.apply(__this, __arguments)).next());
35885
+ });
35886
+ };
35887
+ const useDeletePaymentMethod = (params) => {
35790
35888
  const { client } = useShipEngine();
35791
- const queryParams = __spreadValues$G({}, params);
35792
- return useQuery(__spreadProps$D(__spreadValues$G({}, queryParams), {
35793
- onError,
35794
- queryFn: () => client.auctanePay.getPaymentMethods(),
35795
- queryKey: ["useGetPaymentMethods"],
35796
- select: (result) => result.data
35889
+ return useMutation(__spreadProps$D(__spreadValues$G({}, params), {
35890
+ mutationFn: (paymentMethodId) => __async$X(void 0, null, function* () {
35891
+ const result = yield client.auctanePay.deletePaymentMethod(paymentMethodId);
35892
+ return result.data;
35893
+ }),
35894
+ mutationKey: ["useDeletePaymentMethod"],
35895
+ onError
35797
35896
  }));
35798
35897
  };
35799
35898
 
@@ -35816,7 +35915,7 @@ var __spreadValues$F = (a, b) => {
35816
35915
  return a;
35817
35916
  };
35818
35917
  var __spreadProps$C = (a, b) => __defProps$C(a, __getOwnPropDescs$C(b));
35819
- var __async$U = (__this, __arguments, generator) => {
35918
+ var __async$W = (__this, __arguments, generator) => {
35820
35919
  return new Promise((resolve, reject) => {
35821
35920
  var fulfilled = (value) => {
35822
35921
  try {
@@ -35836,14 +35935,14 @@ var __async$U = (__this, __arguments, generator) => {
35836
35935
  step((generator = generator.apply(__this, __arguments)).next());
35837
35936
  });
35838
35937
  };
35839
- const useDeletePaymentMethod = (params) => {
35938
+ const useUpdatePaymentMethod = (params) => {
35840
35939
  const { client } = useShipEngine();
35841
35940
  return useMutation(__spreadProps$C(__spreadValues$F({}, params), {
35842
- mutationFn: (paymentMethodId) => __async$U(void 0, null, function* () {
35843
- const result = yield client.auctanePay.deletePaymentMethod(paymentMethodId);
35941
+ mutationFn: (_0) => __async$W(void 0, [_0], function* ({ paymentMethodId, payload }) {
35942
+ const result = yield client.auctanePay.updatePaymentMethod(paymentMethodId, payload);
35844
35943
  return result.data;
35845
35944
  }),
35846
- mutationKey: ["useDeletePaymentMethod"],
35945
+ mutationKey: ["useUpdatePaymentMethod"],
35847
35946
  onError
35848
35947
  }));
35849
35948
  };
@@ -35867,7 +35966,7 @@ var __spreadValues$E = (a, b) => {
35867
35966
  return a;
35868
35967
  };
35869
35968
  var __spreadProps$B = (a, b) => __defProps$B(a, __getOwnPropDescs$B(b));
35870
- var __async$T = (__this, __arguments, generator) => {
35969
+ var __async$V = (__this, __arguments, generator) => {
35871
35970
  return new Promise((resolve, reject) => {
35872
35971
  var fulfilled = (value) => {
35873
35972
  try {
@@ -35887,14 +35986,14 @@ var __async$T = (__this, __arguments, generator) => {
35887
35986
  step((generator = generator.apply(__this, __arguments)).next());
35888
35987
  });
35889
35988
  };
35890
- const useUpdatePaymentMethod = (params) => {
35989
+ const useIdentityVerification = (params) => {
35891
35990
  const { client } = useShipEngine();
35892
35991
  return useMutation(__spreadProps$B(__spreadValues$E({}, params), {
35893
- mutationFn: (_0) => __async$T(void 0, [_0], function* ({ paymentMethodId, payload }) {
35894
- const result = yield client.auctanePay.updatePaymentMethod(paymentMethodId, payload);
35992
+ mutationFn: () => __async$V(void 0, null, function* () {
35993
+ const result = yield client.auctanePay.identityVerification();
35895
35994
  return result.data;
35896
35995
  }),
35897
- mutationKey: ["useUpdatePaymentMethod"],
35996
+ mutationKey: ["useIdentityVerification"],
35898
35997
  onError
35899
35998
  }));
35900
35999
  };
@@ -35918,61 +36017,10 @@ var __spreadValues$D = (a, b) => {
35918
36017
  return a;
35919
36018
  };
35920
36019
  var __spreadProps$A = (a, b) => __defProps$A(a, __getOwnPropDescs$A(b));
35921
- var __async$S = (__this, __arguments, generator) => {
35922
- return new Promise((resolve, reject) => {
35923
- var fulfilled = (value) => {
35924
- try {
35925
- step(generator.next(value));
35926
- } catch (e) {
35927
- reject(e);
35928
- }
35929
- };
35930
- var rejected = (value) => {
35931
- try {
35932
- step(generator.throw(value));
35933
- } catch (e) {
35934
- reject(e);
35935
- }
35936
- };
35937
- var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
35938
- step((generator = generator.apply(__this, __arguments)).next());
35939
- });
35940
- };
35941
- const useIdentityVerification = (params) => {
35942
- const { client } = useShipEngine();
35943
- return useMutation(__spreadProps$A(__spreadValues$D({}, params), {
35944
- mutationFn: () => __async$S(void 0, null, function* () {
35945
- const result = yield client.auctanePay.identityVerification();
35946
- return result.data;
35947
- }),
35948
- mutationKey: ["useIdentityVerification"],
35949
- onError
35950
- }));
35951
- };
35952
-
35953
- var __defProp$C = Object.defineProperty;
35954
- var __defProps$z = Object.defineProperties;
35955
- var __getOwnPropDescs$z = Object.getOwnPropertyDescriptors;
35956
- var __getOwnPropSymbols$L = Object.getOwnPropertySymbols;
35957
- var __hasOwnProp$L = Object.prototype.hasOwnProperty;
35958
- var __propIsEnum$L = Object.prototype.propertyIsEnumerable;
35959
- var __defNormalProp$C = (obj, key, value) => key in obj ? __defProp$C(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35960
- var __spreadValues$C = (a, b) => {
35961
- for (var prop in b || (b = {}))
35962
- if (__hasOwnProp$L.call(b, prop))
35963
- __defNormalProp$C(a, prop, b[prop]);
35964
- if (__getOwnPropSymbols$L)
35965
- for (var prop of __getOwnPropSymbols$L(b)) {
35966
- if (__propIsEnum$L.call(b, prop))
35967
- __defNormalProp$C(a, prop, b[prop]);
35968
- }
35969
- return a;
35970
- };
35971
- var __spreadProps$z = (a, b) => __defProps$z(a, __getOwnPropDescs$z(b));
35972
36020
  const useGetPaymentAccount = (params) => {
35973
36021
  const { client } = useShipEngine();
35974
- const queryParams = __spreadValues$C({}, params);
35975
- return useQuery(__spreadProps$z(__spreadValues$C({}, queryParams), {
36022
+ const queryParams = __spreadValues$D({}, params);
36023
+ return useQuery(__spreadProps$A(__spreadValues$D({}, queryParams), {
35976
36024
  onError,
35977
36025
  queryFn: () => client.auctanePay.getPaymentAccount(),
35978
36026
  queryKey: ["useGetPaymentAccount"],
@@ -35980,7 +36028,7 @@ const useGetPaymentAccount = (params) => {
35980
36028
  }));
35981
36029
  };
35982
36030
 
35983
- var __async$R = (__this, __arguments, generator) => {
36031
+ var __async$U = (__this, __arguments, generator) => {
35984
36032
  return new Promise((resolve, reject) => {
35985
36033
  var fulfilled = (value) => {
35986
36034
  try {
@@ -36003,7 +36051,7 @@ var __async$R = (__this, __arguments, generator) => {
36003
36051
  const useAcceptCarrierTerms = (carrierId) => {
36004
36052
  const { client } = useShipEngine();
36005
36053
  return useMutation({
36006
- mutationFn: (request) => __async$R(void 0, null, function* () {
36054
+ mutationFn: (request) => __async$U(void 0, null, function* () {
36007
36055
  const result = yield client.carriers.acceptTerms(carrierId, request);
36008
36056
  return result.data.acceptedTerms;
36009
36057
  }),
@@ -36012,7 +36060,7 @@ const useAcceptCarrierTerms = (carrierId) => {
36012
36060
  });
36013
36061
  };
36014
36062
 
36015
- var __async$Q = (__this, __arguments, generator) => {
36063
+ var __async$T = (__this, __arguments, generator) => {
36016
36064
  return new Promise((resolve, reject) => {
36017
36065
  var fulfilled = (value) => {
36018
36066
  try {
@@ -36035,7 +36083,7 @@ var __async$Q = (__this, __arguments, generator) => {
36035
36083
  const useAddFunds = () => {
36036
36084
  const { client } = useShipEngine();
36037
36085
  return useMutation({
36038
- mutationFn: (_0) => __async$Q(void 0, [_0], function* ({ carrierId, funds }) {
36086
+ mutationFn: (_0) => __async$T(void 0, [_0], function* ({ carrierId, funds }) {
36039
36087
  const result = yield client.carriers.addFunds(carrierId, funds);
36040
36088
  return result.data;
36041
36089
  }),
@@ -36044,7 +36092,7 @@ const useAddFunds = () => {
36044
36092
  });
36045
36093
  };
36046
36094
 
36047
- var __async$P = (__this, __arguments, generator) => {
36095
+ var __async$S = (__this, __arguments, generator) => {
36048
36096
  return new Promise((resolve, reject) => {
36049
36097
  var fulfilled = (value) => {
36050
36098
  try {
@@ -36067,7 +36115,7 @@ var __async$P = (__this, __arguments, generator) => {
36067
36115
  const useConnectCarrier = () => {
36068
36116
  const { client } = useShipEngine();
36069
36117
  return useMutation({
36070
- mutationFn: (params) => __async$P(void 0, null, function* () {
36118
+ mutationFn: (params) => __async$S(void 0, null, function* () {
36071
36119
  const result = yield client.carriers.connect(params);
36072
36120
  return result.data;
36073
36121
  }),
@@ -36176,41 +36224,41 @@ const useGetServicesByCarrier = (carrierId) => {
36176
36224
  });
36177
36225
  };
36178
36226
 
36179
- var __defProp$B = Object.defineProperty;
36180
- var __defProps$y = Object.defineProperties;
36181
- var __getOwnPropDescs$y = Object.getOwnPropertyDescriptors;
36182
- var __getOwnPropSymbols$K = Object.getOwnPropertySymbols;
36183
- var __hasOwnProp$K = Object.prototype.hasOwnProperty;
36184
- var __propIsEnum$K = Object.prototype.propertyIsEnumerable;
36185
- var __defNormalProp$B = (obj, key, value) => key in obj ? __defProp$B(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
36186
- var __spreadValues$B = (a, b) => {
36227
+ var __defProp$C = Object.defineProperty;
36228
+ var __defProps$z = Object.defineProperties;
36229
+ var __getOwnPropDescs$z = Object.getOwnPropertyDescriptors;
36230
+ var __getOwnPropSymbols$L = Object.getOwnPropertySymbols;
36231
+ var __hasOwnProp$L = Object.prototype.hasOwnProperty;
36232
+ var __propIsEnum$L = Object.prototype.propertyIsEnumerable;
36233
+ var __defNormalProp$C = (obj, key, value) => key in obj ? __defProp$C(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
36234
+ var __spreadValues$C = (a, b) => {
36187
36235
  for (var prop in b || (b = {}))
36188
- if (__hasOwnProp$K.call(b, prop))
36189
- __defNormalProp$B(a, prop, b[prop]);
36190
- if (__getOwnPropSymbols$K)
36191
- for (var prop of __getOwnPropSymbols$K(b)) {
36192
- if (__propIsEnum$K.call(b, prop))
36193
- __defNormalProp$B(a, prop, b[prop]);
36236
+ if (__hasOwnProp$L.call(b, prop))
36237
+ __defNormalProp$C(a, prop, b[prop]);
36238
+ if (__getOwnPropSymbols$L)
36239
+ for (var prop of __getOwnPropSymbols$L(b)) {
36240
+ if (__propIsEnum$L.call(b, prop))
36241
+ __defNormalProp$C(a, prop, b[prop]);
36194
36242
  }
36195
36243
  return a;
36196
36244
  };
36197
- var __spreadProps$y = (a, b) => __defProps$y(a, __getOwnPropDescs$y(b));
36198
- var __objRest$r = (source, exclude) => {
36245
+ var __spreadProps$z = (a, b) => __defProps$z(a, __getOwnPropDescs$z(b));
36246
+ var __objRest$s = (source, exclude) => {
36199
36247
  var target = {};
36200
36248
  for (var prop in source)
36201
- if (__hasOwnProp$K.call(source, prop) && exclude.indexOf(prop) < 0)
36249
+ if (__hasOwnProp$L.call(source, prop) && exclude.indexOf(prop) < 0)
36202
36250
  target[prop] = source[prop];
36203
- if (source != null && __getOwnPropSymbols$K)
36204
- for (var prop of __getOwnPropSymbols$K(source)) {
36205
- if (exclude.indexOf(prop) < 0 && __propIsEnum$K.call(source, prop))
36251
+ if (source != null && __getOwnPropSymbols$L)
36252
+ for (var prop of __getOwnPropSymbols$L(source)) {
36253
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$L.call(source, prop))
36206
36254
  target[prop] = source[prop];
36207
36255
  }
36208
36256
  return target;
36209
36257
  };
36210
36258
  const useListCarriers = (params) => {
36211
36259
  const { client } = useShipEngine();
36212
- const _a = __spreadValues$B({}, params), { queryFnParams } = _a, rest = __objRest$r(_a, ["queryFnParams"]);
36213
- return useQuery(__spreadProps$y(__spreadValues$B({}, rest), {
36260
+ const _a = __spreadValues$C({}, params), { queryFnParams } = _a, rest = __objRest$s(_a, ["queryFnParams"]);
36261
+ return useQuery(__spreadProps$z(__spreadValues$C({}, rest), {
36214
36262
  onError,
36215
36263
  queryFn: () => client.carriers.list(queryFnParams),
36216
36264
  queryKey: ["useListCarriers", queryFnParams],
@@ -36218,22 +36266,22 @@ const useListCarriers = (params) => {
36218
36266
  }));
36219
36267
  };
36220
36268
 
36221
- var __getOwnPropSymbols$J = Object.getOwnPropertySymbols;
36222
- var __hasOwnProp$J = Object.prototype.hasOwnProperty;
36223
- var __propIsEnum$J = Object.prototype.propertyIsEnumerable;
36224
- var __objRest$q = (source, exclude) => {
36269
+ var __getOwnPropSymbols$K = Object.getOwnPropertySymbols;
36270
+ var __hasOwnProp$K = Object.prototype.hasOwnProperty;
36271
+ var __propIsEnum$K = Object.prototype.propertyIsEnumerable;
36272
+ var __objRest$r = (source, exclude) => {
36225
36273
  var target = {};
36226
36274
  for (var prop in source)
36227
- if (__hasOwnProp$J.call(source, prop) && exclude.indexOf(prop) < 0)
36275
+ if (__hasOwnProp$K.call(source, prop) && exclude.indexOf(prop) < 0)
36228
36276
  target[prop] = source[prop];
36229
- if (source != null && __getOwnPropSymbols$J)
36230
- for (var prop of __getOwnPropSymbols$J(source)) {
36231
- if (exclude.indexOf(prop) < 0 && __propIsEnum$J.call(source, prop))
36277
+ if (source != null && __getOwnPropSymbols$K)
36278
+ for (var prop of __getOwnPropSymbols$K(source)) {
36279
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$K.call(source, prop))
36232
36280
  target[prop] = source[prop];
36233
36281
  }
36234
36282
  return target;
36235
36283
  };
36236
- var __async$O = (__this, __arguments, generator) => {
36284
+ var __async$R = (__this, __arguments, generator) => {
36237
36285
  return new Promise((resolve, reject) => {
36238
36286
  var fulfilled = (value) => {
36239
36287
  try {
@@ -36257,8 +36305,8 @@ const useUpdateAutoFunding = () => {
36257
36305
  const { client } = useShipEngine();
36258
36306
  const queryClient = useQueryClient();
36259
36307
  return useMutation({
36260
- mutationFn: (_a) => __async$O(void 0, null, function* () {
36261
- var _b = _a, { carrierId } = _b, options = __objRest$q(_b, ["carrierId"]);
36308
+ mutationFn: (_a) => __async$R(void 0, null, function* () {
36309
+ var _b = _a, { carrierId } = _b, options = __objRest$r(_b, ["carrierId"]);
36262
36310
  const result = yield client.carriers.updateAutoFunding(carrierId, options);
36263
36311
  return result.data;
36264
36312
  }),
@@ -36287,7 +36335,7 @@ const useGetZonesByCarrier = (carrierId) => {
36287
36335
  });
36288
36336
  };
36289
36337
 
36290
- var __async$N = (__this, __arguments, generator) => {
36338
+ var __async$Q = (__this, __arguments, generator) => {
36291
36339
  return new Promise((resolve, reject) => {
36292
36340
  var fulfilled = (value) => {
36293
36341
  try {
@@ -36310,7 +36358,7 @@ var __async$N = (__this, __arguments, generator) => {
36310
36358
  const useDeleteCarrier = () => {
36311
36359
  const { client } = useShipEngine();
36312
36360
  return useMutation({
36313
- mutationFn: (carrierId) => __async$N(void 0, null, function* () {
36361
+ mutationFn: (carrierId) => __async$Q(void 0, null, function* () {
36314
36362
  const result = yield client.carriers.delete(carrierId);
36315
36363
  return result.data;
36316
36364
  }),
@@ -36319,24 +36367,24 @@ const useDeleteCarrier = () => {
36319
36367
  });
36320
36368
  };
36321
36369
 
36322
- var __getOwnPropSymbols$I = Object.getOwnPropertySymbols;
36323
- var __hasOwnProp$I = Object.prototype.hasOwnProperty;
36324
- var __propIsEnum$I = Object.prototype.propertyIsEnumerable;
36325
- var __objRest$p = (source, exclude) => {
36370
+ var __getOwnPropSymbols$J = Object.getOwnPropertySymbols;
36371
+ var __hasOwnProp$J = Object.prototype.hasOwnProperty;
36372
+ var __propIsEnum$J = Object.prototype.propertyIsEnumerable;
36373
+ var __objRest$q = (source, exclude) => {
36326
36374
  var target = {};
36327
36375
  for (var prop in source)
36328
- if (__hasOwnProp$I.call(source, prop) && exclude.indexOf(prop) < 0)
36376
+ if (__hasOwnProp$J.call(source, prop) && exclude.indexOf(prop) < 0)
36329
36377
  target[prop] = source[prop];
36330
- if (source != null && __getOwnPropSymbols$I)
36331
- for (var prop of __getOwnPropSymbols$I(source)) {
36332
- if (exclude.indexOf(prop) < 0 && __propIsEnum$I.call(source, prop))
36378
+ if (source != null && __getOwnPropSymbols$J)
36379
+ for (var prop of __getOwnPropSymbols$J(source)) {
36380
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$J.call(source, prop))
36333
36381
  target[prop] = source[prop];
36334
36382
  }
36335
36383
  return target;
36336
36384
  };
36337
36385
  const useGetCarrierConnectionForm = (_params) => {
36338
36386
  const { client } = useShipEngine();
36339
- const _a = _params || {}, { carrierName, enabled = true } = _a, params = __objRest$p(_a, ["carrierName", "enabled"]);
36387
+ const _a = _params || {}, { carrierName, enabled = true } = _a, params = __objRest$q(_a, ["carrierName", "enabled"]);
36340
36388
  return useQuery({
36341
36389
  enabled,
36342
36390
  onError,
@@ -36346,24 +36394,24 @@ const useGetCarrierConnectionForm = (_params) => {
36346
36394
  });
36347
36395
  };
36348
36396
 
36349
- var __getOwnPropSymbols$H = Object.getOwnPropertySymbols;
36350
- var __hasOwnProp$H = Object.prototype.hasOwnProperty;
36351
- var __propIsEnum$H = Object.prototype.propertyIsEnumerable;
36352
- var __objRest$o = (source, exclude) => {
36397
+ var __getOwnPropSymbols$I = Object.getOwnPropertySymbols;
36398
+ var __hasOwnProp$I = Object.prototype.hasOwnProperty;
36399
+ var __propIsEnum$I = Object.prototype.propertyIsEnumerable;
36400
+ var __objRest$p = (source, exclude) => {
36353
36401
  var target = {};
36354
36402
  for (var prop in source)
36355
- if (__hasOwnProp$H.call(source, prop) && exclude.indexOf(prop) < 0)
36403
+ if (__hasOwnProp$I.call(source, prop) && exclude.indexOf(prop) < 0)
36356
36404
  target[prop] = source[prop];
36357
- if (source != null && __getOwnPropSymbols$H)
36358
- for (var prop of __getOwnPropSymbols$H(source)) {
36359
- if (exclude.indexOf(prop) < 0 && __propIsEnum$H.call(source, prop))
36405
+ if (source != null && __getOwnPropSymbols$I)
36406
+ for (var prop of __getOwnPropSymbols$I(source)) {
36407
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$I.call(source, prop))
36360
36408
  target[prop] = source[prop];
36361
36409
  }
36362
36410
  return target;
36363
36411
  };
36364
36412
  const useListCarrierConnections = (_params) => {
36365
36413
  const { client } = useShipEngine();
36366
- const _a = _params || {}, { enabled = true } = _a, params = __objRest$o(_a, ["enabled"]);
36414
+ const _a = _params || {}, { enabled = true } = _a, params = __objRest$p(_a, ["enabled"]);
36367
36415
  return useQuery({
36368
36416
  enabled,
36369
36417
  onError,
@@ -36373,26 +36421,26 @@ const useListCarrierConnections = (_params) => {
36373
36421
  });
36374
36422
  };
36375
36423
 
36376
- var __defProp$A = Object.defineProperty;
36377
- var __defProps$x = Object.defineProperties;
36378
- var __getOwnPropDescs$x = Object.getOwnPropertyDescriptors;
36379
- var __getOwnPropSymbols$G = Object.getOwnPropertySymbols;
36380
- var __hasOwnProp$G = Object.prototype.hasOwnProperty;
36381
- var __propIsEnum$G = Object.prototype.propertyIsEnumerable;
36382
- var __defNormalProp$A = (obj, key, value) => key in obj ? __defProp$A(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
36383
- var __spreadValues$A = (a, b) => {
36424
+ var __defProp$B = Object.defineProperty;
36425
+ var __defProps$y = Object.defineProperties;
36426
+ var __getOwnPropDescs$y = Object.getOwnPropertyDescriptors;
36427
+ var __getOwnPropSymbols$H = Object.getOwnPropertySymbols;
36428
+ var __hasOwnProp$H = Object.prototype.hasOwnProperty;
36429
+ var __propIsEnum$H = Object.prototype.propertyIsEnumerable;
36430
+ var __defNormalProp$B = (obj, key, value) => key in obj ? __defProp$B(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
36431
+ var __spreadValues$B = (a, b) => {
36384
36432
  for (var prop in b || (b = {}))
36385
- if (__hasOwnProp$G.call(b, prop))
36386
- __defNormalProp$A(a, prop, b[prop]);
36387
- if (__getOwnPropSymbols$G)
36388
- for (var prop of __getOwnPropSymbols$G(b)) {
36389
- if (__propIsEnum$G.call(b, prop))
36390
- __defNormalProp$A(a, prop, b[prop]);
36433
+ if (__hasOwnProp$H.call(b, prop))
36434
+ __defNormalProp$B(a, prop, b[prop]);
36435
+ if (__getOwnPropSymbols$H)
36436
+ for (var prop of __getOwnPropSymbols$H(b)) {
36437
+ if (__propIsEnum$H.call(b, prop))
36438
+ __defNormalProp$B(a, prop, b[prop]);
36391
36439
  }
36392
36440
  return a;
36393
36441
  };
36394
- var __spreadProps$x = (a, b) => __defProps$x(a, __getOwnPropDescs$x(b));
36395
- var __async$M = (__this, __arguments, generator) => {
36442
+ var __spreadProps$y = (a, b) => __defProps$y(a, __getOwnPropDescs$y(b));
36443
+ var __async$P = (__this, __arguments, generator) => {
36396
36444
  return new Promise((resolve, reject) => {
36397
36445
  var fulfilled = (value) => {
36398
36446
  try {
@@ -36415,8 +36463,8 @@ var __async$M = (__this, __arguments, generator) => {
36415
36463
  const useConnectCarrierAccount = () => {
36416
36464
  const { client } = useShipEngine();
36417
36465
  return useMutation({
36418
- mutationFn: (_0) => __async$M(void 0, [_0], function* ({ carrierName, formData }) {
36419
- const formDataWithFlag = __spreadProps$x(__spreadValues$A({}, formData), { __skipDecamelize: true });
36466
+ mutationFn: (_0) => __async$P(void 0, [_0], function* ({ carrierName, formData }) {
36467
+ const formDataWithFlag = __spreadProps$y(__spreadValues$B({}, formData), { __skipDecamelize: true });
36420
36468
  const result = yield client.connections.connectCarrier(carrierName, formDataWithFlag);
36421
36469
  return result.data;
36422
36470
  }),
@@ -36436,33 +36484,33 @@ const useCarrierConnectionsServicesList = (carrierCode) => {
36436
36484
  });
36437
36485
  };
36438
36486
 
36439
- var __defProp$z = Object.defineProperty;
36440
- var __defProps$w = Object.defineProperties;
36441
- var __getOwnPropDescs$w = Object.getOwnPropertyDescriptors;
36442
- var __getOwnPropSymbols$F = Object.getOwnPropertySymbols;
36443
- var __hasOwnProp$F = Object.prototype.hasOwnProperty;
36444
- var __propIsEnum$F = Object.prototype.propertyIsEnumerable;
36445
- var __defNormalProp$z = (obj, key, value) => key in obj ? __defProp$z(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
36446
- var __spreadValues$z = (a, b) => {
36487
+ var __defProp$A = Object.defineProperty;
36488
+ var __defProps$x = Object.defineProperties;
36489
+ var __getOwnPropDescs$x = Object.getOwnPropertyDescriptors;
36490
+ var __getOwnPropSymbols$G = Object.getOwnPropertySymbols;
36491
+ var __hasOwnProp$G = Object.prototype.hasOwnProperty;
36492
+ var __propIsEnum$G = Object.prototype.propertyIsEnumerable;
36493
+ var __defNormalProp$A = (obj, key, value) => key in obj ? __defProp$A(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
36494
+ var __spreadValues$A = (a, b) => {
36447
36495
  for (var prop in b || (b = {}))
36448
- if (__hasOwnProp$F.call(b, prop))
36449
- __defNormalProp$z(a, prop, b[prop]);
36450
- if (__getOwnPropSymbols$F)
36451
- for (var prop of __getOwnPropSymbols$F(b)) {
36452
- if (__propIsEnum$F.call(b, prop))
36453
- __defNormalProp$z(a, prop, b[prop]);
36496
+ if (__hasOwnProp$G.call(b, prop))
36497
+ __defNormalProp$A(a, prop, b[prop]);
36498
+ if (__getOwnPropSymbols$G)
36499
+ for (var prop of __getOwnPropSymbols$G(b)) {
36500
+ if (__propIsEnum$G.call(b, prop))
36501
+ __defNormalProp$A(a, prop, b[prop]);
36454
36502
  }
36455
36503
  return a;
36456
36504
  };
36457
- var __spreadProps$w = (a, b) => __defProps$w(a, __getOwnPropDescs$w(b));
36458
- var __objRest$n = (source, exclude) => {
36505
+ var __spreadProps$x = (a, b) => __defProps$x(a, __getOwnPropDescs$x(b));
36506
+ var __objRest$o = (source, exclude) => {
36459
36507
  var target = {};
36460
36508
  for (var prop in source)
36461
- if (__hasOwnProp$F.call(source, prop) && exclude.indexOf(prop) < 0)
36509
+ if (__hasOwnProp$G.call(source, prop) && exclude.indexOf(prop) < 0)
36462
36510
  target[prop] = source[prop];
36463
- if (source != null && __getOwnPropSymbols$F)
36464
- for (var prop of __getOwnPropSymbols$F(source)) {
36465
- if (exclude.indexOf(prop) < 0 && __propIsEnum$F.call(source, prop))
36511
+ if (source != null && __getOwnPropSymbols$G)
36512
+ for (var prop of __getOwnPropSymbols$G(source)) {
36513
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$G.call(source, prop))
36466
36514
  target[prop] = source[prop];
36467
36515
  }
36468
36516
  return target;
@@ -36470,12 +36518,12 @@ var __objRest$n = (source, exclude) => {
36470
36518
  const useGetConnectionsCarrierSettings = (_a) => {
36471
36519
  var _b = _a, {
36472
36520
  queryFnParams
36473
- } = _b, params = __objRest$n(_b, [
36521
+ } = _b, params = __objRest$o(_b, [
36474
36522
  "queryFnParams"
36475
36523
  ]);
36476
36524
  const { client } = useShipEngine();
36477
36525
  const { carrierName, carrierId } = queryFnParams;
36478
- return useQuery(__spreadProps$w(__spreadValues$z({}, params), {
36526
+ return useQuery(__spreadProps$x(__spreadValues$A({}, params), {
36479
36527
  onError,
36480
36528
  queryFn: () => client.connections.getCarrierSettings(carrierName, carrierId),
36481
36529
  queryKey: ["useGetConnectionsCarrierSettings", carrierName, carrierId],
@@ -36483,26 +36531,26 @@ const useGetConnectionsCarrierSettings = (_a) => {
36483
36531
  }));
36484
36532
  };
36485
36533
 
36486
- var __defProp$y = Object.defineProperty;
36487
- var __defProps$v = Object.defineProperties;
36488
- var __getOwnPropDescs$v = Object.getOwnPropertyDescriptors;
36489
- var __getOwnPropSymbols$E = Object.getOwnPropertySymbols;
36490
- var __hasOwnProp$E = Object.prototype.hasOwnProperty;
36491
- var __propIsEnum$E = Object.prototype.propertyIsEnumerable;
36492
- var __defNormalProp$y = (obj, key, value) => key in obj ? __defProp$y(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
36493
- var __spreadValues$y = (a, b) => {
36534
+ var __defProp$z = Object.defineProperty;
36535
+ var __defProps$w = Object.defineProperties;
36536
+ var __getOwnPropDescs$w = Object.getOwnPropertyDescriptors;
36537
+ var __getOwnPropSymbols$F = Object.getOwnPropertySymbols;
36538
+ var __hasOwnProp$F = Object.prototype.hasOwnProperty;
36539
+ var __propIsEnum$F = Object.prototype.propertyIsEnumerable;
36540
+ var __defNormalProp$z = (obj, key, value) => key in obj ? __defProp$z(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
36541
+ var __spreadValues$z = (a, b) => {
36494
36542
  for (var prop in b || (b = {}))
36495
- if (__hasOwnProp$E.call(b, prop))
36496
- __defNormalProp$y(a, prop, b[prop]);
36497
- if (__getOwnPropSymbols$E)
36498
- for (var prop of __getOwnPropSymbols$E(b)) {
36499
- if (__propIsEnum$E.call(b, prop))
36500
- __defNormalProp$y(a, prop, b[prop]);
36543
+ if (__hasOwnProp$F.call(b, prop))
36544
+ __defNormalProp$z(a, prop, b[prop]);
36545
+ if (__getOwnPropSymbols$F)
36546
+ for (var prop of __getOwnPropSymbols$F(b)) {
36547
+ if (__propIsEnum$F.call(b, prop))
36548
+ __defNormalProp$z(a, prop, b[prop]);
36501
36549
  }
36502
36550
  return a;
36503
36551
  };
36504
- var __spreadProps$v = (a, b) => __defProps$v(a, __getOwnPropDescs$v(b));
36505
- var __async$L = (__this, __arguments, generator) => {
36552
+ var __spreadProps$w = (a, b) => __defProps$w(a, __getOwnPropDescs$w(b));
36553
+ var __async$O = (__this, __arguments, generator) => {
36506
36554
  return new Promise((resolve, reject) => {
36507
36555
  var fulfilled = (value) => {
36508
36556
  try {
@@ -36524,8 +36572,8 @@ var __async$L = (__this, __arguments, generator) => {
36524
36572
  };
36525
36573
  const useUpdateConnectionsCarrierSettings = (params) => {
36526
36574
  const { client } = useShipEngine();
36527
- return useMutation(__spreadProps$v(__spreadValues$y({}, params), {
36528
- mutationFn: (_0) => __async$L(void 0, [_0], function* ({
36575
+ return useMutation(__spreadProps$w(__spreadValues$z({}, params), {
36576
+ mutationFn: (_0) => __async$O(void 0, [_0], function* ({
36529
36577
  carrierName,
36530
36578
  carrierId,
36531
36579
  formData
@@ -36542,26 +36590,26 @@ const useUpdateConnectionsCarrierSettings = (params) => {
36542
36590
  }));
36543
36591
  };
36544
36592
 
36545
- var __defProp$x = Object.defineProperty;
36546
- var __defProps$u = Object.defineProperties;
36547
- var __getOwnPropDescs$u = Object.getOwnPropertyDescriptors;
36548
- var __getOwnPropSymbols$D = Object.getOwnPropertySymbols;
36549
- var __hasOwnProp$D = Object.prototype.hasOwnProperty;
36550
- var __propIsEnum$D = Object.prototype.propertyIsEnumerable;
36551
- var __defNormalProp$x = (obj, key, value) => key in obj ? __defProp$x(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
36552
- var __spreadValues$x = (a, b) => {
36593
+ var __defProp$y = Object.defineProperty;
36594
+ var __defProps$v = Object.defineProperties;
36595
+ var __getOwnPropDescs$v = Object.getOwnPropertyDescriptors;
36596
+ var __getOwnPropSymbols$E = Object.getOwnPropertySymbols;
36597
+ var __hasOwnProp$E = Object.prototype.hasOwnProperty;
36598
+ var __propIsEnum$E = Object.prototype.propertyIsEnumerable;
36599
+ var __defNormalProp$y = (obj, key, value) => key in obj ? __defProp$y(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
36600
+ var __spreadValues$y = (a, b) => {
36553
36601
  for (var prop in b || (b = {}))
36554
- if (__hasOwnProp$D.call(b, prop))
36555
- __defNormalProp$x(a, prop, b[prop]);
36556
- if (__getOwnPropSymbols$D)
36557
- for (var prop of __getOwnPropSymbols$D(b)) {
36558
- if (__propIsEnum$D.call(b, prop))
36559
- __defNormalProp$x(a, prop, b[prop]);
36602
+ if (__hasOwnProp$E.call(b, prop))
36603
+ __defNormalProp$y(a, prop, b[prop]);
36604
+ if (__getOwnPropSymbols$E)
36605
+ for (var prop of __getOwnPropSymbols$E(b)) {
36606
+ if (__propIsEnum$E.call(b, prop))
36607
+ __defNormalProp$y(a, prop, b[prop]);
36560
36608
  }
36561
36609
  return a;
36562
36610
  };
36563
- var __spreadProps$u = (a, b) => __defProps$u(a, __getOwnPropDescs$u(b));
36564
- var __async$K = (__this, __arguments, generator) => {
36611
+ var __spreadProps$v = (a, b) => __defProps$v(a, __getOwnPropDescs$v(b));
36612
+ var __async$N = (__this, __arguments, generator) => {
36565
36613
  return new Promise((resolve, reject) => {
36566
36614
  var fulfilled = (value) => {
36567
36615
  try {
@@ -36583,8 +36631,8 @@ var __async$K = (__this, __arguments, generator) => {
36583
36631
  };
36584
36632
  const useRequestStampsAccountUrls = (params) => {
36585
36633
  const { client } = useShipEngine();
36586
- return useMutation(__spreadProps$u(__spreadValues$x({}, params), {
36587
- mutationFn: (request) => __async$K(void 0, null, function* () {
36634
+ return useMutation(__spreadProps$v(__spreadValues$y({}, params), {
36635
+ mutationFn: (request) => __async$N(void 0, null, function* () {
36588
36636
  const result = yield client.connections.requestStampsAccountUrls(request);
36589
36637
  return result.data;
36590
36638
  }),
@@ -36603,7 +36651,7 @@ const useListCustomPackageTypes = () => {
36603
36651
  });
36604
36652
  };
36605
36653
 
36606
- var __async$J = (__this, __arguments, generator) => {
36654
+ var __async$M = (__this, __arguments, generator) => {
36607
36655
  return new Promise((resolve, reject) => {
36608
36656
  var fulfilled = (value) => {
36609
36657
  try {
@@ -36626,7 +36674,7 @@ var __async$J = (__this, __arguments, generator) => {
36626
36674
  const useAcceptFundingSourceTerms = (fundingSourceId) => {
36627
36675
  const { client } = useShipEngine();
36628
36676
  return useMutation({
36629
- mutationFn: (request) => __async$J(void 0, null, function* () {
36677
+ mutationFn: (request) => __async$M(void 0, null, function* () {
36630
36678
  const result = yield client.fundingSources.acceptTerms(fundingSourceId, request);
36631
36679
  return result.data.acceptedTerms;
36632
36680
  }),
@@ -36635,7 +36683,7 @@ const useAcceptFundingSourceTerms = (fundingSourceId) => {
36635
36683
  });
36636
36684
  };
36637
36685
 
36638
- var __async$I = (__this, __arguments, generator) => {
36686
+ var __async$L = (__this, __arguments, generator) => {
36639
36687
  return new Promise((resolve, reject) => {
36640
36688
  var fulfilled = (value) => {
36641
36689
  try {
@@ -36658,7 +36706,7 @@ var __async$I = (__this, __arguments, generator) => {
36658
36706
  const useCreateFundingSource = () => {
36659
36707
  const { client } = useShipEngine();
36660
36708
  return useMutation({
36661
- mutationFn: (fundingSource) => __async$I(void 0, null, function* () {
36709
+ mutationFn: (fundingSource) => __async$L(void 0, null, function* () {
36662
36710
  const result = yield client.fundingSources.create(fundingSource);
36663
36711
  return result.data;
36664
36712
  }),
@@ -36667,7 +36715,7 @@ const useCreateFundingSource = () => {
36667
36715
  });
36668
36716
  };
36669
36717
 
36670
- var __async$H = (__this, __arguments, generator) => {
36718
+ var __async$K = (__this, __arguments, generator) => {
36671
36719
  return new Promise((resolve, reject) => {
36672
36720
  var fulfilled = (value) => {
36673
36721
  try {
@@ -36690,7 +36738,7 @@ var __async$H = (__this, __arguments, generator) => {
36690
36738
  const useFundingSourcesAddFunds = () => {
36691
36739
  const { client } = useShipEngine();
36692
36740
  return useMutation({
36693
- mutationFn: (_0) => __async$H(void 0, [_0], function* ({ funds, fundingSourceId }) {
36741
+ mutationFn: (_0) => __async$K(void 0, [_0], function* ({ funds, fundingSourceId }) {
36694
36742
  const result = yield client.fundingSources.addFunds(funds, fundingSourceId);
36695
36743
  return result.data;
36696
36744
  }),
@@ -36699,29 +36747,29 @@ const useFundingSourcesAddFunds = () => {
36699
36747
  });
36700
36748
  };
36701
36749
 
36702
- var __defProp$w = Object.defineProperty;
36703
- var __defProps$t = Object.defineProperties;
36704
- var __getOwnPropDescs$t = Object.getOwnPropertyDescriptors;
36705
- var __getOwnPropSymbols$C = Object.getOwnPropertySymbols;
36706
- var __hasOwnProp$C = Object.prototype.hasOwnProperty;
36707
- var __propIsEnum$C = Object.prototype.propertyIsEnumerable;
36708
- var __defNormalProp$w = (obj, key, value) => key in obj ? __defProp$w(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
36709
- var __spreadValues$w = (a, b) => {
36750
+ var __defProp$x = Object.defineProperty;
36751
+ var __defProps$u = Object.defineProperties;
36752
+ var __getOwnPropDescs$u = Object.getOwnPropertyDescriptors;
36753
+ var __getOwnPropSymbols$D = Object.getOwnPropertySymbols;
36754
+ var __hasOwnProp$D = Object.prototype.hasOwnProperty;
36755
+ var __propIsEnum$D = Object.prototype.propertyIsEnumerable;
36756
+ var __defNormalProp$x = (obj, key, value) => key in obj ? __defProp$x(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
36757
+ var __spreadValues$x = (a, b) => {
36710
36758
  for (var prop in b || (b = {}))
36711
- if (__hasOwnProp$C.call(b, prop))
36712
- __defNormalProp$w(a, prop, b[prop]);
36713
- if (__getOwnPropSymbols$C)
36714
- for (var prop of __getOwnPropSymbols$C(b)) {
36715
- if (__propIsEnum$C.call(b, prop))
36716
- __defNormalProp$w(a, prop, b[prop]);
36759
+ if (__hasOwnProp$D.call(b, prop))
36760
+ __defNormalProp$x(a, prop, b[prop]);
36761
+ if (__getOwnPropSymbols$D)
36762
+ for (var prop of __getOwnPropSymbols$D(b)) {
36763
+ if (__propIsEnum$D.call(b, prop))
36764
+ __defNormalProp$x(a, prop, b[prop]);
36717
36765
  }
36718
36766
  return a;
36719
36767
  };
36720
- var __spreadProps$t = (a, b) => __defProps$t(a, __getOwnPropDescs$t(b));
36768
+ var __spreadProps$u = (a, b) => __defProps$u(a, __getOwnPropDescs$u(b));
36721
36769
  const useGetFundingSourceAcceptedTerms = (fundingSourceId, params) => {
36722
36770
  const { client } = useShipEngine();
36723
- const queryParams = __spreadValues$w({}, params);
36724
- return useQuery(__spreadProps$t(__spreadValues$w({}, queryParams), {
36771
+ const queryParams = __spreadValues$x({}, params);
36772
+ return useQuery(__spreadProps$u(__spreadValues$x({}, queryParams), {
36725
36773
  onError,
36726
36774
  queryFn: () => client.fundingSources.acceptedTerms(fundingSourceId),
36727
36775
  queryKey: ["useGetFundingSourceAcceptedTerms", fundingSourceId],
@@ -36749,7 +36797,7 @@ const useListFundingSources = () => {
36749
36797
  });
36750
36798
  };
36751
36799
 
36752
- var __async$G = (__this, __arguments, generator) => {
36800
+ var __async$J = (__this, __arguments, generator) => {
36753
36801
  return new Promise((resolve, reject) => {
36754
36802
  var fulfilled = (value) => {
36755
36803
  try {
@@ -36772,7 +36820,7 @@ var __async$G = (__this, __arguments, generator) => {
36772
36820
  const useRegisterCarrier = () => {
36773
36821
  const { client } = useShipEngine();
36774
36822
  return useMutation({
36775
- mutationFn: (carrier) => __async$G(void 0, null, function* () {
36823
+ mutationFn: (carrier) => __async$J(void 0, null, function* () {
36776
36824
  const result = yield client.fundingSources.registerCarrier(carrier);
36777
36825
  return result.data;
36778
36826
  }),
@@ -36781,7 +36829,7 @@ const useRegisterCarrier = () => {
36781
36829
  });
36782
36830
  };
36783
36831
 
36784
- var __async$F = (__this, __arguments, generator) => {
36832
+ var __async$I = (__this, __arguments, generator) => {
36785
36833
  return new Promise((resolve, reject) => {
36786
36834
  var fulfilled = (value) => {
36787
36835
  try {
@@ -36804,7 +36852,7 @@ var __async$F = (__this, __arguments, generator) => {
36804
36852
  const useUpdateFundingSource = () => {
36805
36853
  const { client } = useShipEngine();
36806
36854
  return useMutation({
36807
- mutationFn: (_0) => __async$F(void 0, [_0], function* ({
36855
+ mutationFn: (_0) => __async$I(void 0, [_0], function* ({
36808
36856
  billingInfo,
36809
36857
  creditCardInfo,
36810
36858
  fundingSourceId,
@@ -36845,29 +36893,29 @@ const useGetFundingSourceTransactions = (fundingSourceId, params) => {
36845
36893
  });
36846
36894
  };
36847
36895
 
36848
- var __defProp$v = Object.defineProperty;
36849
- var __defProps$s = Object.defineProperties;
36850
- var __getOwnPropDescs$s = Object.getOwnPropertyDescriptors;
36851
- var __getOwnPropSymbols$B = Object.getOwnPropertySymbols;
36852
- var __hasOwnProp$B = Object.prototype.hasOwnProperty;
36853
- var __propIsEnum$B = Object.prototype.propertyIsEnumerable;
36854
- var __defNormalProp$v = (obj, key, value) => key in obj ? __defProp$v(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
36855
- var __spreadValues$v = (a, b) => {
36896
+ var __defProp$w = Object.defineProperty;
36897
+ var __defProps$t = Object.defineProperties;
36898
+ var __getOwnPropDescs$t = Object.getOwnPropertyDescriptors;
36899
+ var __getOwnPropSymbols$C = Object.getOwnPropertySymbols;
36900
+ var __hasOwnProp$C = Object.prototype.hasOwnProperty;
36901
+ var __propIsEnum$C = Object.prototype.propertyIsEnumerable;
36902
+ var __defNormalProp$w = (obj, key, value) => key in obj ? __defProp$w(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
36903
+ var __spreadValues$w = (a, b) => {
36856
36904
  for (var prop in b || (b = {}))
36857
- if (__hasOwnProp$B.call(b, prop))
36858
- __defNormalProp$v(a, prop, b[prop]);
36859
- if (__getOwnPropSymbols$B)
36860
- for (var prop of __getOwnPropSymbols$B(b)) {
36861
- if (__propIsEnum$B.call(b, prop))
36862
- __defNormalProp$v(a, prop, b[prop]);
36905
+ if (__hasOwnProp$C.call(b, prop))
36906
+ __defNormalProp$w(a, prop, b[prop]);
36907
+ if (__getOwnPropSymbols$C)
36908
+ for (var prop of __getOwnPropSymbols$C(b)) {
36909
+ if (__propIsEnum$C.call(b, prop))
36910
+ __defNormalProp$w(a, prop, b[prop]);
36863
36911
  }
36864
36912
  return a;
36865
36913
  };
36866
- var __spreadProps$s = (a, b) => __defProps$s(a, __getOwnPropDescs$s(b));
36914
+ var __spreadProps$t = (a, b) => __defProps$t(a, __getOwnPropDescs$t(b));
36867
36915
  const useGetInsuranceFundingSourceAcceptedTerms = (params) => {
36868
36916
  const { client } = useShipEngine();
36869
- const queryParams = __spreadValues$v({}, params);
36870
- return useQuery(__spreadProps$s(__spreadValues$v({}, queryParams), {
36917
+ const queryParams = __spreadValues$w({}, params);
36918
+ return useQuery(__spreadProps$t(__spreadValues$w({}, queryParams), {
36871
36919
  onError,
36872
36920
  queryFn: () => client.fundingSources.insuranceAcceptedTerms(),
36873
36921
  queryKey: ["useGetInsuranceFundingSourceAcceptedTerms"],
@@ -36890,22 +36938,22 @@ const useGetInsuranceAccount = (insuranceProvider) => {
36890
36938
  });
36891
36939
  };
36892
36940
 
36893
- var __getOwnPropSymbols$A = Object.getOwnPropertySymbols;
36894
- var __hasOwnProp$A = Object.prototype.hasOwnProperty;
36895
- var __propIsEnum$A = Object.prototype.propertyIsEnumerable;
36896
- var __objRest$m = (source, exclude) => {
36941
+ var __getOwnPropSymbols$B = Object.getOwnPropertySymbols;
36942
+ var __hasOwnProp$B = Object.prototype.hasOwnProperty;
36943
+ var __propIsEnum$B = Object.prototype.propertyIsEnumerable;
36944
+ var __objRest$n = (source, exclude) => {
36897
36945
  var target = {};
36898
36946
  for (var prop in source)
36899
- if (__hasOwnProp$A.call(source, prop) && exclude.indexOf(prop) < 0)
36947
+ if (__hasOwnProp$B.call(source, prop) && exclude.indexOf(prop) < 0)
36900
36948
  target[prop] = source[prop];
36901
- if (source != null && __getOwnPropSymbols$A)
36902
- for (var prop of __getOwnPropSymbols$A(source)) {
36903
- if (exclude.indexOf(prop) < 0 && __propIsEnum$A.call(source, prop))
36949
+ if (source != null && __getOwnPropSymbols$B)
36950
+ for (var prop of __getOwnPropSymbols$B(source)) {
36951
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$B.call(source, prop))
36904
36952
  target[prop] = source[prop];
36905
36953
  }
36906
36954
  return target;
36907
36955
  };
36908
- var __async$E = (__this, __arguments, generator) => {
36956
+ var __async$H = (__this, __arguments, generator) => {
36909
36957
  return new Promise((resolve, reject) => {
36910
36958
  var fulfilled = (value) => {
36911
36959
  try {
@@ -36928,8 +36976,8 @@ var __async$E = (__this, __arguments, generator) => {
36928
36976
  const useAddInsuranceFunds = () => {
36929
36977
  const { client } = useShipEngine();
36930
36978
  return useMutation({
36931
- mutationFn: (_a) => __async$E(void 0, null, function* () {
36932
- var _b = _a, { insuranceProvider } = _b, rest = __objRest$m(_b, ["insuranceProvider"]);
36979
+ mutationFn: (_a) => __async$H(void 0, null, function* () {
36980
+ var _b = _a, { insuranceProvider } = _b, rest = __objRest$n(_b, ["insuranceProvider"]);
36933
36981
  const result = yield client.insurance.addFunds(insuranceProvider, rest);
36934
36982
  return result.data;
36935
36983
  }),
@@ -36938,6 +36986,57 @@ const useAddInsuranceFunds = () => {
36938
36986
  });
36939
36987
  };
36940
36988
 
36989
+ var __defProp$v = Object.defineProperty;
36990
+ var __defProps$s = Object.defineProperties;
36991
+ var __getOwnPropDescs$s = Object.getOwnPropertyDescriptors;
36992
+ var __getOwnPropSymbols$A = Object.getOwnPropertySymbols;
36993
+ var __hasOwnProp$A = Object.prototype.hasOwnProperty;
36994
+ var __propIsEnum$A = Object.prototype.propertyIsEnumerable;
36995
+ var __defNormalProp$v = (obj, key, value) => key in obj ? __defProp$v(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
36996
+ var __spreadValues$v = (a, b) => {
36997
+ for (var prop in b || (b = {}))
36998
+ if (__hasOwnProp$A.call(b, prop))
36999
+ __defNormalProp$v(a, prop, b[prop]);
37000
+ if (__getOwnPropSymbols$A)
37001
+ for (var prop of __getOwnPropSymbols$A(b)) {
37002
+ if (__propIsEnum$A.call(b, prop))
37003
+ __defNormalProp$v(a, prop, b[prop]);
37004
+ }
37005
+ return a;
37006
+ };
37007
+ var __spreadProps$s = (a, b) => __defProps$s(a, __getOwnPropDescs$s(b));
37008
+ var __async$G = (__this, __arguments, generator) => {
37009
+ return new Promise((resolve, reject) => {
37010
+ var fulfilled = (value) => {
37011
+ try {
37012
+ step(generator.next(value));
37013
+ } catch (e) {
37014
+ reject(e);
37015
+ }
37016
+ };
37017
+ var rejected = (value) => {
37018
+ try {
37019
+ step(generator.throw(value));
37020
+ } catch (e) {
37021
+ reject(e);
37022
+ }
37023
+ };
37024
+ var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
37025
+ step((generator = generator.apply(__this, __arguments)).next());
37026
+ });
37027
+ };
37028
+ const useCreateInvoiceAddress = (params) => {
37029
+ const { client } = useShipEngine();
37030
+ return useMutation(__spreadProps$s(__spreadValues$v({}, params), {
37031
+ mutationFn: (invoiceAddress) => __async$G(void 0, null, function* () {
37032
+ const result = yield client.invoiceAddress.create(invoiceAddress);
37033
+ return result.data;
37034
+ }),
37035
+ mutationKey: ["useCreateInvoiceAddress"],
37036
+ onError
37037
+ }));
37038
+ };
37039
+
36941
37040
  var __defProp$u = Object.defineProperty;
36942
37041
  var __defProps$r = Object.defineProperties;
36943
37042
  var __getOwnPropDescs$r = Object.getOwnPropertyDescriptors;
@@ -36957,7 +37056,7 @@ var __spreadValues$u = (a, b) => {
36957
37056
  return a;
36958
37057
  };
36959
37058
  var __spreadProps$r = (a, b) => __defProps$r(a, __getOwnPropDescs$r(b));
36960
- var __async$D = (__this, __arguments, generator) => {
37059
+ var __async$F = (__this, __arguments, generator) => {
36961
37060
  return new Promise((resolve, reject) => {
36962
37061
  var fulfilled = (value) => {
36963
37062
  try {
@@ -36977,14 +37076,14 @@ var __async$D = (__this, __arguments, generator) => {
36977
37076
  step((generator = generator.apply(__this, __arguments)).next());
36978
37077
  });
36979
37078
  };
36980
- const useCreateInvoiceAddress = (params) => {
37079
+ const useUpdateInvoiceAddress = (params) => {
36981
37080
  const { client } = useShipEngine();
36982
37081
  return useMutation(__spreadProps$r(__spreadValues$u({}, params), {
36983
- mutationFn: (invoiceAddress) => __async$D(void 0, null, function* () {
36984
- const result = yield client.invoiceAddress.create(invoiceAddress);
37082
+ mutationFn: (invoiceAddress) => __async$F(void 0, null, function* () {
37083
+ const result = yield client.invoiceAddress.update(invoiceAddress);
36985
37084
  return result.data;
36986
37085
  }),
36987
- mutationKey: ["useCreateInvoiceAddress"],
37086
+ mutationKey: ["useUpdateInvoiceAddress"],
36988
37087
  onError
36989
37088
  }));
36990
37089
  };
@@ -37008,7 +37107,17 @@ var __spreadValues$t = (a, b) => {
37008
37107
  return a;
37009
37108
  };
37010
37109
  var __spreadProps$q = (a, b) => __defProps$q(a, __getOwnPropDescs$q(b));
37011
- var __async$C = (__this, __arguments, generator) => {
37110
+ const useGetInvoiceAddress = (params) => {
37111
+ const { client } = useShipEngine();
37112
+ return useQuery(__spreadProps$q(__spreadValues$t({}, params), {
37113
+ onError,
37114
+ queryFn: () => client.invoiceAddress.get(),
37115
+ queryKey: ["useGetInvoiceAddress"],
37116
+ select: (result) => result.data
37117
+ }));
37118
+ };
37119
+
37120
+ var __async$E = (__this, __arguments, generator) => {
37012
37121
  return new Promise((resolve, reject) => {
37013
37122
  var fulfilled = (value) => {
37014
37123
  try {
@@ -37028,16 +37137,16 @@ var __async$C = (__this, __arguments, generator) => {
37028
37137
  step((generator = generator.apply(__this, __arguments)).next());
37029
37138
  });
37030
37139
  };
37031
- const useUpdateInvoiceAddress = (params) => {
37140
+ const useCancelRefund = () => {
37032
37141
  const { client } = useShipEngine();
37033
- return useMutation(__spreadProps$q(__spreadValues$t({}, params), {
37034
- mutationFn: (invoiceAddress) => __async$C(void 0, null, function* () {
37035
- const result = yield client.invoiceAddress.update(invoiceAddress);
37142
+ return useMutation({
37143
+ mutationFn: (labelId) => __async$E(void 0, null, function* () {
37144
+ const result = yield client.labels.cancelRefund(labelId);
37036
37145
  return result.data;
37037
37146
  }),
37038
- mutationKey: ["useUpdateInvoiceAddress"],
37147
+ mutationKey: ["useCancelRefund"],
37039
37148
  onError
37040
- }));
37149
+ });
37041
37150
  };
37042
37151
 
37043
37152
  var __defProp$s = Object.defineProperty;
@@ -37059,17 +37168,19 @@ var __spreadValues$s = (a, b) => {
37059
37168
  return a;
37060
37169
  };
37061
37170
  var __spreadProps$p = (a, b) => __defProps$p(a, __getOwnPropDescs$p(b));
37062
- const useGetInvoiceAddress = (params) => {
37063
- const { client } = useShipEngine();
37064
- return useQuery(__spreadProps$p(__spreadValues$s({}, params), {
37065
- onError,
37066
- queryFn: () => client.invoiceAddress.get(),
37067
- queryKey: ["useGetInvoiceAddress"],
37068
- select: (result) => result.data
37069
- }));
37171
+ var __objRest$m = (source, exclude) => {
37172
+ var target = {};
37173
+ for (var prop in source)
37174
+ if (__hasOwnProp$x.call(source, prop) && exclude.indexOf(prop) < 0)
37175
+ target[prop] = source[prop];
37176
+ if (source != null && __getOwnPropSymbols$x)
37177
+ for (var prop of __getOwnPropSymbols$x(source)) {
37178
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$x.call(source, prop))
37179
+ target[prop] = source[prop];
37180
+ }
37181
+ return target;
37070
37182
  };
37071
-
37072
- var __async$B = (__this, __arguments, generator) => {
37183
+ var __async$D = (__this, __arguments, generator) => {
37073
37184
  return new Promise((resolve, reject) => {
37074
37185
  var fulfilled = (value) => {
37075
37186
  try {
@@ -37089,16 +37200,17 @@ var __async$B = (__this, __arguments, generator) => {
37089
37200
  step((generator = generator.apply(__this, __arguments)).next());
37090
37201
  });
37091
37202
  };
37092
- const useCancelRefund = () => {
37203
+ const useCreateLabelByRateId = (params) => {
37093
37204
  const { client } = useShipEngine();
37094
- return useMutation({
37095
- mutationFn: (labelId) => __async$B(void 0, null, function* () {
37096
- const result = yield client.labels.cancelRefund(labelId);
37205
+ return useMutation(__spreadProps$p(__spreadValues$s({}, params), {
37206
+ mutationFn: (_a) => __async$D(void 0, null, function* () {
37207
+ var _b = _a, { rateId } = _b, options = __objRest$m(_b, ["rateId"]);
37208
+ const result = yield client.labels.createByRateId(rateId, options);
37097
37209
  return result.data;
37098
37210
  }),
37099
- mutationKey: ["useCancelRefund"],
37211
+ mutationKey: ["useCreateLabelByRateId"],
37100
37212
  onError
37101
- });
37213
+ }));
37102
37214
  };
37103
37215
 
37104
37216
  var __defProp$r = Object.defineProperty;
@@ -37132,7 +37244,7 @@ var __objRest$l = (source, exclude) => {
37132
37244
  }
37133
37245
  return target;
37134
37246
  };
37135
- var __async$A = (__this, __arguments, generator) => {
37247
+ var __async$C = (__this, __arguments, generator) => {
37136
37248
  return new Promise((resolve, reject) => {
37137
37249
  var fulfilled = (value) => {
37138
37250
  try {
@@ -37152,15 +37264,15 @@ var __async$A = (__this, __arguments, generator) => {
37152
37264
  step((generator = generator.apply(__this, __arguments)).next());
37153
37265
  });
37154
37266
  };
37155
- const useCreateLabelByRateId = (params) => {
37267
+ const useCreateLabelByShipmentId = (params) => {
37156
37268
  const { client } = useShipEngine();
37157
37269
  return useMutation(__spreadProps$o(__spreadValues$r({}, params), {
37158
- mutationFn: (_a) => __async$A(void 0, null, function* () {
37159
- var _b = _a, { rateId } = _b, options = __objRest$l(_b, ["rateId"]);
37160
- const result = yield client.labels.createByRateId(rateId, options);
37270
+ mutationFn: (_a) => __async$C(void 0, null, function* () {
37271
+ var _b = _a, { shipmentId } = _b, options = __objRest$l(_b, ["shipmentId"]);
37272
+ const result = yield client.labels.createByShipmentId(shipmentId, options);
37161
37273
  return result.data;
37162
37274
  }),
37163
- mutationKey: ["useCreateLabelByRateId"],
37275
+ mutationKey: ["useCreateLabelByShipmentId"],
37164
37276
  onError
37165
37277
  }));
37166
37278
  };
@@ -37196,7 +37308,7 @@ var __objRest$k = (source, exclude) => {
37196
37308
  }
37197
37309
  return target;
37198
37310
  };
37199
- var __async$z = (__this, __arguments, generator) => {
37311
+ var __async$B = (__this, __arguments, generator) => {
37200
37312
  return new Promise((resolve, reject) => {
37201
37313
  var fulfilled = (value) => {
37202
37314
  try {
@@ -37216,15 +37328,15 @@ var __async$z = (__this, __arguments, generator) => {
37216
37328
  step((generator = generator.apply(__this, __arguments)).next());
37217
37329
  });
37218
37330
  };
37219
- const useCreateLabelByShipmentId = (params) => {
37331
+ const useCreateLabel = (params) => {
37220
37332
  const { client } = useShipEngine();
37221
37333
  return useMutation(__spreadProps$n(__spreadValues$q({}, params), {
37222
- mutationFn: (_a) => __async$z(void 0, null, function* () {
37223
- var _b = _a, { shipmentId } = _b, options = __objRest$k(_b, ["shipmentId"]);
37224
- const result = yield client.labels.createByShipmentId(shipmentId, options);
37334
+ mutationFn: (_a) => __async$B(void 0, null, function* () {
37335
+ var _b = _a, { rateId } = _b, options = __objRest$k(_b, ["rateId"]);
37336
+ const result = yield client.labels.createByRateId(rateId, options);
37225
37337
  return result.data;
37226
37338
  }),
37227
- mutationKey: ["useCreateLabelByShipmentId"],
37339
+ mutationKey: ["useCreateLabel"],
37228
37340
  onError
37229
37341
  }));
37230
37342
  };
@@ -37260,39 +37372,31 @@ var __objRest$j = (source, exclude) => {
37260
37372
  }
37261
37373
  return target;
37262
37374
  };
37263
- var __async$y = (__this, __arguments, generator) => {
37264
- return new Promise((resolve, reject) => {
37265
- var fulfilled = (value) => {
37266
- try {
37267
- step(generator.next(value));
37268
- } catch (e) {
37269
- reject(e);
37270
- }
37271
- };
37272
- var rejected = (value) => {
37273
- try {
37274
- step(generator.throw(value));
37275
- } catch (e) {
37276
- reject(e);
37277
- }
37278
- };
37279
- var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
37280
- step((generator = generator.apply(__this, __arguments)).next());
37281
- });
37282
- };
37283
- const useCreateLabel = (params) => {
37375
+ const useExportLabels = (params) => {
37284
37376
  const { client } = useShipEngine();
37285
- return useMutation(__spreadProps$m(__spreadValues$p({}, params), {
37286
- mutationFn: (_a) => __async$y(void 0, null, function* () {
37287
- var _b = _a, { rateId } = _b, options = __objRest$j(_b, ["rateId"]);
37288
- const result = yield client.labels.createByRateId(rateId, options);
37289
- return result.data;
37290
- }),
37291
- mutationKey: ["useCreateLabel"],
37292
- onError
37377
+ const _a = __spreadValues$p({}, params), { queryFnParams } = _a, rest = __objRest$j(_a, ["queryFnParams"]);
37378
+ return useQuery(__spreadProps$m(__spreadValues$p({}, rest), {
37379
+ onError,
37380
+ queryFn: () => client.labels.export(queryFnParams),
37381
+ queryKey: ["useExportLabels", params]
37293
37382
  }));
37294
37383
  };
37295
37384
 
37385
+ const useGetLabel = (labelId) => {
37386
+ const { client } = useShipEngine();
37387
+ return useQuery({
37388
+ enabled: labelId !== void 0,
37389
+ onError,
37390
+ queryFn: () => {
37391
+ if (labelId)
37392
+ return client.labels.get(labelId);
37393
+ return Promise.reject(new Error("labelId is require"));
37394
+ },
37395
+ queryKey: ["useGetLabel", labelId],
37396
+ select: (result) => result.data
37397
+ });
37398
+ };
37399
+
37296
37400
  var __defProp$o = Object.defineProperty;
37297
37401
  var __defProps$l = Object.defineProperties;
37298
37402
  var __getOwnPropDescs$l = Object.getOwnPropertyDescriptors;
@@ -37324,29 +37428,15 @@ var __objRest$i = (source, exclude) => {
37324
37428
  }
37325
37429
  return target;
37326
37430
  };
37327
- const useExportLabels = (params) => {
37431
+ const useListLabels = (params) => {
37328
37432
  const { client } = useShipEngine();
37329
37433
  const _a = __spreadValues$o({}, params), { queryFnParams } = _a, rest = __objRest$i(_a, ["queryFnParams"]);
37330
37434
  return useQuery(__spreadProps$l(__spreadValues$o({}, rest), {
37331
37435
  onError,
37332
- queryFn: () => client.labels.export(queryFnParams),
37333
- queryKey: ["useExportLabels", params]
37334
- }));
37335
- };
37336
-
37337
- const useGetLabel = (labelId) => {
37338
- const { client } = useShipEngine();
37339
- return useQuery({
37340
- enabled: labelId !== void 0,
37341
- onError,
37342
- queryFn: () => {
37343
- if (labelId)
37344
- return client.labels.get(labelId);
37345
- return Promise.reject(new Error("labelId is require"));
37346
- },
37347
- queryKey: ["useGetLabel", labelId],
37436
+ queryFn: () => client.labels.list(queryFnParams),
37437
+ queryKey: ["useListLabels", params],
37348
37438
  select: (result) => result.data
37349
- });
37439
+ }));
37350
37440
  };
37351
37441
 
37352
37442
  var __defProp$n = Object.defineProperty;
@@ -37380,49 +37470,7 @@ var __objRest$h = (source, exclude) => {
37380
37470
  }
37381
37471
  return target;
37382
37472
  };
37383
- const useListLabels = (params) => {
37384
- const { client } = useShipEngine();
37385
- const _a = __spreadValues$n({}, params), { queryFnParams } = _a, rest = __objRest$h(_a, ["queryFnParams"]);
37386
- return useQuery(__spreadProps$k(__spreadValues$n({}, rest), {
37387
- onError,
37388
- queryFn: () => client.labels.list(queryFnParams),
37389
- queryKey: ["useListLabels", params],
37390
- select: (result) => result.data
37391
- }));
37392
- };
37393
-
37394
- var __defProp$m = Object.defineProperty;
37395
- var __defProps$j = Object.defineProperties;
37396
- var __getOwnPropDescs$j = Object.getOwnPropertyDescriptors;
37397
- var __getOwnPropSymbols$r = Object.getOwnPropertySymbols;
37398
- var __hasOwnProp$r = Object.prototype.hasOwnProperty;
37399
- var __propIsEnum$r = Object.prototype.propertyIsEnumerable;
37400
- var __defNormalProp$m = (obj, key, value) => key in obj ? __defProp$m(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
37401
- var __spreadValues$m = (a, b) => {
37402
- for (var prop in b || (b = {}))
37403
- if (__hasOwnProp$r.call(b, prop))
37404
- __defNormalProp$m(a, prop, b[prop]);
37405
- if (__getOwnPropSymbols$r)
37406
- for (var prop of __getOwnPropSymbols$r(b)) {
37407
- if (__propIsEnum$r.call(b, prop))
37408
- __defNormalProp$m(a, prop, b[prop]);
37409
- }
37410
- return a;
37411
- };
37412
- var __spreadProps$j = (a, b) => __defProps$j(a, __getOwnPropDescs$j(b));
37413
- var __objRest$g = (source, exclude) => {
37414
- var target = {};
37415
- for (var prop in source)
37416
- if (__hasOwnProp$r.call(source, prop) && exclude.indexOf(prop) < 0)
37417
- target[prop] = source[prop];
37418
- if (source != null && __getOwnPropSymbols$r)
37419
- for (var prop of __getOwnPropSymbols$r(source)) {
37420
- if (exclude.indexOf(prop) < 0 && __propIsEnum$r.call(source, prop))
37421
- target[prop] = source[prop];
37422
- }
37423
- return target;
37424
- };
37425
- var __async$x = (__this, __arguments, generator) => {
37473
+ var __async$A = (__this, __arguments, generator) => {
37426
37474
  return new Promise((resolve, reject) => {
37427
37475
  var fulfilled = (value) => {
37428
37476
  try {
@@ -37444,8 +37492,8 @@ var __async$x = (__this, __arguments, generator) => {
37444
37492
  };
37445
37493
  const useListLabelsInfinite = (params) => {
37446
37494
  const { client } = useShipEngine();
37447
- const _a = __spreadValues$m({}, params), { queryFnParams } = _a, rest = __objRest$g(_a, ["queryFnParams"]);
37448
- return useInfiniteQuery(__spreadProps$j(__spreadValues$m({}, rest), {
37495
+ const _a = __spreadValues$n({}, params), { queryFnParams } = _a, rest = __objRest$h(_a, ["queryFnParams"]);
37496
+ return useInfiniteQuery(__spreadProps$k(__spreadValues$n({}, rest), {
37449
37497
  getNextPageParam: (lastPage) => {
37450
37498
  if (lastPage.page < lastPage.pages) {
37451
37499
  return lastPage.page + 1;
@@ -37453,8 +37501,8 @@ const useListLabelsInfinite = (params) => {
37453
37501
  return void 0;
37454
37502
  },
37455
37503
  onError,
37456
- queryFn: (_0) => __async$x(void 0, [_0], function* ({ pageParam = 1 }) {
37457
- const response = yield client.labels.list(__spreadProps$j(__spreadValues$m({}, queryFnParams), { page: pageParam }));
37504
+ queryFn: (_0) => __async$A(void 0, [_0], function* ({ pageParam = 1 }) {
37505
+ const response = yield client.labels.list(__spreadProps$k(__spreadValues$n({}, queryFnParams), { page: pageParam }));
37458
37506
  return response.data;
37459
37507
  }),
37460
37508
  queryKey: ["useListLabelsInfinite", params],
@@ -37468,7 +37516,7 @@ const useListLabelsInfinite = (params) => {
37468
37516
  }));
37469
37517
  };
37470
37518
 
37471
- var __async$w = (__this, __arguments, generator) => {
37519
+ var __async$z = (__this, __arguments, generator) => {
37472
37520
  return new Promise((resolve, reject) => {
37473
37521
  var fulfilled = (value) => {
37474
37522
  try {
@@ -37491,7 +37539,7 @@ var __async$w = (__this, __arguments, generator) => {
37491
37539
  const useVoidLabel = () => {
37492
37540
  const { client } = useShipEngine();
37493
37541
  return useMutation({
37494
- mutationFn: (labelId) => __async$w(void 0, null, function* () {
37542
+ mutationFn: (labelId) => __async$z(void 0, null, function* () {
37495
37543
  const result = yield client.labels.void(labelId);
37496
37544
  return result.data;
37497
37545
  }),
@@ -37500,28 +37548,28 @@ const useVoidLabel = () => {
37500
37548
  });
37501
37549
  };
37502
37550
 
37503
- var __defProp$l = Object.defineProperty;
37504
- var __defProps$i = Object.defineProperties;
37505
- var __getOwnPropDescs$i = Object.getOwnPropertyDescriptors;
37506
- var __getOwnPropSymbols$q = Object.getOwnPropertySymbols;
37507
- var __hasOwnProp$q = Object.prototype.hasOwnProperty;
37508
- var __propIsEnum$q = Object.prototype.propertyIsEnumerable;
37509
- var __defNormalProp$l = (obj, key, value) => key in obj ? __defProp$l(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
37510
- var __spreadValues$l = (a, b) => {
37551
+ var __defProp$m = Object.defineProperty;
37552
+ var __defProps$j = Object.defineProperties;
37553
+ var __getOwnPropDescs$j = Object.getOwnPropertyDescriptors;
37554
+ var __getOwnPropSymbols$r = Object.getOwnPropertySymbols;
37555
+ var __hasOwnProp$r = Object.prototype.hasOwnProperty;
37556
+ var __propIsEnum$r = Object.prototype.propertyIsEnumerable;
37557
+ var __defNormalProp$m = (obj, key, value) => key in obj ? __defProp$m(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
37558
+ var __spreadValues$m = (a, b) => {
37511
37559
  for (var prop in b || (b = {}))
37512
- if (__hasOwnProp$q.call(b, prop))
37513
- __defNormalProp$l(a, prop, b[prop]);
37514
- if (__getOwnPropSymbols$q)
37515
- for (var prop of __getOwnPropSymbols$q(b)) {
37516
- if (__propIsEnum$q.call(b, prop))
37517
- __defNormalProp$l(a, prop, b[prop]);
37560
+ if (__hasOwnProp$r.call(b, prop))
37561
+ __defNormalProp$m(a, prop, b[prop]);
37562
+ if (__getOwnPropSymbols$r)
37563
+ for (var prop of __getOwnPropSymbols$r(b)) {
37564
+ if (__propIsEnum$r.call(b, prop))
37565
+ __defNormalProp$m(a, prop, b[prop]);
37518
37566
  }
37519
37567
  return a;
37520
37568
  };
37521
- var __spreadProps$i = (a, b) => __defProps$i(a, __getOwnPropDescs$i(b));
37569
+ var __spreadProps$j = (a, b) => __defProps$j(a, __getOwnPropDescs$j(b));
37522
37570
  const useListOrderSources = (params) => {
37523
37571
  const { client } = useShipEngine();
37524
- return useQuery(__spreadProps$i(__spreadValues$l({}, params), {
37572
+ return useQuery(__spreadProps$j(__spreadValues$m({}, params), {
37525
37573
  onError,
37526
37574
  queryFn: () => client.orderSources.list(),
37527
37575
  queryKey: ["useListOrderSources"],
@@ -37529,7 +37577,7 @@ const useListOrderSources = (params) => {
37529
37577
  }));
37530
37578
  };
37531
37579
 
37532
- var __async$v = (__this, __arguments, generator) => {
37580
+ var __async$y = (__this, __arguments, generator) => {
37533
37581
  return new Promise((resolve, reject) => {
37534
37582
  var fulfilled = (value) => {
37535
37583
  try {
@@ -37552,7 +37600,7 @@ var __async$v = (__this, __arguments, generator) => {
37552
37600
  const useRefreshOrderSourceAsync = () => {
37553
37601
  const { client } = useShipEngine();
37554
37602
  return useMutation({
37555
- mutationFn: (orderSourceId) => __async$v(void 0, null, function* () {
37603
+ mutationFn: (orderSourceId) => __async$y(void 0, null, function* () {
37556
37604
  const result = yield client.orderSources.refresh(orderSourceId);
37557
37605
  return result.data;
37558
37606
  }),
@@ -37563,9 +37611,9 @@ const useRefreshOrderSource = () => {
37563
37611
  const { client } = useShipEngine();
37564
37612
  const { mutateAsync: refreshOrderSourceAsync } = useRefreshOrderSourceAsync();
37565
37613
  return useMutation({
37566
- mutationFn: (orderSourceId) => __async$v(void 0, null, function* () {
37614
+ mutationFn: (orderSourceId) => __async$y(void 0, null, function* () {
37567
37615
  yield refreshOrderSourceAsync(orderSourceId);
37568
- const waitResult = yield retryUntil(() => __async$v(void 0, null, function* () {
37616
+ const waitResult = yield retryUntil(() => __async$y(void 0, null, function* () {
37569
37617
  const { data: checkResult } = yield client.orderSources.get(orderSourceId);
37570
37618
  if (["preparing_update", "updating"].includes(checkResult.refreshInfo.status)) {
37571
37619
  throw new CodedError("Order source is still refreshing");
@@ -37579,7 +37627,7 @@ const useRefreshOrderSource = () => {
37579
37627
  });
37580
37628
  };
37581
37629
 
37582
- var __async$u = (__this, __arguments, generator) => {
37630
+ var __async$x = (__this, __arguments, generator) => {
37583
37631
  return new Promise((resolve, reject) => {
37584
37632
  var fulfilled = (value) => {
37585
37633
  try {
@@ -37602,7 +37650,7 @@ var __async$u = (__this, __arguments, generator) => {
37602
37650
  const useDeactivateOrderSource = () => {
37603
37651
  const { client } = useShipEngine();
37604
37652
  return useMutation({
37605
- mutationFn: (orderSourceId) => __async$u(void 0, null, function* () {
37653
+ mutationFn: (orderSourceId) => __async$x(void 0, null, function* () {
37606
37654
  const result = yield client.orderSources.deactivate(orderSourceId);
37607
37655
  return result.data;
37608
37656
  }),
@@ -37621,7 +37669,7 @@ const useListOrderSourcesConnections = () => {
37621
37669
  });
37622
37670
  };
37623
37671
 
37624
- var __async$t = (__this, __arguments, generator) => {
37672
+ var __async$w = (__this, __arguments, generator) => {
37625
37673
  return new Promise((resolve, reject) => {
37626
37674
  var fulfilled = (value) => {
37627
37675
  try {
@@ -37644,7 +37692,7 @@ var __async$t = (__this, __arguments, generator) => {
37644
37692
  const useUpdateOrderSource = () => {
37645
37693
  const { client } = useShipEngine();
37646
37694
  return useMutation({
37647
- mutationFn: (params) => __async$t(void 0, null, function* () {
37695
+ mutationFn: (params) => __async$w(void 0, null, function* () {
37648
37696
  const result = yield client.orderSources.update(params);
37649
37697
  return result.data;
37650
37698
  }),
@@ -37653,7 +37701,7 @@ const useUpdateOrderSource = () => {
37653
37701
  });
37654
37702
  };
37655
37703
 
37656
- var __async$s = (__this, __arguments, generator) => {
37704
+ var __async$v = (__this, __arguments, generator) => {
37657
37705
  return new Promise((resolve, reject) => {
37658
37706
  var fulfilled = (value) => {
37659
37707
  try {
@@ -37676,7 +37724,7 @@ var __async$s = (__this, __arguments, generator) => {
37676
37724
  const useCreateRateCard = () => {
37677
37725
  const { client } = useShipEngine();
37678
37726
  return useMutation({
37679
- mutationFn: (rateCard) => __async$s(void 0, null, function* () {
37727
+ mutationFn: (rateCard) => __async$v(void 0, null, function* () {
37680
37728
  const result = yield client.rateCards.create(rateCard);
37681
37729
  return result.data;
37682
37730
  }),
@@ -37723,7 +37771,7 @@ const useListRateCards = (carrierIds) => {
37723
37771
  });
37724
37772
  };
37725
37773
 
37726
- var __async$r = (__this, __arguments, generator) => {
37774
+ var __async$u = (__this, __arguments, generator) => {
37727
37775
  return new Promise((resolve, reject) => {
37728
37776
  var fulfilled = (value) => {
37729
37777
  try {
@@ -37746,7 +37794,7 @@ var __async$r = (__this, __arguments, generator) => {
37746
37794
  const usePublishRateCard = () => {
37747
37795
  const { client } = useShipEngine();
37748
37796
  return useMutation({
37749
- mutationFn: (rateCardId) => __async$r(void 0, null, function* () {
37797
+ mutationFn: (rateCardId) => __async$u(void 0, null, function* () {
37750
37798
  return yield client.rateCards.publish(rateCardId);
37751
37799
  }),
37752
37800
  mutationKey: ["usePublishRateCard"],
@@ -37754,7 +37802,7 @@ const usePublishRateCard = () => {
37754
37802
  });
37755
37803
  };
37756
37804
 
37757
- var __async$q = (__this, __arguments, generator) => {
37805
+ var __async$t = (__this, __arguments, generator) => {
37758
37806
  return new Promise((resolve, reject) => {
37759
37807
  var fulfilled = (value) => {
37760
37808
  try {
@@ -37777,7 +37825,7 @@ var __async$q = (__this, __arguments, generator) => {
37777
37825
  const useUpdateRateCard = () => {
37778
37826
  const { client } = useShipEngine();
37779
37827
  return useMutation({
37780
- mutationFn: (rateCard) => __async$q(void 0, null, function* () {
37828
+ mutationFn: (rateCard) => __async$t(void 0, null, function* () {
37781
37829
  const result = yield client.rateCards.update(rateCard);
37782
37830
  return result.data;
37783
37831
  }),
@@ -37786,7 +37834,7 @@ const useUpdateRateCard = () => {
37786
37834
  });
37787
37835
  };
37788
37836
 
37789
- var __async$p = (__this, __arguments, generator) => {
37837
+ var __async$s = (__this, __arguments, generator) => {
37790
37838
  return new Promise((resolve, reject) => {
37791
37839
  var fulfilled = (value) => {
37792
37840
  try {
@@ -37809,7 +37857,7 @@ var __async$p = (__this, __arguments, generator) => {
37809
37857
  const useUploadRateCard = () => {
37810
37858
  const { client } = useShipEngine();
37811
37859
  return useMutation({
37812
- mutationFn: (_0) => __async$p(void 0, [_0], function* ({ rateCardId, file }) {
37860
+ mutationFn: (_0) => __async$s(void 0, [_0], function* ({ rateCardId, file }) {
37813
37861
  const result = yield client.rateCards.upload(rateCardId, file);
37814
37862
  return result.data;
37815
37863
  }),
@@ -37818,7 +37866,7 @@ const useUploadRateCard = () => {
37818
37866
  });
37819
37867
  };
37820
37868
 
37821
- var __async$o = (__this, __arguments, generator) => {
37869
+ var __async$r = (__this, __arguments, generator) => {
37822
37870
  return new Promise((resolve, reject) => {
37823
37871
  var fulfilled = (value) => {
37824
37872
  try {
@@ -37841,7 +37889,7 @@ var __async$o = (__this, __arguments, generator) => {
37841
37889
  const useDeleteRateCard = () => {
37842
37890
  const { client } = useShipEngine();
37843
37891
  return useMutation({
37844
- mutationFn: (rateCardId) => __async$o(void 0, null, function* () {
37892
+ mutationFn: (rateCardId) => __async$r(void 0, null, function* () {
37845
37893
  const result = yield client.rateCards.delete(rateCardId);
37846
37894
  return result.data;
37847
37895
  }),
@@ -37850,6 +37898,156 @@ const useDeleteRateCard = () => {
37850
37898
  });
37851
37899
  };
37852
37900
 
37901
+ var __defProp$l = Object.defineProperty;
37902
+ var __defProps$i = Object.defineProperties;
37903
+ var __getOwnPropDescs$i = Object.getOwnPropertyDescriptors;
37904
+ var __getOwnPropSymbols$q = Object.getOwnPropertySymbols;
37905
+ var __hasOwnProp$q = Object.prototype.hasOwnProperty;
37906
+ var __propIsEnum$q = Object.prototype.propertyIsEnumerable;
37907
+ var __defNormalProp$l = (obj, key, value) => key in obj ? __defProp$l(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
37908
+ var __spreadValues$l = (a, b) => {
37909
+ for (var prop in b || (b = {}))
37910
+ if (__hasOwnProp$q.call(b, prop))
37911
+ __defNormalProp$l(a, prop, b[prop]);
37912
+ if (__getOwnPropSymbols$q)
37913
+ for (var prop of __getOwnPropSymbols$q(b)) {
37914
+ if (__propIsEnum$q.call(b, prop))
37915
+ __defNormalProp$l(a, prop, b[prop]);
37916
+ }
37917
+ return a;
37918
+ };
37919
+ var __spreadProps$i = (a, b) => __defProps$i(a, __getOwnPropDescs$i(b));
37920
+ var __objRest$g = (source, exclude) => {
37921
+ var target = {};
37922
+ for (var prop in source)
37923
+ if (__hasOwnProp$q.call(source, prop) && exclude.indexOf(prop) < 0)
37924
+ target[prop] = source[prop];
37925
+ if (source != null && __getOwnPropSymbols$q)
37926
+ for (var prop of __getOwnPropSymbols$q(source)) {
37927
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$q.call(source, prop))
37928
+ target[prop] = source[prop];
37929
+ }
37930
+ return target;
37931
+ };
37932
+ const useListRateShoppers = (params) => {
37933
+ const { client } = useShipEngine();
37934
+ const _a = __spreadValues$l({}, params), { queryFnParams } = _a, rest = __objRest$g(_a, ["queryFnParams"]);
37935
+ return useQuery(__spreadProps$i(__spreadValues$l({}, rest), {
37936
+ onError,
37937
+ queryFn: () => client.rateShoppers.list(queryFnParams),
37938
+ queryKey: ["useListRateShoppers", params],
37939
+ select: (result) => result.data
37940
+ }));
37941
+ };
37942
+
37943
+ const useGetRateShopper = (rateShopperId) => {
37944
+ const { client } = useShipEngine();
37945
+ return useQuery({
37946
+ onError,
37947
+ queryFn: () => {
37948
+ return client.rateShoppers.get(rateShopperId);
37949
+ },
37950
+ queryKey: ["useGetRateShopper", rateShopperId],
37951
+ select: (result) => result.data
37952
+ });
37953
+ };
37954
+
37955
+ var __async$q = (__this, __arguments, generator) => {
37956
+ return new Promise((resolve, reject) => {
37957
+ var fulfilled = (value) => {
37958
+ try {
37959
+ step(generator.next(value));
37960
+ } catch (e) {
37961
+ reject(e);
37962
+ }
37963
+ };
37964
+ var rejected = (value) => {
37965
+ try {
37966
+ step(generator.throw(value));
37967
+ } catch (e) {
37968
+ reject(e);
37969
+ }
37970
+ };
37971
+ var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
37972
+ step((generator = generator.apply(__this, __arguments)).next());
37973
+ });
37974
+ };
37975
+ const useCreateRateShopper = () => {
37976
+ const { client } = useShipEngine();
37977
+ return useMutation({
37978
+ mutationFn: (request) => __async$q(void 0, null, function* () {
37979
+ const result = yield client.rateShoppers.create(request);
37980
+ return result.data;
37981
+ }),
37982
+ mutationKey: ["useCreateRateShopper"],
37983
+ onError
37984
+ });
37985
+ };
37986
+
37987
+ var __async$p = (__this, __arguments, generator) => {
37988
+ return new Promise((resolve, reject) => {
37989
+ var fulfilled = (value) => {
37990
+ try {
37991
+ step(generator.next(value));
37992
+ } catch (e) {
37993
+ reject(e);
37994
+ }
37995
+ };
37996
+ var rejected = (value) => {
37997
+ try {
37998
+ step(generator.throw(value));
37999
+ } catch (e) {
38000
+ reject(e);
38001
+ }
38002
+ };
38003
+ var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
38004
+ step((generator = generator.apply(__this, __arguments)).next());
38005
+ });
38006
+ };
38007
+ const useEditRateShopper = () => {
38008
+ const { client } = useShipEngine();
38009
+ return useMutation({
38010
+ mutationFn: (_0) => __async$p(void 0, [_0], function* ({ rateShopperId, request }) {
38011
+ const result = yield client.rateShoppers.edit(rateShopperId, request);
38012
+ return result.data;
38013
+ }),
38014
+ mutationKey: ["useEditRateShopper"],
38015
+ onError
38016
+ });
38017
+ };
38018
+
38019
+ var __async$o = (__this, __arguments, generator) => {
38020
+ return new Promise((resolve, reject) => {
38021
+ var fulfilled = (value) => {
38022
+ try {
38023
+ step(generator.next(value));
38024
+ } catch (e) {
38025
+ reject(e);
38026
+ }
38027
+ };
38028
+ var rejected = (value) => {
38029
+ try {
38030
+ step(generator.throw(value));
38031
+ } catch (e) {
38032
+ reject(e);
38033
+ }
38034
+ };
38035
+ var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
38036
+ step((generator = generator.apply(__this, __arguments)).next());
38037
+ });
38038
+ };
38039
+ const useDeleteRateShopper = () => {
38040
+ const { client } = useShipEngine();
38041
+ return useMutation({
38042
+ mutationFn: (rateShopperId) => __async$o(void 0, null, function* () {
38043
+ const result = yield client.rateShoppers.delete(rateShopperId);
38044
+ return result.data;
38045
+ }),
38046
+ mutationKey: ["useDeleteRateShopper"],
38047
+ onError
38048
+ });
38049
+ };
38050
+
37853
38051
  var __async$n = (__this, __arguments, generator) => {
37854
38052
  return new Promise((resolve, reject) => {
37855
38053
  var fulfilled = (value) => {
@@ -40641,4 +40839,4 @@ const alchemy = {
40641
40839
  createElement
40642
40840
  };
40643
40841
 
40644
- export { AccountAddonsAPI, AccountBillingAPI, AccountBillingPlanAPI, AccountBillingPlanChangeType, AccountFeaturesAPI, AccountRefundAssistAPI, AccountSettingsAPI, AddressesAPI, AlchemyContext, AlchemyProvider, AlchemyTestProvider, AuctanePayAPI, CarriersAPI, CodedError, ConfirmationType, ConnectionsAPI, CreditCardVendor, Currency, CustomPackagesAPI, CustomsContentsType, CustomsNonDeliveryType, Element, ErrorBoundary, FeatureId, FundingSourcesAPI, InsuranceAPI, InsuranceProviderType, InvoiceAddressAPI, LabelsAPI, MetadataCapability, MetadataRequirement, MetadataSatisfyingFormTypes, MovementIndicator, OrderSourcesAPI, RateCardStatus, RateCardsAPI, RatesAPI, types as SE, SalesOrderShipmentsAPI, SalesOrdersAPI, SellersAPI, ServicePointsAPI, ShipEngine, ShipEngineAPI, ShipEngineContext, ShipmentsAPI, ShippingRulesAPI, ThemesAPI, UsersApi, WarehousesAPI, WebhooksAPI, alchemy, camelizeKeys, decamelizeKeys, alchemy as default, delay, getEmotionCache, getEndUserIpAddress, isCodedError, isCodedErrors, isDataCodedErrors, isInvalidTokenError, logger, onError, parseError, retryUntil, useAcceptCarrierTerms, useAcceptFundingSourceTerms, useAddFunds, useAddInsuranceFunds, useAddSandboxCarriers, useAlchemy, useCalculateRates, useCancelRefund, useCancelShipment, useCarrierConnectionsServicesList, useConnectCarrier, useConnectCarrierAccount, useCreateAccountImage, useCreateAuctanePaySession, useCreateFundingSource, useCreateInvoiceAddress, useCreateLabel, useCreateLabelByRateId, useCreateLabelByShipmentId, useCreateRateCard, useCreateSalesOrderShipment, useCreateSandboxSeller, useCreateSellerApiKey, useCreateShipment, useCreateShippingRule, useCreateWarehouse, useCreateWebhook, useDeactivateOrderSource, useDeleteAccountImage, useDeleteCarrier, useDeletePaymentMethod, useDeleteRateCard, useDeleteSellerApiKey, useDeleteShippingRule, useDeleteWarehouse, useDeleteWebhook, useDisableAccountAddon, useDisableRefundAssist, useDownloadRateCard, useEditShippingRule, useEnableAccountAddon, useEnableRefundAssist, useExportLabels, useExportShipments, useFundingSourcesAddFunds, useGetAccountBilling, useGetAccountBillingPlan, useGetAccountImages, useGetAccountSettings, useGetAuctanePayConfig, useGetAutoFundingConfiguration, useGetCarrierById, useGetCarrierConnectionForm, useGetConnectionsCarrierSettings, useGetCountriesByCarrier, useGetCurrenciesByCarrier, useGetFundingSourceAcceptedTerms, useGetFundingSourceById, useGetFundingSourceMetadata, useGetFundingSourceTransactions, useGetHereToken, useGetInsuranceAccount, useGetInsuranceFundingSourceAcceptedTerms, useGetInvoiceAddress, useGetLabel, useGetPackageRatingGroupByCarrier, useGetPaymentAccount, useGetPaymentMethods, useGetRateCardById, useGetRefundAssist, useGetSalesOrder, useGetSalesOrderByExternalOrderId, useGetSalesOrderShipment, useGetServicePoint, useGetServicesByCarrier, useGetShipment, useGetShipmentByExternalId, useGetShipmentRates, useGetShippingRuleById, useGetShippingRuleConditionsOptions, useGetThemeById, useGetZonesByCarrier, useI18n, useIdentityVerification, useListAccountAddons, useListAccountFeatures, useListCarrierConnections, useListCarriers, useListCustomPackageTypes, useListFundingSources, useListLabels, useListLabelsInfinite, useListOrderSources, useListOrderSourcesConnections, useListRateCards, useListSalesOrderShipments, useListSalesOrderShipmentsByExternalOrderId, useListSalesOrders, useListSandboxSellerIds, useListSellerApiKeys, useListServicePoints, useListShipments, useListShippingRules, useListUsers, useListWarehouses, useListWebhooks, useLoadIcons, useNotifySalesOrderShipped, useParseAddress, usePreviewTransaction, usePublishRateCard, useRatesEstimate, useRefreshOrderSource, useRefreshOrderSourceAsync, useRegisterCarrier, useRequestAccountFeature, useRequestStampsAccountUrls, useShipEngine, useUpdateAccountBillingPlan, useUpdateAccountImage, useUpdateAccountSettings, useUpdateAutoFunding, useUpdateConnectionsCarrierSettings, useUpdateFundingSource, useUpdateInvoiceAddress, useUpdateOrderSource, useUpdatePaymentMethod, useUpdateRateCard, useUpdateSalesOrderShipment, useUpdateWarehouse, useUpdateWebhook, useUploadRateCard, useUpsertAccountBilling, useValidateAddresses, useVoidLabel };
40842
+ export { AccountAddonsAPI, AccountBillingAPI, AccountBillingPlanAPI, AccountBillingPlanChangeType, AccountFeaturesAPI, AccountRefundAssistAPI, AccountSettingsAPI, AddressesAPI, AlchemyContext, AlchemyProvider, AlchemyTestProvider, AuctanePayAPI, CarriersAPI, CodedError, ConfirmationType, ConnectionsAPI, CreditCardVendor, Currency, CustomPackagesAPI, CustomsContentsType, CustomsNonDeliveryType, Element, ErrorBoundary, FeatureId, FundingSourcesAPI, InsuranceAPI, InsuranceProviderType, InvoiceAddressAPI, LabelsAPI, MetadataCapability, MetadataRequirement, MetadataSatisfyingFormTypes, MovementIndicator, OrderSourcesAPI, RateCardStatus, RateCardsAPI, RateShoppersAPI, RatesAPI, types as SE, SalesOrderShipmentsAPI, SalesOrdersAPI, SellersAPI, ServicePointsAPI, ShipEngine, ShipEngineAPI, ShipEngineContext, ShipmentsAPI, ShippingRulesAPI, ThemesAPI, UsersApi, WarehousesAPI, WebhooksAPI, alchemy, camelizeKeys, decamelizeKeys, alchemy as default, delay, getEmotionCache, getEndUserIpAddress, isCodedError, isCodedErrors, isDataCodedErrors, isInvalidTokenError, logger, onError, parseError, retryUntil, useAcceptCarrierTerms, useAcceptFundingSourceTerms, useAddFunds, useAddInsuranceFunds, useAddSandboxCarriers, useAlchemy, useCalculateRates, useCancelRefund, useCancelShipment, useCarrierConnectionsServicesList, useConnectCarrier, useConnectCarrierAccount, useCreateAccountImage, useCreateAuctanePaySession, useCreateFundingSource, useCreateInvoiceAddress, useCreateLabel, useCreateLabelByRateId, useCreateLabelByShipmentId, useCreateRateCard, useCreateRateShopper, useCreateSalesOrderShipment, useCreateSandboxSeller, useCreateSellerApiKey, useCreateShipment, useCreateShippingRule, useCreateWarehouse, useCreateWebhook, useDeactivateOrderSource, useDeleteAccountImage, useDeleteCarrier, useDeletePaymentMethod, useDeleteRateCard, useDeleteRateShopper, useDeleteSellerApiKey, useDeleteShippingRule, useDeleteWarehouse, useDeleteWebhook, useDisableAccountAddon, useDisableRefundAssist, useDownloadRateCard, useEditRateShopper, useEditShippingRule, useEnableAccountAddon, useEnableRefundAssist, useExportLabels, useExportShipments, useFundingSourcesAddFunds, useGetAccountBilling, useGetAccountBillingPlan, useGetAccountImages, useGetAccountSettings, useGetAuctanePayConfig, useGetAutoFundingConfiguration, useGetCarrierById, useGetCarrierConnectionForm, useGetConnectionsCarrierSettings, useGetCountriesByCarrier, useGetCurrenciesByCarrier, useGetFundingSourceAcceptedTerms, useGetFundingSourceById, useGetFundingSourceMetadata, useGetFundingSourceTransactions, useGetHereToken, useGetInsuranceAccount, useGetInsuranceFundingSourceAcceptedTerms, useGetInvoiceAddress, useGetLabel, useGetPackageRatingGroupByCarrier, useGetPaymentAccount, useGetPaymentMethods, useGetRateCardById, useGetRateShopper, useGetRefundAssist, useGetSalesOrder, useGetSalesOrderByExternalOrderId, useGetSalesOrderShipment, useGetServicePoint, useGetServicesByCarrier, useGetShipment, useGetShipmentByExternalId, useGetShipmentRates, useGetShippingRuleById, useGetShippingRuleConditionsOptions, useGetThemeById, useGetZonesByCarrier, useI18n, useIdentityVerification, useListAccountAddons, useListAccountFeatures, useListCarrierConnections, useListCarriers, useListCustomPackageTypes, useListFundingSources, useListLabels, useListLabelsInfinite, useListOrderSources, useListOrderSourcesConnections, useListRateCards, useListRateShoppers, useListSalesOrderShipments, useListSalesOrderShipmentsByExternalOrderId, useListSalesOrders, useListSandboxSellerIds, useListSellerApiKeys, useListServicePoints, useListShipments, useListShippingRules, useListUsers, useListWarehouses, useListWebhooks, useLoadIcons, useNotifySalesOrderShipped, useParseAddress, usePreviewTransaction, usePublishRateCard, useRatesEstimate, useRefreshOrderSource, useRefreshOrderSourceAsync, useRegisterCarrier, useRequestAccountFeature, useRequestStampsAccountUrls, useShipEngine, useUpdateAccountBillingPlan, useUpdateAccountImage, useUpdateAccountSettings, useUpdateAutoFunding, useUpdateConnectionsCarrierSettings, useUpdateFundingSource, useUpdateInvoiceAddress, useUpdateOrderSource, useUpdatePaymentMethod, useUpdateRateCard, useUpdateSalesOrderShipment, useUpdateWarehouse, useUpdateWebhook, useUploadRateCard, useUpsertAccountBilling, useValidateAddresses, useVoidLabel };