@shipengine/alchemy 5.4.22 → 5.4.24

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 +291 -251
  2. package/index.mjs +291 -251
  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$u = Object.getOwnPropertySymbols;
10794
- var __hasOwnProp$u = Object.prototype.hasOwnProperty;
10795
- var __propIsEnum$u = Object.prototype.propertyIsEnumerable;
10796
- var __objRest$h = (source, exclude) => {
10793
+ var __getOwnPropSymbols$v = Object.getOwnPropertySymbols;
10794
+ var __hasOwnProp$v = Object.prototype.hasOwnProperty;
10795
+ var __propIsEnum$v = Object.prototype.propertyIsEnumerable;
10796
+ var __objRest$i = (source, exclude) => {
10797
10797
  var target = {};
10798
10798
  for (var prop in source)
10799
- if (__hasOwnProp$u.call(source, prop) && exclude.indexOf(prop) < 0)
10799
+ if (__hasOwnProp$v.call(source, prop) && exclude.indexOf(prop) < 0)
10800
10800
  target[prop] = source[prop];
10801
- if (source != null && __getOwnPropSymbols$u)
10802
- for (var prop of __getOwnPropSymbols$u(source)) {
10803
- if (exclude.indexOf(prop) < 0 && __propIsEnum$u.call(source, prop))
10801
+ if (source != null && __getOwnPropSymbols$v)
10802
+ for (var prop of __getOwnPropSymbols$v(source)) {
10803
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$v.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$h(_b, ["message"]);
10817
+ var _b = _a, { message } = _b, options = __objRest$i(_b, ["message"]);
10818
10818
  return new CodedError(message, options);
10819
10819
  }
10820
10820
  }
@@ -10922,17 +10922,17 @@ const types = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
10922
10922
  RateCardStatus
10923
10923
  }, Symbol.toStringTag, { value: 'Module' }));
10924
10924
 
10925
- var __getOwnPropSymbols$t = Object.getOwnPropertySymbols;
10926
- var __hasOwnProp$t = Object.prototype.hasOwnProperty;
10927
- var __propIsEnum$t = Object.prototype.propertyIsEnumerable;
10928
- var __objRest$g = (source, exclude) => {
10925
+ var __getOwnPropSymbols$u = Object.getOwnPropertySymbols;
10926
+ var __hasOwnProp$u = Object.prototype.hasOwnProperty;
10927
+ var __propIsEnum$u = Object.prototype.propertyIsEnumerable;
10928
+ var __objRest$h = (source, exclude) => {
10929
10929
  var target = {};
10930
10930
  for (var prop in source)
10931
- if (__hasOwnProp$t.call(source, prop) && exclude.indexOf(prop) < 0)
10931
+ if (__hasOwnProp$u.call(source, prop) && exclude.indexOf(prop) < 0)
10932
10932
  target[prop] = source[prop];
10933
- if (source != null && __getOwnPropSymbols$t)
10934
- for (var prop of __getOwnPropSymbols$t(source)) {
10935
- if (exclude.indexOf(prop) < 0 && __propIsEnum$t.call(source, prop))
10933
+ if (source != null && __getOwnPropSymbols$u)
10934
+ for (var prop of __getOwnPropSymbols$u(source)) {
10935
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$u.call(source, prop))
10936
10936
  target[prop] = source[prop];
10937
10937
  }
10938
10938
  return target;
@@ -10964,7 +10964,7 @@ class AccountSettingsAPI {
10964
10964
  * The `updateImage` method updates specific image data for a given image id.
10965
10965
  */
10966
10966
  this.updateImage = (_a) => {
10967
- var _b = _a, { labelImageId } = _b, data = __objRest$g(_b, ["labelImageId"]);
10967
+ var _b = _a, { labelImageId } = _b, data = __objRest$h(_b, ["labelImageId"]);
10968
10968
  return this.client.put(`/v1/account/settings/images/${labelImageId}`, data);
10969
10969
  };
10970
10970
  /**
@@ -13706,33 +13706,33 @@ const getEndUserIpAddress = () => __async$O(void 0, null, function* () {
13706
13706
  }
13707
13707
  });
13708
13708
 
13709
- var __defProp$h = Object.defineProperty;
13710
- var __defProps$c = Object.defineProperties;
13711
- var __getOwnPropDescs$c = Object.getOwnPropertyDescriptors;
13712
- var __getOwnPropSymbols$s = Object.getOwnPropertySymbols;
13713
- var __hasOwnProp$s = Object.prototype.hasOwnProperty;
13714
- var __propIsEnum$s = Object.prototype.propertyIsEnumerable;
13715
- var __defNormalProp$h = (obj, key, value) => key in obj ? __defProp$h(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
13716
- var __spreadValues$h = (a, b) => {
13709
+ var __defProp$i = Object.defineProperty;
13710
+ var __defProps$d = Object.defineProperties;
13711
+ var __getOwnPropDescs$d = Object.getOwnPropertyDescriptors;
13712
+ var __getOwnPropSymbols$t = Object.getOwnPropertySymbols;
13713
+ var __hasOwnProp$t = Object.prototype.hasOwnProperty;
13714
+ var __propIsEnum$t = Object.prototype.propertyIsEnumerable;
13715
+ var __defNormalProp$i = (obj, key, value) => key in obj ? __defProp$i(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
13716
+ var __spreadValues$i = (a, b) => {
13717
13717
  for (var prop in b || (b = {}))
13718
- if (__hasOwnProp$s.call(b, prop))
13719
- __defNormalProp$h(a, prop, b[prop]);
13720
- if (__getOwnPropSymbols$s)
13721
- for (var prop of __getOwnPropSymbols$s(b)) {
13722
- if (__propIsEnum$s.call(b, prop))
13723
- __defNormalProp$h(a, prop, b[prop]);
13718
+ if (__hasOwnProp$t.call(b, prop))
13719
+ __defNormalProp$i(a, prop, b[prop]);
13720
+ if (__getOwnPropSymbols$t)
13721
+ for (var prop of __getOwnPropSymbols$t(b)) {
13722
+ if (__propIsEnum$t.call(b, prop))
13723
+ __defNormalProp$i(a, prop, b[prop]);
13724
13724
  }
13725
13725
  return a;
13726
13726
  };
13727
- var __spreadProps$c = (a, b) => __defProps$c(a, __getOwnPropDescs$c(b));
13728
- var __objRest$f = (source, exclude) => {
13727
+ var __spreadProps$d = (a, b) => __defProps$d(a, __getOwnPropDescs$d(b));
13728
+ var __objRest$g = (source, exclude) => {
13729
13729
  var target = {};
13730
13730
  for (var prop in source)
13731
- if (__hasOwnProp$s.call(source, prop) && exclude.indexOf(prop) < 0)
13731
+ if (__hasOwnProp$t.call(source, prop) && exclude.indexOf(prop) < 0)
13732
13732
  target[prop] = source[prop];
13733
- if (source != null && __getOwnPropSymbols$s)
13734
- for (var prop of __getOwnPropSymbols$s(source)) {
13735
- if (exclude.indexOf(prop) < 0 && __propIsEnum$s.call(source, prop))
13733
+ if (source != null && __getOwnPropSymbols$t)
13734
+ for (var prop of __getOwnPropSymbols$t(source)) {
13735
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$t.call(source, prop))
13736
13736
  target[prop] = source[prop];
13737
13737
  }
13738
13738
  return target;
@@ -13776,11 +13776,11 @@ class CarriersAPI {
13776
13776
  * The `connect` method connects a carrier account to a user's ShipEngine account.
13777
13777
  */
13778
13778
  this.connect = (_a) => __async$N(this, null, function* () {
13779
- var _b = _a, { carrierCode } = _b, connection = __objRest$f(_b, ["carrierCode"]);
13779
+ var _b = _a, { carrierCode } = _b, connection = __objRest$g(_b, ["carrierCode"]);
13780
13780
  const endUserIpAddress = yield getEndUserIpAddress();
13781
13781
  if (!endUserIpAddress)
13782
13782
  return Promise.reject([new CodedError("Unable to get IP address")]);
13783
- return yield this.client.post(`/v1/registration/${carrierCode}`, __spreadProps$c(__spreadValues$h({}, connection), {
13783
+ return yield this.client.post(`/v1/registration/${carrierCode}`, __spreadProps$d(__spreadValues$i({}, connection), {
13784
13784
  endUserIpAddress
13785
13785
  }));
13786
13786
  });
@@ -16163,19 +16163,19 @@ class CustomPackagesAPI {
16163
16163
  }
16164
16164
  }
16165
16165
 
16166
- var __defProp$g = Object.defineProperty;
16167
- var __getOwnPropSymbols$r = Object.getOwnPropertySymbols;
16168
- var __hasOwnProp$r = Object.prototype.hasOwnProperty;
16169
- var __propIsEnum$r = Object.prototype.propertyIsEnumerable;
16170
- var __defNormalProp$g = (obj, key, value) => key in obj ? __defProp$g(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
16171
- var __spreadValues$g = (a, b) => {
16166
+ var __defProp$h = Object.defineProperty;
16167
+ var __getOwnPropSymbols$s = Object.getOwnPropertySymbols;
16168
+ var __hasOwnProp$s = Object.prototype.hasOwnProperty;
16169
+ var __propIsEnum$s = Object.prototype.propertyIsEnumerable;
16170
+ var __defNormalProp$h = (obj, key, value) => key in obj ? __defProp$h(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
16171
+ var __spreadValues$h = (a, b) => {
16172
16172
  for (var prop in b || (b = {}))
16173
- if (__hasOwnProp$r.call(b, prop))
16174
- __defNormalProp$g(a, prop, b[prop]);
16175
- if (__getOwnPropSymbols$r)
16176
- for (var prop of __getOwnPropSymbols$r(b)) {
16177
- if (__propIsEnum$r.call(b, prop))
16178
- __defNormalProp$g(a, prop, b[prop]);
16173
+ if (__hasOwnProp$s.call(b, prop))
16174
+ __defNormalProp$h(a, prop, b[prop]);
16175
+ if (__getOwnPropSymbols$s)
16176
+ for (var prop of __getOwnPropSymbols$s(b)) {
16177
+ if (__propIsEnum$s.call(b, prop))
16178
+ __defNormalProp$h(a, prop, b[prop]);
16179
16179
  }
16180
16180
  return a;
16181
16181
  };
@@ -16223,7 +16223,7 @@ class FundingSourcesAPI {
16223
16223
  if (!endUserIpAddress) {
16224
16224
  return Promise.reject([new CodedError("Unable to get IP address")]);
16225
16225
  }
16226
- return yield this.client.post("/v1/funding_sources", __spreadValues$g({
16226
+ return yield this.client.post("/v1/funding_sources", __spreadValues$h({
16227
16227
  endUserIpAddress
16228
16228
  }, createFundingSource));
16229
16229
  });
@@ -16255,7 +16255,7 @@ class FundingSourcesAPI {
16255
16255
  if (!endUserIpAddress) {
16256
16256
  return Promise.reject([new CodedError("Unable to get IP address")]);
16257
16257
  }
16258
- return yield this.client.post("/v1/registration/funding_source", __spreadValues$g({
16258
+ return yield this.client.post("/v1/registration/funding_source", __spreadValues$h({
16259
16259
  endUserIpAddress
16260
16260
  }, carrier));
16261
16261
  });
@@ -16460,19 +16460,19 @@ class RateCardsAPI {
16460
16460
  }
16461
16461
  }
16462
16462
 
16463
- var __defProp$f = Object.defineProperty;
16464
- var __getOwnPropSymbols$q = Object.getOwnPropertySymbols;
16465
- var __hasOwnProp$q = Object.prototype.hasOwnProperty;
16466
- var __propIsEnum$q = Object.prototype.propertyIsEnumerable;
16467
- var __defNormalProp$f = (obj, key, value) => key in obj ? __defProp$f(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
16468
- var __spreadValues$f = (a, b) => {
16463
+ var __defProp$g = Object.defineProperty;
16464
+ var __getOwnPropSymbols$r = Object.getOwnPropertySymbols;
16465
+ var __hasOwnProp$r = Object.prototype.hasOwnProperty;
16466
+ var __propIsEnum$r = Object.prototype.propertyIsEnumerable;
16467
+ var __defNormalProp$g = (obj, key, value) => key in obj ? __defProp$g(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
16468
+ var __spreadValues$g = (a, b) => {
16469
16469
  for (var prop in b || (b = {}))
16470
- if (__hasOwnProp$q.call(b, prop))
16471
- __defNormalProp$f(a, prop, b[prop]);
16472
- if (__getOwnPropSymbols$q)
16473
- for (var prop of __getOwnPropSymbols$q(b)) {
16474
- if (__propIsEnum$q.call(b, prop))
16475
- __defNormalProp$f(a, prop, b[prop]);
16470
+ if (__hasOwnProp$r.call(b, prop))
16471
+ __defNormalProp$g(a, prop, b[prop]);
16472
+ if (__getOwnPropSymbols$r)
16473
+ for (var prop of __getOwnPropSymbols$r(b)) {
16474
+ if (__propIsEnum$r.call(b, prop))
16475
+ __defNormalProp$g(a, prop, b[prop]);
16476
16476
  }
16477
16477
  return a;
16478
16478
  };
@@ -16494,7 +16494,7 @@ class RatesAPI {
16494
16494
  * method.
16495
16495
  */
16496
16496
  this.estimate = (params) => {
16497
- return this.client.post("/v1/rates/estimate", __spreadValues$f({}, params));
16497
+ return this.client.post("/v1/rates/estimate", __spreadValues$g({}, params));
16498
16498
  };
16499
16499
  this.client = client;
16500
16500
  }
@@ -16592,19 +16592,19 @@ class SellersAPI {
16592
16592
  }
16593
16593
  }
16594
16594
 
16595
- var __defProp$e = Object.defineProperty;
16596
- var __getOwnPropSymbols$p = Object.getOwnPropertySymbols;
16597
- var __hasOwnProp$p = Object.prototype.hasOwnProperty;
16598
- var __propIsEnum$p = Object.prototype.propertyIsEnumerable;
16599
- var __defNormalProp$e = (obj, key, value) => key in obj ? __defProp$e(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
16600
- var __spreadValues$e = (a, b) => {
16595
+ var __defProp$f = Object.defineProperty;
16596
+ var __getOwnPropSymbols$q = Object.getOwnPropertySymbols;
16597
+ var __hasOwnProp$q = Object.prototype.hasOwnProperty;
16598
+ var __propIsEnum$q = Object.prototype.propertyIsEnumerable;
16599
+ var __defNormalProp$f = (obj, key, value) => key in obj ? __defProp$f(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
16600
+ var __spreadValues$f = (a, b) => {
16601
16601
  for (var prop in b || (b = {}))
16602
- if (__hasOwnProp$p.call(b, prop))
16603
- __defNormalProp$e(a, prop, b[prop]);
16604
- if (__getOwnPropSymbols$p)
16605
- for (var prop of __getOwnPropSymbols$p(b)) {
16606
- if (__propIsEnum$p.call(b, prop))
16607
- __defNormalProp$e(a, prop, b[prop]);
16602
+ if (__hasOwnProp$q.call(b, prop))
16603
+ __defNormalProp$f(a, prop, b[prop]);
16604
+ if (__getOwnPropSymbols$q)
16605
+ for (var prop of __getOwnPropSymbols$q(b)) {
16606
+ if (__propIsEnum$q.call(b, prop))
16607
+ __defNormalProp$f(a, prop, b[prop]);
16608
16608
  }
16609
16609
  return a;
16610
16610
  };
@@ -16616,7 +16616,7 @@ class ServicePointsAPI {
16616
16616
  * Either an address, coordinates, or an address query
16617
16617
  */
16618
16618
  this.list = (options) => {
16619
- return this.client.post("/v1/service_points/list", __spreadValues$e({}, options));
16619
+ return this.client.post("/v1/service_points/list", __spreadValues$f({}, options));
16620
16620
  };
16621
16621
  /**
16622
16622
  * Get a specific service point by its carrier code, country code, and id
@@ -34049,25 +34049,25 @@ class WebhooksAPI {
34049
34049
  }
34050
34050
  }
34051
34051
 
34052
- var __defProp$d = Object.defineProperty;
34053
- var __defProps$b = Object.defineProperties;
34054
- var __getOwnPropDescs$b = Object.getOwnPropertyDescriptors;
34055
- var __getOwnPropSymbols$o = Object.getOwnPropertySymbols;
34056
- var __hasOwnProp$o = Object.prototype.hasOwnProperty;
34057
- var __propIsEnum$o = Object.prototype.propertyIsEnumerable;
34058
- var __defNormalProp$d = (obj, key, value) => key in obj ? __defProp$d(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
34059
- var __spreadValues$d = (a, b) => {
34052
+ var __defProp$e = Object.defineProperty;
34053
+ var __defProps$c = Object.defineProperties;
34054
+ var __getOwnPropDescs$c = Object.getOwnPropertyDescriptors;
34055
+ var __getOwnPropSymbols$p = Object.getOwnPropertySymbols;
34056
+ var __hasOwnProp$p = Object.prototype.hasOwnProperty;
34057
+ var __propIsEnum$p = Object.prototype.propertyIsEnumerable;
34058
+ var __defNormalProp$e = (obj, key, value) => key in obj ? __defProp$e(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
34059
+ var __spreadValues$e = (a, b) => {
34060
34060
  for (var prop in b || (b = {}))
34061
- if (__hasOwnProp$o.call(b, prop))
34062
- __defNormalProp$d(a, prop, b[prop]);
34063
- if (__getOwnPropSymbols$o)
34064
- for (var prop of __getOwnPropSymbols$o(b)) {
34065
- if (__propIsEnum$o.call(b, prop))
34066
- __defNormalProp$d(a, prop, b[prop]);
34061
+ if (__hasOwnProp$p.call(b, prop))
34062
+ __defNormalProp$e(a, prop, b[prop]);
34063
+ if (__getOwnPropSymbols$p)
34064
+ for (var prop of __getOwnPropSymbols$p(b)) {
34065
+ if (__propIsEnum$p.call(b, prop))
34066
+ __defNormalProp$e(a, prop, b[prop]);
34067
34067
  }
34068
34068
  return a;
34069
34069
  };
34070
- var __spreadProps$b = (a, b) => __defProps$b(a, __getOwnPropDescs$b(b));
34070
+ var __spreadProps$c = (a, b) => __defProps$c(a, __getOwnPropDescs$c(b));
34071
34071
  var __async$J = (__this, __arguments, generator) => {
34072
34072
  return new Promise((resolve, reject) => {
34073
34073
  var fulfilled = (value) => {
@@ -34091,7 +34091,7 @@ var __async$J = (__this, __arguments, generator) => {
34091
34091
  const logger$1 = E({
34092
34092
  level: process.env.NODE_ENV === "production" ? "fatal" : "info",
34093
34093
  name: "shipengine-api",
34094
- serializers: __spreadProps$b(__spreadValues$d({}, k), {
34094
+ serializers: __spreadProps$c(__spreadValues$e({}, k), {
34095
34095
  req: (req) => ({
34096
34096
  headers: req.headers,
34097
34097
  method: req.method,
@@ -34115,7 +34115,7 @@ class ShipEngineAPI {
34115
34115
  constructor(token, { baseURL, headers, getToken, onApiError }) {
34116
34116
  const client = axios.create({
34117
34117
  baseURL,
34118
- headers: __spreadProps$b(__spreadValues$d({}, headers), {
34118
+ headers: __spreadProps$c(__spreadValues$e({}, headers), {
34119
34119
  "Content-Type": "application/json"
34120
34120
  }),
34121
34121
  paramsSerializer: (params) => lib.stringify(humpsExports.decamelizeKeys(params), { arrayFormat: "brackets" }),
@@ -34444,25 +34444,25 @@ const delay = (ms) => new Promise((resolve) => {
34444
34444
 
34445
34445
  const onError = (_errors) => _default();
34446
34446
 
34447
- var __defProp$c = Object.defineProperty;
34448
- var __defProps$a = Object.defineProperties;
34449
- var __getOwnPropDescs$a = Object.getOwnPropertyDescriptors;
34450
- var __getOwnPropSymbols$n = Object.getOwnPropertySymbols;
34451
- var __hasOwnProp$n = Object.prototype.hasOwnProperty;
34452
- var __propIsEnum$n = Object.prototype.propertyIsEnumerable;
34453
- var __defNormalProp$c = (obj, key, value) => key in obj ? __defProp$c(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
34454
- var __spreadValues$c = (a, b) => {
34447
+ var __defProp$d = Object.defineProperty;
34448
+ var __defProps$b = Object.defineProperties;
34449
+ var __getOwnPropDescs$b = Object.getOwnPropertyDescriptors;
34450
+ var __getOwnPropSymbols$o = Object.getOwnPropertySymbols;
34451
+ var __hasOwnProp$o = Object.prototype.hasOwnProperty;
34452
+ var __propIsEnum$o = Object.prototype.propertyIsEnumerable;
34453
+ var __defNormalProp$d = (obj, key, value) => key in obj ? __defProp$d(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
34454
+ var __spreadValues$d = (a, b) => {
34455
34455
  for (var prop in b || (b = {}))
34456
- if (__hasOwnProp$n.call(b, prop))
34457
- __defNormalProp$c(a, prop, b[prop]);
34458
- if (__getOwnPropSymbols$n)
34459
- for (var prop of __getOwnPropSymbols$n(b)) {
34460
- if (__propIsEnum$n.call(b, prop))
34461
- __defNormalProp$c(a, prop, b[prop]);
34456
+ if (__hasOwnProp$o.call(b, prop))
34457
+ __defNormalProp$d(a, prop, b[prop]);
34458
+ if (__getOwnPropSymbols$o)
34459
+ for (var prop of __getOwnPropSymbols$o(b)) {
34460
+ if (__propIsEnum$o.call(b, prop))
34461
+ __defNormalProp$d(a, prop, b[prop]);
34462
34462
  }
34463
34463
  return a;
34464
34464
  };
34465
- var __spreadProps$a = (a, b) => __defProps$a(a, __getOwnPropDescs$a(b));
34465
+ var __spreadProps$b = (a, b) => __defProps$b(a, __getOwnPropDescs$b(b));
34466
34466
  const streams = [];
34467
34467
  if (process.env.NODE_ENV === "production") {
34468
34468
  streams.push({
@@ -34471,7 +34471,7 @@ if (process.env.NODE_ENV === "production") {
34471
34471
  }
34472
34472
  const logger = E({
34473
34473
  name: "shipengine",
34474
- serializers: __spreadProps$a(__spreadValues$c({}, k), {
34474
+ serializers: __spreadProps$b(__spreadValues$d({}, k), {
34475
34475
  req: (req) => ({
34476
34476
  headers: req.headers,
34477
34477
  method: req.method,
@@ -34882,17 +34882,17 @@ const useListCarriers = () => {
34882
34882
  });
34883
34883
  };
34884
34884
 
34885
- var __getOwnPropSymbols$m = Object.getOwnPropertySymbols;
34886
- var __hasOwnProp$m = Object.prototype.hasOwnProperty;
34887
- var __propIsEnum$m = Object.prototype.propertyIsEnumerable;
34888
- var __objRest$e = (source, exclude) => {
34885
+ var __getOwnPropSymbols$n = Object.getOwnPropertySymbols;
34886
+ var __hasOwnProp$n = Object.prototype.hasOwnProperty;
34887
+ var __propIsEnum$n = Object.prototype.propertyIsEnumerable;
34888
+ var __objRest$f = (source, exclude) => {
34889
34889
  var target = {};
34890
34890
  for (var prop in source)
34891
- if (__hasOwnProp$m.call(source, prop) && exclude.indexOf(prop) < 0)
34891
+ if (__hasOwnProp$n.call(source, prop) && exclude.indexOf(prop) < 0)
34892
34892
  target[prop] = source[prop];
34893
- if (source != null && __getOwnPropSymbols$m)
34894
- for (var prop of __getOwnPropSymbols$m(source)) {
34895
- if (exclude.indexOf(prop) < 0 && __propIsEnum$m.call(source, prop))
34893
+ if (source != null && __getOwnPropSymbols$n)
34894
+ for (var prop of __getOwnPropSymbols$n(source)) {
34895
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$n.call(source, prop))
34896
34896
  target[prop] = source[prop];
34897
34897
  }
34898
34898
  return target;
@@ -34922,7 +34922,7 @@ const useUpdateAutoFunding = () => {
34922
34922
  const queryClient = useQueryClient();
34923
34923
  return useMutation({
34924
34924
  mutationFn: (_a) => __async$A(void 0, null, function* () {
34925
- var _b = _a, { carrierId } = _b, options = __objRest$e(_b, ["carrierId"]);
34925
+ var _b = _a, { carrierId } = _b, options = __objRest$f(_b, ["carrierId"]);
34926
34926
  const result = yield client.carriers.updateAutoFunding(carrierId, options);
34927
34927
  return result.data;
34928
34928
  }),
@@ -34983,24 +34983,24 @@ const useDeleteCarrier = () => {
34983
34983
  });
34984
34984
  };
34985
34985
 
34986
- var __getOwnPropSymbols$l = Object.getOwnPropertySymbols;
34987
- var __hasOwnProp$l = Object.prototype.hasOwnProperty;
34988
- var __propIsEnum$l = Object.prototype.propertyIsEnumerable;
34989
- var __objRest$d = (source, exclude) => {
34986
+ var __getOwnPropSymbols$m = Object.getOwnPropertySymbols;
34987
+ var __hasOwnProp$m = Object.prototype.hasOwnProperty;
34988
+ var __propIsEnum$m = Object.prototype.propertyIsEnumerable;
34989
+ var __objRest$e = (source, exclude) => {
34990
34990
  var target = {};
34991
34991
  for (var prop in source)
34992
- if (__hasOwnProp$l.call(source, prop) && exclude.indexOf(prop) < 0)
34992
+ if (__hasOwnProp$m.call(source, prop) && exclude.indexOf(prop) < 0)
34993
34993
  target[prop] = source[prop];
34994
- if (source != null && __getOwnPropSymbols$l)
34995
- for (var prop of __getOwnPropSymbols$l(source)) {
34996
- if (exclude.indexOf(prop) < 0 && __propIsEnum$l.call(source, prop))
34994
+ if (source != null && __getOwnPropSymbols$m)
34995
+ for (var prop of __getOwnPropSymbols$m(source)) {
34996
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$m.call(source, prop))
34997
34997
  target[prop] = source[prop];
34998
34998
  }
34999
34999
  return target;
35000
35000
  };
35001
35001
  const useGetCarrierConnectionForm = (_params) => {
35002
35002
  const { client } = useShipEngine();
35003
- const _a = _params || {}, { carrierName, enabled = true } = _a, params = __objRest$d(_a, ["carrierName", "enabled"]);
35003
+ const _a = _params || {}, { carrierName, enabled = true } = _a, params = __objRest$e(_a, ["carrierName", "enabled"]);
35004
35004
  return useQuery({
35005
35005
  enabled,
35006
35006
  onError,
@@ -35010,24 +35010,24 @@ const useGetCarrierConnectionForm = (_params) => {
35010
35010
  });
35011
35011
  };
35012
35012
 
35013
- var __getOwnPropSymbols$k = Object.getOwnPropertySymbols;
35014
- var __hasOwnProp$k = Object.prototype.hasOwnProperty;
35015
- var __propIsEnum$k = Object.prototype.propertyIsEnumerable;
35016
- var __objRest$c = (source, exclude) => {
35013
+ var __getOwnPropSymbols$l = Object.getOwnPropertySymbols;
35014
+ var __hasOwnProp$l = Object.prototype.hasOwnProperty;
35015
+ var __propIsEnum$l = Object.prototype.propertyIsEnumerable;
35016
+ var __objRest$d = (source, exclude) => {
35017
35017
  var target = {};
35018
35018
  for (var prop in source)
35019
- if (__hasOwnProp$k.call(source, prop) && exclude.indexOf(prop) < 0)
35019
+ if (__hasOwnProp$l.call(source, prop) && exclude.indexOf(prop) < 0)
35020
35020
  target[prop] = source[prop];
35021
- if (source != null && __getOwnPropSymbols$k)
35022
- for (var prop of __getOwnPropSymbols$k(source)) {
35023
- if (exclude.indexOf(prop) < 0 && __propIsEnum$k.call(source, prop))
35021
+ if (source != null && __getOwnPropSymbols$l)
35022
+ for (var prop of __getOwnPropSymbols$l(source)) {
35023
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$l.call(source, prop))
35024
35024
  target[prop] = source[prop];
35025
35025
  }
35026
35026
  return target;
35027
35027
  };
35028
35028
  const useListCarrierConnections = (_params) => {
35029
35029
  const { client } = useShipEngine();
35030
- const _a = _params || {}, { enabled = true } = _a, params = __objRest$c(_a, ["enabled"]);
35030
+ const _a = _params || {}, { enabled = true } = _a, params = __objRest$d(_a, ["enabled"]);
35031
35031
  return useQuery({
35032
35032
  enabled,
35033
35033
  onError,
@@ -35080,33 +35080,33 @@ const useCarrierConnectionsServicesList = (carrierCode) => {
35080
35080
  });
35081
35081
  };
35082
35082
 
35083
- var __defProp$b = Object.defineProperty;
35084
- var __defProps$9 = Object.defineProperties;
35085
- var __getOwnPropDescs$9 = Object.getOwnPropertyDescriptors;
35086
- var __getOwnPropSymbols$j = Object.getOwnPropertySymbols;
35087
- var __hasOwnProp$j = Object.prototype.hasOwnProperty;
35088
- var __propIsEnum$j = Object.prototype.propertyIsEnumerable;
35089
- var __defNormalProp$b = (obj, key, value) => key in obj ? __defProp$b(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35090
- var __spreadValues$b = (a, b) => {
35083
+ var __defProp$c = Object.defineProperty;
35084
+ var __defProps$a = Object.defineProperties;
35085
+ var __getOwnPropDescs$a = Object.getOwnPropertyDescriptors;
35086
+ var __getOwnPropSymbols$k = Object.getOwnPropertySymbols;
35087
+ var __hasOwnProp$k = Object.prototype.hasOwnProperty;
35088
+ var __propIsEnum$k = Object.prototype.propertyIsEnumerable;
35089
+ var __defNormalProp$c = (obj, key, value) => key in obj ? __defProp$c(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35090
+ var __spreadValues$c = (a, b) => {
35091
35091
  for (var prop in b || (b = {}))
35092
- if (__hasOwnProp$j.call(b, prop))
35093
- __defNormalProp$b(a, prop, b[prop]);
35094
- if (__getOwnPropSymbols$j)
35095
- for (var prop of __getOwnPropSymbols$j(b)) {
35096
- if (__propIsEnum$j.call(b, prop))
35097
- __defNormalProp$b(a, prop, b[prop]);
35092
+ if (__hasOwnProp$k.call(b, prop))
35093
+ __defNormalProp$c(a, prop, b[prop]);
35094
+ if (__getOwnPropSymbols$k)
35095
+ for (var prop of __getOwnPropSymbols$k(b)) {
35096
+ if (__propIsEnum$k.call(b, prop))
35097
+ __defNormalProp$c(a, prop, b[prop]);
35098
35098
  }
35099
35099
  return a;
35100
35100
  };
35101
- var __spreadProps$9 = (a, b) => __defProps$9(a, __getOwnPropDescs$9(b));
35102
- var __objRest$b = (source, exclude) => {
35101
+ var __spreadProps$a = (a, b) => __defProps$a(a, __getOwnPropDescs$a(b));
35102
+ var __objRest$c = (source, exclude) => {
35103
35103
  var target = {};
35104
35104
  for (var prop in source)
35105
- if (__hasOwnProp$j.call(source, prop) && exclude.indexOf(prop) < 0)
35105
+ if (__hasOwnProp$k.call(source, prop) && exclude.indexOf(prop) < 0)
35106
35106
  target[prop] = source[prop];
35107
- if (source != null && __getOwnPropSymbols$j)
35108
- for (var prop of __getOwnPropSymbols$j(source)) {
35109
- if (exclude.indexOf(prop) < 0 && __propIsEnum$j.call(source, prop))
35107
+ if (source != null && __getOwnPropSymbols$k)
35108
+ for (var prop of __getOwnPropSymbols$k(source)) {
35109
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$k.call(source, prop))
35110
35110
  target[prop] = source[prop];
35111
35111
  }
35112
35112
  return target;
@@ -35114,12 +35114,12 @@ var __objRest$b = (source, exclude) => {
35114
35114
  const useGetConnectionsCarrierSettings = (_a) => {
35115
35115
  var _b = _a, {
35116
35116
  queryFnParams
35117
- } = _b, params = __objRest$b(_b, [
35117
+ } = _b, params = __objRest$c(_b, [
35118
35118
  "queryFnParams"
35119
35119
  ]);
35120
35120
  const { client } = useShipEngine();
35121
35121
  const { carrierName, carrierCode } = queryFnParams;
35122
- return useQuery(__spreadProps$9(__spreadValues$b({}, params), {
35122
+ return useQuery(__spreadProps$a(__spreadValues$c({}, params), {
35123
35123
  onError,
35124
35124
  queryFn: () => client.connections.getCarrierSettings(carrierName, carrierCode),
35125
35125
  queryKey: ["useGetConnectionsCarrierSettings", carrierName, carrierCode],
@@ -35127,25 +35127,25 @@ const useGetConnectionsCarrierSettings = (_a) => {
35127
35127
  }));
35128
35128
  };
35129
35129
 
35130
- var __defProp$a = Object.defineProperty;
35131
- var __defProps$8 = Object.defineProperties;
35132
- var __getOwnPropDescs$8 = Object.getOwnPropertyDescriptors;
35133
- var __getOwnPropSymbols$i = Object.getOwnPropertySymbols;
35134
- var __hasOwnProp$i = Object.prototype.hasOwnProperty;
35135
- var __propIsEnum$i = Object.prototype.propertyIsEnumerable;
35136
- var __defNormalProp$a = (obj, key, value) => key in obj ? __defProp$a(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35137
- var __spreadValues$a = (a, b) => {
35130
+ var __defProp$b = Object.defineProperty;
35131
+ var __defProps$9 = Object.defineProperties;
35132
+ var __getOwnPropDescs$9 = Object.getOwnPropertyDescriptors;
35133
+ var __getOwnPropSymbols$j = Object.getOwnPropertySymbols;
35134
+ var __hasOwnProp$j = Object.prototype.hasOwnProperty;
35135
+ var __propIsEnum$j = Object.prototype.propertyIsEnumerable;
35136
+ var __defNormalProp$b = (obj, key, value) => key in obj ? __defProp$b(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35137
+ var __spreadValues$b = (a, b) => {
35138
35138
  for (var prop in b || (b = {}))
35139
- if (__hasOwnProp$i.call(b, prop))
35140
- __defNormalProp$a(a, prop, b[prop]);
35141
- if (__getOwnPropSymbols$i)
35142
- for (var prop of __getOwnPropSymbols$i(b)) {
35143
- if (__propIsEnum$i.call(b, prop))
35144
- __defNormalProp$a(a, prop, b[prop]);
35139
+ if (__hasOwnProp$j.call(b, prop))
35140
+ __defNormalProp$b(a, prop, b[prop]);
35141
+ if (__getOwnPropSymbols$j)
35142
+ for (var prop of __getOwnPropSymbols$j(b)) {
35143
+ if (__propIsEnum$j.call(b, prop))
35144
+ __defNormalProp$b(a, prop, b[prop]);
35145
35145
  }
35146
35146
  return a;
35147
35147
  };
35148
- var __spreadProps$8 = (a, b) => __defProps$8(a, __getOwnPropDescs$8(b));
35148
+ var __spreadProps$9 = (a, b) => __defProps$9(a, __getOwnPropDescs$9(b));
35149
35149
  var __async$x = (__this, __arguments, generator) => {
35150
35150
  return new Promise((resolve, reject) => {
35151
35151
  var fulfilled = (value) => {
@@ -35168,7 +35168,7 @@ var __async$x = (__this, __arguments, generator) => {
35168
35168
  };
35169
35169
  const useUpdateConnectionsCarrierSettings = (params) => {
35170
35170
  const { client } = useShipEngine();
35171
- return useMutation(__spreadProps$8(__spreadValues$a({}, params), {
35171
+ return useMutation(__spreadProps$9(__spreadValues$b({}, params), {
35172
35172
  mutationFn: (_0) => __async$x(void 0, [_0], function* ({
35173
35173
  carrierName,
35174
35174
  carrierCode,
@@ -35399,17 +35399,17 @@ const useGetInsuranceAccount = (insuranceProvider) => {
35399
35399
  });
35400
35400
  };
35401
35401
 
35402
- var __getOwnPropSymbols$h = Object.getOwnPropertySymbols;
35403
- var __hasOwnProp$h = Object.prototype.hasOwnProperty;
35404
- var __propIsEnum$h = Object.prototype.propertyIsEnumerable;
35405
- var __objRest$a = (source, exclude) => {
35402
+ var __getOwnPropSymbols$i = Object.getOwnPropertySymbols;
35403
+ var __hasOwnProp$i = Object.prototype.hasOwnProperty;
35404
+ var __propIsEnum$i = Object.prototype.propertyIsEnumerable;
35405
+ var __objRest$b = (source, exclude) => {
35406
35406
  var target = {};
35407
35407
  for (var prop in source)
35408
- if (__hasOwnProp$h.call(source, prop) && exclude.indexOf(prop) < 0)
35408
+ if (__hasOwnProp$i.call(source, prop) && exclude.indexOf(prop) < 0)
35409
35409
  target[prop] = source[prop];
35410
- if (source != null && __getOwnPropSymbols$h)
35411
- for (var prop of __getOwnPropSymbols$h(source)) {
35412
- if (exclude.indexOf(prop) < 0 && __propIsEnum$h.call(source, prop))
35410
+ if (source != null && __getOwnPropSymbols$i)
35411
+ for (var prop of __getOwnPropSymbols$i(source)) {
35412
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$i.call(source, prop))
35413
35413
  target[prop] = source[prop];
35414
35414
  }
35415
35415
  return target;
@@ -35438,7 +35438,7 @@ const useAddInsuranceFunds = () => {
35438
35438
  const { client } = useShipEngine();
35439
35439
  return useMutation({
35440
35440
  mutationFn: (_a) => __async$s(void 0, null, function* () {
35441
- var _b = _a, { insuranceProvider } = _b, rest = __objRest$a(_b, ["insuranceProvider"]);
35441
+ var _b = _a, { insuranceProvider } = _b, rest = __objRest$b(_b, ["insuranceProvider"]);
35442
35442
  const result = yield client.insurance.addFunds(insuranceProvider, rest);
35443
35443
  return result.data;
35444
35444
  }),
@@ -35447,17 +35447,17 @@ const useAddInsuranceFunds = () => {
35447
35447
  });
35448
35448
  };
35449
35449
 
35450
- var __getOwnPropSymbols$g = Object.getOwnPropertySymbols;
35451
- var __hasOwnProp$g = Object.prototype.hasOwnProperty;
35452
- var __propIsEnum$g = Object.prototype.propertyIsEnumerable;
35453
- var __objRest$9 = (source, exclude) => {
35450
+ var __getOwnPropSymbols$h = Object.getOwnPropertySymbols;
35451
+ var __hasOwnProp$h = Object.prototype.hasOwnProperty;
35452
+ var __propIsEnum$h = Object.prototype.propertyIsEnumerable;
35453
+ var __objRest$a = (source, exclude) => {
35454
35454
  var target = {};
35455
35455
  for (var prop in source)
35456
- if (__hasOwnProp$g.call(source, prop) && exclude.indexOf(prop) < 0)
35456
+ if (__hasOwnProp$h.call(source, prop) && exclude.indexOf(prop) < 0)
35457
35457
  target[prop] = source[prop];
35458
- if (source != null && __getOwnPropSymbols$g)
35459
- for (var prop of __getOwnPropSymbols$g(source)) {
35460
- if (exclude.indexOf(prop) < 0 && __propIsEnum$g.call(source, prop))
35458
+ if (source != null && __getOwnPropSymbols$h)
35459
+ for (var prop of __getOwnPropSymbols$h(source)) {
35460
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$h.call(source, prop))
35461
35461
  target[prop] = source[prop];
35462
35462
  }
35463
35463
  return target;
@@ -35486,7 +35486,7 @@ const useCreateLabel = () => {
35486
35486
  const { client } = useShipEngine();
35487
35487
  return useMutation({
35488
35488
  mutationFn: (_a) => __async$r(void 0, null, function* () {
35489
- var _b = _a, { rateId } = _b, options = __objRest$9(_b, ["rateId"]);
35489
+ var _b = _a, { rateId } = _b, options = __objRest$a(_b, ["rateId"]);
35490
35490
  const result = yield client.labels.createByRateId(rateId, options);
35491
35491
  return result.data;
35492
35492
  }),
@@ -35510,24 +35510,24 @@ const useGetLabel = (labelId) => {
35510
35510
  });
35511
35511
  };
35512
35512
 
35513
- var __getOwnPropSymbols$f = Object.getOwnPropertySymbols;
35514
- var __hasOwnProp$f = Object.prototype.hasOwnProperty;
35515
- var __propIsEnum$f = Object.prototype.propertyIsEnumerable;
35516
- var __objRest$8 = (source, exclude) => {
35513
+ var __getOwnPropSymbols$g = Object.getOwnPropertySymbols;
35514
+ var __hasOwnProp$g = Object.prototype.hasOwnProperty;
35515
+ var __propIsEnum$g = Object.prototype.propertyIsEnumerable;
35516
+ var __objRest$9 = (source, exclude) => {
35517
35517
  var target = {};
35518
35518
  for (var prop in source)
35519
- if (__hasOwnProp$f.call(source, prop) && exclude.indexOf(prop) < 0)
35519
+ if (__hasOwnProp$g.call(source, prop) && exclude.indexOf(prop) < 0)
35520
35520
  target[prop] = source[prop];
35521
- if (source != null && __getOwnPropSymbols$f)
35522
- for (var prop of __getOwnPropSymbols$f(source)) {
35523
- if (exclude.indexOf(prop) < 0 && __propIsEnum$f.call(source, prop))
35521
+ if (source != null && __getOwnPropSymbols$g)
35522
+ for (var prop of __getOwnPropSymbols$g(source)) {
35523
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$g.call(source, prop))
35524
35524
  target[prop] = source[prop];
35525
35525
  }
35526
35526
  return target;
35527
35527
  };
35528
35528
  const useListLabels = (_params) => {
35529
35529
  const { client } = useShipEngine();
35530
- const _a = _params || {}, { enabled = true } = _a, params = __objRest$8(_a, ["enabled"]);
35530
+ const _a = _params || {}, { enabled = true } = _a, params = __objRest$9(_a, ["enabled"]);
35531
35531
  return useQuery({
35532
35532
  enabled,
35533
35533
  onError,
@@ -35948,17 +35948,17 @@ const useListSalesOrders = (params = {}) => {
35948
35948
  });
35949
35949
  };
35950
35950
 
35951
- var __getOwnPropSymbols$e = Object.getOwnPropertySymbols;
35952
- var __hasOwnProp$e = Object.prototype.hasOwnProperty;
35953
- var __propIsEnum$e = Object.prototype.propertyIsEnumerable;
35954
- var __objRest$7 = (source, exclude) => {
35951
+ var __getOwnPropSymbols$f = Object.getOwnPropertySymbols;
35952
+ var __hasOwnProp$f = Object.prototype.hasOwnProperty;
35953
+ var __propIsEnum$f = Object.prototype.propertyIsEnumerable;
35954
+ var __objRest$8 = (source, exclude) => {
35955
35955
  var target = {};
35956
35956
  for (var prop in source)
35957
- if (__hasOwnProp$e.call(source, prop) && exclude.indexOf(prop) < 0)
35957
+ if (__hasOwnProp$f.call(source, prop) && exclude.indexOf(prop) < 0)
35958
35958
  target[prop] = source[prop];
35959
- if (source != null && __getOwnPropSymbols$e)
35960
- for (var prop of __getOwnPropSymbols$e(source)) {
35961
- if (exclude.indexOf(prop) < 0 && __propIsEnum$e.call(source, prop))
35959
+ if (source != null && __getOwnPropSymbols$f)
35960
+ for (var prop of __getOwnPropSymbols$f(source)) {
35961
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$f.call(source, prop))
35962
35962
  target[prop] = source[prop];
35963
35963
  }
35964
35964
  return target;
@@ -35987,7 +35987,7 @@ const useNotifySalesOrderShipped = () => {
35987
35987
  const { client } = useShipEngine();
35988
35988
  return useMutation({
35989
35989
  mutationFn: (_a) => __async$g(void 0, null, function* () {
35990
- var _b = _a, { salesOrderId } = _b, tracking = __objRest$7(_b, ["salesOrderId"]);
35990
+ var _b = _a, { salesOrderId } = _b, tracking = __objRest$8(_b, ["salesOrderId"]);
35991
35991
  const result = yield client.salesOrders.notifyShipped(salesOrderId, tracking);
35992
35992
  return result.data;
35993
35993
  }),
@@ -35996,17 +35996,17 @@ const useNotifySalesOrderShipped = () => {
35996
35996
  });
35997
35997
  };
35998
35998
 
35999
- var __getOwnPropSymbols$d = Object.getOwnPropertySymbols;
36000
- var __hasOwnProp$d = Object.prototype.hasOwnProperty;
36001
- var __propIsEnum$d = Object.prototype.propertyIsEnumerable;
36002
- var __objRest$6 = (source, exclude) => {
35999
+ var __getOwnPropSymbols$e = Object.getOwnPropertySymbols;
36000
+ var __hasOwnProp$e = Object.prototype.hasOwnProperty;
36001
+ var __propIsEnum$e = Object.prototype.propertyIsEnumerable;
36002
+ var __objRest$7 = (source, exclude) => {
36003
36003
  var target = {};
36004
36004
  for (var prop in source)
36005
- if (__hasOwnProp$d.call(source, prop) && exclude.indexOf(prop) < 0)
36005
+ if (__hasOwnProp$e.call(source, prop) && exclude.indexOf(prop) < 0)
36006
36006
  target[prop] = source[prop];
36007
- if (source != null && __getOwnPropSymbols$d)
36008
- for (var prop of __getOwnPropSymbols$d(source)) {
36009
- if (exclude.indexOf(prop) < 0 && __propIsEnum$d.call(source, prop))
36007
+ if (source != null && __getOwnPropSymbols$e)
36008
+ for (var prop of __getOwnPropSymbols$e(source)) {
36009
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$e.call(source, prop))
36010
36010
  target[prop] = source[prop];
36011
36011
  }
36012
36012
  return target;
@@ -36035,7 +36035,7 @@ const useCreateSalesOrderShipment = () => {
36035
36035
  const { client } = useShipEngine();
36036
36036
  return useMutation({
36037
36037
  mutationFn: (_a) => __async$f(void 0, null, function* () {
36038
- var _b = _a, { salesOrderId } = _b, shipment = __objRest$6(_b, ["salesOrderId"]);
36038
+ var _b = _a, { salesOrderId } = _b, shipment = __objRest$7(_b, ["salesOrderId"]);
36039
36039
  const result = yield client.salesOrderShipments.create(salesOrderId, shipment);
36040
36040
  return result.data;
36041
36041
  }),
@@ -36070,17 +36070,17 @@ const useListSalesOrderShipments = (params) => {
36070
36070
  });
36071
36071
  };
36072
36072
 
36073
- var __getOwnPropSymbols$c = Object.getOwnPropertySymbols;
36074
- var __hasOwnProp$c = Object.prototype.hasOwnProperty;
36075
- var __propIsEnum$c = Object.prototype.propertyIsEnumerable;
36076
- var __objRest$5 = (source, exclude) => {
36073
+ var __getOwnPropSymbols$d = Object.getOwnPropertySymbols;
36074
+ var __hasOwnProp$d = Object.prototype.hasOwnProperty;
36075
+ var __propIsEnum$d = Object.prototype.propertyIsEnumerable;
36076
+ var __objRest$6 = (source, exclude) => {
36077
36077
  var target = {};
36078
36078
  for (var prop in source)
36079
- if (__hasOwnProp$c.call(source, prop) && exclude.indexOf(prop) < 0)
36079
+ if (__hasOwnProp$d.call(source, prop) && exclude.indexOf(prop) < 0)
36080
36080
  target[prop] = source[prop];
36081
- if (source != null && __getOwnPropSymbols$c)
36082
- for (var prop of __getOwnPropSymbols$c(source)) {
36083
- if (exclude.indexOf(prop) < 0 && __propIsEnum$c.call(source, prop))
36081
+ if (source != null && __getOwnPropSymbols$d)
36082
+ for (var prop of __getOwnPropSymbols$d(source)) {
36083
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$d.call(source, prop))
36084
36084
  target[prop] = source[prop];
36085
36085
  }
36086
36086
  return target;
@@ -36109,7 +36109,7 @@ const useUpdateSalesOrderShipment = () => {
36109
36109
  const { client } = useShipEngine();
36110
36110
  return useMutation({
36111
36111
  mutationFn: (_a) => __async$e(void 0, null, function* () {
36112
- var _b = _a, { shipmentId } = _b, shipment = __objRest$5(_b, ["shipmentId"]);
36112
+ var _b = _a, { shipmentId } = _b, shipment = __objRest$6(_b, ["shipmentId"]);
36113
36113
  const result = yield client.salesOrderShipments.update(shipmentId, shipment);
36114
36114
  return result.data;
36115
36115
  }),
@@ -36118,25 +36118,25 @@ const useUpdateSalesOrderShipment = () => {
36118
36118
  });
36119
36119
  };
36120
36120
 
36121
- var __defProp$9 = Object.defineProperty;
36122
- var __defProps$7 = Object.defineProperties;
36123
- var __getOwnPropDescs$7 = Object.getOwnPropertyDescriptors;
36124
- var __getOwnPropSymbols$b = Object.getOwnPropertySymbols;
36125
- var __hasOwnProp$b = Object.prototype.hasOwnProperty;
36126
- var __propIsEnum$b = Object.prototype.propertyIsEnumerable;
36127
- var __defNormalProp$9 = (obj, key, value) => key in obj ? __defProp$9(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
36128
- var __spreadValues$9 = (a, b) => {
36121
+ var __defProp$a = Object.defineProperty;
36122
+ var __defProps$8 = Object.defineProperties;
36123
+ var __getOwnPropDescs$8 = Object.getOwnPropertyDescriptors;
36124
+ var __getOwnPropSymbols$c = Object.getOwnPropertySymbols;
36125
+ var __hasOwnProp$c = Object.prototype.hasOwnProperty;
36126
+ var __propIsEnum$c = Object.prototype.propertyIsEnumerable;
36127
+ var __defNormalProp$a = (obj, key, value) => key in obj ? __defProp$a(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
36128
+ var __spreadValues$a = (a, b) => {
36129
36129
  for (var prop in b || (b = {}))
36130
- if (__hasOwnProp$b.call(b, prop))
36131
- __defNormalProp$9(a, prop, b[prop]);
36132
- if (__getOwnPropSymbols$b)
36133
- for (var prop of __getOwnPropSymbols$b(b)) {
36134
- if (__propIsEnum$b.call(b, prop))
36135
- __defNormalProp$9(a, prop, b[prop]);
36130
+ if (__hasOwnProp$c.call(b, prop))
36131
+ __defNormalProp$a(a, prop, b[prop]);
36132
+ if (__getOwnPropSymbols$c)
36133
+ for (var prop of __getOwnPropSymbols$c(b)) {
36134
+ if (__propIsEnum$c.call(b, prop))
36135
+ __defNormalProp$a(a, prop, b[prop]);
36136
36136
  }
36137
36137
  return a;
36138
36138
  };
36139
- var __spreadProps$7 = (a, b) => __defProps$7(a, __getOwnPropDescs$7(b));
36139
+ var __spreadProps$8 = (a, b) => __defProps$8(a, __getOwnPropDescs$8(b));
36140
36140
  var __async$d = (__this, __arguments, generator) => {
36141
36141
  return new Promise((resolve, reject) => {
36142
36142
  var fulfilled = (value) => {
@@ -36178,7 +36178,7 @@ const useCreateShipment = () => {
36178
36178
  postalCode: "",
36179
36179
  stateProvince: ""
36180
36180
  };
36181
- return (yield client.shipments.create(__spreadProps$7(__spreadValues$9({}, shipment), {
36181
+ return (yield client.shipments.create(__spreadProps$8(__spreadValues$a({}, shipment), {
36182
36182
  shipTo
36183
36183
  }))).data;
36184
36184
  }),
@@ -36203,9 +36203,49 @@ const useGetShipmentRates = (shipmentId, createdAtStart) => {
36203
36203
  });
36204
36204
  };
36205
36205
 
36206
- const useGetShipment = (shipmentId) => {
36206
+ var __defProp$9 = Object.defineProperty;
36207
+ var __defProps$7 = Object.defineProperties;
36208
+ var __getOwnPropDescs$7 = Object.getOwnPropertyDescriptors;
36209
+ var __getOwnPropSymbols$b = Object.getOwnPropertySymbols;
36210
+ var __hasOwnProp$b = Object.prototype.hasOwnProperty;
36211
+ var __propIsEnum$b = Object.prototype.propertyIsEnumerable;
36212
+ var __defNormalProp$9 = (obj, key, value) => key in obj ? __defProp$9(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
36213
+ var __spreadValues$9 = (a, b) => {
36214
+ for (var prop in b || (b = {}))
36215
+ if (__hasOwnProp$b.call(b, prop))
36216
+ __defNormalProp$9(a, prop, b[prop]);
36217
+ if (__getOwnPropSymbols$b)
36218
+ for (var prop of __getOwnPropSymbols$b(b)) {
36219
+ if (__propIsEnum$b.call(b, prop))
36220
+ __defNormalProp$9(a, prop, b[prop]);
36221
+ }
36222
+ return a;
36223
+ };
36224
+ var __spreadProps$7 = (a, b) => __defProps$7(a, __getOwnPropDescs$7(b));
36225
+ var __objRest$5 = (source, exclude) => {
36226
+ var target = {};
36227
+ for (var prop in source)
36228
+ if (__hasOwnProp$b.call(source, prop) && exclude.indexOf(prop) < 0)
36229
+ target[prop] = source[prop];
36230
+ if (source != null && __getOwnPropSymbols$b)
36231
+ for (var prop of __getOwnPropSymbols$b(source)) {
36232
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$b.call(source, prop))
36233
+ target[prop] = source[prop];
36234
+ }
36235
+ return target;
36236
+ };
36237
+ const useGetShipment = (params) => {
36238
+ var _a;
36207
36239
  const { client } = useShipEngine();
36208
- return useQuery({
36240
+ const shipmentId = typeof params === "string" ? params : (_a = params == null ? void 0 : params.queryFnParams) == null ? void 0 : _a.shipmentId;
36241
+ const getQueryProps = () => {
36242
+ if (typeof params !== "string") {
36243
+ const _a2 = params, rest = __objRest$5(_a2, ["queryFnParams"]);
36244
+ return rest;
36245
+ }
36246
+ return {};
36247
+ };
36248
+ return useQuery(__spreadProps$7(__spreadValues$9({}, getQueryProps()), {
36209
36249
  enabled: shipmentId !== void 0,
36210
36250
  onError,
36211
36251
  queryFn: () => {
@@ -36216,7 +36256,7 @@ const useGetShipment = (shipmentId) => {
36216
36256
  },
36217
36257
  queryKey: ["useGetShipment", shipmentId],
36218
36258
  select: (result) => result.data
36219
- });
36259
+ }));
36220
36260
  };
36221
36261
 
36222
36262
  var __getOwnPropSymbols$a = Object.getOwnPropertySymbols;