@shipengine/alchemy 5.4.15 → 5.4.16

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 +286 -178
  2. package/index.mjs +285 -179
  3. package/package.json +1 -1
package/index.js CHANGED
@@ -10812,17 +10812,17 @@ var AccountBillingPlanChangeType = /* @__PURE__ */ ((AccountBillingPlanChangeTyp
10812
10812
  return AccountBillingPlanChangeType2;
10813
10813
  })(AccountBillingPlanChangeType || {});
10814
10814
 
10815
- var __getOwnPropSymbols$r = Object.getOwnPropertySymbols;
10816
- var __hasOwnProp$r = Object.prototype.hasOwnProperty;
10817
- var __propIsEnum$r = Object.prototype.propertyIsEnumerable;
10818
- var __objRest$f = (source, exclude) => {
10815
+ var __getOwnPropSymbols$t = Object.getOwnPropertySymbols;
10816
+ var __hasOwnProp$t = Object.prototype.hasOwnProperty;
10817
+ var __propIsEnum$t = Object.prototype.propertyIsEnumerable;
10818
+ var __objRest$g = (source, exclude) => {
10819
10819
  var target = {};
10820
10820
  for (var prop in source)
10821
- if (__hasOwnProp$r.call(source, prop) && exclude.indexOf(prop) < 0)
10821
+ if (__hasOwnProp$t.call(source, prop) && exclude.indexOf(prop) < 0)
10822
10822
  target[prop] = source[prop];
10823
- if (source != null && __getOwnPropSymbols$r)
10824
- for (var prop of __getOwnPropSymbols$r(source)) {
10825
- if (exclude.indexOf(prop) < 0 && __propIsEnum$r.call(source, prop))
10823
+ if (source != null && __getOwnPropSymbols$t)
10824
+ for (var prop of __getOwnPropSymbols$t(source)) {
10825
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$t.call(source, prop))
10826
10826
  target[prop] = source[prop];
10827
10827
  }
10828
10828
  return target;
@@ -10836,7 +10836,7 @@ class CodedError {
10836
10836
  this.message = message;
10837
10837
  }
10838
10838
  static fromObject(_a) {
10839
- var _b = _a, { message } = _b, options = __objRest$f(_b, ["message"]);
10839
+ var _b = _a, { message } = _b, options = __objRest$g(_b, ["message"]);
10840
10840
  return new CodedError(message, options);
10841
10841
  }
10842
10842
  }
@@ -10944,17 +10944,17 @@ const types = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
10944
10944
  RateCardStatus
10945
10945
  }, Symbol.toStringTag, { value: 'Module' }));
10946
10946
 
10947
- var __getOwnPropSymbols$q = Object.getOwnPropertySymbols;
10948
- var __hasOwnProp$q = Object.prototype.hasOwnProperty;
10949
- var __propIsEnum$q = Object.prototype.propertyIsEnumerable;
10950
- var __objRest$e = (source, exclude) => {
10947
+ var __getOwnPropSymbols$s = Object.getOwnPropertySymbols;
10948
+ var __hasOwnProp$s = Object.prototype.hasOwnProperty;
10949
+ var __propIsEnum$s = Object.prototype.propertyIsEnumerable;
10950
+ var __objRest$f = (source, exclude) => {
10951
10951
  var target = {};
10952
10952
  for (var prop in source)
10953
- if (__hasOwnProp$q.call(source, prop) && exclude.indexOf(prop) < 0)
10953
+ if (__hasOwnProp$s.call(source, prop) && exclude.indexOf(prop) < 0)
10954
10954
  target[prop] = source[prop];
10955
- if (source != null && __getOwnPropSymbols$q)
10956
- for (var prop of __getOwnPropSymbols$q(source)) {
10957
- if (exclude.indexOf(prop) < 0 && __propIsEnum$q.call(source, prop))
10955
+ if (source != null && __getOwnPropSymbols$s)
10956
+ for (var prop of __getOwnPropSymbols$s(source)) {
10957
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$s.call(source, prop))
10958
10958
  target[prop] = source[prop];
10959
10959
  }
10960
10960
  return target;
@@ -10986,7 +10986,7 @@ class AccountSettingsAPI {
10986
10986
  * The `updateImage` method updates specific image data for a given image id.
10987
10987
  */
10988
10988
  this.updateImage = (_a) => {
10989
- var _b = _a, { labelImageId } = _b, data = __objRest$e(_b, ["labelImageId"]);
10989
+ var _b = _a, { labelImageId } = _b, data = __objRest$f(_b, ["labelImageId"]);
10990
10990
  return this.client.put(`/v1/account/settings/images/${labelImageId}`, data);
10991
10991
  };
10992
10992
  /**
@@ -13696,7 +13696,7 @@ var ipaddr = {
13696
13696
  }).call(commonjsGlobal);
13697
13697
  } (ipaddr));
13698
13698
 
13699
- var __async$N = (__this, __arguments, generator) => {
13699
+ var __async$O = (__this, __arguments, generator) => {
13700
13700
  return new Promise((resolve, reject) => {
13701
13701
  var fulfilled = (value) => {
13702
13702
  try {
@@ -13716,7 +13716,7 @@ var __async$N = (__this, __arguments, generator) => {
13716
13716
  step((generator = generator.apply(__this, __arguments)).next());
13717
13717
  });
13718
13718
  };
13719
- const getEndUserIpAddress = () => __async$N(void 0, null, function* () {
13719
+ const getEndUserIpAddress = () => __async$O(void 0, null, function* () {
13720
13720
  try {
13721
13721
  const response = yield axios.get("https://api.ipify.org/?format=json");
13722
13722
  if (response.data.ip && ipaddrExports.isValid(response.data.ip)) {
@@ -13728,38 +13728,38 @@ const getEndUserIpAddress = () => __async$N(void 0, null, function* () {
13728
13728
  }
13729
13729
  });
13730
13730
 
13731
- var __defProp$e = Object.defineProperty;
13732
- var __defProps$9 = Object.defineProperties;
13733
- var __getOwnPropDescs$9 = Object.getOwnPropertyDescriptors;
13734
- var __getOwnPropSymbols$p = Object.getOwnPropertySymbols;
13735
- var __hasOwnProp$p = Object.prototype.hasOwnProperty;
13736
- var __propIsEnum$p = Object.prototype.propertyIsEnumerable;
13737
- var __defNormalProp$e = (obj, key, value) => key in obj ? __defProp$e(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
13738
- var __spreadValues$e = (a, b) => {
13731
+ var __defProp$g = Object.defineProperty;
13732
+ var __defProps$b = Object.defineProperties;
13733
+ var __getOwnPropDescs$b = Object.getOwnPropertyDescriptors;
13734
+ var __getOwnPropSymbols$r = Object.getOwnPropertySymbols;
13735
+ var __hasOwnProp$r = Object.prototype.hasOwnProperty;
13736
+ var __propIsEnum$r = Object.prototype.propertyIsEnumerable;
13737
+ var __defNormalProp$g = (obj, key, value) => key in obj ? __defProp$g(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
13738
+ var __spreadValues$g = (a, b) => {
13739
13739
  for (var prop in b || (b = {}))
13740
- if (__hasOwnProp$p.call(b, prop))
13741
- __defNormalProp$e(a, prop, b[prop]);
13742
- if (__getOwnPropSymbols$p)
13743
- for (var prop of __getOwnPropSymbols$p(b)) {
13744
- if (__propIsEnum$p.call(b, prop))
13745
- __defNormalProp$e(a, prop, b[prop]);
13740
+ if (__hasOwnProp$r.call(b, prop))
13741
+ __defNormalProp$g(a, prop, b[prop]);
13742
+ if (__getOwnPropSymbols$r)
13743
+ for (var prop of __getOwnPropSymbols$r(b)) {
13744
+ if (__propIsEnum$r.call(b, prop))
13745
+ __defNormalProp$g(a, prop, b[prop]);
13746
13746
  }
13747
13747
  return a;
13748
13748
  };
13749
- var __spreadProps$9 = (a, b) => __defProps$9(a, __getOwnPropDescs$9(b));
13750
- var __objRest$d = (source, exclude) => {
13749
+ var __spreadProps$b = (a, b) => __defProps$b(a, __getOwnPropDescs$b(b));
13750
+ var __objRest$e = (source, exclude) => {
13751
13751
  var target = {};
13752
13752
  for (var prop in source)
13753
- if (__hasOwnProp$p.call(source, prop) && exclude.indexOf(prop) < 0)
13753
+ if (__hasOwnProp$r.call(source, prop) && exclude.indexOf(prop) < 0)
13754
13754
  target[prop] = source[prop];
13755
- if (source != null && __getOwnPropSymbols$p)
13756
- for (var prop of __getOwnPropSymbols$p(source)) {
13757
- if (exclude.indexOf(prop) < 0 && __propIsEnum$p.call(source, prop))
13755
+ if (source != null && __getOwnPropSymbols$r)
13756
+ for (var prop of __getOwnPropSymbols$r(source)) {
13757
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$r.call(source, prop))
13758
13758
  target[prop] = source[prop];
13759
13759
  }
13760
13760
  return target;
13761
13761
  };
13762
- var __async$M = (__this, __arguments, generator) => {
13762
+ var __async$N = (__this, __arguments, generator) => {
13763
13763
  return new Promise((resolve, reject) => {
13764
13764
  var fulfilled = (value) => {
13765
13765
  try {
@@ -13797,12 +13797,12 @@ class CarriersAPI {
13797
13797
  /**
13798
13798
  * The `connect` method connects a carrier account to a user's ShipEngine account.
13799
13799
  */
13800
- this.connect = (_a) => __async$M(this, null, function* () {
13801
- var _b = _a, { carrierCode } = _b, connection = __objRest$d(_b, ["carrierCode"]);
13800
+ this.connect = (_a) => __async$N(this, null, function* () {
13801
+ var _b = _a, { carrierCode } = _b, connection = __objRest$e(_b, ["carrierCode"]);
13802
13802
  const endUserIpAddress = yield getEndUserIpAddress();
13803
13803
  if (!endUserIpAddress)
13804
13804
  return Promise.reject([new CodedError("Unable to get IP address")]);
13805
- return yield this.client.post(`/v1/registration/${carrierCode}`, __spreadProps$9(__spreadValues$e({}, connection), {
13805
+ return yield this.client.post(`/v1/registration/${carrierCode}`, __spreadProps$b(__spreadValues$g({}, connection), {
13806
13806
  endUserIpAddress
13807
13807
  }));
13808
13808
  });
@@ -13888,7 +13888,7 @@ class CarriersAPI {
13888
13888
  }
13889
13889
  }
13890
13890
 
13891
- var __async$L = (__this, __arguments, generator) => {
13891
+ var __async$M = (__this, __arguments, generator) => {
13892
13892
  return new Promise((resolve, reject) => {
13893
13893
  var fulfilled = (value) => {
13894
13894
  try {
@@ -13930,7 +13930,7 @@ class ConnectionsAPI {
13930
13930
  /**
13931
13931
  * The `connectCarrier` method connects a carrier to account.
13932
13932
  */
13933
- this.connectCarrier = (carrierName, formData) => __async$L(this, null, function* () {
13933
+ this.connectCarrier = (carrierName, formData) => __async$M(this, null, function* () {
13934
13934
  return yield this.client.post(
13935
13935
  `/v1/connections/carriers/${carrierName}`,
13936
13936
  formData,
@@ -16185,23 +16185,23 @@ class CustomPackagesAPI {
16185
16185
  }
16186
16186
  }
16187
16187
 
16188
- var __defProp$d = Object.defineProperty;
16189
- var __getOwnPropSymbols$o = Object.getOwnPropertySymbols;
16190
- var __hasOwnProp$o = Object.prototype.hasOwnProperty;
16191
- var __propIsEnum$o = Object.prototype.propertyIsEnumerable;
16192
- var __defNormalProp$d = (obj, key, value) => key in obj ? __defProp$d(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
16193
- var __spreadValues$d = (a, b) => {
16188
+ var __defProp$f = Object.defineProperty;
16189
+ var __getOwnPropSymbols$q = Object.getOwnPropertySymbols;
16190
+ var __hasOwnProp$q = Object.prototype.hasOwnProperty;
16191
+ var __propIsEnum$q = Object.prototype.propertyIsEnumerable;
16192
+ var __defNormalProp$f = (obj, key, value) => key in obj ? __defProp$f(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
16193
+ var __spreadValues$f = (a, b) => {
16194
16194
  for (var prop in b || (b = {}))
16195
- if (__hasOwnProp$o.call(b, prop))
16196
- __defNormalProp$d(a, prop, b[prop]);
16197
- if (__getOwnPropSymbols$o)
16198
- for (var prop of __getOwnPropSymbols$o(b)) {
16199
- if (__propIsEnum$o.call(b, prop))
16200
- __defNormalProp$d(a, prop, b[prop]);
16195
+ if (__hasOwnProp$q.call(b, prop))
16196
+ __defNormalProp$f(a, prop, b[prop]);
16197
+ if (__getOwnPropSymbols$q)
16198
+ for (var prop of __getOwnPropSymbols$q(b)) {
16199
+ if (__propIsEnum$q.call(b, prop))
16200
+ __defNormalProp$f(a, prop, b[prop]);
16201
16201
  }
16202
16202
  return a;
16203
16203
  };
16204
- var __async$K = (__this, __arguments, generator) => {
16204
+ var __async$L = (__this, __arguments, generator) => {
16205
16205
  return new Promise((resolve, reject) => {
16206
16206
  var fulfilled = (value) => {
16207
16207
  try {
@@ -16240,12 +16240,12 @@ class FundingSourcesAPI {
16240
16240
  * The `create` method creates a new funding source for a given user. This requires
16241
16241
  * payment information to be collected from the user.
16242
16242
  */
16243
- this.create = (createFundingSource) => __async$K(this, null, function* () {
16243
+ this.create = (createFundingSource) => __async$L(this, null, function* () {
16244
16244
  const endUserIpAddress = yield getEndUserIpAddress();
16245
16245
  if (!endUserIpAddress) {
16246
16246
  return Promise.reject([new CodedError("Unable to get IP address")]);
16247
16247
  }
16248
- return yield this.client.post("/v1/funding_sources", __spreadValues$d({
16248
+ return yield this.client.post("/v1/funding_sources", __spreadValues$f({
16249
16249
  endUserIpAddress
16250
16250
  }, createFundingSource));
16251
16251
  });
@@ -16254,7 +16254,7 @@ class FundingSourcesAPI {
16254
16254
  * user to update the billing address or payment information associated with the
16255
16255
  * funding source.
16256
16256
  */
16257
- this.update = (billingInfo, creditCardInfo, fundingSourceId) => __async$K(this, null, function* () {
16257
+ this.update = (billingInfo, creditCardInfo, fundingSourceId) => __async$L(this, null, function* () {
16258
16258
  const endUserIpAddress = yield getEndUserIpAddress();
16259
16259
  if (!endUserIpAddress) {
16260
16260
  return Promise.reject([new CodedError("Unable to get IP address")]);
@@ -16272,19 +16272,19 @@ class FundingSourcesAPI {
16272
16272
  * The `registerCarrier` method registers a carrier account and associates
16273
16273
  * it with a given funding source.
16274
16274
  */
16275
- this.registerCarrier = (carrier) => __async$K(this, null, function* () {
16275
+ this.registerCarrier = (carrier) => __async$L(this, null, function* () {
16276
16276
  const endUserIpAddress = yield getEndUserIpAddress();
16277
16277
  if (!endUserIpAddress) {
16278
16278
  return Promise.reject([new CodedError("Unable to get IP address")]);
16279
16279
  }
16280
- return yield this.client.post("/v1/registration/funding_source", __spreadValues$d({
16280
+ return yield this.client.post("/v1/registration/funding_source", __spreadValues$f({
16281
16281
  endUserIpAddress
16282
16282
  }, carrier));
16283
16283
  });
16284
16284
  /**
16285
16285
  * The `addFunds` method allows you to add funds to a funding source.
16286
16286
  */
16287
- this.addFunds = (amount, fundingSourceId) => __async$K(this, null, function* () {
16287
+ this.addFunds = (amount, fundingSourceId) => __async$L(this, null, function* () {
16288
16288
  return yield this.client.put(
16289
16289
  `/v1/funding_sources/${fundingSourceId}/add_funds`,
16290
16290
  amount
@@ -16294,7 +16294,7 @@ class FundingSourcesAPI {
16294
16294
  * The `metadata` method returns seller-specific requirements for creating funding sources
16295
16295
  * and attaching carriers
16296
16296
  */
16297
- this.metadata = () => __async$K(this, null, function* () {
16297
+ this.metadata = () => __async$L(this, null, function* () {
16298
16298
  return yield this.client.get("/v1/funding_sources/metadata");
16299
16299
  });
16300
16300
  /**
@@ -16482,19 +16482,19 @@ class RateCardsAPI {
16482
16482
  }
16483
16483
  }
16484
16484
 
16485
- var __defProp$c = Object.defineProperty;
16486
- var __getOwnPropSymbols$n = Object.getOwnPropertySymbols;
16487
- var __hasOwnProp$n = Object.prototype.hasOwnProperty;
16488
- var __propIsEnum$n = Object.prototype.propertyIsEnumerable;
16489
- var __defNormalProp$c = (obj, key, value) => key in obj ? __defProp$c(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
16490
- var __spreadValues$c = (a, b) => {
16485
+ var __defProp$e = Object.defineProperty;
16486
+ var __getOwnPropSymbols$p = Object.getOwnPropertySymbols;
16487
+ var __hasOwnProp$p = Object.prototype.hasOwnProperty;
16488
+ var __propIsEnum$p = Object.prototype.propertyIsEnumerable;
16489
+ var __defNormalProp$e = (obj, key, value) => key in obj ? __defProp$e(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
16490
+ var __spreadValues$e = (a, b) => {
16491
16491
  for (var prop in b || (b = {}))
16492
- if (__hasOwnProp$n.call(b, prop))
16493
- __defNormalProp$c(a, prop, b[prop]);
16494
- if (__getOwnPropSymbols$n)
16495
- for (var prop of __getOwnPropSymbols$n(b)) {
16496
- if (__propIsEnum$n.call(b, prop))
16497
- __defNormalProp$c(a, prop, b[prop]);
16492
+ if (__hasOwnProp$p.call(b, prop))
16493
+ __defNormalProp$e(a, prop, b[prop]);
16494
+ if (__getOwnPropSymbols$p)
16495
+ for (var prop of __getOwnPropSymbols$p(b)) {
16496
+ if (__propIsEnum$p.call(b, prop))
16497
+ __defNormalProp$e(a, prop, b[prop]);
16498
16498
  }
16499
16499
  return a;
16500
16500
  };
@@ -16516,7 +16516,7 @@ class RatesAPI {
16516
16516
  * method.
16517
16517
  */
16518
16518
  this.estimate = (params) => {
16519
- return this.client.post("/v1/rates/estimate", __spreadValues$c({}, params));
16519
+ return this.client.post("/v1/rates/estimate", __spreadValues$e({}, params));
16520
16520
  };
16521
16521
  this.client = client;
16522
16522
  }
@@ -16614,19 +16614,19 @@ class SellersAPI {
16614
16614
  }
16615
16615
  }
16616
16616
 
16617
- var __defProp$b = Object.defineProperty;
16618
- var __getOwnPropSymbols$m = Object.getOwnPropertySymbols;
16619
- var __hasOwnProp$m = Object.prototype.hasOwnProperty;
16620
- var __propIsEnum$m = Object.prototype.propertyIsEnumerable;
16621
- var __defNormalProp$b = (obj, key, value) => key in obj ? __defProp$b(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
16622
- var __spreadValues$b = (a, b) => {
16617
+ var __defProp$d = Object.defineProperty;
16618
+ var __getOwnPropSymbols$o = Object.getOwnPropertySymbols;
16619
+ var __hasOwnProp$o = Object.prototype.hasOwnProperty;
16620
+ var __propIsEnum$o = Object.prototype.propertyIsEnumerable;
16621
+ var __defNormalProp$d = (obj, key, value) => key in obj ? __defProp$d(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
16622
+ var __spreadValues$d = (a, b) => {
16623
16623
  for (var prop in b || (b = {}))
16624
- if (__hasOwnProp$m.call(b, prop))
16625
- __defNormalProp$b(a, prop, b[prop]);
16626
- if (__getOwnPropSymbols$m)
16627
- for (var prop of __getOwnPropSymbols$m(b)) {
16628
- if (__propIsEnum$m.call(b, prop))
16629
- __defNormalProp$b(a, prop, b[prop]);
16624
+ if (__hasOwnProp$o.call(b, prop))
16625
+ __defNormalProp$d(a, prop, b[prop]);
16626
+ if (__getOwnPropSymbols$o)
16627
+ for (var prop of __getOwnPropSymbols$o(b)) {
16628
+ if (__propIsEnum$o.call(b, prop))
16629
+ __defNormalProp$d(a, prop, b[prop]);
16630
16630
  }
16631
16631
  return a;
16632
16632
  };
@@ -16638,7 +16638,7 @@ class ServicePointsAPI {
16638
16638
  * Either an address, coordinates, or an address query
16639
16639
  */
16640
16640
  this.list = (options) => {
16641
- return this.client.post("/v1/service_points/list", __spreadValues$b({}, options));
16641
+ return this.client.post("/v1/service_points/list", __spreadValues$d({}, options));
16642
16642
  };
16643
16643
  /**
16644
16644
  * Get a specific service point by its carrier code, country code, and id
@@ -16656,7 +16656,7 @@ class ServicePointsAPI {
16656
16656
  }
16657
16657
  }
16658
16658
 
16659
- var __async$J = (__this, __arguments, generator) => {
16659
+ var __async$K = (__this, __arguments, generator) => {
16660
16660
  return new Promise((resolve, reject) => {
16661
16661
  var fulfilled = (value) => {
16662
16662
  try {
@@ -16699,7 +16699,7 @@ class ShipmentsAPI {
16699
16699
  * The `create` method allows for creating shipments based on a list of shipment
16700
16700
  * items passed into this method.
16701
16701
  */
16702
- this.create = (...shipments) => __async$J(this, null, function* () {
16702
+ this.create = (...shipments) => __async$K(this, null, function* () {
16703
16703
  return this.client.post("/v1/shipments", {
16704
16704
  shipments
16705
16705
  });
@@ -34065,26 +34065,26 @@ class WebhooksAPI {
34065
34065
  }
34066
34066
  }
34067
34067
 
34068
- var __defProp$a = Object.defineProperty;
34069
- var __defProps$8 = Object.defineProperties;
34070
- var __getOwnPropDescs$8 = Object.getOwnPropertyDescriptors;
34071
- var __getOwnPropSymbols$l = Object.getOwnPropertySymbols;
34072
- var __hasOwnProp$l = Object.prototype.hasOwnProperty;
34073
- var __propIsEnum$l = Object.prototype.propertyIsEnumerable;
34074
- var __defNormalProp$a = (obj, key, value) => key in obj ? __defProp$a(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
34075
- var __spreadValues$a = (a, b) => {
34068
+ var __defProp$c = Object.defineProperty;
34069
+ var __defProps$a = Object.defineProperties;
34070
+ var __getOwnPropDescs$a = Object.getOwnPropertyDescriptors;
34071
+ var __getOwnPropSymbols$n = Object.getOwnPropertySymbols;
34072
+ var __hasOwnProp$n = Object.prototype.hasOwnProperty;
34073
+ var __propIsEnum$n = Object.prototype.propertyIsEnumerable;
34074
+ var __defNormalProp$c = (obj, key, value) => key in obj ? __defProp$c(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
34075
+ var __spreadValues$c = (a, b) => {
34076
34076
  for (var prop in b || (b = {}))
34077
- if (__hasOwnProp$l.call(b, prop))
34078
- __defNormalProp$a(a, prop, b[prop]);
34079
- if (__getOwnPropSymbols$l)
34080
- for (var prop of __getOwnPropSymbols$l(b)) {
34081
- if (__propIsEnum$l.call(b, prop))
34082
- __defNormalProp$a(a, prop, b[prop]);
34077
+ if (__hasOwnProp$n.call(b, prop))
34078
+ __defNormalProp$c(a, prop, b[prop]);
34079
+ if (__getOwnPropSymbols$n)
34080
+ for (var prop of __getOwnPropSymbols$n(b)) {
34081
+ if (__propIsEnum$n.call(b, prop))
34082
+ __defNormalProp$c(a, prop, b[prop]);
34083
34083
  }
34084
34084
  return a;
34085
34085
  };
34086
- var __spreadProps$8 = (a, b) => __defProps$8(a, __getOwnPropDescs$8(b));
34087
- var __async$I = (__this, __arguments, generator) => {
34086
+ var __spreadProps$a = (a, b) => __defProps$a(a, __getOwnPropDescs$a(b));
34087
+ var __async$J = (__this, __arguments, generator) => {
34088
34088
  return new Promise((resolve, reject) => {
34089
34089
  var fulfilled = (value) => {
34090
34090
  try {
@@ -34107,7 +34107,7 @@ var __async$I = (__this, __arguments, generator) => {
34107
34107
  const logger$1 = E({
34108
34108
  level: process.env.NODE_ENV === "production" ? "fatal" : "info",
34109
34109
  name: "shipengine-api",
34110
- serializers: __spreadProps$8(__spreadValues$a({}, k), {
34110
+ serializers: __spreadProps$a(__spreadValues$c({}, k), {
34111
34111
  req: (req) => ({
34112
34112
  headers: req.headers,
34113
34113
  method: req.method,
@@ -34131,7 +34131,7 @@ class ShipEngineAPI {
34131
34131
  constructor(token, { baseURL, headers, getToken, onApiError }) {
34132
34132
  const client = axios.create({
34133
34133
  baseURL,
34134
- headers: __spreadProps$8(__spreadValues$a({}, headers), {
34134
+ headers: __spreadProps$a(__spreadValues$c({}, headers), {
34135
34135
  "Content-Type": "application/json"
34136
34136
  }),
34137
34137
  paramsSerializer: (params) => lib.stringify(humpsExports.decamelizeKeys(params), { arrayFormat: "brackets" }),
@@ -34178,7 +34178,7 @@ class ShipEngineAPI {
34178
34178
  );
34179
34179
  return res;
34180
34180
  },
34181
- (err) => __async$I(this, null, function* () {
34181
+ (err) => __async$J(this, null, function* () {
34182
34182
  var _a, _b, _c, _d, _e;
34183
34183
  logger$1.error(
34184
34184
  { err, req: err.config, res: err.response },
@@ -34460,25 +34460,25 @@ const delay = (ms) => new Promise((resolve) => {
34460
34460
 
34461
34461
  const onError = (_errors) => _default();
34462
34462
 
34463
- var __defProp$9 = Object.defineProperty;
34464
- var __defProps$7 = Object.defineProperties;
34465
- var __getOwnPropDescs$7 = Object.getOwnPropertyDescriptors;
34466
- var __getOwnPropSymbols$k = Object.getOwnPropertySymbols;
34467
- var __hasOwnProp$k = Object.prototype.hasOwnProperty;
34468
- var __propIsEnum$k = Object.prototype.propertyIsEnumerable;
34469
- var __defNormalProp$9 = (obj, key, value) => key in obj ? __defProp$9(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
34470
- var __spreadValues$9 = (a, b) => {
34463
+ var __defProp$b = Object.defineProperty;
34464
+ var __defProps$9 = Object.defineProperties;
34465
+ var __getOwnPropDescs$9 = Object.getOwnPropertyDescriptors;
34466
+ var __getOwnPropSymbols$m = Object.getOwnPropertySymbols;
34467
+ var __hasOwnProp$m = Object.prototype.hasOwnProperty;
34468
+ var __propIsEnum$m = Object.prototype.propertyIsEnumerable;
34469
+ var __defNormalProp$b = (obj, key, value) => key in obj ? __defProp$b(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
34470
+ var __spreadValues$b = (a, b) => {
34471
34471
  for (var prop in b || (b = {}))
34472
- if (__hasOwnProp$k.call(b, prop))
34473
- __defNormalProp$9(a, prop, b[prop]);
34474
- if (__getOwnPropSymbols$k)
34475
- for (var prop of __getOwnPropSymbols$k(b)) {
34476
- if (__propIsEnum$k.call(b, prop))
34477
- __defNormalProp$9(a, prop, b[prop]);
34472
+ if (__hasOwnProp$m.call(b, prop))
34473
+ __defNormalProp$b(a, prop, b[prop]);
34474
+ if (__getOwnPropSymbols$m)
34475
+ for (var prop of __getOwnPropSymbols$m(b)) {
34476
+ if (__propIsEnum$m.call(b, prop))
34477
+ __defNormalProp$b(a, prop, b[prop]);
34478
34478
  }
34479
34479
  return a;
34480
34480
  };
34481
- var __spreadProps$7 = (a, b) => __defProps$7(a, __getOwnPropDescs$7(b));
34481
+ var __spreadProps$9 = (a, b) => __defProps$9(a, __getOwnPropDescs$9(b));
34482
34482
  const streams = [];
34483
34483
  if (process.env.NODE_ENV === "production") {
34484
34484
  streams.push({
@@ -34487,7 +34487,7 @@ if (process.env.NODE_ENV === "production") {
34487
34487
  }
34488
34488
  const logger = E({
34489
34489
  name: "shipengine",
34490
- serializers: __spreadProps$7(__spreadValues$9({}, k), {
34490
+ serializers: __spreadProps$9(__spreadValues$b({}, k), {
34491
34491
  req: (req) => ({
34492
34492
  headers: req.headers,
34493
34493
  method: req.method,
@@ -34512,7 +34512,7 @@ const retryUntil = (callbackFn, retries = 10, timeoutBetweenAttempts = 1e3) => P
34512
34512
  throw error;
34513
34513
  });
34514
34514
 
34515
- var __async$H = (__this, __arguments, generator) => {
34515
+ var __async$I = (__this, __arguments, generator) => {
34516
34516
  return new Promise((resolve, reject) => {
34517
34517
  var fulfilled = (value) => {
34518
34518
  try {
@@ -34535,7 +34535,7 @@ var __async$H = (__this, __arguments, generator) => {
34535
34535
  const useCreateAccountImage = () => {
34536
34536
  const { client } = useShipEngine();
34537
34537
  return reactQuery.useMutation({
34538
- mutationFn: (data) => __async$H(void 0, null, function* () {
34538
+ mutationFn: (data) => __async$I(void 0, null, function* () {
34539
34539
  const result = yield client.accountSettings.createImage(data);
34540
34540
  return result.data;
34541
34541
  }),
@@ -34544,7 +34544,7 @@ const useCreateAccountImage = () => {
34544
34544
  });
34545
34545
  };
34546
34546
 
34547
- var __async$G = (__this, __arguments, generator) => {
34547
+ var __async$H = (__this, __arguments, generator) => {
34548
34548
  return new Promise((resolve, reject) => {
34549
34549
  var fulfilled = (value) => {
34550
34550
  try {
@@ -34567,7 +34567,7 @@ var __async$G = (__this, __arguments, generator) => {
34567
34567
  const useDeleteAccountImage = () => {
34568
34568
  const { client } = useShipEngine();
34569
34569
  return reactQuery.useMutation({
34570
- mutationFn: (labelImageId) => __async$G(void 0, null, function* () {
34570
+ mutationFn: (labelImageId) => __async$H(void 0, null, function* () {
34571
34571
  const result = yield client.accountSettings.deleteImage(labelImageId);
34572
34572
  return result.data;
34573
34573
  }),
@@ -34596,7 +34596,7 @@ const useGetAccountSettings = () => {
34596
34596
  });
34597
34597
  };
34598
34598
 
34599
- var __async$F = (__this, __arguments, generator) => {
34599
+ var __async$G = (__this, __arguments, generator) => {
34600
34600
  return new Promise((resolve, reject) => {
34601
34601
  var fulfilled = (value) => {
34602
34602
  try {
@@ -34619,7 +34619,7 @@ var __async$F = (__this, __arguments, generator) => {
34619
34619
  const useUpdateAccountImage = () => {
34620
34620
  const { client } = useShipEngine();
34621
34621
  return reactQuery.useMutation({
34622
- mutationFn: (data) => __async$F(void 0, null, function* () {
34622
+ mutationFn: (data) => __async$G(void 0, null, function* () {
34623
34623
  const result = yield client.accountSettings.updateImage(data);
34624
34624
  return result.data;
34625
34625
  }),
@@ -34628,7 +34628,7 @@ const useUpdateAccountImage = () => {
34628
34628
  });
34629
34629
  };
34630
34630
 
34631
- var __async$E = (__this, __arguments, generator) => {
34631
+ var __async$F = (__this, __arguments, generator) => {
34632
34632
  return new Promise((resolve, reject) => {
34633
34633
  var fulfilled = (value) => {
34634
34634
  try {
@@ -34651,7 +34651,7 @@ var __async$E = (__this, __arguments, generator) => {
34651
34651
  const useUpdateAccountSettings = () => {
34652
34652
  const { client } = useShipEngine();
34653
34653
  return reactQuery.useMutation({
34654
- mutationFn: (settings) => __async$E(void 0, null, function* () {
34654
+ mutationFn: (settings) => __async$F(void 0, null, function* () {
34655
34655
  const result = yield client.accountSettings.update(settings);
34656
34656
  return result.data;
34657
34657
  }),
@@ -34660,7 +34660,7 @@ const useUpdateAccountSettings = () => {
34660
34660
  });
34661
34661
  };
34662
34662
 
34663
- var __async$D = (__this, __arguments, generator) => {
34663
+ var __async$E = (__this, __arguments, generator) => {
34664
34664
  return new Promise((resolve, reject) => {
34665
34665
  var fulfilled = (value) => {
34666
34666
  try {
@@ -34683,7 +34683,7 @@ var __async$D = (__this, __arguments, generator) => {
34683
34683
  const useParseAddress = () => {
34684
34684
  const { client } = useShipEngine();
34685
34685
  return reactQuery.useMutation({
34686
- mutationFn: (_0) => __async$D(void 0, [_0], function* ({ address, text }) {
34686
+ mutationFn: (_0) => __async$E(void 0, [_0], function* ({ address, text }) {
34687
34687
  const result = yield client.addresses.parse(text, address);
34688
34688
  return result.data;
34689
34689
  }),
@@ -34692,7 +34692,7 @@ const useParseAddress = () => {
34692
34692
  });
34693
34693
  };
34694
34694
 
34695
- var __async$C = (__this, __arguments, generator) => {
34695
+ var __async$D = (__this, __arguments, generator) => {
34696
34696
  return new Promise((resolve, reject) => {
34697
34697
  var fulfilled = (value) => {
34698
34698
  try {
@@ -34715,7 +34715,7 @@ var __async$C = (__this, __arguments, generator) => {
34715
34715
  const useValidateAddresses = () => {
34716
34716
  const { client } = useShipEngine();
34717
34717
  return reactQuery.useMutation({
34718
- mutationFn: (addresses) => __async$C(void 0, null, function* () {
34718
+ mutationFn: (addresses) => __async$D(void 0, null, function* () {
34719
34719
  const result = yield client.addresses.validate(addresses);
34720
34720
  return result.data;
34721
34721
  }),
@@ -34724,7 +34724,7 @@ const useValidateAddresses = () => {
34724
34724
  });
34725
34725
  };
34726
34726
 
34727
- var __async$B = (__this, __arguments, generator) => {
34727
+ var __async$C = (__this, __arguments, generator) => {
34728
34728
  return new Promise((resolve, reject) => {
34729
34729
  var fulfilled = (value) => {
34730
34730
  try {
@@ -34747,7 +34747,7 @@ var __async$B = (__this, __arguments, generator) => {
34747
34747
  const useAddFunds = () => {
34748
34748
  const { client } = useShipEngine();
34749
34749
  return reactQuery.useMutation({
34750
- mutationFn: (_0) => __async$B(void 0, [_0], function* ({ carrierId, funds }) {
34750
+ mutationFn: (_0) => __async$C(void 0, [_0], function* ({ carrierId, funds }) {
34751
34751
  const result = yield client.carriers.addFunds(carrierId, funds);
34752
34752
  return result.data;
34753
34753
  }),
@@ -34756,7 +34756,7 @@ const useAddFunds = () => {
34756
34756
  });
34757
34757
  };
34758
34758
 
34759
- var __async$A = (__this, __arguments, generator) => {
34759
+ var __async$B = (__this, __arguments, generator) => {
34760
34760
  return new Promise((resolve, reject) => {
34761
34761
  var fulfilled = (value) => {
34762
34762
  try {
@@ -34779,7 +34779,7 @@ var __async$A = (__this, __arguments, generator) => {
34779
34779
  const useConnectCarrier = () => {
34780
34780
  const { client } = useShipEngine();
34781
34781
  return reactQuery.useMutation({
34782
- mutationFn: (params) => __async$A(void 0, null, function* () {
34782
+ mutationFn: (params) => __async$B(void 0, null, function* () {
34783
34783
  const result = yield client.carriers.connect(params);
34784
34784
  return result.data;
34785
34785
  }),
@@ -34898,22 +34898,22 @@ const useListCarriers = () => {
34898
34898
  });
34899
34899
  };
34900
34900
 
34901
- var __getOwnPropSymbols$j = Object.getOwnPropertySymbols;
34902
- var __hasOwnProp$j = Object.prototype.hasOwnProperty;
34903
- var __propIsEnum$j = Object.prototype.propertyIsEnumerable;
34904
- var __objRest$c = (source, exclude) => {
34901
+ var __getOwnPropSymbols$l = Object.getOwnPropertySymbols;
34902
+ var __hasOwnProp$l = Object.prototype.hasOwnProperty;
34903
+ var __propIsEnum$l = Object.prototype.propertyIsEnumerable;
34904
+ var __objRest$d = (source, exclude) => {
34905
34905
  var target = {};
34906
34906
  for (var prop in source)
34907
- if (__hasOwnProp$j.call(source, prop) && exclude.indexOf(prop) < 0)
34907
+ if (__hasOwnProp$l.call(source, prop) && exclude.indexOf(prop) < 0)
34908
34908
  target[prop] = source[prop];
34909
- if (source != null && __getOwnPropSymbols$j)
34910
- for (var prop of __getOwnPropSymbols$j(source)) {
34911
- if (exclude.indexOf(prop) < 0 && __propIsEnum$j.call(source, prop))
34909
+ if (source != null && __getOwnPropSymbols$l)
34910
+ for (var prop of __getOwnPropSymbols$l(source)) {
34911
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$l.call(source, prop))
34912
34912
  target[prop] = source[prop];
34913
34913
  }
34914
34914
  return target;
34915
34915
  };
34916
- var __async$z = (__this, __arguments, generator) => {
34916
+ var __async$A = (__this, __arguments, generator) => {
34917
34917
  return new Promise((resolve, reject) => {
34918
34918
  var fulfilled = (value) => {
34919
34919
  try {
@@ -34937,8 +34937,8 @@ const useUpdateAutoFunding = () => {
34937
34937
  const { client } = useShipEngine();
34938
34938
  const queryClient = reactQuery.useQueryClient();
34939
34939
  return reactQuery.useMutation({
34940
- mutationFn: (_a) => __async$z(void 0, null, function* () {
34941
- var _b = _a, { carrierId } = _b, options = __objRest$c(_b, ["carrierId"]);
34940
+ mutationFn: (_a) => __async$A(void 0, null, function* () {
34941
+ var _b = _a, { carrierId } = _b, options = __objRest$d(_b, ["carrierId"]);
34942
34942
  const result = yield client.carriers.updateAutoFunding(carrierId, options);
34943
34943
  return result.data;
34944
34944
  }),
@@ -34967,7 +34967,7 @@ const useGetZonesByCarrier = (carrierId) => {
34967
34967
  });
34968
34968
  };
34969
34969
 
34970
- var __async$y = (__this, __arguments, generator) => {
34970
+ var __async$z = (__this, __arguments, generator) => {
34971
34971
  return new Promise((resolve, reject) => {
34972
34972
  var fulfilled = (value) => {
34973
34973
  try {
@@ -34990,7 +34990,7 @@ var __async$y = (__this, __arguments, generator) => {
34990
34990
  const useDeleteCarrier = () => {
34991
34991
  const { client } = useShipEngine();
34992
34992
  return reactQuery.useMutation({
34993
- mutationFn: (carrierId) => __async$y(void 0, null, function* () {
34993
+ mutationFn: (carrierId) => __async$z(void 0, null, function* () {
34994
34994
  const result = yield client.carriers.delete(carrierId);
34995
34995
  return result.data;
34996
34996
  }),
@@ -34999,24 +34999,24 @@ const useDeleteCarrier = () => {
34999
34999
  });
35000
35000
  };
35001
35001
 
35002
- var __getOwnPropSymbols$i = Object.getOwnPropertySymbols;
35003
- var __hasOwnProp$i = Object.prototype.hasOwnProperty;
35004
- var __propIsEnum$i = Object.prototype.propertyIsEnumerable;
35005
- var __objRest$b = (source, exclude) => {
35002
+ var __getOwnPropSymbols$k = Object.getOwnPropertySymbols;
35003
+ var __hasOwnProp$k = Object.prototype.hasOwnProperty;
35004
+ var __propIsEnum$k = Object.prototype.propertyIsEnumerable;
35005
+ var __objRest$c = (source, exclude) => {
35006
35006
  var target = {};
35007
35007
  for (var prop in source)
35008
- if (__hasOwnProp$i.call(source, prop) && exclude.indexOf(prop) < 0)
35008
+ if (__hasOwnProp$k.call(source, prop) && exclude.indexOf(prop) < 0)
35009
35009
  target[prop] = source[prop];
35010
- if (source != null && __getOwnPropSymbols$i)
35011
- for (var prop of __getOwnPropSymbols$i(source)) {
35012
- if (exclude.indexOf(prop) < 0 && __propIsEnum$i.call(source, prop))
35010
+ if (source != null && __getOwnPropSymbols$k)
35011
+ for (var prop of __getOwnPropSymbols$k(source)) {
35012
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$k.call(source, prop))
35013
35013
  target[prop] = source[prop];
35014
35014
  }
35015
35015
  return target;
35016
35016
  };
35017
35017
  const useGetCarrierConnectionForm = (_params) => {
35018
35018
  const { client } = useShipEngine();
35019
- const _a = _params || {}, { carrierName, enabled = true } = _a, params = __objRest$b(_a, ["carrierName", "enabled"]);
35019
+ const _a = _params || {}, { carrierName, enabled = true } = _a, params = __objRest$c(_a, ["carrierName", "enabled"]);
35020
35020
  return reactQuery.useQuery({
35021
35021
  enabled,
35022
35022
  onError,
@@ -35026,24 +35026,24 @@ const useGetCarrierConnectionForm = (_params) => {
35026
35026
  });
35027
35027
  };
35028
35028
 
35029
- var __getOwnPropSymbols$h = Object.getOwnPropertySymbols;
35030
- var __hasOwnProp$h = Object.prototype.hasOwnProperty;
35031
- var __propIsEnum$h = Object.prototype.propertyIsEnumerable;
35032
- var __objRest$a = (source, exclude) => {
35029
+ var __getOwnPropSymbols$j = Object.getOwnPropertySymbols;
35030
+ var __hasOwnProp$j = Object.prototype.hasOwnProperty;
35031
+ var __propIsEnum$j = Object.prototype.propertyIsEnumerable;
35032
+ var __objRest$b = (source, exclude) => {
35033
35033
  var target = {};
35034
35034
  for (var prop in source)
35035
- if (__hasOwnProp$h.call(source, prop) && exclude.indexOf(prop) < 0)
35035
+ if (__hasOwnProp$j.call(source, prop) && exclude.indexOf(prop) < 0)
35036
35036
  target[prop] = source[prop];
35037
- if (source != null && __getOwnPropSymbols$h)
35038
- for (var prop of __getOwnPropSymbols$h(source)) {
35039
- if (exclude.indexOf(prop) < 0 && __propIsEnum$h.call(source, prop))
35037
+ if (source != null && __getOwnPropSymbols$j)
35038
+ for (var prop of __getOwnPropSymbols$j(source)) {
35039
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$j.call(source, prop))
35040
35040
  target[prop] = source[prop];
35041
35041
  }
35042
35042
  return target;
35043
35043
  };
35044
35044
  const useListCarrierConnections = (_params) => {
35045
35045
  const { client } = useShipEngine();
35046
- const _a = _params || {}, { enabled = true } = _a, params = __objRest$a(_a, ["enabled"]);
35046
+ const _a = _params || {}, { enabled = true } = _a, params = __objRest$b(_a, ["enabled"]);
35047
35047
  return reactQuery.useQuery({
35048
35048
  enabled,
35049
35049
  onError,
@@ -35053,7 +35053,7 @@ const useListCarrierConnections = (_params) => {
35053
35053
  });
35054
35054
  };
35055
35055
 
35056
- var __async$x = (__this, __arguments, generator) => {
35056
+ var __async$y = (__this, __arguments, generator) => {
35057
35057
  return new Promise((resolve, reject) => {
35058
35058
  var fulfilled = (value) => {
35059
35059
  try {
@@ -35076,7 +35076,7 @@ var __async$x = (__this, __arguments, generator) => {
35076
35076
  const useConnectCarrierAccount = () => {
35077
35077
  const { client } = useShipEngine();
35078
35078
  return reactQuery.useMutation({
35079
- mutationFn: (_0) => __async$x(void 0, [_0], function* ({ carrierName, formData }) {
35079
+ mutationFn: (_0) => __async$y(void 0, [_0], function* ({ carrierName, formData }) {
35080
35080
  const result = yield client.connections.connectCarrier(carrierName, formData);
35081
35081
  return result.data;
35082
35082
  }),
@@ -35096,6 +35096,112 @@ const useCarrierConnectionsServicesList = (carrierCode) => {
35096
35096
  });
35097
35097
  };
35098
35098
 
35099
+ var __defProp$a = Object.defineProperty;
35100
+ var __defProps$8 = Object.defineProperties;
35101
+ var __getOwnPropDescs$8 = Object.getOwnPropertyDescriptors;
35102
+ var __getOwnPropSymbols$i = Object.getOwnPropertySymbols;
35103
+ var __hasOwnProp$i = Object.prototype.hasOwnProperty;
35104
+ var __propIsEnum$i = Object.prototype.propertyIsEnumerable;
35105
+ var __defNormalProp$a = (obj, key, value) => key in obj ? __defProp$a(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35106
+ var __spreadValues$a = (a, b) => {
35107
+ for (var prop in b || (b = {}))
35108
+ if (__hasOwnProp$i.call(b, prop))
35109
+ __defNormalProp$a(a, prop, b[prop]);
35110
+ if (__getOwnPropSymbols$i)
35111
+ for (var prop of __getOwnPropSymbols$i(b)) {
35112
+ if (__propIsEnum$i.call(b, prop))
35113
+ __defNormalProp$a(a, prop, b[prop]);
35114
+ }
35115
+ return a;
35116
+ };
35117
+ var __spreadProps$8 = (a, b) => __defProps$8(a, __getOwnPropDescs$8(b));
35118
+ var __objRest$a = (source, exclude) => {
35119
+ var target = {};
35120
+ for (var prop in source)
35121
+ if (__hasOwnProp$i.call(source, prop) && exclude.indexOf(prop) < 0)
35122
+ target[prop] = source[prop];
35123
+ if (source != null && __getOwnPropSymbols$i)
35124
+ for (var prop of __getOwnPropSymbols$i(source)) {
35125
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$i.call(source, prop))
35126
+ target[prop] = source[prop];
35127
+ }
35128
+ return target;
35129
+ };
35130
+ const useGetConnectionsCarrierSettings = (_a) => {
35131
+ var _b = _a, {
35132
+ queryFnParams
35133
+ } = _b, params = __objRest$a(_b, [
35134
+ "queryFnParams"
35135
+ ]);
35136
+ const { client } = useShipEngine();
35137
+ const { carrierName, carrierCode } = queryFnParams;
35138
+ return reactQuery.useQuery(__spreadProps$8(__spreadValues$a({}, params), {
35139
+ onError,
35140
+ queryFn: () => client.connections.getCarrierSettings(carrierName, carrierCode),
35141
+ queryKey: ["useGetConnectionsCarrierSettings", carrierName, carrierCode],
35142
+ select: (result) => result.data
35143
+ }));
35144
+ };
35145
+
35146
+ var __defProp$9 = Object.defineProperty;
35147
+ var __defProps$7 = Object.defineProperties;
35148
+ var __getOwnPropDescs$7 = Object.getOwnPropertyDescriptors;
35149
+ var __getOwnPropSymbols$h = Object.getOwnPropertySymbols;
35150
+ var __hasOwnProp$h = Object.prototype.hasOwnProperty;
35151
+ var __propIsEnum$h = Object.prototype.propertyIsEnumerable;
35152
+ var __defNormalProp$9 = (obj, key, value) => key in obj ? __defProp$9(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35153
+ var __spreadValues$9 = (a, b) => {
35154
+ for (var prop in b || (b = {}))
35155
+ if (__hasOwnProp$h.call(b, prop))
35156
+ __defNormalProp$9(a, prop, b[prop]);
35157
+ if (__getOwnPropSymbols$h)
35158
+ for (var prop of __getOwnPropSymbols$h(b)) {
35159
+ if (__propIsEnum$h.call(b, prop))
35160
+ __defNormalProp$9(a, prop, b[prop]);
35161
+ }
35162
+ return a;
35163
+ };
35164
+ var __spreadProps$7 = (a, b) => __defProps$7(a, __getOwnPropDescs$7(b));
35165
+ var __async$x = (__this, __arguments, generator) => {
35166
+ return new Promise((resolve, reject) => {
35167
+ var fulfilled = (value) => {
35168
+ try {
35169
+ step(generator.next(value));
35170
+ } catch (e) {
35171
+ reject(e);
35172
+ }
35173
+ };
35174
+ var rejected = (value) => {
35175
+ try {
35176
+ step(generator.throw(value));
35177
+ } catch (e) {
35178
+ reject(e);
35179
+ }
35180
+ };
35181
+ var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
35182
+ step((generator = generator.apply(__this, __arguments)).next());
35183
+ });
35184
+ };
35185
+ const useUpdateConnectionsCarrierSettings = (params) => {
35186
+ const { client } = useShipEngine();
35187
+ return reactQuery.useMutation(__spreadProps$7(__spreadValues$9({}, params), {
35188
+ mutationFn: (_0) => __async$x(void 0, [_0], function* ({
35189
+ carrierName,
35190
+ carrierCode,
35191
+ formData
35192
+ }) {
35193
+ const result = yield client.connections.updateCarrierSettings(
35194
+ carrierName,
35195
+ carrierCode,
35196
+ formData
35197
+ );
35198
+ return result.data;
35199
+ }),
35200
+ mutationKey: ["useUpdateConnectionsCarrierSettings"],
35201
+ onError
35202
+ }));
35203
+ };
35204
+
35099
35205
  const useListCustomPackageTypes = () => {
35100
35206
  const { client } = useShipEngine();
35101
35207
  return reactQuery.useQuery({
@@ -38043,6 +38149,7 @@ exports.useGetAccountSettings = useGetAccountSettings;
38043
38149
  exports.useGetAutoFundingConfiguration = useGetAutoFundingConfiguration;
38044
38150
  exports.useGetCarrierById = useGetCarrierById;
38045
38151
  exports.useGetCarrierConnectionForm = useGetCarrierConnectionForm;
38152
+ exports.useGetConnectionsCarrierSettings = useGetConnectionsCarrierSettings;
38046
38153
  exports.useGetCountriesByCarrier = useGetCountriesByCarrier;
38047
38154
  exports.useGetCurrenciesByCarrier = useGetCurrenciesByCarrier;
38048
38155
  exports.useGetFundingSourceById = useGetFundingSourceById;
@@ -38093,6 +38200,7 @@ exports.useUpdateAccountBillingPlan = useUpdateAccountBillingPlan;
38093
38200
  exports.useUpdateAccountImage = useUpdateAccountImage;
38094
38201
  exports.useUpdateAccountSettings = useUpdateAccountSettings;
38095
38202
  exports.useUpdateAutoFunding = useUpdateAutoFunding;
38203
+ exports.useUpdateConnectionsCarrierSettings = useUpdateConnectionsCarrierSettings;
38096
38204
  exports.useUpdateFundingSource = useUpdateFundingSource;
38097
38205
  exports.useUpdateRateCard = useUpdateRateCard;
38098
38206
  exports.useUpdateSalesOrderShipment = useUpdateSalesOrderShipment;