@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.js CHANGED
@@ -10827,17 +10827,17 @@ var FeatureId = /* @__PURE__ */ ((FeatureId2) => {
10827
10827
  return FeatureId2;
10828
10828
  })(FeatureId || {});
10829
10829
 
10830
- var __getOwnPropSymbols$17 = Object.getOwnPropertySymbols;
10831
- var __hasOwnProp$17 = Object.prototype.hasOwnProperty;
10832
- var __propIsEnum$17 = Object.prototype.propertyIsEnumerable;
10833
- var __objRest$x = (source, exclude) => {
10830
+ var __getOwnPropSymbols$18 = Object.getOwnPropertySymbols;
10831
+ var __hasOwnProp$18 = Object.prototype.hasOwnProperty;
10832
+ var __propIsEnum$18 = Object.prototype.propertyIsEnumerable;
10833
+ var __objRest$y = (source, exclude) => {
10834
10834
  var target = {};
10835
10835
  for (var prop in source)
10836
- if (__hasOwnProp$17.call(source, prop) && exclude.indexOf(prop) < 0)
10836
+ if (__hasOwnProp$18.call(source, prop) && exclude.indexOf(prop) < 0)
10837
10837
  target[prop] = source[prop];
10838
- if (source != null && __getOwnPropSymbols$17)
10839
- for (var prop of __getOwnPropSymbols$17(source)) {
10840
- if (exclude.indexOf(prop) < 0 && __propIsEnum$17.call(source, prop))
10838
+ if (source != null && __getOwnPropSymbols$18)
10839
+ for (var prop of __getOwnPropSymbols$18(source)) {
10840
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$18.call(source, prop))
10841
10841
  target[prop] = source[prop];
10842
10842
  }
10843
10843
  return target;
@@ -10851,7 +10851,7 @@ class CodedError {
10851
10851
  this.message = message;
10852
10852
  }
10853
10853
  static fromObject(_a) {
10854
- var _b = _a, { message } = _b, options = __objRest$x(_b, ["message"]);
10854
+ var _b = _a, { message } = _b, options = __objRest$y(_b, ["message"]);
10855
10855
  return new CodedError(message, options);
10856
10856
  }
10857
10857
  }
@@ -10973,17 +10973,17 @@ const types = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
10973
10973
  RateCardStatus
10974
10974
  }, Symbol.toStringTag, { value: 'Module' }));
10975
10975
 
10976
- var __getOwnPropSymbols$16 = Object.getOwnPropertySymbols;
10977
- var __hasOwnProp$16 = Object.prototype.hasOwnProperty;
10978
- var __propIsEnum$16 = Object.prototype.propertyIsEnumerable;
10979
- var __objRest$w = (source, exclude) => {
10976
+ var __getOwnPropSymbols$17 = Object.getOwnPropertySymbols;
10977
+ var __hasOwnProp$17 = Object.prototype.hasOwnProperty;
10978
+ var __propIsEnum$17 = Object.prototype.propertyIsEnumerable;
10979
+ var __objRest$x = (source, exclude) => {
10980
10980
  var target = {};
10981
10981
  for (var prop in source)
10982
- if (__hasOwnProp$16.call(source, prop) && exclude.indexOf(prop) < 0)
10982
+ if (__hasOwnProp$17.call(source, prop) && exclude.indexOf(prop) < 0)
10983
10983
  target[prop] = source[prop];
10984
- if (source != null && __getOwnPropSymbols$16)
10985
- for (var prop of __getOwnPropSymbols$16(source)) {
10986
- if (exclude.indexOf(prop) < 0 && __propIsEnum$16.call(source, prop))
10984
+ if (source != null && __getOwnPropSymbols$17)
10985
+ for (var prop of __getOwnPropSymbols$17(source)) {
10986
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$17.call(source, prop))
10987
10987
  target[prop] = source[prop];
10988
10988
  }
10989
10989
  return target;
@@ -11015,7 +11015,7 @@ class AccountSettingsAPI {
11015
11015
  * The `updateImage` method updates specific image data for a given image id.
11016
11016
  */
11017
11017
  this.updateImage = (_a) => {
11018
- var _b = _a, { labelImageId } = _b, data = __objRest$w(_b, ["labelImageId"]);
11018
+ var _b = _a, { labelImageId } = _b, data = __objRest$x(_b, ["labelImageId"]);
11019
11019
  return this.client.put(`/v1/account/settings/images/${labelImageId}`, data);
11020
11020
  };
11021
11021
  /**
@@ -13913,7 +13913,7 @@ var ipaddr = {
13913
13913
  }).call(commonjsGlobal);
13914
13914
  } (ipaddr));
13915
13915
 
13916
- var __async$1d = (__this, __arguments, generator) => {
13916
+ var __async$1g = (__this, __arguments, generator) => {
13917
13917
  return new Promise((resolve, reject) => {
13918
13918
  var fulfilled = (value) => {
13919
13919
  try {
@@ -13935,7 +13935,7 @@ var __async$1d = (__this, __arguments, generator) => {
13935
13935
  };
13936
13936
  const ipifyProvider = "https://api.ipify.org/?format=json";
13937
13937
  const fallbackProvider = "https://ipecho.net/plain";
13938
- const getEndUserIpFallbackProvider = () => __async$1d(void 0, null, function* () {
13938
+ const getEndUserIpFallbackProvider = () => __async$1g(void 0, null, function* () {
13939
13939
  try {
13940
13940
  const response = yield axios.get(fallbackProvider);
13941
13941
  if (response.data && ipaddrExports.isValid(response.data)) {
@@ -13946,7 +13946,7 @@ const getEndUserIpFallbackProvider = () => __async$1d(void 0, null, function* ()
13946
13946
  return void 0;
13947
13947
  }
13948
13948
  });
13949
- const getEndUserIpAddress = () => __async$1d(void 0, null, function* () {
13949
+ const getEndUserIpAddress = () => __async$1g(void 0, null, function* () {
13950
13950
  try {
13951
13951
  const response = yield axios.get(ipifyProvider);
13952
13952
  if (response.data.ip && ipaddrExports.isValid(response.data.ip)) {
@@ -14007,38 +14007,38 @@ const decamelizeKeys = (obj, separator = "_") => {
14007
14007
  return obj;
14008
14008
  };
14009
14009
 
14010
- var __defProp$W = Object.defineProperty;
14011
- var __defProps$Q = Object.defineProperties;
14012
- var __getOwnPropDescs$Q = Object.getOwnPropertyDescriptors;
14013
- var __getOwnPropSymbols$15 = Object.getOwnPropertySymbols;
14014
- var __hasOwnProp$15 = Object.prototype.hasOwnProperty;
14015
- var __propIsEnum$15 = Object.prototype.propertyIsEnumerable;
14016
- var __defNormalProp$W = (obj, key, value) => key in obj ? __defProp$W(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
14017
- var __spreadValues$W = (a, b) => {
14010
+ var __defProp$X = Object.defineProperty;
14011
+ var __defProps$R = Object.defineProperties;
14012
+ var __getOwnPropDescs$R = Object.getOwnPropertyDescriptors;
14013
+ var __getOwnPropSymbols$16 = Object.getOwnPropertySymbols;
14014
+ var __hasOwnProp$16 = Object.prototype.hasOwnProperty;
14015
+ var __propIsEnum$16 = Object.prototype.propertyIsEnumerable;
14016
+ var __defNormalProp$X = (obj, key, value) => key in obj ? __defProp$X(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
14017
+ var __spreadValues$X = (a, b) => {
14018
14018
  for (var prop in b || (b = {}))
14019
- if (__hasOwnProp$15.call(b, prop))
14020
- __defNormalProp$W(a, prop, b[prop]);
14021
- if (__getOwnPropSymbols$15)
14022
- for (var prop of __getOwnPropSymbols$15(b)) {
14023
- if (__propIsEnum$15.call(b, prop))
14024
- __defNormalProp$W(a, prop, b[prop]);
14019
+ if (__hasOwnProp$16.call(b, prop))
14020
+ __defNormalProp$X(a, prop, b[prop]);
14021
+ if (__getOwnPropSymbols$16)
14022
+ for (var prop of __getOwnPropSymbols$16(b)) {
14023
+ if (__propIsEnum$16.call(b, prop))
14024
+ __defNormalProp$X(a, prop, b[prop]);
14025
14025
  }
14026
14026
  return a;
14027
14027
  };
14028
- var __spreadProps$Q = (a, b) => __defProps$Q(a, __getOwnPropDescs$Q(b));
14029
- var __objRest$v = (source, exclude) => {
14028
+ var __spreadProps$R = (a, b) => __defProps$R(a, __getOwnPropDescs$R(b));
14029
+ var __objRest$w = (source, exclude) => {
14030
14030
  var target = {};
14031
14031
  for (var prop in source)
14032
- if (__hasOwnProp$15.call(source, prop) && exclude.indexOf(prop) < 0)
14032
+ if (__hasOwnProp$16.call(source, prop) && exclude.indexOf(prop) < 0)
14033
14033
  target[prop] = source[prop];
14034
- if (source != null && __getOwnPropSymbols$15)
14035
- for (var prop of __getOwnPropSymbols$15(source)) {
14036
- if (exclude.indexOf(prop) < 0 && __propIsEnum$15.call(source, prop))
14034
+ if (source != null && __getOwnPropSymbols$16)
14035
+ for (var prop of __getOwnPropSymbols$16(source)) {
14036
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$16.call(source, prop))
14037
14037
  target[prop] = source[prop];
14038
14038
  }
14039
14039
  return target;
14040
14040
  };
14041
- var __async$1c = (__this, __arguments, generator) => {
14041
+ var __async$1f = (__this, __arguments, generator) => {
14042
14042
  return new Promise((resolve, reject) => {
14043
14043
  var fulfilled = (value) => {
14044
14044
  try {
@@ -14078,12 +14078,12 @@ class CarriersAPI {
14078
14078
  /**
14079
14079
  * The `connect` method connects a carrier account to a user's ShipEngine account.
14080
14080
  */
14081
- this.connect = (_a) => __async$1c(this, null, function* () {
14082
- var _b = _a, { carrierCode } = _b, connection = __objRest$v(_b, ["carrierCode"]);
14081
+ this.connect = (_a) => __async$1f(this, null, function* () {
14082
+ var _b = _a, { carrierCode } = _b, connection = __objRest$w(_b, ["carrierCode"]);
14083
14083
  const endUserIpAddress = yield getEndUserIpAddress();
14084
14084
  if (!endUserIpAddress)
14085
14085
  return Promise.reject([new CodedError("Unable to get IP address")]);
14086
- return yield this.client.post(`/v1/registration/${carrierCode}`, __spreadProps$Q(__spreadValues$W({}, connection), {
14086
+ return yield this.client.post(`/v1/registration/${carrierCode}`, __spreadProps$R(__spreadValues$X({}, connection), {
14087
14087
  endUserIpAddress
14088
14088
  }));
14089
14089
  });
@@ -14177,22 +14177,22 @@ class CarriersAPI {
14177
14177
  }
14178
14178
  }
14179
14179
 
14180
- var __getOwnPropSymbols$14 = Object.getOwnPropertySymbols;
14181
- var __hasOwnProp$14 = Object.prototype.hasOwnProperty;
14182
- var __propIsEnum$14 = Object.prototype.propertyIsEnumerable;
14183
- var __objRest$u = (source, exclude) => {
14180
+ var __getOwnPropSymbols$15 = Object.getOwnPropertySymbols;
14181
+ var __hasOwnProp$15 = Object.prototype.hasOwnProperty;
14182
+ var __propIsEnum$15 = Object.prototype.propertyIsEnumerable;
14183
+ var __objRest$v = (source, exclude) => {
14184
14184
  var target = {};
14185
14185
  for (var prop in source)
14186
- if (__hasOwnProp$14.call(source, prop) && exclude.indexOf(prop) < 0)
14186
+ if (__hasOwnProp$15.call(source, prop) && exclude.indexOf(prop) < 0)
14187
14187
  target[prop] = source[prop];
14188
- if (source != null && __getOwnPropSymbols$14)
14189
- for (var prop of __getOwnPropSymbols$14(source)) {
14190
- if (exclude.indexOf(prop) < 0 && __propIsEnum$14.call(source, prop))
14188
+ if (source != null && __getOwnPropSymbols$15)
14189
+ for (var prop of __getOwnPropSymbols$15(source)) {
14190
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$15.call(source, prop))
14191
14191
  target[prop] = source[prop];
14192
14192
  }
14193
14193
  return target;
14194
14194
  };
14195
- var __async$1b = (__this, __arguments, generator) => {
14195
+ var __async$1e = (__this, __arguments, generator) => {
14196
14196
  return new Promise((resolve, reject) => {
14197
14197
  var fulfilled = (value) => {
14198
14198
  try {
@@ -14234,7 +14234,7 @@ class ConnectionsAPI {
14234
14234
  /**
14235
14235
  * The `connectCarrier` method connects a carrier to account.
14236
14236
  */
14237
- this.connectCarrier = (carrierName, formData) => __async$1b(this, null, function* () {
14237
+ this.connectCarrier = (carrierName, formData) => __async$1e(this, null, function* () {
14238
14238
  return yield this.client.post(
14239
14239
  `/v1/connections/carriers/${carrierName}`,
14240
14240
  formData,
@@ -14282,7 +14282,7 @@ class ConnectionsAPI {
14282
14282
  * @docs https://auctane.atlassian.net/wiki/spaces/SEEU/pages/6228738069/ENGINE-9471+Endicia+web+client+communication
14283
14283
  */
14284
14284
  this.requestStampsAccountUrls = (_a) => {
14285
- var _b = _a, { carrierId } = _b, rest = __objRest$u(_b, ["carrierId"]);
14285
+ var _b = _a, { carrierId } = _b, rest = __objRest$v(_b, ["carrierId"]);
14286
14286
  return this.client.put(
14287
14287
  `v1/connections/carriers/stamps_com/${carrierId}/request_account_url`,
14288
14288
  rest
@@ -16402,23 +16402,23 @@ class CustomPackagesAPI {
16402
16402
  }
16403
16403
  }
16404
16404
 
16405
- var __defProp$V = Object.defineProperty;
16406
- var __getOwnPropSymbols$13 = Object.getOwnPropertySymbols;
16407
- var __hasOwnProp$13 = Object.prototype.hasOwnProperty;
16408
- var __propIsEnum$13 = Object.prototype.propertyIsEnumerable;
16409
- var __defNormalProp$V = (obj, key, value) => key in obj ? __defProp$V(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
16410
- var __spreadValues$V = (a, b) => {
16405
+ var __defProp$W = Object.defineProperty;
16406
+ var __getOwnPropSymbols$14 = Object.getOwnPropertySymbols;
16407
+ var __hasOwnProp$14 = Object.prototype.hasOwnProperty;
16408
+ var __propIsEnum$14 = Object.prototype.propertyIsEnumerable;
16409
+ var __defNormalProp$W = (obj, key, value) => key in obj ? __defProp$W(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
16410
+ var __spreadValues$W = (a, b) => {
16411
16411
  for (var prop in b || (b = {}))
16412
- if (__hasOwnProp$13.call(b, prop))
16413
- __defNormalProp$V(a, prop, b[prop]);
16414
- if (__getOwnPropSymbols$13)
16415
- for (var prop of __getOwnPropSymbols$13(b)) {
16416
- if (__propIsEnum$13.call(b, prop))
16417
- __defNormalProp$V(a, prop, b[prop]);
16412
+ if (__hasOwnProp$14.call(b, prop))
16413
+ __defNormalProp$W(a, prop, b[prop]);
16414
+ if (__getOwnPropSymbols$14)
16415
+ for (var prop of __getOwnPropSymbols$14(b)) {
16416
+ if (__propIsEnum$14.call(b, prop))
16417
+ __defNormalProp$W(a, prop, b[prop]);
16418
16418
  }
16419
16419
  return a;
16420
16420
  };
16421
- var __async$1a = (__this, __arguments, generator) => {
16421
+ var __async$1d = (__this, __arguments, generator) => {
16422
16422
  return new Promise((resolve, reject) => {
16423
16423
  var fulfilled = (value) => {
16424
16424
  try {
@@ -16457,12 +16457,12 @@ class FundingSourcesAPI {
16457
16457
  * The `create` method creates a new funding source for a given user. This requires
16458
16458
  * payment information to be collected from the user.
16459
16459
  */
16460
- this.create = (createFundingSource) => __async$1a(this, null, function* () {
16460
+ this.create = (createFundingSource) => __async$1d(this, null, function* () {
16461
16461
  const endUserIpAddress = yield getEndUserIpAddress();
16462
16462
  if (!endUserIpAddress) {
16463
16463
  return Promise.reject([new CodedError("Unable to get IP address")]);
16464
16464
  }
16465
- return yield this.client.post("/v1/funding_sources", __spreadValues$V({
16465
+ return yield this.client.post("/v1/funding_sources", __spreadValues$W({
16466
16466
  endUserIpAddress
16467
16467
  }, createFundingSource));
16468
16468
  });
@@ -16471,7 +16471,7 @@ class FundingSourcesAPI {
16471
16471
  * user to update the billing address or payment information associated with the
16472
16472
  * funding source.
16473
16473
  */
16474
- this.update = (billingInfo, creditCardInfo, auctanePayInfo, fundingSourceId) => __async$1a(this, null, function* () {
16474
+ this.update = (billingInfo, creditCardInfo, auctanePayInfo, fundingSourceId) => __async$1d(this, null, function* () {
16475
16475
  const endUserIpAddress = yield getEndUserIpAddress();
16476
16476
  if (!endUserIpAddress) {
16477
16477
  return Promise.reject([new CodedError("Unable to get IP address")]);
@@ -16481,7 +16481,7 @@ class FundingSourcesAPI {
16481
16481
  {
16482
16482
  billingInfo,
16483
16483
  endUserIpAddress,
16484
- paymentMethod: __spreadValues$V({
16484
+ paymentMethod: __spreadValues$W({
16485
16485
  creditCardInfo
16486
16486
  }, auctanePayInfo)
16487
16487
  }
@@ -16491,19 +16491,19 @@ class FundingSourcesAPI {
16491
16491
  * The `registerCarrier` method registers a carrier account and associates
16492
16492
  * it with a given funding source.
16493
16493
  */
16494
- this.registerCarrier = (carrier) => __async$1a(this, null, function* () {
16494
+ this.registerCarrier = (carrier) => __async$1d(this, null, function* () {
16495
16495
  const endUserIpAddress = yield getEndUserIpAddress();
16496
16496
  if (!endUserIpAddress) {
16497
16497
  return Promise.reject([new CodedError("Unable to get IP address")]);
16498
16498
  }
16499
- return yield this.client.post("/v1/registration/funding_source", __spreadValues$V({
16499
+ return yield this.client.post("/v1/registration/funding_source", __spreadValues$W({
16500
16500
  endUserIpAddress
16501
16501
  }, carrier));
16502
16502
  });
16503
16503
  /**
16504
16504
  * The `addFunds` method allows you to add funds to a funding source.
16505
16505
  */
16506
- this.addFunds = (amount, fundingSourceId) => __async$1a(this, null, function* () {
16506
+ this.addFunds = (amount, fundingSourceId) => __async$1d(this, null, function* () {
16507
16507
  return yield this.client.put(
16508
16508
  `/v1/funding_sources/${fundingSourceId}/add_funds`,
16509
16509
  amount
@@ -16513,7 +16513,7 @@ class FundingSourcesAPI {
16513
16513
  * The `metadata` method returns seller-specific requirements for creating funding sources
16514
16514
  * and attaching carriers
16515
16515
  */
16516
- this.metadata = () => __async$1a(this, null, function* () {
16516
+ this.metadata = () => __async$1d(this, null, function* () {
16517
16517
  return yield this.client.get("/v1/funding_sources/metadata");
16518
16518
  });
16519
16519
  /**
@@ -16582,7 +16582,7 @@ class InsuranceAPI {
16582
16582
  }
16583
16583
  }
16584
16584
 
16585
- var __async$19 = (__this, __arguments, generator) => {
16585
+ var __async$1c = (__this, __arguments, generator) => {
16586
16586
  return new Promise((resolve, reject) => {
16587
16587
  var fulfilled = (value) => {
16588
16588
  try {
@@ -16614,13 +16614,13 @@ class InvoiceAddressAPI {
16614
16614
  /**
16615
16615
  * The `create` method creates a new invoice address for a given user.
16616
16616
  */
16617
- this.create = (invoiceAddress) => __async$19(this, null, function* () {
16617
+ this.create = (invoiceAddress) => __async$1c(this, null, function* () {
16618
16618
  return yield this.client.post("/v1/invoice_address", invoiceAddress);
16619
16619
  });
16620
16620
  /**
16621
16621
  * The `update` method updates a invoice address for a given user.
16622
16622
  */
16623
- this.update = (invoiceAddress) => __async$19(this, null, function* () {
16623
+ this.update = (invoiceAddress) => __async$1c(this, null, function* () {
16624
16624
  return yield this.client.put("/v1/invoice_address", invoiceAddress);
16625
16625
  });
16626
16626
  this.client = client;
@@ -16688,17 +16688,17 @@ class LabelsAPI {
16688
16688
  }
16689
16689
  }
16690
16690
 
16691
- var __getOwnPropSymbols$12 = Object.getOwnPropertySymbols;
16692
- var __hasOwnProp$12 = Object.prototype.hasOwnProperty;
16693
- var __propIsEnum$12 = Object.prototype.propertyIsEnumerable;
16694
- var __objRest$t = (source, exclude) => {
16691
+ var __getOwnPropSymbols$13 = Object.getOwnPropertySymbols;
16692
+ var __hasOwnProp$13 = Object.prototype.hasOwnProperty;
16693
+ var __propIsEnum$13 = Object.prototype.propertyIsEnumerable;
16694
+ var __objRest$u = (source, exclude) => {
16695
16695
  var target = {};
16696
16696
  for (var prop in source)
16697
- if (__hasOwnProp$12.call(source, prop) && exclude.indexOf(prop) < 0)
16697
+ if (__hasOwnProp$13.call(source, prop) && exclude.indexOf(prop) < 0)
16698
16698
  target[prop] = source[prop];
16699
- if (source != null && __getOwnPropSymbols$12)
16700
- for (var prop of __getOwnPropSymbols$12(source)) {
16701
- if (exclude.indexOf(prop) < 0 && __propIsEnum$12.call(source, prop))
16699
+ if (source != null && __getOwnPropSymbols$13)
16700
+ for (var prop of __getOwnPropSymbols$13(source)) {
16701
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$13.call(source, prop))
16702
16702
  target[prop] = source[prop];
16703
16703
  }
16704
16704
  return target;
@@ -16730,7 +16730,7 @@ class OrderSourcesAPI {
16730
16730
  * The `update` method will allow the user to update a connected Order Source
16731
16731
  */
16732
16732
  this.update = (_a) => {
16733
- var _b = _a, { orderSourceId } = _b, rest = __objRest$t(_b, ["orderSourceId"]);
16733
+ var _b = _a, { orderSourceId } = _b, rest = __objRest$u(_b, ["orderSourceId"]);
16734
16734
  return this.client.put(`/v-beta/order_sources/${orderSourceId}`, rest);
16735
16735
  };
16736
16736
  /**
@@ -16819,19 +16819,58 @@ class RateCardsAPI {
16819
16819
  }
16820
16820
  }
16821
16821
 
16822
- var __defProp$U = Object.defineProperty;
16823
- var __getOwnPropSymbols$11 = Object.getOwnPropertySymbols;
16824
- var __hasOwnProp$11 = Object.prototype.hasOwnProperty;
16825
- var __propIsEnum$11 = Object.prototype.propertyIsEnumerable;
16826
- var __defNormalProp$U = (obj, key, value) => key in obj ? __defProp$U(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
16827
- var __spreadValues$U = (a, b) => {
16822
+ class RateShoppersAPI {
16823
+ constructor(client) {
16824
+ this.client = client;
16825
+ /**
16826
+ * The `list` method retrieves a list of Rate Shoppers for a given user.
16827
+ */
16828
+ this.list = (params) => {
16829
+ return this.client.get("/v1/rate_shoppers", {
16830
+ params
16831
+ });
16832
+ };
16833
+ /**
16834
+ * The `get` method retrieves a Rate Shoppers for a given user by the Rate Shopper ID
16835
+ */
16836
+ this.get = (rateShopperId) => {
16837
+ return this.client.get(`/v1/rate_shoppers/${rateShopperId}`);
16838
+ };
16839
+ /**
16840
+ * The `create` method allows to create a new Rate Shopper for a given user
16841
+ */
16842
+ this.create = (request) => {
16843
+ return this.client.post("/v1/rate_shoppers", request);
16844
+ };
16845
+ /**
16846
+ * The `edit` method allows to update a Rate Shopper for a given user by the Rate Shopper ID
16847
+ */
16848
+ this.edit = (rateShopperId, request) => {
16849
+ return this.client.put(`/v1/rate_shoppers/${rateShopperId}`, request);
16850
+ };
16851
+ /**
16852
+ * The `delete` method allows to delete a Rate Shopper for a given user by the Rate Shopper ID
16853
+ */
16854
+ this.delete = (rateShopperId) => {
16855
+ return this.client.delete(`/v1/rate_shoppers/${rateShopperId}`);
16856
+ };
16857
+ this.client = client;
16858
+ }
16859
+ }
16860
+
16861
+ var __defProp$V = Object.defineProperty;
16862
+ var __getOwnPropSymbols$12 = Object.getOwnPropertySymbols;
16863
+ var __hasOwnProp$12 = Object.prototype.hasOwnProperty;
16864
+ var __propIsEnum$12 = Object.prototype.propertyIsEnumerable;
16865
+ var __defNormalProp$V = (obj, key, value) => key in obj ? __defProp$V(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
16866
+ var __spreadValues$V = (a, b) => {
16828
16867
  for (var prop in b || (b = {}))
16829
- if (__hasOwnProp$11.call(b, prop))
16830
- __defNormalProp$U(a, prop, b[prop]);
16831
- if (__getOwnPropSymbols$11)
16832
- for (var prop of __getOwnPropSymbols$11(b)) {
16833
- if (__propIsEnum$11.call(b, prop))
16834
- __defNormalProp$U(a, prop, b[prop]);
16868
+ if (__hasOwnProp$12.call(b, prop))
16869
+ __defNormalProp$V(a, prop, b[prop]);
16870
+ if (__getOwnPropSymbols$12)
16871
+ for (var prop of __getOwnPropSymbols$12(b)) {
16872
+ if (__propIsEnum$12.call(b, prop))
16873
+ __defNormalProp$V(a, prop, b[prop]);
16835
16874
  }
16836
16875
  return a;
16837
16876
  };
@@ -16853,7 +16892,7 @@ class RatesAPI {
16853
16892
  * method.
16854
16893
  */
16855
16894
  this.estimate = (params) => {
16856
- return this.client.post("/v1/rates/estimate", __spreadValues$U({}, params));
16895
+ return this.client.post("/v1/rates/estimate", __spreadValues$V({}, params));
16857
16896
  };
16858
16897
  this.client = client;
16859
16898
  }
@@ -16933,7 +16972,7 @@ class SalesOrdersAPI {
16933
16972
  }
16934
16973
  }
16935
16974
 
16936
- var __async$18 = (__this, __arguments, generator) => {
16975
+ var __async$1b = (__this, __arguments, generator) => {
16937
16976
  return new Promise((resolve, reject) => {
16938
16977
  var fulfilled = (value) => {
16939
16978
  try {
@@ -16991,7 +17030,7 @@ class SellersAPI {
16991
17030
  /**
16992
17031
  * Deletes an API Key
16993
17032
  */
16994
- this.deleteSellerApiKey = (_0) => __async$18(this, [_0], function* ({
17033
+ this.deleteSellerApiKey = (_0) => __async$1b(this, [_0], function* ({
16995
17034
  encryptedApiKey,
16996
17035
  sellerId,
16997
17036
  isSandbox
@@ -17037,19 +17076,19 @@ class SellersAPI {
17037
17076
  }
17038
17077
  }
17039
17078
 
17040
- var __defProp$T = Object.defineProperty;
17041
- var __getOwnPropSymbols$10 = Object.getOwnPropertySymbols;
17042
- var __hasOwnProp$10 = Object.prototype.hasOwnProperty;
17043
- var __propIsEnum$10 = Object.prototype.propertyIsEnumerable;
17044
- var __defNormalProp$T = (obj, key, value) => key in obj ? __defProp$T(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
17045
- var __spreadValues$T = (a, b) => {
17079
+ var __defProp$U = Object.defineProperty;
17080
+ var __getOwnPropSymbols$11 = Object.getOwnPropertySymbols;
17081
+ var __hasOwnProp$11 = Object.prototype.hasOwnProperty;
17082
+ var __propIsEnum$11 = Object.prototype.propertyIsEnumerable;
17083
+ var __defNormalProp$U = (obj, key, value) => key in obj ? __defProp$U(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
17084
+ var __spreadValues$U = (a, b) => {
17046
17085
  for (var prop in b || (b = {}))
17047
- if (__hasOwnProp$10.call(b, prop))
17048
- __defNormalProp$T(a, prop, b[prop]);
17049
- if (__getOwnPropSymbols$10)
17050
- for (var prop of __getOwnPropSymbols$10(b)) {
17051
- if (__propIsEnum$10.call(b, prop))
17052
- __defNormalProp$T(a, prop, b[prop]);
17086
+ if (__hasOwnProp$11.call(b, prop))
17087
+ __defNormalProp$U(a, prop, b[prop]);
17088
+ if (__getOwnPropSymbols$11)
17089
+ for (var prop of __getOwnPropSymbols$11(b)) {
17090
+ if (__propIsEnum$11.call(b, prop))
17091
+ __defNormalProp$U(a, prop, b[prop]);
17053
17092
  }
17054
17093
  return a;
17055
17094
  };
@@ -17061,7 +17100,7 @@ class ServicePointsAPI {
17061
17100
  * Either an address, coordinates, or an address query
17062
17101
  */
17063
17102
  this.list = (options) => {
17064
- return this.client.post("/v1/service_points/list", __spreadValues$T({}, options));
17103
+ return this.client.post("/v1/service_points/list", __spreadValues$U({}, options));
17065
17104
  };
17066
17105
  /**
17067
17106
  * Get a specific service point by its carrier code, country code, and id
@@ -17079,7 +17118,7 @@ class ServicePointsAPI {
17079
17118
  }
17080
17119
  }
17081
17120
 
17082
- var __async$17 = (__this, __arguments, generator) => {
17121
+ var __async$1a = (__this, __arguments, generator) => {
17083
17122
  return new Promise((resolve, reject) => {
17084
17123
  var fulfilled = (value) => {
17085
17124
  try {
@@ -17128,7 +17167,7 @@ class ShipmentsAPI {
17128
17167
  * The `create` method allows for creating shipments based on a list of shipment
17129
17168
  * items passed into this method.
17130
17169
  */
17131
- this.create = (...shipments) => __async$17(this, null, function* () {
17170
+ this.create = (...shipments) => __async$1a(this, null, function* () {
17132
17171
  return this.client.post("/v1/shipments", {
17133
17172
  shipments
17134
17173
  });
@@ -34545,38 +34584,38 @@ class WebhooksAPI {
34545
34584
  }
34546
34585
  }
34547
34586
 
34548
- var __defProp$S = Object.defineProperty;
34549
- var __defProps$P = Object.defineProperties;
34550
- var __getOwnPropDescs$P = Object.getOwnPropertyDescriptors;
34551
- var __getOwnPropSymbols$$ = Object.getOwnPropertySymbols;
34552
- var __hasOwnProp$$ = Object.prototype.hasOwnProperty;
34553
- var __propIsEnum$$ = Object.prototype.propertyIsEnumerable;
34554
- var __defNormalProp$S = (obj, key, value) => key in obj ? __defProp$S(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
34555
- var __spreadValues$S = (a, b) => {
34587
+ var __defProp$T = Object.defineProperty;
34588
+ var __defProps$Q = Object.defineProperties;
34589
+ var __getOwnPropDescs$Q = Object.getOwnPropertyDescriptors;
34590
+ var __getOwnPropSymbols$10 = Object.getOwnPropertySymbols;
34591
+ var __hasOwnProp$10 = Object.prototype.hasOwnProperty;
34592
+ var __propIsEnum$10 = Object.prototype.propertyIsEnumerable;
34593
+ var __defNormalProp$T = (obj, key, value) => key in obj ? __defProp$T(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
34594
+ var __spreadValues$T = (a, b) => {
34556
34595
  for (var prop in b || (b = {}))
34557
- if (__hasOwnProp$$.call(b, prop))
34558
- __defNormalProp$S(a, prop, b[prop]);
34559
- if (__getOwnPropSymbols$$)
34560
- for (var prop of __getOwnPropSymbols$$(b)) {
34561
- if (__propIsEnum$$.call(b, prop))
34562
- __defNormalProp$S(a, prop, b[prop]);
34596
+ if (__hasOwnProp$10.call(b, prop))
34597
+ __defNormalProp$T(a, prop, b[prop]);
34598
+ if (__getOwnPropSymbols$10)
34599
+ for (var prop of __getOwnPropSymbols$10(b)) {
34600
+ if (__propIsEnum$10.call(b, prop))
34601
+ __defNormalProp$T(a, prop, b[prop]);
34563
34602
  }
34564
34603
  return a;
34565
34604
  };
34566
- var __spreadProps$P = (a, b) => __defProps$P(a, __getOwnPropDescs$P(b));
34567
- var __objRest$s = (source, exclude) => {
34605
+ var __spreadProps$Q = (a, b) => __defProps$Q(a, __getOwnPropDescs$Q(b));
34606
+ var __objRest$t = (source, exclude) => {
34568
34607
  var target = {};
34569
34608
  for (var prop in source)
34570
- if (__hasOwnProp$$.call(source, prop) && exclude.indexOf(prop) < 0)
34609
+ if (__hasOwnProp$10.call(source, prop) && exclude.indexOf(prop) < 0)
34571
34610
  target[prop] = source[prop];
34572
- if (source != null && __getOwnPropSymbols$$)
34573
- for (var prop of __getOwnPropSymbols$$(source)) {
34574
- if (exclude.indexOf(prop) < 0 && __propIsEnum$$.call(source, prop))
34611
+ if (source != null && __getOwnPropSymbols$10)
34612
+ for (var prop of __getOwnPropSymbols$10(source)) {
34613
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$10.call(source, prop))
34575
34614
  target[prop] = source[prop];
34576
34615
  }
34577
34616
  return target;
34578
34617
  };
34579
- var __async$16 = (__this, __arguments, generator) => {
34618
+ var __async$19 = (__this, __arguments, generator) => {
34580
34619
  return new Promise((resolve, reject) => {
34581
34620
  var fulfilled = (value) => {
34582
34621
  try {
@@ -34599,7 +34638,7 @@ var __async$16 = (__this, __arguments, generator) => {
34599
34638
  const logger$1 = E({
34600
34639
  level: process.env.NODE_ENV === "production" ? "fatal" : "info",
34601
34640
  name: "shipengine-api",
34602
- serializers: __spreadProps$P(__spreadValues$S({}, k), {
34641
+ serializers: __spreadProps$Q(__spreadValues$T({}, k), {
34603
34642
  req: (req) => ({
34604
34643
  headers: req.headers,
34605
34644
  method: req.method,
@@ -34624,7 +34663,7 @@ class ShipEngineAPI {
34624
34663
  this.getSandboxToken = getSandboxToken;
34625
34664
  const client = axios.create({
34626
34665
  baseURL,
34627
- headers: __spreadProps$P(__spreadValues$S({}, headers), {
34666
+ headers: __spreadProps$Q(__spreadValues$T({}, headers), {
34628
34667
  "Content-Type": "application/json"
34629
34668
  }),
34630
34669
  paramsSerializer: (params) => lib.stringify(decamelizeKeys(params), { arrayFormat: "brackets" }),
@@ -34634,7 +34673,7 @@ class ShipEngineAPI {
34634
34673
  return decamelizeKeys(data);
34635
34674
  else {
34636
34675
  if (data && data.__skipDecamelize) {
34637
- const _a = data, cleanData = __objRest$s(_a, ["__skipDecamelize"]);
34676
+ const _a = data, cleanData = __objRest$t(_a, ["__skipDecamelize"]);
34638
34677
  return cleanData;
34639
34678
  }
34640
34679
  return data;
@@ -34664,7 +34703,7 @@ class ShipEngineAPI {
34664
34703
  });
34665
34704
  client.defaults.headers.common["Authorization"] = `Bearer ${token}`;
34666
34705
  client.interceptors.request.use(
34667
- (config) => __async$16(this, null, function* () {
34706
+ (config) => __async$19(this, null, function* () {
34668
34707
  if (config.isSandbox) {
34669
34708
  if (!this.sandboxToken) {
34670
34709
  this.sandboxToken = yield getSandboxToken == null ? void 0 : getSandboxToken();
@@ -34693,7 +34732,7 @@ class ShipEngineAPI {
34693
34732
  }
34694
34733
  return res;
34695
34734
  },
34696
- (err) => __async$16(this, null, function* () {
34735
+ (err) => __async$19(this, null, function* () {
34697
34736
  var _a, _b, _c, _d, _e;
34698
34737
  if (debug) {
34699
34738
  logger$1.error(
@@ -34742,7 +34781,7 @@ class ShipEngineAPI {
34742
34781
  * that token (also known as Seller ID)
34743
34782
  */
34744
34783
  getTenant(isSandbox) {
34745
- return __async$16(this, null, function* () {
34784
+ return __async$19(this, null, function* () {
34746
34785
  var _a;
34747
34786
  if (!isSandbox) {
34748
34787
  return this.getTenantFromToken(this.token);
@@ -34962,6 +35001,15 @@ class ShipEngineAPI {
34962
35001
  get shippingRules() {
34963
35002
  return new ShippingRulesAPI(this.client);
34964
35003
  }
35004
+ /**
35005
+ * The `rateShoppers` method provides access to the Rate Shoppers endpoints in ShipEngine
35006
+ * API.
35007
+ *
35008
+ * @see {@link RateShoppersAPI | The Rate Shoppers API module}
35009
+ */
35010
+ get rateShoppers() {
35011
+ return new RateShoppersAPI(this.client);
35012
+ }
34965
35013
  /**
34966
35014
  * The `webhooks` method provides access to the Webhooks endpoints in ShipEngine
34967
35015
  * API.
@@ -35068,25 +35116,25 @@ const delay = (ms) => new Promise((resolve) => {
35068
35116
 
35069
35117
  const onError = (_errors) => _default();
35070
35118
 
35071
- var __defProp$R = Object.defineProperty;
35072
- var __defProps$O = Object.defineProperties;
35073
- var __getOwnPropDescs$O = Object.getOwnPropertyDescriptors;
35074
- var __getOwnPropSymbols$_ = Object.getOwnPropertySymbols;
35075
- var __hasOwnProp$_ = Object.prototype.hasOwnProperty;
35076
- var __propIsEnum$_ = Object.prototype.propertyIsEnumerable;
35077
- var __defNormalProp$R = (obj, key, value) => key in obj ? __defProp$R(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35078
- var __spreadValues$R = (a, b) => {
35119
+ var __defProp$S = Object.defineProperty;
35120
+ var __defProps$P = Object.defineProperties;
35121
+ var __getOwnPropDescs$P = Object.getOwnPropertyDescriptors;
35122
+ var __getOwnPropSymbols$$ = Object.getOwnPropertySymbols;
35123
+ var __hasOwnProp$$ = Object.prototype.hasOwnProperty;
35124
+ var __propIsEnum$$ = Object.prototype.propertyIsEnumerable;
35125
+ var __defNormalProp$S = (obj, key, value) => key in obj ? __defProp$S(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35126
+ var __spreadValues$S = (a, b) => {
35079
35127
  for (var prop in b || (b = {}))
35080
- if (__hasOwnProp$_.call(b, prop))
35081
- __defNormalProp$R(a, prop, b[prop]);
35082
- if (__getOwnPropSymbols$_)
35083
- for (var prop of __getOwnPropSymbols$_(b)) {
35084
- if (__propIsEnum$_.call(b, prop))
35085
- __defNormalProp$R(a, prop, b[prop]);
35128
+ if (__hasOwnProp$$.call(b, prop))
35129
+ __defNormalProp$S(a, prop, b[prop]);
35130
+ if (__getOwnPropSymbols$$)
35131
+ for (var prop of __getOwnPropSymbols$$(b)) {
35132
+ if (__propIsEnum$$.call(b, prop))
35133
+ __defNormalProp$S(a, prop, b[prop]);
35086
35134
  }
35087
35135
  return a;
35088
35136
  };
35089
- var __spreadProps$O = (a, b) => __defProps$O(a, __getOwnPropDescs$O(b));
35137
+ var __spreadProps$P = (a, b) => __defProps$P(a, __getOwnPropDescs$P(b));
35090
35138
  const streams = [];
35091
35139
  if (process.env.NODE_ENV === "production") {
35092
35140
  streams.push({
@@ -35095,7 +35143,7 @@ if (process.env.NODE_ENV === "production") {
35095
35143
  }
35096
35144
  const logger = E({
35097
35145
  name: "shipengine",
35098
- serializers: __spreadProps$O(__spreadValues$R({}, k), {
35146
+ serializers: __spreadProps$P(__spreadValues$S({}, k), {
35099
35147
  req: (req) => ({
35100
35148
  headers: req.headers,
35101
35149
  method: req.method,
@@ -35120,7 +35168,7 @@ const retryUntil = (callbackFn, retries = 10, timeoutBetweenAttempts = 1e3) => P
35120
35168
  throw error;
35121
35169
  });
35122
35170
 
35123
- var __async$15 = (__this, __arguments, generator) => {
35171
+ var __async$18 = (__this, __arguments, generator) => {
35124
35172
  return new Promise((resolve, reject) => {
35125
35173
  var fulfilled = (value) => {
35126
35174
  try {
@@ -35143,7 +35191,7 @@ var __async$15 = (__this, __arguments, generator) => {
35143
35191
  const useCreateAccountImage = () => {
35144
35192
  const { client } = useShipEngine();
35145
35193
  return reactQuery.useMutation({
35146
- mutationFn: (data) => __async$15(void 0, null, function* () {
35194
+ mutationFn: (data) => __async$18(void 0, null, function* () {
35147
35195
  const result = yield client.accountSettings.createImage(data);
35148
35196
  return result.data;
35149
35197
  }),
@@ -35152,7 +35200,7 @@ const useCreateAccountImage = () => {
35152
35200
  });
35153
35201
  };
35154
35202
 
35155
- var __async$14 = (__this, __arguments, generator) => {
35203
+ var __async$17 = (__this, __arguments, generator) => {
35156
35204
  return new Promise((resolve, reject) => {
35157
35205
  var fulfilled = (value) => {
35158
35206
  try {
@@ -35175,7 +35223,7 @@ var __async$14 = (__this, __arguments, generator) => {
35175
35223
  const useDeleteAccountImage = () => {
35176
35224
  const { client } = useShipEngine();
35177
35225
  return reactQuery.useMutation({
35178
- mutationFn: (labelImageId) => __async$14(void 0, null, function* () {
35226
+ mutationFn: (labelImageId) => __async$17(void 0, null, function* () {
35179
35227
  const result = yield client.accountSettings.deleteImage(labelImageId);
35180
35228
  return result.data;
35181
35229
  }),
@@ -35204,7 +35252,7 @@ const useGetAccountSettings = () => {
35204
35252
  });
35205
35253
  };
35206
35254
 
35207
- var __async$13 = (__this, __arguments, generator) => {
35255
+ var __async$16 = (__this, __arguments, generator) => {
35208
35256
  return new Promise((resolve, reject) => {
35209
35257
  var fulfilled = (value) => {
35210
35258
  try {
@@ -35227,7 +35275,7 @@ var __async$13 = (__this, __arguments, generator) => {
35227
35275
  const useUpdateAccountImage = () => {
35228
35276
  const { client } = useShipEngine();
35229
35277
  return reactQuery.useMutation({
35230
- mutationFn: (data) => __async$13(void 0, null, function* () {
35278
+ mutationFn: (data) => __async$16(void 0, null, function* () {
35231
35279
  const result = yield client.accountSettings.updateImage(data);
35232
35280
  return result.data;
35233
35281
  }),
@@ -35236,7 +35284,7 @@ const useUpdateAccountImage = () => {
35236
35284
  });
35237
35285
  };
35238
35286
 
35239
- var __async$12 = (__this, __arguments, generator) => {
35287
+ var __async$15 = (__this, __arguments, generator) => {
35240
35288
  return new Promise((resolve, reject) => {
35241
35289
  var fulfilled = (value) => {
35242
35290
  try {
@@ -35259,7 +35307,7 @@ var __async$12 = (__this, __arguments, generator) => {
35259
35307
  const useUpdateAccountSettings = () => {
35260
35308
  const { client } = useShipEngine();
35261
35309
  return reactQuery.useMutation({
35262
- mutationFn: (settings) => __async$12(void 0, null, function* () {
35310
+ mutationFn: (settings) => __async$15(void 0, null, function* () {
35263
35311
  const result = yield client.accountSettings.update(settings);
35264
35312
  return result.data;
35265
35313
  }),
@@ -35268,28 +35316,28 @@ const useUpdateAccountSettings = () => {
35268
35316
  });
35269
35317
  };
35270
35318
 
35271
- var __defProp$Q = Object.defineProperty;
35272
- var __defProps$N = Object.defineProperties;
35273
- var __getOwnPropDescs$N = Object.getOwnPropertyDescriptors;
35274
- var __getOwnPropSymbols$Z = Object.getOwnPropertySymbols;
35275
- var __hasOwnProp$Z = Object.prototype.hasOwnProperty;
35276
- var __propIsEnum$Z = Object.prototype.propertyIsEnumerable;
35277
- var __defNormalProp$Q = (obj, key, value) => key in obj ? __defProp$Q(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35278
- var __spreadValues$Q = (a, b) => {
35279
- for (var prop in b || (b = {}))
35280
- if (__hasOwnProp$Z.call(b, prop))
35281
- __defNormalProp$Q(a, prop, b[prop]);
35282
- if (__getOwnPropSymbols$Z)
35283
- for (var prop of __getOwnPropSymbols$Z(b)) {
35284
- if (__propIsEnum$Z.call(b, prop))
35285
- __defNormalProp$Q(a, prop, b[prop]);
35319
+ var __defProp$R = Object.defineProperty;
35320
+ var __defProps$O = Object.defineProperties;
35321
+ var __getOwnPropDescs$O = Object.getOwnPropertyDescriptors;
35322
+ var __getOwnPropSymbols$_ = Object.getOwnPropertySymbols;
35323
+ var __hasOwnProp$_ = Object.prototype.hasOwnProperty;
35324
+ var __propIsEnum$_ = Object.prototype.propertyIsEnumerable;
35325
+ var __defNormalProp$R = (obj, key, value) => key in obj ? __defProp$R(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35326
+ var __spreadValues$R = (a, b) => {
35327
+ for (var prop in b || (b = {}))
35328
+ if (__hasOwnProp$_.call(b, prop))
35329
+ __defNormalProp$R(a, prop, b[prop]);
35330
+ if (__getOwnPropSymbols$_)
35331
+ for (var prop of __getOwnPropSymbols$_(b)) {
35332
+ if (__propIsEnum$_.call(b, prop))
35333
+ __defNormalProp$R(a, prop, b[prop]);
35286
35334
  }
35287
35335
  return a;
35288
35336
  };
35289
- var __spreadProps$N = (a, b) => __defProps$N(a, __getOwnPropDescs$N(b));
35337
+ var __spreadProps$O = (a, b) => __defProps$O(a, __getOwnPropDescs$O(b));
35290
35338
  const useListAccountAddons = (params) => {
35291
35339
  const { client } = useShipEngine();
35292
- return reactQuery.useQuery(__spreadProps$N(__spreadValues$Q({}, params), {
35340
+ return reactQuery.useQuery(__spreadProps$O(__spreadValues$R({}, params), {
35293
35341
  onError,
35294
35342
  queryFn: () => client.accountAddons.list(),
35295
35343
  queryKey: ["useListAccountAddons"],
@@ -35297,6 +35345,57 @@ const useListAccountAddons = (params) => {
35297
35345
  }));
35298
35346
  };
35299
35347
 
35348
+ var __defProp$Q = Object.defineProperty;
35349
+ var __defProps$N = Object.defineProperties;
35350
+ var __getOwnPropDescs$N = Object.getOwnPropertyDescriptors;
35351
+ var __getOwnPropSymbols$Z = Object.getOwnPropertySymbols;
35352
+ var __hasOwnProp$Z = Object.prototype.hasOwnProperty;
35353
+ var __propIsEnum$Z = Object.prototype.propertyIsEnumerable;
35354
+ var __defNormalProp$Q = (obj, key, value) => key in obj ? __defProp$Q(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35355
+ var __spreadValues$Q = (a, b) => {
35356
+ for (var prop in b || (b = {}))
35357
+ if (__hasOwnProp$Z.call(b, prop))
35358
+ __defNormalProp$Q(a, prop, b[prop]);
35359
+ if (__getOwnPropSymbols$Z)
35360
+ for (var prop of __getOwnPropSymbols$Z(b)) {
35361
+ if (__propIsEnum$Z.call(b, prop))
35362
+ __defNormalProp$Q(a, prop, b[prop]);
35363
+ }
35364
+ return a;
35365
+ };
35366
+ var __spreadProps$N = (a, b) => __defProps$N(a, __getOwnPropDescs$N(b));
35367
+ var __async$14 = (__this, __arguments, generator) => {
35368
+ return new Promise((resolve, reject) => {
35369
+ var fulfilled = (value) => {
35370
+ try {
35371
+ step(generator.next(value));
35372
+ } catch (e) {
35373
+ reject(e);
35374
+ }
35375
+ };
35376
+ var rejected = (value) => {
35377
+ try {
35378
+ step(generator.throw(value));
35379
+ } catch (e) {
35380
+ reject(e);
35381
+ }
35382
+ };
35383
+ var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
35384
+ step((generator = generator.apply(__this, __arguments)).next());
35385
+ });
35386
+ };
35387
+ const useEnableAccountAddon = (params) => {
35388
+ const { client } = useShipEngine();
35389
+ return reactQuery.useMutation(__spreadProps$N(__spreadValues$Q({}, params), {
35390
+ mutationFn: (addonType) => __async$14(void 0, null, function* () {
35391
+ const result = yield client.accountAddons.enable(addonType);
35392
+ return result.data;
35393
+ }),
35394
+ mutationKey: ["useEnableAccountAddon"],
35395
+ onError
35396
+ }));
35397
+ };
35398
+
35300
35399
  var __defProp$P = Object.defineProperty;
35301
35400
  var __defProps$M = Object.defineProperties;
35302
35401
  var __getOwnPropDescs$M = Object.getOwnPropertyDescriptors;
@@ -35316,7 +35415,7 @@ var __spreadValues$P = (a, b) => {
35316
35415
  return a;
35317
35416
  };
35318
35417
  var __spreadProps$M = (a, b) => __defProps$M(a, __getOwnPropDescs$M(b));
35319
- var __async$11 = (__this, __arguments, generator) => {
35418
+ var __async$13 = (__this, __arguments, generator) => {
35320
35419
  return new Promise((resolve, reject) => {
35321
35420
  var fulfilled = (value) => {
35322
35421
  try {
@@ -35336,14 +35435,14 @@ var __async$11 = (__this, __arguments, generator) => {
35336
35435
  step((generator = generator.apply(__this, __arguments)).next());
35337
35436
  });
35338
35437
  };
35339
- const useEnableAccountAddon = (params) => {
35438
+ const useDisableAccountAddon = (params) => {
35340
35439
  const { client } = useShipEngine();
35341
35440
  return reactQuery.useMutation(__spreadProps$M(__spreadValues$P({}, params), {
35342
- mutationFn: (addonType) => __async$11(void 0, null, function* () {
35343
- const result = yield client.accountAddons.enable(addonType);
35441
+ mutationFn: (addonType) => __async$13(void 0, null, function* () {
35442
+ const result = yield client.accountAddons.disable(addonType);
35344
35443
  return result.data;
35345
35444
  }),
35346
- mutationKey: ["useEnableAccountAddon"],
35445
+ mutationKey: ["useDisableAccountAddon"],
35347
35446
  onError
35348
35447
  }));
35349
35448
  };
@@ -35367,7 +35466,17 @@ var __spreadValues$O = (a, b) => {
35367
35466
  return a;
35368
35467
  };
35369
35468
  var __spreadProps$L = (a, b) => __defProps$L(a, __getOwnPropDescs$L(b));
35370
- var __async$10 = (__this, __arguments, generator) => {
35469
+ const useListAccountFeatures = (params) => {
35470
+ const { client } = useShipEngine();
35471
+ return reactQuery.useQuery(__spreadProps$L(__spreadValues$O({}, params), {
35472
+ onError,
35473
+ queryFn: () => client.accountFeatures.list(),
35474
+ queryKey: ["useListAccountFeatures"],
35475
+ select: (result) => result.data.features
35476
+ }));
35477
+ };
35478
+
35479
+ var __async$12 = (__this, __arguments, generator) => {
35371
35480
  return new Promise((resolve, reject) => {
35372
35481
  var fulfilled = (value) => {
35373
35482
  try {
@@ -35387,16 +35496,16 @@ var __async$10 = (__this, __arguments, generator) => {
35387
35496
  step((generator = generator.apply(__this, __arguments)).next());
35388
35497
  });
35389
35498
  };
35390
- const useDisableAccountAddon = (params) => {
35499
+ const useRequestAccountFeature = () => {
35391
35500
  const { client } = useShipEngine();
35392
- return reactQuery.useMutation(__spreadProps$L(__spreadValues$O({}, params), {
35393
- mutationFn: (addonType) => __async$10(void 0, null, function* () {
35394
- const result = yield client.accountAddons.disable(addonType);
35501
+ return reactQuery.useMutation({
35502
+ mutationFn: (request) => __async$12(void 0, null, function* () {
35503
+ const result = yield client.accountFeatures.request(request);
35395
35504
  return result.data;
35396
35505
  }),
35397
- mutationKey: ["useDisableAccountAddon"],
35506
+ mutationKey: ["useRequestAccountFeature"],
35398
35507
  onError
35399
- }));
35508
+ });
35400
35509
  };
35401
35510
 
35402
35511
  var __defProp$N = Object.defineProperty;
@@ -35418,17 +35527,7 @@ var __spreadValues$N = (a, b) => {
35418
35527
  return a;
35419
35528
  };
35420
35529
  var __spreadProps$K = (a, b) => __defProps$K(a, __getOwnPropDescs$K(b));
35421
- const useListAccountFeatures = (params) => {
35422
- const { client } = useShipEngine();
35423
- return reactQuery.useQuery(__spreadProps$K(__spreadValues$N({}, params), {
35424
- onError,
35425
- queryFn: () => client.accountFeatures.list(),
35426
- queryKey: ["useListAccountFeatures"],
35427
- select: (result) => result.data.features
35428
- }));
35429
- };
35430
-
35431
- var __async$$ = (__this, __arguments, generator) => {
35530
+ var __async$11 = (__this, __arguments, generator) => {
35432
35531
  return new Promise((resolve, reject) => {
35433
35532
  var fulfilled = (value) => {
35434
35533
  try {
@@ -35448,16 +35547,15 @@ var __async$$ = (__this, __arguments, generator) => {
35448
35547
  step((generator = generator.apply(__this, __arguments)).next());
35449
35548
  });
35450
35549
  };
35451
- const useRequestAccountFeature = () => {
35550
+ const useDisableRefundAssist = (params) => {
35452
35551
  const { client } = useShipEngine();
35453
- return reactQuery.useMutation({
35454
- mutationFn: (request) => __async$$(void 0, null, function* () {
35455
- const result = yield client.accountFeatures.request(request);
35456
- return result.data;
35552
+ return reactQuery.useMutation(__spreadProps$K(__spreadValues$N({}, params), {
35553
+ mutationFn: () => __async$11(void 0, null, function* () {
35554
+ yield client.accountRefundAssist.disable();
35457
35555
  }),
35458
- mutationKey: ["useRequestAccountFeature"],
35556
+ mutationKey: ["useDisableRefundAssist"],
35459
35557
  onError
35460
- });
35558
+ }));
35461
35559
  };
35462
35560
 
35463
35561
  var __defProp$M = Object.defineProperty;
@@ -35479,7 +35577,7 @@ var __spreadValues$M = (a, b) => {
35479
35577
  return a;
35480
35578
  };
35481
35579
  var __spreadProps$J = (a, b) => __defProps$J(a, __getOwnPropDescs$J(b));
35482
- var __async$_ = (__this, __arguments, generator) => {
35580
+ var __async$10 = (__this, __arguments, generator) => {
35483
35581
  return new Promise((resolve, reject) => {
35484
35582
  var fulfilled = (value) => {
35485
35583
  try {
@@ -35499,13 +35597,13 @@ var __async$_ = (__this, __arguments, generator) => {
35499
35597
  step((generator = generator.apply(__this, __arguments)).next());
35500
35598
  });
35501
35599
  };
35502
- const useDisableRefundAssist = (params) => {
35600
+ const useEnableRefundAssist = (params) => {
35503
35601
  const { client } = useShipEngine();
35504
35602
  return reactQuery.useMutation(__spreadProps$J(__spreadValues$M({}, params), {
35505
- mutationFn: () => __async$_(void 0, null, function* () {
35506
- yield client.accountRefundAssist.disable();
35603
+ mutationFn: () => __async$10(void 0, null, function* () {
35604
+ yield client.accountRefundAssist.enable();
35507
35605
  }),
35508
- mutationKey: ["useDisableRefundAssist"],
35606
+ mutationKey: ["useEnableRefundAssist"],
35509
35607
  onError
35510
35608
  }));
35511
35609
  };
@@ -35529,59 +35627,9 @@ var __spreadValues$L = (a, b) => {
35529
35627
  return a;
35530
35628
  };
35531
35629
  var __spreadProps$I = (a, b) => __defProps$I(a, __getOwnPropDescs$I(b));
35532
- var __async$Z = (__this, __arguments, generator) => {
35533
- return new Promise((resolve, reject) => {
35534
- var fulfilled = (value) => {
35535
- try {
35536
- step(generator.next(value));
35537
- } catch (e) {
35538
- reject(e);
35539
- }
35540
- };
35541
- var rejected = (value) => {
35542
- try {
35543
- step(generator.throw(value));
35544
- } catch (e) {
35545
- reject(e);
35546
- }
35547
- };
35548
- var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
35549
- step((generator = generator.apply(__this, __arguments)).next());
35550
- });
35551
- };
35552
- const useEnableRefundAssist = (params) => {
35553
- const { client } = useShipEngine();
35554
- return reactQuery.useMutation(__spreadProps$I(__spreadValues$L({}, params), {
35555
- mutationFn: () => __async$Z(void 0, null, function* () {
35556
- yield client.accountRefundAssist.enable();
35557
- }),
35558
- mutationKey: ["useEnableRefundAssist"],
35559
- onError
35560
- }));
35561
- };
35562
-
35563
- var __defProp$K = Object.defineProperty;
35564
- var __defProps$H = Object.defineProperties;
35565
- var __getOwnPropDescs$H = Object.getOwnPropertyDescriptors;
35566
- var __getOwnPropSymbols$T = Object.getOwnPropertySymbols;
35567
- var __hasOwnProp$T = Object.prototype.hasOwnProperty;
35568
- var __propIsEnum$T = Object.prototype.propertyIsEnumerable;
35569
- var __defNormalProp$K = (obj, key, value) => key in obj ? __defProp$K(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35570
- var __spreadValues$K = (a, b) => {
35571
- for (var prop in b || (b = {}))
35572
- if (__hasOwnProp$T.call(b, prop))
35573
- __defNormalProp$K(a, prop, b[prop]);
35574
- if (__getOwnPropSymbols$T)
35575
- for (var prop of __getOwnPropSymbols$T(b)) {
35576
- if (__propIsEnum$T.call(b, prop))
35577
- __defNormalProp$K(a, prop, b[prop]);
35578
- }
35579
- return a;
35580
- };
35581
- var __spreadProps$H = (a, b) => __defProps$H(a, __getOwnPropDescs$H(b));
35582
35630
  const useGetRefundAssist = (params) => {
35583
35631
  const { client } = useShipEngine();
35584
- return reactQuery.useQuery(__spreadProps$H(__spreadValues$K({}, params), {
35632
+ return reactQuery.useQuery(__spreadProps$I(__spreadValues$L({}, params), {
35585
35633
  onError,
35586
35634
  queryFn: () => client.accountRefundAssist.get(),
35587
35635
  queryKey: ["useGetRefundAssist"],
@@ -35589,7 +35637,7 @@ const useGetRefundAssist = (params) => {
35589
35637
  }));
35590
35638
  };
35591
35639
 
35592
- var __async$Y = (__this, __arguments, generator) => {
35640
+ var __async$$ = (__this, __arguments, generator) => {
35593
35641
  return new Promise((resolve, reject) => {
35594
35642
  var fulfilled = (value) => {
35595
35643
  try {
@@ -35612,7 +35660,7 @@ var __async$Y = (__this, __arguments, generator) => {
35612
35660
  const useParseAddress = () => {
35613
35661
  const { client } = useShipEngine();
35614
35662
  return reactQuery.useMutation({
35615
- mutationFn: (_0) => __async$Y(void 0, [_0], function* ({ address, text }) {
35663
+ mutationFn: (_0) => __async$$(void 0, [_0], function* ({ address, text }) {
35616
35664
  const result = yield client.addresses.parse(text, address);
35617
35665
  return result.data;
35618
35666
  }),
@@ -35621,7 +35669,7 @@ const useParseAddress = () => {
35621
35669
  });
35622
35670
  };
35623
35671
 
35624
- var __async$X = (__this, __arguments, generator) => {
35672
+ var __async$_ = (__this, __arguments, generator) => {
35625
35673
  return new Promise((resolve, reject) => {
35626
35674
  var fulfilled = (value) => {
35627
35675
  try {
@@ -35644,7 +35692,7 @@ var __async$X = (__this, __arguments, generator) => {
35644
35692
  const useValidateAddresses = () => {
35645
35693
  const { client } = useShipEngine();
35646
35694
  return reactQuery.useMutation({
35647
- mutationFn: (addresses) => __async$X(void 0, null, function* () {
35695
+ mutationFn: (addresses) => __async$_(void 0, null, function* () {
35648
35696
  const result = yield client.addresses.validate(addresses);
35649
35697
  return result.data;
35650
35698
  }),
@@ -35653,26 +35701,26 @@ const useValidateAddresses = () => {
35653
35701
  });
35654
35702
  };
35655
35703
 
35656
- var __defProp$J = Object.defineProperty;
35657
- var __defProps$G = Object.defineProperties;
35658
- var __getOwnPropDescs$G = Object.getOwnPropertyDescriptors;
35659
- var __getOwnPropSymbols$S = Object.getOwnPropertySymbols;
35660
- var __hasOwnProp$S = Object.prototype.hasOwnProperty;
35661
- var __propIsEnum$S = Object.prototype.propertyIsEnumerable;
35662
- var __defNormalProp$J = (obj, key, value) => key in obj ? __defProp$J(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35663
- var __spreadValues$J = (a, b) => {
35704
+ var __defProp$K = Object.defineProperty;
35705
+ var __defProps$H = Object.defineProperties;
35706
+ var __getOwnPropDescs$H = Object.getOwnPropertyDescriptors;
35707
+ var __getOwnPropSymbols$T = Object.getOwnPropertySymbols;
35708
+ var __hasOwnProp$T = Object.prototype.hasOwnProperty;
35709
+ var __propIsEnum$T = Object.prototype.propertyIsEnumerable;
35710
+ var __defNormalProp$K = (obj, key, value) => key in obj ? __defProp$K(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35711
+ var __spreadValues$K = (a, b) => {
35664
35712
  for (var prop in b || (b = {}))
35665
- if (__hasOwnProp$S.call(b, prop))
35666
- __defNormalProp$J(a, prop, b[prop]);
35667
- if (__getOwnPropSymbols$S)
35668
- for (var prop of __getOwnPropSymbols$S(b)) {
35669
- if (__propIsEnum$S.call(b, prop))
35670
- __defNormalProp$J(a, prop, b[prop]);
35713
+ if (__hasOwnProp$T.call(b, prop))
35714
+ __defNormalProp$K(a, prop, b[prop]);
35715
+ if (__getOwnPropSymbols$T)
35716
+ for (var prop of __getOwnPropSymbols$T(b)) {
35717
+ if (__propIsEnum$T.call(b, prop))
35718
+ __defNormalProp$K(a, prop, b[prop]);
35671
35719
  }
35672
35720
  return a;
35673
35721
  };
35674
- var __spreadProps$G = (a, b) => __defProps$G(a, __getOwnPropDescs$G(b));
35675
- var __async$W = (__this, __arguments, generator) => {
35722
+ var __spreadProps$H = (a, b) => __defProps$H(a, __getOwnPropDescs$H(b));
35723
+ var __async$Z = (__this, __arguments, generator) => {
35676
35724
  return new Promise((resolve, reject) => {
35677
35725
  var fulfilled = (value) => {
35678
35726
  try {
@@ -35694,8 +35742,8 @@ var __async$W = (__this, __arguments, generator) => {
35694
35742
  };
35695
35743
  const useCreateAuctanePaySession = (params) => {
35696
35744
  const { client } = useShipEngine();
35697
- return reactQuery.useMutation(__spreadProps$G(__spreadValues$J({}, params), {
35698
- mutationFn: (request) => __async$W(void 0, null, function* () {
35745
+ return reactQuery.useMutation(__spreadProps$H(__spreadValues$K({}, params), {
35746
+ mutationFn: (request) => __async$Z(void 0, null, function* () {
35699
35747
  const result = yield client.auctanePay.createSession(request);
35700
35748
  return result.data;
35701
35749
  }),
@@ -35704,6 +35752,36 @@ const useCreateAuctanePaySession = (params) => {
35704
35752
  }));
35705
35753
  };
35706
35754
 
35755
+ var __defProp$J = Object.defineProperty;
35756
+ var __defProps$G = Object.defineProperties;
35757
+ var __getOwnPropDescs$G = Object.getOwnPropertyDescriptors;
35758
+ var __getOwnPropSymbols$S = Object.getOwnPropertySymbols;
35759
+ var __hasOwnProp$S = Object.prototype.hasOwnProperty;
35760
+ var __propIsEnum$S = Object.prototype.propertyIsEnumerable;
35761
+ var __defNormalProp$J = (obj, key, value) => key in obj ? __defProp$J(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35762
+ var __spreadValues$J = (a, b) => {
35763
+ for (var prop in b || (b = {}))
35764
+ if (__hasOwnProp$S.call(b, prop))
35765
+ __defNormalProp$J(a, prop, b[prop]);
35766
+ if (__getOwnPropSymbols$S)
35767
+ for (var prop of __getOwnPropSymbols$S(b)) {
35768
+ if (__propIsEnum$S.call(b, prop))
35769
+ __defNormalProp$J(a, prop, b[prop]);
35770
+ }
35771
+ return a;
35772
+ };
35773
+ var __spreadProps$G = (a, b) => __defProps$G(a, __getOwnPropDescs$G(b));
35774
+ const useGetAuctanePayConfig = (params) => {
35775
+ const { client } = useShipEngine();
35776
+ const queryParams = __spreadValues$J({}, params);
35777
+ return reactQuery.useQuery(__spreadProps$G(__spreadValues$J({}, queryParams), {
35778
+ onError,
35779
+ queryFn: () => client.auctanePay.getConfig(),
35780
+ queryKey: ["useGetAuctanePayConfig"],
35781
+ select: (result) => result.data
35782
+ }));
35783
+ };
35784
+
35707
35785
  var __defProp$I = Object.defineProperty;
35708
35786
  var __defProps$F = Object.defineProperties;
35709
35787
  var __getOwnPropDescs$F = Object.getOwnPropertyDescriptors;
@@ -35723,37 +35801,7 @@ var __spreadValues$I = (a, b) => {
35723
35801
  return a;
35724
35802
  };
35725
35803
  var __spreadProps$F = (a, b) => __defProps$F(a, __getOwnPropDescs$F(b));
35726
- const useGetAuctanePayConfig = (params) => {
35727
- const { client } = useShipEngine();
35728
- const queryParams = __spreadValues$I({}, params);
35729
- return reactQuery.useQuery(__spreadProps$F(__spreadValues$I({}, queryParams), {
35730
- onError,
35731
- queryFn: () => client.auctanePay.getConfig(),
35732
- queryKey: ["useGetAuctanePayConfig"],
35733
- select: (result) => result.data
35734
- }));
35735
- };
35736
-
35737
- var __defProp$H = Object.defineProperty;
35738
- var __defProps$E = Object.defineProperties;
35739
- var __getOwnPropDescs$E = Object.getOwnPropertyDescriptors;
35740
- var __getOwnPropSymbols$Q = Object.getOwnPropertySymbols;
35741
- var __hasOwnProp$Q = Object.prototype.hasOwnProperty;
35742
- var __propIsEnum$Q = Object.prototype.propertyIsEnumerable;
35743
- var __defNormalProp$H = (obj, key, value) => key in obj ? __defProp$H(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35744
- var __spreadValues$H = (a, b) => {
35745
- for (var prop in b || (b = {}))
35746
- if (__hasOwnProp$Q.call(b, prop))
35747
- __defNormalProp$H(a, prop, b[prop]);
35748
- if (__getOwnPropSymbols$Q)
35749
- for (var prop of __getOwnPropSymbols$Q(b)) {
35750
- if (__propIsEnum$Q.call(b, prop))
35751
- __defNormalProp$H(a, prop, b[prop]);
35752
- }
35753
- return a;
35754
- };
35755
- var __spreadProps$E = (a, b) => __defProps$E(a, __getOwnPropDescs$E(b));
35756
- var __async$V = (__this, __arguments, generator) => {
35804
+ var __async$Y = (__this, __arguments, generator) => {
35757
35805
  return new Promise((resolve, reject) => {
35758
35806
  var fulfilled = (value) => {
35759
35807
  try {
@@ -35775,8 +35823,8 @@ var __async$V = (__this, __arguments, generator) => {
35775
35823
  };
35776
35824
  const usePreviewTransaction = (params) => {
35777
35825
  const { client } = useShipEngine();
35778
- return reactQuery.useMutation(__spreadProps$E(__spreadValues$H({}, params), {
35779
- mutationFn: (_0) => __async$V(void 0, [_0], function* ({ amount, transactionCategory = "add_funds" }) {
35826
+ return reactQuery.useMutation(__spreadProps$F(__spreadValues$I({}, params), {
35827
+ mutationFn: (_0) => __async$Y(void 0, [_0], function* ({ amount, transactionCategory = "add_funds" }) {
35780
35828
  const request = {
35781
35829
  amount,
35782
35830
  transactionCategory
@@ -35789,6 +35837,36 @@ const usePreviewTransaction = (params) => {
35789
35837
  }));
35790
35838
  };
35791
35839
 
35840
+ var __defProp$H = Object.defineProperty;
35841
+ var __defProps$E = Object.defineProperties;
35842
+ var __getOwnPropDescs$E = Object.getOwnPropertyDescriptors;
35843
+ var __getOwnPropSymbols$Q = Object.getOwnPropertySymbols;
35844
+ var __hasOwnProp$Q = Object.prototype.hasOwnProperty;
35845
+ var __propIsEnum$Q = Object.prototype.propertyIsEnumerable;
35846
+ var __defNormalProp$H = (obj, key, value) => key in obj ? __defProp$H(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35847
+ var __spreadValues$H = (a, b) => {
35848
+ for (var prop in b || (b = {}))
35849
+ if (__hasOwnProp$Q.call(b, prop))
35850
+ __defNormalProp$H(a, prop, b[prop]);
35851
+ if (__getOwnPropSymbols$Q)
35852
+ for (var prop of __getOwnPropSymbols$Q(b)) {
35853
+ if (__propIsEnum$Q.call(b, prop))
35854
+ __defNormalProp$H(a, prop, b[prop]);
35855
+ }
35856
+ return a;
35857
+ };
35858
+ var __spreadProps$E = (a, b) => __defProps$E(a, __getOwnPropDescs$E(b));
35859
+ const useGetPaymentMethods = (params) => {
35860
+ const { client } = useShipEngine();
35861
+ const queryParams = __spreadValues$H({}, params);
35862
+ return reactQuery.useQuery(__spreadProps$E(__spreadValues$H({}, queryParams), {
35863
+ onError,
35864
+ queryFn: () => client.auctanePay.getPaymentMethods(),
35865
+ queryKey: ["useGetPaymentMethods"],
35866
+ select: (result) => result.data
35867
+ }));
35868
+ };
35869
+
35792
35870
  var __defProp$G = Object.defineProperty;
35793
35871
  var __defProps$D = Object.defineProperties;
35794
35872
  var __getOwnPropDescs$D = Object.getOwnPropertyDescriptors;
@@ -35807,15 +35885,36 @@ var __spreadValues$G = (a, b) => {
35807
35885
  }
35808
35886
  return a;
35809
35887
  };
35810
- var __spreadProps$D = (a, b) => __defProps$D(a, __getOwnPropDescs$D(b));
35811
- const useGetPaymentMethods = (params) => {
35888
+ var __spreadProps$D = (a, b) => __defProps$D(a, __getOwnPropDescs$D(b));
35889
+ var __async$X = (__this, __arguments, generator) => {
35890
+ return new Promise((resolve, reject) => {
35891
+ var fulfilled = (value) => {
35892
+ try {
35893
+ step(generator.next(value));
35894
+ } catch (e) {
35895
+ reject(e);
35896
+ }
35897
+ };
35898
+ var rejected = (value) => {
35899
+ try {
35900
+ step(generator.throw(value));
35901
+ } catch (e) {
35902
+ reject(e);
35903
+ }
35904
+ };
35905
+ var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
35906
+ step((generator = generator.apply(__this, __arguments)).next());
35907
+ });
35908
+ };
35909
+ const useDeletePaymentMethod = (params) => {
35812
35910
  const { client } = useShipEngine();
35813
- const queryParams = __spreadValues$G({}, params);
35814
- return reactQuery.useQuery(__spreadProps$D(__spreadValues$G({}, queryParams), {
35815
- onError,
35816
- queryFn: () => client.auctanePay.getPaymentMethods(),
35817
- queryKey: ["useGetPaymentMethods"],
35818
- select: (result) => result.data
35911
+ return reactQuery.useMutation(__spreadProps$D(__spreadValues$G({}, params), {
35912
+ mutationFn: (paymentMethodId) => __async$X(void 0, null, function* () {
35913
+ const result = yield client.auctanePay.deletePaymentMethod(paymentMethodId);
35914
+ return result.data;
35915
+ }),
35916
+ mutationKey: ["useDeletePaymentMethod"],
35917
+ onError
35819
35918
  }));
35820
35919
  };
35821
35920
 
@@ -35838,7 +35937,7 @@ var __spreadValues$F = (a, b) => {
35838
35937
  return a;
35839
35938
  };
35840
35939
  var __spreadProps$C = (a, b) => __defProps$C(a, __getOwnPropDescs$C(b));
35841
- var __async$U = (__this, __arguments, generator) => {
35940
+ var __async$W = (__this, __arguments, generator) => {
35842
35941
  return new Promise((resolve, reject) => {
35843
35942
  var fulfilled = (value) => {
35844
35943
  try {
@@ -35858,14 +35957,14 @@ var __async$U = (__this, __arguments, generator) => {
35858
35957
  step((generator = generator.apply(__this, __arguments)).next());
35859
35958
  });
35860
35959
  };
35861
- const useDeletePaymentMethod = (params) => {
35960
+ const useUpdatePaymentMethod = (params) => {
35862
35961
  const { client } = useShipEngine();
35863
35962
  return reactQuery.useMutation(__spreadProps$C(__spreadValues$F({}, params), {
35864
- mutationFn: (paymentMethodId) => __async$U(void 0, null, function* () {
35865
- const result = yield client.auctanePay.deletePaymentMethod(paymentMethodId);
35963
+ mutationFn: (_0) => __async$W(void 0, [_0], function* ({ paymentMethodId, payload }) {
35964
+ const result = yield client.auctanePay.updatePaymentMethod(paymentMethodId, payload);
35866
35965
  return result.data;
35867
35966
  }),
35868
- mutationKey: ["useDeletePaymentMethod"],
35967
+ mutationKey: ["useUpdatePaymentMethod"],
35869
35968
  onError
35870
35969
  }));
35871
35970
  };
@@ -35889,7 +35988,7 @@ var __spreadValues$E = (a, b) => {
35889
35988
  return a;
35890
35989
  };
35891
35990
  var __spreadProps$B = (a, b) => __defProps$B(a, __getOwnPropDescs$B(b));
35892
- var __async$T = (__this, __arguments, generator) => {
35991
+ var __async$V = (__this, __arguments, generator) => {
35893
35992
  return new Promise((resolve, reject) => {
35894
35993
  var fulfilled = (value) => {
35895
35994
  try {
@@ -35909,14 +36008,14 @@ var __async$T = (__this, __arguments, generator) => {
35909
36008
  step((generator = generator.apply(__this, __arguments)).next());
35910
36009
  });
35911
36010
  };
35912
- const useUpdatePaymentMethod = (params) => {
36011
+ const useIdentityVerification = (params) => {
35913
36012
  const { client } = useShipEngine();
35914
36013
  return reactQuery.useMutation(__spreadProps$B(__spreadValues$E({}, params), {
35915
- mutationFn: (_0) => __async$T(void 0, [_0], function* ({ paymentMethodId, payload }) {
35916
- const result = yield client.auctanePay.updatePaymentMethod(paymentMethodId, payload);
36014
+ mutationFn: () => __async$V(void 0, null, function* () {
36015
+ const result = yield client.auctanePay.identityVerification();
35917
36016
  return result.data;
35918
36017
  }),
35919
- mutationKey: ["useUpdatePaymentMethod"],
36018
+ mutationKey: ["useIdentityVerification"],
35920
36019
  onError
35921
36020
  }));
35922
36021
  };
@@ -35940,61 +36039,10 @@ var __spreadValues$D = (a, b) => {
35940
36039
  return a;
35941
36040
  };
35942
36041
  var __spreadProps$A = (a, b) => __defProps$A(a, __getOwnPropDescs$A(b));
35943
- var __async$S = (__this, __arguments, generator) => {
35944
- return new Promise((resolve, reject) => {
35945
- var fulfilled = (value) => {
35946
- try {
35947
- step(generator.next(value));
35948
- } catch (e) {
35949
- reject(e);
35950
- }
35951
- };
35952
- var rejected = (value) => {
35953
- try {
35954
- step(generator.throw(value));
35955
- } catch (e) {
35956
- reject(e);
35957
- }
35958
- };
35959
- var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
35960
- step((generator = generator.apply(__this, __arguments)).next());
35961
- });
35962
- };
35963
- const useIdentityVerification = (params) => {
35964
- const { client } = useShipEngine();
35965
- return reactQuery.useMutation(__spreadProps$A(__spreadValues$D({}, params), {
35966
- mutationFn: () => __async$S(void 0, null, function* () {
35967
- const result = yield client.auctanePay.identityVerification();
35968
- return result.data;
35969
- }),
35970
- mutationKey: ["useIdentityVerification"],
35971
- onError
35972
- }));
35973
- };
35974
-
35975
- var __defProp$C = Object.defineProperty;
35976
- var __defProps$z = Object.defineProperties;
35977
- var __getOwnPropDescs$z = Object.getOwnPropertyDescriptors;
35978
- var __getOwnPropSymbols$L = Object.getOwnPropertySymbols;
35979
- var __hasOwnProp$L = Object.prototype.hasOwnProperty;
35980
- var __propIsEnum$L = Object.prototype.propertyIsEnumerable;
35981
- var __defNormalProp$C = (obj, key, value) => key in obj ? __defProp$C(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35982
- var __spreadValues$C = (a, b) => {
35983
- for (var prop in b || (b = {}))
35984
- if (__hasOwnProp$L.call(b, prop))
35985
- __defNormalProp$C(a, prop, b[prop]);
35986
- if (__getOwnPropSymbols$L)
35987
- for (var prop of __getOwnPropSymbols$L(b)) {
35988
- if (__propIsEnum$L.call(b, prop))
35989
- __defNormalProp$C(a, prop, b[prop]);
35990
- }
35991
- return a;
35992
- };
35993
- var __spreadProps$z = (a, b) => __defProps$z(a, __getOwnPropDescs$z(b));
35994
36042
  const useGetPaymentAccount = (params) => {
35995
36043
  const { client } = useShipEngine();
35996
- const queryParams = __spreadValues$C({}, params);
35997
- return reactQuery.useQuery(__spreadProps$z(__spreadValues$C({}, queryParams), {
36044
+ const queryParams = __spreadValues$D({}, params);
36045
+ return reactQuery.useQuery(__spreadProps$A(__spreadValues$D({}, queryParams), {
35998
36046
  onError,
35999
36047
  queryFn: () => client.auctanePay.getPaymentAccount(),
36000
36048
  queryKey: ["useGetPaymentAccount"],
@@ -36002,7 +36050,7 @@ const useGetPaymentAccount = (params) => {
36002
36050
  }));
36003
36051
  };
36004
36052
 
36005
- var __async$R = (__this, __arguments, generator) => {
36053
+ var __async$U = (__this, __arguments, generator) => {
36006
36054
  return new Promise((resolve, reject) => {
36007
36055
  var fulfilled = (value) => {
36008
36056
  try {
@@ -36025,7 +36073,7 @@ var __async$R = (__this, __arguments, generator) => {
36025
36073
  const useAcceptCarrierTerms = (carrierId) => {
36026
36074
  const { client } = useShipEngine();
36027
36075
  return reactQuery.useMutation({
36028
- mutationFn: (request) => __async$R(void 0, null, function* () {
36076
+ mutationFn: (request) => __async$U(void 0, null, function* () {
36029
36077
  const result = yield client.carriers.acceptTerms(carrierId, request);
36030
36078
  return result.data.acceptedTerms;
36031
36079
  }),
@@ -36034,7 +36082,7 @@ const useAcceptCarrierTerms = (carrierId) => {
36034
36082
  });
36035
36083
  };
36036
36084
 
36037
- var __async$Q = (__this, __arguments, generator) => {
36085
+ var __async$T = (__this, __arguments, generator) => {
36038
36086
  return new Promise((resolve, reject) => {
36039
36087
  var fulfilled = (value) => {
36040
36088
  try {
@@ -36057,7 +36105,7 @@ var __async$Q = (__this, __arguments, generator) => {
36057
36105
  const useAddFunds = () => {
36058
36106
  const { client } = useShipEngine();
36059
36107
  return reactQuery.useMutation({
36060
- mutationFn: (_0) => __async$Q(void 0, [_0], function* ({ carrierId, funds }) {
36108
+ mutationFn: (_0) => __async$T(void 0, [_0], function* ({ carrierId, funds }) {
36061
36109
  const result = yield client.carriers.addFunds(carrierId, funds);
36062
36110
  return result.data;
36063
36111
  }),
@@ -36066,7 +36114,7 @@ const useAddFunds = () => {
36066
36114
  });
36067
36115
  };
36068
36116
 
36069
- var __async$P = (__this, __arguments, generator) => {
36117
+ var __async$S = (__this, __arguments, generator) => {
36070
36118
  return new Promise((resolve, reject) => {
36071
36119
  var fulfilled = (value) => {
36072
36120
  try {
@@ -36089,7 +36137,7 @@ var __async$P = (__this, __arguments, generator) => {
36089
36137
  const useConnectCarrier = () => {
36090
36138
  const { client } = useShipEngine();
36091
36139
  return reactQuery.useMutation({
36092
- mutationFn: (params) => __async$P(void 0, null, function* () {
36140
+ mutationFn: (params) => __async$S(void 0, null, function* () {
36093
36141
  const result = yield client.carriers.connect(params);
36094
36142
  return result.data;
36095
36143
  }),
@@ -36198,41 +36246,41 @@ const useGetServicesByCarrier = (carrierId) => {
36198
36246
  });
36199
36247
  };
36200
36248
 
36201
- var __defProp$B = Object.defineProperty;
36202
- var __defProps$y = Object.defineProperties;
36203
- var __getOwnPropDescs$y = Object.getOwnPropertyDescriptors;
36204
- var __getOwnPropSymbols$K = Object.getOwnPropertySymbols;
36205
- var __hasOwnProp$K = Object.prototype.hasOwnProperty;
36206
- var __propIsEnum$K = Object.prototype.propertyIsEnumerable;
36207
- var __defNormalProp$B = (obj, key, value) => key in obj ? __defProp$B(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
36208
- var __spreadValues$B = (a, b) => {
36249
+ var __defProp$C = Object.defineProperty;
36250
+ var __defProps$z = Object.defineProperties;
36251
+ var __getOwnPropDescs$z = Object.getOwnPropertyDescriptors;
36252
+ var __getOwnPropSymbols$L = Object.getOwnPropertySymbols;
36253
+ var __hasOwnProp$L = Object.prototype.hasOwnProperty;
36254
+ var __propIsEnum$L = Object.prototype.propertyIsEnumerable;
36255
+ var __defNormalProp$C = (obj, key, value) => key in obj ? __defProp$C(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
36256
+ var __spreadValues$C = (a, b) => {
36209
36257
  for (var prop in b || (b = {}))
36210
- if (__hasOwnProp$K.call(b, prop))
36211
- __defNormalProp$B(a, prop, b[prop]);
36212
- if (__getOwnPropSymbols$K)
36213
- for (var prop of __getOwnPropSymbols$K(b)) {
36214
- if (__propIsEnum$K.call(b, prop))
36215
- __defNormalProp$B(a, prop, b[prop]);
36258
+ if (__hasOwnProp$L.call(b, prop))
36259
+ __defNormalProp$C(a, prop, b[prop]);
36260
+ if (__getOwnPropSymbols$L)
36261
+ for (var prop of __getOwnPropSymbols$L(b)) {
36262
+ if (__propIsEnum$L.call(b, prop))
36263
+ __defNormalProp$C(a, prop, b[prop]);
36216
36264
  }
36217
36265
  return a;
36218
36266
  };
36219
- var __spreadProps$y = (a, b) => __defProps$y(a, __getOwnPropDescs$y(b));
36220
- var __objRest$r = (source, exclude) => {
36267
+ var __spreadProps$z = (a, b) => __defProps$z(a, __getOwnPropDescs$z(b));
36268
+ var __objRest$s = (source, exclude) => {
36221
36269
  var target = {};
36222
36270
  for (var prop in source)
36223
- if (__hasOwnProp$K.call(source, prop) && exclude.indexOf(prop) < 0)
36271
+ if (__hasOwnProp$L.call(source, prop) && exclude.indexOf(prop) < 0)
36224
36272
  target[prop] = source[prop];
36225
- if (source != null && __getOwnPropSymbols$K)
36226
- for (var prop of __getOwnPropSymbols$K(source)) {
36227
- if (exclude.indexOf(prop) < 0 && __propIsEnum$K.call(source, prop))
36273
+ if (source != null && __getOwnPropSymbols$L)
36274
+ for (var prop of __getOwnPropSymbols$L(source)) {
36275
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$L.call(source, prop))
36228
36276
  target[prop] = source[prop];
36229
36277
  }
36230
36278
  return target;
36231
36279
  };
36232
36280
  const useListCarriers = (params) => {
36233
36281
  const { client } = useShipEngine();
36234
- const _a = __spreadValues$B({}, params), { queryFnParams } = _a, rest = __objRest$r(_a, ["queryFnParams"]);
36235
- return reactQuery.useQuery(__spreadProps$y(__spreadValues$B({}, rest), {
36282
+ const _a = __spreadValues$C({}, params), { queryFnParams } = _a, rest = __objRest$s(_a, ["queryFnParams"]);
36283
+ return reactQuery.useQuery(__spreadProps$z(__spreadValues$C({}, rest), {
36236
36284
  onError,
36237
36285
  queryFn: () => client.carriers.list(queryFnParams),
36238
36286
  queryKey: ["useListCarriers", queryFnParams],
@@ -36240,22 +36288,22 @@ const useListCarriers = (params) => {
36240
36288
  }));
36241
36289
  };
36242
36290
 
36243
- var __getOwnPropSymbols$J = Object.getOwnPropertySymbols;
36244
- var __hasOwnProp$J = Object.prototype.hasOwnProperty;
36245
- var __propIsEnum$J = Object.prototype.propertyIsEnumerable;
36246
- var __objRest$q = (source, exclude) => {
36291
+ var __getOwnPropSymbols$K = Object.getOwnPropertySymbols;
36292
+ var __hasOwnProp$K = Object.prototype.hasOwnProperty;
36293
+ var __propIsEnum$K = Object.prototype.propertyIsEnumerable;
36294
+ var __objRest$r = (source, exclude) => {
36247
36295
  var target = {};
36248
36296
  for (var prop in source)
36249
- if (__hasOwnProp$J.call(source, prop) && exclude.indexOf(prop) < 0)
36297
+ if (__hasOwnProp$K.call(source, prop) && exclude.indexOf(prop) < 0)
36250
36298
  target[prop] = source[prop];
36251
- if (source != null && __getOwnPropSymbols$J)
36252
- for (var prop of __getOwnPropSymbols$J(source)) {
36253
- if (exclude.indexOf(prop) < 0 && __propIsEnum$J.call(source, prop))
36299
+ if (source != null && __getOwnPropSymbols$K)
36300
+ for (var prop of __getOwnPropSymbols$K(source)) {
36301
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$K.call(source, prop))
36254
36302
  target[prop] = source[prop];
36255
36303
  }
36256
36304
  return target;
36257
36305
  };
36258
- var __async$O = (__this, __arguments, generator) => {
36306
+ var __async$R = (__this, __arguments, generator) => {
36259
36307
  return new Promise((resolve, reject) => {
36260
36308
  var fulfilled = (value) => {
36261
36309
  try {
@@ -36279,8 +36327,8 @@ const useUpdateAutoFunding = () => {
36279
36327
  const { client } = useShipEngine();
36280
36328
  const queryClient = reactQuery.useQueryClient();
36281
36329
  return reactQuery.useMutation({
36282
- mutationFn: (_a) => __async$O(void 0, null, function* () {
36283
- var _b = _a, { carrierId } = _b, options = __objRest$q(_b, ["carrierId"]);
36330
+ mutationFn: (_a) => __async$R(void 0, null, function* () {
36331
+ var _b = _a, { carrierId } = _b, options = __objRest$r(_b, ["carrierId"]);
36284
36332
  const result = yield client.carriers.updateAutoFunding(carrierId, options);
36285
36333
  return result.data;
36286
36334
  }),
@@ -36309,7 +36357,7 @@ const useGetZonesByCarrier = (carrierId) => {
36309
36357
  });
36310
36358
  };
36311
36359
 
36312
- var __async$N = (__this, __arguments, generator) => {
36360
+ var __async$Q = (__this, __arguments, generator) => {
36313
36361
  return new Promise((resolve, reject) => {
36314
36362
  var fulfilled = (value) => {
36315
36363
  try {
@@ -36332,7 +36380,7 @@ var __async$N = (__this, __arguments, generator) => {
36332
36380
  const useDeleteCarrier = () => {
36333
36381
  const { client } = useShipEngine();
36334
36382
  return reactQuery.useMutation({
36335
- mutationFn: (carrierId) => __async$N(void 0, null, function* () {
36383
+ mutationFn: (carrierId) => __async$Q(void 0, null, function* () {
36336
36384
  const result = yield client.carriers.delete(carrierId);
36337
36385
  return result.data;
36338
36386
  }),
@@ -36341,24 +36389,24 @@ const useDeleteCarrier = () => {
36341
36389
  });
36342
36390
  };
36343
36391
 
36344
- var __getOwnPropSymbols$I = Object.getOwnPropertySymbols;
36345
- var __hasOwnProp$I = Object.prototype.hasOwnProperty;
36346
- var __propIsEnum$I = Object.prototype.propertyIsEnumerable;
36347
- var __objRest$p = (source, exclude) => {
36392
+ var __getOwnPropSymbols$J = Object.getOwnPropertySymbols;
36393
+ var __hasOwnProp$J = Object.prototype.hasOwnProperty;
36394
+ var __propIsEnum$J = Object.prototype.propertyIsEnumerable;
36395
+ var __objRest$q = (source, exclude) => {
36348
36396
  var target = {};
36349
36397
  for (var prop in source)
36350
- if (__hasOwnProp$I.call(source, prop) && exclude.indexOf(prop) < 0)
36398
+ if (__hasOwnProp$J.call(source, prop) && exclude.indexOf(prop) < 0)
36351
36399
  target[prop] = source[prop];
36352
- if (source != null && __getOwnPropSymbols$I)
36353
- for (var prop of __getOwnPropSymbols$I(source)) {
36354
- if (exclude.indexOf(prop) < 0 && __propIsEnum$I.call(source, prop))
36400
+ if (source != null && __getOwnPropSymbols$J)
36401
+ for (var prop of __getOwnPropSymbols$J(source)) {
36402
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$J.call(source, prop))
36355
36403
  target[prop] = source[prop];
36356
36404
  }
36357
36405
  return target;
36358
36406
  };
36359
36407
  const useGetCarrierConnectionForm = (_params) => {
36360
36408
  const { client } = useShipEngine();
36361
- const _a = _params || {}, { carrierName, enabled = true } = _a, params = __objRest$p(_a, ["carrierName", "enabled"]);
36409
+ const _a = _params || {}, { carrierName, enabled = true } = _a, params = __objRest$q(_a, ["carrierName", "enabled"]);
36362
36410
  return reactQuery.useQuery({
36363
36411
  enabled,
36364
36412
  onError,
@@ -36368,24 +36416,24 @@ const useGetCarrierConnectionForm = (_params) => {
36368
36416
  });
36369
36417
  };
36370
36418
 
36371
- var __getOwnPropSymbols$H = Object.getOwnPropertySymbols;
36372
- var __hasOwnProp$H = Object.prototype.hasOwnProperty;
36373
- var __propIsEnum$H = Object.prototype.propertyIsEnumerable;
36374
- var __objRest$o = (source, exclude) => {
36419
+ var __getOwnPropSymbols$I = Object.getOwnPropertySymbols;
36420
+ var __hasOwnProp$I = Object.prototype.hasOwnProperty;
36421
+ var __propIsEnum$I = Object.prototype.propertyIsEnumerable;
36422
+ var __objRest$p = (source, exclude) => {
36375
36423
  var target = {};
36376
36424
  for (var prop in source)
36377
- if (__hasOwnProp$H.call(source, prop) && exclude.indexOf(prop) < 0)
36425
+ if (__hasOwnProp$I.call(source, prop) && exclude.indexOf(prop) < 0)
36378
36426
  target[prop] = source[prop];
36379
- if (source != null && __getOwnPropSymbols$H)
36380
- for (var prop of __getOwnPropSymbols$H(source)) {
36381
- if (exclude.indexOf(prop) < 0 && __propIsEnum$H.call(source, prop))
36427
+ if (source != null && __getOwnPropSymbols$I)
36428
+ for (var prop of __getOwnPropSymbols$I(source)) {
36429
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$I.call(source, prop))
36382
36430
  target[prop] = source[prop];
36383
36431
  }
36384
36432
  return target;
36385
36433
  };
36386
36434
  const useListCarrierConnections = (_params) => {
36387
36435
  const { client } = useShipEngine();
36388
- const _a = _params || {}, { enabled = true } = _a, params = __objRest$o(_a, ["enabled"]);
36436
+ const _a = _params || {}, { enabled = true } = _a, params = __objRest$p(_a, ["enabled"]);
36389
36437
  return reactQuery.useQuery({
36390
36438
  enabled,
36391
36439
  onError,
@@ -36395,26 +36443,26 @@ const useListCarrierConnections = (_params) => {
36395
36443
  });
36396
36444
  };
36397
36445
 
36398
- var __defProp$A = Object.defineProperty;
36399
- var __defProps$x = Object.defineProperties;
36400
- var __getOwnPropDescs$x = Object.getOwnPropertyDescriptors;
36401
- var __getOwnPropSymbols$G = Object.getOwnPropertySymbols;
36402
- var __hasOwnProp$G = Object.prototype.hasOwnProperty;
36403
- var __propIsEnum$G = Object.prototype.propertyIsEnumerable;
36404
- var __defNormalProp$A = (obj, key, value) => key in obj ? __defProp$A(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
36405
- var __spreadValues$A = (a, b) => {
36446
+ var __defProp$B = Object.defineProperty;
36447
+ var __defProps$y = Object.defineProperties;
36448
+ var __getOwnPropDescs$y = Object.getOwnPropertyDescriptors;
36449
+ var __getOwnPropSymbols$H = Object.getOwnPropertySymbols;
36450
+ var __hasOwnProp$H = Object.prototype.hasOwnProperty;
36451
+ var __propIsEnum$H = Object.prototype.propertyIsEnumerable;
36452
+ var __defNormalProp$B = (obj, key, value) => key in obj ? __defProp$B(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
36453
+ var __spreadValues$B = (a, b) => {
36406
36454
  for (var prop in b || (b = {}))
36407
- if (__hasOwnProp$G.call(b, prop))
36408
- __defNormalProp$A(a, prop, b[prop]);
36409
- if (__getOwnPropSymbols$G)
36410
- for (var prop of __getOwnPropSymbols$G(b)) {
36411
- if (__propIsEnum$G.call(b, prop))
36412
- __defNormalProp$A(a, prop, b[prop]);
36455
+ if (__hasOwnProp$H.call(b, prop))
36456
+ __defNormalProp$B(a, prop, b[prop]);
36457
+ if (__getOwnPropSymbols$H)
36458
+ for (var prop of __getOwnPropSymbols$H(b)) {
36459
+ if (__propIsEnum$H.call(b, prop))
36460
+ __defNormalProp$B(a, prop, b[prop]);
36413
36461
  }
36414
36462
  return a;
36415
36463
  };
36416
- var __spreadProps$x = (a, b) => __defProps$x(a, __getOwnPropDescs$x(b));
36417
- var __async$M = (__this, __arguments, generator) => {
36464
+ var __spreadProps$y = (a, b) => __defProps$y(a, __getOwnPropDescs$y(b));
36465
+ var __async$P = (__this, __arguments, generator) => {
36418
36466
  return new Promise((resolve, reject) => {
36419
36467
  var fulfilled = (value) => {
36420
36468
  try {
@@ -36437,8 +36485,8 @@ var __async$M = (__this, __arguments, generator) => {
36437
36485
  const useConnectCarrierAccount = () => {
36438
36486
  const { client } = useShipEngine();
36439
36487
  return reactQuery.useMutation({
36440
- mutationFn: (_0) => __async$M(void 0, [_0], function* ({ carrierName, formData }) {
36441
- const formDataWithFlag = __spreadProps$x(__spreadValues$A({}, formData), { __skipDecamelize: true });
36488
+ mutationFn: (_0) => __async$P(void 0, [_0], function* ({ carrierName, formData }) {
36489
+ const formDataWithFlag = __spreadProps$y(__spreadValues$B({}, formData), { __skipDecamelize: true });
36442
36490
  const result = yield client.connections.connectCarrier(carrierName, formDataWithFlag);
36443
36491
  return result.data;
36444
36492
  }),
@@ -36458,33 +36506,33 @@ const useCarrierConnectionsServicesList = (carrierCode) => {
36458
36506
  });
36459
36507
  };
36460
36508
 
36461
- var __defProp$z = Object.defineProperty;
36462
- var __defProps$w = Object.defineProperties;
36463
- var __getOwnPropDescs$w = Object.getOwnPropertyDescriptors;
36464
- var __getOwnPropSymbols$F = Object.getOwnPropertySymbols;
36465
- var __hasOwnProp$F = Object.prototype.hasOwnProperty;
36466
- var __propIsEnum$F = Object.prototype.propertyIsEnumerable;
36467
- var __defNormalProp$z = (obj, key, value) => key in obj ? __defProp$z(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
36468
- var __spreadValues$z = (a, b) => {
36509
+ var __defProp$A = Object.defineProperty;
36510
+ var __defProps$x = Object.defineProperties;
36511
+ var __getOwnPropDescs$x = Object.getOwnPropertyDescriptors;
36512
+ var __getOwnPropSymbols$G = Object.getOwnPropertySymbols;
36513
+ var __hasOwnProp$G = Object.prototype.hasOwnProperty;
36514
+ var __propIsEnum$G = Object.prototype.propertyIsEnumerable;
36515
+ var __defNormalProp$A = (obj, key, value) => key in obj ? __defProp$A(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
36516
+ var __spreadValues$A = (a, b) => {
36469
36517
  for (var prop in b || (b = {}))
36470
- if (__hasOwnProp$F.call(b, prop))
36471
- __defNormalProp$z(a, prop, b[prop]);
36472
- if (__getOwnPropSymbols$F)
36473
- for (var prop of __getOwnPropSymbols$F(b)) {
36474
- if (__propIsEnum$F.call(b, prop))
36475
- __defNormalProp$z(a, prop, b[prop]);
36518
+ if (__hasOwnProp$G.call(b, prop))
36519
+ __defNormalProp$A(a, prop, b[prop]);
36520
+ if (__getOwnPropSymbols$G)
36521
+ for (var prop of __getOwnPropSymbols$G(b)) {
36522
+ if (__propIsEnum$G.call(b, prop))
36523
+ __defNormalProp$A(a, prop, b[prop]);
36476
36524
  }
36477
36525
  return a;
36478
36526
  };
36479
- var __spreadProps$w = (a, b) => __defProps$w(a, __getOwnPropDescs$w(b));
36480
- var __objRest$n = (source, exclude) => {
36527
+ var __spreadProps$x = (a, b) => __defProps$x(a, __getOwnPropDescs$x(b));
36528
+ var __objRest$o = (source, exclude) => {
36481
36529
  var target = {};
36482
36530
  for (var prop in source)
36483
- if (__hasOwnProp$F.call(source, prop) && exclude.indexOf(prop) < 0)
36531
+ if (__hasOwnProp$G.call(source, prop) && exclude.indexOf(prop) < 0)
36484
36532
  target[prop] = source[prop];
36485
- if (source != null && __getOwnPropSymbols$F)
36486
- for (var prop of __getOwnPropSymbols$F(source)) {
36487
- if (exclude.indexOf(prop) < 0 && __propIsEnum$F.call(source, prop))
36533
+ if (source != null && __getOwnPropSymbols$G)
36534
+ for (var prop of __getOwnPropSymbols$G(source)) {
36535
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$G.call(source, prop))
36488
36536
  target[prop] = source[prop];
36489
36537
  }
36490
36538
  return target;
@@ -36492,12 +36540,12 @@ var __objRest$n = (source, exclude) => {
36492
36540
  const useGetConnectionsCarrierSettings = (_a) => {
36493
36541
  var _b = _a, {
36494
36542
  queryFnParams
36495
- } = _b, params = __objRest$n(_b, [
36543
+ } = _b, params = __objRest$o(_b, [
36496
36544
  "queryFnParams"
36497
36545
  ]);
36498
36546
  const { client } = useShipEngine();
36499
36547
  const { carrierName, carrierId } = queryFnParams;
36500
- return reactQuery.useQuery(__spreadProps$w(__spreadValues$z({}, params), {
36548
+ return reactQuery.useQuery(__spreadProps$x(__spreadValues$A({}, params), {
36501
36549
  onError,
36502
36550
  queryFn: () => client.connections.getCarrierSettings(carrierName, carrierId),
36503
36551
  queryKey: ["useGetConnectionsCarrierSettings", carrierName, carrierId],
@@ -36505,26 +36553,26 @@ const useGetConnectionsCarrierSettings = (_a) => {
36505
36553
  }));
36506
36554
  };
36507
36555
 
36508
- var __defProp$y = Object.defineProperty;
36509
- var __defProps$v = Object.defineProperties;
36510
- var __getOwnPropDescs$v = Object.getOwnPropertyDescriptors;
36511
- var __getOwnPropSymbols$E = Object.getOwnPropertySymbols;
36512
- var __hasOwnProp$E = Object.prototype.hasOwnProperty;
36513
- var __propIsEnum$E = Object.prototype.propertyIsEnumerable;
36514
- var __defNormalProp$y = (obj, key, value) => key in obj ? __defProp$y(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
36515
- var __spreadValues$y = (a, b) => {
36556
+ var __defProp$z = Object.defineProperty;
36557
+ var __defProps$w = Object.defineProperties;
36558
+ var __getOwnPropDescs$w = Object.getOwnPropertyDescriptors;
36559
+ var __getOwnPropSymbols$F = Object.getOwnPropertySymbols;
36560
+ var __hasOwnProp$F = Object.prototype.hasOwnProperty;
36561
+ var __propIsEnum$F = Object.prototype.propertyIsEnumerable;
36562
+ var __defNormalProp$z = (obj, key, value) => key in obj ? __defProp$z(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
36563
+ var __spreadValues$z = (a, b) => {
36516
36564
  for (var prop in b || (b = {}))
36517
- if (__hasOwnProp$E.call(b, prop))
36518
- __defNormalProp$y(a, prop, b[prop]);
36519
- if (__getOwnPropSymbols$E)
36520
- for (var prop of __getOwnPropSymbols$E(b)) {
36521
- if (__propIsEnum$E.call(b, prop))
36522
- __defNormalProp$y(a, prop, b[prop]);
36565
+ if (__hasOwnProp$F.call(b, prop))
36566
+ __defNormalProp$z(a, prop, b[prop]);
36567
+ if (__getOwnPropSymbols$F)
36568
+ for (var prop of __getOwnPropSymbols$F(b)) {
36569
+ if (__propIsEnum$F.call(b, prop))
36570
+ __defNormalProp$z(a, prop, b[prop]);
36523
36571
  }
36524
36572
  return a;
36525
36573
  };
36526
- var __spreadProps$v = (a, b) => __defProps$v(a, __getOwnPropDescs$v(b));
36527
- var __async$L = (__this, __arguments, generator) => {
36574
+ var __spreadProps$w = (a, b) => __defProps$w(a, __getOwnPropDescs$w(b));
36575
+ var __async$O = (__this, __arguments, generator) => {
36528
36576
  return new Promise((resolve, reject) => {
36529
36577
  var fulfilled = (value) => {
36530
36578
  try {
@@ -36546,8 +36594,8 @@ var __async$L = (__this, __arguments, generator) => {
36546
36594
  };
36547
36595
  const useUpdateConnectionsCarrierSettings = (params) => {
36548
36596
  const { client } = useShipEngine();
36549
- return reactQuery.useMutation(__spreadProps$v(__spreadValues$y({}, params), {
36550
- mutationFn: (_0) => __async$L(void 0, [_0], function* ({
36597
+ return reactQuery.useMutation(__spreadProps$w(__spreadValues$z({}, params), {
36598
+ mutationFn: (_0) => __async$O(void 0, [_0], function* ({
36551
36599
  carrierName,
36552
36600
  carrierId,
36553
36601
  formData
@@ -36564,26 +36612,26 @@ const useUpdateConnectionsCarrierSettings = (params) => {
36564
36612
  }));
36565
36613
  };
36566
36614
 
36567
- var __defProp$x = Object.defineProperty;
36568
- var __defProps$u = Object.defineProperties;
36569
- var __getOwnPropDescs$u = Object.getOwnPropertyDescriptors;
36570
- var __getOwnPropSymbols$D = Object.getOwnPropertySymbols;
36571
- var __hasOwnProp$D = Object.prototype.hasOwnProperty;
36572
- var __propIsEnum$D = Object.prototype.propertyIsEnumerable;
36573
- var __defNormalProp$x = (obj, key, value) => key in obj ? __defProp$x(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
36574
- var __spreadValues$x = (a, b) => {
36615
+ var __defProp$y = Object.defineProperty;
36616
+ var __defProps$v = Object.defineProperties;
36617
+ var __getOwnPropDescs$v = Object.getOwnPropertyDescriptors;
36618
+ var __getOwnPropSymbols$E = Object.getOwnPropertySymbols;
36619
+ var __hasOwnProp$E = Object.prototype.hasOwnProperty;
36620
+ var __propIsEnum$E = Object.prototype.propertyIsEnumerable;
36621
+ var __defNormalProp$y = (obj, key, value) => key in obj ? __defProp$y(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
36622
+ var __spreadValues$y = (a, b) => {
36575
36623
  for (var prop in b || (b = {}))
36576
- if (__hasOwnProp$D.call(b, prop))
36577
- __defNormalProp$x(a, prop, b[prop]);
36578
- if (__getOwnPropSymbols$D)
36579
- for (var prop of __getOwnPropSymbols$D(b)) {
36580
- if (__propIsEnum$D.call(b, prop))
36581
- __defNormalProp$x(a, prop, b[prop]);
36624
+ if (__hasOwnProp$E.call(b, prop))
36625
+ __defNormalProp$y(a, prop, b[prop]);
36626
+ if (__getOwnPropSymbols$E)
36627
+ for (var prop of __getOwnPropSymbols$E(b)) {
36628
+ if (__propIsEnum$E.call(b, prop))
36629
+ __defNormalProp$y(a, prop, b[prop]);
36582
36630
  }
36583
36631
  return a;
36584
36632
  };
36585
- var __spreadProps$u = (a, b) => __defProps$u(a, __getOwnPropDescs$u(b));
36586
- var __async$K = (__this, __arguments, generator) => {
36633
+ var __spreadProps$v = (a, b) => __defProps$v(a, __getOwnPropDescs$v(b));
36634
+ var __async$N = (__this, __arguments, generator) => {
36587
36635
  return new Promise((resolve, reject) => {
36588
36636
  var fulfilled = (value) => {
36589
36637
  try {
@@ -36605,8 +36653,8 @@ var __async$K = (__this, __arguments, generator) => {
36605
36653
  };
36606
36654
  const useRequestStampsAccountUrls = (params) => {
36607
36655
  const { client } = useShipEngine();
36608
- return reactQuery.useMutation(__spreadProps$u(__spreadValues$x({}, params), {
36609
- mutationFn: (request) => __async$K(void 0, null, function* () {
36656
+ return reactQuery.useMutation(__spreadProps$v(__spreadValues$y({}, params), {
36657
+ mutationFn: (request) => __async$N(void 0, null, function* () {
36610
36658
  const result = yield client.connections.requestStampsAccountUrls(request);
36611
36659
  return result.data;
36612
36660
  }),
@@ -36625,7 +36673,7 @@ const useListCustomPackageTypes = () => {
36625
36673
  });
36626
36674
  };
36627
36675
 
36628
- var __async$J = (__this, __arguments, generator) => {
36676
+ var __async$M = (__this, __arguments, generator) => {
36629
36677
  return new Promise((resolve, reject) => {
36630
36678
  var fulfilled = (value) => {
36631
36679
  try {
@@ -36648,7 +36696,7 @@ var __async$J = (__this, __arguments, generator) => {
36648
36696
  const useAcceptFundingSourceTerms = (fundingSourceId) => {
36649
36697
  const { client } = useShipEngine();
36650
36698
  return reactQuery.useMutation({
36651
- mutationFn: (request) => __async$J(void 0, null, function* () {
36699
+ mutationFn: (request) => __async$M(void 0, null, function* () {
36652
36700
  const result = yield client.fundingSources.acceptTerms(fundingSourceId, request);
36653
36701
  return result.data.acceptedTerms;
36654
36702
  }),
@@ -36657,7 +36705,7 @@ const useAcceptFundingSourceTerms = (fundingSourceId) => {
36657
36705
  });
36658
36706
  };
36659
36707
 
36660
- var __async$I = (__this, __arguments, generator) => {
36708
+ var __async$L = (__this, __arguments, generator) => {
36661
36709
  return new Promise((resolve, reject) => {
36662
36710
  var fulfilled = (value) => {
36663
36711
  try {
@@ -36680,7 +36728,7 @@ var __async$I = (__this, __arguments, generator) => {
36680
36728
  const useCreateFundingSource = () => {
36681
36729
  const { client } = useShipEngine();
36682
36730
  return reactQuery.useMutation({
36683
- mutationFn: (fundingSource) => __async$I(void 0, null, function* () {
36731
+ mutationFn: (fundingSource) => __async$L(void 0, null, function* () {
36684
36732
  const result = yield client.fundingSources.create(fundingSource);
36685
36733
  return result.data;
36686
36734
  }),
@@ -36689,7 +36737,7 @@ const useCreateFundingSource = () => {
36689
36737
  });
36690
36738
  };
36691
36739
 
36692
- var __async$H = (__this, __arguments, generator) => {
36740
+ var __async$K = (__this, __arguments, generator) => {
36693
36741
  return new Promise((resolve, reject) => {
36694
36742
  var fulfilled = (value) => {
36695
36743
  try {
@@ -36712,7 +36760,7 @@ var __async$H = (__this, __arguments, generator) => {
36712
36760
  const useFundingSourcesAddFunds = () => {
36713
36761
  const { client } = useShipEngine();
36714
36762
  return reactQuery.useMutation({
36715
- mutationFn: (_0) => __async$H(void 0, [_0], function* ({ funds, fundingSourceId }) {
36763
+ mutationFn: (_0) => __async$K(void 0, [_0], function* ({ funds, fundingSourceId }) {
36716
36764
  const result = yield client.fundingSources.addFunds(funds, fundingSourceId);
36717
36765
  return result.data;
36718
36766
  }),
@@ -36721,29 +36769,29 @@ const useFundingSourcesAddFunds = () => {
36721
36769
  });
36722
36770
  };
36723
36771
 
36724
- var __defProp$w = Object.defineProperty;
36725
- var __defProps$t = Object.defineProperties;
36726
- var __getOwnPropDescs$t = Object.getOwnPropertyDescriptors;
36727
- var __getOwnPropSymbols$C = Object.getOwnPropertySymbols;
36728
- var __hasOwnProp$C = Object.prototype.hasOwnProperty;
36729
- var __propIsEnum$C = Object.prototype.propertyIsEnumerable;
36730
- var __defNormalProp$w = (obj, key, value) => key in obj ? __defProp$w(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
36731
- var __spreadValues$w = (a, b) => {
36772
+ var __defProp$x = Object.defineProperty;
36773
+ var __defProps$u = Object.defineProperties;
36774
+ var __getOwnPropDescs$u = Object.getOwnPropertyDescriptors;
36775
+ var __getOwnPropSymbols$D = Object.getOwnPropertySymbols;
36776
+ var __hasOwnProp$D = Object.prototype.hasOwnProperty;
36777
+ var __propIsEnum$D = Object.prototype.propertyIsEnumerable;
36778
+ var __defNormalProp$x = (obj, key, value) => key in obj ? __defProp$x(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
36779
+ var __spreadValues$x = (a, b) => {
36732
36780
  for (var prop in b || (b = {}))
36733
- if (__hasOwnProp$C.call(b, prop))
36734
- __defNormalProp$w(a, prop, b[prop]);
36735
- if (__getOwnPropSymbols$C)
36736
- for (var prop of __getOwnPropSymbols$C(b)) {
36737
- if (__propIsEnum$C.call(b, prop))
36738
- __defNormalProp$w(a, prop, b[prop]);
36781
+ if (__hasOwnProp$D.call(b, prop))
36782
+ __defNormalProp$x(a, prop, b[prop]);
36783
+ if (__getOwnPropSymbols$D)
36784
+ for (var prop of __getOwnPropSymbols$D(b)) {
36785
+ if (__propIsEnum$D.call(b, prop))
36786
+ __defNormalProp$x(a, prop, b[prop]);
36739
36787
  }
36740
36788
  return a;
36741
36789
  };
36742
- var __spreadProps$t = (a, b) => __defProps$t(a, __getOwnPropDescs$t(b));
36790
+ var __spreadProps$u = (a, b) => __defProps$u(a, __getOwnPropDescs$u(b));
36743
36791
  const useGetFundingSourceAcceptedTerms = (fundingSourceId, params) => {
36744
36792
  const { client } = useShipEngine();
36745
- const queryParams = __spreadValues$w({}, params);
36746
- return reactQuery.useQuery(__spreadProps$t(__spreadValues$w({}, queryParams), {
36793
+ const queryParams = __spreadValues$x({}, params);
36794
+ return reactQuery.useQuery(__spreadProps$u(__spreadValues$x({}, queryParams), {
36747
36795
  onError,
36748
36796
  queryFn: () => client.fundingSources.acceptedTerms(fundingSourceId),
36749
36797
  queryKey: ["useGetFundingSourceAcceptedTerms", fundingSourceId],
@@ -36771,7 +36819,7 @@ const useListFundingSources = () => {
36771
36819
  });
36772
36820
  };
36773
36821
 
36774
- var __async$G = (__this, __arguments, generator) => {
36822
+ var __async$J = (__this, __arguments, generator) => {
36775
36823
  return new Promise((resolve, reject) => {
36776
36824
  var fulfilled = (value) => {
36777
36825
  try {
@@ -36794,7 +36842,7 @@ var __async$G = (__this, __arguments, generator) => {
36794
36842
  const useRegisterCarrier = () => {
36795
36843
  const { client } = useShipEngine();
36796
36844
  return reactQuery.useMutation({
36797
- mutationFn: (carrier) => __async$G(void 0, null, function* () {
36845
+ mutationFn: (carrier) => __async$J(void 0, null, function* () {
36798
36846
  const result = yield client.fundingSources.registerCarrier(carrier);
36799
36847
  return result.data;
36800
36848
  }),
@@ -36803,7 +36851,7 @@ const useRegisterCarrier = () => {
36803
36851
  });
36804
36852
  };
36805
36853
 
36806
- var __async$F = (__this, __arguments, generator) => {
36854
+ var __async$I = (__this, __arguments, generator) => {
36807
36855
  return new Promise((resolve, reject) => {
36808
36856
  var fulfilled = (value) => {
36809
36857
  try {
@@ -36826,7 +36874,7 @@ var __async$F = (__this, __arguments, generator) => {
36826
36874
  const useUpdateFundingSource = () => {
36827
36875
  const { client } = useShipEngine();
36828
36876
  return reactQuery.useMutation({
36829
- mutationFn: (_0) => __async$F(void 0, [_0], function* ({
36877
+ mutationFn: (_0) => __async$I(void 0, [_0], function* ({
36830
36878
  billingInfo,
36831
36879
  creditCardInfo,
36832
36880
  fundingSourceId,
@@ -36867,29 +36915,29 @@ const useGetFundingSourceTransactions = (fundingSourceId, params) => {
36867
36915
  });
36868
36916
  };
36869
36917
 
36870
- var __defProp$v = Object.defineProperty;
36871
- var __defProps$s = Object.defineProperties;
36872
- var __getOwnPropDescs$s = Object.getOwnPropertyDescriptors;
36873
- var __getOwnPropSymbols$B = Object.getOwnPropertySymbols;
36874
- var __hasOwnProp$B = Object.prototype.hasOwnProperty;
36875
- var __propIsEnum$B = Object.prototype.propertyIsEnumerable;
36876
- var __defNormalProp$v = (obj, key, value) => key in obj ? __defProp$v(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
36877
- var __spreadValues$v = (a, b) => {
36918
+ var __defProp$w = Object.defineProperty;
36919
+ var __defProps$t = Object.defineProperties;
36920
+ var __getOwnPropDescs$t = Object.getOwnPropertyDescriptors;
36921
+ var __getOwnPropSymbols$C = Object.getOwnPropertySymbols;
36922
+ var __hasOwnProp$C = Object.prototype.hasOwnProperty;
36923
+ var __propIsEnum$C = Object.prototype.propertyIsEnumerable;
36924
+ var __defNormalProp$w = (obj, key, value) => key in obj ? __defProp$w(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
36925
+ var __spreadValues$w = (a, b) => {
36878
36926
  for (var prop in b || (b = {}))
36879
- if (__hasOwnProp$B.call(b, prop))
36880
- __defNormalProp$v(a, prop, b[prop]);
36881
- if (__getOwnPropSymbols$B)
36882
- for (var prop of __getOwnPropSymbols$B(b)) {
36883
- if (__propIsEnum$B.call(b, prop))
36884
- __defNormalProp$v(a, prop, b[prop]);
36927
+ if (__hasOwnProp$C.call(b, prop))
36928
+ __defNormalProp$w(a, prop, b[prop]);
36929
+ if (__getOwnPropSymbols$C)
36930
+ for (var prop of __getOwnPropSymbols$C(b)) {
36931
+ if (__propIsEnum$C.call(b, prop))
36932
+ __defNormalProp$w(a, prop, b[prop]);
36885
36933
  }
36886
36934
  return a;
36887
36935
  };
36888
- var __spreadProps$s = (a, b) => __defProps$s(a, __getOwnPropDescs$s(b));
36936
+ var __spreadProps$t = (a, b) => __defProps$t(a, __getOwnPropDescs$t(b));
36889
36937
  const useGetInsuranceFundingSourceAcceptedTerms = (params) => {
36890
36938
  const { client } = useShipEngine();
36891
- const queryParams = __spreadValues$v({}, params);
36892
- return reactQuery.useQuery(__spreadProps$s(__spreadValues$v({}, queryParams), {
36939
+ const queryParams = __spreadValues$w({}, params);
36940
+ return reactQuery.useQuery(__spreadProps$t(__spreadValues$w({}, queryParams), {
36893
36941
  onError,
36894
36942
  queryFn: () => client.fundingSources.insuranceAcceptedTerms(),
36895
36943
  queryKey: ["useGetInsuranceFundingSourceAcceptedTerms"],
@@ -36912,22 +36960,22 @@ const useGetInsuranceAccount = (insuranceProvider) => {
36912
36960
  });
36913
36961
  };
36914
36962
 
36915
- var __getOwnPropSymbols$A = Object.getOwnPropertySymbols;
36916
- var __hasOwnProp$A = Object.prototype.hasOwnProperty;
36917
- var __propIsEnum$A = Object.prototype.propertyIsEnumerable;
36918
- var __objRest$m = (source, exclude) => {
36963
+ var __getOwnPropSymbols$B = Object.getOwnPropertySymbols;
36964
+ var __hasOwnProp$B = Object.prototype.hasOwnProperty;
36965
+ var __propIsEnum$B = Object.prototype.propertyIsEnumerable;
36966
+ var __objRest$n = (source, exclude) => {
36919
36967
  var target = {};
36920
36968
  for (var prop in source)
36921
- if (__hasOwnProp$A.call(source, prop) && exclude.indexOf(prop) < 0)
36969
+ if (__hasOwnProp$B.call(source, prop) && exclude.indexOf(prop) < 0)
36922
36970
  target[prop] = source[prop];
36923
- if (source != null && __getOwnPropSymbols$A)
36924
- for (var prop of __getOwnPropSymbols$A(source)) {
36925
- if (exclude.indexOf(prop) < 0 && __propIsEnum$A.call(source, prop))
36971
+ if (source != null && __getOwnPropSymbols$B)
36972
+ for (var prop of __getOwnPropSymbols$B(source)) {
36973
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$B.call(source, prop))
36926
36974
  target[prop] = source[prop];
36927
36975
  }
36928
36976
  return target;
36929
36977
  };
36930
- var __async$E = (__this, __arguments, generator) => {
36978
+ var __async$H = (__this, __arguments, generator) => {
36931
36979
  return new Promise((resolve, reject) => {
36932
36980
  var fulfilled = (value) => {
36933
36981
  try {
@@ -36950,8 +36998,8 @@ var __async$E = (__this, __arguments, generator) => {
36950
36998
  const useAddInsuranceFunds = () => {
36951
36999
  const { client } = useShipEngine();
36952
37000
  return reactQuery.useMutation({
36953
- mutationFn: (_a) => __async$E(void 0, null, function* () {
36954
- var _b = _a, { insuranceProvider } = _b, rest = __objRest$m(_b, ["insuranceProvider"]);
37001
+ mutationFn: (_a) => __async$H(void 0, null, function* () {
37002
+ var _b = _a, { insuranceProvider } = _b, rest = __objRest$n(_b, ["insuranceProvider"]);
36955
37003
  const result = yield client.insurance.addFunds(insuranceProvider, rest);
36956
37004
  return result.data;
36957
37005
  }),
@@ -36960,6 +37008,57 @@ const useAddInsuranceFunds = () => {
36960
37008
  });
36961
37009
  };
36962
37010
 
37011
+ var __defProp$v = Object.defineProperty;
37012
+ var __defProps$s = Object.defineProperties;
37013
+ var __getOwnPropDescs$s = Object.getOwnPropertyDescriptors;
37014
+ var __getOwnPropSymbols$A = Object.getOwnPropertySymbols;
37015
+ var __hasOwnProp$A = Object.prototype.hasOwnProperty;
37016
+ var __propIsEnum$A = Object.prototype.propertyIsEnumerable;
37017
+ var __defNormalProp$v = (obj, key, value) => key in obj ? __defProp$v(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
37018
+ var __spreadValues$v = (a, b) => {
37019
+ for (var prop in b || (b = {}))
37020
+ if (__hasOwnProp$A.call(b, prop))
37021
+ __defNormalProp$v(a, prop, b[prop]);
37022
+ if (__getOwnPropSymbols$A)
37023
+ for (var prop of __getOwnPropSymbols$A(b)) {
37024
+ if (__propIsEnum$A.call(b, prop))
37025
+ __defNormalProp$v(a, prop, b[prop]);
37026
+ }
37027
+ return a;
37028
+ };
37029
+ var __spreadProps$s = (a, b) => __defProps$s(a, __getOwnPropDescs$s(b));
37030
+ var __async$G = (__this, __arguments, generator) => {
37031
+ return new Promise((resolve, reject) => {
37032
+ var fulfilled = (value) => {
37033
+ try {
37034
+ step(generator.next(value));
37035
+ } catch (e) {
37036
+ reject(e);
37037
+ }
37038
+ };
37039
+ var rejected = (value) => {
37040
+ try {
37041
+ step(generator.throw(value));
37042
+ } catch (e) {
37043
+ reject(e);
37044
+ }
37045
+ };
37046
+ var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
37047
+ step((generator = generator.apply(__this, __arguments)).next());
37048
+ });
37049
+ };
37050
+ const useCreateInvoiceAddress = (params) => {
37051
+ const { client } = useShipEngine();
37052
+ return reactQuery.useMutation(__spreadProps$s(__spreadValues$v({}, params), {
37053
+ mutationFn: (invoiceAddress) => __async$G(void 0, null, function* () {
37054
+ const result = yield client.invoiceAddress.create(invoiceAddress);
37055
+ return result.data;
37056
+ }),
37057
+ mutationKey: ["useCreateInvoiceAddress"],
37058
+ onError
37059
+ }));
37060
+ };
37061
+
36963
37062
  var __defProp$u = Object.defineProperty;
36964
37063
  var __defProps$r = Object.defineProperties;
36965
37064
  var __getOwnPropDescs$r = Object.getOwnPropertyDescriptors;
@@ -36979,7 +37078,7 @@ var __spreadValues$u = (a, b) => {
36979
37078
  return a;
36980
37079
  };
36981
37080
  var __spreadProps$r = (a, b) => __defProps$r(a, __getOwnPropDescs$r(b));
36982
- var __async$D = (__this, __arguments, generator) => {
37081
+ var __async$F = (__this, __arguments, generator) => {
36983
37082
  return new Promise((resolve, reject) => {
36984
37083
  var fulfilled = (value) => {
36985
37084
  try {
@@ -36999,14 +37098,14 @@ var __async$D = (__this, __arguments, generator) => {
36999
37098
  step((generator = generator.apply(__this, __arguments)).next());
37000
37099
  });
37001
37100
  };
37002
- const useCreateInvoiceAddress = (params) => {
37101
+ const useUpdateInvoiceAddress = (params) => {
37003
37102
  const { client } = useShipEngine();
37004
37103
  return reactQuery.useMutation(__spreadProps$r(__spreadValues$u({}, params), {
37005
- mutationFn: (invoiceAddress) => __async$D(void 0, null, function* () {
37006
- const result = yield client.invoiceAddress.create(invoiceAddress);
37104
+ mutationFn: (invoiceAddress) => __async$F(void 0, null, function* () {
37105
+ const result = yield client.invoiceAddress.update(invoiceAddress);
37007
37106
  return result.data;
37008
37107
  }),
37009
- mutationKey: ["useCreateInvoiceAddress"],
37108
+ mutationKey: ["useUpdateInvoiceAddress"],
37010
37109
  onError
37011
37110
  }));
37012
37111
  };
@@ -37030,7 +37129,17 @@ var __spreadValues$t = (a, b) => {
37030
37129
  return a;
37031
37130
  };
37032
37131
  var __spreadProps$q = (a, b) => __defProps$q(a, __getOwnPropDescs$q(b));
37033
- var __async$C = (__this, __arguments, generator) => {
37132
+ const useGetInvoiceAddress = (params) => {
37133
+ const { client } = useShipEngine();
37134
+ return reactQuery.useQuery(__spreadProps$q(__spreadValues$t({}, params), {
37135
+ onError,
37136
+ queryFn: () => client.invoiceAddress.get(),
37137
+ queryKey: ["useGetInvoiceAddress"],
37138
+ select: (result) => result.data
37139
+ }));
37140
+ };
37141
+
37142
+ var __async$E = (__this, __arguments, generator) => {
37034
37143
  return new Promise((resolve, reject) => {
37035
37144
  var fulfilled = (value) => {
37036
37145
  try {
@@ -37050,16 +37159,16 @@ var __async$C = (__this, __arguments, generator) => {
37050
37159
  step((generator = generator.apply(__this, __arguments)).next());
37051
37160
  });
37052
37161
  };
37053
- const useUpdateInvoiceAddress = (params) => {
37162
+ const useCancelRefund = () => {
37054
37163
  const { client } = useShipEngine();
37055
- return reactQuery.useMutation(__spreadProps$q(__spreadValues$t({}, params), {
37056
- mutationFn: (invoiceAddress) => __async$C(void 0, null, function* () {
37057
- const result = yield client.invoiceAddress.update(invoiceAddress);
37164
+ return reactQuery.useMutation({
37165
+ mutationFn: (labelId) => __async$E(void 0, null, function* () {
37166
+ const result = yield client.labels.cancelRefund(labelId);
37058
37167
  return result.data;
37059
37168
  }),
37060
- mutationKey: ["useUpdateInvoiceAddress"],
37169
+ mutationKey: ["useCancelRefund"],
37061
37170
  onError
37062
- }));
37171
+ });
37063
37172
  };
37064
37173
 
37065
37174
  var __defProp$s = Object.defineProperty;
@@ -37081,17 +37190,19 @@ var __spreadValues$s = (a, b) => {
37081
37190
  return a;
37082
37191
  };
37083
37192
  var __spreadProps$p = (a, b) => __defProps$p(a, __getOwnPropDescs$p(b));
37084
- const useGetInvoiceAddress = (params) => {
37085
- const { client } = useShipEngine();
37086
- return reactQuery.useQuery(__spreadProps$p(__spreadValues$s({}, params), {
37087
- onError,
37088
- queryFn: () => client.invoiceAddress.get(),
37089
- queryKey: ["useGetInvoiceAddress"],
37090
- select: (result) => result.data
37091
- }));
37193
+ var __objRest$m = (source, exclude) => {
37194
+ var target = {};
37195
+ for (var prop in source)
37196
+ if (__hasOwnProp$x.call(source, prop) && exclude.indexOf(prop) < 0)
37197
+ target[prop] = source[prop];
37198
+ if (source != null && __getOwnPropSymbols$x)
37199
+ for (var prop of __getOwnPropSymbols$x(source)) {
37200
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$x.call(source, prop))
37201
+ target[prop] = source[prop];
37202
+ }
37203
+ return target;
37092
37204
  };
37093
-
37094
- var __async$B = (__this, __arguments, generator) => {
37205
+ var __async$D = (__this, __arguments, generator) => {
37095
37206
  return new Promise((resolve, reject) => {
37096
37207
  var fulfilled = (value) => {
37097
37208
  try {
@@ -37111,16 +37222,17 @@ var __async$B = (__this, __arguments, generator) => {
37111
37222
  step((generator = generator.apply(__this, __arguments)).next());
37112
37223
  });
37113
37224
  };
37114
- const useCancelRefund = () => {
37225
+ const useCreateLabelByRateId = (params) => {
37115
37226
  const { client } = useShipEngine();
37116
- return reactQuery.useMutation({
37117
- mutationFn: (labelId) => __async$B(void 0, null, function* () {
37118
- const result = yield client.labels.cancelRefund(labelId);
37227
+ return reactQuery.useMutation(__spreadProps$p(__spreadValues$s({}, params), {
37228
+ mutationFn: (_a) => __async$D(void 0, null, function* () {
37229
+ var _b = _a, { rateId } = _b, options = __objRest$m(_b, ["rateId"]);
37230
+ const result = yield client.labels.createByRateId(rateId, options);
37119
37231
  return result.data;
37120
37232
  }),
37121
- mutationKey: ["useCancelRefund"],
37233
+ mutationKey: ["useCreateLabelByRateId"],
37122
37234
  onError
37123
- });
37235
+ }));
37124
37236
  };
37125
37237
 
37126
37238
  var __defProp$r = Object.defineProperty;
@@ -37154,7 +37266,7 @@ var __objRest$l = (source, exclude) => {
37154
37266
  }
37155
37267
  return target;
37156
37268
  };
37157
- var __async$A = (__this, __arguments, generator) => {
37269
+ var __async$C = (__this, __arguments, generator) => {
37158
37270
  return new Promise((resolve, reject) => {
37159
37271
  var fulfilled = (value) => {
37160
37272
  try {
@@ -37174,15 +37286,15 @@ var __async$A = (__this, __arguments, generator) => {
37174
37286
  step((generator = generator.apply(__this, __arguments)).next());
37175
37287
  });
37176
37288
  };
37177
- const useCreateLabelByRateId = (params) => {
37289
+ const useCreateLabelByShipmentId = (params) => {
37178
37290
  const { client } = useShipEngine();
37179
37291
  return reactQuery.useMutation(__spreadProps$o(__spreadValues$r({}, params), {
37180
- mutationFn: (_a) => __async$A(void 0, null, function* () {
37181
- var _b = _a, { rateId } = _b, options = __objRest$l(_b, ["rateId"]);
37182
- const result = yield client.labels.createByRateId(rateId, options);
37292
+ mutationFn: (_a) => __async$C(void 0, null, function* () {
37293
+ var _b = _a, { shipmentId } = _b, options = __objRest$l(_b, ["shipmentId"]);
37294
+ const result = yield client.labels.createByShipmentId(shipmentId, options);
37183
37295
  return result.data;
37184
37296
  }),
37185
- mutationKey: ["useCreateLabelByRateId"],
37297
+ mutationKey: ["useCreateLabelByShipmentId"],
37186
37298
  onError
37187
37299
  }));
37188
37300
  };
@@ -37218,7 +37330,7 @@ var __objRest$k = (source, exclude) => {
37218
37330
  }
37219
37331
  return target;
37220
37332
  };
37221
- var __async$z = (__this, __arguments, generator) => {
37333
+ var __async$B = (__this, __arguments, generator) => {
37222
37334
  return new Promise((resolve, reject) => {
37223
37335
  var fulfilled = (value) => {
37224
37336
  try {
@@ -37238,15 +37350,15 @@ var __async$z = (__this, __arguments, generator) => {
37238
37350
  step((generator = generator.apply(__this, __arguments)).next());
37239
37351
  });
37240
37352
  };
37241
- const useCreateLabelByShipmentId = (params) => {
37353
+ const useCreateLabel = (params) => {
37242
37354
  const { client } = useShipEngine();
37243
37355
  return reactQuery.useMutation(__spreadProps$n(__spreadValues$q({}, params), {
37244
- mutationFn: (_a) => __async$z(void 0, null, function* () {
37245
- var _b = _a, { shipmentId } = _b, options = __objRest$k(_b, ["shipmentId"]);
37246
- const result = yield client.labels.createByShipmentId(shipmentId, options);
37356
+ mutationFn: (_a) => __async$B(void 0, null, function* () {
37357
+ var _b = _a, { rateId } = _b, options = __objRest$k(_b, ["rateId"]);
37358
+ const result = yield client.labels.createByRateId(rateId, options);
37247
37359
  return result.data;
37248
37360
  }),
37249
- mutationKey: ["useCreateLabelByShipmentId"],
37361
+ mutationKey: ["useCreateLabel"],
37250
37362
  onError
37251
37363
  }));
37252
37364
  };
@@ -37282,39 +37394,31 @@ var __objRest$j = (source, exclude) => {
37282
37394
  }
37283
37395
  return target;
37284
37396
  };
37285
- var __async$y = (__this, __arguments, generator) => {
37286
- return new Promise((resolve, reject) => {
37287
- var fulfilled = (value) => {
37288
- try {
37289
- step(generator.next(value));
37290
- } catch (e) {
37291
- reject(e);
37292
- }
37293
- };
37294
- var rejected = (value) => {
37295
- try {
37296
- step(generator.throw(value));
37297
- } catch (e) {
37298
- reject(e);
37299
- }
37300
- };
37301
- var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
37302
- step((generator = generator.apply(__this, __arguments)).next());
37303
- });
37304
- };
37305
- const useCreateLabel = (params) => {
37397
+ const useExportLabels = (params) => {
37306
37398
  const { client } = useShipEngine();
37307
- return reactQuery.useMutation(__spreadProps$m(__spreadValues$p({}, params), {
37308
- mutationFn: (_a) => __async$y(void 0, null, function* () {
37309
- var _b = _a, { rateId } = _b, options = __objRest$j(_b, ["rateId"]);
37310
- const result = yield client.labels.createByRateId(rateId, options);
37311
- return result.data;
37312
- }),
37313
- mutationKey: ["useCreateLabel"],
37314
- onError
37399
+ const _a = __spreadValues$p({}, params), { queryFnParams } = _a, rest = __objRest$j(_a, ["queryFnParams"]);
37400
+ return reactQuery.useQuery(__spreadProps$m(__spreadValues$p({}, rest), {
37401
+ onError,
37402
+ queryFn: () => client.labels.export(queryFnParams),
37403
+ queryKey: ["useExportLabels", params]
37315
37404
  }));
37316
37405
  };
37317
37406
 
37407
+ const useGetLabel = (labelId) => {
37408
+ const { client } = useShipEngine();
37409
+ return reactQuery.useQuery({
37410
+ enabled: labelId !== void 0,
37411
+ onError,
37412
+ queryFn: () => {
37413
+ if (labelId)
37414
+ return client.labels.get(labelId);
37415
+ return Promise.reject(new Error("labelId is require"));
37416
+ },
37417
+ queryKey: ["useGetLabel", labelId],
37418
+ select: (result) => result.data
37419
+ });
37420
+ };
37421
+
37318
37422
  var __defProp$o = Object.defineProperty;
37319
37423
  var __defProps$l = Object.defineProperties;
37320
37424
  var __getOwnPropDescs$l = Object.getOwnPropertyDescriptors;
@@ -37346,29 +37450,15 @@ var __objRest$i = (source, exclude) => {
37346
37450
  }
37347
37451
  return target;
37348
37452
  };
37349
- const useExportLabels = (params) => {
37453
+ const useListLabels = (params) => {
37350
37454
  const { client } = useShipEngine();
37351
37455
  const _a = __spreadValues$o({}, params), { queryFnParams } = _a, rest = __objRest$i(_a, ["queryFnParams"]);
37352
37456
  return reactQuery.useQuery(__spreadProps$l(__spreadValues$o({}, rest), {
37353
37457
  onError,
37354
- queryFn: () => client.labels.export(queryFnParams),
37355
- queryKey: ["useExportLabels", params]
37356
- }));
37357
- };
37358
-
37359
- const useGetLabel = (labelId) => {
37360
- const { client } = useShipEngine();
37361
- return reactQuery.useQuery({
37362
- enabled: labelId !== void 0,
37363
- onError,
37364
- queryFn: () => {
37365
- if (labelId)
37366
- return client.labels.get(labelId);
37367
- return Promise.reject(new Error("labelId is require"));
37368
- },
37369
- queryKey: ["useGetLabel", labelId],
37458
+ queryFn: () => client.labels.list(queryFnParams),
37459
+ queryKey: ["useListLabels", params],
37370
37460
  select: (result) => result.data
37371
- });
37461
+ }));
37372
37462
  };
37373
37463
 
37374
37464
  var __defProp$n = Object.defineProperty;
@@ -37402,49 +37492,7 @@ var __objRest$h = (source, exclude) => {
37402
37492
  }
37403
37493
  return target;
37404
37494
  };
37405
- const useListLabels = (params) => {
37406
- const { client } = useShipEngine();
37407
- const _a = __spreadValues$n({}, params), { queryFnParams } = _a, rest = __objRest$h(_a, ["queryFnParams"]);
37408
- return reactQuery.useQuery(__spreadProps$k(__spreadValues$n({}, rest), {
37409
- onError,
37410
- queryFn: () => client.labels.list(queryFnParams),
37411
- queryKey: ["useListLabels", params],
37412
- select: (result) => result.data
37413
- }));
37414
- };
37415
-
37416
- var __defProp$m = Object.defineProperty;
37417
- var __defProps$j = Object.defineProperties;
37418
- var __getOwnPropDescs$j = Object.getOwnPropertyDescriptors;
37419
- var __getOwnPropSymbols$r = Object.getOwnPropertySymbols;
37420
- var __hasOwnProp$r = Object.prototype.hasOwnProperty;
37421
- var __propIsEnum$r = Object.prototype.propertyIsEnumerable;
37422
- var __defNormalProp$m = (obj, key, value) => key in obj ? __defProp$m(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
37423
- var __spreadValues$m = (a, b) => {
37424
- for (var prop in b || (b = {}))
37425
- if (__hasOwnProp$r.call(b, prop))
37426
- __defNormalProp$m(a, prop, b[prop]);
37427
- if (__getOwnPropSymbols$r)
37428
- for (var prop of __getOwnPropSymbols$r(b)) {
37429
- if (__propIsEnum$r.call(b, prop))
37430
- __defNormalProp$m(a, prop, b[prop]);
37431
- }
37432
- return a;
37433
- };
37434
- var __spreadProps$j = (a, b) => __defProps$j(a, __getOwnPropDescs$j(b));
37435
- var __objRest$g = (source, exclude) => {
37436
- var target = {};
37437
- for (var prop in source)
37438
- if (__hasOwnProp$r.call(source, prop) && exclude.indexOf(prop) < 0)
37439
- target[prop] = source[prop];
37440
- if (source != null && __getOwnPropSymbols$r)
37441
- for (var prop of __getOwnPropSymbols$r(source)) {
37442
- if (exclude.indexOf(prop) < 0 && __propIsEnum$r.call(source, prop))
37443
- target[prop] = source[prop];
37444
- }
37445
- return target;
37446
- };
37447
- var __async$x = (__this, __arguments, generator) => {
37495
+ var __async$A = (__this, __arguments, generator) => {
37448
37496
  return new Promise((resolve, reject) => {
37449
37497
  var fulfilled = (value) => {
37450
37498
  try {
@@ -37466,8 +37514,8 @@ var __async$x = (__this, __arguments, generator) => {
37466
37514
  };
37467
37515
  const useListLabelsInfinite = (params) => {
37468
37516
  const { client } = useShipEngine();
37469
- const _a = __spreadValues$m({}, params), { queryFnParams } = _a, rest = __objRest$g(_a, ["queryFnParams"]);
37470
- return reactQuery.useInfiniteQuery(__spreadProps$j(__spreadValues$m({}, rest), {
37517
+ const _a = __spreadValues$n({}, params), { queryFnParams } = _a, rest = __objRest$h(_a, ["queryFnParams"]);
37518
+ return reactQuery.useInfiniteQuery(__spreadProps$k(__spreadValues$n({}, rest), {
37471
37519
  getNextPageParam: (lastPage) => {
37472
37520
  if (lastPage.page < lastPage.pages) {
37473
37521
  return lastPage.page + 1;
@@ -37475,8 +37523,8 @@ const useListLabelsInfinite = (params) => {
37475
37523
  return void 0;
37476
37524
  },
37477
37525
  onError,
37478
- queryFn: (_0) => __async$x(void 0, [_0], function* ({ pageParam = 1 }) {
37479
- const response = yield client.labels.list(__spreadProps$j(__spreadValues$m({}, queryFnParams), { page: pageParam }));
37526
+ queryFn: (_0) => __async$A(void 0, [_0], function* ({ pageParam = 1 }) {
37527
+ const response = yield client.labels.list(__spreadProps$k(__spreadValues$n({}, queryFnParams), { page: pageParam }));
37480
37528
  return response.data;
37481
37529
  }),
37482
37530
  queryKey: ["useListLabelsInfinite", params],
@@ -37490,7 +37538,7 @@ const useListLabelsInfinite = (params) => {
37490
37538
  }));
37491
37539
  };
37492
37540
 
37493
- var __async$w = (__this, __arguments, generator) => {
37541
+ var __async$z = (__this, __arguments, generator) => {
37494
37542
  return new Promise((resolve, reject) => {
37495
37543
  var fulfilled = (value) => {
37496
37544
  try {
@@ -37513,7 +37561,7 @@ var __async$w = (__this, __arguments, generator) => {
37513
37561
  const useVoidLabel = () => {
37514
37562
  const { client } = useShipEngine();
37515
37563
  return reactQuery.useMutation({
37516
- mutationFn: (labelId) => __async$w(void 0, null, function* () {
37564
+ mutationFn: (labelId) => __async$z(void 0, null, function* () {
37517
37565
  const result = yield client.labels.void(labelId);
37518
37566
  return result.data;
37519
37567
  }),
@@ -37522,28 +37570,28 @@ const useVoidLabel = () => {
37522
37570
  });
37523
37571
  };
37524
37572
 
37525
- var __defProp$l = Object.defineProperty;
37526
- var __defProps$i = Object.defineProperties;
37527
- var __getOwnPropDescs$i = Object.getOwnPropertyDescriptors;
37528
- var __getOwnPropSymbols$q = Object.getOwnPropertySymbols;
37529
- var __hasOwnProp$q = Object.prototype.hasOwnProperty;
37530
- var __propIsEnum$q = Object.prototype.propertyIsEnumerable;
37531
- var __defNormalProp$l = (obj, key, value) => key in obj ? __defProp$l(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
37532
- var __spreadValues$l = (a, b) => {
37573
+ var __defProp$m = Object.defineProperty;
37574
+ var __defProps$j = Object.defineProperties;
37575
+ var __getOwnPropDescs$j = Object.getOwnPropertyDescriptors;
37576
+ var __getOwnPropSymbols$r = Object.getOwnPropertySymbols;
37577
+ var __hasOwnProp$r = Object.prototype.hasOwnProperty;
37578
+ var __propIsEnum$r = Object.prototype.propertyIsEnumerable;
37579
+ var __defNormalProp$m = (obj, key, value) => key in obj ? __defProp$m(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
37580
+ var __spreadValues$m = (a, b) => {
37533
37581
  for (var prop in b || (b = {}))
37534
- if (__hasOwnProp$q.call(b, prop))
37535
- __defNormalProp$l(a, prop, b[prop]);
37536
- if (__getOwnPropSymbols$q)
37537
- for (var prop of __getOwnPropSymbols$q(b)) {
37538
- if (__propIsEnum$q.call(b, prop))
37539
- __defNormalProp$l(a, prop, b[prop]);
37582
+ if (__hasOwnProp$r.call(b, prop))
37583
+ __defNormalProp$m(a, prop, b[prop]);
37584
+ if (__getOwnPropSymbols$r)
37585
+ for (var prop of __getOwnPropSymbols$r(b)) {
37586
+ if (__propIsEnum$r.call(b, prop))
37587
+ __defNormalProp$m(a, prop, b[prop]);
37540
37588
  }
37541
37589
  return a;
37542
37590
  };
37543
- var __spreadProps$i = (a, b) => __defProps$i(a, __getOwnPropDescs$i(b));
37591
+ var __spreadProps$j = (a, b) => __defProps$j(a, __getOwnPropDescs$j(b));
37544
37592
  const useListOrderSources = (params) => {
37545
37593
  const { client } = useShipEngine();
37546
- return reactQuery.useQuery(__spreadProps$i(__spreadValues$l({}, params), {
37594
+ return reactQuery.useQuery(__spreadProps$j(__spreadValues$m({}, params), {
37547
37595
  onError,
37548
37596
  queryFn: () => client.orderSources.list(),
37549
37597
  queryKey: ["useListOrderSources"],
@@ -37551,7 +37599,7 @@ const useListOrderSources = (params) => {
37551
37599
  }));
37552
37600
  };
37553
37601
 
37554
- var __async$v = (__this, __arguments, generator) => {
37602
+ var __async$y = (__this, __arguments, generator) => {
37555
37603
  return new Promise((resolve, reject) => {
37556
37604
  var fulfilled = (value) => {
37557
37605
  try {
@@ -37574,7 +37622,7 @@ var __async$v = (__this, __arguments, generator) => {
37574
37622
  const useRefreshOrderSourceAsync = () => {
37575
37623
  const { client } = useShipEngine();
37576
37624
  return reactQuery.useMutation({
37577
- mutationFn: (orderSourceId) => __async$v(void 0, null, function* () {
37625
+ mutationFn: (orderSourceId) => __async$y(void 0, null, function* () {
37578
37626
  const result = yield client.orderSources.refresh(orderSourceId);
37579
37627
  return result.data;
37580
37628
  }),
@@ -37585,9 +37633,9 @@ const useRefreshOrderSource = () => {
37585
37633
  const { client } = useShipEngine();
37586
37634
  const { mutateAsync: refreshOrderSourceAsync } = useRefreshOrderSourceAsync();
37587
37635
  return reactQuery.useMutation({
37588
- mutationFn: (orderSourceId) => __async$v(void 0, null, function* () {
37636
+ mutationFn: (orderSourceId) => __async$y(void 0, null, function* () {
37589
37637
  yield refreshOrderSourceAsync(orderSourceId);
37590
- const waitResult = yield retryUntil(() => __async$v(void 0, null, function* () {
37638
+ const waitResult = yield retryUntil(() => __async$y(void 0, null, function* () {
37591
37639
  const { data: checkResult } = yield client.orderSources.get(orderSourceId);
37592
37640
  if (["preparing_update", "updating"].includes(checkResult.refreshInfo.status)) {
37593
37641
  throw new CodedError("Order source is still refreshing");
@@ -37601,7 +37649,7 @@ const useRefreshOrderSource = () => {
37601
37649
  });
37602
37650
  };
37603
37651
 
37604
- var __async$u = (__this, __arguments, generator) => {
37652
+ var __async$x = (__this, __arguments, generator) => {
37605
37653
  return new Promise((resolve, reject) => {
37606
37654
  var fulfilled = (value) => {
37607
37655
  try {
@@ -37624,7 +37672,7 @@ var __async$u = (__this, __arguments, generator) => {
37624
37672
  const useDeactivateOrderSource = () => {
37625
37673
  const { client } = useShipEngine();
37626
37674
  return reactQuery.useMutation({
37627
- mutationFn: (orderSourceId) => __async$u(void 0, null, function* () {
37675
+ mutationFn: (orderSourceId) => __async$x(void 0, null, function* () {
37628
37676
  const result = yield client.orderSources.deactivate(orderSourceId);
37629
37677
  return result.data;
37630
37678
  }),
@@ -37643,7 +37691,7 @@ const useListOrderSourcesConnections = () => {
37643
37691
  });
37644
37692
  };
37645
37693
 
37646
- var __async$t = (__this, __arguments, generator) => {
37694
+ var __async$w = (__this, __arguments, generator) => {
37647
37695
  return new Promise((resolve, reject) => {
37648
37696
  var fulfilled = (value) => {
37649
37697
  try {
@@ -37666,7 +37714,7 @@ var __async$t = (__this, __arguments, generator) => {
37666
37714
  const useUpdateOrderSource = () => {
37667
37715
  const { client } = useShipEngine();
37668
37716
  return reactQuery.useMutation({
37669
- mutationFn: (params) => __async$t(void 0, null, function* () {
37717
+ mutationFn: (params) => __async$w(void 0, null, function* () {
37670
37718
  const result = yield client.orderSources.update(params);
37671
37719
  return result.data;
37672
37720
  }),
@@ -37675,7 +37723,7 @@ const useUpdateOrderSource = () => {
37675
37723
  });
37676
37724
  };
37677
37725
 
37678
- var __async$s = (__this, __arguments, generator) => {
37726
+ var __async$v = (__this, __arguments, generator) => {
37679
37727
  return new Promise((resolve, reject) => {
37680
37728
  var fulfilled = (value) => {
37681
37729
  try {
@@ -37698,7 +37746,7 @@ var __async$s = (__this, __arguments, generator) => {
37698
37746
  const useCreateRateCard = () => {
37699
37747
  const { client } = useShipEngine();
37700
37748
  return reactQuery.useMutation({
37701
- mutationFn: (rateCard) => __async$s(void 0, null, function* () {
37749
+ mutationFn: (rateCard) => __async$v(void 0, null, function* () {
37702
37750
  const result = yield client.rateCards.create(rateCard);
37703
37751
  return result.data;
37704
37752
  }),
@@ -37745,7 +37793,7 @@ const useListRateCards = (carrierIds) => {
37745
37793
  });
37746
37794
  };
37747
37795
 
37748
- var __async$r = (__this, __arguments, generator) => {
37796
+ var __async$u = (__this, __arguments, generator) => {
37749
37797
  return new Promise((resolve, reject) => {
37750
37798
  var fulfilled = (value) => {
37751
37799
  try {
@@ -37768,7 +37816,7 @@ var __async$r = (__this, __arguments, generator) => {
37768
37816
  const usePublishRateCard = () => {
37769
37817
  const { client } = useShipEngine();
37770
37818
  return reactQuery.useMutation({
37771
- mutationFn: (rateCardId) => __async$r(void 0, null, function* () {
37819
+ mutationFn: (rateCardId) => __async$u(void 0, null, function* () {
37772
37820
  return yield client.rateCards.publish(rateCardId);
37773
37821
  }),
37774
37822
  mutationKey: ["usePublishRateCard"],
@@ -37776,7 +37824,7 @@ const usePublishRateCard = () => {
37776
37824
  });
37777
37825
  };
37778
37826
 
37779
- var __async$q = (__this, __arguments, generator) => {
37827
+ var __async$t = (__this, __arguments, generator) => {
37780
37828
  return new Promise((resolve, reject) => {
37781
37829
  var fulfilled = (value) => {
37782
37830
  try {
@@ -37799,7 +37847,7 @@ var __async$q = (__this, __arguments, generator) => {
37799
37847
  const useUpdateRateCard = () => {
37800
37848
  const { client } = useShipEngine();
37801
37849
  return reactQuery.useMutation({
37802
- mutationFn: (rateCard) => __async$q(void 0, null, function* () {
37850
+ mutationFn: (rateCard) => __async$t(void 0, null, function* () {
37803
37851
  const result = yield client.rateCards.update(rateCard);
37804
37852
  return result.data;
37805
37853
  }),
@@ -37808,7 +37856,7 @@ const useUpdateRateCard = () => {
37808
37856
  });
37809
37857
  };
37810
37858
 
37811
- var __async$p = (__this, __arguments, generator) => {
37859
+ var __async$s = (__this, __arguments, generator) => {
37812
37860
  return new Promise((resolve, reject) => {
37813
37861
  var fulfilled = (value) => {
37814
37862
  try {
@@ -37831,7 +37879,7 @@ var __async$p = (__this, __arguments, generator) => {
37831
37879
  const useUploadRateCard = () => {
37832
37880
  const { client } = useShipEngine();
37833
37881
  return reactQuery.useMutation({
37834
- mutationFn: (_0) => __async$p(void 0, [_0], function* ({ rateCardId, file }) {
37882
+ mutationFn: (_0) => __async$s(void 0, [_0], function* ({ rateCardId, file }) {
37835
37883
  const result = yield client.rateCards.upload(rateCardId, file);
37836
37884
  return result.data;
37837
37885
  }),
@@ -37840,7 +37888,7 @@ const useUploadRateCard = () => {
37840
37888
  });
37841
37889
  };
37842
37890
 
37843
- var __async$o = (__this, __arguments, generator) => {
37891
+ var __async$r = (__this, __arguments, generator) => {
37844
37892
  return new Promise((resolve, reject) => {
37845
37893
  var fulfilled = (value) => {
37846
37894
  try {
@@ -37863,7 +37911,7 @@ var __async$o = (__this, __arguments, generator) => {
37863
37911
  const useDeleteRateCard = () => {
37864
37912
  const { client } = useShipEngine();
37865
37913
  return reactQuery.useMutation({
37866
- mutationFn: (rateCardId) => __async$o(void 0, null, function* () {
37914
+ mutationFn: (rateCardId) => __async$r(void 0, null, function* () {
37867
37915
  const result = yield client.rateCards.delete(rateCardId);
37868
37916
  return result.data;
37869
37917
  }),
@@ -37872,6 +37920,156 @@ const useDeleteRateCard = () => {
37872
37920
  });
37873
37921
  };
37874
37922
 
37923
+ var __defProp$l = Object.defineProperty;
37924
+ var __defProps$i = Object.defineProperties;
37925
+ var __getOwnPropDescs$i = Object.getOwnPropertyDescriptors;
37926
+ var __getOwnPropSymbols$q = Object.getOwnPropertySymbols;
37927
+ var __hasOwnProp$q = Object.prototype.hasOwnProperty;
37928
+ var __propIsEnum$q = Object.prototype.propertyIsEnumerable;
37929
+ var __defNormalProp$l = (obj, key, value) => key in obj ? __defProp$l(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
37930
+ var __spreadValues$l = (a, b) => {
37931
+ for (var prop in b || (b = {}))
37932
+ if (__hasOwnProp$q.call(b, prop))
37933
+ __defNormalProp$l(a, prop, b[prop]);
37934
+ if (__getOwnPropSymbols$q)
37935
+ for (var prop of __getOwnPropSymbols$q(b)) {
37936
+ if (__propIsEnum$q.call(b, prop))
37937
+ __defNormalProp$l(a, prop, b[prop]);
37938
+ }
37939
+ return a;
37940
+ };
37941
+ var __spreadProps$i = (a, b) => __defProps$i(a, __getOwnPropDescs$i(b));
37942
+ var __objRest$g = (source, exclude) => {
37943
+ var target = {};
37944
+ for (var prop in source)
37945
+ if (__hasOwnProp$q.call(source, prop) && exclude.indexOf(prop) < 0)
37946
+ target[prop] = source[prop];
37947
+ if (source != null && __getOwnPropSymbols$q)
37948
+ for (var prop of __getOwnPropSymbols$q(source)) {
37949
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$q.call(source, prop))
37950
+ target[prop] = source[prop];
37951
+ }
37952
+ return target;
37953
+ };
37954
+ const useListRateShoppers = (params) => {
37955
+ const { client } = useShipEngine();
37956
+ const _a = __spreadValues$l({}, params), { queryFnParams } = _a, rest = __objRest$g(_a, ["queryFnParams"]);
37957
+ return reactQuery.useQuery(__spreadProps$i(__spreadValues$l({}, rest), {
37958
+ onError,
37959
+ queryFn: () => client.rateShoppers.list(queryFnParams),
37960
+ queryKey: ["useListRateShoppers", params],
37961
+ select: (result) => result.data
37962
+ }));
37963
+ };
37964
+
37965
+ const useGetRateShopper = (rateShopperId) => {
37966
+ const { client } = useShipEngine();
37967
+ return reactQuery.useQuery({
37968
+ onError,
37969
+ queryFn: () => {
37970
+ return client.rateShoppers.get(rateShopperId);
37971
+ },
37972
+ queryKey: ["useGetRateShopper", rateShopperId],
37973
+ select: (result) => result.data
37974
+ });
37975
+ };
37976
+
37977
+ var __async$q = (__this, __arguments, generator) => {
37978
+ return new Promise((resolve, reject) => {
37979
+ var fulfilled = (value) => {
37980
+ try {
37981
+ step(generator.next(value));
37982
+ } catch (e) {
37983
+ reject(e);
37984
+ }
37985
+ };
37986
+ var rejected = (value) => {
37987
+ try {
37988
+ step(generator.throw(value));
37989
+ } catch (e) {
37990
+ reject(e);
37991
+ }
37992
+ };
37993
+ var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
37994
+ step((generator = generator.apply(__this, __arguments)).next());
37995
+ });
37996
+ };
37997
+ const useCreateRateShopper = () => {
37998
+ const { client } = useShipEngine();
37999
+ return reactQuery.useMutation({
38000
+ mutationFn: (request) => __async$q(void 0, null, function* () {
38001
+ const result = yield client.rateShoppers.create(request);
38002
+ return result.data;
38003
+ }),
38004
+ mutationKey: ["useCreateRateShopper"],
38005
+ onError
38006
+ });
38007
+ };
38008
+
38009
+ var __async$p = (__this, __arguments, generator) => {
38010
+ return new Promise((resolve, reject) => {
38011
+ var fulfilled = (value) => {
38012
+ try {
38013
+ step(generator.next(value));
38014
+ } catch (e) {
38015
+ reject(e);
38016
+ }
38017
+ };
38018
+ var rejected = (value) => {
38019
+ try {
38020
+ step(generator.throw(value));
38021
+ } catch (e) {
38022
+ reject(e);
38023
+ }
38024
+ };
38025
+ var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
38026
+ step((generator = generator.apply(__this, __arguments)).next());
38027
+ });
38028
+ };
38029
+ const useEditRateShopper = () => {
38030
+ const { client } = useShipEngine();
38031
+ return reactQuery.useMutation({
38032
+ mutationFn: (_0) => __async$p(void 0, [_0], function* ({ rateShopperId, request }) {
38033
+ const result = yield client.rateShoppers.edit(rateShopperId, request);
38034
+ return result.data;
38035
+ }),
38036
+ mutationKey: ["useEditRateShopper"],
38037
+ onError
38038
+ });
38039
+ };
38040
+
38041
+ var __async$o = (__this, __arguments, generator) => {
38042
+ return new Promise((resolve, reject) => {
38043
+ var fulfilled = (value) => {
38044
+ try {
38045
+ step(generator.next(value));
38046
+ } catch (e) {
38047
+ reject(e);
38048
+ }
38049
+ };
38050
+ var rejected = (value) => {
38051
+ try {
38052
+ step(generator.throw(value));
38053
+ } catch (e) {
38054
+ reject(e);
38055
+ }
38056
+ };
38057
+ var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
38058
+ step((generator = generator.apply(__this, __arguments)).next());
38059
+ });
38060
+ };
38061
+ const useDeleteRateShopper = () => {
38062
+ const { client } = useShipEngine();
38063
+ return reactQuery.useMutation({
38064
+ mutationFn: (rateShopperId) => __async$o(void 0, null, function* () {
38065
+ const result = yield client.rateShoppers.delete(rateShopperId);
38066
+ return result.data;
38067
+ }),
38068
+ mutationKey: ["useDeleteRateShopper"],
38069
+ onError
38070
+ });
38071
+ };
38072
+
37875
38073
  var __async$n = (__this, __arguments, generator) => {
37876
38074
  return new Promise((resolve, reject) => {
37877
38075
  var fulfilled = (value) => {
@@ -40699,6 +40897,7 @@ exports.MovementIndicator = MovementIndicator;
40699
40897
  exports.OrderSourcesAPI = OrderSourcesAPI;
40700
40898
  exports.RateCardStatus = RateCardStatus;
40701
40899
  exports.RateCardsAPI = RateCardsAPI;
40900
+ exports.RateShoppersAPI = RateShoppersAPI;
40702
40901
  exports.RatesAPI = RatesAPI;
40703
40902
  exports.SE = types;
40704
40903
  exports.SalesOrderShipmentsAPI = SalesOrderShipmentsAPI;
@@ -40749,6 +40948,7 @@ exports.useCreateLabel = useCreateLabel;
40749
40948
  exports.useCreateLabelByRateId = useCreateLabelByRateId;
40750
40949
  exports.useCreateLabelByShipmentId = useCreateLabelByShipmentId;
40751
40950
  exports.useCreateRateCard = useCreateRateCard;
40951
+ exports.useCreateRateShopper = useCreateRateShopper;
40752
40952
  exports.useCreateSalesOrderShipment = useCreateSalesOrderShipment;
40753
40953
  exports.useCreateSandboxSeller = useCreateSandboxSeller;
40754
40954
  exports.useCreateSellerApiKey = useCreateSellerApiKey;
@@ -40761,6 +40961,7 @@ exports.useDeleteAccountImage = useDeleteAccountImage;
40761
40961
  exports.useDeleteCarrier = useDeleteCarrier;
40762
40962
  exports.useDeletePaymentMethod = useDeletePaymentMethod;
40763
40963
  exports.useDeleteRateCard = useDeleteRateCard;
40964
+ exports.useDeleteRateShopper = useDeleteRateShopper;
40764
40965
  exports.useDeleteSellerApiKey = useDeleteSellerApiKey;
40765
40966
  exports.useDeleteShippingRule = useDeleteShippingRule;
40766
40967
  exports.useDeleteWarehouse = useDeleteWarehouse;
@@ -40768,6 +40969,7 @@ exports.useDeleteWebhook = useDeleteWebhook;
40768
40969
  exports.useDisableAccountAddon = useDisableAccountAddon;
40769
40970
  exports.useDisableRefundAssist = useDisableRefundAssist;
40770
40971
  exports.useDownloadRateCard = useDownloadRateCard;
40972
+ exports.useEditRateShopper = useEditRateShopper;
40771
40973
  exports.useEditShippingRule = useEditShippingRule;
40772
40974
  exports.useEnableAccountAddon = useEnableAccountAddon;
40773
40975
  exports.useEnableRefundAssist = useEnableRefundAssist;
@@ -40798,6 +41000,7 @@ exports.useGetPackageRatingGroupByCarrier = useGetPackageRatingGroupByCarrier;
40798
41000
  exports.useGetPaymentAccount = useGetPaymentAccount;
40799
41001
  exports.useGetPaymentMethods = useGetPaymentMethods;
40800
41002
  exports.useGetRateCardById = useGetRateCardById;
41003
+ exports.useGetRateShopper = useGetRateShopper;
40801
41004
  exports.useGetRefundAssist = useGetRefundAssist;
40802
41005
  exports.useGetSalesOrder = useGetSalesOrder;
40803
41006
  exports.useGetSalesOrderByExternalOrderId = useGetSalesOrderByExternalOrderId;
@@ -40824,6 +41027,7 @@ exports.useListLabelsInfinite = useListLabelsInfinite;
40824
41027
  exports.useListOrderSources = useListOrderSources;
40825
41028
  exports.useListOrderSourcesConnections = useListOrderSourcesConnections;
40826
41029
  exports.useListRateCards = useListRateCards;
41030
+ exports.useListRateShoppers = useListRateShoppers;
40827
41031
  exports.useListSalesOrderShipments = useListSalesOrderShipments;
40828
41032
  exports.useListSalesOrderShipmentsByExternalOrderId = useListSalesOrderShipmentsByExternalOrderId;
40829
41033
  exports.useListSalesOrders = useListSalesOrders;