@shipengine/alchemy 6.0.43 → 6.0.45

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 +632 -575
  2. package/index.mjs +632 -576
  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
  });
@@ -16255,7 +16255,7 @@ class FundingSourcesAPI {
16255
16255
  * user to update the billing address or payment information associated with the
16256
16256
  * funding source.
16257
16257
  */
16258
- this.update = (billingInfo, creditCardInfo, auctanePayInfo, fundingSourceId) => __async$Z(this, null, function* () {
16258
+ this.update = (billingInfo, creditCardInfo, bankAccountInfo, auctanePayInfo, fundingSourceId) => __async$Z(this, null, function* () {
16259
16259
  const endUserIpAddress = yield getEndUserIpAddress();
16260
16260
  if (!endUserIpAddress) {
16261
16261
  return Promise.reject([new CodedError("Unable to get IP address")]);
@@ -16265,7 +16265,8 @@ class FundingSourcesAPI {
16265
16265
  {
16266
16266
  billingInfo,
16267
16267
  endUserIpAddress,
16268
- paymentMethod: __spreadValues$C({
16268
+ paymentMethod: __spreadValues$D({
16269
+ bankAccountInfo,
16269
16270
  creditCardInfo
16270
16271
  }, auctanePayInfo)
16271
16272
  }
@@ -16280,7 +16281,7 @@ class FundingSourcesAPI {
16280
16281
  if (!endUserIpAddress) {
16281
16282
  return Promise.reject([new CodedError("Unable to get IP address")]);
16282
16283
  }
16283
- return yield this.client.post("/v1/registration/funding_source", __spreadValues$C({
16284
+ return yield this.client.post("/v1/registration/funding_source", __spreadValues$D({
16284
16285
  endUserIpAddress
16285
16286
  }, carrier));
16286
16287
  });
@@ -16449,17 +16450,17 @@ class LabelsAPI {
16449
16450
  }
16450
16451
  }
16451
16452
 
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) => {
16453
+ var __getOwnPropSymbols$M = Object.getOwnPropertySymbols;
16454
+ var __hasOwnProp$M = Object.prototype.hasOwnProperty;
16455
+ var __propIsEnum$M = Object.prototype.propertyIsEnumerable;
16456
+ var __objRest$r = (source, exclude) => {
16456
16457
  var target = {};
16457
16458
  for (var prop in source)
16458
- if (__hasOwnProp$L.call(source, prop) && exclude.indexOf(prop) < 0)
16459
+ if (__hasOwnProp$M.call(source, prop) && exclude.indexOf(prop) < 0)
16459
16460
  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))
16461
+ if (source != null && __getOwnPropSymbols$M)
16462
+ for (var prop of __getOwnPropSymbols$M(source)) {
16463
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$M.call(source, prop))
16463
16464
  target[prop] = source[prop];
16464
16465
  }
16465
16466
  return target;
@@ -16491,7 +16492,7 @@ class OrderSourcesAPI {
16491
16492
  * The `update` method will allow the user to update a connected Order Source
16492
16493
  */
16493
16494
  this.update = (_a) => {
16494
- var _b = _a, { orderSourceId } = _b, rest = __objRest$q(_b, ["orderSourceId"]);
16495
+ var _b = _a, { orderSourceId } = _b, rest = __objRest$r(_b, ["orderSourceId"]);
16495
16496
  return this.client.put(`/v-beta/order_sources/${orderSourceId}`, rest);
16496
16497
  };
16497
16498
  /**
@@ -16580,19 +16581,19 @@ class RateCardsAPI {
16580
16581
  }
16581
16582
  }
16582
16583
 
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) => {
16584
+ var __defProp$C = Object.defineProperty;
16585
+ var __getOwnPropSymbols$L = Object.getOwnPropertySymbols;
16586
+ var __hasOwnProp$L = Object.prototype.hasOwnProperty;
16587
+ var __propIsEnum$L = Object.prototype.propertyIsEnumerable;
16588
+ var __defNormalProp$C = (obj, key, value) => key in obj ? __defProp$C(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
16589
+ var __spreadValues$C = (a, b) => {
16589
16590
  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]);
16591
+ if (__hasOwnProp$L.call(b, prop))
16592
+ __defNormalProp$C(a, prop, b[prop]);
16593
+ if (__getOwnPropSymbols$L)
16594
+ for (var prop of __getOwnPropSymbols$L(b)) {
16595
+ if (__propIsEnum$L.call(b, prop))
16596
+ __defNormalProp$C(a, prop, b[prop]);
16596
16597
  }
16597
16598
  return a;
16598
16599
  };
@@ -16614,7 +16615,7 @@ class RatesAPI {
16614
16615
  * method.
16615
16616
  */
16616
16617
  this.estimate = (params) => {
16617
- return this.client.post("/v1/rates/estimate", __spreadValues$B({}, params));
16618
+ return this.client.post("/v1/rates/estimate", __spreadValues$C({}, params));
16618
16619
  };
16619
16620
  this.client = client;
16620
16621
  }
@@ -16798,19 +16799,19 @@ class SellersAPI {
16798
16799
  }
16799
16800
  }
16800
16801
 
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) => {
16802
+ var __defProp$B = Object.defineProperty;
16803
+ var __getOwnPropSymbols$K = Object.getOwnPropertySymbols;
16804
+ var __hasOwnProp$K = Object.prototype.hasOwnProperty;
16805
+ var __propIsEnum$K = Object.prototype.propertyIsEnumerable;
16806
+ var __defNormalProp$B = (obj, key, value) => key in obj ? __defProp$B(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
16807
+ var __spreadValues$B = (a, b) => {
16807
16808
  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]);
16809
+ if (__hasOwnProp$K.call(b, prop))
16810
+ __defNormalProp$B(a, prop, b[prop]);
16811
+ if (__getOwnPropSymbols$K)
16812
+ for (var prop of __getOwnPropSymbols$K(b)) {
16813
+ if (__propIsEnum$K.call(b, prop))
16814
+ __defNormalProp$B(a, prop, b[prop]);
16814
16815
  }
16815
16816
  return a;
16816
16817
  };
@@ -16822,7 +16823,7 @@ class ServicePointsAPI {
16822
16823
  * Either an address, coordinates, or an address query
16823
16824
  */
16824
16825
  this.list = (options) => {
16825
- return this.client.post("/v1/service_points/list", __spreadValues$A({}, options));
16826
+ return this.client.post("/v1/service_points/list", __spreadValues$B({}, options));
16826
16827
  };
16827
16828
  /**
16828
16829
  * Get a specific service point by its carrier code, country code, and id
@@ -16905,6 +16906,18 @@ class ShipmentsAPI {
16905
16906
  this.cancel = (shipmentId) => {
16906
16907
  return this.client.put(`/v1/shipments/${shipmentId}/cancel`);
16907
16908
  };
16909
+ /**
16910
+ * The `download` method allows for downloading a CSV document of shipments based on the provided parameters.
16911
+ */
16912
+ this.download = (params) => {
16913
+ return this.client.get("/v1/shipments/downloads", {
16914
+ headers: {
16915
+ Accept: "text/csv"
16916
+ },
16917
+ params,
16918
+ responseType: "blob"
16919
+ });
16920
+ };
16908
16921
  this.client = client;
16909
16922
  }
16910
16923
  }
@@ -34281,25 +34294,25 @@ class WebhooksAPI {
34281
34294
  }
34282
34295
  }
34283
34296
 
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) => {
34297
+ var __defProp$A = Object.defineProperty;
34298
+ var __defProps$x = Object.defineProperties;
34299
+ var __getOwnPropDescs$x = Object.getOwnPropertyDescriptors;
34300
+ var __getOwnPropSymbols$J = Object.getOwnPropertySymbols;
34301
+ var __hasOwnProp$J = Object.prototype.hasOwnProperty;
34302
+ var __propIsEnum$J = Object.prototype.propertyIsEnumerable;
34303
+ var __defNormalProp$A = (obj, key, value) => key in obj ? __defProp$A(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
34304
+ var __spreadValues$A = (a, b) => {
34292
34305
  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]);
34306
+ if (__hasOwnProp$J.call(b, prop))
34307
+ __defNormalProp$A(a, prop, b[prop]);
34308
+ if (__getOwnPropSymbols$J)
34309
+ for (var prop of __getOwnPropSymbols$J(b)) {
34310
+ if (__propIsEnum$J.call(b, prop))
34311
+ __defNormalProp$A(a, prop, b[prop]);
34299
34312
  }
34300
34313
  return a;
34301
34314
  };
34302
- var __spreadProps$w = (a, b) => __defProps$w(a, __getOwnPropDescs$w(b));
34315
+ var __spreadProps$x = (a, b) => __defProps$x(a, __getOwnPropDescs$x(b));
34303
34316
  var __async$V = (__this, __arguments, generator) => {
34304
34317
  return new Promise((resolve, reject) => {
34305
34318
  var fulfilled = (value) => {
@@ -34323,7 +34336,7 @@ var __async$V = (__this, __arguments, generator) => {
34323
34336
  const logger$1 = E({
34324
34337
  level: process.env.NODE_ENV === "production" ? "fatal" : "info",
34325
34338
  name: "shipengine-api",
34326
- serializers: __spreadProps$w(__spreadValues$z({}, k), {
34339
+ serializers: __spreadProps$x(__spreadValues$A({}, k), {
34327
34340
  req: (req) => ({
34328
34341
  headers: req.headers,
34329
34342
  method: req.method,
@@ -34348,7 +34361,7 @@ class ShipEngineAPI {
34348
34361
  this.getSandboxToken = getSandboxToken;
34349
34362
  const client = axios.create({
34350
34363
  baseURL,
34351
- headers: __spreadProps$w(__spreadValues$z({}, headers), {
34364
+ headers: __spreadProps$x(__spreadValues$A({}, headers), {
34352
34365
  "Content-Type": "application/json"
34353
34366
  }),
34354
34367
  paramsSerializer: (params) => lib.stringify(decamelizeKeys(params), { arrayFormat: "brackets" }),
@@ -34752,25 +34765,25 @@ const delay = (ms) => new Promise((resolve) => {
34752
34765
 
34753
34766
  const onError = (_errors) => _default();
34754
34767
 
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) => {
34768
+ var __defProp$z = Object.defineProperty;
34769
+ var __defProps$w = Object.defineProperties;
34770
+ var __getOwnPropDescs$w = Object.getOwnPropertyDescriptors;
34771
+ var __getOwnPropSymbols$I = Object.getOwnPropertySymbols;
34772
+ var __hasOwnProp$I = Object.prototype.hasOwnProperty;
34773
+ var __propIsEnum$I = Object.prototype.propertyIsEnumerable;
34774
+ var __defNormalProp$z = (obj, key, value) => key in obj ? __defProp$z(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
34775
+ var __spreadValues$z = (a, b) => {
34763
34776
  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]);
34777
+ if (__hasOwnProp$I.call(b, prop))
34778
+ __defNormalProp$z(a, prop, b[prop]);
34779
+ if (__getOwnPropSymbols$I)
34780
+ for (var prop of __getOwnPropSymbols$I(b)) {
34781
+ if (__propIsEnum$I.call(b, prop))
34782
+ __defNormalProp$z(a, prop, b[prop]);
34770
34783
  }
34771
34784
  return a;
34772
34785
  };
34773
- var __spreadProps$v = (a, b) => __defProps$v(a, __getOwnPropDescs$v(b));
34786
+ var __spreadProps$w = (a, b) => __defProps$w(a, __getOwnPropDescs$w(b));
34774
34787
  const streams = [];
34775
34788
  if (process.env.NODE_ENV === "production") {
34776
34789
  streams.push({
@@ -34779,7 +34792,7 @@ if (process.env.NODE_ENV === "production") {
34779
34792
  }
34780
34793
  const logger = E({
34781
34794
  name: "shipengine",
34782
- serializers: __spreadProps$v(__spreadValues$y({}, k), {
34795
+ serializers: __spreadProps$w(__spreadValues$z({}, k), {
34783
34796
  req: (req) => ({
34784
34797
  headers: req.headers,
34785
34798
  method: req.method,
@@ -35016,25 +35029,25 @@ const useValidateAddresses = () => {
35016
35029
  });
35017
35030
  };
35018
35031
 
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) => {
35032
+ var __defProp$y = Object.defineProperty;
35033
+ var __defProps$v = Object.defineProperties;
35034
+ var __getOwnPropDescs$v = Object.getOwnPropertyDescriptors;
35035
+ var __getOwnPropSymbols$H = Object.getOwnPropertySymbols;
35036
+ var __hasOwnProp$H = Object.prototype.hasOwnProperty;
35037
+ var __propIsEnum$H = Object.prototype.propertyIsEnumerable;
35038
+ var __defNormalProp$y = (obj, key, value) => key in obj ? __defProp$y(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35039
+ var __spreadValues$y = (a, b) => {
35027
35040
  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]);
35041
+ if (__hasOwnProp$H.call(b, prop))
35042
+ __defNormalProp$y(a, prop, b[prop]);
35043
+ if (__getOwnPropSymbols$H)
35044
+ for (var prop of __getOwnPropSymbols$H(b)) {
35045
+ if (__propIsEnum$H.call(b, prop))
35046
+ __defNormalProp$y(a, prop, b[prop]);
35034
35047
  }
35035
35048
  return a;
35036
35049
  };
35037
- var __spreadProps$u = (a, b) => __defProps$u(a, __getOwnPropDescs$u(b));
35050
+ var __spreadProps$v = (a, b) => __defProps$v(a, __getOwnPropDescs$v(b));
35038
35051
  var __async$O = (__this, __arguments, generator) => {
35039
35052
  return new Promise((resolve, reject) => {
35040
35053
  var fulfilled = (value) => {
@@ -35057,7 +35070,7 @@ var __async$O = (__this, __arguments, generator) => {
35057
35070
  };
35058
35071
  const useCreateAuctanePaySession = (params) => {
35059
35072
  const { client } = useShipEngine();
35060
- return useMutation(__spreadProps$u(__spreadValues$x({}, params), {
35073
+ return useMutation(__spreadProps$v(__spreadValues$y({}, params), {
35061
35074
  mutationFn: (request) => __async$O(void 0, null, function* () {
35062
35075
  const result = yield client.auctanePay.createSession(request);
35063
35076
  return result.data;
@@ -35067,29 +35080,29 @@ const useCreateAuctanePaySession = (params) => {
35067
35080
  }));
35068
35081
  };
35069
35082
 
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) => {
35083
+ var __defProp$x = Object.defineProperty;
35084
+ var __defProps$u = Object.defineProperties;
35085
+ var __getOwnPropDescs$u = Object.getOwnPropertyDescriptors;
35086
+ var __getOwnPropSymbols$G = Object.getOwnPropertySymbols;
35087
+ var __hasOwnProp$G = Object.prototype.hasOwnProperty;
35088
+ var __propIsEnum$G = Object.prototype.propertyIsEnumerable;
35089
+ var __defNormalProp$x = (obj, key, value) => key in obj ? __defProp$x(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35090
+ var __spreadValues$x = (a, b) => {
35078
35091
  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]);
35092
+ if (__hasOwnProp$G.call(b, prop))
35093
+ __defNormalProp$x(a, prop, b[prop]);
35094
+ if (__getOwnPropSymbols$G)
35095
+ for (var prop of __getOwnPropSymbols$G(b)) {
35096
+ if (__propIsEnum$G.call(b, prop))
35097
+ __defNormalProp$x(a, prop, b[prop]);
35085
35098
  }
35086
35099
  return a;
35087
35100
  };
35088
- var __spreadProps$t = (a, b) => __defProps$t(a, __getOwnPropDescs$t(b));
35101
+ var __spreadProps$u = (a, b) => __defProps$u(a, __getOwnPropDescs$u(b));
35089
35102
  const useGetAuctanePayConfig = (params) => {
35090
35103
  const { client } = useShipEngine();
35091
- const queryParams = __spreadValues$w({}, params);
35092
- return useQuery(__spreadProps$t(__spreadValues$w({}, queryParams), {
35104
+ const queryParams = __spreadValues$x({}, params);
35105
+ return useQuery(__spreadProps$u(__spreadValues$x({}, queryParams), {
35093
35106
  onError,
35094
35107
  queryFn: () => client.auctanePay.getConfig(),
35095
35108
  queryKey: ["useGetAuctanePayConfig"],
@@ -35261,41 +35274,41 @@ const useGetServicesByCarrier = (carrierId) => {
35261
35274
  });
35262
35275
  };
35263
35276
 
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) => {
35277
+ var __defProp$w = Object.defineProperty;
35278
+ var __defProps$t = Object.defineProperties;
35279
+ var __getOwnPropDescs$t = Object.getOwnPropertyDescriptors;
35280
+ var __getOwnPropSymbols$F = Object.getOwnPropertySymbols;
35281
+ var __hasOwnProp$F = Object.prototype.hasOwnProperty;
35282
+ var __propIsEnum$F = Object.prototype.propertyIsEnumerable;
35283
+ var __defNormalProp$w = (obj, key, value) => key in obj ? __defProp$w(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35284
+ var __spreadValues$w = (a, b) => {
35272
35285
  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]);
35286
+ if (__hasOwnProp$F.call(b, prop))
35287
+ __defNormalProp$w(a, prop, b[prop]);
35288
+ if (__getOwnPropSymbols$F)
35289
+ for (var prop of __getOwnPropSymbols$F(b)) {
35290
+ if (__propIsEnum$F.call(b, prop))
35291
+ __defNormalProp$w(a, prop, b[prop]);
35279
35292
  }
35280
35293
  return a;
35281
35294
  };
35282
- var __spreadProps$s = (a, b) => __defProps$s(a, __getOwnPropDescs$s(b));
35283
- var __objRest$p = (source, exclude) => {
35295
+ var __spreadProps$t = (a, b) => __defProps$t(a, __getOwnPropDescs$t(b));
35296
+ var __objRest$q = (source, exclude) => {
35284
35297
  var target = {};
35285
35298
  for (var prop in source)
35286
- if (__hasOwnProp$E.call(source, prop) && exclude.indexOf(prop) < 0)
35299
+ if (__hasOwnProp$F.call(source, prop) && exclude.indexOf(prop) < 0)
35287
35300
  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))
35301
+ if (source != null && __getOwnPropSymbols$F)
35302
+ for (var prop of __getOwnPropSymbols$F(source)) {
35303
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$F.call(source, prop))
35291
35304
  target[prop] = source[prop];
35292
35305
  }
35293
35306
  return target;
35294
35307
  };
35295
35308
  const useListCarriers = (params) => {
35296
35309
  const { client } = useShipEngine();
35297
- const _a = __spreadValues$v({}, params), { queryFnParams } = _a, rest = __objRest$p(_a, ["queryFnParams"]);
35298
- return useQuery(__spreadProps$s(__spreadValues$v({}, rest), {
35310
+ const _a = __spreadValues$w({}, params), { queryFnParams } = _a, rest = __objRest$q(_a, ["queryFnParams"]);
35311
+ return useQuery(__spreadProps$t(__spreadValues$w({}, rest), {
35299
35312
  onError,
35300
35313
  queryFn: () => client.carriers.list(queryFnParams),
35301
35314
  queryKey: ["useListCarriers", queryFnParams],
@@ -35303,17 +35316,17 @@ const useListCarriers = (params) => {
35303
35316
  }));
35304
35317
  };
35305
35318
 
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) => {
35319
+ var __getOwnPropSymbols$E = Object.getOwnPropertySymbols;
35320
+ var __hasOwnProp$E = Object.prototype.hasOwnProperty;
35321
+ var __propIsEnum$E = Object.prototype.propertyIsEnumerable;
35322
+ var __objRest$p = (source, exclude) => {
35310
35323
  var target = {};
35311
35324
  for (var prop in source)
35312
- if (__hasOwnProp$D.call(source, prop) && exclude.indexOf(prop) < 0)
35325
+ if (__hasOwnProp$E.call(source, prop) && exclude.indexOf(prop) < 0)
35313
35326
  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))
35327
+ if (source != null && __getOwnPropSymbols$E)
35328
+ for (var prop of __getOwnPropSymbols$E(source)) {
35329
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$E.call(source, prop))
35317
35330
  target[prop] = source[prop];
35318
35331
  }
35319
35332
  return target;
@@ -35343,7 +35356,7 @@ const useUpdateAutoFunding = () => {
35343
35356
  const queryClient = useQueryClient();
35344
35357
  return useMutation({
35345
35358
  mutationFn: (_a) => __async$L(void 0, null, function* () {
35346
- var _b = _a, { carrierId } = _b, options = __objRest$o(_b, ["carrierId"]);
35359
+ var _b = _a, { carrierId } = _b, options = __objRest$p(_b, ["carrierId"]);
35347
35360
  const result = yield client.carriers.updateAutoFunding(carrierId, options);
35348
35361
  return result.data;
35349
35362
  }),
@@ -35404,24 +35417,24 @@ const useDeleteCarrier = () => {
35404
35417
  });
35405
35418
  };
35406
35419
 
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) => {
35420
+ var __getOwnPropSymbols$D = Object.getOwnPropertySymbols;
35421
+ var __hasOwnProp$D = Object.prototype.hasOwnProperty;
35422
+ var __propIsEnum$D = Object.prototype.propertyIsEnumerable;
35423
+ var __objRest$o = (source, exclude) => {
35411
35424
  var target = {};
35412
35425
  for (var prop in source)
35413
- if (__hasOwnProp$C.call(source, prop) && exclude.indexOf(prop) < 0)
35426
+ if (__hasOwnProp$D.call(source, prop) && exclude.indexOf(prop) < 0)
35414
35427
  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))
35428
+ if (source != null && __getOwnPropSymbols$D)
35429
+ for (var prop of __getOwnPropSymbols$D(source)) {
35430
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$D.call(source, prop))
35418
35431
  target[prop] = source[prop];
35419
35432
  }
35420
35433
  return target;
35421
35434
  };
35422
35435
  const useGetCarrierConnectionForm = (_params) => {
35423
35436
  const { client } = useShipEngine();
35424
- const _a = _params || {}, { carrierName, enabled = true } = _a, params = __objRest$n(_a, ["carrierName", "enabled"]);
35437
+ const _a = _params || {}, { carrierName, enabled = true } = _a, params = __objRest$o(_a, ["carrierName", "enabled"]);
35425
35438
  return useQuery({
35426
35439
  enabled,
35427
35440
  onError,
@@ -35431,24 +35444,24 @@ const useGetCarrierConnectionForm = (_params) => {
35431
35444
  });
35432
35445
  };
35433
35446
 
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) => {
35447
+ var __getOwnPropSymbols$C = Object.getOwnPropertySymbols;
35448
+ var __hasOwnProp$C = Object.prototype.hasOwnProperty;
35449
+ var __propIsEnum$C = Object.prototype.propertyIsEnumerable;
35450
+ var __objRest$n = (source, exclude) => {
35438
35451
  var target = {};
35439
35452
  for (var prop in source)
35440
- if (__hasOwnProp$B.call(source, prop) && exclude.indexOf(prop) < 0)
35453
+ if (__hasOwnProp$C.call(source, prop) && exclude.indexOf(prop) < 0)
35441
35454
  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))
35455
+ if (source != null && __getOwnPropSymbols$C)
35456
+ for (var prop of __getOwnPropSymbols$C(source)) {
35457
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$C.call(source, prop))
35445
35458
  target[prop] = source[prop];
35446
35459
  }
35447
35460
  return target;
35448
35461
  };
35449
35462
  const useListCarrierConnections = (_params) => {
35450
35463
  const { client } = useShipEngine();
35451
- const _a = _params || {}, { enabled = true } = _a, params = __objRest$m(_a, ["enabled"]);
35464
+ const _a = _params || {}, { enabled = true } = _a, params = __objRest$n(_a, ["enabled"]);
35452
35465
  return useQuery({
35453
35466
  enabled,
35454
35467
  onError,
@@ -35501,33 +35514,33 @@ const useCarrierConnectionsServicesList = (carrierCode) => {
35501
35514
  });
35502
35515
  };
35503
35516
 
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) => {
35517
+ var __defProp$v = Object.defineProperty;
35518
+ var __defProps$s = Object.defineProperties;
35519
+ var __getOwnPropDescs$s = Object.getOwnPropertyDescriptors;
35520
+ var __getOwnPropSymbols$B = Object.getOwnPropertySymbols;
35521
+ var __hasOwnProp$B = Object.prototype.hasOwnProperty;
35522
+ var __propIsEnum$B = Object.prototype.propertyIsEnumerable;
35523
+ var __defNormalProp$v = (obj, key, value) => key in obj ? __defProp$v(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35524
+ var __spreadValues$v = (a, b) => {
35512
35525
  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]);
35526
+ if (__hasOwnProp$B.call(b, prop))
35527
+ __defNormalProp$v(a, prop, b[prop]);
35528
+ if (__getOwnPropSymbols$B)
35529
+ for (var prop of __getOwnPropSymbols$B(b)) {
35530
+ if (__propIsEnum$B.call(b, prop))
35531
+ __defNormalProp$v(a, prop, b[prop]);
35519
35532
  }
35520
35533
  return a;
35521
35534
  };
35522
- var __spreadProps$r = (a, b) => __defProps$r(a, __getOwnPropDescs$r(b));
35523
- var __objRest$l = (source, exclude) => {
35535
+ var __spreadProps$s = (a, b) => __defProps$s(a, __getOwnPropDescs$s(b));
35536
+ var __objRest$m = (source, exclude) => {
35524
35537
  var target = {};
35525
35538
  for (var prop in source)
35526
- if (__hasOwnProp$A.call(source, prop) && exclude.indexOf(prop) < 0)
35539
+ if (__hasOwnProp$B.call(source, prop) && exclude.indexOf(prop) < 0)
35527
35540
  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))
35541
+ if (source != null && __getOwnPropSymbols$B)
35542
+ for (var prop of __getOwnPropSymbols$B(source)) {
35543
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$B.call(source, prop))
35531
35544
  target[prop] = source[prop];
35532
35545
  }
35533
35546
  return target;
@@ -35535,12 +35548,12 @@ var __objRest$l = (source, exclude) => {
35535
35548
  const useGetConnectionsCarrierSettings = (_a) => {
35536
35549
  var _b = _a, {
35537
35550
  queryFnParams
35538
- } = _b, params = __objRest$l(_b, [
35551
+ } = _b, params = __objRest$m(_b, [
35539
35552
  "queryFnParams"
35540
35553
  ]);
35541
35554
  const { client } = useShipEngine();
35542
35555
  const { carrierName, carrierId } = queryFnParams;
35543
- return useQuery(__spreadProps$r(__spreadValues$u({}, params), {
35556
+ return useQuery(__spreadProps$s(__spreadValues$v({}, params), {
35544
35557
  onError,
35545
35558
  queryFn: () => client.connections.getCarrierSettings(carrierName, carrierId),
35546
35559
  queryKey: ["useGetConnectionsCarrierSettings", carrierName, carrierId],
@@ -35548,25 +35561,25 @@ const useGetConnectionsCarrierSettings = (_a) => {
35548
35561
  }));
35549
35562
  };
35550
35563
 
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) => {
35564
+ var __defProp$u = Object.defineProperty;
35565
+ var __defProps$r = Object.defineProperties;
35566
+ var __getOwnPropDescs$r = Object.getOwnPropertyDescriptors;
35567
+ var __getOwnPropSymbols$A = Object.getOwnPropertySymbols;
35568
+ var __hasOwnProp$A = Object.prototype.hasOwnProperty;
35569
+ var __propIsEnum$A = Object.prototype.propertyIsEnumerable;
35570
+ var __defNormalProp$u = (obj, key, value) => key in obj ? __defProp$u(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35571
+ var __spreadValues$u = (a, b) => {
35559
35572
  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]);
35573
+ if (__hasOwnProp$A.call(b, prop))
35574
+ __defNormalProp$u(a, prop, b[prop]);
35575
+ if (__getOwnPropSymbols$A)
35576
+ for (var prop of __getOwnPropSymbols$A(b)) {
35577
+ if (__propIsEnum$A.call(b, prop))
35578
+ __defNormalProp$u(a, prop, b[prop]);
35566
35579
  }
35567
35580
  return a;
35568
35581
  };
35569
- var __spreadProps$q = (a, b) => __defProps$q(a, __getOwnPropDescs$q(b));
35582
+ var __spreadProps$r = (a, b) => __defProps$r(a, __getOwnPropDescs$r(b));
35570
35583
  var __async$I = (__this, __arguments, generator) => {
35571
35584
  return new Promise((resolve, reject) => {
35572
35585
  var fulfilled = (value) => {
@@ -35589,7 +35602,7 @@ var __async$I = (__this, __arguments, generator) => {
35589
35602
  };
35590
35603
  const useUpdateConnectionsCarrierSettings = (params) => {
35591
35604
  const { client } = useShipEngine();
35592
- return useMutation(__spreadProps$q(__spreadValues$t({}, params), {
35605
+ return useMutation(__spreadProps$r(__spreadValues$u({}, params), {
35593
35606
  mutationFn: (_0) => __async$I(void 0, [_0], function* ({
35594
35607
  carrierName,
35595
35608
  carrierId,
@@ -35759,12 +35772,14 @@ const useUpdateFundingSource = () => {
35759
35772
  mutationFn: (_0) => __async$E(void 0, [_0], function* ({
35760
35773
  billingInfo,
35761
35774
  creditCardInfo,
35775
+ bankAccountInfo,
35762
35776
  fundingSourceId,
35763
35777
  auctanePayInfo
35764
35778
  }) {
35765
35779
  const result = yield client.fundingSources.update(
35766
35780
  billingInfo,
35767
35781
  creditCardInfo,
35782
+ bankAccountInfo,
35768
35783
  auctanePayInfo,
35769
35784
  fundingSourceId
35770
35785
  );
@@ -35797,29 +35812,29 @@ const useGetFundingSourceTransactions = (fundingSourceId, params) => {
35797
35812
  });
35798
35813
  };
35799
35814
 
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) => {
35815
+ var __defProp$t = Object.defineProperty;
35816
+ var __defProps$q = Object.defineProperties;
35817
+ var __getOwnPropDescs$q = Object.getOwnPropertyDescriptors;
35818
+ var __getOwnPropSymbols$z = Object.getOwnPropertySymbols;
35819
+ var __hasOwnProp$z = Object.prototype.hasOwnProperty;
35820
+ var __propIsEnum$z = Object.prototype.propertyIsEnumerable;
35821
+ var __defNormalProp$t = (obj, key, value) => key in obj ? __defProp$t(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35822
+ var __spreadValues$t = (a, b) => {
35808
35823
  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]);
35824
+ if (__hasOwnProp$z.call(b, prop))
35825
+ __defNormalProp$t(a, prop, b[prop]);
35826
+ if (__getOwnPropSymbols$z)
35827
+ for (var prop of __getOwnPropSymbols$z(b)) {
35828
+ if (__propIsEnum$z.call(b, prop))
35829
+ __defNormalProp$t(a, prop, b[prop]);
35815
35830
  }
35816
35831
  return a;
35817
35832
  };
35818
- var __spreadProps$p = (a, b) => __defProps$p(a, __getOwnPropDescs$p(b));
35833
+ var __spreadProps$q = (a, b) => __defProps$q(a, __getOwnPropDescs$q(b));
35819
35834
  const useGetInsuranceFundingSourceAcceptedTerms = (params) => {
35820
35835
  const { client } = useShipEngine();
35821
- const queryParams = __spreadValues$s({}, params);
35822
- return useQuery(__spreadProps$p(__spreadValues$s({}, queryParams), {
35836
+ const queryParams = __spreadValues$t({}, params);
35837
+ return useQuery(__spreadProps$q(__spreadValues$t({}, queryParams), {
35823
35838
  onError,
35824
35839
  queryFn: () => client.fundingSources.insuranceAcceptedTerms(),
35825
35840
  queryKey: ["useGetInsuranceFundingSourceAcceptedTerms"],
@@ -35842,17 +35857,17 @@ const useGetInsuranceAccount = (insuranceProvider) => {
35842
35857
  });
35843
35858
  };
35844
35859
 
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) => {
35860
+ var __getOwnPropSymbols$y = Object.getOwnPropertySymbols;
35861
+ var __hasOwnProp$y = Object.prototype.hasOwnProperty;
35862
+ var __propIsEnum$y = Object.prototype.propertyIsEnumerable;
35863
+ var __objRest$l = (source, exclude) => {
35849
35864
  var target = {};
35850
35865
  for (var prop in source)
35851
- if (__hasOwnProp$x.call(source, prop) && exclude.indexOf(prop) < 0)
35866
+ if (__hasOwnProp$y.call(source, prop) && exclude.indexOf(prop) < 0)
35852
35867
  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))
35868
+ if (source != null && __getOwnPropSymbols$y)
35869
+ for (var prop of __getOwnPropSymbols$y(source)) {
35870
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$y.call(source, prop))
35856
35871
  target[prop] = source[prop];
35857
35872
  }
35858
35873
  return target;
@@ -35881,7 +35896,7 @@ const useAddInsuranceFunds = () => {
35881
35896
  const { client } = useShipEngine();
35882
35897
  return useMutation({
35883
35898
  mutationFn: (_a) => __async$D(void 0, null, function* () {
35884
- var _b = _a, { insuranceProvider } = _b, rest = __objRest$k(_b, ["insuranceProvider"]);
35899
+ var _b = _a, { insuranceProvider } = _b, rest = __objRest$l(_b, ["insuranceProvider"]);
35885
35900
  const result = yield client.insurance.addFunds(insuranceProvider, rest);
35886
35901
  return result.data;
35887
35902
  }),
@@ -35890,25 +35905,25 @@ const useAddInsuranceFunds = () => {
35890
35905
  });
35891
35906
  };
35892
35907
 
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) => {
35908
+ var __defProp$s = Object.defineProperty;
35909
+ var __defProps$p = Object.defineProperties;
35910
+ var __getOwnPropDescs$p = Object.getOwnPropertyDescriptors;
35911
+ var __getOwnPropSymbols$x = Object.getOwnPropertySymbols;
35912
+ var __hasOwnProp$x = Object.prototype.hasOwnProperty;
35913
+ var __propIsEnum$x = Object.prototype.propertyIsEnumerable;
35914
+ var __defNormalProp$s = (obj, key, value) => key in obj ? __defProp$s(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35915
+ var __spreadValues$s = (a, b) => {
35901
35916
  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]);
35917
+ if (__hasOwnProp$x.call(b, prop))
35918
+ __defNormalProp$s(a, prop, b[prop]);
35919
+ if (__getOwnPropSymbols$x)
35920
+ for (var prop of __getOwnPropSymbols$x(b)) {
35921
+ if (__propIsEnum$x.call(b, prop))
35922
+ __defNormalProp$s(a, prop, b[prop]);
35908
35923
  }
35909
35924
  return a;
35910
35925
  };
35911
- var __spreadProps$o = (a, b) => __defProps$o(a, __getOwnPropDescs$o(b));
35926
+ var __spreadProps$p = (a, b) => __defProps$p(a, __getOwnPropDescs$p(b));
35912
35927
  var __async$C = (__this, __arguments, generator) => {
35913
35928
  return new Promise((resolve, reject) => {
35914
35929
  var fulfilled = (value) => {
@@ -35931,7 +35946,7 @@ var __async$C = (__this, __arguments, generator) => {
35931
35946
  };
35932
35947
  const useCreateInvoiceAddress = (params) => {
35933
35948
  const { client } = useShipEngine();
35934
- return useMutation(__spreadProps$o(__spreadValues$r({}, params), {
35949
+ return useMutation(__spreadProps$p(__spreadValues$s({}, params), {
35935
35950
  mutationFn: (invoiceAddress) => __async$C(void 0, null, function* () {
35936
35951
  const result = yield client.invoiceAddress.create(invoiceAddress);
35937
35952
  return result.data;
@@ -35941,25 +35956,25 @@ const useCreateInvoiceAddress = (params) => {
35941
35956
  }));
35942
35957
  };
35943
35958
 
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) => {
35959
+ var __defProp$r = Object.defineProperty;
35960
+ var __defProps$o = Object.defineProperties;
35961
+ var __getOwnPropDescs$o = Object.getOwnPropertyDescriptors;
35962
+ var __getOwnPropSymbols$w = Object.getOwnPropertySymbols;
35963
+ var __hasOwnProp$w = Object.prototype.hasOwnProperty;
35964
+ var __propIsEnum$w = Object.prototype.propertyIsEnumerable;
35965
+ var __defNormalProp$r = (obj, key, value) => key in obj ? __defProp$r(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35966
+ var __spreadValues$r = (a, b) => {
35952
35967
  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]);
35968
+ if (__hasOwnProp$w.call(b, prop))
35969
+ __defNormalProp$r(a, prop, b[prop]);
35970
+ if (__getOwnPropSymbols$w)
35971
+ for (var prop of __getOwnPropSymbols$w(b)) {
35972
+ if (__propIsEnum$w.call(b, prop))
35973
+ __defNormalProp$r(a, prop, b[prop]);
35959
35974
  }
35960
35975
  return a;
35961
35976
  };
35962
- var __spreadProps$n = (a, b) => __defProps$n(a, __getOwnPropDescs$n(b));
35977
+ var __spreadProps$o = (a, b) => __defProps$o(a, __getOwnPropDescs$o(b));
35963
35978
  var __async$B = (__this, __arguments, generator) => {
35964
35979
  return new Promise((resolve, reject) => {
35965
35980
  var fulfilled = (value) => {
@@ -35982,7 +35997,7 @@ var __async$B = (__this, __arguments, generator) => {
35982
35997
  };
35983
35998
  const useUpdateInvoiceAddress = (params) => {
35984
35999
  const { client } = useShipEngine();
35985
- return useMutation(__spreadProps$n(__spreadValues$q({}, params), {
36000
+ return useMutation(__spreadProps$o(__spreadValues$r({}, params), {
35986
36001
  mutationFn: (invoiceAddress) => __async$B(void 0, null, function* () {
35987
36002
  const result = yield client.invoiceAddress.update(invoiceAddress);
35988
36003
  return result.data;
@@ -35992,6 +36007,35 @@ const useUpdateInvoiceAddress = (params) => {
35992
36007
  }));
35993
36008
  };
35994
36009
 
36010
+ var __defProp$q = Object.defineProperty;
36011
+ var __defProps$n = Object.defineProperties;
36012
+ var __getOwnPropDescs$n = Object.getOwnPropertyDescriptors;
36013
+ var __getOwnPropSymbols$v = Object.getOwnPropertySymbols;
36014
+ var __hasOwnProp$v = Object.prototype.hasOwnProperty;
36015
+ var __propIsEnum$v = Object.prototype.propertyIsEnumerable;
36016
+ var __defNormalProp$q = (obj, key, value) => key in obj ? __defProp$q(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
36017
+ var __spreadValues$q = (a, b) => {
36018
+ for (var prop in b || (b = {}))
36019
+ if (__hasOwnProp$v.call(b, prop))
36020
+ __defNormalProp$q(a, prop, b[prop]);
36021
+ if (__getOwnPropSymbols$v)
36022
+ for (var prop of __getOwnPropSymbols$v(b)) {
36023
+ if (__propIsEnum$v.call(b, prop))
36024
+ __defNormalProp$q(a, prop, b[prop]);
36025
+ }
36026
+ return a;
36027
+ };
36028
+ var __spreadProps$n = (a, b) => __defProps$n(a, __getOwnPropDescs$n(b));
36029
+ const useGetInvoiceAddress = (params) => {
36030
+ const { client } = useShipEngine();
36031
+ return useQuery(__spreadProps$n(__spreadValues$q({}, params), {
36032
+ onError,
36033
+ queryFn: () => client.invoiceAddress.get(),
36034
+ queryKey: ["useGetInvoiceAddress"],
36035
+ select: (result) => result.data
36036
+ }));
36037
+ };
36038
+
35995
36039
  var __defProp$p = Object.defineProperty;
35996
36040
  var __defProps$m = Object.defineProperties;
35997
36041
  var __getOwnPropDescs$m = Object.getOwnPropertyDescriptors;
@@ -36011,13 +36055,48 @@ var __spreadValues$p = (a, b) => {
36011
36055
  return a;
36012
36056
  };
36013
36057
  var __spreadProps$m = (a, b) => __defProps$m(a, __getOwnPropDescs$m(b));
36014
- const useGetInvoiceAddress = (params) => {
36058
+ var __objRest$k = (source, exclude) => {
36059
+ var target = {};
36060
+ for (var prop in source)
36061
+ if (__hasOwnProp$u.call(source, prop) && exclude.indexOf(prop) < 0)
36062
+ target[prop] = source[prop];
36063
+ if (source != null && __getOwnPropSymbols$u)
36064
+ for (var prop of __getOwnPropSymbols$u(source)) {
36065
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$u.call(source, prop))
36066
+ target[prop] = source[prop];
36067
+ }
36068
+ return target;
36069
+ };
36070
+ var __async$A = (__this, __arguments, generator) => {
36071
+ return new Promise((resolve, reject) => {
36072
+ var fulfilled = (value) => {
36073
+ try {
36074
+ step(generator.next(value));
36075
+ } catch (e) {
36076
+ reject(e);
36077
+ }
36078
+ };
36079
+ var rejected = (value) => {
36080
+ try {
36081
+ step(generator.throw(value));
36082
+ } catch (e) {
36083
+ reject(e);
36084
+ }
36085
+ };
36086
+ var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
36087
+ step((generator = generator.apply(__this, __arguments)).next());
36088
+ });
36089
+ };
36090
+ const useCreateLabelByRateId = (params) => {
36015
36091
  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
36092
+ return useMutation(__spreadProps$m(__spreadValues$p({}, params), {
36093
+ mutationFn: (_a) => __async$A(void 0, null, function* () {
36094
+ var _b = _a, { rateId } = _b, options = __objRest$k(_b, ["rateId"]);
36095
+ const result = yield client.labels.createByRateId(rateId, options);
36096
+ return result.data;
36097
+ }),
36098
+ mutationKey: ["useCreateLabelByRateId"],
36099
+ onError
36021
36100
  }));
36022
36101
  };
36023
36102
 
@@ -36052,7 +36131,7 @@ var __objRest$j = (source, exclude) => {
36052
36131
  }
36053
36132
  return target;
36054
36133
  };
36055
- var __async$A = (__this, __arguments, generator) => {
36134
+ var __async$z = (__this, __arguments, generator) => {
36056
36135
  return new Promise((resolve, reject) => {
36057
36136
  var fulfilled = (value) => {
36058
36137
  try {
@@ -36072,15 +36151,15 @@ var __async$A = (__this, __arguments, generator) => {
36072
36151
  step((generator = generator.apply(__this, __arguments)).next());
36073
36152
  });
36074
36153
  };
36075
- const useCreateLabelByRateId = (params) => {
36154
+ const useCreateLabelByShipmentId = (params) => {
36076
36155
  const { client } = useShipEngine();
36077
36156
  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);
36157
+ mutationFn: (_a) => __async$z(void 0, null, function* () {
36158
+ var _b = _a, { shipmentId } = _b, options = __objRest$j(_b, ["shipmentId"]);
36159
+ const result = yield client.labels.createByShipmentId(shipmentId, options);
36081
36160
  return result.data;
36082
36161
  }),
36083
- mutationKey: ["useCreateLabelByRateId"],
36162
+ mutationKey: ["useCreateLabelByShipmentId"],
36084
36163
  onError
36085
36164
  }));
36086
36165
  };
@@ -36116,7 +36195,7 @@ var __objRest$i = (source, exclude) => {
36116
36195
  }
36117
36196
  return target;
36118
36197
  };
36119
- var __async$z = (__this, __arguments, generator) => {
36198
+ var __async$y = (__this, __arguments, generator) => {
36120
36199
  return new Promise((resolve, reject) => {
36121
36200
  var fulfilled = (value) => {
36122
36201
  try {
@@ -36136,19 +36215,34 @@ var __async$z = (__this, __arguments, generator) => {
36136
36215
  step((generator = generator.apply(__this, __arguments)).next());
36137
36216
  });
36138
36217
  };
36139
- const useCreateLabelByShipmentId = (params) => {
36218
+ const useCreateLabel = (params) => {
36140
36219
  const { client } = useShipEngine();
36141
36220
  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);
36221
+ mutationFn: (_a) => __async$y(void 0, null, function* () {
36222
+ var _b = _a, { rateId } = _b, options = __objRest$i(_b, ["rateId"]);
36223
+ const result = yield client.labels.createByRateId(rateId, options);
36145
36224
  return result.data;
36146
36225
  }),
36147
- mutationKey: ["useCreateLabelByShipmentId"],
36226
+ mutationKey: ["useCreateLabel"],
36148
36227
  onError
36149
36228
  }));
36150
36229
  };
36151
36230
 
36231
+ const useGetLabel = (labelId) => {
36232
+ const { client } = useShipEngine();
36233
+ return useQuery({
36234
+ enabled: labelId !== void 0,
36235
+ onError,
36236
+ queryFn: () => {
36237
+ if (labelId)
36238
+ return client.labels.get(labelId);
36239
+ return Promise.reject(new Error("labelId is require"));
36240
+ },
36241
+ queryKey: ["useGetLabel", labelId],
36242
+ select: (result) => result.data
36243
+ });
36244
+ };
36245
+
36152
36246
  var __defProp$m = Object.defineProperty;
36153
36247
  var __defProps$j = Object.defineProperties;
36154
36248
  var __getOwnPropDescs$j = Object.getOwnPropertyDescriptors;
@@ -36180,7 +36274,18 @@ var __objRest$h = (source, exclude) => {
36180
36274
  }
36181
36275
  return target;
36182
36276
  };
36183
- var __async$y = (__this, __arguments, generator) => {
36277
+ const useListLabels = (params) => {
36278
+ const { client } = useShipEngine();
36279
+ const _a = __spreadValues$m({}, params), { queryFnParams } = _a, rest = __objRest$h(_a, ["queryFnParams"]);
36280
+ return useQuery(__spreadProps$j(__spreadValues$m({}, rest), {
36281
+ onError,
36282
+ queryFn: () => client.labels.list(queryFnParams),
36283
+ queryKey: ["useListLabels", params],
36284
+ select: (result) => result.data
36285
+ }));
36286
+ };
36287
+
36288
+ var __async$x = (__this, __arguments, generator) => {
36184
36289
  return new Promise((resolve, reject) => {
36185
36290
  var fulfilled = (value) => {
36186
36291
  try {
@@ -36200,31 +36305,15 @@ var __async$y = (__this, __arguments, generator) => {
36200
36305
  step((generator = generator.apply(__this, __arguments)).next());
36201
36306
  });
36202
36307
  };
36203
- const useCreateLabel = (params) => {
36308
+ const useVoidLabel = () => {
36204
36309
  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);
36310
+ return useMutation({
36311
+ mutationFn: (labelId) => __async$x(void 0, null, function* () {
36312
+ const result = yield client.labels.void(labelId);
36209
36313
  return result.data;
36210
36314
  }),
36211
- mutationKey: ["useCreateLabel"],
36315
+ mutationKey: ["useVoidLabel"],
36212
36316
  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
36317
  });
36229
36318
  };
36230
36319
 
@@ -36259,80 +36348,6 @@ var __objRest$g = (source, exclude) => {
36259
36348
  }
36260
36349
  return target;
36261
36350
  };
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
36351
  var __async$w = (__this, __arguments, generator) => {
36337
36352
  return new Promise((resolve, reject) => {
36338
36353
  var fulfilled = (value) => {
@@ -36355,8 +36370,8 @@ var __async$w = (__this, __arguments, generator) => {
36355
36370
  };
36356
36371
  const useListLabelsInfinite = (params) => {
36357
36372
  const { client } = useShipEngine();
36358
- const _a = __spreadValues$k({}, params), { queryFnParams } = _a, rest = __objRest$f(_a, ["queryFnParams"]);
36359
- return useInfiniteQuery(__spreadProps$h(__spreadValues$k({}, rest), {
36373
+ const _a = __spreadValues$l({}, params), { queryFnParams } = _a, rest = __objRest$g(_a, ["queryFnParams"]);
36374
+ return useInfiniteQuery(__spreadProps$i(__spreadValues$l({}, rest), {
36360
36375
  getNextPageParam: (lastPage) => {
36361
36376
  if (lastPage.page < lastPage.pages) {
36362
36377
  return lastPage.page + 1;
@@ -36365,7 +36380,7 @@ const useListLabelsInfinite = (params) => {
36365
36380
  },
36366
36381
  onError,
36367
36382
  queryFn: (_0) => __async$w(void 0, [_0], function* ({ pageParam = 1 }) {
36368
- const response = yield client.labels.list(__spreadProps$h(__spreadValues$k({}, queryFnParams), { page: pageParam }));
36383
+ const response = yield client.labels.list(__spreadProps$i(__spreadValues$l({}, queryFnParams), { page: pageParam }));
36369
36384
  return response.data;
36370
36385
  }),
36371
36386
  queryKey: ["useListLabelsInfinite", params],
@@ -36379,69 +36394,69 @@ const useListLabelsInfinite = (params) => {
36379
36394
  }));
36380
36395
  };
36381
36396
 
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) => {
36397
+ var __defProp$k = Object.defineProperty;
36398
+ var __defProps$h = Object.defineProperties;
36399
+ var __getOwnPropDescs$h = Object.getOwnPropertyDescriptors;
36400
+ var __getOwnPropSymbols$p = Object.getOwnPropertySymbols;
36401
+ var __hasOwnProp$p = Object.prototype.hasOwnProperty;
36402
+ var __propIsEnum$p = Object.prototype.propertyIsEnumerable;
36403
+ var __defNormalProp$k = (obj, key, value) => key in obj ? __defProp$k(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
36404
+ var __spreadValues$k = (a, b) => {
36390
36405
  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]);
36406
+ if (__hasOwnProp$p.call(b, prop))
36407
+ __defNormalProp$k(a, prop, b[prop]);
36408
+ if (__getOwnPropSymbols$p)
36409
+ for (var prop of __getOwnPropSymbols$p(b)) {
36410
+ if (__propIsEnum$p.call(b, prop))
36411
+ __defNormalProp$k(a, prop, b[prop]);
36397
36412
  }
36398
36413
  return a;
36399
36414
  };
36400
- var __spreadProps$g = (a, b) => __defProps$g(a, __getOwnPropDescs$g(b));
36401
- var __objRest$e = (source, exclude) => {
36415
+ var __spreadProps$h = (a, b) => __defProps$h(a, __getOwnPropDescs$h(b));
36416
+ var __objRest$f = (source, exclude) => {
36402
36417
  var target = {};
36403
36418
  for (var prop in source)
36404
- if (__hasOwnProp$o.call(source, prop) && exclude.indexOf(prop) < 0)
36419
+ if (__hasOwnProp$p.call(source, prop) && exclude.indexOf(prop) < 0)
36405
36420
  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))
36421
+ if (source != null && __getOwnPropSymbols$p)
36422
+ for (var prop of __getOwnPropSymbols$p(source)) {
36423
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$p.call(source, prop))
36409
36424
  target[prop] = source[prop];
36410
36425
  }
36411
36426
  return target;
36412
36427
  };
36413
36428
  const useDownloadLabels = (params) => {
36414
36429
  const { client } = useShipEngine();
36415
- const _a = __spreadValues$j({}, params), { queryFnParams } = _a, rest = __objRest$e(_a, ["queryFnParams"]);
36416
- return useQuery(__spreadProps$g(__spreadValues$j({}, rest), {
36430
+ const _a = __spreadValues$k({}, params), { queryFnParams } = _a, rest = __objRest$f(_a, ["queryFnParams"]);
36431
+ return useQuery(__spreadProps$h(__spreadValues$k({}, rest), {
36417
36432
  onError,
36418
36433
  queryFn: () => client.labels.download(queryFnParams),
36419
36434
  queryKey: ["useDownloadLabels", params]
36420
36435
  }));
36421
36436
  };
36422
36437
 
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) => {
36438
+ var __defProp$j = Object.defineProperty;
36439
+ var __defProps$g = Object.defineProperties;
36440
+ var __getOwnPropDescs$g = Object.getOwnPropertyDescriptors;
36441
+ var __getOwnPropSymbols$o = Object.getOwnPropertySymbols;
36442
+ var __hasOwnProp$o = Object.prototype.hasOwnProperty;
36443
+ var __propIsEnum$o = Object.prototype.propertyIsEnumerable;
36444
+ var __defNormalProp$j = (obj, key, value) => key in obj ? __defProp$j(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
36445
+ var __spreadValues$j = (a, b) => {
36431
36446
  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]);
36447
+ if (__hasOwnProp$o.call(b, prop))
36448
+ __defNormalProp$j(a, prop, b[prop]);
36449
+ if (__getOwnPropSymbols$o)
36450
+ for (var prop of __getOwnPropSymbols$o(b)) {
36451
+ if (__propIsEnum$o.call(b, prop))
36452
+ __defNormalProp$j(a, prop, b[prop]);
36438
36453
  }
36439
36454
  return a;
36440
36455
  };
36441
- var __spreadProps$f = (a, b) => __defProps$f(a, __getOwnPropDescs$f(b));
36456
+ var __spreadProps$g = (a, b) => __defProps$g(a, __getOwnPropDescs$g(b));
36442
36457
  const useListOrderSources = (params) => {
36443
36458
  const { client } = useShipEngine();
36444
- return useQuery(__spreadProps$f(__spreadValues$i({}, params), {
36459
+ return useQuery(__spreadProps$g(__spreadValues$j({}, params), {
36445
36460
  onError,
36446
36461
  queryFn: () => client.orderSources.list(),
36447
36462
  queryKey: ["useListOrderSources"],
@@ -36879,17 +36894,17 @@ const useListSalesOrders = (params = {}) => {
36879
36894
  });
36880
36895
  };
36881
36896
 
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) => {
36897
+ var __getOwnPropSymbols$n = Object.getOwnPropertySymbols;
36898
+ var __hasOwnProp$n = Object.prototype.hasOwnProperty;
36899
+ var __propIsEnum$n = Object.prototype.propertyIsEnumerable;
36900
+ var __objRest$e = (source, exclude) => {
36886
36901
  var target = {};
36887
36902
  for (var prop in source)
36888
- if (__hasOwnProp$m.call(source, prop) && exclude.indexOf(prop) < 0)
36903
+ if (__hasOwnProp$n.call(source, prop) && exclude.indexOf(prop) < 0)
36889
36904
  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))
36905
+ if (source != null && __getOwnPropSymbols$n)
36906
+ for (var prop of __getOwnPropSymbols$n(source)) {
36907
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$n.call(source, prop))
36893
36908
  target[prop] = source[prop];
36894
36909
  }
36895
36910
  return target;
@@ -36918,7 +36933,7 @@ const useNotifySalesOrderShipped = () => {
36918
36933
  const { client } = useShipEngine();
36919
36934
  return useMutation({
36920
36935
  mutationFn: (_a) => __async$l(void 0, null, function* () {
36921
- var _b = _a, { salesOrderId } = _b, tracking = __objRest$d(_b, ["salesOrderId"]);
36936
+ var _b = _a, { salesOrderId } = _b, tracking = __objRest$e(_b, ["salesOrderId"]);
36922
36937
  const result = yield client.salesOrders.notifyShipped(salesOrderId, tracking);
36923
36938
  return result.data;
36924
36939
  }),
@@ -36927,17 +36942,17 @@ const useNotifySalesOrderShipped = () => {
36927
36942
  });
36928
36943
  };
36929
36944
 
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) => {
36945
+ var __getOwnPropSymbols$m = Object.getOwnPropertySymbols;
36946
+ var __hasOwnProp$m = Object.prototype.hasOwnProperty;
36947
+ var __propIsEnum$m = Object.prototype.propertyIsEnumerable;
36948
+ var __objRest$d = (source, exclude) => {
36934
36949
  var target = {};
36935
36950
  for (var prop in source)
36936
- if (__hasOwnProp$l.call(source, prop) && exclude.indexOf(prop) < 0)
36951
+ if (__hasOwnProp$m.call(source, prop) && exclude.indexOf(prop) < 0)
36937
36952
  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))
36953
+ if (source != null && __getOwnPropSymbols$m)
36954
+ for (var prop of __getOwnPropSymbols$m(source)) {
36955
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$m.call(source, prop))
36941
36956
  target[prop] = source[prop];
36942
36957
  }
36943
36958
  return target;
@@ -36966,7 +36981,7 @@ const useCreateSalesOrderShipment = () => {
36966
36981
  const { client } = useShipEngine();
36967
36982
  return useMutation({
36968
36983
  mutationFn: (_a) => __async$k(void 0, null, function* () {
36969
- var _b = _a, { salesOrderId } = _b, shipment = __objRest$c(_b, ["salesOrderId"]);
36984
+ var _b = _a, { salesOrderId } = _b, shipment = __objRest$d(_b, ["salesOrderId"]);
36970
36985
  const result = yield client.salesOrderShipments.create(salesOrderId, shipment);
36971
36986
  return result.data;
36972
36987
  }),
@@ -37002,17 +37017,17 @@ const useListSalesOrderShipments = (body) => {
37002
37017
  });
37003
37018
  };
37004
37019
 
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) => {
37020
+ var __getOwnPropSymbols$l = Object.getOwnPropertySymbols;
37021
+ var __hasOwnProp$l = Object.prototype.hasOwnProperty;
37022
+ var __propIsEnum$l = Object.prototype.propertyIsEnumerable;
37023
+ var __objRest$c = (source, exclude) => {
37009
37024
  var target = {};
37010
37025
  for (var prop in source)
37011
- if (__hasOwnProp$k.call(source, prop) && exclude.indexOf(prop) < 0)
37026
+ if (__hasOwnProp$l.call(source, prop) && exclude.indexOf(prop) < 0)
37012
37027
  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))
37028
+ if (source != null && __getOwnPropSymbols$l)
37029
+ for (var prop of __getOwnPropSymbols$l(source)) {
37030
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$l.call(source, prop))
37016
37031
  target[prop] = source[prop];
37017
37032
  }
37018
37033
  return target;
@@ -37041,7 +37056,7 @@ const useUpdateSalesOrderShipment = () => {
37041
37056
  const { client } = useShipEngine();
37042
37057
  return useMutation({
37043
37058
  mutationFn: (_a) => __async$j(void 0, null, function* () {
37044
- var _b = _a, { shipmentId } = _b, shipment = __objRest$b(_b, ["shipmentId"]);
37059
+ var _b = _a, { shipmentId } = _b, shipment = __objRest$c(_b, ["shipmentId"]);
37045
37060
  const result = yield client.salesOrderShipments.update(shipmentId, shipment);
37046
37061
  return result.data;
37047
37062
  }),
@@ -37061,25 +37076,25 @@ const useListSalesOrderShipmentsByExternalOrderId = (externalOrderId) => {
37061
37076
  });
37062
37077
  };
37063
37078
 
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) => {
37079
+ var __defProp$i = Object.defineProperty;
37080
+ var __defProps$f = Object.defineProperties;
37081
+ var __getOwnPropDescs$f = Object.getOwnPropertyDescriptors;
37082
+ var __getOwnPropSymbols$k = Object.getOwnPropertySymbols;
37083
+ var __hasOwnProp$k = Object.prototype.hasOwnProperty;
37084
+ var __propIsEnum$k = Object.prototype.propertyIsEnumerable;
37085
+ var __defNormalProp$i = (obj, key, value) => key in obj ? __defProp$i(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
37086
+ var __spreadValues$i = (a, b) => {
37072
37087
  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]);
37088
+ if (__hasOwnProp$k.call(b, prop))
37089
+ __defNormalProp$i(a, prop, b[prop]);
37090
+ if (__getOwnPropSymbols$k)
37091
+ for (var prop of __getOwnPropSymbols$k(b)) {
37092
+ if (__propIsEnum$k.call(b, prop))
37093
+ __defNormalProp$i(a, prop, b[prop]);
37079
37094
  }
37080
37095
  return a;
37081
37096
  };
37082
- var __spreadProps$e = (a, b) => __defProps$e(a, __getOwnPropDescs$e(b));
37097
+ var __spreadProps$f = (a, b) => __defProps$f(a, __getOwnPropDescs$f(b));
37083
37098
  var __async$i = (__this, __arguments, generator) => {
37084
37099
  return new Promise((resolve, reject) => {
37085
37100
  var fulfilled = (value) => {
@@ -37121,7 +37136,7 @@ const useCreateShipment = () => {
37121
37136
  postalCode: "",
37122
37137
  stateProvince: ""
37123
37138
  };
37124
- return (yield client.shipments.create(__spreadProps$e(__spreadValues$h({}, shipment), {
37139
+ return (yield client.shipments.create(__spreadProps$f(__spreadValues$i({}, shipment), {
37125
37140
  shipTo
37126
37141
  }))).data;
37127
37142
  }),
@@ -37130,43 +37145,43 @@ const useCreateShipment = () => {
37130
37145
  });
37131
37146
  };
37132
37147
 
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) => {
37148
+ var __defProp$h = Object.defineProperty;
37149
+ var __defProps$e = Object.defineProperties;
37150
+ var __getOwnPropDescs$e = Object.getOwnPropertyDescriptors;
37151
+ var __getOwnPropSymbols$j = Object.getOwnPropertySymbols;
37152
+ var __hasOwnProp$j = Object.prototype.hasOwnProperty;
37153
+ var __propIsEnum$j = Object.prototype.propertyIsEnumerable;
37154
+ var __defNormalProp$h = (obj, key, value) => key in obj ? __defProp$h(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
37155
+ var __spreadValues$h = (a, b) => {
37141
37156
  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]);
37157
+ if (__hasOwnProp$j.call(b, prop))
37158
+ __defNormalProp$h(a, prop, b[prop]);
37159
+ if (__getOwnPropSymbols$j)
37160
+ for (var prop of __getOwnPropSymbols$j(b)) {
37161
+ if (__propIsEnum$j.call(b, prop))
37162
+ __defNormalProp$h(a, prop, b[prop]);
37148
37163
  }
37149
37164
  return a;
37150
37165
  };
37151
- var __spreadProps$d = (a, b) => __defProps$d(a, __getOwnPropDescs$d(b));
37152
- var __objRest$a = (source, exclude) => {
37166
+ var __spreadProps$e = (a, b) => __defProps$e(a, __getOwnPropDescs$e(b));
37167
+ var __objRest$b = (source, exclude) => {
37153
37168
  var target = {};
37154
37169
  for (var prop in source)
37155
- if (__hasOwnProp$i.call(source, prop) && exclude.indexOf(prop) < 0)
37170
+ if (__hasOwnProp$j.call(source, prop) && exclude.indexOf(prop) < 0)
37156
37171
  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))
37172
+ if (source != null && __getOwnPropSymbols$j)
37173
+ for (var prop of __getOwnPropSymbols$j(source)) {
37174
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$j.call(source, prop))
37160
37175
  target[prop] = source[prop];
37161
37176
  }
37162
37177
  return target;
37163
37178
  };
37164
37179
  const useGetShipmentRates = (params) => {
37165
37180
  const { client } = useShipEngine();
37166
- const _a = params, { queryFnParams } = _a, rest = __objRest$a(_a, ["queryFnParams"]);
37181
+ const _a = params, { queryFnParams } = _a, rest = __objRest$b(_a, ["queryFnParams"]);
37167
37182
  const shipmentId = queryFnParams == null ? void 0 : queryFnParams.shipmentId;
37168
37183
  const createdAtStart = queryFnParams == null ? void 0 : queryFnParams.createdAtStart;
37169
- return useQuery(__spreadProps$d(__spreadValues$g({
37184
+ return useQuery(__spreadProps$e(__spreadValues$h({
37170
37185
  enabled: shipmentId !== void 0
37171
37186
  }, rest), {
37172
37187
  onError,
@@ -37181,33 +37196,33 @@ const useGetShipmentRates = (params) => {
37181
37196
  }));
37182
37197
  };
37183
37198
 
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) => {
37199
+ var __defProp$g = Object.defineProperty;
37200
+ var __defProps$d = Object.defineProperties;
37201
+ var __getOwnPropDescs$d = Object.getOwnPropertyDescriptors;
37202
+ var __getOwnPropSymbols$i = Object.getOwnPropertySymbols;
37203
+ var __hasOwnProp$i = Object.prototype.hasOwnProperty;
37204
+ var __propIsEnum$i = Object.prototype.propertyIsEnumerable;
37205
+ var __defNormalProp$g = (obj, key, value) => key in obj ? __defProp$g(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
37206
+ var __spreadValues$g = (a, b) => {
37192
37207
  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]);
37208
+ if (__hasOwnProp$i.call(b, prop))
37209
+ __defNormalProp$g(a, prop, b[prop]);
37210
+ if (__getOwnPropSymbols$i)
37211
+ for (var prop of __getOwnPropSymbols$i(b)) {
37212
+ if (__propIsEnum$i.call(b, prop))
37213
+ __defNormalProp$g(a, prop, b[prop]);
37199
37214
  }
37200
37215
  return a;
37201
37216
  };
37202
- var __spreadProps$c = (a, b) => __defProps$c(a, __getOwnPropDescs$c(b));
37203
- var __objRest$9 = (source, exclude) => {
37217
+ var __spreadProps$d = (a, b) => __defProps$d(a, __getOwnPropDescs$d(b));
37218
+ var __objRest$a = (source, exclude) => {
37204
37219
  var target = {};
37205
37220
  for (var prop in source)
37206
- if (__hasOwnProp$h.call(source, prop) && exclude.indexOf(prop) < 0)
37221
+ if (__hasOwnProp$i.call(source, prop) && exclude.indexOf(prop) < 0)
37207
37222
  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))
37223
+ if (source != null && __getOwnPropSymbols$i)
37224
+ for (var prop of __getOwnPropSymbols$i(source)) {
37225
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$i.call(source, prop))
37211
37226
  target[prop] = source[prop];
37212
37227
  }
37213
37228
  return target;
@@ -37218,12 +37233,12 @@ const useGetShipment = (params) => {
37218
37233
  const shipmentId = typeof params === "string" ? params : (_a = params == null ? void 0 : params.queryFnParams) == null ? void 0 : _a.shipmentId;
37219
37234
  const getQueryProps = () => {
37220
37235
  if (typeof params !== "string") {
37221
- const _a2 = params, rest = __objRest$9(_a2, ["queryFnParams"]);
37236
+ const _a2 = params, rest = __objRest$a(_a2, ["queryFnParams"]);
37222
37237
  return rest;
37223
37238
  }
37224
37239
  return {};
37225
37240
  };
37226
- return useQuery(__spreadProps$c(__spreadValues$f({}, getQueryProps()), {
37241
+ return useQuery(__spreadProps$d(__spreadValues$g({}, getQueryProps()), {
37227
37242
  enabled: shipmentId !== void 0,
37228
37243
  onError,
37229
37244
  queryFn: () => {
@@ -37237,23 +37252,23 @@ const useGetShipment = (params) => {
37237
37252
  }));
37238
37253
  };
37239
37254
 
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) => {
37255
+ var __getOwnPropSymbols$h = Object.getOwnPropertySymbols;
37256
+ var __hasOwnProp$h = Object.prototype.hasOwnProperty;
37257
+ var __propIsEnum$h = Object.prototype.propertyIsEnumerable;
37258
+ var __objRest$9 = (source, exclude) => {
37244
37259
  var target = {};
37245
37260
  for (var prop in source)
37246
- if (__hasOwnProp$g.call(source, prop) && exclude.indexOf(prop) < 0)
37261
+ if (__hasOwnProp$h.call(source, prop) && exclude.indexOf(prop) < 0)
37247
37262
  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))
37263
+ if (source != null && __getOwnPropSymbols$h)
37264
+ for (var prop of __getOwnPropSymbols$h(source)) {
37265
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$h.call(source, prop))
37251
37266
  target[prop] = source[prop];
37252
37267
  }
37253
37268
  return target;
37254
37269
  };
37255
37270
  const useListShipments = (_params) => {
37256
- const _a = _params || {}, { enabled = true } = _a, params = __objRest$8(_a, ["enabled"]);
37271
+ const _a = _params || {}, { enabled = true } = _a, params = __objRest$9(_a, ["enabled"]);
37257
37272
  const { client } = useShipEngine();
37258
37273
  return useQuery({
37259
37274
  enabled,
@@ -37264,41 +37279,41 @@ const useListShipments = (_params) => {
37264
37279
  });
37265
37280
  };
37266
37281
 
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) => {
37282
+ var __defProp$f = Object.defineProperty;
37283
+ var __defProps$c = Object.defineProperties;
37284
+ var __getOwnPropDescs$c = Object.getOwnPropertyDescriptors;
37285
+ var __getOwnPropSymbols$g = Object.getOwnPropertySymbols;
37286
+ var __hasOwnProp$g = Object.prototype.hasOwnProperty;
37287
+ var __propIsEnum$g = Object.prototype.propertyIsEnumerable;
37288
+ var __defNormalProp$f = (obj, key, value) => key in obj ? __defProp$f(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
37289
+ var __spreadValues$f = (a, b) => {
37275
37290
  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]);
37291
+ if (__hasOwnProp$g.call(b, prop))
37292
+ __defNormalProp$f(a, prop, b[prop]);
37293
+ if (__getOwnPropSymbols$g)
37294
+ for (var prop of __getOwnPropSymbols$g(b)) {
37295
+ if (__propIsEnum$g.call(b, prop))
37296
+ __defNormalProp$f(a, prop, b[prop]);
37282
37297
  }
37283
37298
  return a;
37284
37299
  };
37285
- var __spreadProps$b = (a, b) => __defProps$b(a, __getOwnPropDescs$b(b));
37286
- var __objRest$7 = (source, exclude) => {
37300
+ var __spreadProps$c = (a, b) => __defProps$c(a, __getOwnPropDescs$c(b));
37301
+ var __objRest$8 = (source, exclude) => {
37287
37302
  var target = {};
37288
37303
  for (var prop in source)
37289
- if (__hasOwnProp$f.call(source, prop) && exclude.indexOf(prop) < 0)
37304
+ if (__hasOwnProp$g.call(source, prop) && exclude.indexOf(prop) < 0)
37290
37305
  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))
37306
+ if (source != null && __getOwnPropSymbols$g)
37307
+ for (var prop of __getOwnPropSymbols$g(source)) {
37308
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$g.call(source, prop))
37294
37309
  target[prop] = source[prop];
37295
37310
  }
37296
37311
  return target;
37297
37312
  };
37298
37313
  const useGetShipmentByExternalId = (params) => {
37299
37314
  const { client } = useShipEngine();
37300
- const _a = params, { queryFnParams } = _a, rest = __objRest$7(_a, ["queryFnParams"]);
37301
- return useQuery(__spreadProps$b(__spreadValues$e({}, rest), {
37315
+ const _a = params, { queryFnParams } = _a, rest = __objRest$8(_a, ["queryFnParams"]);
37316
+ return useQuery(__spreadProps$c(__spreadValues$f({}, rest), {
37302
37317
  onError,
37303
37318
  queryFn: () => client.shipments.getByExternalId(queryFnParams.externalId),
37304
37319
  queryKey: ["useGetShipmentByExternalId", queryFnParams],
@@ -37338,6 +37353,47 @@ const useCancelShipment = () => {
37338
37353
  });
37339
37354
  };
37340
37355
 
37356
+ var __defProp$e = Object.defineProperty;
37357
+ var __defProps$b = Object.defineProperties;
37358
+ var __getOwnPropDescs$b = Object.getOwnPropertyDescriptors;
37359
+ var __getOwnPropSymbols$f = Object.getOwnPropertySymbols;
37360
+ var __hasOwnProp$f = Object.prototype.hasOwnProperty;
37361
+ var __propIsEnum$f = Object.prototype.propertyIsEnumerable;
37362
+ var __defNormalProp$e = (obj, key, value) => key in obj ? __defProp$e(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
37363
+ var __spreadValues$e = (a, b) => {
37364
+ for (var prop in b || (b = {}))
37365
+ if (__hasOwnProp$f.call(b, prop))
37366
+ __defNormalProp$e(a, prop, b[prop]);
37367
+ if (__getOwnPropSymbols$f)
37368
+ for (var prop of __getOwnPropSymbols$f(b)) {
37369
+ if (__propIsEnum$f.call(b, prop))
37370
+ __defNormalProp$e(a, prop, b[prop]);
37371
+ }
37372
+ return a;
37373
+ };
37374
+ var __spreadProps$b = (a, b) => __defProps$b(a, __getOwnPropDescs$b(b));
37375
+ var __objRest$7 = (source, exclude) => {
37376
+ var target = {};
37377
+ for (var prop in source)
37378
+ if (__hasOwnProp$f.call(source, prop) && exclude.indexOf(prop) < 0)
37379
+ target[prop] = source[prop];
37380
+ if (source != null && __getOwnPropSymbols$f)
37381
+ for (var prop of __getOwnPropSymbols$f(source)) {
37382
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$f.call(source, prop))
37383
+ target[prop] = source[prop];
37384
+ }
37385
+ return target;
37386
+ };
37387
+ const useDownloadShipments = (params) => {
37388
+ const { client } = useShipEngine();
37389
+ const _a = __spreadValues$e({}, params), { queryFnParams } = _a, rest = __objRest$7(_a, ["queryFnParams"]);
37390
+ return useQuery(__spreadProps$b(__spreadValues$e({}, rest), {
37391
+ onError,
37392
+ queryFn: () => client.shipments.download(queryFnParams),
37393
+ queryKey: ["useDownloadShipments", params]
37394
+ }));
37395
+ };
37396
+
37341
37397
  var __defProp$d = Object.defineProperty;
37342
37398
  var __defProps$a = Object.defineProperties;
37343
37399
  var __getOwnPropDescs$a = Object.getOwnPropertyDescriptors;
@@ -39458,4 +39514,4 @@ const alchemy = {
39458
39514
  createElement
39459
39515
  };
39460
39516
 
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 };
39517
+ 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 };