@shipengine/alchemy 6.0.35 → 6.0.37

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 +788 -677
  2. package/index.mjs +784 -678
  3. package/package.json +1 -1
package/index.mjs CHANGED
@@ -10790,17 +10790,17 @@ var AccountBillingPlanChangeType = /* @__PURE__ */ ((AccountBillingPlanChangeTyp
10790
10790
  return AccountBillingPlanChangeType2;
10791
10791
  })(AccountBillingPlanChangeType || {});
10792
10792
 
10793
- var __getOwnPropSymbols$J = Object.getOwnPropertySymbols;
10794
- var __hasOwnProp$J = Object.prototype.hasOwnProperty;
10795
- var __propIsEnum$J = Object.prototype.propertyIsEnumerable;
10793
+ var __getOwnPropSymbols$L = Object.getOwnPropertySymbols;
10794
+ var __hasOwnProp$L = Object.prototype.hasOwnProperty;
10795
+ var __propIsEnum$L = Object.prototype.propertyIsEnumerable;
10796
10796
  var __objRest$q = (source, exclude) => {
10797
10797
  var target = {};
10798
10798
  for (var prop in source)
10799
- if (__hasOwnProp$J.call(source, prop) && exclude.indexOf(prop) < 0)
10799
+ if (__hasOwnProp$L.call(source, prop) && exclude.indexOf(prop) < 0)
10800
10800
  target[prop] = source[prop];
10801
- if (source != null && __getOwnPropSymbols$J)
10802
- for (var prop of __getOwnPropSymbols$J(source)) {
10803
- if (exclude.indexOf(prop) < 0 && __propIsEnum$J.call(source, prop))
10801
+ if (source != null && __getOwnPropSymbols$L)
10802
+ for (var prop of __getOwnPropSymbols$L(source)) {
10803
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$L.call(source, prop))
10804
10804
  target[prop] = source[prop];
10805
10805
  }
10806
10806
  return target;
@@ -10935,17 +10935,17 @@ const types = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
10935
10935
  RateCardStatus
10936
10936
  }, Symbol.toStringTag, { value: 'Module' }));
10937
10937
 
10938
- var __getOwnPropSymbols$I = Object.getOwnPropertySymbols;
10939
- var __hasOwnProp$I = Object.prototype.hasOwnProperty;
10940
- var __propIsEnum$I = Object.prototype.propertyIsEnumerable;
10938
+ var __getOwnPropSymbols$K = Object.getOwnPropertySymbols;
10939
+ var __hasOwnProp$K = Object.prototype.hasOwnProperty;
10940
+ var __propIsEnum$K = Object.prototype.propertyIsEnumerable;
10941
10941
  var __objRest$p = (source, exclude) => {
10942
10942
  var target = {};
10943
10943
  for (var prop in source)
10944
- if (__hasOwnProp$I.call(source, prop) && exclude.indexOf(prop) < 0)
10944
+ if (__hasOwnProp$K.call(source, prop) && exclude.indexOf(prop) < 0)
10945
10945
  target[prop] = source[prop];
10946
- if (source != null && __getOwnPropSymbols$I)
10947
- for (var prop of __getOwnPropSymbols$I(source)) {
10948
- if (exclude.indexOf(prop) < 0 && __propIsEnum$I.call(source, prop))
10946
+ if (source != null && __getOwnPropSymbols$K)
10947
+ for (var prop of __getOwnPropSymbols$K(source)) {
10948
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$K.call(source, prop))
10949
10949
  target[prop] = source[prop];
10950
10950
  }
10951
10951
  return target;
@@ -11036,6 +11036,44 @@ class AuctanePayAPI {
11036
11036
  }
11037
11037
  }
11038
11038
 
11039
+ class AccountBillingPlanAPI {
11040
+ constructor(client) {
11041
+ this.client = client;
11042
+ /**
11043
+ * The `get` method retrieves the account billing plan for the current user.
11044
+ */
11045
+ this.get = () => {
11046
+ return this.client.get("/v1/account/billing_plan");
11047
+ };
11048
+ /**
11049
+ * The `update` method updates the code of the account billing plan
11050
+ */
11051
+ this.update = (reqBody) => {
11052
+ return this.client.put(`/v1/account/billing_plan`, reqBody);
11053
+ };
11054
+ this.client = client;
11055
+ }
11056
+ }
11057
+
11058
+ class AccountBillingAPI {
11059
+ constructor(client) {
11060
+ this.client = client;
11061
+ /**
11062
+ * The `get` method retrieves the account billing for the current user.
11063
+ */
11064
+ this.get = () => {
11065
+ return this.client.get("/v1/account/billing");
11066
+ };
11067
+ /**
11068
+ * The `post` method updates (or create) the Billing Info for the current user.
11069
+ */
11070
+ this.post = (reqBody) => {
11071
+ return this.client.post("/v1/account/billing", reqBody);
11072
+ };
11073
+ this.client = client;
11074
+ }
11075
+ }
11076
+
11039
11077
  const isCodedErrors = (errs) => Array.isArray(errs) && errs.every((err) => isCodedError(err));
11040
11078
  const isCodedError = (err) => !!err.errorCode;
11041
11079
  const isDataCodedErrors = (data) => !!data.errors && isCodedErrors(data.errors);
@@ -13703,7 +13741,7 @@ var ipaddr = {
13703
13741
  }).call(commonjsGlobal);
13704
13742
  } (ipaddr));
13705
13743
 
13706
- var __async$Z = (__this, __arguments, generator) => {
13744
+ var __async$_ = (__this, __arguments, generator) => {
13707
13745
  return new Promise((resolve, reject) => {
13708
13746
  var fulfilled = (value) => {
13709
13747
  try {
@@ -13723,7 +13761,7 @@ var __async$Z = (__this, __arguments, generator) => {
13723
13761
  step((generator = generator.apply(__this, __arguments)).next());
13724
13762
  });
13725
13763
  };
13726
- const getEndUserIpAddress = () => __async$Z(void 0, null, function* () {
13764
+ const getEndUserIpAddress = () => __async$_(void 0, null, function* () {
13727
13765
  try {
13728
13766
  const response = yield axios.get("https://api.ipify.org/?format=json");
13729
13767
  if (response.data.ip && ipaddrExports.isValid(response.data.ip)) {
@@ -13780,38 +13818,38 @@ const decamelizeKeys = (obj, separator = "_") => {
13780
13818
  return obj;
13781
13819
  };
13782
13820
 
13783
- var __defProp$w = Object.defineProperty;
13784
- var __defProps$q = Object.defineProperties;
13785
- var __getOwnPropDescs$q = Object.getOwnPropertyDescriptors;
13786
- var __getOwnPropSymbols$H = Object.getOwnPropertySymbols;
13787
- var __hasOwnProp$H = Object.prototype.hasOwnProperty;
13788
- var __propIsEnum$H = Object.prototype.propertyIsEnumerable;
13789
- var __defNormalProp$w = (obj, key, value) => key in obj ? __defProp$w(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
13790
- var __spreadValues$w = (a, b) => {
13821
+ var __defProp$y = Object.defineProperty;
13822
+ var __defProps$s = Object.defineProperties;
13823
+ var __getOwnPropDescs$s = Object.getOwnPropertyDescriptors;
13824
+ var __getOwnPropSymbols$J = Object.getOwnPropertySymbols;
13825
+ var __hasOwnProp$J = Object.prototype.hasOwnProperty;
13826
+ var __propIsEnum$J = Object.prototype.propertyIsEnumerable;
13827
+ var __defNormalProp$y = (obj, key, value) => key in obj ? __defProp$y(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
13828
+ var __spreadValues$y = (a, b) => {
13791
13829
  for (var prop in b || (b = {}))
13792
- if (__hasOwnProp$H.call(b, prop))
13793
- __defNormalProp$w(a, prop, b[prop]);
13794
- if (__getOwnPropSymbols$H)
13795
- for (var prop of __getOwnPropSymbols$H(b)) {
13796
- if (__propIsEnum$H.call(b, prop))
13797
- __defNormalProp$w(a, prop, b[prop]);
13830
+ if (__hasOwnProp$J.call(b, prop))
13831
+ __defNormalProp$y(a, prop, b[prop]);
13832
+ if (__getOwnPropSymbols$J)
13833
+ for (var prop of __getOwnPropSymbols$J(b)) {
13834
+ if (__propIsEnum$J.call(b, prop))
13835
+ __defNormalProp$y(a, prop, b[prop]);
13798
13836
  }
13799
13837
  return a;
13800
13838
  };
13801
- var __spreadProps$q = (a, b) => __defProps$q(a, __getOwnPropDescs$q(b));
13839
+ var __spreadProps$s = (a, b) => __defProps$s(a, __getOwnPropDescs$s(b));
13802
13840
  var __objRest$o = (source, exclude) => {
13803
13841
  var target = {};
13804
13842
  for (var prop in source)
13805
- if (__hasOwnProp$H.call(source, prop) && exclude.indexOf(prop) < 0)
13843
+ if (__hasOwnProp$J.call(source, prop) && exclude.indexOf(prop) < 0)
13806
13844
  target[prop] = source[prop];
13807
- if (source != null && __getOwnPropSymbols$H)
13808
- for (var prop of __getOwnPropSymbols$H(source)) {
13809
- if (exclude.indexOf(prop) < 0 && __propIsEnum$H.call(source, prop))
13845
+ if (source != null && __getOwnPropSymbols$J)
13846
+ for (var prop of __getOwnPropSymbols$J(source)) {
13847
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$J.call(source, prop))
13810
13848
  target[prop] = source[prop];
13811
13849
  }
13812
13850
  return target;
13813
13851
  };
13814
- var __async$Y = (__this, __arguments, generator) => {
13852
+ var __async$Z = (__this, __arguments, generator) => {
13815
13853
  return new Promise((resolve, reject) => {
13816
13854
  var fulfilled = (value) => {
13817
13855
  try {
@@ -13851,12 +13889,12 @@ class CarriersAPI {
13851
13889
  /**
13852
13890
  * The `connect` method connects a carrier account to a user's ShipEngine account.
13853
13891
  */
13854
- this.connect = (_a) => __async$Y(this, null, function* () {
13892
+ this.connect = (_a) => __async$Z(this, null, function* () {
13855
13893
  var _b = _a, { carrierCode } = _b, connection = __objRest$o(_b, ["carrierCode"]);
13856
13894
  const endUserIpAddress = yield getEndUserIpAddress();
13857
13895
  if (!endUserIpAddress)
13858
13896
  return Promise.reject([new CodedError("Unable to get IP address")]);
13859
- return yield this.client.post(`/v1/registration/${carrierCode}`, __spreadProps$q(__spreadValues$w({}, connection), {
13897
+ return yield this.client.post(`/v1/registration/${carrierCode}`, __spreadProps$s(__spreadValues$y({}, connection), {
13860
13898
  endUserIpAddress
13861
13899
  }));
13862
13900
  });
@@ -13942,7 +13980,7 @@ class CarriersAPI {
13942
13980
  }
13943
13981
  }
13944
13982
 
13945
- var __async$X = (__this, __arguments, generator) => {
13983
+ var __async$Y = (__this, __arguments, generator) => {
13946
13984
  return new Promise((resolve, reject) => {
13947
13985
  var fulfilled = (value) => {
13948
13986
  try {
@@ -13984,7 +14022,7 @@ class ConnectionsAPI {
13984
14022
  /**
13985
14023
  * The `connectCarrier` method connects a carrier to account.
13986
14024
  */
13987
- this.connectCarrier = (carrierName, formData) => __async$X(this, null, function* () {
14025
+ this.connectCarrier = (carrierName, formData) => __async$Y(this, null, function* () {
13988
14026
  return yield this.client.post(
13989
14027
  `/v1/connections/carriers/${carrierName}`,
13990
14028
  formData,
@@ -16127,25 +16165,6 @@ var lib = {
16127
16165
  stringify: stringify
16128
16166
  };
16129
16167
 
16130
- class AccountBillingPlanAPI {
16131
- constructor(client) {
16132
- this.client = client;
16133
- /**
16134
- * The `get` method retrieves the account billing plan for the current user.
16135
- */
16136
- this.get = () => {
16137
- return this.client.get("/v1/account/billing_plan");
16138
- };
16139
- /**
16140
- * The `update` method updates the code of the account billing plan
16141
- */
16142
- this.update = (reqBody) => {
16143
- return this.client.put(`/v1/account/billing_plan`, reqBody);
16144
- };
16145
- this.client = client;
16146
- }
16147
- }
16148
-
16149
16168
  class CustomPackagesAPI {
16150
16169
  constructor(client) {
16151
16170
  this.client = client;
@@ -16159,23 +16178,23 @@ class CustomPackagesAPI {
16159
16178
  }
16160
16179
  }
16161
16180
 
16162
- var __defProp$v = Object.defineProperty;
16163
- var __getOwnPropSymbols$G = Object.getOwnPropertySymbols;
16164
- var __hasOwnProp$G = Object.prototype.hasOwnProperty;
16165
- var __propIsEnum$G = Object.prototype.propertyIsEnumerable;
16166
- var __defNormalProp$v = (obj, key, value) => key in obj ? __defProp$v(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
16167
- var __spreadValues$v = (a, b) => {
16181
+ var __defProp$x = Object.defineProperty;
16182
+ var __getOwnPropSymbols$I = Object.getOwnPropertySymbols;
16183
+ var __hasOwnProp$I = Object.prototype.hasOwnProperty;
16184
+ var __propIsEnum$I = Object.prototype.propertyIsEnumerable;
16185
+ var __defNormalProp$x = (obj, key, value) => key in obj ? __defProp$x(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
16186
+ var __spreadValues$x = (a, b) => {
16168
16187
  for (var prop in b || (b = {}))
16169
- if (__hasOwnProp$G.call(b, prop))
16170
- __defNormalProp$v(a, prop, b[prop]);
16171
- if (__getOwnPropSymbols$G)
16172
- for (var prop of __getOwnPropSymbols$G(b)) {
16173
- if (__propIsEnum$G.call(b, prop))
16174
- __defNormalProp$v(a, prop, b[prop]);
16188
+ if (__hasOwnProp$I.call(b, prop))
16189
+ __defNormalProp$x(a, prop, b[prop]);
16190
+ if (__getOwnPropSymbols$I)
16191
+ for (var prop of __getOwnPropSymbols$I(b)) {
16192
+ if (__propIsEnum$I.call(b, prop))
16193
+ __defNormalProp$x(a, prop, b[prop]);
16175
16194
  }
16176
16195
  return a;
16177
16196
  };
16178
- var __async$W = (__this, __arguments, generator) => {
16197
+ var __async$X = (__this, __arguments, generator) => {
16179
16198
  return new Promise((resolve, reject) => {
16180
16199
  var fulfilled = (value) => {
16181
16200
  try {
@@ -16214,12 +16233,12 @@ class FundingSourcesAPI {
16214
16233
  * The `create` method creates a new funding source for a given user. This requires
16215
16234
  * payment information to be collected from the user.
16216
16235
  */
16217
- this.create = (createFundingSource) => __async$W(this, null, function* () {
16236
+ this.create = (createFundingSource) => __async$X(this, null, function* () {
16218
16237
  const endUserIpAddress = yield getEndUserIpAddress();
16219
16238
  if (!endUserIpAddress) {
16220
16239
  return Promise.reject([new CodedError("Unable to get IP address")]);
16221
16240
  }
16222
- return yield this.client.post("/v1/funding_sources", __spreadValues$v({
16241
+ return yield this.client.post("/v1/funding_sources", __spreadValues$x({
16223
16242
  endUserIpAddress
16224
16243
  }, createFundingSource));
16225
16244
  });
@@ -16228,7 +16247,7 @@ class FundingSourcesAPI {
16228
16247
  * user to update the billing address or payment information associated with the
16229
16248
  * funding source.
16230
16249
  */
16231
- this.update = (billingInfo, creditCardInfo, auctanePayInfo, fundingSourceId) => __async$W(this, null, function* () {
16250
+ this.update = (billingInfo, creditCardInfo, auctanePayInfo, fundingSourceId) => __async$X(this, null, function* () {
16232
16251
  const endUserIpAddress = yield getEndUserIpAddress();
16233
16252
  if (!endUserIpAddress) {
16234
16253
  return Promise.reject([new CodedError("Unable to get IP address")]);
@@ -16238,7 +16257,7 @@ class FundingSourcesAPI {
16238
16257
  {
16239
16258
  billingInfo,
16240
16259
  endUserIpAddress,
16241
- paymentMethod: __spreadValues$v({
16260
+ paymentMethod: __spreadValues$x({
16242
16261
  creditCardInfo
16243
16262
  }, auctanePayInfo)
16244
16263
  }
@@ -16248,19 +16267,19 @@ class FundingSourcesAPI {
16248
16267
  * The `registerCarrier` method registers a carrier account and associates
16249
16268
  * it with a given funding source.
16250
16269
  */
16251
- this.registerCarrier = (carrier) => __async$W(this, null, function* () {
16270
+ this.registerCarrier = (carrier) => __async$X(this, null, function* () {
16252
16271
  const endUserIpAddress = yield getEndUserIpAddress();
16253
16272
  if (!endUserIpAddress) {
16254
16273
  return Promise.reject([new CodedError("Unable to get IP address")]);
16255
16274
  }
16256
- return yield this.client.post("/v1/registration/funding_source", __spreadValues$v({
16275
+ return yield this.client.post("/v1/registration/funding_source", __spreadValues$x({
16257
16276
  endUserIpAddress
16258
16277
  }, carrier));
16259
16278
  });
16260
16279
  /**
16261
16280
  * The `addFunds` method allows you to add funds to a funding source.
16262
16281
  */
16263
- this.addFunds = (amount, fundingSourceId) => __async$W(this, null, function* () {
16282
+ this.addFunds = (amount, fundingSourceId) => __async$X(this, null, function* () {
16264
16283
  return yield this.client.put(
16265
16284
  `/v1/funding_sources/${fundingSourceId}/add_funds`,
16266
16285
  amount
@@ -16270,7 +16289,7 @@ class FundingSourcesAPI {
16270
16289
  * The `metadata` method returns seller-specific requirements for creating funding sources
16271
16290
  * and attaching carriers
16272
16291
  */
16273
- this.metadata = () => __async$W(this, null, function* () {
16292
+ this.metadata = () => __async$X(this, null, function* () {
16274
16293
  return yield this.client.get("/v1/funding_sources/metadata");
16275
16294
  });
16276
16295
  /**
@@ -16322,7 +16341,7 @@ class InsuranceAPI {
16322
16341
  }
16323
16342
  }
16324
16343
 
16325
- var __async$V = (__this, __arguments, generator) => {
16344
+ var __async$W = (__this, __arguments, generator) => {
16326
16345
  return new Promise((resolve, reject) => {
16327
16346
  var fulfilled = (value) => {
16328
16347
  try {
@@ -16354,13 +16373,13 @@ class InvoiceAddressAPI {
16354
16373
  /**
16355
16374
  * The `create` method creates a new invoice address for a given user.
16356
16375
  */
16357
- this.create = (invoiceAddress) => __async$V(this, null, function* () {
16376
+ this.create = (invoiceAddress) => __async$W(this, null, function* () {
16358
16377
  return yield this.client.post("/v1/invoice_address", invoiceAddress);
16359
16378
  });
16360
16379
  /**
16361
16380
  * The `update` method updates a invoice address for a given user.
16362
16381
  */
16363
- this.update = (invoiceAddress) => __async$V(this, null, function* () {
16382
+ this.update = (invoiceAddress) => __async$W(this, null, function* () {
16364
16383
  return yield this.client.put("/v1/invoice_address", invoiceAddress);
16365
16384
  });
16366
16385
  this.client = client;
@@ -16402,17 +16421,17 @@ class LabelsAPI {
16402
16421
  }
16403
16422
  }
16404
16423
 
16405
- var __getOwnPropSymbols$F = Object.getOwnPropertySymbols;
16406
- var __hasOwnProp$F = Object.prototype.hasOwnProperty;
16407
- var __propIsEnum$F = Object.prototype.propertyIsEnumerable;
16424
+ var __getOwnPropSymbols$H = Object.getOwnPropertySymbols;
16425
+ var __hasOwnProp$H = Object.prototype.hasOwnProperty;
16426
+ var __propIsEnum$H = Object.prototype.propertyIsEnumerable;
16408
16427
  var __objRest$n = (source, exclude) => {
16409
16428
  var target = {};
16410
16429
  for (var prop in source)
16411
- if (__hasOwnProp$F.call(source, prop) && exclude.indexOf(prop) < 0)
16430
+ if (__hasOwnProp$H.call(source, prop) && exclude.indexOf(prop) < 0)
16412
16431
  target[prop] = source[prop];
16413
- if (source != null && __getOwnPropSymbols$F)
16414
- for (var prop of __getOwnPropSymbols$F(source)) {
16415
- if (exclude.indexOf(prop) < 0 && __propIsEnum$F.call(source, prop))
16432
+ if (source != null && __getOwnPropSymbols$H)
16433
+ for (var prop of __getOwnPropSymbols$H(source)) {
16434
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$H.call(source, prop))
16416
16435
  target[prop] = source[prop];
16417
16436
  }
16418
16437
  return target;
@@ -16533,19 +16552,19 @@ class RateCardsAPI {
16533
16552
  }
16534
16553
  }
16535
16554
 
16536
- var __defProp$u = Object.defineProperty;
16537
- var __getOwnPropSymbols$E = Object.getOwnPropertySymbols;
16538
- var __hasOwnProp$E = Object.prototype.hasOwnProperty;
16539
- var __propIsEnum$E = Object.prototype.propertyIsEnumerable;
16540
- var __defNormalProp$u = (obj, key, value) => key in obj ? __defProp$u(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
16541
- var __spreadValues$u = (a, b) => {
16555
+ var __defProp$w = Object.defineProperty;
16556
+ var __getOwnPropSymbols$G = Object.getOwnPropertySymbols;
16557
+ var __hasOwnProp$G = Object.prototype.hasOwnProperty;
16558
+ var __propIsEnum$G = Object.prototype.propertyIsEnumerable;
16559
+ var __defNormalProp$w = (obj, key, value) => key in obj ? __defProp$w(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
16560
+ var __spreadValues$w = (a, b) => {
16542
16561
  for (var prop in b || (b = {}))
16543
- if (__hasOwnProp$E.call(b, prop))
16544
- __defNormalProp$u(a, prop, b[prop]);
16545
- if (__getOwnPropSymbols$E)
16546
- for (var prop of __getOwnPropSymbols$E(b)) {
16547
- if (__propIsEnum$E.call(b, prop))
16548
- __defNormalProp$u(a, prop, b[prop]);
16562
+ if (__hasOwnProp$G.call(b, prop))
16563
+ __defNormalProp$w(a, prop, b[prop]);
16564
+ if (__getOwnPropSymbols$G)
16565
+ for (var prop of __getOwnPropSymbols$G(b)) {
16566
+ if (__propIsEnum$G.call(b, prop))
16567
+ __defNormalProp$w(a, prop, b[prop]);
16549
16568
  }
16550
16569
  return a;
16551
16570
  };
@@ -16567,7 +16586,7 @@ class RatesAPI {
16567
16586
  * method.
16568
16587
  */
16569
16588
  this.estimate = (params) => {
16570
- return this.client.post("/v1/rates/estimate", __spreadValues$u({}, params));
16589
+ return this.client.post("/v1/rates/estimate", __spreadValues$w({}, params));
16571
16590
  };
16572
16591
  this.client = client;
16573
16592
  }
@@ -16647,7 +16666,7 @@ class SalesOrdersAPI {
16647
16666
  }
16648
16667
  }
16649
16668
 
16650
- var __async$U = (__this, __arguments, generator) => {
16669
+ var __async$V = (__this, __arguments, generator) => {
16651
16670
  return new Promise((resolve, reject) => {
16652
16671
  var fulfilled = (value) => {
16653
16672
  try {
@@ -16705,7 +16724,7 @@ class SellersAPI {
16705
16724
  /**
16706
16725
  * Deletes an API Key
16707
16726
  */
16708
- this.deleteSellerApiKey = (_0) => __async$U(this, [_0], function* ({
16727
+ this.deleteSellerApiKey = (_0) => __async$V(this, [_0], function* ({
16709
16728
  encryptedApiKey,
16710
16729
  sellerId,
16711
16730
  isSandbox
@@ -16751,19 +16770,19 @@ class SellersAPI {
16751
16770
  }
16752
16771
  }
16753
16772
 
16754
- var __defProp$t = Object.defineProperty;
16755
- var __getOwnPropSymbols$D = Object.getOwnPropertySymbols;
16756
- var __hasOwnProp$D = Object.prototype.hasOwnProperty;
16757
- var __propIsEnum$D = Object.prototype.propertyIsEnumerable;
16758
- var __defNormalProp$t = (obj, key, value) => key in obj ? __defProp$t(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
16759
- var __spreadValues$t = (a, b) => {
16773
+ var __defProp$v = Object.defineProperty;
16774
+ var __getOwnPropSymbols$F = Object.getOwnPropertySymbols;
16775
+ var __hasOwnProp$F = Object.prototype.hasOwnProperty;
16776
+ var __propIsEnum$F = Object.prototype.propertyIsEnumerable;
16777
+ var __defNormalProp$v = (obj, key, value) => key in obj ? __defProp$v(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
16778
+ var __spreadValues$v = (a, b) => {
16760
16779
  for (var prop in b || (b = {}))
16761
- if (__hasOwnProp$D.call(b, prop))
16762
- __defNormalProp$t(a, prop, b[prop]);
16763
- if (__getOwnPropSymbols$D)
16764
- for (var prop of __getOwnPropSymbols$D(b)) {
16765
- if (__propIsEnum$D.call(b, prop))
16766
- __defNormalProp$t(a, prop, b[prop]);
16780
+ if (__hasOwnProp$F.call(b, prop))
16781
+ __defNormalProp$v(a, prop, b[prop]);
16782
+ if (__getOwnPropSymbols$F)
16783
+ for (var prop of __getOwnPropSymbols$F(b)) {
16784
+ if (__propIsEnum$F.call(b, prop))
16785
+ __defNormalProp$v(a, prop, b[prop]);
16767
16786
  }
16768
16787
  return a;
16769
16788
  };
@@ -16775,7 +16794,7 @@ class ServicePointsAPI {
16775
16794
  * Either an address, coordinates, or an address query
16776
16795
  */
16777
16796
  this.list = (options) => {
16778
- return this.client.post("/v1/service_points/list", __spreadValues$t({}, options));
16797
+ return this.client.post("/v1/service_points/list", __spreadValues$v({}, options));
16779
16798
  };
16780
16799
  /**
16781
16800
  * Get a specific service point by its carrier code, country code, and id
@@ -16793,7 +16812,7 @@ class ServicePointsAPI {
16793
16812
  }
16794
16813
  }
16795
16814
 
16796
- var __async$T = (__this, __arguments, generator) => {
16815
+ var __async$U = (__this, __arguments, generator) => {
16797
16816
  return new Promise((resolve, reject) => {
16798
16817
  var fulfilled = (value) => {
16799
16818
  try {
@@ -16842,7 +16861,7 @@ class ShipmentsAPI {
16842
16861
  * The `create` method allows for creating shipments based on a list of shipment
16843
16862
  * items passed into this method.
16844
16863
  */
16845
- this.create = (...shipments) => __async$T(this, null, function* () {
16864
+ this.create = (...shipments) => __async$U(this, null, function* () {
16846
16865
  return this.client.post("/v1/shipments", {
16847
16866
  shipments
16848
16867
  });
@@ -34234,26 +34253,26 @@ class WebhooksAPI {
34234
34253
  }
34235
34254
  }
34236
34255
 
34237
- var __defProp$s = Object.defineProperty;
34238
- var __defProps$p = Object.defineProperties;
34239
- var __getOwnPropDescs$p = Object.getOwnPropertyDescriptors;
34240
- var __getOwnPropSymbols$C = Object.getOwnPropertySymbols;
34241
- var __hasOwnProp$C = Object.prototype.hasOwnProperty;
34242
- var __propIsEnum$C = Object.prototype.propertyIsEnumerable;
34243
- var __defNormalProp$s = (obj, key, value) => key in obj ? __defProp$s(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
34244
- var __spreadValues$s = (a, b) => {
34256
+ var __defProp$u = Object.defineProperty;
34257
+ var __defProps$r = Object.defineProperties;
34258
+ var __getOwnPropDescs$r = Object.getOwnPropertyDescriptors;
34259
+ var __getOwnPropSymbols$E = Object.getOwnPropertySymbols;
34260
+ var __hasOwnProp$E = Object.prototype.hasOwnProperty;
34261
+ var __propIsEnum$E = Object.prototype.propertyIsEnumerable;
34262
+ var __defNormalProp$u = (obj, key, value) => key in obj ? __defProp$u(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
34263
+ var __spreadValues$u = (a, b) => {
34245
34264
  for (var prop in b || (b = {}))
34246
- if (__hasOwnProp$C.call(b, prop))
34247
- __defNormalProp$s(a, prop, b[prop]);
34248
- if (__getOwnPropSymbols$C)
34249
- for (var prop of __getOwnPropSymbols$C(b)) {
34250
- if (__propIsEnum$C.call(b, prop))
34251
- __defNormalProp$s(a, prop, b[prop]);
34265
+ if (__hasOwnProp$E.call(b, prop))
34266
+ __defNormalProp$u(a, prop, b[prop]);
34267
+ if (__getOwnPropSymbols$E)
34268
+ for (var prop of __getOwnPropSymbols$E(b)) {
34269
+ if (__propIsEnum$E.call(b, prop))
34270
+ __defNormalProp$u(a, prop, b[prop]);
34252
34271
  }
34253
34272
  return a;
34254
34273
  };
34255
- var __spreadProps$p = (a, b) => __defProps$p(a, __getOwnPropDescs$p(b));
34256
- var __async$S = (__this, __arguments, generator) => {
34274
+ var __spreadProps$r = (a, b) => __defProps$r(a, __getOwnPropDescs$r(b));
34275
+ var __async$T = (__this, __arguments, generator) => {
34257
34276
  return new Promise((resolve, reject) => {
34258
34277
  var fulfilled = (value) => {
34259
34278
  try {
@@ -34276,7 +34295,7 @@ var __async$S = (__this, __arguments, generator) => {
34276
34295
  const logger$1 = E({
34277
34296
  level: process.env.NODE_ENV === "production" ? "fatal" : "info",
34278
34297
  name: "shipengine-api",
34279
- serializers: __spreadProps$p(__spreadValues$s({}, k), {
34298
+ serializers: __spreadProps$r(__spreadValues$u({}, k), {
34280
34299
  req: (req) => ({
34281
34300
  headers: req.headers,
34282
34301
  method: req.method,
@@ -34301,7 +34320,7 @@ class ShipEngineAPI {
34301
34320
  this.getSandboxToken = getSandboxToken;
34302
34321
  const client = axios.create({
34303
34322
  baseURL,
34304
- headers: __spreadProps$p(__spreadValues$s({}, headers), {
34323
+ headers: __spreadProps$r(__spreadValues$u({}, headers), {
34305
34324
  "Content-Type": "application/json"
34306
34325
  }),
34307
34326
  paramsSerializer: (params) => lib.stringify(decamelizeKeys(params), { arrayFormat: "brackets" }),
@@ -34336,7 +34355,7 @@ class ShipEngineAPI {
34336
34355
  });
34337
34356
  client.defaults.headers.common["Authorization"] = `Bearer ${token}`;
34338
34357
  client.interceptors.request.use(
34339
- (config) => __async$S(this, null, function* () {
34358
+ (config) => __async$T(this, null, function* () {
34340
34359
  if (config.isSandbox) {
34341
34360
  if (!this.sandboxToken) {
34342
34361
  this.sandboxToken = yield getSandboxToken == null ? void 0 : getSandboxToken();
@@ -34363,7 +34382,7 @@ class ShipEngineAPI {
34363
34382
  );
34364
34383
  return res;
34365
34384
  },
34366
- (err) => __async$S(this, null, function* () {
34385
+ (err) => __async$T(this, null, function* () {
34367
34386
  var _a, _b, _c, _d, _e;
34368
34387
  logger$1.error(
34369
34388
  { err, req: err.config, res: err.response },
@@ -34410,7 +34429,7 @@ class ShipEngineAPI {
34410
34429
  * that token (also known as Seller ID)
34411
34430
  */
34412
34431
  getTenant(isSandbox) {
34413
- return __async$S(this, null, function* () {
34432
+ return __async$T(this, null, function* () {
34414
34433
  var _a;
34415
34434
  if (!isSandbox) {
34416
34435
  return this.getTenantFromToken(this.token);
@@ -34447,6 +34466,13 @@ class ShipEngineAPI {
34447
34466
  get accountBillingPlan() {
34448
34467
  return new AccountBillingPlanAPI(this.client);
34449
34468
  }
34469
+ /**
34470
+ * The `accountBilling` method provides access to the Account Billing (Recurly) endpoints
34471
+ * in ShipEngine API.
34472
+ */
34473
+ get accountBilling() {
34474
+ return new AccountBillingAPI(this.client);
34475
+ }
34450
34476
  /**
34451
34477
  * The `addresses` method provides access to the Address Validation endpoints
34452
34478
  * in ShipEngine API. e.g. Validate Addresses, Parse Addresses, etc.
@@ -34698,25 +34724,25 @@ const delay = (ms) => new Promise((resolve) => {
34698
34724
 
34699
34725
  const onError = (_errors) => _default();
34700
34726
 
34701
- var __defProp$r = Object.defineProperty;
34702
- var __defProps$o = Object.defineProperties;
34703
- var __getOwnPropDescs$o = Object.getOwnPropertyDescriptors;
34704
- var __getOwnPropSymbols$B = Object.getOwnPropertySymbols;
34705
- var __hasOwnProp$B = Object.prototype.hasOwnProperty;
34706
- var __propIsEnum$B = Object.prototype.propertyIsEnumerable;
34707
- var __defNormalProp$r = (obj, key, value) => key in obj ? __defProp$r(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
34708
- var __spreadValues$r = (a, b) => {
34727
+ var __defProp$t = Object.defineProperty;
34728
+ var __defProps$q = Object.defineProperties;
34729
+ var __getOwnPropDescs$q = Object.getOwnPropertyDescriptors;
34730
+ var __getOwnPropSymbols$D = Object.getOwnPropertySymbols;
34731
+ var __hasOwnProp$D = Object.prototype.hasOwnProperty;
34732
+ var __propIsEnum$D = Object.prototype.propertyIsEnumerable;
34733
+ var __defNormalProp$t = (obj, key, value) => key in obj ? __defProp$t(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
34734
+ var __spreadValues$t = (a, b) => {
34709
34735
  for (var prop in b || (b = {}))
34710
- if (__hasOwnProp$B.call(b, prop))
34711
- __defNormalProp$r(a, prop, b[prop]);
34712
- if (__getOwnPropSymbols$B)
34713
- for (var prop of __getOwnPropSymbols$B(b)) {
34714
- if (__propIsEnum$B.call(b, prop))
34715
- __defNormalProp$r(a, prop, b[prop]);
34736
+ if (__hasOwnProp$D.call(b, prop))
34737
+ __defNormalProp$t(a, prop, b[prop]);
34738
+ if (__getOwnPropSymbols$D)
34739
+ for (var prop of __getOwnPropSymbols$D(b)) {
34740
+ if (__propIsEnum$D.call(b, prop))
34741
+ __defNormalProp$t(a, prop, b[prop]);
34716
34742
  }
34717
34743
  return a;
34718
34744
  };
34719
- var __spreadProps$o = (a, b) => __defProps$o(a, __getOwnPropDescs$o(b));
34745
+ var __spreadProps$q = (a, b) => __defProps$q(a, __getOwnPropDescs$q(b));
34720
34746
  const streams = [];
34721
34747
  if (process.env.NODE_ENV === "production") {
34722
34748
  streams.push({
@@ -34725,7 +34751,7 @@ if (process.env.NODE_ENV === "production") {
34725
34751
  }
34726
34752
  const logger = E({
34727
34753
  name: "shipengine",
34728
- serializers: __spreadProps$o(__spreadValues$r({}, k), {
34754
+ serializers: __spreadProps$q(__spreadValues$t({}, k), {
34729
34755
  req: (req) => ({
34730
34756
  headers: req.headers,
34731
34757
  method: req.method,
@@ -34750,7 +34776,7 @@ const retryUntil = (callbackFn, retries = 10, timeoutBetweenAttempts = 1e3) => P
34750
34776
  throw error;
34751
34777
  });
34752
34778
 
34753
- var __async$R = (__this, __arguments, generator) => {
34779
+ var __async$S = (__this, __arguments, generator) => {
34754
34780
  return new Promise((resolve, reject) => {
34755
34781
  var fulfilled = (value) => {
34756
34782
  try {
@@ -34773,7 +34799,7 @@ var __async$R = (__this, __arguments, generator) => {
34773
34799
  const useCreateAccountImage = () => {
34774
34800
  const { client } = useShipEngine();
34775
34801
  return useMutation({
34776
- mutationFn: (data) => __async$R(void 0, null, function* () {
34802
+ mutationFn: (data) => __async$S(void 0, null, function* () {
34777
34803
  const result = yield client.accountSettings.createImage(data);
34778
34804
  return result.data;
34779
34805
  }),
@@ -34782,7 +34808,7 @@ const useCreateAccountImage = () => {
34782
34808
  });
34783
34809
  };
34784
34810
 
34785
- var __async$Q = (__this, __arguments, generator) => {
34811
+ var __async$R = (__this, __arguments, generator) => {
34786
34812
  return new Promise((resolve, reject) => {
34787
34813
  var fulfilled = (value) => {
34788
34814
  try {
@@ -34805,7 +34831,7 @@ var __async$Q = (__this, __arguments, generator) => {
34805
34831
  const useDeleteAccountImage = () => {
34806
34832
  const { client } = useShipEngine();
34807
34833
  return useMutation({
34808
- mutationFn: (labelImageId) => __async$Q(void 0, null, function* () {
34834
+ mutationFn: (labelImageId) => __async$R(void 0, null, function* () {
34809
34835
  const result = yield client.accountSettings.deleteImage(labelImageId);
34810
34836
  return result.data;
34811
34837
  }),
@@ -34834,7 +34860,7 @@ const useGetAccountSettings = () => {
34834
34860
  });
34835
34861
  };
34836
34862
 
34837
- var __async$P = (__this, __arguments, generator) => {
34863
+ var __async$Q = (__this, __arguments, generator) => {
34838
34864
  return new Promise((resolve, reject) => {
34839
34865
  var fulfilled = (value) => {
34840
34866
  try {
@@ -34857,7 +34883,7 @@ var __async$P = (__this, __arguments, generator) => {
34857
34883
  const useUpdateAccountImage = () => {
34858
34884
  const { client } = useShipEngine();
34859
34885
  return useMutation({
34860
- mutationFn: (data) => __async$P(void 0, null, function* () {
34886
+ mutationFn: (data) => __async$Q(void 0, null, function* () {
34861
34887
  const result = yield client.accountSettings.updateImage(data);
34862
34888
  return result.data;
34863
34889
  }),
@@ -34866,7 +34892,7 @@ const useUpdateAccountImage = () => {
34866
34892
  });
34867
34893
  };
34868
34894
 
34869
- var __async$O = (__this, __arguments, generator) => {
34895
+ var __async$P = (__this, __arguments, generator) => {
34870
34896
  return new Promise((resolve, reject) => {
34871
34897
  var fulfilled = (value) => {
34872
34898
  try {
@@ -34889,7 +34915,7 @@ var __async$O = (__this, __arguments, generator) => {
34889
34915
  const useUpdateAccountSettings = () => {
34890
34916
  const { client } = useShipEngine();
34891
34917
  return useMutation({
34892
- mutationFn: (settings) => __async$O(void 0, null, function* () {
34918
+ mutationFn: (settings) => __async$P(void 0, null, function* () {
34893
34919
  const result = yield client.accountSettings.update(settings);
34894
34920
  return result.data;
34895
34921
  }),
@@ -34898,7 +34924,7 @@ const useUpdateAccountSettings = () => {
34898
34924
  });
34899
34925
  };
34900
34926
 
34901
- var __async$N = (__this, __arguments, generator) => {
34927
+ var __async$O = (__this, __arguments, generator) => {
34902
34928
  return new Promise((resolve, reject) => {
34903
34929
  var fulfilled = (value) => {
34904
34930
  try {
@@ -34921,7 +34947,7 @@ var __async$N = (__this, __arguments, generator) => {
34921
34947
  const useParseAddress = () => {
34922
34948
  const { client } = useShipEngine();
34923
34949
  return useMutation({
34924
- mutationFn: (_0) => __async$N(void 0, [_0], function* ({ address, text }) {
34950
+ mutationFn: (_0) => __async$O(void 0, [_0], function* ({ address, text }) {
34925
34951
  const result = yield client.addresses.parse(text, address);
34926
34952
  return result.data;
34927
34953
  }),
@@ -34930,7 +34956,7 @@ const useParseAddress = () => {
34930
34956
  });
34931
34957
  };
34932
34958
 
34933
- var __async$M = (__this, __arguments, generator) => {
34959
+ var __async$N = (__this, __arguments, generator) => {
34934
34960
  return new Promise((resolve, reject) => {
34935
34961
  var fulfilled = (value) => {
34936
34962
  try {
@@ -34953,7 +34979,7 @@ var __async$M = (__this, __arguments, generator) => {
34953
34979
  const useValidateAddresses = () => {
34954
34980
  const { client } = useShipEngine();
34955
34981
  return useMutation({
34956
- mutationFn: (addresses) => __async$M(void 0, null, function* () {
34982
+ mutationFn: (addresses) => __async$N(void 0, null, function* () {
34957
34983
  const result = yield client.addresses.validate(addresses);
34958
34984
  return result.data;
34959
34985
  }),
@@ -34962,26 +34988,26 @@ const useValidateAddresses = () => {
34962
34988
  });
34963
34989
  };
34964
34990
 
34965
- var __defProp$q = Object.defineProperty;
34966
- var __defProps$n = Object.defineProperties;
34967
- var __getOwnPropDescs$n = Object.getOwnPropertyDescriptors;
34968
- var __getOwnPropSymbols$A = Object.getOwnPropertySymbols;
34969
- var __hasOwnProp$A = Object.prototype.hasOwnProperty;
34970
- var __propIsEnum$A = Object.prototype.propertyIsEnumerable;
34971
- var __defNormalProp$q = (obj, key, value) => key in obj ? __defProp$q(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
34972
- var __spreadValues$q = (a, b) => {
34991
+ var __defProp$s = Object.defineProperty;
34992
+ var __defProps$p = Object.defineProperties;
34993
+ var __getOwnPropDescs$p = Object.getOwnPropertyDescriptors;
34994
+ var __getOwnPropSymbols$C = Object.getOwnPropertySymbols;
34995
+ var __hasOwnProp$C = Object.prototype.hasOwnProperty;
34996
+ var __propIsEnum$C = Object.prototype.propertyIsEnumerable;
34997
+ var __defNormalProp$s = (obj, key, value) => key in obj ? __defProp$s(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
34998
+ var __spreadValues$s = (a, b) => {
34973
34999
  for (var prop in b || (b = {}))
34974
- if (__hasOwnProp$A.call(b, prop))
34975
- __defNormalProp$q(a, prop, b[prop]);
34976
- if (__getOwnPropSymbols$A)
34977
- for (var prop of __getOwnPropSymbols$A(b)) {
34978
- if (__propIsEnum$A.call(b, prop))
34979
- __defNormalProp$q(a, prop, b[prop]);
35000
+ if (__hasOwnProp$C.call(b, prop))
35001
+ __defNormalProp$s(a, prop, b[prop]);
35002
+ if (__getOwnPropSymbols$C)
35003
+ for (var prop of __getOwnPropSymbols$C(b)) {
35004
+ if (__propIsEnum$C.call(b, prop))
35005
+ __defNormalProp$s(a, prop, b[prop]);
34980
35006
  }
34981
35007
  return a;
34982
35008
  };
34983
- var __spreadProps$n = (a, b) => __defProps$n(a, __getOwnPropDescs$n(b));
34984
- var __async$L = (__this, __arguments, generator) => {
35009
+ var __spreadProps$p = (a, b) => __defProps$p(a, __getOwnPropDescs$p(b));
35010
+ var __async$M = (__this, __arguments, generator) => {
34985
35011
  return new Promise((resolve, reject) => {
34986
35012
  var fulfilled = (value) => {
34987
35013
  try {
@@ -35003,8 +35029,8 @@ var __async$L = (__this, __arguments, generator) => {
35003
35029
  };
35004
35030
  const useCreateAuctanePaySession = (params) => {
35005
35031
  const { client } = useShipEngine();
35006
- return useMutation(__spreadProps$n(__spreadValues$q({}, params), {
35007
- mutationFn: (request) => __async$L(void 0, null, function* () {
35032
+ return useMutation(__spreadProps$p(__spreadValues$s({}, params), {
35033
+ mutationFn: (request) => __async$M(void 0, null, function* () {
35008
35034
  const result = yield client.auctanePay.createSession(request);
35009
35035
  return result.data;
35010
35036
  }),
@@ -35013,7 +35039,7 @@ const useCreateAuctanePaySession = (params) => {
35013
35039
  }));
35014
35040
  };
35015
35041
 
35016
- var __async$K = (__this, __arguments, generator) => {
35042
+ var __async$L = (__this, __arguments, generator) => {
35017
35043
  return new Promise((resolve, reject) => {
35018
35044
  var fulfilled = (value) => {
35019
35045
  try {
@@ -35036,7 +35062,7 @@ var __async$K = (__this, __arguments, generator) => {
35036
35062
  const useAddFunds = () => {
35037
35063
  const { client } = useShipEngine();
35038
35064
  return useMutation({
35039
- mutationFn: (_0) => __async$K(void 0, [_0], function* ({ carrierId, funds }) {
35065
+ mutationFn: (_0) => __async$L(void 0, [_0], function* ({ carrierId, funds }) {
35040
35066
  const result = yield client.carriers.addFunds(carrierId, funds);
35041
35067
  return result.data;
35042
35068
  }),
@@ -35045,7 +35071,7 @@ const useAddFunds = () => {
35045
35071
  });
35046
35072
  };
35047
35073
 
35048
- var __async$J = (__this, __arguments, generator) => {
35074
+ var __async$K = (__this, __arguments, generator) => {
35049
35075
  return new Promise((resolve, reject) => {
35050
35076
  var fulfilled = (value) => {
35051
35077
  try {
@@ -35068,7 +35094,7 @@ var __async$J = (__this, __arguments, generator) => {
35068
35094
  const useConnectCarrier = () => {
35069
35095
  const { client } = useShipEngine();
35070
35096
  return useMutation({
35071
- mutationFn: (params) => __async$J(void 0, null, function* () {
35097
+ mutationFn: (params) => __async$K(void 0, null, function* () {
35072
35098
  const result = yield client.carriers.connect(params);
35073
35099
  return result.data;
35074
35100
  }),
@@ -35177,41 +35203,41 @@ const useGetServicesByCarrier = (carrierId) => {
35177
35203
  });
35178
35204
  };
35179
35205
 
35180
- var __defProp$p = Object.defineProperty;
35181
- var __defProps$m = Object.defineProperties;
35182
- var __getOwnPropDescs$m = Object.getOwnPropertyDescriptors;
35183
- var __getOwnPropSymbols$z = Object.getOwnPropertySymbols;
35184
- var __hasOwnProp$z = Object.prototype.hasOwnProperty;
35185
- var __propIsEnum$z = Object.prototype.propertyIsEnumerable;
35186
- var __defNormalProp$p = (obj, key, value) => key in obj ? __defProp$p(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35187
- var __spreadValues$p = (a, b) => {
35206
+ var __defProp$r = Object.defineProperty;
35207
+ var __defProps$o = Object.defineProperties;
35208
+ var __getOwnPropDescs$o = Object.getOwnPropertyDescriptors;
35209
+ var __getOwnPropSymbols$B = Object.getOwnPropertySymbols;
35210
+ var __hasOwnProp$B = Object.prototype.hasOwnProperty;
35211
+ var __propIsEnum$B = Object.prototype.propertyIsEnumerable;
35212
+ var __defNormalProp$r = (obj, key, value) => key in obj ? __defProp$r(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35213
+ var __spreadValues$r = (a, b) => {
35188
35214
  for (var prop in b || (b = {}))
35189
- if (__hasOwnProp$z.call(b, prop))
35190
- __defNormalProp$p(a, prop, b[prop]);
35191
- if (__getOwnPropSymbols$z)
35192
- for (var prop of __getOwnPropSymbols$z(b)) {
35193
- if (__propIsEnum$z.call(b, prop))
35194
- __defNormalProp$p(a, prop, b[prop]);
35215
+ if (__hasOwnProp$B.call(b, prop))
35216
+ __defNormalProp$r(a, prop, b[prop]);
35217
+ if (__getOwnPropSymbols$B)
35218
+ for (var prop of __getOwnPropSymbols$B(b)) {
35219
+ if (__propIsEnum$B.call(b, prop))
35220
+ __defNormalProp$r(a, prop, b[prop]);
35195
35221
  }
35196
35222
  return a;
35197
35223
  };
35198
- var __spreadProps$m = (a, b) => __defProps$m(a, __getOwnPropDescs$m(b));
35224
+ var __spreadProps$o = (a, b) => __defProps$o(a, __getOwnPropDescs$o(b));
35199
35225
  var __objRest$m = (source, exclude) => {
35200
35226
  var target = {};
35201
35227
  for (var prop in source)
35202
- if (__hasOwnProp$z.call(source, prop) && exclude.indexOf(prop) < 0)
35228
+ if (__hasOwnProp$B.call(source, prop) && exclude.indexOf(prop) < 0)
35203
35229
  target[prop] = source[prop];
35204
- if (source != null && __getOwnPropSymbols$z)
35205
- for (var prop of __getOwnPropSymbols$z(source)) {
35206
- if (exclude.indexOf(prop) < 0 && __propIsEnum$z.call(source, prop))
35230
+ if (source != null && __getOwnPropSymbols$B)
35231
+ for (var prop of __getOwnPropSymbols$B(source)) {
35232
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$B.call(source, prop))
35207
35233
  target[prop] = source[prop];
35208
35234
  }
35209
35235
  return target;
35210
35236
  };
35211
35237
  const useListCarriers = (params) => {
35212
35238
  const { client } = useShipEngine();
35213
- const _a = __spreadValues$p({}, params), { queryFnParams } = _a, rest = __objRest$m(_a, ["queryFnParams"]);
35214
- return useQuery(__spreadProps$m(__spreadValues$p({}, rest), {
35239
+ const _a = __spreadValues$r({}, params), { queryFnParams } = _a, rest = __objRest$m(_a, ["queryFnParams"]);
35240
+ return useQuery(__spreadProps$o(__spreadValues$r({}, rest), {
35215
35241
  onError,
35216
35242
  queryFn: () => client.carriers.list(queryFnParams),
35217
35243
  queryKey: ["useListCarriers", queryFnParams],
@@ -35219,22 +35245,22 @@ const useListCarriers = (params) => {
35219
35245
  }));
35220
35246
  };
35221
35247
 
35222
- var __getOwnPropSymbols$y = Object.getOwnPropertySymbols;
35223
- var __hasOwnProp$y = Object.prototype.hasOwnProperty;
35224
- var __propIsEnum$y = Object.prototype.propertyIsEnumerable;
35248
+ var __getOwnPropSymbols$A = Object.getOwnPropertySymbols;
35249
+ var __hasOwnProp$A = Object.prototype.hasOwnProperty;
35250
+ var __propIsEnum$A = Object.prototype.propertyIsEnumerable;
35225
35251
  var __objRest$l = (source, exclude) => {
35226
35252
  var target = {};
35227
35253
  for (var prop in source)
35228
- if (__hasOwnProp$y.call(source, prop) && exclude.indexOf(prop) < 0)
35254
+ if (__hasOwnProp$A.call(source, prop) && exclude.indexOf(prop) < 0)
35229
35255
  target[prop] = source[prop];
35230
- if (source != null && __getOwnPropSymbols$y)
35231
- for (var prop of __getOwnPropSymbols$y(source)) {
35232
- if (exclude.indexOf(prop) < 0 && __propIsEnum$y.call(source, prop))
35256
+ if (source != null && __getOwnPropSymbols$A)
35257
+ for (var prop of __getOwnPropSymbols$A(source)) {
35258
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$A.call(source, prop))
35233
35259
  target[prop] = source[prop];
35234
35260
  }
35235
35261
  return target;
35236
35262
  };
35237
- var __async$I = (__this, __arguments, generator) => {
35263
+ var __async$J = (__this, __arguments, generator) => {
35238
35264
  return new Promise((resolve, reject) => {
35239
35265
  var fulfilled = (value) => {
35240
35266
  try {
@@ -35258,7 +35284,7 @@ const useUpdateAutoFunding = () => {
35258
35284
  const { client } = useShipEngine();
35259
35285
  const queryClient = useQueryClient();
35260
35286
  return useMutation({
35261
- mutationFn: (_a) => __async$I(void 0, null, function* () {
35287
+ mutationFn: (_a) => __async$J(void 0, null, function* () {
35262
35288
  var _b = _a, { carrierId } = _b, options = __objRest$l(_b, ["carrierId"]);
35263
35289
  const result = yield client.carriers.updateAutoFunding(carrierId, options);
35264
35290
  return result.data;
@@ -35288,7 +35314,7 @@ const useGetZonesByCarrier = (carrierId) => {
35288
35314
  });
35289
35315
  };
35290
35316
 
35291
- var __async$H = (__this, __arguments, generator) => {
35317
+ var __async$I = (__this, __arguments, generator) => {
35292
35318
  return new Promise((resolve, reject) => {
35293
35319
  var fulfilled = (value) => {
35294
35320
  try {
@@ -35311,7 +35337,7 @@ var __async$H = (__this, __arguments, generator) => {
35311
35337
  const useDeleteCarrier = () => {
35312
35338
  const { client } = useShipEngine();
35313
35339
  return useMutation({
35314
- mutationFn: (carrierId) => __async$H(void 0, null, function* () {
35340
+ mutationFn: (carrierId) => __async$I(void 0, null, function* () {
35315
35341
  const result = yield client.carriers.delete(carrierId);
35316
35342
  return result.data;
35317
35343
  }),
@@ -35320,17 +35346,17 @@ const useDeleteCarrier = () => {
35320
35346
  });
35321
35347
  };
35322
35348
 
35323
- var __getOwnPropSymbols$x = Object.getOwnPropertySymbols;
35324
- var __hasOwnProp$x = Object.prototype.hasOwnProperty;
35325
- var __propIsEnum$x = Object.prototype.propertyIsEnumerable;
35349
+ var __getOwnPropSymbols$z = Object.getOwnPropertySymbols;
35350
+ var __hasOwnProp$z = Object.prototype.hasOwnProperty;
35351
+ var __propIsEnum$z = Object.prototype.propertyIsEnumerable;
35326
35352
  var __objRest$k = (source, exclude) => {
35327
35353
  var target = {};
35328
35354
  for (var prop in source)
35329
- if (__hasOwnProp$x.call(source, prop) && exclude.indexOf(prop) < 0)
35355
+ if (__hasOwnProp$z.call(source, prop) && exclude.indexOf(prop) < 0)
35330
35356
  target[prop] = source[prop];
35331
- if (source != null && __getOwnPropSymbols$x)
35332
- for (var prop of __getOwnPropSymbols$x(source)) {
35333
- if (exclude.indexOf(prop) < 0 && __propIsEnum$x.call(source, prop))
35357
+ if (source != null && __getOwnPropSymbols$z)
35358
+ for (var prop of __getOwnPropSymbols$z(source)) {
35359
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$z.call(source, prop))
35334
35360
  target[prop] = source[prop];
35335
35361
  }
35336
35362
  return target;
@@ -35347,17 +35373,17 @@ const useGetCarrierConnectionForm = (_params) => {
35347
35373
  });
35348
35374
  };
35349
35375
 
35350
- var __getOwnPropSymbols$w = Object.getOwnPropertySymbols;
35351
- var __hasOwnProp$w = Object.prototype.hasOwnProperty;
35352
- var __propIsEnum$w = Object.prototype.propertyIsEnumerable;
35376
+ var __getOwnPropSymbols$y = Object.getOwnPropertySymbols;
35377
+ var __hasOwnProp$y = Object.prototype.hasOwnProperty;
35378
+ var __propIsEnum$y = Object.prototype.propertyIsEnumerable;
35353
35379
  var __objRest$j = (source, exclude) => {
35354
35380
  var target = {};
35355
35381
  for (var prop in source)
35356
- if (__hasOwnProp$w.call(source, prop) && exclude.indexOf(prop) < 0)
35382
+ if (__hasOwnProp$y.call(source, prop) && exclude.indexOf(prop) < 0)
35357
35383
  target[prop] = source[prop];
35358
- if (source != null && __getOwnPropSymbols$w)
35359
- for (var prop of __getOwnPropSymbols$w(source)) {
35360
- if (exclude.indexOf(prop) < 0 && __propIsEnum$w.call(source, prop))
35384
+ if (source != null && __getOwnPropSymbols$y)
35385
+ for (var prop of __getOwnPropSymbols$y(source)) {
35386
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$y.call(source, prop))
35361
35387
  target[prop] = source[prop];
35362
35388
  }
35363
35389
  return target;
@@ -35374,7 +35400,7 @@ const useListCarrierConnections = (_params) => {
35374
35400
  });
35375
35401
  };
35376
35402
 
35377
- var __async$G = (__this, __arguments, generator) => {
35403
+ var __async$H = (__this, __arguments, generator) => {
35378
35404
  return new Promise((resolve, reject) => {
35379
35405
  var fulfilled = (value) => {
35380
35406
  try {
@@ -35397,7 +35423,7 @@ var __async$G = (__this, __arguments, generator) => {
35397
35423
  const useConnectCarrierAccount = () => {
35398
35424
  const { client } = useShipEngine();
35399
35425
  return useMutation({
35400
- mutationFn: (_0) => __async$G(void 0, [_0], function* ({ carrierName, formData }) {
35426
+ mutationFn: (_0) => __async$H(void 0, [_0], function* ({ carrierName, formData }) {
35401
35427
  const result = yield client.connections.connectCarrier(carrierName, formData);
35402
35428
  return result.data;
35403
35429
  }),
@@ -35417,33 +35443,33 @@ const useCarrierConnectionsServicesList = (carrierCode) => {
35417
35443
  });
35418
35444
  };
35419
35445
 
35420
- var __defProp$o = Object.defineProperty;
35421
- var __defProps$l = Object.defineProperties;
35422
- var __getOwnPropDescs$l = Object.getOwnPropertyDescriptors;
35423
- var __getOwnPropSymbols$v = Object.getOwnPropertySymbols;
35424
- var __hasOwnProp$v = Object.prototype.hasOwnProperty;
35425
- var __propIsEnum$v = Object.prototype.propertyIsEnumerable;
35426
- var __defNormalProp$o = (obj, key, value) => key in obj ? __defProp$o(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35427
- var __spreadValues$o = (a, b) => {
35446
+ var __defProp$q = Object.defineProperty;
35447
+ var __defProps$n = Object.defineProperties;
35448
+ var __getOwnPropDescs$n = Object.getOwnPropertyDescriptors;
35449
+ var __getOwnPropSymbols$x = Object.getOwnPropertySymbols;
35450
+ var __hasOwnProp$x = Object.prototype.hasOwnProperty;
35451
+ var __propIsEnum$x = Object.prototype.propertyIsEnumerable;
35452
+ var __defNormalProp$q = (obj, key, value) => key in obj ? __defProp$q(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35453
+ var __spreadValues$q = (a, b) => {
35428
35454
  for (var prop in b || (b = {}))
35429
- if (__hasOwnProp$v.call(b, prop))
35430
- __defNormalProp$o(a, prop, b[prop]);
35431
- if (__getOwnPropSymbols$v)
35432
- for (var prop of __getOwnPropSymbols$v(b)) {
35433
- if (__propIsEnum$v.call(b, prop))
35434
- __defNormalProp$o(a, prop, b[prop]);
35455
+ if (__hasOwnProp$x.call(b, prop))
35456
+ __defNormalProp$q(a, prop, b[prop]);
35457
+ if (__getOwnPropSymbols$x)
35458
+ for (var prop of __getOwnPropSymbols$x(b)) {
35459
+ if (__propIsEnum$x.call(b, prop))
35460
+ __defNormalProp$q(a, prop, b[prop]);
35435
35461
  }
35436
35462
  return a;
35437
35463
  };
35438
- var __spreadProps$l = (a, b) => __defProps$l(a, __getOwnPropDescs$l(b));
35464
+ var __spreadProps$n = (a, b) => __defProps$n(a, __getOwnPropDescs$n(b));
35439
35465
  var __objRest$i = (source, exclude) => {
35440
35466
  var target = {};
35441
35467
  for (var prop in source)
35442
- if (__hasOwnProp$v.call(source, prop) && exclude.indexOf(prop) < 0)
35468
+ if (__hasOwnProp$x.call(source, prop) && exclude.indexOf(prop) < 0)
35443
35469
  target[prop] = source[prop];
35444
- if (source != null && __getOwnPropSymbols$v)
35445
- for (var prop of __getOwnPropSymbols$v(source)) {
35446
- if (exclude.indexOf(prop) < 0 && __propIsEnum$v.call(source, prop))
35470
+ if (source != null && __getOwnPropSymbols$x)
35471
+ for (var prop of __getOwnPropSymbols$x(source)) {
35472
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$x.call(source, prop))
35447
35473
  target[prop] = source[prop];
35448
35474
  }
35449
35475
  return target;
@@ -35456,7 +35482,7 @@ const useGetConnectionsCarrierSettings = (_a) => {
35456
35482
  ]);
35457
35483
  const { client } = useShipEngine();
35458
35484
  const { carrierName, carrierId } = queryFnParams;
35459
- return useQuery(__spreadProps$l(__spreadValues$o({}, params), {
35485
+ return useQuery(__spreadProps$n(__spreadValues$q({}, params), {
35460
35486
  onError,
35461
35487
  queryFn: () => client.connections.getCarrierSettings(carrierName, carrierId),
35462
35488
  queryKey: ["useGetConnectionsCarrierSettings", carrierName, carrierId],
@@ -35464,26 +35490,26 @@ const useGetConnectionsCarrierSettings = (_a) => {
35464
35490
  }));
35465
35491
  };
35466
35492
 
35467
- var __defProp$n = Object.defineProperty;
35468
- var __defProps$k = Object.defineProperties;
35469
- var __getOwnPropDescs$k = Object.getOwnPropertyDescriptors;
35470
- var __getOwnPropSymbols$u = Object.getOwnPropertySymbols;
35471
- var __hasOwnProp$u = Object.prototype.hasOwnProperty;
35472
- var __propIsEnum$u = Object.prototype.propertyIsEnumerable;
35473
- var __defNormalProp$n = (obj, key, value) => key in obj ? __defProp$n(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35474
- var __spreadValues$n = (a, b) => {
35493
+ var __defProp$p = Object.defineProperty;
35494
+ var __defProps$m = Object.defineProperties;
35495
+ var __getOwnPropDescs$m = Object.getOwnPropertyDescriptors;
35496
+ var __getOwnPropSymbols$w = Object.getOwnPropertySymbols;
35497
+ var __hasOwnProp$w = Object.prototype.hasOwnProperty;
35498
+ var __propIsEnum$w = Object.prototype.propertyIsEnumerable;
35499
+ var __defNormalProp$p = (obj, key, value) => key in obj ? __defProp$p(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35500
+ var __spreadValues$p = (a, b) => {
35475
35501
  for (var prop in b || (b = {}))
35476
- if (__hasOwnProp$u.call(b, prop))
35477
- __defNormalProp$n(a, prop, b[prop]);
35478
- if (__getOwnPropSymbols$u)
35479
- for (var prop of __getOwnPropSymbols$u(b)) {
35480
- if (__propIsEnum$u.call(b, prop))
35481
- __defNormalProp$n(a, prop, b[prop]);
35502
+ if (__hasOwnProp$w.call(b, prop))
35503
+ __defNormalProp$p(a, prop, b[prop]);
35504
+ if (__getOwnPropSymbols$w)
35505
+ for (var prop of __getOwnPropSymbols$w(b)) {
35506
+ if (__propIsEnum$w.call(b, prop))
35507
+ __defNormalProp$p(a, prop, b[prop]);
35482
35508
  }
35483
35509
  return a;
35484
35510
  };
35485
- var __spreadProps$k = (a, b) => __defProps$k(a, __getOwnPropDescs$k(b));
35486
- var __async$F = (__this, __arguments, generator) => {
35511
+ var __spreadProps$m = (a, b) => __defProps$m(a, __getOwnPropDescs$m(b));
35512
+ var __async$G = (__this, __arguments, generator) => {
35487
35513
  return new Promise((resolve, reject) => {
35488
35514
  var fulfilled = (value) => {
35489
35515
  try {
@@ -35505,8 +35531,8 @@ var __async$F = (__this, __arguments, generator) => {
35505
35531
  };
35506
35532
  const useUpdateConnectionsCarrierSettings = (params) => {
35507
35533
  const { client } = useShipEngine();
35508
- return useMutation(__spreadProps$k(__spreadValues$n({}, params), {
35509
- mutationFn: (_0) => __async$F(void 0, [_0], function* ({
35534
+ return useMutation(__spreadProps$m(__spreadValues$p({}, params), {
35535
+ mutationFn: (_0) => __async$G(void 0, [_0], function* ({
35510
35536
  carrierName,
35511
35537
  carrierId,
35512
35538
  formData
@@ -35533,7 +35559,7 @@ const useListCustomPackageTypes = () => {
35533
35559
  });
35534
35560
  };
35535
35561
 
35536
- var __async$E = (__this, __arguments, generator) => {
35562
+ var __async$F = (__this, __arguments, generator) => {
35537
35563
  return new Promise((resolve, reject) => {
35538
35564
  var fulfilled = (value) => {
35539
35565
  try {
@@ -35556,7 +35582,7 @@ var __async$E = (__this, __arguments, generator) => {
35556
35582
  const useCreateFundingSource = () => {
35557
35583
  const { client } = useShipEngine();
35558
35584
  return useMutation({
35559
- mutationFn: (fundingSource) => __async$E(void 0, null, function* () {
35585
+ mutationFn: (fundingSource) => __async$F(void 0, null, function* () {
35560
35586
  const result = yield client.fundingSources.create(fundingSource);
35561
35587
  return result.data;
35562
35588
  }),
@@ -35565,7 +35591,7 @@ const useCreateFundingSource = () => {
35565
35591
  });
35566
35592
  };
35567
35593
 
35568
- var __async$D = (__this, __arguments, generator) => {
35594
+ var __async$E = (__this, __arguments, generator) => {
35569
35595
  return new Promise((resolve, reject) => {
35570
35596
  var fulfilled = (value) => {
35571
35597
  try {
@@ -35588,7 +35614,7 @@ var __async$D = (__this, __arguments, generator) => {
35588
35614
  const useFundingSourcesAddFunds = () => {
35589
35615
  const { client } = useShipEngine();
35590
35616
  return useMutation({
35591
- mutationFn: (_0) => __async$D(void 0, [_0], function* ({ funds, fundingSourceId }) {
35617
+ mutationFn: (_0) => __async$E(void 0, [_0], function* ({ funds, fundingSourceId }) {
35592
35618
  const result = yield client.fundingSources.addFunds(funds, fundingSourceId);
35593
35619
  return result.data;
35594
35620
  }),
@@ -35617,7 +35643,7 @@ const useListFundingSources = () => {
35617
35643
  });
35618
35644
  };
35619
35645
 
35620
- var __async$C = (__this, __arguments, generator) => {
35646
+ var __async$D = (__this, __arguments, generator) => {
35621
35647
  return new Promise((resolve, reject) => {
35622
35648
  var fulfilled = (value) => {
35623
35649
  try {
@@ -35640,7 +35666,7 @@ var __async$C = (__this, __arguments, generator) => {
35640
35666
  const useRegisterCarrier = () => {
35641
35667
  const { client } = useShipEngine();
35642
35668
  return useMutation({
35643
- mutationFn: (carrier) => __async$C(void 0, null, function* () {
35669
+ mutationFn: (carrier) => __async$D(void 0, null, function* () {
35644
35670
  const result = yield client.fundingSources.registerCarrier(carrier);
35645
35671
  return result.data;
35646
35672
  }),
@@ -35649,7 +35675,7 @@ const useRegisterCarrier = () => {
35649
35675
  });
35650
35676
  };
35651
35677
 
35652
- var __async$B = (__this, __arguments, generator) => {
35678
+ var __async$C = (__this, __arguments, generator) => {
35653
35679
  return new Promise((resolve, reject) => {
35654
35680
  var fulfilled = (value) => {
35655
35681
  try {
@@ -35672,7 +35698,7 @@ var __async$B = (__this, __arguments, generator) => {
35672
35698
  const useUpdateFundingSource = () => {
35673
35699
  const { client } = useShipEngine();
35674
35700
  return useMutation({
35675
- mutationFn: (_0) => __async$B(void 0, [_0], function* ({
35701
+ mutationFn: (_0) => __async$C(void 0, [_0], function* ({
35676
35702
  billingInfo,
35677
35703
  creditCardInfo,
35678
35704
  fundingSourceId,
@@ -35713,29 +35739,29 @@ const useGetFundingSourceTransactions = (fundingSourceId, params) => {
35713
35739
  });
35714
35740
  };
35715
35741
 
35716
- var __defProp$m = Object.defineProperty;
35717
- var __defProps$j = Object.defineProperties;
35718
- var __getOwnPropDescs$j = Object.getOwnPropertyDescriptors;
35719
- var __getOwnPropSymbols$t = Object.getOwnPropertySymbols;
35720
- var __hasOwnProp$t = Object.prototype.hasOwnProperty;
35721
- var __propIsEnum$t = Object.prototype.propertyIsEnumerable;
35722
- var __defNormalProp$m = (obj, key, value) => key in obj ? __defProp$m(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35723
- var __spreadValues$m = (a, b) => {
35742
+ var __defProp$o = Object.defineProperty;
35743
+ var __defProps$l = Object.defineProperties;
35744
+ var __getOwnPropDescs$l = Object.getOwnPropertyDescriptors;
35745
+ var __getOwnPropSymbols$v = Object.getOwnPropertySymbols;
35746
+ var __hasOwnProp$v = Object.prototype.hasOwnProperty;
35747
+ var __propIsEnum$v = Object.prototype.propertyIsEnumerable;
35748
+ var __defNormalProp$o = (obj, key, value) => key in obj ? __defProp$o(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35749
+ var __spreadValues$o = (a, b) => {
35724
35750
  for (var prop in b || (b = {}))
35725
- if (__hasOwnProp$t.call(b, prop))
35726
- __defNormalProp$m(a, prop, b[prop]);
35727
- if (__getOwnPropSymbols$t)
35728
- for (var prop of __getOwnPropSymbols$t(b)) {
35729
- if (__propIsEnum$t.call(b, prop))
35730
- __defNormalProp$m(a, prop, b[prop]);
35751
+ if (__hasOwnProp$v.call(b, prop))
35752
+ __defNormalProp$o(a, prop, b[prop]);
35753
+ if (__getOwnPropSymbols$v)
35754
+ for (var prop of __getOwnPropSymbols$v(b)) {
35755
+ if (__propIsEnum$v.call(b, prop))
35756
+ __defNormalProp$o(a, prop, b[prop]);
35731
35757
  }
35732
35758
  return a;
35733
35759
  };
35734
- var __spreadProps$j = (a, b) => __defProps$j(a, __getOwnPropDescs$j(b));
35760
+ var __spreadProps$l = (a, b) => __defProps$l(a, __getOwnPropDescs$l(b));
35735
35761
  const useGetInsuranceFundingSourceAcceptedTerms = (params) => {
35736
35762
  const { client } = useShipEngine();
35737
- const queryParams = __spreadValues$m({}, params);
35738
- return useQuery(__spreadProps$j(__spreadValues$m({}, queryParams), {
35763
+ const queryParams = __spreadValues$o({}, params);
35764
+ return useQuery(__spreadProps$l(__spreadValues$o({}, queryParams), {
35739
35765
  onError,
35740
35766
  queryFn: () => client.fundingSources.insuranceAcceptedTerms(),
35741
35767
  queryKey: ["useGetInsuranceFundingSourceAcceptedTerms"],
@@ -35758,22 +35784,22 @@ const useGetInsuranceAccount = (insuranceProvider) => {
35758
35784
  });
35759
35785
  };
35760
35786
 
35761
- var __getOwnPropSymbols$s = Object.getOwnPropertySymbols;
35762
- var __hasOwnProp$s = Object.prototype.hasOwnProperty;
35763
- var __propIsEnum$s = Object.prototype.propertyIsEnumerable;
35787
+ var __getOwnPropSymbols$u = Object.getOwnPropertySymbols;
35788
+ var __hasOwnProp$u = Object.prototype.hasOwnProperty;
35789
+ var __propIsEnum$u = Object.prototype.propertyIsEnumerable;
35764
35790
  var __objRest$h = (source, exclude) => {
35765
35791
  var target = {};
35766
35792
  for (var prop in source)
35767
- if (__hasOwnProp$s.call(source, prop) && exclude.indexOf(prop) < 0)
35793
+ if (__hasOwnProp$u.call(source, prop) && exclude.indexOf(prop) < 0)
35768
35794
  target[prop] = source[prop];
35769
- if (source != null && __getOwnPropSymbols$s)
35770
- for (var prop of __getOwnPropSymbols$s(source)) {
35771
- if (exclude.indexOf(prop) < 0 && __propIsEnum$s.call(source, prop))
35795
+ if (source != null && __getOwnPropSymbols$u)
35796
+ for (var prop of __getOwnPropSymbols$u(source)) {
35797
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$u.call(source, prop))
35772
35798
  target[prop] = source[prop];
35773
35799
  }
35774
35800
  return target;
35775
35801
  };
35776
- var __async$A = (__this, __arguments, generator) => {
35802
+ var __async$B = (__this, __arguments, generator) => {
35777
35803
  return new Promise((resolve, reject) => {
35778
35804
  var fulfilled = (value) => {
35779
35805
  try {
@@ -35796,7 +35822,7 @@ var __async$A = (__this, __arguments, generator) => {
35796
35822
  const useAddInsuranceFunds = () => {
35797
35823
  const { client } = useShipEngine();
35798
35824
  return useMutation({
35799
- mutationFn: (_a) => __async$A(void 0, null, function* () {
35825
+ mutationFn: (_a) => __async$B(void 0, null, function* () {
35800
35826
  var _b = _a, { insuranceProvider } = _b, rest = __objRest$h(_b, ["insuranceProvider"]);
35801
35827
  const result = yield client.insurance.addFunds(insuranceProvider, rest);
35802
35828
  return result.data;
@@ -35806,26 +35832,26 @@ const useAddInsuranceFunds = () => {
35806
35832
  });
35807
35833
  };
35808
35834
 
35809
- var __defProp$l = Object.defineProperty;
35810
- var __defProps$i = Object.defineProperties;
35811
- var __getOwnPropDescs$i = Object.getOwnPropertyDescriptors;
35812
- var __getOwnPropSymbols$r = Object.getOwnPropertySymbols;
35813
- var __hasOwnProp$r = Object.prototype.hasOwnProperty;
35814
- var __propIsEnum$r = Object.prototype.propertyIsEnumerable;
35815
- var __defNormalProp$l = (obj, key, value) => key in obj ? __defProp$l(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35816
- var __spreadValues$l = (a, b) => {
35835
+ var __defProp$n = Object.defineProperty;
35836
+ var __defProps$k = Object.defineProperties;
35837
+ var __getOwnPropDescs$k = Object.getOwnPropertyDescriptors;
35838
+ var __getOwnPropSymbols$t = Object.getOwnPropertySymbols;
35839
+ var __hasOwnProp$t = Object.prototype.hasOwnProperty;
35840
+ var __propIsEnum$t = Object.prototype.propertyIsEnumerable;
35841
+ var __defNormalProp$n = (obj, key, value) => key in obj ? __defProp$n(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35842
+ var __spreadValues$n = (a, b) => {
35817
35843
  for (var prop in b || (b = {}))
35818
- if (__hasOwnProp$r.call(b, prop))
35819
- __defNormalProp$l(a, prop, b[prop]);
35820
- if (__getOwnPropSymbols$r)
35821
- for (var prop of __getOwnPropSymbols$r(b)) {
35822
- if (__propIsEnum$r.call(b, prop))
35823
- __defNormalProp$l(a, prop, b[prop]);
35844
+ if (__hasOwnProp$t.call(b, prop))
35845
+ __defNormalProp$n(a, prop, b[prop]);
35846
+ if (__getOwnPropSymbols$t)
35847
+ for (var prop of __getOwnPropSymbols$t(b)) {
35848
+ if (__propIsEnum$t.call(b, prop))
35849
+ __defNormalProp$n(a, prop, b[prop]);
35824
35850
  }
35825
35851
  return a;
35826
35852
  };
35827
- var __spreadProps$i = (a, b) => __defProps$i(a, __getOwnPropDescs$i(b));
35828
- var __async$z = (__this, __arguments, generator) => {
35853
+ var __spreadProps$k = (a, b) => __defProps$k(a, __getOwnPropDescs$k(b));
35854
+ var __async$A = (__this, __arguments, generator) => {
35829
35855
  return new Promise((resolve, reject) => {
35830
35856
  var fulfilled = (value) => {
35831
35857
  try {
@@ -35847,8 +35873,8 @@ var __async$z = (__this, __arguments, generator) => {
35847
35873
  };
35848
35874
  const useCreateInvoiceAddress = (params) => {
35849
35875
  const { client } = useShipEngine();
35850
- return useMutation(__spreadProps$i(__spreadValues$l({}, params), {
35851
- mutationFn: (invoiceAddress) => __async$z(void 0, null, function* () {
35876
+ return useMutation(__spreadProps$k(__spreadValues$n({}, params), {
35877
+ mutationFn: (invoiceAddress) => __async$A(void 0, null, function* () {
35852
35878
  const result = yield client.invoiceAddress.create(invoiceAddress);
35853
35879
  return result.data;
35854
35880
  }),
@@ -35857,26 +35883,26 @@ const useCreateInvoiceAddress = (params) => {
35857
35883
  }));
35858
35884
  };
35859
35885
 
35860
- var __defProp$k = Object.defineProperty;
35861
- var __defProps$h = Object.defineProperties;
35862
- var __getOwnPropDescs$h = Object.getOwnPropertyDescriptors;
35863
- var __getOwnPropSymbols$q = Object.getOwnPropertySymbols;
35864
- var __hasOwnProp$q = Object.prototype.hasOwnProperty;
35865
- var __propIsEnum$q = Object.prototype.propertyIsEnumerable;
35866
- var __defNormalProp$k = (obj, key, value) => key in obj ? __defProp$k(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35867
- var __spreadValues$k = (a, b) => {
35886
+ var __defProp$m = Object.defineProperty;
35887
+ var __defProps$j = Object.defineProperties;
35888
+ var __getOwnPropDescs$j = Object.getOwnPropertyDescriptors;
35889
+ var __getOwnPropSymbols$s = Object.getOwnPropertySymbols;
35890
+ var __hasOwnProp$s = Object.prototype.hasOwnProperty;
35891
+ var __propIsEnum$s = Object.prototype.propertyIsEnumerable;
35892
+ var __defNormalProp$m = (obj, key, value) => key in obj ? __defProp$m(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35893
+ var __spreadValues$m = (a, b) => {
35868
35894
  for (var prop in b || (b = {}))
35869
- if (__hasOwnProp$q.call(b, prop))
35870
- __defNormalProp$k(a, prop, b[prop]);
35871
- if (__getOwnPropSymbols$q)
35872
- for (var prop of __getOwnPropSymbols$q(b)) {
35873
- if (__propIsEnum$q.call(b, prop))
35874
- __defNormalProp$k(a, prop, b[prop]);
35895
+ if (__hasOwnProp$s.call(b, prop))
35896
+ __defNormalProp$m(a, prop, b[prop]);
35897
+ if (__getOwnPropSymbols$s)
35898
+ for (var prop of __getOwnPropSymbols$s(b)) {
35899
+ if (__propIsEnum$s.call(b, prop))
35900
+ __defNormalProp$m(a, prop, b[prop]);
35875
35901
  }
35876
35902
  return a;
35877
35903
  };
35878
- var __spreadProps$h = (a, b) => __defProps$h(a, __getOwnPropDescs$h(b));
35879
- var __async$y = (__this, __arguments, generator) => {
35904
+ var __spreadProps$j = (a, b) => __defProps$j(a, __getOwnPropDescs$j(b));
35905
+ var __async$z = (__this, __arguments, generator) => {
35880
35906
  return new Promise((resolve, reject) => {
35881
35907
  var fulfilled = (value) => {
35882
35908
  try {
@@ -35898,8 +35924,8 @@ var __async$y = (__this, __arguments, generator) => {
35898
35924
  };
35899
35925
  const useUpdateInvoiceAddress = (params) => {
35900
35926
  const { client } = useShipEngine();
35901
- return useMutation(__spreadProps$h(__spreadValues$k({}, params), {
35902
- mutationFn: (invoiceAddress) => __async$y(void 0, null, function* () {
35927
+ return useMutation(__spreadProps$j(__spreadValues$m({}, params), {
35928
+ mutationFn: (invoiceAddress) => __async$z(void 0, null, function* () {
35903
35929
  const result = yield client.invoiceAddress.update(invoiceAddress);
35904
35930
  return result.data;
35905
35931
  }),
@@ -35908,28 +35934,28 @@ const useUpdateInvoiceAddress = (params) => {
35908
35934
  }));
35909
35935
  };
35910
35936
 
35911
- var __defProp$j = Object.defineProperty;
35912
- var __defProps$g = Object.defineProperties;
35913
- var __getOwnPropDescs$g = Object.getOwnPropertyDescriptors;
35914
- var __getOwnPropSymbols$p = Object.getOwnPropertySymbols;
35915
- var __hasOwnProp$p = Object.prototype.hasOwnProperty;
35916
- var __propIsEnum$p = Object.prototype.propertyIsEnumerable;
35917
- var __defNormalProp$j = (obj, key, value) => key in obj ? __defProp$j(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35918
- var __spreadValues$j = (a, b) => {
35919
- for (var prop in b || (b = {}))
35920
- if (__hasOwnProp$p.call(b, prop))
35921
- __defNormalProp$j(a, prop, b[prop]);
35922
- if (__getOwnPropSymbols$p)
35923
- for (var prop of __getOwnPropSymbols$p(b)) {
35924
- if (__propIsEnum$p.call(b, prop))
35925
- __defNormalProp$j(a, prop, b[prop]);
35937
+ var __defProp$l = Object.defineProperty;
35938
+ var __defProps$i = Object.defineProperties;
35939
+ var __getOwnPropDescs$i = Object.getOwnPropertyDescriptors;
35940
+ var __getOwnPropSymbols$r = Object.getOwnPropertySymbols;
35941
+ var __hasOwnProp$r = Object.prototype.hasOwnProperty;
35942
+ var __propIsEnum$r = Object.prototype.propertyIsEnumerable;
35943
+ var __defNormalProp$l = (obj, key, value) => key in obj ? __defProp$l(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35944
+ var __spreadValues$l = (a, b) => {
35945
+ for (var prop in b || (b = {}))
35946
+ if (__hasOwnProp$r.call(b, prop))
35947
+ __defNormalProp$l(a, prop, b[prop]);
35948
+ if (__getOwnPropSymbols$r)
35949
+ for (var prop of __getOwnPropSymbols$r(b)) {
35950
+ if (__propIsEnum$r.call(b, prop))
35951
+ __defNormalProp$l(a, prop, b[prop]);
35926
35952
  }
35927
35953
  return a;
35928
35954
  };
35929
- var __spreadProps$g = (a, b) => __defProps$g(a, __getOwnPropDescs$g(b));
35955
+ var __spreadProps$i = (a, b) => __defProps$i(a, __getOwnPropDescs$i(b));
35930
35956
  const useGetInvoiceAddress = (params) => {
35931
35957
  const { client } = useShipEngine();
35932
- return useQuery(__spreadProps$g(__spreadValues$j({}, params), {
35958
+ return useQuery(__spreadProps$i(__spreadValues$l({}, params), {
35933
35959
  onError,
35934
35960
  queryFn: () => client.invoiceAddress.get(),
35935
35961
  queryKey: ["useGetInvoiceAddress"],
@@ -35937,22 +35963,22 @@ const useGetInvoiceAddress = (params) => {
35937
35963
  }));
35938
35964
  };
35939
35965
 
35940
- var __getOwnPropSymbols$o = Object.getOwnPropertySymbols;
35941
- var __hasOwnProp$o = Object.prototype.hasOwnProperty;
35942
- var __propIsEnum$o = Object.prototype.propertyIsEnumerable;
35966
+ var __getOwnPropSymbols$q = Object.getOwnPropertySymbols;
35967
+ var __hasOwnProp$q = Object.prototype.hasOwnProperty;
35968
+ var __propIsEnum$q = Object.prototype.propertyIsEnumerable;
35943
35969
  var __objRest$g = (source, exclude) => {
35944
35970
  var target = {};
35945
35971
  for (var prop in source)
35946
- if (__hasOwnProp$o.call(source, prop) && exclude.indexOf(prop) < 0)
35972
+ if (__hasOwnProp$q.call(source, prop) && exclude.indexOf(prop) < 0)
35947
35973
  target[prop] = source[prop];
35948
- if (source != null && __getOwnPropSymbols$o)
35949
- for (var prop of __getOwnPropSymbols$o(source)) {
35950
- if (exclude.indexOf(prop) < 0 && __propIsEnum$o.call(source, prop))
35974
+ if (source != null && __getOwnPropSymbols$q)
35975
+ for (var prop of __getOwnPropSymbols$q(source)) {
35976
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$q.call(source, prop))
35951
35977
  target[prop] = source[prop];
35952
35978
  }
35953
35979
  return target;
35954
35980
  };
35955
- var __async$x = (__this, __arguments, generator) => {
35981
+ var __async$y = (__this, __arguments, generator) => {
35956
35982
  return new Promise((resolve, reject) => {
35957
35983
  var fulfilled = (value) => {
35958
35984
  try {
@@ -35975,7 +36001,7 @@ var __async$x = (__this, __arguments, generator) => {
35975
36001
  const useCreateLabel = () => {
35976
36002
  const { client } = useShipEngine();
35977
36003
  return useMutation({
35978
- mutationFn: (_a) => __async$x(void 0, null, function* () {
36004
+ mutationFn: (_a) => __async$y(void 0, null, function* () {
35979
36005
  var _b = _a, { rateId } = _b, options = __objRest$g(_b, ["rateId"]);
35980
36006
  const result = yield client.labels.createByRateId(rateId, options);
35981
36007
  return result.data;
@@ -36000,41 +36026,41 @@ const useGetLabel = (labelId) => {
36000
36026
  });
36001
36027
  };
36002
36028
 
36003
- var __defProp$i = Object.defineProperty;
36004
- var __defProps$f = Object.defineProperties;
36005
- var __getOwnPropDescs$f = Object.getOwnPropertyDescriptors;
36006
- var __getOwnPropSymbols$n = Object.getOwnPropertySymbols;
36007
- var __hasOwnProp$n = Object.prototype.hasOwnProperty;
36008
- var __propIsEnum$n = Object.prototype.propertyIsEnumerable;
36009
- var __defNormalProp$i = (obj, key, value) => key in obj ? __defProp$i(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
36010
- var __spreadValues$i = (a, b) => {
36029
+ var __defProp$k = Object.defineProperty;
36030
+ var __defProps$h = Object.defineProperties;
36031
+ var __getOwnPropDescs$h = Object.getOwnPropertyDescriptors;
36032
+ var __getOwnPropSymbols$p = Object.getOwnPropertySymbols;
36033
+ var __hasOwnProp$p = Object.prototype.hasOwnProperty;
36034
+ var __propIsEnum$p = Object.prototype.propertyIsEnumerable;
36035
+ var __defNormalProp$k = (obj, key, value) => key in obj ? __defProp$k(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
36036
+ var __spreadValues$k = (a, b) => {
36011
36037
  for (var prop in b || (b = {}))
36012
- if (__hasOwnProp$n.call(b, prop))
36013
- __defNormalProp$i(a, prop, b[prop]);
36014
- if (__getOwnPropSymbols$n)
36015
- for (var prop of __getOwnPropSymbols$n(b)) {
36016
- if (__propIsEnum$n.call(b, prop))
36017
- __defNormalProp$i(a, prop, b[prop]);
36038
+ if (__hasOwnProp$p.call(b, prop))
36039
+ __defNormalProp$k(a, prop, b[prop]);
36040
+ if (__getOwnPropSymbols$p)
36041
+ for (var prop of __getOwnPropSymbols$p(b)) {
36042
+ if (__propIsEnum$p.call(b, prop))
36043
+ __defNormalProp$k(a, prop, b[prop]);
36018
36044
  }
36019
36045
  return a;
36020
36046
  };
36021
- var __spreadProps$f = (a, b) => __defProps$f(a, __getOwnPropDescs$f(b));
36047
+ var __spreadProps$h = (a, b) => __defProps$h(a, __getOwnPropDescs$h(b));
36022
36048
  var __objRest$f = (source, exclude) => {
36023
36049
  var target = {};
36024
36050
  for (var prop in source)
36025
- if (__hasOwnProp$n.call(source, prop) && exclude.indexOf(prop) < 0)
36051
+ if (__hasOwnProp$p.call(source, prop) && exclude.indexOf(prop) < 0)
36026
36052
  target[prop] = source[prop];
36027
- if (source != null && __getOwnPropSymbols$n)
36028
- for (var prop of __getOwnPropSymbols$n(source)) {
36029
- if (exclude.indexOf(prop) < 0 && __propIsEnum$n.call(source, prop))
36053
+ if (source != null && __getOwnPropSymbols$p)
36054
+ for (var prop of __getOwnPropSymbols$p(source)) {
36055
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$p.call(source, prop))
36030
36056
  target[prop] = source[prop];
36031
36057
  }
36032
36058
  return target;
36033
36059
  };
36034
36060
  const useListLabels = (params) => {
36035
36061
  const { client } = useShipEngine();
36036
- const _a = __spreadValues$i({}, params), { queryFnParams } = _a, rest = __objRest$f(_a, ["queryFnParams"]);
36037
- return useQuery(__spreadProps$f(__spreadValues$i({}, rest), {
36062
+ const _a = __spreadValues$k({}, params), { queryFnParams } = _a, rest = __objRest$f(_a, ["queryFnParams"]);
36063
+ return useQuery(__spreadProps$h(__spreadValues$k({}, rest), {
36038
36064
  onError,
36039
36065
  queryFn: () => client.labels.list(queryFnParams),
36040
36066
  queryKey: ["useListLabels", params],
@@ -36042,7 +36068,7 @@ const useListLabels = (params) => {
36042
36068
  }));
36043
36069
  };
36044
36070
 
36045
- var __async$w = (__this, __arguments, generator) => {
36071
+ var __async$x = (__this, __arguments, generator) => {
36046
36072
  return new Promise((resolve, reject) => {
36047
36073
  var fulfilled = (value) => {
36048
36074
  try {
@@ -36065,7 +36091,7 @@ var __async$w = (__this, __arguments, generator) => {
36065
36091
  const useVoidLabel = () => {
36066
36092
  const { client } = useShipEngine();
36067
36093
  return useMutation({
36068
- mutationFn: (labelId) => __async$w(void 0, null, function* () {
36094
+ mutationFn: (labelId) => __async$x(void 0, null, function* () {
36069
36095
  const result = yield client.labels.void(labelId);
36070
36096
  return result.data;
36071
36097
  }),
@@ -36074,38 +36100,38 @@ const useVoidLabel = () => {
36074
36100
  });
36075
36101
  };
36076
36102
 
36077
- var __defProp$h = Object.defineProperty;
36078
- var __defProps$e = Object.defineProperties;
36079
- var __getOwnPropDescs$e = Object.getOwnPropertyDescriptors;
36080
- var __getOwnPropSymbols$m = Object.getOwnPropertySymbols;
36081
- var __hasOwnProp$m = Object.prototype.hasOwnProperty;
36082
- var __propIsEnum$m = Object.prototype.propertyIsEnumerable;
36083
- var __defNormalProp$h = (obj, key, value) => key in obj ? __defProp$h(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
36084
- var __spreadValues$h = (a, b) => {
36103
+ var __defProp$j = Object.defineProperty;
36104
+ var __defProps$g = Object.defineProperties;
36105
+ var __getOwnPropDescs$g = Object.getOwnPropertyDescriptors;
36106
+ var __getOwnPropSymbols$o = Object.getOwnPropertySymbols;
36107
+ var __hasOwnProp$o = Object.prototype.hasOwnProperty;
36108
+ var __propIsEnum$o = Object.prototype.propertyIsEnumerable;
36109
+ var __defNormalProp$j = (obj, key, value) => key in obj ? __defProp$j(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
36110
+ var __spreadValues$j = (a, b) => {
36085
36111
  for (var prop in b || (b = {}))
36086
- if (__hasOwnProp$m.call(b, prop))
36087
- __defNormalProp$h(a, prop, b[prop]);
36088
- if (__getOwnPropSymbols$m)
36089
- for (var prop of __getOwnPropSymbols$m(b)) {
36090
- if (__propIsEnum$m.call(b, prop))
36091
- __defNormalProp$h(a, prop, b[prop]);
36112
+ if (__hasOwnProp$o.call(b, prop))
36113
+ __defNormalProp$j(a, prop, b[prop]);
36114
+ if (__getOwnPropSymbols$o)
36115
+ for (var prop of __getOwnPropSymbols$o(b)) {
36116
+ if (__propIsEnum$o.call(b, prop))
36117
+ __defNormalProp$j(a, prop, b[prop]);
36092
36118
  }
36093
36119
  return a;
36094
36120
  };
36095
- var __spreadProps$e = (a, b) => __defProps$e(a, __getOwnPropDescs$e(b));
36121
+ var __spreadProps$g = (a, b) => __defProps$g(a, __getOwnPropDescs$g(b));
36096
36122
  var __objRest$e = (source, exclude) => {
36097
36123
  var target = {};
36098
36124
  for (var prop in source)
36099
- if (__hasOwnProp$m.call(source, prop) && exclude.indexOf(prop) < 0)
36125
+ if (__hasOwnProp$o.call(source, prop) && exclude.indexOf(prop) < 0)
36100
36126
  target[prop] = source[prop];
36101
- if (source != null && __getOwnPropSymbols$m)
36102
- for (var prop of __getOwnPropSymbols$m(source)) {
36103
- if (exclude.indexOf(prop) < 0 && __propIsEnum$m.call(source, prop))
36127
+ if (source != null && __getOwnPropSymbols$o)
36128
+ for (var prop of __getOwnPropSymbols$o(source)) {
36129
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$o.call(source, prop))
36104
36130
  target[prop] = source[prop];
36105
36131
  }
36106
36132
  return target;
36107
36133
  };
36108
- var __async$v = (__this, __arguments, generator) => {
36134
+ var __async$w = (__this, __arguments, generator) => {
36109
36135
  return new Promise((resolve, reject) => {
36110
36136
  var fulfilled = (value) => {
36111
36137
  try {
@@ -36127,8 +36153,8 @@ var __async$v = (__this, __arguments, generator) => {
36127
36153
  };
36128
36154
  const useListLabelsInfinite = (params) => {
36129
36155
  const { client } = useShipEngine();
36130
- const _a = __spreadValues$h({}, params), { queryFnParams } = _a, rest = __objRest$e(_a, ["queryFnParams"]);
36131
- return useInfiniteQuery(__spreadProps$e(__spreadValues$h({}, rest), {
36156
+ const _a = __spreadValues$j({}, params), { queryFnParams } = _a, rest = __objRest$e(_a, ["queryFnParams"]);
36157
+ return useInfiniteQuery(__spreadProps$g(__spreadValues$j({}, rest), {
36132
36158
  getNextPageParam: (lastPage) => {
36133
36159
  if (lastPage.page < lastPage.pages) {
36134
36160
  return lastPage.page + 1;
@@ -36136,8 +36162,8 @@ const useListLabelsInfinite = (params) => {
36136
36162
  return void 0;
36137
36163
  },
36138
36164
  onError,
36139
- queryFn: (_0) => __async$v(void 0, [_0], function* ({ pageParam = 1 }) {
36140
- const response = yield client.labels.list(__spreadProps$e(__spreadValues$h({}, queryFnParams), { page: pageParam }));
36165
+ queryFn: (_0) => __async$w(void 0, [_0], function* ({ pageParam = 1 }) {
36166
+ const response = yield client.labels.list(__spreadProps$g(__spreadValues$j({}, queryFnParams), { page: pageParam }));
36141
36167
  return response.data;
36142
36168
  }),
36143
36169
  queryKey: ["useListLabelsInfinite", params],
@@ -36151,28 +36177,28 @@ const useListLabelsInfinite = (params) => {
36151
36177
  }));
36152
36178
  };
36153
36179
 
36154
- var __defProp$g = Object.defineProperty;
36155
- var __defProps$d = Object.defineProperties;
36156
- var __getOwnPropDescs$d = Object.getOwnPropertyDescriptors;
36157
- var __getOwnPropSymbols$l = Object.getOwnPropertySymbols;
36158
- var __hasOwnProp$l = Object.prototype.hasOwnProperty;
36159
- var __propIsEnum$l = Object.prototype.propertyIsEnumerable;
36160
- var __defNormalProp$g = (obj, key, value) => key in obj ? __defProp$g(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
36161
- var __spreadValues$g = (a, b) => {
36180
+ var __defProp$i = Object.defineProperty;
36181
+ var __defProps$f = Object.defineProperties;
36182
+ var __getOwnPropDescs$f = Object.getOwnPropertyDescriptors;
36183
+ var __getOwnPropSymbols$n = Object.getOwnPropertySymbols;
36184
+ var __hasOwnProp$n = Object.prototype.hasOwnProperty;
36185
+ var __propIsEnum$n = Object.prototype.propertyIsEnumerable;
36186
+ var __defNormalProp$i = (obj, key, value) => key in obj ? __defProp$i(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
36187
+ var __spreadValues$i = (a, b) => {
36162
36188
  for (var prop in b || (b = {}))
36163
- if (__hasOwnProp$l.call(b, prop))
36164
- __defNormalProp$g(a, prop, b[prop]);
36165
- if (__getOwnPropSymbols$l)
36166
- for (var prop of __getOwnPropSymbols$l(b)) {
36167
- if (__propIsEnum$l.call(b, prop))
36168
- __defNormalProp$g(a, prop, b[prop]);
36189
+ if (__hasOwnProp$n.call(b, prop))
36190
+ __defNormalProp$i(a, prop, b[prop]);
36191
+ if (__getOwnPropSymbols$n)
36192
+ for (var prop of __getOwnPropSymbols$n(b)) {
36193
+ if (__propIsEnum$n.call(b, prop))
36194
+ __defNormalProp$i(a, prop, b[prop]);
36169
36195
  }
36170
36196
  return a;
36171
36197
  };
36172
- var __spreadProps$d = (a, b) => __defProps$d(a, __getOwnPropDescs$d(b));
36198
+ var __spreadProps$f = (a, b) => __defProps$f(a, __getOwnPropDescs$f(b));
36173
36199
  const useListOrderSources = (params) => {
36174
36200
  const { client } = useShipEngine();
36175
- return useQuery(__spreadProps$d(__spreadValues$g({}, params), {
36201
+ return useQuery(__spreadProps$f(__spreadValues$i({}, params), {
36176
36202
  onError,
36177
36203
  queryFn: () => client.orderSources.list(),
36178
36204
  queryKey: ["useListOrderSources"],
@@ -36180,7 +36206,7 @@ const useListOrderSources = (params) => {
36180
36206
  }));
36181
36207
  };
36182
36208
 
36183
- var __async$u = (__this, __arguments, generator) => {
36209
+ var __async$v = (__this, __arguments, generator) => {
36184
36210
  return new Promise((resolve, reject) => {
36185
36211
  var fulfilled = (value) => {
36186
36212
  try {
@@ -36203,7 +36229,7 @@ var __async$u = (__this, __arguments, generator) => {
36203
36229
  const useRefreshOrderSourceAsync = () => {
36204
36230
  const { client } = useShipEngine();
36205
36231
  return useMutation({
36206
- mutationFn: (orderSourceId) => __async$u(void 0, null, function* () {
36232
+ mutationFn: (orderSourceId) => __async$v(void 0, null, function* () {
36207
36233
  const result = yield client.orderSources.refresh(orderSourceId);
36208
36234
  return result.data;
36209
36235
  }),
@@ -36214,9 +36240,9 @@ const useRefreshOrderSource = () => {
36214
36240
  const { client } = useShipEngine();
36215
36241
  const { mutateAsync: refreshOrderSourceAsync } = useRefreshOrderSourceAsync();
36216
36242
  return useMutation({
36217
- mutationFn: (orderSourceId) => __async$u(void 0, null, function* () {
36243
+ mutationFn: (orderSourceId) => __async$v(void 0, null, function* () {
36218
36244
  yield refreshOrderSourceAsync(orderSourceId);
36219
- const waitResult = yield retryUntil(() => __async$u(void 0, null, function* () {
36245
+ const waitResult = yield retryUntil(() => __async$v(void 0, null, function* () {
36220
36246
  const { data: checkResult } = yield client.orderSources.get(orderSourceId);
36221
36247
  if (["preparing_update", "updating"].includes(checkResult.refreshInfo.status)) {
36222
36248
  throw new CodedError("Order source is still refreshing");
@@ -36230,7 +36256,7 @@ const useRefreshOrderSource = () => {
36230
36256
  });
36231
36257
  };
36232
36258
 
36233
- var __async$t = (__this, __arguments, generator) => {
36259
+ var __async$u = (__this, __arguments, generator) => {
36234
36260
  return new Promise((resolve, reject) => {
36235
36261
  var fulfilled = (value) => {
36236
36262
  try {
@@ -36253,7 +36279,7 @@ var __async$t = (__this, __arguments, generator) => {
36253
36279
  const useDeactivateOrderSource = () => {
36254
36280
  const { client } = useShipEngine();
36255
36281
  return useMutation({
36256
- mutationFn: (orderSourceId) => __async$t(void 0, null, function* () {
36282
+ mutationFn: (orderSourceId) => __async$u(void 0, null, function* () {
36257
36283
  const result = yield client.orderSources.deactivate(orderSourceId);
36258
36284
  return result.data;
36259
36285
  }),
@@ -36272,7 +36298,7 @@ const useListOrderSourcesConnections = () => {
36272
36298
  });
36273
36299
  };
36274
36300
 
36275
- var __async$s = (__this, __arguments, generator) => {
36301
+ var __async$t = (__this, __arguments, generator) => {
36276
36302
  return new Promise((resolve, reject) => {
36277
36303
  var fulfilled = (value) => {
36278
36304
  try {
@@ -36295,7 +36321,7 @@ var __async$s = (__this, __arguments, generator) => {
36295
36321
  const useUpdateOrderSource = () => {
36296
36322
  const { client } = useShipEngine();
36297
36323
  return useMutation({
36298
- mutationFn: (params) => __async$s(void 0, null, function* () {
36324
+ mutationFn: (params) => __async$t(void 0, null, function* () {
36299
36325
  const result = yield client.orderSources.update(params);
36300
36326
  return result.data;
36301
36327
  }),
@@ -36304,7 +36330,7 @@ const useUpdateOrderSource = () => {
36304
36330
  });
36305
36331
  };
36306
36332
 
36307
- var __async$r = (__this, __arguments, generator) => {
36333
+ var __async$s = (__this, __arguments, generator) => {
36308
36334
  return new Promise((resolve, reject) => {
36309
36335
  var fulfilled = (value) => {
36310
36336
  try {
@@ -36327,7 +36353,7 @@ var __async$r = (__this, __arguments, generator) => {
36327
36353
  const useCreateRateCard = () => {
36328
36354
  const { client } = useShipEngine();
36329
36355
  return useMutation({
36330
- mutationFn: (rateCard) => __async$r(void 0, null, function* () {
36356
+ mutationFn: (rateCard) => __async$s(void 0, null, function* () {
36331
36357
  const result = yield client.rateCards.create(rateCard);
36332
36358
  return result.data;
36333
36359
  }),
@@ -36374,7 +36400,7 @@ const useListRateCards = (carrierIds) => {
36374
36400
  });
36375
36401
  };
36376
36402
 
36377
- var __async$q = (__this, __arguments, generator) => {
36403
+ var __async$r = (__this, __arguments, generator) => {
36378
36404
  return new Promise((resolve, reject) => {
36379
36405
  var fulfilled = (value) => {
36380
36406
  try {
@@ -36397,7 +36423,7 @@ var __async$q = (__this, __arguments, generator) => {
36397
36423
  const usePublishRateCard = () => {
36398
36424
  const { client } = useShipEngine();
36399
36425
  return useMutation({
36400
- mutationFn: (rateCardId) => __async$q(void 0, null, function* () {
36426
+ mutationFn: (rateCardId) => __async$r(void 0, null, function* () {
36401
36427
  return yield client.rateCards.publish(rateCardId);
36402
36428
  }),
36403
36429
  mutationKey: ["usePublishRateCard"],
@@ -36405,7 +36431,7 @@ const usePublishRateCard = () => {
36405
36431
  });
36406
36432
  };
36407
36433
 
36408
- var __async$p = (__this, __arguments, generator) => {
36434
+ var __async$q = (__this, __arguments, generator) => {
36409
36435
  return new Promise((resolve, reject) => {
36410
36436
  var fulfilled = (value) => {
36411
36437
  try {
@@ -36428,7 +36454,7 @@ var __async$p = (__this, __arguments, generator) => {
36428
36454
  const useUpdateRateCard = () => {
36429
36455
  const { client } = useShipEngine();
36430
36456
  return useMutation({
36431
- mutationFn: (rateCard) => __async$p(void 0, null, function* () {
36457
+ mutationFn: (rateCard) => __async$q(void 0, null, function* () {
36432
36458
  const result = yield client.rateCards.update(rateCard);
36433
36459
  return result.data;
36434
36460
  }),
@@ -36437,7 +36463,7 @@ const useUpdateRateCard = () => {
36437
36463
  });
36438
36464
  };
36439
36465
 
36440
- var __async$o = (__this, __arguments, generator) => {
36466
+ var __async$p = (__this, __arguments, generator) => {
36441
36467
  return new Promise((resolve, reject) => {
36442
36468
  var fulfilled = (value) => {
36443
36469
  try {
@@ -36460,7 +36486,7 @@ var __async$o = (__this, __arguments, generator) => {
36460
36486
  const useUploadRateCard = () => {
36461
36487
  const { client } = useShipEngine();
36462
36488
  return useMutation({
36463
- mutationFn: (_0) => __async$o(void 0, [_0], function* ({ rateCardId, file }) {
36489
+ mutationFn: (_0) => __async$p(void 0, [_0], function* ({ rateCardId, file }) {
36464
36490
  const result = yield client.rateCards.upload(rateCardId, file);
36465
36491
  return result.data;
36466
36492
  }),
@@ -36469,7 +36495,7 @@ const useUploadRateCard = () => {
36469
36495
  });
36470
36496
  };
36471
36497
 
36472
- var __async$n = (__this, __arguments, generator) => {
36498
+ var __async$o = (__this, __arguments, generator) => {
36473
36499
  return new Promise((resolve, reject) => {
36474
36500
  var fulfilled = (value) => {
36475
36501
  try {
@@ -36492,7 +36518,7 @@ var __async$n = (__this, __arguments, generator) => {
36492
36518
  const useDeleteRateCard = () => {
36493
36519
  const { client } = useShipEngine();
36494
36520
  return useMutation({
36495
- mutationFn: (rateCardId) => __async$n(void 0, null, function* () {
36521
+ mutationFn: (rateCardId) => __async$o(void 0, null, function* () {
36496
36522
  const result = yield client.rateCards.delete(rateCardId);
36497
36523
  return result.data;
36498
36524
  }),
@@ -36501,7 +36527,7 @@ const useDeleteRateCard = () => {
36501
36527
  });
36502
36528
  };
36503
36529
 
36504
- var __async$m = (__this, __arguments, generator) => {
36530
+ var __async$n = (__this, __arguments, generator) => {
36505
36531
  return new Promise((resolve, reject) => {
36506
36532
  var fulfilled = (value) => {
36507
36533
  try {
@@ -36524,7 +36550,7 @@ var __async$m = (__this, __arguments, generator) => {
36524
36550
  const useCalculateRates = () => {
36525
36551
  const { client } = useShipEngine();
36526
36552
  return useMutation({
36527
- mutationFn: (_0) => __async$m(void 0, [_0], function* ({ rateOptions, shipmentId }) {
36553
+ mutationFn: (_0) => __async$n(void 0, [_0], function* ({ rateOptions, shipmentId }) {
36528
36554
  const result = yield client.rates.calculateByShipmentId(shipmentId, rateOptions);
36529
36555
  return result.data;
36530
36556
  }),
@@ -36533,7 +36559,7 @@ const useCalculateRates = () => {
36533
36559
  });
36534
36560
  };
36535
36561
 
36536
- var __async$l = (__this, __arguments, generator) => {
36562
+ var __async$m = (__this, __arguments, generator) => {
36537
36563
  return new Promise((resolve, reject) => {
36538
36564
  var fulfilled = (value) => {
36539
36565
  try {
@@ -36556,7 +36582,7 @@ var __async$l = (__this, __arguments, generator) => {
36556
36582
  const useRatesEstimate = () => {
36557
36583
  const { client } = useShipEngine();
36558
36584
  return useMutation({
36559
- mutationFn: (_0) => __async$l(void 0, [_0], function* ({ rateParams }) {
36585
+ mutationFn: (_0) => __async$m(void 0, [_0], function* ({ rateParams }) {
36560
36586
  const result = yield client.rates.estimate(rateParams);
36561
36587
  return result.data;
36562
36588
  }),
@@ -36610,22 +36636,22 @@ const useListSalesOrders = (params = {}) => {
36610
36636
  });
36611
36637
  };
36612
36638
 
36613
- var __getOwnPropSymbols$k = Object.getOwnPropertySymbols;
36614
- var __hasOwnProp$k = Object.prototype.hasOwnProperty;
36615
- var __propIsEnum$k = Object.prototype.propertyIsEnumerable;
36639
+ var __getOwnPropSymbols$m = Object.getOwnPropertySymbols;
36640
+ var __hasOwnProp$m = Object.prototype.hasOwnProperty;
36641
+ var __propIsEnum$m = Object.prototype.propertyIsEnumerable;
36616
36642
  var __objRest$d = (source, exclude) => {
36617
36643
  var target = {};
36618
36644
  for (var prop in source)
36619
- if (__hasOwnProp$k.call(source, prop) && exclude.indexOf(prop) < 0)
36645
+ if (__hasOwnProp$m.call(source, prop) && exclude.indexOf(prop) < 0)
36620
36646
  target[prop] = source[prop];
36621
- if (source != null && __getOwnPropSymbols$k)
36622
- for (var prop of __getOwnPropSymbols$k(source)) {
36623
- if (exclude.indexOf(prop) < 0 && __propIsEnum$k.call(source, prop))
36647
+ if (source != null && __getOwnPropSymbols$m)
36648
+ for (var prop of __getOwnPropSymbols$m(source)) {
36649
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$m.call(source, prop))
36624
36650
  target[prop] = source[prop];
36625
36651
  }
36626
36652
  return target;
36627
36653
  };
36628
- var __async$k = (__this, __arguments, generator) => {
36654
+ var __async$l = (__this, __arguments, generator) => {
36629
36655
  return new Promise((resolve, reject) => {
36630
36656
  var fulfilled = (value) => {
36631
36657
  try {
@@ -36648,7 +36674,7 @@ var __async$k = (__this, __arguments, generator) => {
36648
36674
  const useNotifySalesOrderShipped = () => {
36649
36675
  const { client } = useShipEngine();
36650
36676
  return useMutation({
36651
- mutationFn: (_a) => __async$k(void 0, null, function* () {
36677
+ mutationFn: (_a) => __async$l(void 0, null, function* () {
36652
36678
  var _b = _a, { salesOrderId } = _b, tracking = __objRest$d(_b, ["salesOrderId"]);
36653
36679
  const result = yield client.salesOrders.notifyShipped(salesOrderId, tracking);
36654
36680
  return result.data;
@@ -36658,22 +36684,22 @@ const useNotifySalesOrderShipped = () => {
36658
36684
  });
36659
36685
  };
36660
36686
 
36661
- var __getOwnPropSymbols$j = Object.getOwnPropertySymbols;
36662
- var __hasOwnProp$j = Object.prototype.hasOwnProperty;
36663
- var __propIsEnum$j = Object.prototype.propertyIsEnumerable;
36687
+ var __getOwnPropSymbols$l = Object.getOwnPropertySymbols;
36688
+ var __hasOwnProp$l = Object.prototype.hasOwnProperty;
36689
+ var __propIsEnum$l = Object.prototype.propertyIsEnumerable;
36664
36690
  var __objRest$c = (source, exclude) => {
36665
36691
  var target = {};
36666
36692
  for (var prop in source)
36667
- if (__hasOwnProp$j.call(source, prop) && exclude.indexOf(prop) < 0)
36693
+ if (__hasOwnProp$l.call(source, prop) && exclude.indexOf(prop) < 0)
36668
36694
  target[prop] = source[prop];
36669
- if (source != null && __getOwnPropSymbols$j)
36670
- for (var prop of __getOwnPropSymbols$j(source)) {
36671
- if (exclude.indexOf(prop) < 0 && __propIsEnum$j.call(source, prop))
36695
+ if (source != null && __getOwnPropSymbols$l)
36696
+ for (var prop of __getOwnPropSymbols$l(source)) {
36697
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$l.call(source, prop))
36672
36698
  target[prop] = source[prop];
36673
36699
  }
36674
36700
  return target;
36675
36701
  };
36676
- var __async$j = (__this, __arguments, generator) => {
36702
+ var __async$k = (__this, __arguments, generator) => {
36677
36703
  return new Promise((resolve, reject) => {
36678
36704
  var fulfilled = (value) => {
36679
36705
  try {
@@ -36696,7 +36722,7 @@ var __async$j = (__this, __arguments, generator) => {
36696
36722
  const useCreateSalesOrderShipment = () => {
36697
36723
  const { client } = useShipEngine();
36698
36724
  return useMutation({
36699
- mutationFn: (_a) => __async$j(void 0, null, function* () {
36725
+ mutationFn: (_a) => __async$k(void 0, null, function* () {
36700
36726
  var _b = _a, { salesOrderId } = _b, shipment = __objRest$c(_b, ["salesOrderId"]);
36701
36727
  const result = yield client.salesOrderShipments.create(salesOrderId, shipment);
36702
36728
  return result.data;
@@ -36733,22 +36759,22 @@ const useListSalesOrderShipments = (body) => {
36733
36759
  });
36734
36760
  };
36735
36761
 
36736
- var __getOwnPropSymbols$i = Object.getOwnPropertySymbols;
36737
- var __hasOwnProp$i = Object.prototype.hasOwnProperty;
36738
- var __propIsEnum$i = Object.prototype.propertyIsEnumerable;
36762
+ var __getOwnPropSymbols$k = Object.getOwnPropertySymbols;
36763
+ var __hasOwnProp$k = Object.prototype.hasOwnProperty;
36764
+ var __propIsEnum$k = Object.prototype.propertyIsEnumerable;
36739
36765
  var __objRest$b = (source, exclude) => {
36740
36766
  var target = {};
36741
36767
  for (var prop in source)
36742
- if (__hasOwnProp$i.call(source, prop) && exclude.indexOf(prop) < 0)
36768
+ if (__hasOwnProp$k.call(source, prop) && exclude.indexOf(prop) < 0)
36743
36769
  target[prop] = source[prop];
36744
- if (source != null && __getOwnPropSymbols$i)
36745
- for (var prop of __getOwnPropSymbols$i(source)) {
36746
- if (exclude.indexOf(prop) < 0 && __propIsEnum$i.call(source, prop))
36770
+ if (source != null && __getOwnPropSymbols$k)
36771
+ for (var prop of __getOwnPropSymbols$k(source)) {
36772
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$k.call(source, prop))
36747
36773
  target[prop] = source[prop];
36748
36774
  }
36749
36775
  return target;
36750
36776
  };
36751
- var __async$i = (__this, __arguments, generator) => {
36777
+ var __async$j = (__this, __arguments, generator) => {
36752
36778
  return new Promise((resolve, reject) => {
36753
36779
  var fulfilled = (value) => {
36754
36780
  try {
@@ -36771,7 +36797,7 @@ var __async$i = (__this, __arguments, generator) => {
36771
36797
  const useUpdateSalesOrderShipment = () => {
36772
36798
  const { client } = useShipEngine();
36773
36799
  return useMutation({
36774
- mutationFn: (_a) => __async$i(void 0, null, function* () {
36800
+ mutationFn: (_a) => __async$j(void 0, null, function* () {
36775
36801
  var _b = _a, { shipmentId } = _b, shipment = __objRest$b(_b, ["shipmentId"]);
36776
36802
  const result = yield client.salesOrderShipments.update(shipmentId, shipment);
36777
36803
  return result.data;
@@ -36792,26 +36818,26 @@ const useListSalesOrderShipmentsByExternalOrderId = (externalOrderId) => {
36792
36818
  });
36793
36819
  };
36794
36820
 
36795
- var __defProp$f = Object.defineProperty;
36796
- var __defProps$c = Object.defineProperties;
36797
- var __getOwnPropDescs$c = Object.getOwnPropertyDescriptors;
36798
- var __getOwnPropSymbols$h = Object.getOwnPropertySymbols;
36799
- var __hasOwnProp$h = Object.prototype.hasOwnProperty;
36800
- var __propIsEnum$h = Object.prototype.propertyIsEnumerable;
36801
- var __defNormalProp$f = (obj, key, value) => key in obj ? __defProp$f(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
36802
- var __spreadValues$f = (a, b) => {
36821
+ var __defProp$h = Object.defineProperty;
36822
+ var __defProps$e = Object.defineProperties;
36823
+ var __getOwnPropDescs$e = Object.getOwnPropertyDescriptors;
36824
+ var __getOwnPropSymbols$j = Object.getOwnPropertySymbols;
36825
+ var __hasOwnProp$j = Object.prototype.hasOwnProperty;
36826
+ var __propIsEnum$j = Object.prototype.propertyIsEnumerable;
36827
+ var __defNormalProp$h = (obj, key, value) => key in obj ? __defProp$h(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
36828
+ var __spreadValues$h = (a, b) => {
36803
36829
  for (var prop in b || (b = {}))
36804
- if (__hasOwnProp$h.call(b, prop))
36805
- __defNormalProp$f(a, prop, b[prop]);
36806
- if (__getOwnPropSymbols$h)
36807
- for (var prop of __getOwnPropSymbols$h(b)) {
36808
- if (__propIsEnum$h.call(b, prop))
36809
- __defNormalProp$f(a, prop, b[prop]);
36830
+ if (__hasOwnProp$j.call(b, prop))
36831
+ __defNormalProp$h(a, prop, b[prop]);
36832
+ if (__getOwnPropSymbols$j)
36833
+ for (var prop of __getOwnPropSymbols$j(b)) {
36834
+ if (__propIsEnum$j.call(b, prop))
36835
+ __defNormalProp$h(a, prop, b[prop]);
36810
36836
  }
36811
36837
  return a;
36812
36838
  };
36813
- var __spreadProps$c = (a, b) => __defProps$c(a, __getOwnPropDescs$c(b));
36814
- var __async$h = (__this, __arguments, generator) => {
36839
+ var __spreadProps$e = (a, b) => __defProps$e(a, __getOwnPropDescs$e(b));
36840
+ var __async$i = (__this, __arguments, generator) => {
36815
36841
  return new Promise((resolve, reject) => {
36816
36842
  var fulfilled = (value) => {
36817
36843
  try {
@@ -36834,7 +36860,7 @@ var __async$h = (__this, __arguments, generator) => {
36834
36860
  const useCreateShipment = () => {
36835
36861
  const { client } = useShipEngine();
36836
36862
  return useMutation({
36837
- mutationFn: (shipment) => __async$h(void 0, null, function* () {
36863
+ mutationFn: (shipment) => __async$i(void 0, null, function* () {
36838
36864
  var _a;
36839
36865
  if (shipment.warehouseId === void 0 && shipment.shipFrom === void 0) {
36840
36866
  throw new CodedError("errorMessages.noWarehouses", {
@@ -36852,7 +36878,7 @@ const useCreateShipment = () => {
36852
36878
  postalCode: "",
36853
36879
  stateProvince: ""
36854
36880
  };
36855
- return (yield client.shipments.create(__spreadProps$c(__spreadValues$f({}, shipment), {
36881
+ return (yield client.shipments.create(__spreadProps$e(__spreadValues$h({}, shipment), {
36856
36882
  shipTo
36857
36883
  }))).data;
36858
36884
  }),
@@ -36861,33 +36887,33 @@ const useCreateShipment = () => {
36861
36887
  });
36862
36888
  };
36863
36889
 
36864
- var __defProp$e = Object.defineProperty;
36865
- var __defProps$b = Object.defineProperties;
36866
- var __getOwnPropDescs$b = Object.getOwnPropertyDescriptors;
36867
- var __getOwnPropSymbols$g = Object.getOwnPropertySymbols;
36868
- var __hasOwnProp$g = Object.prototype.hasOwnProperty;
36869
- var __propIsEnum$g = Object.prototype.propertyIsEnumerable;
36870
- var __defNormalProp$e = (obj, key, value) => key in obj ? __defProp$e(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
36871
- var __spreadValues$e = (a, b) => {
36890
+ var __defProp$g = Object.defineProperty;
36891
+ var __defProps$d = Object.defineProperties;
36892
+ var __getOwnPropDescs$d = Object.getOwnPropertyDescriptors;
36893
+ var __getOwnPropSymbols$i = Object.getOwnPropertySymbols;
36894
+ var __hasOwnProp$i = Object.prototype.hasOwnProperty;
36895
+ var __propIsEnum$i = Object.prototype.propertyIsEnumerable;
36896
+ var __defNormalProp$g = (obj, key, value) => key in obj ? __defProp$g(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
36897
+ var __spreadValues$g = (a, b) => {
36872
36898
  for (var prop in b || (b = {}))
36873
- if (__hasOwnProp$g.call(b, prop))
36874
- __defNormalProp$e(a, prop, b[prop]);
36875
- if (__getOwnPropSymbols$g)
36876
- for (var prop of __getOwnPropSymbols$g(b)) {
36877
- if (__propIsEnum$g.call(b, prop))
36878
- __defNormalProp$e(a, prop, b[prop]);
36899
+ if (__hasOwnProp$i.call(b, prop))
36900
+ __defNormalProp$g(a, prop, b[prop]);
36901
+ if (__getOwnPropSymbols$i)
36902
+ for (var prop of __getOwnPropSymbols$i(b)) {
36903
+ if (__propIsEnum$i.call(b, prop))
36904
+ __defNormalProp$g(a, prop, b[prop]);
36879
36905
  }
36880
36906
  return a;
36881
36907
  };
36882
- var __spreadProps$b = (a, b) => __defProps$b(a, __getOwnPropDescs$b(b));
36908
+ var __spreadProps$d = (a, b) => __defProps$d(a, __getOwnPropDescs$d(b));
36883
36909
  var __objRest$a = (source, exclude) => {
36884
36910
  var target = {};
36885
36911
  for (var prop in source)
36886
- if (__hasOwnProp$g.call(source, prop) && exclude.indexOf(prop) < 0)
36912
+ if (__hasOwnProp$i.call(source, prop) && exclude.indexOf(prop) < 0)
36887
36913
  target[prop] = source[prop];
36888
- if (source != null && __getOwnPropSymbols$g)
36889
- for (var prop of __getOwnPropSymbols$g(source)) {
36890
- if (exclude.indexOf(prop) < 0 && __propIsEnum$g.call(source, prop))
36914
+ if (source != null && __getOwnPropSymbols$i)
36915
+ for (var prop of __getOwnPropSymbols$i(source)) {
36916
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$i.call(source, prop))
36891
36917
  target[prop] = source[prop];
36892
36918
  }
36893
36919
  return target;
@@ -36897,7 +36923,7 @@ const useGetShipmentRates = (params) => {
36897
36923
  const _a = params, { queryFnParams } = _a, rest = __objRest$a(_a, ["queryFnParams"]);
36898
36924
  const shipmentId = queryFnParams == null ? void 0 : queryFnParams.shipmentId;
36899
36925
  const createdAtStart = queryFnParams == null ? void 0 : queryFnParams.createdAtStart;
36900
- return useQuery(__spreadProps$b(__spreadValues$e({
36926
+ return useQuery(__spreadProps$d(__spreadValues$g({
36901
36927
  enabled: shipmentId !== void 0
36902
36928
  }, rest), {
36903
36929
  onError,
@@ -36912,33 +36938,33 @@ const useGetShipmentRates = (params) => {
36912
36938
  }));
36913
36939
  };
36914
36940
 
36915
- var __defProp$d = Object.defineProperty;
36916
- var __defProps$a = Object.defineProperties;
36917
- var __getOwnPropDescs$a = Object.getOwnPropertyDescriptors;
36918
- var __getOwnPropSymbols$f = Object.getOwnPropertySymbols;
36919
- var __hasOwnProp$f = Object.prototype.hasOwnProperty;
36920
- var __propIsEnum$f = Object.prototype.propertyIsEnumerable;
36921
- var __defNormalProp$d = (obj, key, value) => key in obj ? __defProp$d(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
36922
- var __spreadValues$d = (a, b) => {
36941
+ var __defProp$f = Object.defineProperty;
36942
+ var __defProps$c = Object.defineProperties;
36943
+ var __getOwnPropDescs$c = Object.getOwnPropertyDescriptors;
36944
+ var __getOwnPropSymbols$h = Object.getOwnPropertySymbols;
36945
+ var __hasOwnProp$h = Object.prototype.hasOwnProperty;
36946
+ var __propIsEnum$h = Object.prototype.propertyIsEnumerable;
36947
+ var __defNormalProp$f = (obj, key, value) => key in obj ? __defProp$f(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
36948
+ var __spreadValues$f = (a, b) => {
36923
36949
  for (var prop in b || (b = {}))
36924
- if (__hasOwnProp$f.call(b, prop))
36925
- __defNormalProp$d(a, prop, b[prop]);
36926
- if (__getOwnPropSymbols$f)
36927
- for (var prop of __getOwnPropSymbols$f(b)) {
36928
- if (__propIsEnum$f.call(b, prop))
36929
- __defNormalProp$d(a, prop, b[prop]);
36950
+ if (__hasOwnProp$h.call(b, prop))
36951
+ __defNormalProp$f(a, prop, b[prop]);
36952
+ if (__getOwnPropSymbols$h)
36953
+ for (var prop of __getOwnPropSymbols$h(b)) {
36954
+ if (__propIsEnum$h.call(b, prop))
36955
+ __defNormalProp$f(a, prop, b[prop]);
36930
36956
  }
36931
36957
  return a;
36932
36958
  };
36933
- var __spreadProps$a = (a, b) => __defProps$a(a, __getOwnPropDescs$a(b));
36959
+ var __spreadProps$c = (a, b) => __defProps$c(a, __getOwnPropDescs$c(b));
36934
36960
  var __objRest$9 = (source, exclude) => {
36935
36961
  var target = {};
36936
36962
  for (var prop in source)
36937
- if (__hasOwnProp$f.call(source, prop) && exclude.indexOf(prop) < 0)
36963
+ if (__hasOwnProp$h.call(source, prop) && exclude.indexOf(prop) < 0)
36938
36964
  target[prop] = source[prop];
36939
- if (source != null && __getOwnPropSymbols$f)
36940
- for (var prop of __getOwnPropSymbols$f(source)) {
36941
- if (exclude.indexOf(prop) < 0 && __propIsEnum$f.call(source, prop))
36965
+ if (source != null && __getOwnPropSymbols$h)
36966
+ for (var prop of __getOwnPropSymbols$h(source)) {
36967
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$h.call(source, prop))
36942
36968
  target[prop] = source[prop];
36943
36969
  }
36944
36970
  return target;
@@ -36954,7 +36980,7 @@ const useGetShipment = (params) => {
36954
36980
  }
36955
36981
  return {};
36956
36982
  };
36957
- return useQuery(__spreadProps$a(__spreadValues$d({}, getQueryProps()), {
36983
+ return useQuery(__spreadProps$c(__spreadValues$f({}, getQueryProps()), {
36958
36984
  enabled: shipmentId !== void 0,
36959
36985
  onError,
36960
36986
  queryFn: () => {
@@ -36968,17 +36994,17 @@ const useGetShipment = (params) => {
36968
36994
  }));
36969
36995
  };
36970
36996
 
36971
- var __getOwnPropSymbols$e = Object.getOwnPropertySymbols;
36972
- var __hasOwnProp$e = Object.prototype.hasOwnProperty;
36973
- var __propIsEnum$e = Object.prototype.propertyIsEnumerable;
36997
+ var __getOwnPropSymbols$g = Object.getOwnPropertySymbols;
36998
+ var __hasOwnProp$g = Object.prototype.hasOwnProperty;
36999
+ var __propIsEnum$g = Object.prototype.propertyIsEnumerable;
36974
37000
  var __objRest$8 = (source, exclude) => {
36975
37001
  var target = {};
36976
37002
  for (var prop in source)
36977
- if (__hasOwnProp$e.call(source, prop) && exclude.indexOf(prop) < 0)
37003
+ if (__hasOwnProp$g.call(source, prop) && exclude.indexOf(prop) < 0)
36978
37004
  target[prop] = source[prop];
36979
- if (source != null && __getOwnPropSymbols$e)
36980
- for (var prop of __getOwnPropSymbols$e(source)) {
36981
- if (exclude.indexOf(prop) < 0 && __propIsEnum$e.call(source, prop))
37005
+ if (source != null && __getOwnPropSymbols$g)
37006
+ for (var prop of __getOwnPropSymbols$g(source)) {
37007
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$g.call(source, prop))
36982
37008
  target[prop] = source[prop];
36983
37009
  }
36984
37010
  return target;
@@ -36995,33 +37021,33 @@ const useListShipments = (_params) => {
36995
37021
  });
36996
37022
  };
36997
37023
 
36998
- var __defProp$c = Object.defineProperty;
36999
- var __defProps$9 = Object.defineProperties;
37000
- var __getOwnPropDescs$9 = Object.getOwnPropertyDescriptors;
37001
- var __getOwnPropSymbols$d = Object.getOwnPropertySymbols;
37002
- var __hasOwnProp$d = Object.prototype.hasOwnProperty;
37003
- var __propIsEnum$d = Object.prototype.propertyIsEnumerable;
37004
- var __defNormalProp$c = (obj, key, value) => key in obj ? __defProp$c(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
37005
- var __spreadValues$c = (a, b) => {
37024
+ var __defProp$e = Object.defineProperty;
37025
+ var __defProps$b = Object.defineProperties;
37026
+ var __getOwnPropDescs$b = Object.getOwnPropertyDescriptors;
37027
+ var __getOwnPropSymbols$f = Object.getOwnPropertySymbols;
37028
+ var __hasOwnProp$f = Object.prototype.hasOwnProperty;
37029
+ var __propIsEnum$f = Object.prototype.propertyIsEnumerable;
37030
+ var __defNormalProp$e = (obj, key, value) => key in obj ? __defProp$e(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
37031
+ var __spreadValues$e = (a, b) => {
37006
37032
  for (var prop in b || (b = {}))
37007
- if (__hasOwnProp$d.call(b, prop))
37008
- __defNormalProp$c(a, prop, b[prop]);
37009
- if (__getOwnPropSymbols$d)
37010
- for (var prop of __getOwnPropSymbols$d(b)) {
37011
- if (__propIsEnum$d.call(b, prop))
37012
- __defNormalProp$c(a, prop, b[prop]);
37033
+ if (__hasOwnProp$f.call(b, prop))
37034
+ __defNormalProp$e(a, prop, b[prop]);
37035
+ if (__getOwnPropSymbols$f)
37036
+ for (var prop of __getOwnPropSymbols$f(b)) {
37037
+ if (__propIsEnum$f.call(b, prop))
37038
+ __defNormalProp$e(a, prop, b[prop]);
37013
37039
  }
37014
37040
  return a;
37015
37041
  };
37016
- var __spreadProps$9 = (a, b) => __defProps$9(a, __getOwnPropDescs$9(b));
37042
+ var __spreadProps$b = (a, b) => __defProps$b(a, __getOwnPropDescs$b(b));
37017
37043
  var __objRest$7 = (source, exclude) => {
37018
37044
  var target = {};
37019
37045
  for (var prop in source)
37020
- if (__hasOwnProp$d.call(source, prop) && exclude.indexOf(prop) < 0)
37046
+ if (__hasOwnProp$f.call(source, prop) && exclude.indexOf(prop) < 0)
37021
37047
  target[prop] = source[prop];
37022
- if (source != null && __getOwnPropSymbols$d)
37023
- for (var prop of __getOwnPropSymbols$d(source)) {
37024
- if (exclude.indexOf(prop) < 0 && __propIsEnum$d.call(source, prop))
37048
+ if (source != null && __getOwnPropSymbols$f)
37049
+ for (var prop of __getOwnPropSymbols$f(source)) {
37050
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$f.call(source, prop))
37025
37051
  target[prop] = source[prop];
37026
37052
  }
37027
37053
  return target;
@@ -37029,7 +37055,7 @@ var __objRest$7 = (source, exclude) => {
37029
37055
  const useGetShipmentByExternalId = (params) => {
37030
37056
  const { client } = useShipEngine();
37031
37057
  const _a = params, { queryFnParams } = _a, rest = __objRest$7(_a, ["queryFnParams"]);
37032
- return useQuery(__spreadProps$9(__spreadValues$c({}, rest), {
37058
+ return useQuery(__spreadProps$b(__spreadValues$e({}, rest), {
37033
37059
  onError,
37034
37060
  queryFn: () => client.shipments.getByExternalId(queryFnParams.externalId),
37035
37061
  queryKey: ["useGetShipmentByExternalId", queryFnParams],
@@ -37037,7 +37063,7 @@ const useGetShipmentByExternalId = (params) => {
37037
37063
  }));
37038
37064
  };
37039
37065
 
37040
- var __async$g = (__this, __arguments, generator) => {
37066
+ var __async$h = (__this, __arguments, generator) => {
37041
37067
  return new Promise((resolve, reject) => {
37042
37068
  var fulfilled = (value) => {
37043
37069
  try {
@@ -37060,7 +37086,7 @@ var __async$g = (__this, __arguments, generator) => {
37060
37086
  const useCancelShipment = () => {
37061
37087
  const { client } = useShipEngine();
37062
37088
  return useMutation({
37063
- mutationFn: (shipmentId) => __async$g(void 0, null, function* () {
37089
+ mutationFn: (shipmentId) => __async$h(void 0, null, function* () {
37064
37090
  const result = yield client.shipments.cancel(shipmentId);
37065
37091
  return result.data;
37066
37092
  }),
@@ -37069,41 +37095,41 @@ const useCancelShipment = () => {
37069
37095
  });
37070
37096
  };
37071
37097
 
37072
- var __defProp$b = Object.defineProperty;
37073
- var __defProps$8 = Object.defineProperties;
37074
- var __getOwnPropDescs$8 = Object.getOwnPropertyDescriptors;
37075
- var __getOwnPropSymbols$c = Object.getOwnPropertySymbols;
37076
- var __hasOwnProp$c = Object.prototype.hasOwnProperty;
37077
- var __propIsEnum$c = Object.prototype.propertyIsEnumerable;
37078
- var __defNormalProp$b = (obj, key, value) => key in obj ? __defProp$b(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
37079
- var __spreadValues$b = (a, b) => {
37098
+ var __defProp$d = Object.defineProperty;
37099
+ var __defProps$a = Object.defineProperties;
37100
+ var __getOwnPropDescs$a = Object.getOwnPropertyDescriptors;
37101
+ var __getOwnPropSymbols$e = Object.getOwnPropertySymbols;
37102
+ var __hasOwnProp$e = Object.prototype.hasOwnProperty;
37103
+ var __propIsEnum$e = Object.prototype.propertyIsEnumerable;
37104
+ var __defNormalProp$d = (obj, key, value) => key in obj ? __defProp$d(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
37105
+ var __spreadValues$d = (a, b) => {
37080
37106
  for (var prop in b || (b = {}))
37081
- if (__hasOwnProp$c.call(b, prop))
37082
- __defNormalProp$b(a, prop, b[prop]);
37083
- if (__getOwnPropSymbols$c)
37084
- for (var prop of __getOwnPropSymbols$c(b)) {
37085
- if (__propIsEnum$c.call(b, prop))
37086
- __defNormalProp$b(a, prop, b[prop]);
37107
+ if (__hasOwnProp$e.call(b, prop))
37108
+ __defNormalProp$d(a, prop, b[prop]);
37109
+ if (__getOwnPropSymbols$e)
37110
+ for (var prop of __getOwnPropSymbols$e(b)) {
37111
+ if (__propIsEnum$e.call(b, prop))
37112
+ __defNormalProp$d(a, prop, b[prop]);
37087
37113
  }
37088
37114
  return a;
37089
37115
  };
37090
- var __spreadProps$8 = (a, b) => __defProps$8(a, __getOwnPropDescs$8(b));
37116
+ var __spreadProps$a = (a, b) => __defProps$a(a, __getOwnPropDescs$a(b));
37091
37117
  var __objRest$6 = (source, exclude) => {
37092
37118
  var target = {};
37093
37119
  for (var prop in source)
37094
- if (__hasOwnProp$c.call(source, prop) && exclude.indexOf(prop) < 0)
37120
+ if (__hasOwnProp$e.call(source, prop) && exclude.indexOf(prop) < 0)
37095
37121
  target[prop] = source[prop];
37096
- if (source != null && __getOwnPropSymbols$c)
37097
- for (var prop of __getOwnPropSymbols$c(source)) {
37098
- if (exclude.indexOf(prop) < 0 && __propIsEnum$c.call(source, prop))
37122
+ if (source != null && __getOwnPropSymbols$e)
37123
+ for (var prop of __getOwnPropSymbols$e(source)) {
37124
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$e.call(source, prop))
37099
37125
  target[prop] = source[prop];
37100
37126
  }
37101
37127
  return target;
37102
37128
  };
37103
37129
  const useListShippingRules = (params) => {
37104
37130
  const { client } = useShipEngine();
37105
- const _a = __spreadValues$b({}, params), { queryFnParams } = _a, rest = __objRest$6(_a, ["queryFnParams"]);
37106
- return useQuery(__spreadProps$8(__spreadValues$b({}, rest), {
37131
+ const _a = __spreadValues$d({}, params), { queryFnParams } = _a, rest = __objRest$6(_a, ["queryFnParams"]);
37132
+ return useQuery(__spreadProps$a(__spreadValues$d({}, rest), {
37107
37133
  onError,
37108
37134
  queryFn: () => {
37109
37135
  return client.shippingRules.list(queryFnParams);
@@ -37113,7 +37139,7 @@ const useListShippingRules = (params) => {
37113
37139
  }));
37114
37140
  };
37115
37141
 
37116
- var __async$f = (__this, __arguments, generator) => {
37142
+ var __async$g = (__this, __arguments, generator) => {
37117
37143
  return new Promise((resolve, reject) => {
37118
37144
  var fulfilled = (value) => {
37119
37145
  try {
@@ -37136,7 +37162,7 @@ var __async$f = (__this, __arguments, generator) => {
37136
37162
  const useCreateShippingRule = () => {
37137
37163
  const { client } = useShipEngine();
37138
37164
  return useMutation({
37139
- mutationFn: (props) => __async$f(void 0, null, function* () {
37165
+ mutationFn: (props) => __async$g(void 0, null, function* () {
37140
37166
  const result = yield client.shippingRules.create(props);
37141
37167
  return result.data;
37142
37168
  }),
@@ -37145,7 +37171,7 @@ const useCreateShippingRule = () => {
37145
37171
  });
37146
37172
  };
37147
37173
 
37148
- var __async$e = (__this, __arguments, generator) => {
37174
+ var __async$f = (__this, __arguments, generator) => {
37149
37175
  return new Promise((resolve, reject) => {
37150
37176
  var fulfilled = (value) => {
37151
37177
  try {
@@ -37168,7 +37194,7 @@ var __async$e = (__this, __arguments, generator) => {
37168
37194
  const useDeleteShippingRule = () => {
37169
37195
  const { client } = useShipEngine();
37170
37196
  return useMutation({
37171
- mutationFn: (props) => __async$e(void 0, null, function* () {
37197
+ mutationFn: (props) => __async$f(void 0, null, function* () {
37172
37198
  const result = yield client.shippingRules.delete(props);
37173
37199
  return result.data;
37174
37200
  }),
@@ -37177,7 +37203,7 @@ const useDeleteShippingRule = () => {
37177
37203
  });
37178
37204
  };
37179
37205
 
37180
- var __async$d = (__this, __arguments, generator) => {
37206
+ var __async$e = (__this, __arguments, generator) => {
37181
37207
  return new Promise((resolve, reject) => {
37182
37208
  var fulfilled = (value) => {
37183
37209
  try {
@@ -37200,7 +37226,7 @@ var __async$d = (__this, __arguments, generator) => {
37200
37226
  const useEditShippingRule = () => {
37201
37227
  const { client } = useShipEngine();
37202
37228
  return useMutation({
37203
- mutationFn: (props) => __async$d(void 0, null, function* () {
37229
+ mutationFn: (props) => __async$e(void 0, null, function* () {
37204
37230
  const result = yield client.shippingRules.edit(props);
37205
37231
  return result.data;
37206
37232
  }),
@@ -37209,41 +37235,41 @@ const useEditShippingRule = () => {
37209
37235
  });
37210
37236
  };
37211
37237
 
37212
- var __defProp$a = Object.defineProperty;
37213
- var __defProps$7 = Object.defineProperties;
37214
- var __getOwnPropDescs$7 = Object.getOwnPropertyDescriptors;
37215
- var __getOwnPropSymbols$b = Object.getOwnPropertySymbols;
37216
- var __hasOwnProp$b = Object.prototype.hasOwnProperty;
37217
- var __propIsEnum$b = Object.prototype.propertyIsEnumerable;
37218
- var __defNormalProp$a = (obj, key, value) => key in obj ? __defProp$a(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
37219
- var __spreadValues$a = (a, b) => {
37238
+ var __defProp$c = Object.defineProperty;
37239
+ var __defProps$9 = Object.defineProperties;
37240
+ var __getOwnPropDescs$9 = Object.getOwnPropertyDescriptors;
37241
+ var __getOwnPropSymbols$d = Object.getOwnPropertySymbols;
37242
+ var __hasOwnProp$d = Object.prototype.hasOwnProperty;
37243
+ var __propIsEnum$d = Object.prototype.propertyIsEnumerable;
37244
+ var __defNormalProp$c = (obj, key, value) => key in obj ? __defProp$c(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
37245
+ var __spreadValues$c = (a, b) => {
37220
37246
  for (var prop in b || (b = {}))
37221
- if (__hasOwnProp$b.call(b, prop))
37222
- __defNormalProp$a(a, prop, b[prop]);
37223
- if (__getOwnPropSymbols$b)
37224
- for (var prop of __getOwnPropSymbols$b(b)) {
37225
- if (__propIsEnum$b.call(b, prop))
37226
- __defNormalProp$a(a, prop, b[prop]);
37247
+ if (__hasOwnProp$d.call(b, prop))
37248
+ __defNormalProp$c(a, prop, b[prop]);
37249
+ if (__getOwnPropSymbols$d)
37250
+ for (var prop of __getOwnPropSymbols$d(b)) {
37251
+ if (__propIsEnum$d.call(b, prop))
37252
+ __defNormalProp$c(a, prop, b[prop]);
37227
37253
  }
37228
37254
  return a;
37229
37255
  };
37230
- var __spreadProps$7 = (a, b) => __defProps$7(a, __getOwnPropDescs$7(b));
37256
+ var __spreadProps$9 = (a, b) => __defProps$9(a, __getOwnPropDescs$9(b));
37231
37257
  var __objRest$5 = (source, exclude) => {
37232
37258
  var target = {};
37233
37259
  for (var prop in source)
37234
- if (__hasOwnProp$b.call(source, prop) && exclude.indexOf(prop) < 0)
37260
+ if (__hasOwnProp$d.call(source, prop) && exclude.indexOf(prop) < 0)
37235
37261
  target[prop] = source[prop];
37236
- if (source != null && __getOwnPropSymbols$b)
37237
- for (var prop of __getOwnPropSymbols$b(source)) {
37238
- if (exclude.indexOf(prop) < 0 && __propIsEnum$b.call(source, prop))
37262
+ if (source != null && __getOwnPropSymbols$d)
37263
+ for (var prop of __getOwnPropSymbols$d(source)) {
37264
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$d.call(source, prop))
37239
37265
  target[prop] = source[prop];
37240
37266
  }
37241
37267
  return target;
37242
37268
  };
37243
37269
  const useGetShippingRuleConditionsOptions = (params) => {
37244
37270
  const { client } = useShipEngine();
37245
- const _a = __spreadValues$a({}, params), { queryFnParams } = _a, rest = __objRest$5(_a, ["queryFnParams"]);
37246
- return useQuery(__spreadProps$7(__spreadValues$a({}, rest), {
37271
+ const _a = __spreadValues$c({}, params), { queryFnParams } = _a, rest = __objRest$5(_a, ["queryFnParams"]);
37272
+ return useQuery(__spreadProps$9(__spreadValues$c({}, rest), {
37247
37273
  onError,
37248
37274
  queryFn: () => {
37249
37275
  return client.shippingRules.getConditionOptions(queryFnParams);
@@ -37253,41 +37279,41 @@ const useGetShippingRuleConditionsOptions = (params) => {
37253
37279
  }));
37254
37280
  };
37255
37281
 
37256
- var __defProp$9 = Object.defineProperty;
37257
- var __defProps$6 = Object.defineProperties;
37258
- var __getOwnPropDescs$6 = Object.getOwnPropertyDescriptors;
37259
- var __getOwnPropSymbols$a = Object.getOwnPropertySymbols;
37260
- var __hasOwnProp$a = Object.prototype.hasOwnProperty;
37261
- var __propIsEnum$a = Object.prototype.propertyIsEnumerable;
37262
- var __defNormalProp$9 = (obj, key, value) => key in obj ? __defProp$9(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
37263
- var __spreadValues$9 = (a, b) => {
37282
+ var __defProp$b = Object.defineProperty;
37283
+ var __defProps$8 = Object.defineProperties;
37284
+ var __getOwnPropDescs$8 = Object.getOwnPropertyDescriptors;
37285
+ var __getOwnPropSymbols$c = Object.getOwnPropertySymbols;
37286
+ var __hasOwnProp$c = Object.prototype.hasOwnProperty;
37287
+ var __propIsEnum$c = Object.prototype.propertyIsEnumerable;
37288
+ var __defNormalProp$b = (obj, key, value) => key in obj ? __defProp$b(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
37289
+ var __spreadValues$b = (a, b) => {
37264
37290
  for (var prop in b || (b = {}))
37265
- if (__hasOwnProp$a.call(b, prop))
37266
- __defNormalProp$9(a, prop, b[prop]);
37267
- if (__getOwnPropSymbols$a)
37268
- for (var prop of __getOwnPropSymbols$a(b)) {
37269
- if (__propIsEnum$a.call(b, prop))
37270
- __defNormalProp$9(a, prop, b[prop]);
37291
+ if (__hasOwnProp$c.call(b, prop))
37292
+ __defNormalProp$b(a, prop, b[prop]);
37293
+ if (__getOwnPropSymbols$c)
37294
+ for (var prop of __getOwnPropSymbols$c(b)) {
37295
+ if (__propIsEnum$c.call(b, prop))
37296
+ __defNormalProp$b(a, prop, b[prop]);
37271
37297
  }
37272
37298
  return a;
37273
37299
  };
37274
- var __spreadProps$6 = (a, b) => __defProps$6(a, __getOwnPropDescs$6(b));
37300
+ var __spreadProps$8 = (a, b) => __defProps$8(a, __getOwnPropDescs$8(b));
37275
37301
  var __objRest$4 = (source, exclude) => {
37276
37302
  var target = {};
37277
37303
  for (var prop in source)
37278
- if (__hasOwnProp$a.call(source, prop) && exclude.indexOf(prop) < 0)
37304
+ if (__hasOwnProp$c.call(source, prop) && exclude.indexOf(prop) < 0)
37279
37305
  target[prop] = source[prop];
37280
- if (source != null && __getOwnPropSymbols$a)
37281
- for (var prop of __getOwnPropSymbols$a(source)) {
37282
- if (exclude.indexOf(prop) < 0 && __propIsEnum$a.call(source, prop))
37306
+ if (source != null && __getOwnPropSymbols$c)
37307
+ for (var prop of __getOwnPropSymbols$c(source)) {
37308
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$c.call(source, prop))
37283
37309
  target[prop] = source[prop];
37284
37310
  }
37285
37311
  return target;
37286
37312
  };
37287
37313
  const useGetShippingRuleById = (params) => {
37288
37314
  const { client } = useShipEngine();
37289
- const _a = __spreadValues$9({}, params), { queryFnParams } = _a, rest = __objRest$4(_a, ["queryFnParams"]);
37290
- return useQuery(__spreadProps$6(__spreadValues$9({}, rest), {
37315
+ const _a = __spreadValues$b({}, params), { queryFnParams } = _a, rest = __objRest$4(_a, ["queryFnParams"]);
37316
+ return useQuery(__spreadProps$8(__spreadValues$b({}, rest), {
37291
37317
  onError,
37292
37318
  queryFn: () => {
37293
37319
  return client.shippingRules.get(queryFnParams);
@@ -37312,7 +37338,7 @@ const useGetThemeById = (themeId) => {
37312
37338
  });
37313
37339
  };
37314
37340
 
37315
- var __async$c = (__this, __arguments, generator) => {
37341
+ var __async$d = (__this, __arguments, generator) => {
37316
37342
  return new Promise((resolve, reject) => {
37317
37343
  var fulfilled = (value) => {
37318
37344
  try {
@@ -37335,7 +37361,7 @@ var __async$c = (__this, __arguments, generator) => {
37335
37361
  const useCreateWarehouse = () => {
37336
37362
  const { client } = useShipEngine();
37337
37363
  return useMutation({
37338
- mutationFn: (data) => __async$c(void 0, null, function* () {
37364
+ mutationFn: (data) => __async$d(void 0, null, function* () {
37339
37365
  const result = yield client.warehouses.create(data);
37340
37366
  return result.data;
37341
37367
  }),
@@ -37344,7 +37370,7 @@ const useCreateWarehouse = () => {
37344
37370
  });
37345
37371
  };
37346
37372
 
37347
- var __async$b = (__this, __arguments, generator) => {
37373
+ var __async$c = (__this, __arguments, generator) => {
37348
37374
  return new Promise((resolve, reject) => {
37349
37375
  var fulfilled = (value) => {
37350
37376
  try {
@@ -37367,7 +37393,7 @@ var __async$b = (__this, __arguments, generator) => {
37367
37393
  const useDeleteWarehouse = () => {
37368
37394
  const { client } = useShipEngine();
37369
37395
  return useMutation({
37370
- mutationFn: (_0) => __async$b(void 0, [_0], function* ({ warehouseId }) {
37396
+ mutationFn: (_0) => __async$c(void 0, [_0], function* ({ warehouseId }) {
37371
37397
  const result = yield client.warehouses.delete(warehouseId);
37372
37398
  return result.data;
37373
37399
  }),
@@ -37376,41 +37402,41 @@ const useDeleteWarehouse = () => {
37376
37402
  });
37377
37403
  };
37378
37404
 
37379
- var __defProp$8 = Object.defineProperty;
37380
- var __defProps$5 = Object.defineProperties;
37381
- var __getOwnPropDescs$5 = Object.getOwnPropertyDescriptors;
37382
- var __getOwnPropSymbols$9 = Object.getOwnPropertySymbols;
37383
- var __hasOwnProp$9 = Object.prototype.hasOwnProperty;
37384
- var __propIsEnum$9 = Object.prototype.propertyIsEnumerable;
37385
- var __defNormalProp$8 = (obj, key, value) => key in obj ? __defProp$8(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
37386
- var __spreadValues$8 = (a, b) => {
37405
+ var __defProp$a = Object.defineProperty;
37406
+ var __defProps$7 = Object.defineProperties;
37407
+ var __getOwnPropDescs$7 = Object.getOwnPropertyDescriptors;
37408
+ var __getOwnPropSymbols$b = Object.getOwnPropertySymbols;
37409
+ var __hasOwnProp$b = Object.prototype.hasOwnProperty;
37410
+ var __propIsEnum$b = Object.prototype.propertyIsEnumerable;
37411
+ var __defNormalProp$a = (obj, key, value) => key in obj ? __defProp$a(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
37412
+ var __spreadValues$a = (a, b) => {
37387
37413
  for (var prop in b || (b = {}))
37388
- if (__hasOwnProp$9.call(b, prop))
37389
- __defNormalProp$8(a, prop, b[prop]);
37390
- if (__getOwnPropSymbols$9)
37391
- for (var prop of __getOwnPropSymbols$9(b)) {
37392
- if (__propIsEnum$9.call(b, prop))
37393
- __defNormalProp$8(a, prop, b[prop]);
37414
+ if (__hasOwnProp$b.call(b, prop))
37415
+ __defNormalProp$a(a, prop, b[prop]);
37416
+ if (__getOwnPropSymbols$b)
37417
+ for (var prop of __getOwnPropSymbols$b(b)) {
37418
+ if (__propIsEnum$b.call(b, prop))
37419
+ __defNormalProp$a(a, prop, b[prop]);
37394
37420
  }
37395
37421
  return a;
37396
37422
  };
37397
- var __spreadProps$5 = (a, b) => __defProps$5(a, __getOwnPropDescs$5(b));
37423
+ var __spreadProps$7 = (a, b) => __defProps$7(a, __getOwnPropDescs$7(b));
37398
37424
  var __objRest$3 = (source, exclude) => {
37399
37425
  var target = {};
37400
37426
  for (var prop in source)
37401
- if (__hasOwnProp$9.call(source, prop) && exclude.indexOf(prop) < 0)
37427
+ if (__hasOwnProp$b.call(source, prop) && exclude.indexOf(prop) < 0)
37402
37428
  target[prop] = source[prop];
37403
- if (source != null && __getOwnPropSymbols$9)
37404
- for (var prop of __getOwnPropSymbols$9(source)) {
37405
- if (exclude.indexOf(prop) < 0 && __propIsEnum$9.call(source, prop))
37429
+ if (source != null && __getOwnPropSymbols$b)
37430
+ for (var prop of __getOwnPropSymbols$b(source)) {
37431
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$b.call(source, prop))
37406
37432
  target[prop] = source[prop];
37407
37433
  }
37408
37434
  return target;
37409
37435
  };
37410
37436
  const useListWarehouses = (params) => {
37411
37437
  const { client } = useShipEngine();
37412
- const _a = __spreadValues$8({}, params), { queryFnParams } = _a, rest = __objRest$3(_a, ["queryFnParams"]);
37413
- return useQuery(__spreadProps$5(__spreadValues$8({}, rest), {
37438
+ const _a = __spreadValues$a({}, params), { queryFnParams } = _a, rest = __objRest$3(_a, ["queryFnParams"]);
37439
+ return useQuery(__spreadProps$7(__spreadValues$a({}, rest), {
37414
37440
  onError,
37415
37441
  queryFn: () => client.warehouses.list(queryFnParams),
37416
37442
  queryKey: ["useListWarehouses", queryFnParams],
@@ -37418,22 +37444,22 @@ const useListWarehouses = (params) => {
37418
37444
  }));
37419
37445
  };
37420
37446
 
37421
- var __getOwnPropSymbols$8 = Object.getOwnPropertySymbols;
37422
- var __hasOwnProp$8 = Object.prototype.hasOwnProperty;
37423
- var __propIsEnum$8 = Object.prototype.propertyIsEnumerable;
37447
+ var __getOwnPropSymbols$a = Object.getOwnPropertySymbols;
37448
+ var __hasOwnProp$a = Object.prototype.hasOwnProperty;
37449
+ var __propIsEnum$a = Object.prototype.propertyIsEnumerable;
37424
37450
  var __objRest$2 = (source, exclude) => {
37425
37451
  var target = {};
37426
37452
  for (var prop in source)
37427
- if (__hasOwnProp$8.call(source, prop) && exclude.indexOf(prop) < 0)
37453
+ if (__hasOwnProp$a.call(source, prop) && exclude.indexOf(prop) < 0)
37428
37454
  target[prop] = source[prop];
37429
- if (source != null && __getOwnPropSymbols$8)
37430
- for (var prop of __getOwnPropSymbols$8(source)) {
37431
- if (exclude.indexOf(prop) < 0 && __propIsEnum$8.call(source, prop))
37455
+ if (source != null && __getOwnPropSymbols$a)
37456
+ for (var prop of __getOwnPropSymbols$a(source)) {
37457
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$a.call(source, prop))
37432
37458
  target[prop] = source[prop];
37433
37459
  }
37434
37460
  return target;
37435
37461
  };
37436
- var __async$a = (__this, __arguments, generator) => {
37462
+ var __async$b = (__this, __arguments, generator) => {
37437
37463
  return new Promise((resolve, reject) => {
37438
37464
  var fulfilled = (value) => {
37439
37465
  try {
@@ -37456,7 +37482,7 @@ var __async$a = (__this, __arguments, generator) => {
37456
37482
  const useUpdateWarehouse = () => {
37457
37483
  const { client } = useShipEngine();
37458
37484
  return useMutation({
37459
- mutationFn: (_a) => __async$a(void 0, null, function* () {
37485
+ mutationFn: (_a) => __async$b(void 0, null, function* () {
37460
37486
  var _b = _a, { warehouseId } = _b, warehouse = __objRest$2(_b, ["warehouseId"]);
37461
37487
  const result = yield client.warehouses.update(warehouseId, warehouse);
37462
37488
  return result.data;
@@ -37476,7 +37502,7 @@ const useGetAccountBillingPlan = () => {
37476
37502
  });
37477
37503
  };
37478
37504
 
37479
- var __async$9 = (__this, __arguments, generator) => {
37505
+ var __async$a = (__this, __arguments, generator) => {
37480
37506
  return new Promise((resolve, reject) => {
37481
37507
  var fulfilled = (value) => {
37482
37508
  try {
@@ -37499,7 +37525,7 @@ var __async$9 = (__this, __arguments, generator) => {
37499
37525
  const useUpdateAccountBillingPlan = () => {
37500
37526
  const { client } = useShipEngine();
37501
37527
  return useMutation({
37502
- mutationFn: (code) => __async$9(void 0, null, function* () {
37528
+ mutationFn: (code) => __async$a(void 0, null, function* () {
37503
37529
  const result = yield client.accountBillingPlan.update({ code });
37504
37530
  return result.data;
37505
37531
  }),
@@ -37508,6 +37534,86 @@ const useUpdateAccountBillingPlan = () => {
37508
37534
  });
37509
37535
  };
37510
37536
 
37537
+ var __defProp$9 = Object.defineProperty;
37538
+ var __defProps$6 = Object.defineProperties;
37539
+ var __getOwnPropDescs$6 = Object.getOwnPropertyDescriptors;
37540
+ var __getOwnPropSymbols$9 = Object.getOwnPropertySymbols;
37541
+ var __hasOwnProp$9 = Object.prototype.hasOwnProperty;
37542
+ var __propIsEnum$9 = Object.prototype.propertyIsEnumerable;
37543
+ var __defNormalProp$9 = (obj, key, value) => key in obj ? __defProp$9(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
37544
+ var __spreadValues$9 = (a, b) => {
37545
+ for (var prop in b || (b = {}))
37546
+ if (__hasOwnProp$9.call(b, prop))
37547
+ __defNormalProp$9(a, prop, b[prop]);
37548
+ if (__getOwnPropSymbols$9)
37549
+ for (var prop of __getOwnPropSymbols$9(b)) {
37550
+ if (__propIsEnum$9.call(b, prop))
37551
+ __defNormalProp$9(a, prop, b[prop]);
37552
+ }
37553
+ return a;
37554
+ };
37555
+ var __spreadProps$6 = (a, b) => __defProps$6(a, __getOwnPropDescs$6(b));
37556
+ const useGetAccountBilling = (params) => {
37557
+ const { client } = useShipEngine();
37558
+ return useQuery(__spreadProps$6(__spreadValues$9({}, params), {
37559
+ onError,
37560
+ queryFn: () => client.accountBilling.get(),
37561
+ queryKey: ["useGetAccountBilling"],
37562
+ select: (result) => result.data
37563
+ }));
37564
+ };
37565
+
37566
+ var __defProp$8 = Object.defineProperty;
37567
+ var __defProps$5 = Object.defineProperties;
37568
+ var __getOwnPropDescs$5 = Object.getOwnPropertyDescriptors;
37569
+ var __getOwnPropSymbols$8 = Object.getOwnPropertySymbols;
37570
+ var __hasOwnProp$8 = Object.prototype.hasOwnProperty;
37571
+ var __propIsEnum$8 = Object.prototype.propertyIsEnumerable;
37572
+ var __defNormalProp$8 = (obj, key, value) => key in obj ? __defProp$8(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
37573
+ var __spreadValues$8 = (a, b) => {
37574
+ for (var prop in b || (b = {}))
37575
+ if (__hasOwnProp$8.call(b, prop))
37576
+ __defNormalProp$8(a, prop, b[prop]);
37577
+ if (__getOwnPropSymbols$8)
37578
+ for (var prop of __getOwnPropSymbols$8(b)) {
37579
+ if (__propIsEnum$8.call(b, prop))
37580
+ __defNormalProp$8(a, prop, b[prop]);
37581
+ }
37582
+ return a;
37583
+ };
37584
+ var __spreadProps$5 = (a, b) => __defProps$5(a, __getOwnPropDescs$5(b));
37585
+ var __async$9 = (__this, __arguments, generator) => {
37586
+ return new Promise((resolve, reject) => {
37587
+ var fulfilled = (value) => {
37588
+ try {
37589
+ step(generator.next(value));
37590
+ } catch (e) {
37591
+ reject(e);
37592
+ }
37593
+ };
37594
+ var rejected = (value) => {
37595
+ try {
37596
+ step(generator.throw(value));
37597
+ } catch (e) {
37598
+ reject(e);
37599
+ }
37600
+ };
37601
+ var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
37602
+ step((generator = generator.apply(__this, __arguments)).next());
37603
+ });
37604
+ };
37605
+ const useUpsertAccountBilling = (params) => {
37606
+ const { client } = useShipEngine();
37607
+ return useMutation(__spreadProps$5(__spreadValues$8({}, params), {
37608
+ mutationFn: (billing) => __async$9(void 0, null, function* () {
37609
+ const result = yield client.accountBilling.post(billing);
37610
+ return result.data;
37611
+ }),
37612
+ mutationKey: ["useUpsertAccountBilling"],
37613
+ onError
37614
+ }));
37615
+ };
37616
+
37511
37617
  var __defProp$7 = Object.defineProperty;
37512
37618
  var __defProps$4 = Object.defineProperties;
37513
37619
  var __getOwnPropDescs$4 = Object.getOwnPropertyDescriptors;
@@ -39109,4 +39215,4 @@ const alchemy = {
39109
39215
  createElement
39110
39216
  };
39111
39217
 
39112
- export { AccountSettingsAPI, AddressesAPI, AlchemyContext, AlchemyProvider, AlchemyTestProvider, AuctanePayAPI, CarriersAPI, CodedError, ConfirmationType, ConnectionsAPI, CreditCardVendor, Currency, CustomPackagesAPI, CustomsContentsType, CustomsNonDeliveryType, Element, ErrorBoundary, FundingSourcesAPI, InsuranceAPI, InsuranceProviderType, InvoiceAddressAPI, LabelsAPI, MetadataCapability, MetadataRequirement, MetadataSatisfyingFormTypes, MovementIndicator, OrderSourcesAPI, RateCardStatus, RateCardsAPI, RatesAPI, types as SE, SalesOrderShipmentsAPI, SalesOrdersAPI, SellersAPI, ServicePointsAPI, ShipEngine, ShipEngineAPI, ShipEngineContext, ShipmentsAPI, ShippingRulesAPI, ThemesAPI, WarehousesAPI, WebhooksAPI, alchemy, camelizeKeys, decamelizeKeys, alchemy as default, delay, getEmotionCache, getEndUserIpAddress, isCodedError, isCodedErrors, isDataCodedErrors, isInvalidTokenError, logger, onError, parseError, retryUntil, useAddFunds, useAddInsuranceFunds, useAddSandboxCarriers, useAlchemy, useCalculateRates, useCancelShipment, useCarrierConnectionsServicesList, useConnectCarrier, useConnectCarrierAccount, useCreateAccountImage, useCreateAuctanePaySession, useCreateFundingSource, useCreateInvoiceAddress, useCreateLabel, useCreateRateCard, useCreateSalesOrderShipment, useCreateSandboxSeller, useCreateSellerApiKey, useCreateShipment, useCreateShippingRule, useCreateWarehouse, useCreateWebhook, useDeactivateOrderSource, useDeleteAccountImage, useDeleteCarrier, useDeleteRateCard, useDeleteSellerApiKey, useDeleteShippingRule, useDeleteWarehouse, useDeleteWebhook, useDownloadRateCard, useEditShippingRule, useFundingSourcesAddFunds, useGetAccountBillingPlan, useGetAccountImages, useGetAccountSettings, useGetAutoFundingConfiguration, useGetCarrierById, useGetCarrierConnectionForm, useGetConnectionsCarrierSettings, useGetCountriesByCarrier, useGetCurrenciesByCarrier, useGetFundingSourceById, useGetFundingSourceMetadata, useGetFundingSourceTransactions, useGetHereToken, useGetInsuranceAccount, useGetInsuranceFundingSourceAcceptedTerms, useGetInvoiceAddress, useGetLabel, useGetPackageRatingGroupByCarrier, useGetRateCardById, useGetSalesOrder, useGetSalesOrderByExternalOrderId, useGetSalesOrderShipment, useGetServicePoint, useGetServicesByCarrier, useGetShipment, useGetShipmentByExternalId, useGetShipmentRates, useGetShippingRuleById, useGetShippingRuleConditionsOptions, useGetThemeById, useGetZonesByCarrier, useI18n, useListCarrierConnections, useListCarriers, useListCustomPackageTypes, useListFundingSources, useListLabels, useListLabelsInfinite, useListOrderSources, useListOrderSourcesConnections, useListRateCards, useListSalesOrderShipments, useListSalesOrderShipmentsByExternalOrderId, useListSalesOrders, useListSandboxSellerIds, useListSellerApiKeys, useListServicePoints, useListShipments, useListShippingRules, useListWarehouses, useListWebhooks, useLoadIcons, useNotifySalesOrderShipped, useParseAddress, usePublishRateCard, useRatesEstimate, useRefreshOrderSource, useRefreshOrderSourceAsync, useRegisterCarrier, useShipEngine, useUpdateAccountBillingPlan, useUpdateAccountImage, useUpdateAccountSettings, useUpdateAutoFunding, useUpdateConnectionsCarrierSettings, useUpdateFundingSource, useUpdateInvoiceAddress, useUpdateOrderSource, useUpdateRateCard, useUpdateSalesOrderShipment, useUpdateWarehouse, useUpdateWebhook, useUploadRateCard, useValidateAddresses, useVoidLabel };
39218
+ export { AccountBillingAPI, AccountBillingPlanAPI, AccountBillingPlanChangeType, AccountSettingsAPI, AddressesAPI, AlchemyContext, AlchemyProvider, AlchemyTestProvider, AuctanePayAPI, CarriersAPI, CodedError, ConfirmationType, ConnectionsAPI, CreditCardVendor, Currency, CustomPackagesAPI, CustomsContentsType, CustomsNonDeliveryType, Element, ErrorBoundary, FundingSourcesAPI, InsuranceAPI, InsuranceProviderType, InvoiceAddressAPI, LabelsAPI, MetadataCapability, MetadataRequirement, MetadataSatisfyingFormTypes, MovementIndicator, OrderSourcesAPI, RateCardStatus, RateCardsAPI, RatesAPI, types as SE, SalesOrderShipmentsAPI, SalesOrdersAPI, SellersAPI, ServicePointsAPI, ShipEngine, ShipEngineAPI, ShipEngineContext, ShipmentsAPI, ShippingRulesAPI, ThemesAPI, WarehousesAPI, WebhooksAPI, alchemy, camelizeKeys, decamelizeKeys, alchemy as default, delay, getEmotionCache, getEndUserIpAddress, isCodedError, isCodedErrors, isDataCodedErrors, isInvalidTokenError, logger, onError, parseError, retryUntil, useAddFunds, useAddInsuranceFunds, useAddSandboxCarriers, useAlchemy, useCalculateRates, useCancelShipment, useCarrierConnectionsServicesList, useConnectCarrier, useConnectCarrierAccount, useCreateAccountImage, useCreateAuctanePaySession, useCreateFundingSource, useCreateInvoiceAddress, useCreateLabel, useCreateRateCard, useCreateSalesOrderShipment, useCreateSandboxSeller, useCreateSellerApiKey, useCreateShipment, useCreateShippingRule, useCreateWarehouse, useCreateWebhook, useDeactivateOrderSource, useDeleteAccountImage, useDeleteCarrier, useDeleteRateCard, useDeleteSellerApiKey, useDeleteShippingRule, useDeleteWarehouse, useDeleteWebhook, useDownloadRateCard, useEditShippingRule, useFundingSourcesAddFunds, useGetAccountBilling, useGetAccountBillingPlan, useGetAccountImages, useGetAccountSettings, useGetAutoFundingConfiguration, useGetCarrierById, useGetCarrierConnectionForm, useGetConnectionsCarrierSettings, useGetCountriesByCarrier, useGetCurrenciesByCarrier, useGetFundingSourceById, useGetFundingSourceMetadata, useGetFundingSourceTransactions, useGetHereToken, useGetInsuranceAccount, useGetInsuranceFundingSourceAcceptedTerms, useGetInvoiceAddress, useGetLabel, useGetPackageRatingGroupByCarrier, useGetRateCardById, useGetSalesOrder, useGetSalesOrderByExternalOrderId, useGetSalesOrderShipment, useGetServicePoint, useGetServicesByCarrier, useGetShipment, useGetShipmentByExternalId, useGetShipmentRates, useGetShippingRuleById, useGetShippingRuleConditionsOptions, useGetThemeById, useGetZonesByCarrier, useI18n, useListCarrierConnections, useListCarriers, useListCustomPackageTypes, useListFundingSources, useListLabels, useListLabelsInfinite, useListOrderSources, useListOrderSourcesConnections, useListRateCards, useListSalesOrderShipments, useListSalesOrderShipmentsByExternalOrderId, useListSalesOrders, useListSandboxSellerIds, useListSellerApiKeys, useListServicePoints, useListShipments, useListShippingRules, useListWarehouses, useListWebhooks, useLoadIcons, useNotifySalesOrderShipped, useParseAddress, usePublishRateCard, useRatesEstimate, useRefreshOrderSource, useRefreshOrderSourceAsync, useRegisterCarrier, useShipEngine, useUpdateAccountBillingPlan, useUpdateAccountImage, useUpdateAccountSettings, useUpdateAutoFunding, useUpdateConnectionsCarrierSettings, useUpdateFundingSource, useUpdateInvoiceAddress, useUpdateOrderSource, useUpdateRateCard, useUpdateSalesOrderShipment, useUpdateWarehouse, useUpdateWebhook, useUploadRateCard, useUpsertAccountBilling, useValidateAddresses, useVoidLabel };