@shipengine/alchemy 6.0.43 → 6.0.44

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 +628 -574
  2. package/index.mjs +628 -575
  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$P = Object.getOwnPropertySymbols;
10794
- var __hasOwnProp$P = Object.prototype.hasOwnProperty;
10795
- var __propIsEnum$P = Object.prototype.propertyIsEnumerable;
10796
- var __objRest$t = (source, exclude) => {
10793
+ var __getOwnPropSymbols$Q = Object.getOwnPropertySymbols;
10794
+ var __hasOwnProp$Q = Object.prototype.hasOwnProperty;
10795
+ var __propIsEnum$Q = Object.prototype.propertyIsEnumerable;
10796
+ var __objRest$u = (source, exclude) => {
10797
10797
  var target = {};
10798
10798
  for (var prop in source)
10799
- if (__hasOwnProp$P.call(source, prop) && exclude.indexOf(prop) < 0)
10799
+ if (__hasOwnProp$Q.call(source, prop) && exclude.indexOf(prop) < 0)
10800
10800
  target[prop] = source[prop];
10801
- if (source != null && __getOwnPropSymbols$P)
10802
- for (var prop of __getOwnPropSymbols$P(source)) {
10803
- if (exclude.indexOf(prop) < 0 && __propIsEnum$P.call(source, prop))
10801
+ if (source != null && __getOwnPropSymbols$Q)
10802
+ for (var prop of __getOwnPropSymbols$Q(source)) {
10803
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$Q.call(source, prop))
10804
10804
  target[prop] = source[prop];
10805
10805
  }
10806
10806
  return target;
@@ -10814,7 +10814,7 @@ class CodedError {
10814
10814
  this.message = message;
10815
10815
  }
10816
10816
  static fromObject(_a) {
10817
- var _b = _a, { message } = _b, options = __objRest$t(_b, ["message"]);
10817
+ var _b = _a, { message } = _b, options = __objRest$u(_b, ["message"]);
10818
10818
  return new CodedError(message, options);
10819
10819
  }
10820
10820
  }
@@ -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$O = Object.getOwnPropertySymbols;
10939
- var __hasOwnProp$O = Object.prototype.hasOwnProperty;
10940
- var __propIsEnum$O = Object.prototype.propertyIsEnumerable;
10941
- var __objRest$s = (source, exclude) => {
10938
+ var __getOwnPropSymbols$P = Object.getOwnPropertySymbols;
10939
+ var __hasOwnProp$P = Object.prototype.hasOwnProperty;
10940
+ var __propIsEnum$P = Object.prototype.propertyIsEnumerable;
10941
+ var __objRest$t = (source, exclude) => {
10942
10942
  var target = {};
10943
10943
  for (var prop in source)
10944
- if (__hasOwnProp$O.call(source, prop) && exclude.indexOf(prop) < 0)
10944
+ if (__hasOwnProp$P.call(source, prop) && exclude.indexOf(prop) < 0)
10945
10945
  target[prop] = source[prop];
10946
- if (source != null && __getOwnPropSymbols$O)
10947
- for (var prop of __getOwnPropSymbols$O(source)) {
10948
- if (exclude.indexOf(prop) < 0 && __propIsEnum$O.call(source, prop))
10946
+ if (source != null && __getOwnPropSymbols$P)
10947
+ for (var prop of __getOwnPropSymbols$P(source)) {
10948
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$P.call(source, prop))
10949
10949
  target[prop] = source[prop];
10950
10950
  }
10951
10951
  return target;
@@ -10977,7 +10977,7 @@ class AccountSettingsAPI {
10977
10977
  * The `updateImage` method updates specific image data for a given image id.
10978
10978
  */
10979
10979
  this.updateImage = (_a) => {
10980
- var _b = _a, { labelImageId } = _b, data = __objRest$s(_b, ["labelImageId"]);
10980
+ var _b = _a, { labelImageId } = _b, data = __objRest$t(_b, ["labelImageId"]);
10981
10981
  return this.client.put(`/v1/account/settings/images/${labelImageId}`, data);
10982
10982
  };
10983
10983
  /**
@@ -13826,33 +13826,33 @@ const decamelizeKeys = (obj, separator = "_") => {
13826
13826
  return obj;
13827
13827
  };
13828
13828
 
13829
- var __defProp$D = Object.defineProperty;
13830
- var __defProps$x = Object.defineProperties;
13831
- var __getOwnPropDescs$x = Object.getOwnPropertyDescriptors;
13832
- var __getOwnPropSymbols$N = Object.getOwnPropertySymbols;
13833
- var __hasOwnProp$N = Object.prototype.hasOwnProperty;
13834
- var __propIsEnum$N = Object.prototype.propertyIsEnumerable;
13835
- var __defNormalProp$D = (obj, key, value) => key in obj ? __defProp$D(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
13836
- var __spreadValues$D = (a, b) => {
13829
+ var __defProp$E = Object.defineProperty;
13830
+ var __defProps$y = Object.defineProperties;
13831
+ var __getOwnPropDescs$y = Object.getOwnPropertyDescriptors;
13832
+ var __getOwnPropSymbols$O = Object.getOwnPropertySymbols;
13833
+ var __hasOwnProp$O = Object.prototype.hasOwnProperty;
13834
+ var __propIsEnum$O = Object.prototype.propertyIsEnumerable;
13835
+ var __defNormalProp$E = (obj, key, value) => key in obj ? __defProp$E(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
13836
+ var __spreadValues$E = (a, b) => {
13837
13837
  for (var prop in b || (b = {}))
13838
- if (__hasOwnProp$N.call(b, prop))
13839
- __defNormalProp$D(a, prop, b[prop]);
13840
- if (__getOwnPropSymbols$N)
13841
- for (var prop of __getOwnPropSymbols$N(b)) {
13842
- if (__propIsEnum$N.call(b, prop))
13843
- __defNormalProp$D(a, prop, b[prop]);
13838
+ if (__hasOwnProp$O.call(b, prop))
13839
+ __defNormalProp$E(a, prop, b[prop]);
13840
+ if (__getOwnPropSymbols$O)
13841
+ for (var prop of __getOwnPropSymbols$O(b)) {
13842
+ if (__propIsEnum$O.call(b, prop))
13843
+ __defNormalProp$E(a, prop, b[prop]);
13844
13844
  }
13845
13845
  return a;
13846
13846
  };
13847
- var __spreadProps$x = (a, b) => __defProps$x(a, __getOwnPropDescs$x(b));
13848
- var __objRest$r = (source, exclude) => {
13847
+ var __spreadProps$y = (a, b) => __defProps$y(a, __getOwnPropDescs$y(b));
13848
+ var __objRest$s = (source, exclude) => {
13849
13849
  var target = {};
13850
13850
  for (var prop in source)
13851
- if (__hasOwnProp$N.call(source, prop) && exclude.indexOf(prop) < 0)
13851
+ if (__hasOwnProp$O.call(source, prop) && exclude.indexOf(prop) < 0)
13852
13852
  target[prop] = source[prop];
13853
- if (source != null && __getOwnPropSymbols$N)
13854
- for (var prop of __getOwnPropSymbols$N(source)) {
13855
- if (exclude.indexOf(prop) < 0 && __propIsEnum$N.call(source, prop))
13853
+ if (source != null && __getOwnPropSymbols$O)
13854
+ for (var prop of __getOwnPropSymbols$O(source)) {
13855
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$O.call(source, prop))
13856
13856
  target[prop] = source[prop];
13857
13857
  }
13858
13858
  return target;
@@ -13898,11 +13898,11 @@ class CarriersAPI {
13898
13898
  * The `connect` method connects a carrier account to a user's ShipEngine account.
13899
13899
  */
13900
13900
  this.connect = (_a) => __async$$(this, null, function* () {
13901
- var _b = _a, { carrierCode } = _b, connection = __objRest$r(_b, ["carrierCode"]);
13901
+ var _b = _a, { carrierCode } = _b, connection = __objRest$s(_b, ["carrierCode"]);
13902
13902
  const endUserIpAddress = yield getEndUserIpAddress();
13903
13903
  if (!endUserIpAddress)
13904
13904
  return Promise.reject([new CodedError("Unable to get IP address")]);
13905
- return yield this.client.post(`/v1/registration/${carrierCode}`, __spreadProps$x(__spreadValues$D({}, connection), {
13905
+ return yield this.client.post(`/v1/registration/${carrierCode}`, __spreadProps$y(__spreadValues$E({}, connection), {
13906
13906
  endUserIpAddress
13907
13907
  }));
13908
13908
  });
@@ -16186,19 +16186,19 @@ class CustomPackagesAPI {
16186
16186
  }
16187
16187
  }
16188
16188
 
16189
- var __defProp$C = Object.defineProperty;
16190
- var __getOwnPropSymbols$M = Object.getOwnPropertySymbols;
16191
- var __hasOwnProp$M = Object.prototype.hasOwnProperty;
16192
- var __propIsEnum$M = Object.prototype.propertyIsEnumerable;
16193
- var __defNormalProp$C = (obj, key, value) => key in obj ? __defProp$C(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
16194
- var __spreadValues$C = (a, b) => {
16189
+ var __defProp$D = Object.defineProperty;
16190
+ var __getOwnPropSymbols$N = Object.getOwnPropertySymbols;
16191
+ var __hasOwnProp$N = Object.prototype.hasOwnProperty;
16192
+ var __propIsEnum$N = Object.prototype.propertyIsEnumerable;
16193
+ var __defNormalProp$D = (obj, key, value) => key in obj ? __defProp$D(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
16194
+ var __spreadValues$D = (a, b) => {
16195
16195
  for (var prop in b || (b = {}))
16196
- if (__hasOwnProp$M.call(b, prop))
16197
- __defNormalProp$C(a, prop, b[prop]);
16198
- if (__getOwnPropSymbols$M)
16199
- for (var prop of __getOwnPropSymbols$M(b)) {
16200
- if (__propIsEnum$M.call(b, prop))
16201
- __defNormalProp$C(a, prop, b[prop]);
16196
+ if (__hasOwnProp$N.call(b, prop))
16197
+ __defNormalProp$D(a, prop, b[prop]);
16198
+ if (__getOwnPropSymbols$N)
16199
+ for (var prop of __getOwnPropSymbols$N(b)) {
16200
+ if (__propIsEnum$N.call(b, prop))
16201
+ __defNormalProp$D(a, prop, b[prop]);
16202
16202
  }
16203
16203
  return a;
16204
16204
  };
@@ -16246,7 +16246,7 @@ class FundingSourcesAPI {
16246
16246
  if (!endUserIpAddress) {
16247
16247
  return Promise.reject([new CodedError("Unable to get IP address")]);
16248
16248
  }
16249
- return yield this.client.post("/v1/funding_sources", __spreadValues$C({
16249
+ return yield this.client.post("/v1/funding_sources", __spreadValues$D({
16250
16250
  endUserIpAddress
16251
16251
  }, createFundingSource));
16252
16252
  });
@@ -16265,7 +16265,7 @@ class FundingSourcesAPI {
16265
16265
  {
16266
16266
  billingInfo,
16267
16267
  endUserIpAddress,
16268
- paymentMethod: __spreadValues$C({
16268
+ paymentMethod: __spreadValues$D({
16269
16269
  creditCardInfo
16270
16270
  }, auctanePayInfo)
16271
16271
  }
@@ -16280,7 +16280,7 @@ class FundingSourcesAPI {
16280
16280
  if (!endUserIpAddress) {
16281
16281
  return Promise.reject([new CodedError("Unable to get IP address")]);
16282
16282
  }
16283
- return yield this.client.post("/v1/registration/funding_source", __spreadValues$C({
16283
+ return yield this.client.post("/v1/registration/funding_source", __spreadValues$D({
16284
16284
  endUserIpAddress
16285
16285
  }, carrier));
16286
16286
  });
@@ -16449,17 +16449,17 @@ class LabelsAPI {
16449
16449
  }
16450
16450
  }
16451
16451
 
16452
- var __getOwnPropSymbols$L = Object.getOwnPropertySymbols;
16453
- var __hasOwnProp$L = Object.prototype.hasOwnProperty;
16454
- var __propIsEnum$L = Object.prototype.propertyIsEnumerable;
16455
- var __objRest$q = (source, exclude) => {
16452
+ var __getOwnPropSymbols$M = Object.getOwnPropertySymbols;
16453
+ var __hasOwnProp$M = Object.prototype.hasOwnProperty;
16454
+ var __propIsEnum$M = Object.prototype.propertyIsEnumerable;
16455
+ var __objRest$r = (source, exclude) => {
16456
16456
  var target = {};
16457
16457
  for (var prop in source)
16458
- if (__hasOwnProp$L.call(source, prop) && exclude.indexOf(prop) < 0)
16458
+ if (__hasOwnProp$M.call(source, prop) && exclude.indexOf(prop) < 0)
16459
16459
  target[prop] = source[prop];
16460
- if (source != null && __getOwnPropSymbols$L)
16461
- for (var prop of __getOwnPropSymbols$L(source)) {
16462
- if (exclude.indexOf(prop) < 0 && __propIsEnum$L.call(source, prop))
16460
+ if (source != null && __getOwnPropSymbols$M)
16461
+ for (var prop of __getOwnPropSymbols$M(source)) {
16462
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$M.call(source, prop))
16463
16463
  target[prop] = source[prop];
16464
16464
  }
16465
16465
  return target;
@@ -16491,7 +16491,7 @@ class OrderSourcesAPI {
16491
16491
  * The `update` method will allow the user to update a connected Order Source
16492
16492
  */
16493
16493
  this.update = (_a) => {
16494
- var _b = _a, { orderSourceId } = _b, rest = __objRest$q(_b, ["orderSourceId"]);
16494
+ var _b = _a, { orderSourceId } = _b, rest = __objRest$r(_b, ["orderSourceId"]);
16495
16495
  return this.client.put(`/v-beta/order_sources/${orderSourceId}`, rest);
16496
16496
  };
16497
16497
  /**
@@ -16580,19 +16580,19 @@ class RateCardsAPI {
16580
16580
  }
16581
16581
  }
16582
16582
 
16583
- var __defProp$B = Object.defineProperty;
16584
- var __getOwnPropSymbols$K = Object.getOwnPropertySymbols;
16585
- var __hasOwnProp$K = Object.prototype.hasOwnProperty;
16586
- var __propIsEnum$K = Object.prototype.propertyIsEnumerable;
16587
- var __defNormalProp$B = (obj, key, value) => key in obj ? __defProp$B(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
16588
- var __spreadValues$B = (a, b) => {
16583
+ var __defProp$C = Object.defineProperty;
16584
+ var __getOwnPropSymbols$L = Object.getOwnPropertySymbols;
16585
+ var __hasOwnProp$L = Object.prototype.hasOwnProperty;
16586
+ var __propIsEnum$L = Object.prototype.propertyIsEnumerable;
16587
+ var __defNormalProp$C = (obj, key, value) => key in obj ? __defProp$C(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
16588
+ var __spreadValues$C = (a, b) => {
16589
16589
  for (var prop in b || (b = {}))
16590
- if (__hasOwnProp$K.call(b, prop))
16591
- __defNormalProp$B(a, prop, b[prop]);
16592
- if (__getOwnPropSymbols$K)
16593
- for (var prop of __getOwnPropSymbols$K(b)) {
16594
- if (__propIsEnum$K.call(b, prop))
16595
- __defNormalProp$B(a, prop, b[prop]);
16590
+ if (__hasOwnProp$L.call(b, prop))
16591
+ __defNormalProp$C(a, prop, b[prop]);
16592
+ if (__getOwnPropSymbols$L)
16593
+ for (var prop of __getOwnPropSymbols$L(b)) {
16594
+ if (__propIsEnum$L.call(b, prop))
16595
+ __defNormalProp$C(a, prop, b[prop]);
16596
16596
  }
16597
16597
  return a;
16598
16598
  };
@@ -16614,7 +16614,7 @@ class RatesAPI {
16614
16614
  * method.
16615
16615
  */
16616
16616
  this.estimate = (params) => {
16617
- return this.client.post("/v1/rates/estimate", __spreadValues$B({}, params));
16617
+ return this.client.post("/v1/rates/estimate", __spreadValues$C({}, params));
16618
16618
  };
16619
16619
  this.client = client;
16620
16620
  }
@@ -16798,19 +16798,19 @@ class SellersAPI {
16798
16798
  }
16799
16799
  }
16800
16800
 
16801
- var __defProp$A = Object.defineProperty;
16802
- var __getOwnPropSymbols$J = Object.getOwnPropertySymbols;
16803
- var __hasOwnProp$J = Object.prototype.hasOwnProperty;
16804
- var __propIsEnum$J = Object.prototype.propertyIsEnumerable;
16805
- var __defNormalProp$A = (obj, key, value) => key in obj ? __defProp$A(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
16806
- var __spreadValues$A = (a, b) => {
16801
+ var __defProp$B = Object.defineProperty;
16802
+ var __getOwnPropSymbols$K = Object.getOwnPropertySymbols;
16803
+ var __hasOwnProp$K = Object.prototype.hasOwnProperty;
16804
+ var __propIsEnum$K = Object.prototype.propertyIsEnumerable;
16805
+ var __defNormalProp$B = (obj, key, value) => key in obj ? __defProp$B(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
16806
+ var __spreadValues$B = (a, b) => {
16807
16807
  for (var prop in b || (b = {}))
16808
- if (__hasOwnProp$J.call(b, prop))
16809
- __defNormalProp$A(a, prop, b[prop]);
16810
- if (__getOwnPropSymbols$J)
16811
- for (var prop of __getOwnPropSymbols$J(b)) {
16812
- if (__propIsEnum$J.call(b, prop))
16813
- __defNormalProp$A(a, prop, b[prop]);
16808
+ if (__hasOwnProp$K.call(b, prop))
16809
+ __defNormalProp$B(a, prop, b[prop]);
16810
+ if (__getOwnPropSymbols$K)
16811
+ for (var prop of __getOwnPropSymbols$K(b)) {
16812
+ if (__propIsEnum$K.call(b, prop))
16813
+ __defNormalProp$B(a, prop, b[prop]);
16814
16814
  }
16815
16815
  return a;
16816
16816
  };
@@ -16822,7 +16822,7 @@ class ServicePointsAPI {
16822
16822
  * Either an address, coordinates, or an address query
16823
16823
  */
16824
16824
  this.list = (options) => {
16825
- return this.client.post("/v1/service_points/list", __spreadValues$A({}, options));
16825
+ return this.client.post("/v1/service_points/list", __spreadValues$B({}, options));
16826
16826
  };
16827
16827
  /**
16828
16828
  * Get a specific service point by its carrier code, country code, and id
@@ -16905,6 +16905,18 @@ class ShipmentsAPI {
16905
16905
  this.cancel = (shipmentId) => {
16906
16906
  return this.client.put(`/v1/shipments/${shipmentId}/cancel`);
16907
16907
  };
16908
+ /**
16909
+ * The `download` method allows for downloading a CSV document of shipments based on the provided parameters.
16910
+ */
16911
+ this.download = (params) => {
16912
+ return this.client.get("/v1/shipments/downloads", {
16913
+ headers: {
16914
+ Accept: "text/csv"
16915
+ },
16916
+ params,
16917
+ responseType: "blob"
16918
+ });
16919
+ };
16908
16920
  this.client = client;
16909
16921
  }
16910
16922
  }
@@ -34281,25 +34293,25 @@ class WebhooksAPI {
34281
34293
  }
34282
34294
  }
34283
34295
 
34284
- var __defProp$z = Object.defineProperty;
34285
- var __defProps$w = Object.defineProperties;
34286
- var __getOwnPropDescs$w = Object.getOwnPropertyDescriptors;
34287
- var __getOwnPropSymbols$I = Object.getOwnPropertySymbols;
34288
- var __hasOwnProp$I = Object.prototype.hasOwnProperty;
34289
- var __propIsEnum$I = Object.prototype.propertyIsEnumerable;
34290
- var __defNormalProp$z = (obj, key, value) => key in obj ? __defProp$z(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
34291
- var __spreadValues$z = (a, b) => {
34296
+ var __defProp$A = Object.defineProperty;
34297
+ var __defProps$x = Object.defineProperties;
34298
+ var __getOwnPropDescs$x = Object.getOwnPropertyDescriptors;
34299
+ var __getOwnPropSymbols$J = Object.getOwnPropertySymbols;
34300
+ var __hasOwnProp$J = Object.prototype.hasOwnProperty;
34301
+ var __propIsEnum$J = Object.prototype.propertyIsEnumerable;
34302
+ var __defNormalProp$A = (obj, key, value) => key in obj ? __defProp$A(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
34303
+ var __spreadValues$A = (a, b) => {
34292
34304
  for (var prop in b || (b = {}))
34293
- if (__hasOwnProp$I.call(b, prop))
34294
- __defNormalProp$z(a, prop, b[prop]);
34295
- if (__getOwnPropSymbols$I)
34296
- for (var prop of __getOwnPropSymbols$I(b)) {
34297
- if (__propIsEnum$I.call(b, prop))
34298
- __defNormalProp$z(a, prop, b[prop]);
34305
+ if (__hasOwnProp$J.call(b, prop))
34306
+ __defNormalProp$A(a, prop, b[prop]);
34307
+ if (__getOwnPropSymbols$J)
34308
+ for (var prop of __getOwnPropSymbols$J(b)) {
34309
+ if (__propIsEnum$J.call(b, prop))
34310
+ __defNormalProp$A(a, prop, b[prop]);
34299
34311
  }
34300
34312
  return a;
34301
34313
  };
34302
- var __spreadProps$w = (a, b) => __defProps$w(a, __getOwnPropDescs$w(b));
34314
+ var __spreadProps$x = (a, b) => __defProps$x(a, __getOwnPropDescs$x(b));
34303
34315
  var __async$V = (__this, __arguments, generator) => {
34304
34316
  return new Promise((resolve, reject) => {
34305
34317
  var fulfilled = (value) => {
@@ -34323,7 +34335,7 @@ var __async$V = (__this, __arguments, generator) => {
34323
34335
  const logger$1 = E({
34324
34336
  level: process.env.NODE_ENV === "production" ? "fatal" : "info",
34325
34337
  name: "shipengine-api",
34326
- serializers: __spreadProps$w(__spreadValues$z({}, k), {
34338
+ serializers: __spreadProps$x(__spreadValues$A({}, k), {
34327
34339
  req: (req) => ({
34328
34340
  headers: req.headers,
34329
34341
  method: req.method,
@@ -34348,7 +34360,7 @@ class ShipEngineAPI {
34348
34360
  this.getSandboxToken = getSandboxToken;
34349
34361
  const client = axios.create({
34350
34362
  baseURL,
34351
- headers: __spreadProps$w(__spreadValues$z({}, headers), {
34363
+ headers: __spreadProps$x(__spreadValues$A({}, headers), {
34352
34364
  "Content-Type": "application/json"
34353
34365
  }),
34354
34366
  paramsSerializer: (params) => lib.stringify(decamelizeKeys(params), { arrayFormat: "brackets" }),
@@ -34752,25 +34764,25 @@ const delay = (ms) => new Promise((resolve) => {
34752
34764
 
34753
34765
  const onError = (_errors) => _default();
34754
34766
 
34755
- var __defProp$y = Object.defineProperty;
34756
- var __defProps$v = Object.defineProperties;
34757
- var __getOwnPropDescs$v = Object.getOwnPropertyDescriptors;
34758
- var __getOwnPropSymbols$H = Object.getOwnPropertySymbols;
34759
- var __hasOwnProp$H = Object.prototype.hasOwnProperty;
34760
- var __propIsEnum$H = Object.prototype.propertyIsEnumerable;
34761
- var __defNormalProp$y = (obj, key, value) => key in obj ? __defProp$y(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
34762
- var __spreadValues$y = (a, b) => {
34767
+ var __defProp$z = Object.defineProperty;
34768
+ var __defProps$w = Object.defineProperties;
34769
+ var __getOwnPropDescs$w = Object.getOwnPropertyDescriptors;
34770
+ var __getOwnPropSymbols$I = Object.getOwnPropertySymbols;
34771
+ var __hasOwnProp$I = Object.prototype.hasOwnProperty;
34772
+ var __propIsEnum$I = Object.prototype.propertyIsEnumerable;
34773
+ var __defNormalProp$z = (obj, key, value) => key in obj ? __defProp$z(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
34774
+ var __spreadValues$z = (a, b) => {
34763
34775
  for (var prop in b || (b = {}))
34764
- if (__hasOwnProp$H.call(b, prop))
34765
- __defNormalProp$y(a, prop, b[prop]);
34766
- if (__getOwnPropSymbols$H)
34767
- for (var prop of __getOwnPropSymbols$H(b)) {
34768
- if (__propIsEnum$H.call(b, prop))
34769
- __defNormalProp$y(a, prop, b[prop]);
34776
+ if (__hasOwnProp$I.call(b, prop))
34777
+ __defNormalProp$z(a, prop, b[prop]);
34778
+ if (__getOwnPropSymbols$I)
34779
+ for (var prop of __getOwnPropSymbols$I(b)) {
34780
+ if (__propIsEnum$I.call(b, prop))
34781
+ __defNormalProp$z(a, prop, b[prop]);
34770
34782
  }
34771
34783
  return a;
34772
34784
  };
34773
- var __spreadProps$v = (a, b) => __defProps$v(a, __getOwnPropDescs$v(b));
34785
+ var __spreadProps$w = (a, b) => __defProps$w(a, __getOwnPropDescs$w(b));
34774
34786
  const streams = [];
34775
34787
  if (process.env.NODE_ENV === "production") {
34776
34788
  streams.push({
@@ -34779,7 +34791,7 @@ if (process.env.NODE_ENV === "production") {
34779
34791
  }
34780
34792
  const logger = E({
34781
34793
  name: "shipengine",
34782
- serializers: __spreadProps$v(__spreadValues$y({}, k), {
34794
+ serializers: __spreadProps$w(__spreadValues$z({}, k), {
34783
34795
  req: (req) => ({
34784
34796
  headers: req.headers,
34785
34797
  method: req.method,
@@ -35016,25 +35028,25 @@ const useValidateAddresses = () => {
35016
35028
  });
35017
35029
  };
35018
35030
 
35019
- var __defProp$x = Object.defineProperty;
35020
- var __defProps$u = Object.defineProperties;
35021
- var __getOwnPropDescs$u = Object.getOwnPropertyDescriptors;
35022
- var __getOwnPropSymbols$G = Object.getOwnPropertySymbols;
35023
- var __hasOwnProp$G = Object.prototype.hasOwnProperty;
35024
- var __propIsEnum$G = Object.prototype.propertyIsEnumerable;
35025
- var __defNormalProp$x = (obj, key, value) => key in obj ? __defProp$x(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35026
- var __spreadValues$x = (a, b) => {
35031
+ var __defProp$y = Object.defineProperty;
35032
+ var __defProps$v = Object.defineProperties;
35033
+ var __getOwnPropDescs$v = Object.getOwnPropertyDescriptors;
35034
+ var __getOwnPropSymbols$H = Object.getOwnPropertySymbols;
35035
+ var __hasOwnProp$H = Object.prototype.hasOwnProperty;
35036
+ var __propIsEnum$H = Object.prototype.propertyIsEnumerable;
35037
+ var __defNormalProp$y = (obj, key, value) => key in obj ? __defProp$y(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35038
+ var __spreadValues$y = (a, b) => {
35027
35039
  for (var prop in b || (b = {}))
35028
- if (__hasOwnProp$G.call(b, prop))
35029
- __defNormalProp$x(a, prop, b[prop]);
35030
- if (__getOwnPropSymbols$G)
35031
- for (var prop of __getOwnPropSymbols$G(b)) {
35032
- if (__propIsEnum$G.call(b, prop))
35033
- __defNormalProp$x(a, prop, b[prop]);
35040
+ if (__hasOwnProp$H.call(b, prop))
35041
+ __defNormalProp$y(a, prop, b[prop]);
35042
+ if (__getOwnPropSymbols$H)
35043
+ for (var prop of __getOwnPropSymbols$H(b)) {
35044
+ if (__propIsEnum$H.call(b, prop))
35045
+ __defNormalProp$y(a, prop, b[prop]);
35034
35046
  }
35035
35047
  return a;
35036
35048
  };
35037
- var __spreadProps$u = (a, b) => __defProps$u(a, __getOwnPropDescs$u(b));
35049
+ var __spreadProps$v = (a, b) => __defProps$v(a, __getOwnPropDescs$v(b));
35038
35050
  var __async$O = (__this, __arguments, generator) => {
35039
35051
  return new Promise((resolve, reject) => {
35040
35052
  var fulfilled = (value) => {
@@ -35057,7 +35069,7 @@ var __async$O = (__this, __arguments, generator) => {
35057
35069
  };
35058
35070
  const useCreateAuctanePaySession = (params) => {
35059
35071
  const { client } = useShipEngine();
35060
- return useMutation(__spreadProps$u(__spreadValues$x({}, params), {
35072
+ return useMutation(__spreadProps$v(__spreadValues$y({}, params), {
35061
35073
  mutationFn: (request) => __async$O(void 0, null, function* () {
35062
35074
  const result = yield client.auctanePay.createSession(request);
35063
35075
  return result.data;
@@ -35067,29 +35079,29 @@ const useCreateAuctanePaySession = (params) => {
35067
35079
  }));
35068
35080
  };
35069
35081
 
35070
- var __defProp$w = Object.defineProperty;
35071
- var __defProps$t = Object.defineProperties;
35072
- var __getOwnPropDescs$t = Object.getOwnPropertyDescriptors;
35073
- var __getOwnPropSymbols$F = Object.getOwnPropertySymbols;
35074
- var __hasOwnProp$F = Object.prototype.hasOwnProperty;
35075
- var __propIsEnum$F = Object.prototype.propertyIsEnumerable;
35076
- var __defNormalProp$w = (obj, key, value) => key in obj ? __defProp$w(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35077
- var __spreadValues$w = (a, b) => {
35082
+ var __defProp$x = Object.defineProperty;
35083
+ var __defProps$u = Object.defineProperties;
35084
+ var __getOwnPropDescs$u = Object.getOwnPropertyDescriptors;
35085
+ var __getOwnPropSymbols$G = Object.getOwnPropertySymbols;
35086
+ var __hasOwnProp$G = Object.prototype.hasOwnProperty;
35087
+ var __propIsEnum$G = Object.prototype.propertyIsEnumerable;
35088
+ var __defNormalProp$x = (obj, key, value) => key in obj ? __defProp$x(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35089
+ var __spreadValues$x = (a, b) => {
35078
35090
  for (var prop in b || (b = {}))
35079
- if (__hasOwnProp$F.call(b, prop))
35080
- __defNormalProp$w(a, prop, b[prop]);
35081
- if (__getOwnPropSymbols$F)
35082
- for (var prop of __getOwnPropSymbols$F(b)) {
35083
- if (__propIsEnum$F.call(b, prop))
35084
- __defNormalProp$w(a, prop, b[prop]);
35091
+ if (__hasOwnProp$G.call(b, prop))
35092
+ __defNormalProp$x(a, prop, b[prop]);
35093
+ if (__getOwnPropSymbols$G)
35094
+ for (var prop of __getOwnPropSymbols$G(b)) {
35095
+ if (__propIsEnum$G.call(b, prop))
35096
+ __defNormalProp$x(a, prop, b[prop]);
35085
35097
  }
35086
35098
  return a;
35087
35099
  };
35088
- var __spreadProps$t = (a, b) => __defProps$t(a, __getOwnPropDescs$t(b));
35100
+ var __spreadProps$u = (a, b) => __defProps$u(a, __getOwnPropDescs$u(b));
35089
35101
  const useGetAuctanePayConfig = (params) => {
35090
35102
  const { client } = useShipEngine();
35091
- const queryParams = __spreadValues$w({}, params);
35092
- return useQuery(__spreadProps$t(__spreadValues$w({}, queryParams), {
35103
+ const queryParams = __spreadValues$x({}, params);
35104
+ return useQuery(__spreadProps$u(__spreadValues$x({}, queryParams), {
35093
35105
  onError,
35094
35106
  queryFn: () => client.auctanePay.getConfig(),
35095
35107
  queryKey: ["useGetAuctanePayConfig"],
@@ -35261,41 +35273,41 @@ const useGetServicesByCarrier = (carrierId) => {
35261
35273
  });
35262
35274
  };
35263
35275
 
35264
- var __defProp$v = Object.defineProperty;
35265
- var __defProps$s = Object.defineProperties;
35266
- var __getOwnPropDescs$s = Object.getOwnPropertyDescriptors;
35267
- var __getOwnPropSymbols$E = Object.getOwnPropertySymbols;
35268
- var __hasOwnProp$E = Object.prototype.hasOwnProperty;
35269
- var __propIsEnum$E = Object.prototype.propertyIsEnumerable;
35270
- var __defNormalProp$v = (obj, key, value) => key in obj ? __defProp$v(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35271
- var __spreadValues$v = (a, b) => {
35276
+ var __defProp$w = Object.defineProperty;
35277
+ var __defProps$t = Object.defineProperties;
35278
+ var __getOwnPropDescs$t = Object.getOwnPropertyDescriptors;
35279
+ var __getOwnPropSymbols$F = Object.getOwnPropertySymbols;
35280
+ var __hasOwnProp$F = Object.prototype.hasOwnProperty;
35281
+ var __propIsEnum$F = Object.prototype.propertyIsEnumerable;
35282
+ var __defNormalProp$w = (obj, key, value) => key in obj ? __defProp$w(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35283
+ var __spreadValues$w = (a, b) => {
35272
35284
  for (var prop in b || (b = {}))
35273
- if (__hasOwnProp$E.call(b, prop))
35274
- __defNormalProp$v(a, prop, b[prop]);
35275
- if (__getOwnPropSymbols$E)
35276
- for (var prop of __getOwnPropSymbols$E(b)) {
35277
- if (__propIsEnum$E.call(b, prop))
35278
- __defNormalProp$v(a, prop, b[prop]);
35285
+ if (__hasOwnProp$F.call(b, prop))
35286
+ __defNormalProp$w(a, prop, b[prop]);
35287
+ if (__getOwnPropSymbols$F)
35288
+ for (var prop of __getOwnPropSymbols$F(b)) {
35289
+ if (__propIsEnum$F.call(b, prop))
35290
+ __defNormalProp$w(a, prop, b[prop]);
35279
35291
  }
35280
35292
  return a;
35281
35293
  };
35282
- var __spreadProps$s = (a, b) => __defProps$s(a, __getOwnPropDescs$s(b));
35283
- var __objRest$p = (source, exclude) => {
35294
+ var __spreadProps$t = (a, b) => __defProps$t(a, __getOwnPropDescs$t(b));
35295
+ var __objRest$q = (source, exclude) => {
35284
35296
  var target = {};
35285
35297
  for (var prop in source)
35286
- if (__hasOwnProp$E.call(source, prop) && exclude.indexOf(prop) < 0)
35298
+ if (__hasOwnProp$F.call(source, prop) && exclude.indexOf(prop) < 0)
35287
35299
  target[prop] = source[prop];
35288
- if (source != null && __getOwnPropSymbols$E)
35289
- for (var prop of __getOwnPropSymbols$E(source)) {
35290
- if (exclude.indexOf(prop) < 0 && __propIsEnum$E.call(source, prop))
35300
+ if (source != null && __getOwnPropSymbols$F)
35301
+ for (var prop of __getOwnPropSymbols$F(source)) {
35302
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$F.call(source, prop))
35291
35303
  target[prop] = source[prop];
35292
35304
  }
35293
35305
  return target;
35294
35306
  };
35295
35307
  const useListCarriers = (params) => {
35296
35308
  const { client } = useShipEngine();
35297
- const _a = __spreadValues$v({}, params), { queryFnParams } = _a, rest = __objRest$p(_a, ["queryFnParams"]);
35298
- return useQuery(__spreadProps$s(__spreadValues$v({}, rest), {
35309
+ const _a = __spreadValues$w({}, params), { queryFnParams } = _a, rest = __objRest$q(_a, ["queryFnParams"]);
35310
+ return useQuery(__spreadProps$t(__spreadValues$w({}, rest), {
35299
35311
  onError,
35300
35312
  queryFn: () => client.carriers.list(queryFnParams),
35301
35313
  queryKey: ["useListCarriers", queryFnParams],
@@ -35303,17 +35315,17 @@ const useListCarriers = (params) => {
35303
35315
  }));
35304
35316
  };
35305
35317
 
35306
- var __getOwnPropSymbols$D = Object.getOwnPropertySymbols;
35307
- var __hasOwnProp$D = Object.prototype.hasOwnProperty;
35308
- var __propIsEnum$D = Object.prototype.propertyIsEnumerable;
35309
- var __objRest$o = (source, exclude) => {
35318
+ var __getOwnPropSymbols$E = Object.getOwnPropertySymbols;
35319
+ var __hasOwnProp$E = Object.prototype.hasOwnProperty;
35320
+ var __propIsEnum$E = Object.prototype.propertyIsEnumerable;
35321
+ var __objRest$p = (source, exclude) => {
35310
35322
  var target = {};
35311
35323
  for (var prop in source)
35312
- if (__hasOwnProp$D.call(source, prop) && exclude.indexOf(prop) < 0)
35324
+ if (__hasOwnProp$E.call(source, prop) && exclude.indexOf(prop) < 0)
35313
35325
  target[prop] = source[prop];
35314
- if (source != null && __getOwnPropSymbols$D)
35315
- for (var prop of __getOwnPropSymbols$D(source)) {
35316
- if (exclude.indexOf(prop) < 0 && __propIsEnum$D.call(source, prop))
35326
+ if (source != null && __getOwnPropSymbols$E)
35327
+ for (var prop of __getOwnPropSymbols$E(source)) {
35328
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$E.call(source, prop))
35317
35329
  target[prop] = source[prop];
35318
35330
  }
35319
35331
  return target;
@@ -35343,7 +35355,7 @@ const useUpdateAutoFunding = () => {
35343
35355
  const queryClient = useQueryClient();
35344
35356
  return useMutation({
35345
35357
  mutationFn: (_a) => __async$L(void 0, null, function* () {
35346
- var _b = _a, { carrierId } = _b, options = __objRest$o(_b, ["carrierId"]);
35358
+ var _b = _a, { carrierId } = _b, options = __objRest$p(_b, ["carrierId"]);
35347
35359
  const result = yield client.carriers.updateAutoFunding(carrierId, options);
35348
35360
  return result.data;
35349
35361
  }),
@@ -35404,24 +35416,24 @@ const useDeleteCarrier = () => {
35404
35416
  });
35405
35417
  };
35406
35418
 
35407
- var __getOwnPropSymbols$C = Object.getOwnPropertySymbols;
35408
- var __hasOwnProp$C = Object.prototype.hasOwnProperty;
35409
- var __propIsEnum$C = Object.prototype.propertyIsEnumerable;
35410
- var __objRest$n = (source, exclude) => {
35419
+ var __getOwnPropSymbols$D = Object.getOwnPropertySymbols;
35420
+ var __hasOwnProp$D = Object.prototype.hasOwnProperty;
35421
+ var __propIsEnum$D = Object.prototype.propertyIsEnumerable;
35422
+ var __objRest$o = (source, exclude) => {
35411
35423
  var target = {};
35412
35424
  for (var prop in source)
35413
- if (__hasOwnProp$C.call(source, prop) && exclude.indexOf(prop) < 0)
35425
+ if (__hasOwnProp$D.call(source, prop) && exclude.indexOf(prop) < 0)
35414
35426
  target[prop] = source[prop];
35415
- if (source != null && __getOwnPropSymbols$C)
35416
- for (var prop of __getOwnPropSymbols$C(source)) {
35417
- if (exclude.indexOf(prop) < 0 && __propIsEnum$C.call(source, prop))
35427
+ if (source != null && __getOwnPropSymbols$D)
35428
+ for (var prop of __getOwnPropSymbols$D(source)) {
35429
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$D.call(source, prop))
35418
35430
  target[prop] = source[prop];
35419
35431
  }
35420
35432
  return target;
35421
35433
  };
35422
35434
  const useGetCarrierConnectionForm = (_params) => {
35423
35435
  const { client } = useShipEngine();
35424
- const _a = _params || {}, { carrierName, enabled = true } = _a, params = __objRest$n(_a, ["carrierName", "enabled"]);
35436
+ const _a = _params || {}, { carrierName, enabled = true } = _a, params = __objRest$o(_a, ["carrierName", "enabled"]);
35425
35437
  return useQuery({
35426
35438
  enabled,
35427
35439
  onError,
@@ -35431,24 +35443,24 @@ const useGetCarrierConnectionForm = (_params) => {
35431
35443
  });
35432
35444
  };
35433
35445
 
35434
- var __getOwnPropSymbols$B = Object.getOwnPropertySymbols;
35435
- var __hasOwnProp$B = Object.prototype.hasOwnProperty;
35436
- var __propIsEnum$B = Object.prototype.propertyIsEnumerable;
35437
- var __objRest$m = (source, exclude) => {
35446
+ var __getOwnPropSymbols$C = Object.getOwnPropertySymbols;
35447
+ var __hasOwnProp$C = Object.prototype.hasOwnProperty;
35448
+ var __propIsEnum$C = Object.prototype.propertyIsEnumerable;
35449
+ var __objRest$n = (source, exclude) => {
35438
35450
  var target = {};
35439
35451
  for (var prop in source)
35440
- if (__hasOwnProp$B.call(source, prop) && exclude.indexOf(prop) < 0)
35452
+ if (__hasOwnProp$C.call(source, prop) && exclude.indexOf(prop) < 0)
35441
35453
  target[prop] = source[prop];
35442
- if (source != null && __getOwnPropSymbols$B)
35443
- for (var prop of __getOwnPropSymbols$B(source)) {
35444
- if (exclude.indexOf(prop) < 0 && __propIsEnum$B.call(source, prop))
35454
+ if (source != null && __getOwnPropSymbols$C)
35455
+ for (var prop of __getOwnPropSymbols$C(source)) {
35456
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$C.call(source, prop))
35445
35457
  target[prop] = source[prop];
35446
35458
  }
35447
35459
  return target;
35448
35460
  };
35449
35461
  const useListCarrierConnections = (_params) => {
35450
35462
  const { client } = useShipEngine();
35451
- const _a = _params || {}, { enabled = true } = _a, params = __objRest$m(_a, ["enabled"]);
35463
+ const _a = _params || {}, { enabled = true } = _a, params = __objRest$n(_a, ["enabled"]);
35452
35464
  return useQuery({
35453
35465
  enabled,
35454
35466
  onError,
@@ -35501,33 +35513,33 @@ const useCarrierConnectionsServicesList = (carrierCode) => {
35501
35513
  });
35502
35514
  };
35503
35515
 
35504
- var __defProp$u = Object.defineProperty;
35505
- var __defProps$r = Object.defineProperties;
35506
- var __getOwnPropDescs$r = Object.getOwnPropertyDescriptors;
35507
- var __getOwnPropSymbols$A = Object.getOwnPropertySymbols;
35508
- var __hasOwnProp$A = Object.prototype.hasOwnProperty;
35509
- var __propIsEnum$A = Object.prototype.propertyIsEnumerable;
35510
- var __defNormalProp$u = (obj, key, value) => key in obj ? __defProp$u(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35511
- var __spreadValues$u = (a, b) => {
35516
+ var __defProp$v = Object.defineProperty;
35517
+ var __defProps$s = Object.defineProperties;
35518
+ var __getOwnPropDescs$s = Object.getOwnPropertyDescriptors;
35519
+ var __getOwnPropSymbols$B = Object.getOwnPropertySymbols;
35520
+ var __hasOwnProp$B = Object.prototype.hasOwnProperty;
35521
+ var __propIsEnum$B = Object.prototype.propertyIsEnumerable;
35522
+ var __defNormalProp$v = (obj, key, value) => key in obj ? __defProp$v(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35523
+ var __spreadValues$v = (a, b) => {
35512
35524
  for (var prop in b || (b = {}))
35513
- if (__hasOwnProp$A.call(b, prop))
35514
- __defNormalProp$u(a, prop, b[prop]);
35515
- if (__getOwnPropSymbols$A)
35516
- for (var prop of __getOwnPropSymbols$A(b)) {
35517
- if (__propIsEnum$A.call(b, prop))
35518
- __defNormalProp$u(a, prop, b[prop]);
35525
+ if (__hasOwnProp$B.call(b, prop))
35526
+ __defNormalProp$v(a, prop, b[prop]);
35527
+ if (__getOwnPropSymbols$B)
35528
+ for (var prop of __getOwnPropSymbols$B(b)) {
35529
+ if (__propIsEnum$B.call(b, prop))
35530
+ __defNormalProp$v(a, prop, b[prop]);
35519
35531
  }
35520
35532
  return a;
35521
35533
  };
35522
- var __spreadProps$r = (a, b) => __defProps$r(a, __getOwnPropDescs$r(b));
35523
- var __objRest$l = (source, exclude) => {
35534
+ var __spreadProps$s = (a, b) => __defProps$s(a, __getOwnPropDescs$s(b));
35535
+ var __objRest$m = (source, exclude) => {
35524
35536
  var target = {};
35525
35537
  for (var prop in source)
35526
- if (__hasOwnProp$A.call(source, prop) && exclude.indexOf(prop) < 0)
35538
+ if (__hasOwnProp$B.call(source, prop) && exclude.indexOf(prop) < 0)
35527
35539
  target[prop] = source[prop];
35528
- if (source != null && __getOwnPropSymbols$A)
35529
- for (var prop of __getOwnPropSymbols$A(source)) {
35530
- if (exclude.indexOf(prop) < 0 && __propIsEnum$A.call(source, prop))
35540
+ if (source != null && __getOwnPropSymbols$B)
35541
+ for (var prop of __getOwnPropSymbols$B(source)) {
35542
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$B.call(source, prop))
35531
35543
  target[prop] = source[prop];
35532
35544
  }
35533
35545
  return target;
@@ -35535,12 +35547,12 @@ var __objRest$l = (source, exclude) => {
35535
35547
  const useGetConnectionsCarrierSettings = (_a) => {
35536
35548
  var _b = _a, {
35537
35549
  queryFnParams
35538
- } = _b, params = __objRest$l(_b, [
35550
+ } = _b, params = __objRest$m(_b, [
35539
35551
  "queryFnParams"
35540
35552
  ]);
35541
35553
  const { client } = useShipEngine();
35542
35554
  const { carrierName, carrierId } = queryFnParams;
35543
- return useQuery(__spreadProps$r(__spreadValues$u({}, params), {
35555
+ return useQuery(__spreadProps$s(__spreadValues$v({}, params), {
35544
35556
  onError,
35545
35557
  queryFn: () => client.connections.getCarrierSettings(carrierName, carrierId),
35546
35558
  queryKey: ["useGetConnectionsCarrierSettings", carrierName, carrierId],
@@ -35548,25 +35560,25 @@ const useGetConnectionsCarrierSettings = (_a) => {
35548
35560
  }));
35549
35561
  };
35550
35562
 
35551
- var __defProp$t = Object.defineProperty;
35552
- var __defProps$q = Object.defineProperties;
35553
- var __getOwnPropDescs$q = Object.getOwnPropertyDescriptors;
35554
- var __getOwnPropSymbols$z = Object.getOwnPropertySymbols;
35555
- var __hasOwnProp$z = Object.prototype.hasOwnProperty;
35556
- var __propIsEnum$z = Object.prototype.propertyIsEnumerable;
35557
- var __defNormalProp$t = (obj, key, value) => key in obj ? __defProp$t(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35558
- var __spreadValues$t = (a, b) => {
35563
+ var __defProp$u = Object.defineProperty;
35564
+ var __defProps$r = Object.defineProperties;
35565
+ var __getOwnPropDescs$r = Object.getOwnPropertyDescriptors;
35566
+ var __getOwnPropSymbols$A = Object.getOwnPropertySymbols;
35567
+ var __hasOwnProp$A = Object.prototype.hasOwnProperty;
35568
+ var __propIsEnum$A = Object.prototype.propertyIsEnumerable;
35569
+ var __defNormalProp$u = (obj, key, value) => key in obj ? __defProp$u(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35570
+ var __spreadValues$u = (a, b) => {
35559
35571
  for (var prop in b || (b = {}))
35560
- if (__hasOwnProp$z.call(b, prop))
35561
- __defNormalProp$t(a, prop, b[prop]);
35562
- if (__getOwnPropSymbols$z)
35563
- for (var prop of __getOwnPropSymbols$z(b)) {
35564
- if (__propIsEnum$z.call(b, prop))
35565
- __defNormalProp$t(a, prop, b[prop]);
35572
+ if (__hasOwnProp$A.call(b, prop))
35573
+ __defNormalProp$u(a, prop, b[prop]);
35574
+ if (__getOwnPropSymbols$A)
35575
+ for (var prop of __getOwnPropSymbols$A(b)) {
35576
+ if (__propIsEnum$A.call(b, prop))
35577
+ __defNormalProp$u(a, prop, b[prop]);
35566
35578
  }
35567
35579
  return a;
35568
35580
  };
35569
- var __spreadProps$q = (a, b) => __defProps$q(a, __getOwnPropDescs$q(b));
35581
+ var __spreadProps$r = (a, b) => __defProps$r(a, __getOwnPropDescs$r(b));
35570
35582
  var __async$I = (__this, __arguments, generator) => {
35571
35583
  return new Promise((resolve, reject) => {
35572
35584
  var fulfilled = (value) => {
@@ -35589,7 +35601,7 @@ var __async$I = (__this, __arguments, generator) => {
35589
35601
  };
35590
35602
  const useUpdateConnectionsCarrierSettings = (params) => {
35591
35603
  const { client } = useShipEngine();
35592
- return useMutation(__spreadProps$q(__spreadValues$t({}, params), {
35604
+ return useMutation(__spreadProps$r(__spreadValues$u({}, params), {
35593
35605
  mutationFn: (_0) => __async$I(void 0, [_0], function* ({
35594
35606
  carrierName,
35595
35607
  carrierId,
@@ -35797,29 +35809,29 @@ const useGetFundingSourceTransactions = (fundingSourceId, params) => {
35797
35809
  });
35798
35810
  };
35799
35811
 
35800
- var __defProp$s = Object.defineProperty;
35801
- var __defProps$p = Object.defineProperties;
35802
- var __getOwnPropDescs$p = Object.getOwnPropertyDescriptors;
35803
- var __getOwnPropSymbols$y = Object.getOwnPropertySymbols;
35804
- var __hasOwnProp$y = Object.prototype.hasOwnProperty;
35805
- var __propIsEnum$y = Object.prototype.propertyIsEnumerable;
35806
- var __defNormalProp$s = (obj, key, value) => key in obj ? __defProp$s(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35807
- var __spreadValues$s = (a, b) => {
35812
+ var __defProp$t = Object.defineProperty;
35813
+ var __defProps$q = Object.defineProperties;
35814
+ var __getOwnPropDescs$q = Object.getOwnPropertyDescriptors;
35815
+ var __getOwnPropSymbols$z = Object.getOwnPropertySymbols;
35816
+ var __hasOwnProp$z = Object.prototype.hasOwnProperty;
35817
+ var __propIsEnum$z = Object.prototype.propertyIsEnumerable;
35818
+ var __defNormalProp$t = (obj, key, value) => key in obj ? __defProp$t(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35819
+ var __spreadValues$t = (a, b) => {
35808
35820
  for (var prop in b || (b = {}))
35809
- if (__hasOwnProp$y.call(b, prop))
35810
- __defNormalProp$s(a, prop, b[prop]);
35811
- if (__getOwnPropSymbols$y)
35812
- for (var prop of __getOwnPropSymbols$y(b)) {
35813
- if (__propIsEnum$y.call(b, prop))
35814
- __defNormalProp$s(a, prop, b[prop]);
35821
+ if (__hasOwnProp$z.call(b, prop))
35822
+ __defNormalProp$t(a, prop, b[prop]);
35823
+ if (__getOwnPropSymbols$z)
35824
+ for (var prop of __getOwnPropSymbols$z(b)) {
35825
+ if (__propIsEnum$z.call(b, prop))
35826
+ __defNormalProp$t(a, prop, b[prop]);
35815
35827
  }
35816
35828
  return a;
35817
35829
  };
35818
- var __spreadProps$p = (a, b) => __defProps$p(a, __getOwnPropDescs$p(b));
35830
+ var __spreadProps$q = (a, b) => __defProps$q(a, __getOwnPropDescs$q(b));
35819
35831
  const useGetInsuranceFundingSourceAcceptedTerms = (params) => {
35820
35832
  const { client } = useShipEngine();
35821
- const queryParams = __spreadValues$s({}, params);
35822
- return useQuery(__spreadProps$p(__spreadValues$s({}, queryParams), {
35833
+ const queryParams = __spreadValues$t({}, params);
35834
+ return useQuery(__spreadProps$q(__spreadValues$t({}, queryParams), {
35823
35835
  onError,
35824
35836
  queryFn: () => client.fundingSources.insuranceAcceptedTerms(),
35825
35837
  queryKey: ["useGetInsuranceFundingSourceAcceptedTerms"],
@@ -35842,17 +35854,17 @@ const useGetInsuranceAccount = (insuranceProvider) => {
35842
35854
  });
35843
35855
  };
35844
35856
 
35845
- var __getOwnPropSymbols$x = Object.getOwnPropertySymbols;
35846
- var __hasOwnProp$x = Object.prototype.hasOwnProperty;
35847
- var __propIsEnum$x = Object.prototype.propertyIsEnumerable;
35848
- var __objRest$k = (source, exclude) => {
35857
+ var __getOwnPropSymbols$y = Object.getOwnPropertySymbols;
35858
+ var __hasOwnProp$y = Object.prototype.hasOwnProperty;
35859
+ var __propIsEnum$y = Object.prototype.propertyIsEnumerable;
35860
+ var __objRest$l = (source, exclude) => {
35849
35861
  var target = {};
35850
35862
  for (var prop in source)
35851
- if (__hasOwnProp$x.call(source, prop) && exclude.indexOf(prop) < 0)
35863
+ if (__hasOwnProp$y.call(source, prop) && exclude.indexOf(prop) < 0)
35852
35864
  target[prop] = source[prop];
35853
- if (source != null && __getOwnPropSymbols$x)
35854
- for (var prop of __getOwnPropSymbols$x(source)) {
35855
- if (exclude.indexOf(prop) < 0 && __propIsEnum$x.call(source, prop))
35865
+ if (source != null && __getOwnPropSymbols$y)
35866
+ for (var prop of __getOwnPropSymbols$y(source)) {
35867
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$y.call(source, prop))
35856
35868
  target[prop] = source[prop];
35857
35869
  }
35858
35870
  return target;
@@ -35881,7 +35893,7 @@ const useAddInsuranceFunds = () => {
35881
35893
  const { client } = useShipEngine();
35882
35894
  return useMutation({
35883
35895
  mutationFn: (_a) => __async$D(void 0, null, function* () {
35884
- var _b = _a, { insuranceProvider } = _b, rest = __objRest$k(_b, ["insuranceProvider"]);
35896
+ var _b = _a, { insuranceProvider } = _b, rest = __objRest$l(_b, ["insuranceProvider"]);
35885
35897
  const result = yield client.insurance.addFunds(insuranceProvider, rest);
35886
35898
  return result.data;
35887
35899
  }),
@@ -35890,25 +35902,25 @@ const useAddInsuranceFunds = () => {
35890
35902
  });
35891
35903
  };
35892
35904
 
35893
- var __defProp$r = Object.defineProperty;
35894
- var __defProps$o = Object.defineProperties;
35895
- var __getOwnPropDescs$o = Object.getOwnPropertyDescriptors;
35896
- var __getOwnPropSymbols$w = Object.getOwnPropertySymbols;
35897
- var __hasOwnProp$w = Object.prototype.hasOwnProperty;
35898
- var __propIsEnum$w = Object.prototype.propertyIsEnumerable;
35899
- var __defNormalProp$r = (obj, key, value) => key in obj ? __defProp$r(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35900
- var __spreadValues$r = (a, b) => {
35905
+ var __defProp$s = Object.defineProperty;
35906
+ var __defProps$p = Object.defineProperties;
35907
+ var __getOwnPropDescs$p = Object.getOwnPropertyDescriptors;
35908
+ var __getOwnPropSymbols$x = Object.getOwnPropertySymbols;
35909
+ var __hasOwnProp$x = Object.prototype.hasOwnProperty;
35910
+ var __propIsEnum$x = Object.prototype.propertyIsEnumerable;
35911
+ var __defNormalProp$s = (obj, key, value) => key in obj ? __defProp$s(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35912
+ var __spreadValues$s = (a, b) => {
35901
35913
  for (var prop in b || (b = {}))
35902
- if (__hasOwnProp$w.call(b, prop))
35903
- __defNormalProp$r(a, prop, b[prop]);
35904
- if (__getOwnPropSymbols$w)
35905
- for (var prop of __getOwnPropSymbols$w(b)) {
35906
- if (__propIsEnum$w.call(b, prop))
35907
- __defNormalProp$r(a, prop, b[prop]);
35914
+ if (__hasOwnProp$x.call(b, prop))
35915
+ __defNormalProp$s(a, prop, b[prop]);
35916
+ if (__getOwnPropSymbols$x)
35917
+ for (var prop of __getOwnPropSymbols$x(b)) {
35918
+ if (__propIsEnum$x.call(b, prop))
35919
+ __defNormalProp$s(a, prop, b[prop]);
35908
35920
  }
35909
35921
  return a;
35910
35922
  };
35911
- var __spreadProps$o = (a, b) => __defProps$o(a, __getOwnPropDescs$o(b));
35923
+ var __spreadProps$p = (a, b) => __defProps$p(a, __getOwnPropDescs$p(b));
35912
35924
  var __async$C = (__this, __arguments, generator) => {
35913
35925
  return new Promise((resolve, reject) => {
35914
35926
  var fulfilled = (value) => {
@@ -35931,7 +35943,7 @@ var __async$C = (__this, __arguments, generator) => {
35931
35943
  };
35932
35944
  const useCreateInvoiceAddress = (params) => {
35933
35945
  const { client } = useShipEngine();
35934
- return useMutation(__spreadProps$o(__spreadValues$r({}, params), {
35946
+ return useMutation(__spreadProps$p(__spreadValues$s({}, params), {
35935
35947
  mutationFn: (invoiceAddress) => __async$C(void 0, null, function* () {
35936
35948
  const result = yield client.invoiceAddress.create(invoiceAddress);
35937
35949
  return result.data;
@@ -35941,25 +35953,25 @@ const useCreateInvoiceAddress = (params) => {
35941
35953
  }));
35942
35954
  };
35943
35955
 
35944
- var __defProp$q = Object.defineProperty;
35945
- var __defProps$n = Object.defineProperties;
35946
- var __getOwnPropDescs$n = Object.getOwnPropertyDescriptors;
35947
- var __getOwnPropSymbols$v = Object.getOwnPropertySymbols;
35948
- var __hasOwnProp$v = Object.prototype.hasOwnProperty;
35949
- var __propIsEnum$v = Object.prototype.propertyIsEnumerable;
35950
- var __defNormalProp$q = (obj, key, value) => key in obj ? __defProp$q(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35951
- var __spreadValues$q = (a, b) => {
35956
+ var __defProp$r = Object.defineProperty;
35957
+ var __defProps$o = Object.defineProperties;
35958
+ var __getOwnPropDescs$o = Object.getOwnPropertyDescriptors;
35959
+ var __getOwnPropSymbols$w = Object.getOwnPropertySymbols;
35960
+ var __hasOwnProp$w = Object.prototype.hasOwnProperty;
35961
+ var __propIsEnum$w = Object.prototype.propertyIsEnumerable;
35962
+ var __defNormalProp$r = (obj, key, value) => key in obj ? __defProp$r(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35963
+ var __spreadValues$r = (a, b) => {
35952
35964
  for (var prop in b || (b = {}))
35953
- if (__hasOwnProp$v.call(b, prop))
35954
- __defNormalProp$q(a, prop, b[prop]);
35955
- if (__getOwnPropSymbols$v)
35956
- for (var prop of __getOwnPropSymbols$v(b)) {
35957
- if (__propIsEnum$v.call(b, prop))
35958
- __defNormalProp$q(a, prop, b[prop]);
35965
+ if (__hasOwnProp$w.call(b, prop))
35966
+ __defNormalProp$r(a, prop, b[prop]);
35967
+ if (__getOwnPropSymbols$w)
35968
+ for (var prop of __getOwnPropSymbols$w(b)) {
35969
+ if (__propIsEnum$w.call(b, prop))
35970
+ __defNormalProp$r(a, prop, b[prop]);
35959
35971
  }
35960
35972
  return a;
35961
35973
  };
35962
- var __spreadProps$n = (a, b) => __defProps$n(a, __getOwnPropDescs$n(b));
35974
+ var __spreadProps$o = (a, b) => __defProps$o(a, __getOwnPropDescs$o(b));
35963
35975
  var __async$B = (__this, __arguments, generator) => {
35964
35976
  return new Promise((resolve, reject) => {
35965
35977
  var fulfilled = (value) => {
@@ -35982,7 +35994,7 @@ var __async$B = (__this, __arguments, generator) => {
35982
35994
  };
35983
35995
  const useUpdateInvoiceAddress = (params) => {
35984
35996
  const { client } = useShipEngine();
35985
- return useMutation(__spreadProps$n(__spreadValues$q({}, params), {
35997
+ return useMutation(__spreadProps$o(__spreadValues$r({}, params), {
35986
35998
  mutationFn: (invoiceAddress) => __async$B(void 0, null, function* () {
35987
35999
  const result = yield client.invoiceAddress.update(invoiceAddress);
35988
36000
  return result.data;
@@ -35992,6 +36004,35 @@ const useUpdateInvoiceAddress = (params) => {
35992
36004
  }));
35993
36005
  };
35994
36006
 
36007
+ var __defProp$q = Object.defineProperty;
36008
+ var __defProps$n = Object.defineProperties;
36009
+ var __getOwnPropDescs$n = Object.getOwnPropertyDescriptors;
36010
+ var __getOwnPropSymbols$v = Object.getOwnPropertySymbols;
36011
+ var __hasOwnProp$v = Object.prototype.hasOwnProperty;
36012
+ var __propIsEnum$v = Object.prototype.propertyIsEnumerable;
36013
+ var __defNormalProp$q = (obj, key, value) => key in obj ? __defProp$q(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
36014
+ var __spreadValues$q = (a, b) => {
36015
+ for (var prop in b || (b = {}))
36016
+ if (__hasOwnProp$v.call(b, prop))
36017
+ __defNormalProp$q(a, prop, b[prop]);
36018
+ if (__getOwnPropSymbols$v)
36019
+ for (var prop of __getOwnPropSymbols$v(b)) {
36020
+ if (__propIsEnum$v.call(b, prop))
36021
+ __defNormalProp$q(a, prop, b[prop]);
36022
+ }
36023
+ return a;
36024
+ };
36025
+ var __spreadProps$n = (a, b) => __defProps$n(a, __getOwnPropDescs$n(b));
36026
+ const useGetInvoiceAddress = (params) => {
36027
+ const { client } = useShipEngine();
36028
+ return useQuery(__spreadProps$n(__spreadValues$q({}, params), {
36029
+ onError,
36030
+ queryFn: () => client.invoiceAddress.get(),
36031
+ queryKey: ["useGetInvoiceAddress"],
36032
+ select: (result) => result.data
36033
+ }));
36034
+ };
36035
+
35995
36036
  var __defProp$p = Object.defineProperty;
35996
36037
  var __defProps$m = Object.defineProperties;
35997
36038
  var __getOwnPropDescs$m = Object.getOwnPropertyDescriptors;
@@ -36011,13 +36052,48 @@ var __spreadValues$p = (a, b) => {
36011
36052
  return a;
36012
36053
  };
36013
36054
  var __spreadProps$m = (a, b) => __defProps$m(a, __getOwnPropDescs$m(b));
36014
- const useGetInvoiceAddress = (params) => {
36055
+ var __objRest$k = (source, exclude) => {
36056
+ var target = {};
36057
+ for (var prop in source)
36058
+ if (__hasOwnProp$u.call(source, prop) && exclude.indexOf(prop) < 0)
36059
+ target[prop] = source[prop];
36060
+ if (source != null && __getOwnPropSymbols$u)
36061
+ for (var prop of __getOwnPropSymbols$u(source)) {
36062
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$u.call(source, prop))
36063
+ target[prop] = source[prop];
36064
+ }
36065
+ return target;
36066
+ };
36067
+ var __async$A = (__this, __arguments, generator) => {
36068
+ return new Promise((resolve, reject) => {
36069
+ var fulfilled = (value) => {
36070
+ try {
36071
+ step(generator.next(value));
36072
+ } catch (e) {
36073
+ reject(e);
36074
+ }
36075
+ };
36076
+ var rejected = (value) => {
36077
+ try {
36078
+ step(generator.throw(value));
36079
+ } catch (e) {
36080
+ reject(e);
36081
+ }
36082
+ };
36083
+ var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
36084
+ step((generator = generator.apply(__this, __arguments)).next());
36085
+ });
36086
+ };
36087
+ const useCreateLabelByRateId = (params) => {
36015
36088
  const { client } = useShipEngine();
36016
- return useQuery(__spreadProps$m(__spreadValues$p({}, params), {
36017
- onError,
36018
- queryFn: () => client.invoiceAddress.get(),
36019
- queryKey: ["useGetInvoiceAddress"],
36020
- select: (result) => result.data
36089
+ return useMutation(__spreadProps$m(__spreadValues$p({}, params), {
36090
+ mutationFn: (_a) => __async$A(void 0, null, function* () {
36091
+ var _b = _a, { rateId } = _b, options = __objRest$k(_b, ["rateId"]);
36092
+ const result = yield client.labels.createByRateId(rateId, options);
36093
+ return result.data;
36094
+ }),
36095
+ mutationKey: ["useCreateLabelByRateId"],
36096
+ onError
36021
36097
  }));
36022
36098
  };
36023
36099
 
@@ -36052,7 +36128,7 @@ var __objRest$j = (source, exclude) => {
36052
36128
  }
36053
36129
  return target;
36054
36130
  };
36055
- var __async$A = (__this, __arguments, generator) => {
36131
+ var __async$z = (__this, __arguments, generator) => {
36056
36132
  return new Promise((resolve, reject) => {
36057
36133
  var fulfilled = (value) => {
36058
36134
  try {
@@ -36072,15 +36148,15 @@ var __async$A = (__this, __arguments, generator) => {
36072
36148
  step((generator = generator.apply(__this, __arguments)).next());
36073
36149
  });
36074
36150
  };
36075
- const useCreateLabelByRateId = (params) => {
36151
+ const useCreateLabelByShipmentId = (params) => {
36076
36152
  const { client } = useShipEngine();
36077
36153
  return useMutation(__spreadProps$l(__spreadValues$o({}, params), {
36078
- mutationFn: (_a) => __async$A(void 0, null, function* () {
36079
- var _b = _a, { rateId } = _b, options = __objRest$j(_b, ["rateId"]);
36080
- const result = yield client.labels.createByRateId(rateId, options);
36154
+ mutationFn: (_a) => __async$z(void 0, null, function* () {
36155
+ var _b = _a, { shipmentId } = _b, options = __objRest$j(_b, ["shipmentId"]);
36156
+ const result = yield client.labels.createByShipmentId(shipmentId, options);
36081
36157
  return result.data;
36082
36158
  }),
36083
- mutationKey: ["useCreateLabelByRateId"],
36159
+ mutationKey: ["useCreateLabelByShipmentId"],
36084
36160
  onError
36085
36161
  }));
36086
36162
  };
@@ -36116,7 +36192,7 @@ var __objRest$i = (source, exclude) => {
36116
36192
  }
36117
36193
  return target;
36118
36194
  };
36119
- var __async$z = (__this, __arguments, generator) => {
36195
+ var __async$y = (__this, __arguments, generator) => {
36120
36196
  return new Promise((resolve, reject) => {
36121
36197
  var fulfilled = (value) => {
36122
36198
  try {
@@ -36136,19 +36212,34 @@ var __async$z = (__this, __arguments, generator) => {
36136
36212
  step((generator = generator.apply(__this, __arguments)).next());
36137
36213
  });
36138
36214
  };
36139
- const useCreateLabelByShipmentId = (params) => {
36215
+ const useCreateLabel = (params) => {
36140
36216
  const { client } = useShipEngine();
36141
36217
  return useMutation(__spreadProps$k(__spreadValues$n({}, params), {
36142
- mutationFn: (_a) => __async$z(void 0, null, function* () {
36143
- var _b = _a, { shipmentId } = _b, options = __objRest$i(_b, ["shipmentId"]);
36144
- const result = yield client.labels.createByShipmentId(shipmentId, options);
36218
+ mutationFn: (_a) => __async$y(void 0, null, function* () {
36219
+ var _b = _a, { rateId } = _b, options = __objRest$i(_b, ["rateId"]);
36220
+ const result = yield client.labels.createByRateId(rateId, options);
36145
36221
  return result.data;
36146
36222
  }),
36147
- mutationKey: ["useCreateLabelByShipmentId"],
36223
+ mutationKey: ["useCreateLabel"],
36148
36224
  onError
36149
36225
  }));
36150
36226
  };
36151
36227
 
36228
+ const useGetLabel = (labelId) => {
36229
+ const { client } = useShipEngine();
36230
+ return useQuery({
36231
+ enabled: labelId !== void 0,
36232
+ onError,
36233
+ queryFn: () => {
36234
+ if (labelId)
36235
+ return client.labels.get(labelId);
36236
+ return Promise.reject(new Error("labelId is require"));
36237
+ },
36238
+ queryKey: ["useGetLabel", labelId],
36239
+ select: (result) => result.data
36240
+ });
36241
+ };
36242
+
36152
36243
  var __defProp$m = Object.defineProperty;
36153
36244
  var __defProps$j = Object.defineProperties;
36154
36245
  var __getOwnPropDescs$j = Object.getOwnPropertyDescriptors;
@@ -36180,7 +36271,18 @@ var __objRest$h = (source, exclude) => {
36180
36271
  }
36181
36272
  return target;
36182
36273
  };
36183
- var __async$y = (__this, __arguments, generator) => {
36274
+ const useListLabels = (params) => {
36275
+ const { client } = useShipEngine();
36276
+ const _a = __spreadValues$m({}, params), { queryFnParams } = _a, rest = __objRest$h(_a, ["queryFnParams"]);
36277
+ return useQuery(__spreadProps$j(__spreadValues$m({}, rest), {
36278
+ onError,
36279
+ queryFn: () => client.labels.list(queryFnParams),
36280
+ queryKey: ["useListLabels", params],
36281
+ select: (result) => result.data
36282
+ }));
36283
+ };
36284
+
36285
+ var __async$x = (__this, __arguments, generator) => {
36184
36286
  return new Promise((resolve, reject) => {
36185
36287
  var fulfilled = (value) => {
36186
36288
  try {
@@ -36200,31 +36302,15 @@ var __async$y = (__this, __arguments, generator) => {
36200
36302
  step((generator = generator.apply(__this, __arguments)).next());
36201
36303
  });
36202
36304
  };
36203
- const useCreateLabel = (params) => {
36305
+ const useVoidLabel = () => {
36204
36306
  const { client } = useShipEngine();
36205
- return useMutation(__spreadProps$j(__spreadValues$m({}, params), {
36206
- mutationFn: (_a) => __async$y(void 0, null, function* () {
36207
- var _b = _a, { rateId } = _b, options = __objRest$h(_b, ["rateId"]);
36208
- const result = yield client.labels.createByRateId(rateId, options);
36307
+ return useMutation({
36308
+ mutationFn: (labelId) => __async$x(void 0, null, function* () {
36309
+ const result = yield client.labels.void(labelId);
36209
36310
  return result.data;
36210
36311
  }),
36211
- mutationKey: ["useCreateLabel"],
36312
+ mutationKey: ["useVoidLabel"],
36212
36313
  onError
36213
- }));
36214
- };
36215
-
36216
- const useGetLabel = (labelId) => {
36217
- const { client } = useShipEngine();
36218
- return useQuery({
36219
- enabled: labelId !== void 0,
36220
- onError,
36221
- queryFn: () => {
36222
- if (labelId)
36223
- return client.labels.get(labelId);
36224
- return Promise.reject(new Error("labelId is require"));
36225
- },
36226
- queryKey: ["useGetLabel", labelId],
36227
- select: (result) => result.data
36228
36314
  });
36229
36315
  };
36230
36316
 
@@ -36259,80 +36345,6 @@ var __objRest$g = (source, exclude) => {
36259
36345
  }
36260
36346
  return target;
36261
36347
  };
36262
- const useListLabels = (params) => {
36263
- const { client } = useShipEngine();
36264
- const _a = __spreadValues$l({}, params), { queryFnParams } = _a, rest = __objRest$g(_a, ["queryFnParams"]);
36265
- return useQuery(__spreadProps$i(__spreadValues$l({}, rest), {
36266
- onError,
36267
- queryFn: () => client.labels.list(queryFnParams),
36268
- queryKey: ["useListLabels", params],
36269
- select: (result) => result.data
36270
- }));
36271
- };
36272
-
36273
- var __async$x = (__this, __arguments, generator) => {
36274
- return new Promise((resolve, reject) => {
36275
- var fulfilled = (value) => {
36276
- try {
36277
- step(generator.next(value));
36278
- } catch (e) {
36279
- reject(e);
36280
- }
36281
- };
36282
- var rejected = (value) => {
36283
- try {
36284
- step(generator.throw(value));
36285
- } catch (e) {
36286
- reject(e);
36287
- }
36288
- };
36289
- var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
36290
- step((generator = generator.apply(__this, __arguments)).next());
36291
- });
36292
- };
36293
- const useVoidLabel = () => {
36294
- const { client } = useShipEngine();
36295
- return useMutation({
36296
- mutationFn: (labelId) => __async$x(void 0, null, function* () {
36297
- const result = yield client.labels.void(labelId);
36298
- return result.data;
36299
- }),
36300
- mutationKey: ["useVoidLabel"],
36301
- onError
36302
- });
36303
- };
36304
-
36305
- var __defProp$k = Object.defineProperty;
36306
- var __defProps$h = Object.defineProperties;
36307
- var __getOwnPropDescs$h = Object.getOwnPropertyDescriptors;
36308
- var __getOwnPropSymbols$p = Object.getOwnPropertySymbols;
36309
- var __hasOwnProp$p = Object.prototype.hasOwnProperty;
36310
- var __propIsEnum$p = Object.prototype.propertyIsEnumerable;
36311
- var __defNormalProp$k = (obj, key, value) => key in obj ? __defProp$k(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
36312
- var __spreadValues$k = (a, b) => {
36313
- for (var prop in b || (b = {}))
36314
- if (__hasOwnProp$p.call(b, prop))
36315
- __defNormalProp$k(a, prop, b[prop]);
36316
- if (__getOwnPropSymbols$p)
36317
- for (var prop of __getOwnPropSymbols$p(b)) {
36318
- if (__propIsEnum$p.call(b, prop))
36319
- __defNormalProp$k(a, prop, b[prop]);
36320
- }
36321
- return a;
36322
- };
36323
- var __spreadProps$h = (a, b) => __defProps$h(a, __getOwnPropDescs$h(b));
36324
- var __objRest$f = (source, exclude) => {
36325
- var target = {};
36326
- for (var prop in source)
36327
- if (__hasOwnProp$p.call(source, prop) && exclude.indexOf(prop) < 0)
36328
- target[prop] = source[prop];
36329
- if (source != null && __getOwnPropSymbols$p)
36330
- for (var prop of __getOwnPropSymbols$p(source)) {
36331
- if (exclude.indexOf(prop) < 0 && __propIsEnum$p.call(source, prop))
36332
- target[prop] = source[prop];
36333
- }
36334
- return target;
36335
- };
36336
36348
  var __async$w = (__this, __arguments, generator) => {
36337
36349
  return new Promise((resolve, reject) => {
36338
36350
  var fulfilled = (value) => {
@@ -36355,8 +36367,8 @@ var __async$w = (__this, __arguments, generator) => {
36355
36367
  };
36356
36368
  const useListLabelsInfinite = (params) => {
36357
36369
  const { client } = useShipEngine();
36358
- const _a = __spreadValues$k({}, params), { queryFnParams } = _a, rest = __objRest$f(_a, ["queryFnParams"]);
36359
- return useInfiniteQuery(__spreadProps$h(__spreadValues$k({}, rest), {
36370
+ const _a = __spreadValues$l({}, params), { queryFnParams } = _a, rest = __objRest$g(_a, ["queryFnParams"]);
36371
+ return useInfiniteQuery(__spreadProps$i(__spreadValues$l({}, rest), {
36360
36372
  getNextPageParam: (lastPage) => {
36361
36373
  if (lastPage.page < lastPage.pages) {
36362
36374
  return lastPage.page + 1;
@@ -36365,7 +36377,7 @@ const useListLabelsInfinite = (params) => {
36365
36377
  },
36366
36378
  onError,
36367
36379
  queryFn: (_0) => __async$w(void 0, [_0], function* ({ pageParam = 1 }) {
36368
- const response = yield client.labels.list(__spreadProps$h(__spreadValues$k({}, queryFnParams), { page: pageParam }));
36380
+ const response = yield client.labels.list(__spreadProps$i(__spreadValues$l({}, queryFnParams), { page: pageParam }));
36369
36381
  return response.data;
36370
36382
  }),
36371
36383
  queryKey: ["useListLabelsInfinite", params],
@@ -36379,69 +36391,69 @@ const useListLabelsInfinite = (params) => {
36379
36391
  }));
36380
36392
  };
36381
36393
 
36382
- var __defProp$j = Object.defineProperty;
36383
- var __defProps$g = Object.defineProperties;
36384
- var __getOwnPropDescs$g = Object.getOwnPropertyDescriptors;
36385
- var __getOwnPropSymbols$o = Object.getOwnPropertySymbols;
36386
- var __hasOwnProp$o = Object.prototype.hasOwnProperty;
36387
- var __propIsEnum$o = Object.prototype.propertyIsEnumerable;
36388
- var __defNormalProp$j = (obj, key, value) => key in obj ? __defProp$j(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
36389
- var __spreadValues$j = (a, b) => {
36394
+ var __defProp$k = Object.defineProperty;
36395
+ var __defProps$h = Object.defineProperties;
36396
+ var __getOwnPropDescs$h = Object.getOwnPropertyDescriptors;
36397
+ var __getOwnPropSymbols$p = Object.getOwnPropertySymbols;
36398
+ var __hasOwnProp$p = Object.prototype.hasOwnProperty;
36399
+ var __propIsEnum$p = Object.prototype.propertyIsEnumerable;
36400
+ var __defNormalProp$k = (obj, key, value) => key in obj ? __defProp$k(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
36401
+ var __spreadValues$k = (a, b) => {
36390
36402
  for (var prop in b || (b = {}))
36391
- if (__hasOwnProp$o.call(b, prop))
36392
- __defNormalProp$j(a, prop, b[prop]);
36393
- if (__getOwnPropSymbols$o)
36394
- for (var prop of __getOwnPropSymbols$o(b)) {
36395
- if (__propIsEnum$o.call(b, prop))
36396
- __defNormalProp$j(a, prop, b[prop]);
36403
+ if (__hasOwnProp$p.call(b, prop))
36404
+ __defNormalProp$k(a, prop, b[prop]);
36405
+ if (__getOwnPropSymbols$p)
36406
+ for (var prop of __getOwnPropSymbols$p(b)) {
36407
+ if (__propIsEnum$p.call(b, prop))
36408
+ __defNormalProp$k(a, prop, b[prop]);
36397
36409
  }
36398
36410
  return a;
36399
36411
  };
36400
- var __spreadProps$g = (a, b) => __defProps$g(a, __getOwnPropDescs$g(b));
36401
- var __objRest$e = (source, exclude) => {
36412
+ var __spreadProps$h = (a, b) => __defProps$h(a, __getOwnPropDescs$h(b));
36413
+ var __objRest$f = (source, exclude) => {
36402
36414
  var target = {};
36403
36415
  for (var prop in source)
36404
- if (__hasOwnProp$o.call(source, prop) && exclude.indexOf(prop) < 0)
36416
+ if (__hasOwnProp$p.call(source, prop) && exclude.indexOf(prop) < 0)
36405
36417
  target[prop] = source[prop];
36406
- if (source != null && __getOwnPropSymbols$o)
36407
- for (var prop of __getOwnPropSymbols$o(source)) {
36408
- if (exclude.indexOf(prop) < 0 && __propIsEnum$o.call(source, prop))
36418
+ if (source != null && __getOwnPropSymbols$p)
36419
+ for (var prop of __getOwnPropSymbols$p(source)) {
36420
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$p.call(source, prop))
36409
36421
  target[prop] = source[prop];
36410
36422
  }
36411
36423
  return target;
36412
36424
  };
36413
36425
  const useDownloadLabels = (params) => {
36414
36426
  const { client } = useShipEngine();
36415
- const _a = __spreadValues$j({}, params), { queryFnParams } = _a, rest = __objRest$e(_a, ["queryFnParams"]);
36416
- return useQuery(__spreadProps$g(__spreadValues$j({}, rest), {
36427
+ const _a = __spreadValues$k({}, params), { queryFnParams } = _a, rest = __objRest$f(_a, ["queryFnParams"]);
36428
+ return useQuery(__spreadProps$h(__spreadValues$k({}, rest), {
36417
36429
  onError,
36418
36430
  queryFn: () => client.labels.download(queryFnParams),
36419
36431
  queryKey: ["useDownloadLabels", params]
36420
36432
  }));
36421
36433
  };
36422
36434
 
36423
- var __defProp$i = Object.defineProperty;
36424
- var __defProps$f = Object.defineProperties;
36425
- var __getOwnPropDescs$f = Object.getOwnPropertyDescriptors;
36426
- var __getOwnPropSymbols$n = Object.getOwnPropertySymbols;
36427
- var __hasOwnProp$n = Object.prototype.hasOwnProperty;
36428
- var __propIsEnum$n = Object.prototype.propertyIsEnumerable;
36429
- var __defNormalProp$i = (obj, key, value) => key in obj ? __defProp$i(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
36430
- var __spreadValues$i = (a, b) => {
36435
+ var __defProp$j = Object.defineProperty;
36436
+ var __defProps$g = Object.defineProperties;
36437
+ var __getOwnPropDescs$g = Object.getOwnPropertyDescriptors;
36438
+ var __getOwnPropSymbols$o = Object.getOwnPropertySymbols;
36439
+ var __hasOwnProp$o = Object.prototype.hasOwnProperty;
36440
+ var __propIsEnum$o = Object.prototype.propertyIsEnumerable;
36441
+ var __defNormalProp$j = (obj, key, value) => key in obj ? __defProp$j(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
36442
+ var __spreadValues$j = (a, b) => {
36431
36443
  for (var prop in b || (b = {}))
36432
- if (__hasOwnProp$n.call(b, prop))
36433
- __defNormalProp$i(a, prop, b[prop]);
36434
- if (__getOwnPropSymbols$n)
36435
- for (var prop of __getOwnPropSymbols$n(b)) {
36436
- if (__propIsEnum$n.call(b, prop))
36437
- __defNormalProp$i(a, prop, b[prop]);
36444
+ if (__hasOwnProp$o.call(b, prop))
36445
+ __defNormalProp$j(a, prop, b[prop]);
36446
+ if (__getOwnPropSymbols$o)
36447
+ for (var prop of __getOwnPropSymbols$o(b)) {
36448
+ if (__propIsEnum$o.call(b, prop))
36449
+ __defNormalProp$j(a, prop, b[prop]);
36438
36450
  }
36439
36451
  return a;
36440
36452
  };
36441
- var __spreadProps$f = (a, b) => __defProps$f(a, __getOwnPropDescs$f(b));
36453
+ var __spreadProps$g = (a, b) => __defProps$g(a, __getOwnPropDescs$g(b));
36442
36454
  const useListOrderSources = (params) => {
36443
36455
  const { client } = useShipEngine();
36444
- return useQuery(__spreadProps$f(__spreadValues$i({}, params), {
36456
+ return useQuery(__spreadProps$g(__spreadValues$j({}, params), {
36445
36457
  onError,
36446
36458
  queryFn: () => client.orderSources.list(),
36447
36459
  queryKey: ["useListOrderSources"],
@@ -36879,17 +36891,17 @@ const useListSalesOrders = (params = {}) => {
36879
36891
  });
36880
36892
  };
36881
36893
 
36882
- var __getOwnPropSymbols$m = Object.getOwnPropertySymbols;
36883
- var __hasOwnProp$m = Object.prototype.hasOwnProperty;
36884
- var __propIsEnum$m = Object.prototype.propertyIsEnumerable;
36885
- var __objRest$d = (source, exclude) => {
36894
+ var __getOwnPropSymbols$n = Object.getOwnPropertySymbols;
36895
+ var __hasOwnProp$n = Object.prototype.hasOwnProperty;
36896
+ var __propIsEnum$n = Object.prototype.propertyIsEnumerable;
36897
+ var __objRest$e = (source, exclude) => {
36886
36898
  var target = {};
36887
36899
  for (var prop in source)
36888
- if (__hasOwnProp$m.call(source, prop) && exclude.indexOf(prop) < 0)
36900
+ if (__hasOwnProp$n.call(source, prop) && exclude.indexOf(prop) < 0)
36889
36901
  target[prop] = source[prop];
36890
- if (source != null && __getOwnPropSymbols$m)
36891
- for (var prop of __getOwnPropSymbols$m(source)) {
36892
- if (exclude.indexOf(prop) < 0 && __propIsEnum$m.call(source, prop))
36902
+ if (source != null && __getOwnPropSymbols$n)
36903
+ for (var prop of __getOwnPropSymbols$n(source)) {
36904
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$n.call(source, prop))
36893
36905
  target[prop] = source[prop];
36894
36906
  }
36895
36907
  return target;
@@ -36918,7 +36930,7 @@ const useNotifySalesOrderShipped = () => {
36918
36930
  const { client } = useShipEngine();
36919
36931
  return useMutation({
36920
36932
  mutationFn: (_a) => __async$l(void 0, null, function* () {
36921
- var _b = _a, { salesOrderId } = _b, tracking = __objRest$d(_b, ["salesOrderId"]);
36933
+ var _b = _a, { salesOrderId } = _b, tracking = __objRest$e(_b, ["salesOrderId"]);
36922
36934
  const result = yield client.salesOrders.notifyShipped(salesOrderId, tracking);
36923
36935
  return result.data;
36924
36936
  }),
@@ -36927,17 +36939,17 @@ const useNotifySalesOrderShipped = () => {
36927
36939
  });
36928
36940
  };
36929
36941
 
36930
- var __getOwnPropSymbols$l = Object.getOwnPropertySymbols;
36931
- var __hasOwnProp$l = Object.prototype.hasOwnProperty;
36932
- var __propIsEnum$l = Object.prototype.propertyIsEnumerable;
36933
- var __objRest$c = (source, exclude) => {
36942
+ var __getOwnPropSymbols$m = Object.getOwnPropertySymbols;
36943
+ var __hasOwnProp$m = Object.prototype.hasOwnProperty;
36944
+ var __propIsEnum$m = Object.prototype.propertyIsEnumerable;
36945
+ var __objRest$d = (source, exclude) => {
36934
36946
  var target = {};
36935
36947
  for (var prop in source)
36936
- if (__hasOwnProp$l.call(source, prop) && exclude.indexOf(prop) < 0)
36948
+ if (__hasOwnProp$m.call(source, prop) && exclude.indexOf(prop) < 0)
36937
36949
  target[prop] = source[prop];
36938
- if (source != null && __getOwnPropSymbols$l)
36939
- for (var prop of __getOwnPropSymbols$l(source)) {
36940
- if (exclude.indexOf(prop) < 0 && __propIsEnum$l.call(source, prop))
36950
+ if (source != null && __getOwnPropSymbols$m)
36951
+ for (var prop of __getOwnPropSymbols$m(source)) {
36952
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$m.call(source, prop))
36941
36953
  target[prop] = source[prop];
36942
36954
  }
36943
36955
  return target;
@@ -36966,7 +36978,7 @@ const useCreateSalesOrderShipment = () => {
36966
36978
  const { client } = useShipEngine();
36967
36979
  return useMutation({
36968
36980
  mutationFn: (_a) => __async$k(void 0, null, function* () {
36969
- var _b = _a, { salesOrderId } = _b, shipment = __objRest$c(_b, ["salesOrderId"]);
36981
+ var _b = _a, { salesOrderId } = _b, shipment = __objRest$d(_b, ["salesOrderId"]);
36970
36982
  const result = yield client.salesOrderShipments.create(salesOrderId, shipment);
36971
36983
  return result.data;
36972
36984
  }),
@@ -37002,17 +37014,17 @@ const useListSalesOrderShipments = (body) => {
37002
37014
  });
37003
37015
  };
37004
37016
 
37005
- var __getOwnPropSymbols$k = Object.getOwnPropertySymbols;
37006
- var __hasOwnProp$k = Object.prototype.hasOwnProperty;
37007
- var __propIsEnum$k = Object.prototype.propertyIsEnumerable;
37008
- var __objRest$b = (source, exclude) => {
37017
+ var __getOwnPropSymbols$l = Object.getOwnPropertySymbols;
37018
+ var __hasOwnProp$l = Object.prototype.hasOwnProperty;
37019
+ var __propIsEnum$l = Object.prototype.propertyIsEnumerable;
37020
+ var __objRest$c = (source, exclude) => {
37009
37021
  var target = {};
37010
37022
  for (var prop in source)
37011
- if (__hasOwnProp$k.call(source, prop) && exclude.indexOf(prop) < 0)
37023
+ if (__hasOwnProp$l.call(source, prop) && exclude.indexOf(prop) < 0)
37012
37024
  target[prop] = source[prop];
37013
- if (source != null && __getOwnPropSymbols$k)
37014
- for (var prop of __getOwnPropSymbols$k(source)) {
37015
- if (exclude.indexOf(prop) < 0 && __propIsEnum$k.call(source, prop))
37025
+ if (source != null && __getOwnPropSymbols$l)
37026
+ for (var prop of __getOwnPropSymbols$l(source)) {
37027
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$l.call(source, prop))
37016
37028
  target[prop] = source[prop];
37017
37029
  }
37018
37030
  return target;
@@ -37041,7 +37053,7 @@ const useUpdateSalesOrderShipment = () => {
37041
37053
  const { client } = useShipEngine();
37042
37054
  return useMutation({
37043
37055
  mutationFn: (_a) => __async$j(void 0, null, function* () {
37044
- var _b = _a, { shipmentId } = _b, shipment = __objRest$b(_b, ["shipmentId"]);
37056
+ var _b = _a, { shipmentId } = _b, shipment = __objRest$c(_b, ["shipmentId"]);
37045
37057
  const result = yield client.salesOrderShipments.update(shipmentId, shipment);
37046
37058
  return result.data;
37047
37059
  }),
@@ -37061,25 +37073,25 @@ const useListSalesOrderShipmentsByExternalOrderId = (externalOrderId) => {
37061
37073
  });
37062
37074
  };
37063
37075
 
37064
- var __defProp$h = Object.defineProperty;
37065
- var __defProps$e = Object.defineProperties;
37066
- var __getOwnPropDescs$e = Object.getOwnPropertyDescriptors;
37067
- var __getOwnPropSymbols$j = Object.getOwnPropertySymbols;
37068
- var __hasOwnProp$j = Object.prototype.hasOwnProperty;
37069
- var __propIsEnum$j = Object.prototype.propertyIsEnumerable;
37070
- var __defNormalProp$h = (obj, key, value) => key in obj ? __defProp$h(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
37071
- var __spreadValues$h = (a, b) => {
37076
+ var __defProp$i = Object.defineProperty;
37077
+ var __defProps$f = Object.defineProperties;
37078
+ var __getOwnPropDescs$f = Object.getOwnPropertyDescriptors;
37079
+ var __getOwnPropSymbols$k = Object.getOwnPropertySymbols;
37080
+ var __hasOwnProp$k = Object.prototype.hasOwnProperty;
37081
+ var __propIsEnum$k = Object.prototype.propertyIsEnumerable;
37082
+ var __defNormalProp$i = (obj, key, value) => key in obj ? __defProp$i(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
37083
+ var __spreadValues$i = (a, b) => {
37072
37084
  for (var prop in b || (b = {}))
37073
- if (__hasOwnProp$j.call(b, prop))
37074
- __defNormalProp$h(a, prop, b[prop]);
37075
- if (__getOwnPropSymbols$j)
37076
- for (var prop of __getOwnPropSymbols$j(b)) {
37077
- if (__propIsEnum$j.call(b, prop))
37078
- __defNormalProp$h(a, prop, b[prop]);
37085
+ if (__hasOwnProp$k.call(b, prop))
37086
+ __defNormalProp$i(a, prop, b[prop]);
37087
+ if (__getOwnPropSymbols$k)
37088
+ for (var prop of __getOwnPropSymbols$k(b)) {
37089
+ if (__propIsEnum$k.call(b, prop))
37090
+ __defNormalProp$i(a, prop, b[prop]);
37079
37091
  }
37080
37092
  return a;
37081
37093
  };
37082
- var __spreadProps$e = (a, b) => __defProps$e(a, __getOwnPropDescs$e(b));
37094
+ var __spreadProps$f = (a, b) => __defProps$f(a, __getOwnPropDescs$f(b));
37083
37095
  var __async$i = (__this, __arguments, generator) => {
37084
37096
  return new Promise((resolve, reject) => {
37085
37097
  var fulfilled = (value) => {
@@ -37121,7 +37133,7 @@ const useCreateShipment = () => {
37121
37133
  postalCode: "",
37122
37134
  stateProvince: ""
37123
37135
  };
37124
- return (yield client.shipments.create(__spreadProps$e(__spreadValues$h({}, shipment), {
37136
+ return (yield client.shipments.create(__spreadProps$f(__spreadValues$i({}, shipment), {
37125
37137
  shipTo
37126
37138
  }))).data;
37127
37139
  }),
@@ -37130,43 +37142,43 @@ const useCreateShipment = () => {
37130
37142
  });
37131
37143
  };
37132
37144
 
37133
- var __defProp$g = Object.defineProperty;
37134
- var __defProps$d = Object.defineProperties;
37135
- var __getOwnPropDescs$d = Object.getOwnPropertyDescriptors;
37136
- var __getOwnPropSymbols$i = Object.getOwnPropertySymbols;
37137
- var __hasOwnProp$i = Object.prototype.hasOwnProperty;
37138
- var __propIsEnum$i = Object.prototype.propertyIsEnumerable;
37139
- var __defNormalProp$g = (obj, key, value) => key in obj ? __defProp$g(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
37140
- var __spreadValues$g = (a, b) => {
37145
+ var __defProp$h = Object.defineProperty;
37146
+ var __defProps$e = Object.defineProperties;
37147
+ var __getOwnPropDescs$e = Object.getOwnPropertyDescriptors;
37148
+ var __getOwnPropSymbols$j = Object.getOwnPropertySymbols;
37149
+ var __hasOwnProp$j = Object.prototype.hasOwnProperty;
37150
+ var __propIsEnum$j = Object.prototype.propertyIsEnumerable;
37151
+ var __defNormalProp$h = (obj, key, value) => key in obj ? __defProp$h(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
37152
+ var __spreadValues$h = (a, b) => {
37141
37153
  for (var prop in b || (b = {}))
37142
- if (__hasOwnProp$i.call(b, prop))
37143
- __defNormalProp$g(a, prop, b[prop]);
37144
- if (__getOwnPropSymbols$i)
37145
- for (var prop of __getOwnPropSymbols$i(b)) {
37146
- if (__propIsEnum$i.call(b, prop))
37147
- __defNormalProp$g(a, prop, b[prop]);
37154
+ if (__hasOwnProp$j.call(b, prop))
37155
+ __defNormalProp$h(a, prop, b[prop]);
37156
+ if (__getOwnPropSymbols$j)
37157
+ for (var prop of __getOwnPropSymbols$j(b)) {
37158
+ if (__propIsEnum$j.call(b, prop))
37159
+ __defNormalProp$h(a, prop, b[prop]);
37148
37160
  }
37149
37161
  return a;
37150
37162
  };
37151
- var __spreadProps$d = (a, b) => __defProps$d(a, __getOwnPropDescs$d(b));
37152
- var __objRest$a = (source, exclude) => {
37163
+ var __spreadProps$e = (a, b) => __defProps$e(a, __getOwnPropDescs$e(b));
37164
+ var __objRest$b = (source, exclude) => {
37153
37165
  var target = {};
37154
37166
  for (var prop in source)
37155
- if (__hasOwnProp$i.call(source, prop) && exclude.indexOf(prop) < 0)
37167
+ if (__hasOwnProp$j.call(source, prop) && exclude.indexOf(prop) < 0)
37156
37168
  target[prop] = source[prop];
37157
- if (source != null && __getOwnPropSymbols$i)
37158
- for (var prop of __getOwnPropSymbols$i(source)) {
37159
- if (exclude.indexOf(prop) < 0 && __propIsEnum$i.call(source, prop))
37169
+ if (source != null && __getOwnPropSymbols$j)
37170
+ for (var prop of __getOwnPropSymbols$j(source)) {
37171
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$j.call(source, prop))
37160
37172
  target[prop] = source[prop];
37161
37173
  }
37162
37174
  return target;
37163
37175
  };
37164
37176
  const useGetShipmentRates = (params) => {
37165
37177
  const { client } = useShipEngine();
37166
- const _a = params, { queryFnParams } = _a, rest = __objRest$a(_a, ["queryFnParams"]);
37178
+ const _a = params, { queryFnParams } = _a, rest = __objRest$b(_a, ["queryFnParams"]);
37167
37179
  const shipmentId = queryFnParams == null ? void 0 : queryFnParams.shipmentId;
37168
37180
  const createdAtStart = queryFnParams == null ? void 0 : queryFnParams.createdAtStart;
37169
- return useQuery(__spreadProps$d(__spreadValues$g({
37181
+ return useQuery(__spreadProps$e(__spreadValues$h({
37170
37182
  enabled: shipmentId !== void 0
37171
37183
  }, rest), {
37172
37184
  onError,
@@ -37181,33 +37193,33 @@ const useGetShipmentRates = (params) => {
37181
37193
  }));
37182
37194
  };
37183
37195
 
37184
- var __defProp$f = Object.defineProperty;
37185
- var __defProps$c = Object.defineProperties;
37186
- var __getOwnPropDescs$c = Object.getOwnPropertyDescriptors;
37187
- var __getOwnPropSymbols$h = Object.getOwnPropertySymbols;
37188
- var __hasOwnProp$h = Object.prototype.hasOwnProperty;
37189
- var __propIsEnum$h = Object.prototype.propertyIsEnumerable;
37190
- var __defNormalProp$f = (obj, key, value) => key in obj ? __defProp$f(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
37191
- var __spreadValues$f = (a, b) => {
37196
+ var __defProp$g = Object.defineProperty;
37197
+ var __defProps$d = Object.defineProperties;
37198
+ var __getOwnPropDescs$d = Object.getOwnPropertyDescriptors;
37199
+ var __getOwnPropSymbols$i = Object.getOwnPropertySymbols;
37200
+ var __hasOwnProp$i = Object.prototype.hasOwnProperty;
37201
+ var __propIsEnum$i = Object.prototype.propertyIsEnumerable;
37202
+ var __defNormalProp$g = (obj, key, value) => key in obj ? __defProp$g(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
37203
+ var __spreadValues$g = (a, b) => {
37192
37204
  for (var prop in b || (b = {}))
37193
- if (__hasOwnProp$h.call(b, prop))
37194
- __defNormalProp$f(a, prop, b[prop]);
37195
- if (__getOwnPropSymbols$h)
37196
- for (var prop of __getOwnPropSymbols$h(b)) {
37197
- if (__propIsEnum$h.call(b, prop))
37198
- __defNormalProp$f(a, prop, b[prop]);
37205
+ if (__hasOwnProp$i.call(b, prop))
37206
+ __defNormalProp$g(a, prop, b[prop]);
37207
+ if (__getOwnPropSymbols$i)
37208
+ for (var prop of __getOwnPropSymbols$i(b)) {
37209
+ if (__propIsEnum$i.call(b, prop))
37210
+ __defNormalProp$g(a, prop, b[prop]);
37199
37211
  }
37200
37212
  return a;
37201
37213
  };
37202
- var __spreadProps$c = (a, b) => __defProps$c(a, __getOwnPropDescs$c(b));
37203
- var __objRest$9 = (source, exclude) => {
37214
+ var __spreadProps$d = (a, b) => __defProps$d(a, __getOwnPropDescs$d(b));
37215
+ var __objRest$a = (source, exclude) => {
37204
37216
  var target = {};
37205
37217
  for (var prop in source)
37206
- if (__hasOwnProp$h.call(source, prop) && exclude.indexOf(prop) < 0)
37218
+ if (__hasOwnProp$i.call(source, prop) && exclude.indexOf(prop) < 0)
37207
37219
  target[prop] = source[prop];
37208
- if (source != null && __getOwnPropSymbols$h)
37209
- for (var prop of __getOwnPropSymbols$h(source)) {
37210
- if (exclude.indexOf(prop) < 0 && __propIsEnum$h.call(source, prop))
37220
+ if (source != null && __getOwnPropSymbols$i)
37221
+ for (var prop of __getOwnPropSymbols$i(source)) {
37222
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$i.call(source, prop))
37211
37223
  target[prop] = source[prop];
37212
37224
  }
37213
37225
  return target;
@@ -37218,12 +37230,12 @@ const useGetShipment = (params) => {
37218
37230
  const shipmentId = typeof params === "string" ? params : (_a = params == null ? void 0 : params.queryFnParams) == null ? void 0 : _a.shipmentId;
37219
37231
  const getQueryProps = () => {
37220
37232
  if (typeof params !== "string") {
37221
- const _a2 = params, rest = __objRest$9(_a2, ["queryFnParams"]);
37233
+ const _a2 = params, rest = __objRest$a(_a2, ["queryFnParams"]);
37222
37234
  return rest;
37223
37235
  }
37224
37236
  return {};
37225
37237
  };
37226
- return useQuery(__spreadProps$c(__spreadValues$f({}, getQueryProps()), {
37238
+ return useQuery(__spreadProps$d(__spreadValues$g({}, getQueryProps()), {
37227
37239
  enabled: shipmentId !== void 0,
37228
37240
  onError,
37229
37241
  queryFn: () => {
@@ -37237,23 +37249,23 @@ const useGetShipment = (params) => {
37237
37249
  }));
37238
37250
  };
37239
37251
 
37240
- var __getOwnPropSymbols$g = Object.getOwnPropertySymbols;
37241
- var __hasOwnProp$g = Object.prototype.hasOwnProperty;
37242
- var __propIsEnum$g = Object.prototype.propertyIsEnumerable;
37243
- var __objRest$8 = (source, exclude) => {
37252
+ var __getOwnPropSymbols$h = Object.getOwnPropertySymbols;
37253
+ var __hasOwnProp$h = Object.prototype.hasOwnProperty;
37254
+ var __propIsEnum$h = Object.prototype.propertyIsEnumerable;
37255
+ var __objRest$9 = (source, exclude) => {
37244
37256
  var target = {};
37245
37257
  for (var prop in source)
37246
- if (__hasOwnProp$g.call(source, prop) && exclude.indexOf(prop) < 0)
37258
+ if (__hasOwnProp$h.call(source, prop) && exclude.indexOf(prop) < 0)
37247
37259
  target[prop] = source[prop];
37248
- if (source != null && __getOwnPropSymbols$g)
37249
- for (var prop of __getOwnPropSymbols$g(source)) {
37250
- if (exclude.indexOf(prop) < 0 && __propIsEnum$g.call(source, prop))
37260
+ if (source != null && __getOwnPropSymbols$h)
37261
+ for (var prop of __getOwnPropSymbols$h(source)) {
37262
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$h.call(source, prop))
37251
37263
  target[prop] = source[prop];
37252
37264
  }
37253
37265
  return target;
37254
37266
  };
37255
37267
  const useListShipments = (_params) => {
37256
- const _a = _params || {}, { enabled = true } = _a, params = __objRest$8(_a, ["enabled"]);
37268
+ const _a = _params || {}, { enabled = true } = _a, params = __objRest$9(_a, ["enabled"]);
37257
37269
  const { client } = useShipEngine();
37258
37270
  return useQuery({
37259
37271
  enabled,
@@ -37264,41 +37276,41 @@ const useListShipments = (_params) => {
37264
37276
  });
37265
37277
  };
37266
37278
 
37267
- var __defProp$e = Object.defineProperty;
37268
- var __defProps$b = Object.defineProperties;
37269
- var __getOwnPropDescs$b = Object.getOwnPropertyDescriptors;
37270
- var __getOwnPropSymbols$f = Object.getOwnPropertySymbols;
37271
- var __hasOwnProp$f = Object.prototype.hasOwnProperty;
37272
- var __propIsEnum$f = Object.prototype.propertyIsEnumerable;
37273
- var __defNormalProp$e = (obj, key, value) => key in obj ? __defProp$e(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
37274
- var __spreadValues$e = (a, b) => {
37279
+ var __defProp$f = Object.defineProperty;
37280
+ var __defProps$c = Object.defineProperties;
37281
+ var __getOwnPropDescs$c = Object.getOwnPropertyDescriptors;
37282
+ var __getOwnPropSymbols$g = Object.getOwnPropertySymbols;
37283
+ var __hasOwnProp$g = Object.prototype.hasOwnProperty;
37284
+ var __propIsEnum$g = Object.prototype.propertyIsEnumerable;
37285
+ var __defNormalProp$f = (obj, key, value) => key in obj ? __defProp$f(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
37286
+ var __spreadValues$f = (a, b) => {
37275
37287
  for (var prop in b || (b = {}))
37276
- if (__hasOwnProp$f.call(b, prop))
37277
- __defNormalProp$e(a, prop, b[prop]);
37278
- if (__getOwnPropSymbols$f)
37279
- for (var prop of __getOwnPropSymbols$f(b)) {
37280
- if (__propIsEnum$f.call(b, prop))
37281
- __defNormalProp$e(a, prop, b[prop]);
37288
+ if (__hasOwnProp$g.call(b, prop))
37289
+ __defNormalProp$f(a, prop, b[prop]);
37290
+ if (__getOwnPropSymbols$g)
37291
+ for (var prop of __getOwnPropSymbols$g(b)) {
37292
+ if (__propIsEnum$g.call(b, prop))
37293
+ __defNormalProp$f(a, prop, b[prop]);
37282
37294
  }
37283
37295
  return a;
37284
37296
  };
37285
- var __spreadProps$b = (a, b) => __defProps$b(a, __getOwnPropDescs$b(b));
37286
- var __objRest$7 = (source, exclude) => {
37297
+ var __spreadProps$c = (a, b) => __defProps$c(a, __getOwnPropDescs$c(b));
37298
+ var __objRest$8 = (source, exclude) => {
37287
37299
  var target = {};
37288
37300
  for (var prop in source)
37289
- if (__hasOwnProp$f.call(source, prop) && exclude.indexOf(prop) < 0)
37301
+ if (__hasOwnProp$g.call(source, prop) && exclude.indexOf(prop) < 0)
37290
37302
  target[prop] = source[prop];
37291
- if (source != null && __getOwnPropSymbols$f)
37292
- for (var prop of __getOwnPropSymbols$f(source)) {
37293
- if (exclude.indexOf(prop) < 0 && __propIsEnum$f.call(source, prop))
37303
+ if (source != null && __getOwnPropSymbols$g)
37304
+ for (var prop of __getOwnPropSymbols$g(source)) {
37305
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$g.call(source, prop))
37294
37306
  target[prop] = source[prop];
37295
37307
  }
37296
37308
  return target;
37297
37309
  };
37298
37310
  const useGetShipmentByExternalId = (params) => {
37299
37311
  const { client } = useShipEngine();
37300
- const _a = params, { queryFnParams } = _a, rest = __objRest$7(_a, ["queryFnParams"]);
37301
- return useQuery(__spreadProps$b(__spreadValues$e({}, rest), {
37312
+ const _a = params, { queryFnParams } = _a, rest = __objRest$8(_a, ["queryFnParams"]);
37313
+ return useQuery(__spreadProps$c(__spreadValues$f({}, rest), {
37302
37314
  onError,
37303
37315
  queryFn: () => client.shipments.getByExternalId(queryFnParams.externalId),
37304
37316
  queryKey: ["useGetShipmentByExternalId", queryFnParams],
@@ -37338,6 +37350,47 @@ const useCancelShipment = () => {
37338
37350
  });
37339
37351
  };
37340
37352
 
37353
+ var __defProp$e = Object.defineProperty;
37354
+ var __defProps$b = Object.defineProperties;
37355
+ var __getOwnPropDescs$b = Object.getOwnPropertyDescriptors;
37356
+ var __getOwnPropSymbols$f = Object.getOwnPropertySymbols;
37357
+ var __hasOwnProp$f = Object.prototype.hasOwnProperty;
37358
+ var __propIsEnum$f = Object.prototype.propertyIsEnumerable;
37359
+ var __defNormalProp$e = (obj, key, value) => key in obj ? __defProp$e(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
37360
+ var __spreadValues$e = (a, b) => {
37361
+ for (var prop in b || (b = {}))
37362
+ if (__hasOwnProp$f.call(b, prop))
37363
+ __defNormalProp$e(a, prop, b[prop]);
37364
+ if (__getOwnPropSymbols$f)
37365
+ for (var prop of __getOwnPropSymbols$f(b)) {
37366
+ if (__propIsEnum$f.call(b, prop))
37367
+ __defNormalProp$e(a, prop, b[prop]);
37368
+ }
37369
+ return a;
37370
+ };
37371
+ var __spreadProps$b = (a, b) => __defProps$b(a, __getOwnPropDescs$b(b));
37372
+ var __objRest$7 = (source, exclude) => {
37373
+ var target = {};
37374
+ for (var prop in source)
37375
+ if (__hasOwnProp$f.call(source, prop) && exclude.indexOf(prop) < 0)
37376
+ target[prop] = source[prop];
37377
+ if (source != null && __getOwnPropSymbols$f)
37378
+ for (var prop of __getOwnPropSymbols$f(source)) {
37379
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$f.call(source, prop))
37380
+ target[prop] = source[prop];
37381
+ }
37382
+ return target;
37383
+ };
37384
+ const useDownloadShipments = (params) => {
37385
+ const { client } = useShipEngine();
37386
+ const _a = __spreadValues$e({}, params), { queryFnParams } = _a, rest = __objRest$7(_a, ["queryFnParams"]);
37387
+ return useQuery(__spreadProps$b(__spreadValues$e({}, rest), {
37388
+ onError,
37389
+ queryFn: () => client.shipments.download(queryFnParams),
37390
+ queryKey: ["useDownloadShipments", params]
37391
+ }));
37392
+ };
37393
+
37341
37394
  var __defProp$d = Object.defineProperty;
37342
37395
  var __defProps$a = Object.defineProperties;
37343
37396
  var __getOwnPropDescs$a = Object.getOwnPropertyDescriptors;
@@ -39458,4 +39511,4 @@ const alchemy = {
39458
39511
  createElement
39459
39512
  };
39460
39513
 
39461
- 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, useCreateLabelByRateId, useCreateLabelByShipmentId, useCreateRateCard, useCreateSalesOrderShipment, useCreateSandboxSeller, useCreateSellerApiKey, useCreateShipment, useCreateShippingRule, useCreateWarehouse, useCreateWebhook, useDeactivateOrderSource, useDeleteAccountImage, useDeleteCarrier, useDeleteRateCard, useDeleteSellerApiKey, useDeleteShippingRule, useDeleteWarehouse, useDeleteWebhook, useDownloadLabels, useDownloadRateCard, useEditShippingRule, useFundingSourcesAddFunds, useGetAccountBilling, useGetAccountBillingPlan, useGetAccountImages, useGetAccountSettings, useGetAuctanePayConfig, 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 };
39514
+ 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, useCreateLabelByRateId, useCreateLabelByShipmentId, useCreateRateCard, useCreateSalesOrderShipment, useCreateSandboxSeller, useCreateSellerApiKey, useCreateShipment, useCreateShippingRule, useCreateWarehouse, useCreateWebhook, useDeactivateOrderSource, useDeleteAccountImage, useDeleteCarrier, useDeleteRateCard, useDeleteSellerApiKey, useDeleteShippingRule, useDeleteWarehouse, useDeleteWebhook, useDownloadLabels, useDownloadRateCard, useDownloadShipments, useEditShippingRule, useFundingSourcesAddFunds, useGetAccountBilling, useGetAccountBillingPlan, useGetAccountImages, useGetAccountSettings, useGetAuctanePayConfig, 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 };