@shipengine/alchemy 6.0.39 → 6.0.41

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 +468 -379
  2. package/index.mjs +467 -379
  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$M = Object.getOwnPropertySymbols;
10794
- var __hasOwnProp$M = Object.prototype.hasOwnProperty;
10795
- var __propIsEnum$M = Object.prototype.propertyIsEnumerable;
10796
- var __objRest$q = (source, exclude) => {
10793
+ var __getOwnPropSymbols$N = Object.getOwnPropertySymbols;
10794
+ var __hasOwnProp$N = Object.prototype.hasOwnProperty;
10795
+ var __propIsEnum$N = Object.prototype.propertyIsEnumerable;
10796
+ var __objRest$r = (source, exclude) => {
10797
10797
  var target = {};
10798
10798
  for (var prop in source)
10799
- if (__hasOwnProp$M.call(source, prop) && exclude.indexOf(prop) < 0)
10799
+ if (__hasOwnProp$N.call(source, prop) && exclude.indexOf(prop) < 0)
10800
10800
  target[prop] = source[prop];
10801
- if (source != null && __getOwnPropSymbols$M)
10802
- for (var prop of __getOwnPropSymbols$M(source)) {
10803
- if (exclude.indexOf(prop) < 0 && __propIsEnum$M.call(source, prop))
10801
+ if (source != null && __getOwnPropSymbols$N)
10802
+ for (var prop of __getOwnPropSymbols$N(source)) {
10803
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$N.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$q(_b, ["message"]);
10817
+ var _b = _a, { message } = _b, options = __objRest$r(_b, ["message"]);
10818
10818
  return new CodedError(message, options);
10819
10819
  }
10820
10820
  }
@@ -10935,17 +10935,17 @@ const types = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
10935
10935
  RateCardStatus
10936
10936
  }, Symbol.toStringTag, { value: 'Module' }));
10937
10937
 
10938
- var __getOwnPropSymbols$L = Object.getOwnPropertySymbols;
10939
- var __hasOwnProp$L = Object.prototype.hasOwnProperty;
10940
- var __propIsEnum$L = Object.prototype.propertyIsEnumerable;
10941
- var __objRest$p = (source, exclude) => {
10938
+ var __getOwnPropSymbols$M = Object.getOwnPropertySymbols;
10939
+ var __hasOwnProp$M = Object.prototype.hasOwnProperty;
10940
+ var __propIsEnum$M = Object.prototype.propertyIsEnumerable;
10941
+ var __objRest$q = (source, exclude) => {
10942
10942
  var target = {};
10943
10943
  for (var prop in source)
10944
- if (__hasOwnProp$L.call(source, prop) && exclude.indexOf(prop) < 0)
10944
+ if (__hasOwnProp$M.call(source, prop) && exclude.indexOf(prop) < 0)
10945
10945
  target[prop] = source[prop];
10946
- if (source != null && __getOwnPropSymbols$L)
10947
- for (var prop of __getOwnPropSymbols$L(source)) {
10948
- if (exclude.indexOf(prop) < 0 && __propIsEnum$L.call(source, prop))
10946
+ if (source != null && __getOwnPropSymbols$M)
10947
+ for (var prop of __getOwnPropSymbols$M(source)) {
10948
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$M.call(source, prop))
10949
10949
  target[prop] = source[prop];
10950
10950
  }
10951
10951
  return target;
@@ -10977,7 +10977,7 @@ class AccountSettingsAPI {
10977
10977
  * The `updateImage` method updates specific image data for a given image id.
10978
10978
  */
10979
10979
  this.updateImage = (_a) => {
10980
- var _b = _a, { labelImageId } = _b, data = __objRest$p(_b, ["labelImageId"]);
10980
+ var _b = _a, { labelImageId } = _b, data = __objRest$q(_b, ["labelImageId"]);
10981
10981
  return this.client.put(`/v1/account/settings/images/${labelImageId}`, data);
10982
10982
  };
10983
10983
  /**
@@ -11030,7 +11030,7 @@ class AuctanePayAPI {
11030
11030
  * @returns a promise that resolves to the created session
11031
11031
  */
11032
11032
  this.createSession = (request) => {
11033
- return this.client.post("/internal/auctane_pay/sessions", request);
11033
+ return this.client.post("/v1/payments/sessions", request);
11034
11034
  };
11035
11035
  /**
11036
11036
  * The `getConfig` method get the AuctanePay config, such as the "adyenClientKey"
@@ -11038,7 +11038,7 @@ class AuctanePayAPI {
11038
11038
  * @returns a promise that returns the AuctanePay config
11039
11039
  */
11040
11040
  this.getConfig = () => {
11041
- return this.client.get("/internal/auctane_pay/config");
11041
+ return this.client.get("/v1/payments/config");
11042
11042
  };
11043
11043
  this.client = client;
11044
11044
  }
@@ -13749,7 +13749,7 @@ var ipaddr = {
13749
13749
  }).call(commonjsGlobal);
13750
13750
  } (ipaddr));
13751
13751
 
13752
- var __async$_ = (__this, __arguments, generator) => {
13752
+ var __async$$ = (__this, __arguments, generator) => {
13753
13753
  return new Promise((resolve, reject) => {
13754
13754
  var fulfilled = (value) => {
13755
13755
  try {
@@ -13769,7 +13769,7 @@ var __async$_ = (__this, __arguments, generator) => {
13769
13769
  step((generator = generator.apply(__this, __arguments)).next());
13770
13770
  });
13771
13771
  };
13772
- const getEndUserIpAddress = () => __async$_(void 0, null, function* () {
13772
+ const getEndUserIpAddress = () => __async$$(void 0, null, function* () {
13773
13773
  try {
13774
13774
  const response = yield axios.get("https://api.ipify.org/?format=json");
13775
13775
  if (response.data.ip && ipaddrExports.isValid(response.data.ip)) {
@@ -13826,38 +13826,38 @@ const decamelizeKeys = (obj, separator = "_") => {
13826
13826
  return obj;
13827
13827
  };
13828
13828
 
13829
- var __defProp$z = Object.defineProperty;
13830
- var __defProps$t = Object.defineProperties;
13831
- var __getOwnPropDescs$t = Object.getOwnPropertyDescriptors;
13832
- var __getOwnPropSymbols$K = Object.getOwnPropertySymbols;
13833
- var __hasOwnProp$K = Object.prototype.hasOwnProperty;
13834
- var __propIsEnum$K = Object.prototype.propertyIsEnumerable;
13835
- var __defNormalProp$z = (obj, key, value) => key in obj ? __defProp$z(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
13836
- var __spreadValues$z = (a, b) => {
13829
+ var __defProp$B = Object.defineProperty;
13830
+ var __defProps$v = Object.defineProperties;
13831
+ var __getOwnPropDescs$v = Object.getOwnPropertyDescriptors;
13832
+ var __getOwnPropSymbols$L = Object.getOwnPropertySymbols;
13833
+ var __hasOwnProp$L = Object.prototype.hasOwnProperty;
13834
+ var __propIsEnum$L = Object.prototype.propertyIsEnumerable;
13835
+ var __defNormalProp$B = (obj, key, value) => key in obj ? __defProp$B(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
13836
+ var __spreadValues$B = (a, b) => {
13837
13837
  for (var prop in b || (b = {}))
13838
- if (__hasOwnProp$K.call(b, prop))
13839
- __defNormalProp$z(a, prop, b[prop]);
13840
- if (__getOwnPropSymbols$K)
13841
- for (var prop of __getOwnPropSymbols$K(b)) {
13842
- if (__propIsEnum$K.call(b, prop))
13843
- __defNormalProp$z(a, prop, b[prop]);
13838
+ if (__hasOwnProp$L.call(b, prop))
13839
+ __defNormalProp$B(a, prop, b[prop]);
13840
+ if (__getOwnPropSymbols$L)
13841
+ for (var prop of __getOwnPropSymbols$L(b)) {
13842
+ if (__propIsEnum$L.call(b, prop))
13843
+ __defNormalProp$B(a, prop, b[prop]);
13844
13844
  }
13845
13845
  return a;
13846
13846
  };
13847
- var __spreadProps$t = (a, b) => __defProps$t(a, __getOwnPropDescs$t(b));
13848
- var __objRest$o = (source, exclude) => {
13847
+ var __spreadProps$v = (a, b) => __defProps$v(a, __getOwnPropDescs$v(b));
13848
+ var __objRest$p = (source, exclude) => {
13849
13849
  var target = {};
13850
13850
  for (var prop in source)
13851
- if (__hasOwnProp$K.call(source, prop) && exclude.indexOf(prop) < 0)
13851
+ if (__hasOwnProp$L.call(source, prop) && exclude.indexOf(prop) < 0)
13852
13852
  target[prop] = source[prop];
13853
- if (source != null && __getOwnPropSymbols$K)
13854
- for (var prop of __getOwnPropSymbols$K(source)) {
13855
- if (exclude.indexOf(prop) < 0 && __propIsEnum$K.call(source, prop))
13853
+ if (source != null && __getOwnPropSymbols$L)
13854
+ for (var prop of __getOwnPropSymbols$L(source)) {
13855
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$L.call(source, prop))
13856
13856
  target[prop] = source[prop];
13857
13857
  }
13858
13858
  return target;
13859
13859
  };
13860
- var __async$Z = (__this, __arguments, generator) => {
13860
+ var __async$_ = (__this, __arguments, generator) => {
13861
13861
  return new Promise((resolve, reject) => {
13862
13862
  var fulfilled = (value) => {
13863
13863
  try {
@@ -13897,12 +13897,12 @@ class CarriersAPI {
13897
13897
  /**
13898
13898
  * The `connect` method connects a carrier account to a user's ShipEngine account.
13899
13899
  */
13900
- this.connect = (_a) => __async$Z(this, null, function* () {
13901
- var _b = _a, { carrierCode } = _b, connection = __objRest$o(_b, ["carrierCode"]);
13900
+ this.connect = (_a) => __async$_(this, null, function* () {
13901
+ var _b = _a, { carrierCode } = _b, connection = __objRest$p(_b, ["carrierCode"]);
13902
13902
  const endUserIpAddress = yield getEndUserIpAddress();
13903
13903
  if (!endUserIpAddress)
13904
13904
  return Promise.reject([new CodedError("Unable to get IP address")]);
13905
- return yield this.client.post(`/v1/registration/${carrierCode}`, __spreadProps$t(__spreadValues$z({}, connection), {
13905
+ return yield this.client.post(`/v1/registration/${carrierCode}`, __spreadProps$v(__spreadValues$B({}, connection), {
13906
13906
  endUserIpAddress
13907
13907
  }));
13908
13908
  });
@@ -13988,7 +13988,7 @@ class CarriersAPI {
13988
13988
  }
13989
13989
  }
13990
13990
 
13991
- var __async$Y = (__this, __arguments, generator) => {
13991
+ var __async$Z = (__this, __arguments, generator) => {
13992
13992
  return new Promise((resolve, reject) => {
13993
13993
  var fulfilled = (value) => {
13994
13994
  try {
@@ -14030,7 +14030,7 @@ class ConnectionsAPI {
14030
14030
  /**
14031
14031
  * The `connectCarrier` method connects a carrier to account.
14032
14032
  */
14033
- this.connectCarrier = (carrierName, formData) => __async$Y(this, null, function* () {
14033
+ this.connectCarrier = (carrierName, formData) => __async$Z(this, null, function* () {
14034
14034
  return yield this.client.post(
14035
14035
  `/v1/connections/carriers/${carrierName}`,
14036
14036
  formData,
@@ -16186,23 +16186,23 @@ class CustomPackagesAPI {
16186
16186
  }
16187
16187
  }
16188
16188
 
16189
- var __defProp$y = Object.defineProperty;
16190
- var __getOwnPropSymbols$J = Object.getOwnPropertySymbols;
16191
- var __hasOwnProp$J = Object.prototype.hasOwnProperty;
16192
- var __propIsEnum$J = Object.prototype.propertyIsEnumerable;
16193
- var __defNormalProp$y = (obj, key, value) => key in obj ? __defProp$y(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
16194
- var __spreadValues$y = (a, b) => {
16189
+ var __defProp$A = Object.defineProperty;
16190
+ var __getOwnPropSymbols$K = Object.getOwnPropertySymbols;
16191
+ var __hasOwnProp$K = Object.prototype.hasOwnProperty;
16192
+ var __propIsEnum$K = Object.prototype.propertyIsEnumerable;
16193
+ var __defNormalProp$A = (obj, key, value) => key in obj ? __defProp$A(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
16194
+ var __spreadValues$A = (a, b) => {
16195
16195
  for (var prop in b || (b = {}))
16196
- if (__hasOwnProp$J.call(b, prop))
16197
- __defNormalProp$y(a, prop, b[prop]);
16198
- if (__getOwnPropSymbols$J)
16199
- for (var prop of __getOwnPropSymbols$J(b)) {
16200
- if (__propIsEnum$J.call(b, prop))
16201
- __defNormalProp$y(a, prop, b[prop]);
16196
+ if (__hasOwnProp$K.call(b, prop))
16197
+ __defNormalProp$A(a, prop, b[prop]);
16198
+ if (__getOwnPropSymbols$K)
16199
+ for (var prop of __getOwnPropSymbols$K(b)) {
16200
+ if (__propIsEnum$K.call(b, prop))
16201
+ __defNormalProp$A(a, prop, b[prop]);
16202
16202
  }
16203
16203
  return a;
16204
16204
  };
16205
- var __async$X = (__this, __arguments, generator) => {
16205
+ var __async$Y = (__this, __arguments, generator) => {
16206
16206
  return new Promise((resolve, reject) => {
16207
16207
  var fulfilled = (value) => {
16208
16208
  try {
@@ -16241,12 +16241,12 @@ class FundingSourcesAPI {
16241
16241
  * The `create` method creates a new funding source for a given user. This requires
16242
16242
  * payment information to be collected from the user.
16243
16243
  */
16244
- this.create = (createFundingSource) => __async$X(this, null, function* () {
16244
+ this.create = (createFundingSource) => __async$Y(this, null, function* () {
16245
16245
  const endUserIpAddress = yield getEndUserIpAddress();
16246
16246
  if (!endUserIpAddress) {
16247
16247
  return Promise.reject([new CodedError("Unable to get IP address")]);
16248
16248
  }
16249
- return yield this.client.post("/v1/funding_sources", __spreadValues$y({
16249
+ return yield this.client.post("/v1/funding_sources", __spreadValues$A({
16250
16250
  endUserIpAddress
16251
16251
  }, createFundingSource));
16252
16252
  });
@@ -16255,7 +16255,7 @@ class FundingSourcesAPI {
16255
16255
  * user to update the billing address or payment information associated with the
16256
16256
  * funding source.
16257
16257
  */
16258
- this.update = (billingInfo, creditCardInfo, auctanePayInfo, fundingSourceId) => __async$X(this, null, function* () {
16258
+ this.update = (billingInfo, creditCardInfo, auctanePayInfo, fundingSourceId) => __async$Y(this, null, function* () {
16259
16259
  const endUserIpAddress = yield getEndUserIpAddress();
16260
16260
  if (!endUserIpAddress) {
16261
16261
  return Promise.reject([new CodedError("Unable to get IP address")]);
@@ -16265,7 +16265,7 @@ class FundingSourcesAPI {
16265
16265
  {
16266
16266
  billingInfo,
16267
16267
  endUserIpAddress,
16268
- paymentMethod: __spreadValues$y({
16268
+ paymentMethod: __spreadValues$A({
16269
16269
  creditCardInfo
16270
16270
  }, auctanePayInfo)
16271
16271
  }
@@ -16275,19 +16275,19 @@ class FundingSourcesAPI {
16275
16275
  * The `registerCarrier` method registers a carrier account and associates
16276
16276
  * it with a given funding source.
16277
16277
  */
16278
- this.registerCarrier = (carrier) => __async$X(this, null, function* () {
16278
+ this.registerCarrier = (carrier) => __async$Y(this, null, function* () {
16279
16279
  const endUserIpAddress = yield getEndUserIpAddress();
16280
16280
  if (!endUserIpAddress) {
16281
16281
  return Promise.reject([new CodedError("Unable to get IP address")]);
16282
16282
  }
16283
- return yield this.client.post("/v1/registration/funding_source", __spreadValues$y({
16283
+ return yield this.client.post("/v1/registration/funding_source", __spreadValues$A({
16284
16284
  endUserIpAddress
16285
16285
  }, carrier));
16286
16286
  });
16287
16287
  /**
16288
16288
  * The `addFunds` method allows you to add funds to a funding source.
16289
16289
  */
16290
- this.addFunds = (amount, fundingSourceId) => __async$X(this, null, function* () {
16290
+ this.addFunds = (amount, fundingSourceId) => __async$Y(this, null, function* () {
16291
16291
  return yield this.client.put(
16292
16292
  `/v1/funding_sources/${fundingSourceId}/add_funds`,
16293
16293
  amount
@@ -16297,7 +16297,7 @@ class FundingSourcesAPI {
16297
16297
  * The `metadata` method returns seller-specific requirements for creating funding sources
16298
16298
  * and attaching carriers
16299
16299
  */
16300
- this.metadata = () => __async$X(this, null, function* () {
16300
+ this.metadata = () => __async$Y(this, null, function* () {
16301
16301
  return yield this.client.get("/v1/funding_sources/metadata");
16302
16302
  });
16303
16303
  /**
@@ -16349,7 +16349,7 @@ class InsuranceAPI {
16349
16349
  }
16350
16350
  }
16351
16351
 
16352
- var __async$W = (__this, __arguments, generator) => {
16352
+ var __async$X = (__this, __arguments, generator) => {
16353
16353
  return new Promise((resolve, reject) => {
16354
16354
  var fulfilled = (value) => {
16355
16355
  try {
@@ -16381,13 +16381,13 @@ class InvoiceAddressAPI {
16381
16381
  /**
16382
16382
  * The `create` method creates a new invoice address for a given user.
16383
16383
  */
16384
- this.create = (invoiceAddress) => __async$W(this, null, function* () {
16384
+ this.create = (invoiceAddress) => __async$X(this, null, function* () {
16385
16385
  return yield this.client.post("/v1/invoice_address", invoiceAddress);
16386
16386
  });
16387
16387
  /**
16388
16388
  * The `update` method updates a invoice address for a given user.
16389
16389
  */
16390
- this.update = (invoiceAddress) => __async$W(this, null, function* () {
16390
+ this.update = (invoiceAddress) => __async$X(this, null, function* () {
16391
16391
  return yield this.client.put("/v1/invoice_address", invoiceAddress);
16392
16392
  });
16393
16393
  this.client = client;
@@ -16419,6 +16419,14 @@ class LabelsAPI {
16419
16419
  this.createByRateId = (rateId, options) => {
16420
16420
  return this.client.post(`/v1/labels/rates/${rateId}`, options);
16421
16421
  };
16422
+ /**
16423
+ * The `createByShipmentId` allows you to create a shipping label by using a `shipmentId`
16424
+ * which is a unique identifier tied to a specific shipment that has already been created
16425
+ * with the desired address and package info.
16426
+ */
16427
+ this.createByShipmentId = (shipmentId, options) => {
16428
+ return this.client.post(`/v1/labels/shipment/${shipmentId}`, options);
16429
+ };
16422
16430
  /**
16423
16431
  * The `void` method allows a user to void a label by `labelId`.
16424
16432
  */
@@ -16429,17 +16437,17 @@ class LabelsAPI {
16429
16437
  }
16430
16438
  }
16431
16439
 
16432
- var __getOwnPropSymbols$I = Object.getOwnPropertySymbols;
16433
- var __hasOwnProp$I = Object.prototype.hasOwnProperty;
16434
- var __propIsEnum$I = Object.prototype.propertyIsEnumerable;
16435
- var __objRest$n = (source, exclude) => {
16440
+ var __getOwnPropSymbols$J = Object.getOwnPropertySymbols;
16441
+ var __hasOwnProp$J = Object.prototype.hasOwnProperty;
16442
+ var __propIsEnum$J = Object.prototype.propertyIsEnumerable;
16443
+ var __objRest$o = (source, exclude) => {
16436
16444
  var target = {};
16437
16445
  for (var prop in source)
16438
- if (__hasOwnProp$I.call(source, prop) && exclude.indexOf(prop) < 0)
16446
+ if (__hasOwnProp$J.call(source, prop) && exclude.indexOf(prop) < 0)
16439
16447
  target[prop] = source[prop];
16440
- if (source != null && __getOwnPropSymbols$I)
16441
- for (var prop of __getOwnPropSymbols$I(source)) {
16442
- if (exclude.indexOf(prop) < 0 && __propIsEnum$I.call(source, prop))
16448
+ if (source != null && __getOwnPropSymbols$J)
16449
+ for (var prop of __getOwnPropSymbols$J(source)) {
16450
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$J.call(source, prop))
16443
16451
  target[prop] = source[prop];
16444
16452
  }
16445
16453
  return target;
@@ -16471,7 +16479,7 @@ class OrderSourcesAPI {
16471
16479
  * The `update` method will allow the user to update a connected Order Source
16472
16480
  */
16473
16481
  this.update = (_a) => {
16474
- var _b = _a, { orderSourceId } = _b, rest = __objRest$n(_b, ["orderSourceId"]);
16482
+ var _b = _a, { orderSourceId } = _b, rest = __objRest$o(_b, ["orderSourceId"]);
16475
16483
  return this.client.put(`/v-beta/order_sources/${orderSourceId}`, rest);
16476
16484
  };
16477
16485
  /**
@@ -16560,19 +16568,19 @@ class RateCardsAPI {
16560
16568
  }
16561
16569
  }
16562
16570
 
16563
- var __defProp$x = Object.defineProperty;
16564
- var __getOwnPropSymbols$H = Object.getOwnPropertySymbols;
16565
- var __hasOwnProp$H = Object.prototype.hasOwnProperty;
16566
- var __propIsEnum$H = Object.prototype.propertyIsEnumerable;
16567
- var __defNormalProp$x = (obj, key, value) => key in obj ? __defProp$x(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
16568
- var __spreadValues$x = (a, b) => {
16571
+ var __defProp$z = Object.defineProperty;
16572
+ var __getOwnPropSymbols$I = Object.getOwnPropertySymbols;
16573
+ var __hasOwnProp$I = Object.prototype.hasOwnProperty;
16574
+ var __propIsEnum$I = Object.prototype.propertyIsEnumerable;
16575
+ var __defNormalProp$z = (obj, key, value) => key in obj ? __defProp$z(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
16576
+ var __spreadValues$z = (a, b) => {
16569
16577
  for (var prop in b || (b = {}))
16570
- if (__hasOwnProp$H.call(b, prop))
16571
- __defNormalProp$x(a, prop, b[prop]);
16572
- if (__getOwnPropSymbols$H)
16573
- for (var prop of __getOwnPropSymbols$H(b)) {
16574
- if (__propIsEnum$H.call(b, prop))
16575
- __defNormalProp$x(a, prop, b[prop]);
16578
+ if (__hasOwnProp$I.call(b, prop))
16579
+ __defNormalProp$z(a, prop, b[prop]);
16580
+ if (__getOwnPropSymbols$I)
16581
+ for (var prop of __getOwnPropSymbols$I(b)) {
16582
+ if (__propIsEnum$I.call(b, prop))
16583
+ __defNormalProp$z(a, prop, b[prop]);
16576
16584
  }
16577
16585
  return a;
16578
16586
  };
@@ -16594,7 +16602,7 @@ class RatesAPI {
16594
16602
  * method.
16595
16603
  */
16596
16604
  this.estimate = (params) => {
16597
- return this.client.post("/v1/rates/estimate", __spreadValues$x({}, params));
16605
+ return this.client.post("/v1/rates/estimate", __spreadValues$z({}, params));
16598
16606
  };
16599
16607
  this.client = client;
16600
16608
  }
@@ -16674,7 +16682,7 @@ class SalesOrdersAPI {
16674
16682
  }
16675
16683
  }
16676
16684
 
16677
- var __async$V = (__this, __arguments, generator) => {
16685
+ var __async$W = (__this, __arguments, generator) => {
16678
16686
  return new Promise((resolve, reject) => {
16679
16687
  var fulfilled = (value) => {
16680
16688
  try {
@@ -16732,7 +16740,7 @@ class SellersAPI {
16732
16740
  /**
16733
16741
  * Deletes an API Key
16734
16742
  */
16735
- this.deleteSellerApiKey = (_0) => __async$V(this, [_0], function* ({
16743
+ this.deleteSellerApiKey = (_0) => __async$W(this, [_0], function* ({
16736
16744
  encryptedApiKey,
16737
16745
  sellerId,
16738
16746
  isSandbox
@@ -16778,19 +16786,19 @@ class SellersAPI {
16778
16786
  }
16779
16787
  }
16780
16788
 
16781
- var __defProp$w = Object.defineProperty;
16782
- var __getOwnPropSymbols$G = Object.getOwnPropertySymbols;
16783
- var __hasOwnProp$G = Object.prototype.hasOwnProperty;
16784
- var __propIsEnum$G = Object.prototype.propertyIsEnumerable;
16785
- var __defNormalProp$w = (obj, key, value) => key in obj ? __defProp$w(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
16786
- var __spreadValues$w = (a, b) => {
16789
+ var __defProp$y = Object.defineProperty;
16790
+ var __getOwnPropSymbols$H = Object.getOwnPropertySymbols;
16791
+ var __hasOwnProp$H = Object.prototype.hasOwnProperty;
16792
+ var __propIsEnum$H = Object.prototype.propertyIsEnumerable;
16793
+ var __defNormalProp$y = (obj, key, value) => key in obj ? __defProp$y(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
16794
+ var __spreadValues$y = (a, b) => {
16787
16795
  for (var prop in b || (b = {}))
16788
- if (__hasOwnProp$G.call(b, prop))
16789
- __defNormalProp$w(a, prop, b[prop]);
16790
- if (__getOwnPropSymbols$G)
16791
- for (var prop of __getOwnPropSymbols$G(b)) {
16792
- if (__propIsEnum$G.call(b, prop))
16793
- __defNormalProp$w(a, prop, b[prop]);
16796
+ if (__hasOwnProp$H.call(b, prop))
16797
+ __defNormalProp$y(a, prop, b[prop]);
16798
+ if (__getOwnPropSymbols$H)
16799
+ for (var prop of __getOwnPropSymbols$H(b)) {
16800
+ if (__propIsEnum$H.call(b, prop))
16801
+ __defNormalProp$y(a, prop, b[prop]);
16794
16802
  }
16795
16803
  return a;
16796
16804
  };
@@ -16802,7 +16810,7 @@ class ServicePointsAPI {
16802
16810
  * Either an address, coordinates, or an address query
16803
16811
  */
16804
16812
  this.list = (options) => {
16805
- return this.client.post("/v1/service_points/list", __spreadValues$w({}, options));
16813
+ return this.client.post("/v1/service_points/list", __spreadValues$y({}, options));
16806
16814
  };
16807
16815
  /**
16808
16816
  * Get a specific service point by its carrier code, country code, and id
@@ -16820,7 +16828,7 @@ class ServicePointsAPI {
16820
16828
  }
16821
16829
  }
16822
16830
 
16823
- var __async$U = (__this, __arguments, generator) => {
16831
+ var __async$V = (__this, __arguments, generator) => {
16824
16832
  return new Promise((resolve, reject) => {
16825
16833
  var fulfilled = (value) => {
16826
16834
  try {
@@ -16869,7 +16877,7 @@ class ShipmentsAPI {
16869
16877
  * The `create` method allows for creating shipments based on a list of shipment
16870
16878
  * items passed into this method.
16871
16879
  */
16872
- this.create = (...shipments) => __async$U(this, null, function* () {
16880
+ this.create = (...shipments) => __async$V(this, null, function* () {
16873
16881
  return this.client.post("/v1/shipments", {
16874
16882
  shipments
16875
16883
  });
@@ -34261,26 +34269,26 @@ class WebhooksAPI {
34261
34269
  }
34262
34270
  }
34263
34271
 
34264
- var __defProp$v = Object.defineProperty;
34265
- var __defProps$s = Object.defineProperties;
34266
- var __getOwnPropDescs$s = Object.getOwnPropertyDescriptors;
34267
- var __getOwnPropSymbols$F = Object.getOwnPropertySymbols;
34268
- var __hasOwnProp$F = Object.prototype.hasOwnProperty;
34269
- var __propIsEnum$F = Object.prototype.propertyIsEnumerable;
34270
- var __defNormalProp$v = (obj, key, value) => key in obj ? __defProp$v(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
34271
- var __spreadValues$v = (a, b) => {
34272
+ var __defProp$x = Object.defineProperty;
34273
+ var __defProps$u = Object.defineProperties;
34274
+ var __getOwnPropDescs$u = Object.getOwnPropertyDescriptors;
34275
+ var __getOwnPropSymbols$G = Object.getOwnPropertySymbols;
34276
+ var __hasOwnProp$G = Object.prototype.hasOwnProperty;
34277
+ var __propIsEnum$G = Object.prototype.propertyIsEnumerable;
34278
+ var __defNormalProp$x = (obj, key, value) => key in obj ? __defProp$x(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
34279
+ var __spreadValues$x = (a, b) => {
34272
34280
  for (var prop in b || (b = {}))
34273
- if (__hasOwnProp$F.call(b, prop))
34274
- __defNormalProp$v(a, prop, b[prop]);
34275
- if (__getOwnPropSymbols$F)
34276
- for (var prop of __getOwnPropSymbols$F(b)) {
34277
- if (__propIsEnum$F.call(b, prop))
34278
- __defNormalProp$v(a, prop, b[prop]);
34281
+ if (__hasOwnProp$G.call(b, prop))
34282
+ __defNormalProp$x(a, prop, b[prop]);
34283
+ if (__getOwnPropSymbols$G)
34284
+ for (var prop of __getOwnPropSymbols$G(b)) {
34285
+ if (__propIsEnum$G.call(b, prop))
34286
+ __defNormalProp$x(a, prop, b[prop]);
34279
34287
  }
34280
34288
  return a;
34281
34289
  };
34282
- var __spreadProps$s = (a, b) => __defProps$s(a, __getOwnPropDescs$s(b));
34283
- var __async$T = (__this, __arguments, generator) => {
34290
+ var __spreadProps$u = (a, b) => __defProps$u(a, __getOwnPropDescs$u(b));
34291
+ var __async$U = (__this, __arguments, generator) => {
34284
34292
  return new Promise((resolve, reject) => {
34285
34293
  var fulfilled = (value) => {
34286
34294
  try {
@@ -34303,7 +34311,7 @@ var __async$T = (__this, __arguments, generator) => {
34303
34311
  const logger$1 = E({
34304
34312
  level: process.env.NODE_ENV === "production" ? "fatal" : "info",
34305
34313
  name: "shipengine-api",
34306
- serializers: __spreadProps$s(__spreadValues$v({}, k), {
34314
+ serializers: __spreadProps$u(__spreadValues$x({}, k), {
34307
34315
  req: (req) => ({
34308
34316
  headers: req.headers,
34309
34317
  method: req.method,
@@ -34328,7 +34336,7 @@ class ShipEngineAPI {
34328
34336
  this.getSandboxToken = getSandboxToken;
34329
34337
  const client = axios.create({
34330
34338
  baseURL,
34331
- headers: __spreadProps$s(__spreadValues$v({}, headers), {
34339
+ headers: __spreadProps$u(__spreadValues$x({}, headers), {
34332
34340
  "Content-Type": "application/json"
34333
34341
  }),
34334
34342
  paramsSerializer: (params) => lib.stringify(decamelizeKeys(params), { arrayFormat: "brackets" }),
@@ -34363,7 +34371,7 @@ class ShipEngineAPI {
34363
34371
  });
34364
34372
  client.defaults.headers.common["Authorization"] = `Bearer ${token}`;
34365
34373
  client.interceptors.request.use(
34366
- (config) => __async$T(this, null, function* () {
34374
+ (config) => __async$U(this, null, function* () {
34367
34375
  if (config.isSandbox) {
34368
34376
  if (!this.sandboxToken) {
34369
34377
  this.sandboxToken = yield getSandboxToken == null ? void 0 : getSandboxToken();
@@ -34390,7 +34398,7 @@ class ShipEngineAPI {
34390
34398
  );
34391
34399
  return res;
34392
34400
  },
34393
- (err) => __async$T(this, null, function* () {
34401
+ (err) => __async$U(this, null, function* () {
34394
34402
  var _a, _b, _c, _d, _e;
34395
34403
  logger$1.error(
34396
34404
  { err, req: err.config, res: err.response },
@@ -34437,7 +34445,7 @@ class ShipEngineAPI {
34437
34445
  * that token (also known as Seller ID)
34438
34446
  */
34439
34447
  getTenant(isSandbox) {
34440
- return __async$T(this, null, function* () {
34448
+ return __async$U(this, null, function* () {
34441
34449
  var _a;
34442
34450
  if (!isSandbox) {
34443
34451
  return this.getTenantFromToken(this.token);
@@ -34732,25 +34740,25 @@ const delay = (ms) => new Promise((resolve) => {
34732
34740
 
34733
34741
  const onError = (_errors) => _default();
34734
34742
 
34735
- var __defProp$u = Object.defineProperty;
34736
- var __defProps$r = Object.defineProperties;
34737
- var __getOwnPropDescs$r = Object.getOwnPropertyDescriptors;
34738
- var __getOwnPropSymbols$E = Object.getOwnPropertySymbols;
34739
- var __hasOwnProp$E = Object.prototype.hasOwnProperty;
34740
- var __propIsEnum$E = Object.prototype.propertyIsEnumerable;
34741
- var __defNormalProp$u = (obj, key, value) => key in obj ? __defProp$u(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
34742
- var __spreadValues$u = (a, b) => {
34743
+ var __defProp$w = Object.defineProperty;
34744
+ var __defProps$t = Object.defineProperties;
34745
+ var __getOwnPropDescs$t = Object.getOwnPropertyDescriptors;
34746
+ var __getOwnPropSymbols$F = Object.getOwnPropertySymbols;
34747
+ var __hasOwnProp$F = Object.prototype.hasOwnProperty;
34748
+ var __propIsEnum$F = Object.prototype.propertyIsEnumerable;
34749
+ var __defNormalProp$w = (obj, key, value) => key in obj ? __defProp$w(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
34750
+ var __spreadValues$w = (a, b) => {
34743
34751
  for (var prop in b || (b = {}))
34744
- if (__hasOwnProp$E.call(b, prop))
34745
- __defNormalProp$u(a, prop, b[prop]);
34746
- if (__getOwnPropSymbols$E)
34747
- for (var prop of __getOwnPropSymbols$E(b)) {
34748
- if (__propIsEnum$E.call(b, prop))
34749
- __defNormalProp$u(a, prop, b[prop]);
34752
+ if (__hasOwnProp$F.call(b, prop))
34753
+ __defNormalProp$w(a, prop, b[prop]);
34754
+ if (__getOwnPropSymbols$F)
34755
+ for (var prop of __getOwnPropSymbols$F(b)) {
34756
+ if (__propIsEnum$F.call(b, prop))
34757
+ __defNormalProp$w(a, prop, b[prop]);
34750
34758
  }
34751
34759
  return a;
34752
34760
  };
34753
- var __spreadProps$r = (a, b) => __defProps$r(a, __getOwnPropDescs$r(b));
34761
+ var __spreadProps$t = (a, b) => __defProps$t(a, __getOwnPropDescs$t(b));
34754
34762
  const streams = [];
34755
34763
  if (process.env.NODE_ENV === "production") {
34756
34764
  streams.push({
@@ -34759,7 +34767,7 @@ if (process.env.NODE_ENV === "production") {
34759
34767
  }
34760
34768
  const logger = E({
34761
34769
  name: "shipengine",
34762
- serializers: __spreadProps$r(__spreadValues$u({}, k), {
34770
+ serializers: __spreadProps$t(__spreadValues$w({}, k), {
34763
34771
  req: (req) => ({
34764
34772
  headers: req.headers,
34765
34773
  method: req.method,
@@ -34784,7 +34792,7 @@ const retryUntil = (callbackFn, retries = 10, timeoutBetweenAttempts = 1e3) => P
34784
34792
  throw error;
34785
34793
  });
34786
34794
 
34787
- var __async$S = (__this, __arguments, generator) => {
34795
+ var __async$T = (__this, __arguments, generator) => {
34788
34796
  return new Promise((resolve, reject) => {
34789
34797
  var fulfilled = (value) => {
34790
34798
  try {
@@ -34807,7 +34815,7 @@ var __async$S = (__this, __arguments, generator) => {
34807
34815
  const useCreateAccountImage = () => {
34808
34816
  const { client } = useShipEngine();
34809
34817
  return useMutation({
34810
- mutationFn: (data) => __async$S(void 0, null, function* () {
34818
+ mutationFn: (data) => __async$T(void 0, null, function* () {
34811
34819
  const result = yield client.accountSettings.createImage(data);
34812
34820
  return result.data;
34813
34821
  }),
@@ -34816,7 +34824,7 @@ const useCreateAccountImage = () => {
34816
34824
  });
34817
34825
  };
34818
34826
 
34819
- var __async$R = (__this, __arguments, generator) => {
34827
+ var __async$S = (__this, __arguments, generator) => {
34820
34828
  return new Promise((resolve, reject) => {
34821
34829
  var fulfilled = (value) => {
34822
34830
  try {
@@ -34839,7 +34847,7 @@ var __async$R = (__this, __arguments, generator) => {
34839
34847
  const useDeleteAccountImage = () => {
34840
34848
  const { client } = useShipEngine();
34841
34849
  return useMutation({
34842
- mutationFn: (labelImageId) => __async$R(void 0, null, function* () {
34850
+ mutationFn: (labelImageId) => __async$S(void 0, null, function* () {
34843
34851
  const result = yield client.accountSettings.deleteImage(labelImageId);
34844
34852
  return result.data;
34845
34853
  }),
@@ -34868,7 +34876,7 @@ const useGetAccountSettings = () => {
34868
34876
  });
34869
34877
  };
34870
34878
 
34871
- var __async$Q = (__this, __arguments, generator) => {
34879
+ var __async$R = (__this, __arguments, generator) => {
34872
34880
  return new Promise((resolve, reject) => {
34873
34881
  var fulfilled = (value) => {
34874
34882
  try {
@@ -34891,7 +34899,7 @@ var __async$Q = (__this, __arguments, generator) => {
34891
34899
  const useUpdateAccountImage = () => {
34892
34900
  const { client } = useShipEngine();
34893
34901
  return useMutation({
34894
- mutationFn: (data) => __async$Q(void 0, null, function* () {
34902
+ mutationFn: (data) => __async$R(void 0, null, function* () {
34895
34903
  const result = yield client.accountSettings.updateImage(data);
34896
34904
  return result.data;
34897
34905
  }),
@@ -34900,7 +34908,7 @@ const useUpdateAccountImage = () => {
34900
34908
  });
34901
34909
  };
34902
34910
 
34903
- var __async$P = (__this, __arguments, generator) => {
34911
+ var __async$Q = (__this, __arguments, generator) => {
34904
34912
  return new Promise((resolve, reject) => {
34905
34913
  var fulfilled = (value) => {
34906
34914
  try {
@@ -34923,7 +34931,7 @@ var __async$P = (__this, __arguments, generator) => {
34923
34931
  const useUpdateAccountSettings = () => {
34924
34932
  const { client } = useShipEngine();
34925
34933
  return useMutation({
34926
- mutationFn: (settings) => __async$P(void 0, null, function* () {
34934
+ mutationFn: (settings) => __async$Q(void 0, null, function* () {
34927
34935
  const result = yield client.accountSettings.update(settings);
34928
34936
  return result.data;
34929
34937
  }),
@@ -34932,7 +34940,7 @@ const useUpdateAccountSettings = () => {
34932
34940
  });
34933
34941
  };
34934
34942
 
34935
- var __async$O = (__this, __arguments, generator) => {
34943
+ var __async$P = (__this, __arguments, generator) => {
34936
34944
  return new Promise((resolve, reject) => {
34937
34945
  var fulfilled = (value) => {
34938
34946
  try {
@@ -34955,7 +34963,7 @@ var __async$O = (__this, __arguments, generator) => {
34955
34963
  const useParseAddress = () => {
34956
34964
  const { client } = useShipEngine();
34957
34965
  return useMutation({
34958
- mutationFn: (_0) => __async$O(void 0, [_0], function* ({ address, text }) {
34966
+ mutationFn: (_0) => __async$P(void 0, [_0], function* ({ address, text }) {
34959
34967
  const result = yield client.addresses.parse(text, address);
34960
34968
  return result.data;
34961
34969
  }),
@@ -34964,7 +34972,7 @@ const useParseAddress = () => {
34964
34972
  });
34965
34973
  };
34966
34974
 
34967
- var __async$N = (__this, __arguments, generator) => {
34975
+ var __async$O = (__this, __arguments, generator) => {
34968
34976
  return new Promise((resolve, reject) => {
34969
34977
  var fulfilled = (value) => {
34970
34978
  try {
@@ -34987,7 +34995,7 @@ var __async$N = (__this, __arguments, generator) => {
34987
34995
  const useValidateAddresses = () => {
34988
34996
  const { client } = useShipEngine();
34989
34997
  return useMutation({
34990
- mutationFn: (addresses) => __async$N(void 0, null, function* () {
34998
+ mutationFn: (addresses) => __async$O(void 0, null, function* () {
34991
34999
  const result = yield client.addresses.validate(addresses);
34992
35000
  return result.data;
34993
35001
  }),
@@ -34996,26 +35004,26 @@ const useValidateAddresses = () => {
34996
35004
  });
34997
35005
  };
34998
35006
 
34999
- var __defProp$t = Object.defineProperty;
35000
- var __defProps$q = Object.defineProperties;
35001
- var __getOwnPropDescs$q = Object.getOwnPropertyDescriptors;
35002
- var __getOwnPropSymbols$D = Object.getOwnPropertySymbols;
35003
- var __hasOwnProp$D = Object.prototype.hasOwnProperty;
35004
- var __propIsEnum$D = Object.prototype.propertyIsEnumerable;
35005
- var __defNormalProp$t = (obj, key, value) => key in obj ? __defProp$t(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35006
- var __spreadValues$t = (a, b) => {
35007
+ var __defProp$v = Object.defineProperty;
35008
+ var __defProps$s = Object.defineProperties;
35009
+ var __getOwnPropDescs$s = Object.getOwnPropertyDescriptors;
35010
+ var __getOwnPropSymbols$E = Object.getOwnPropertySymbols;
35011
+ var __hasOwnProp$E = Object.prototype.hasOwnProperty;
35012
+ var __propIsEnum$E = Object.prototype.propertyIsEnumerable;
35013
+ var __defNormalProp$v = (obj, key, value) => key in obj ? __defProp$v(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35014
+ var __spreadValues$v = (a, b) => {
35007
35015
  for (var prop in b || (b = {}))
35008
- if (__hasOwnProp$D.call(b, prop))
35009
- __defNormalProp$t(a, prop, b[prop]);
35010
- if (__getOwnPropSymbols$D)
35011
- for (var prop of __getOwnPropSymbols$D(b)) {
35012
- if (__propIsEnum$D.call(b, prop))
35013
- __defNormalProp$t(a, prop, b[prop]);
35016
+ if (__hasOwnProp$E.call(b, prop))
35017
+ __defNormalProp$v(a, prop, b[prop]);
35018
+ if (__getOwnPropSymbols$E)
35019
+ for (var prop of __getOwnPropSymbols$E(b)) {
35020
+ if (__propIsEnum$E.call(b, prop))
35021
+ __defNormalProp$v(a, prop, b[prop]);
35014
35022
  }
35015
35023
  return a;
35016
35024
  };
35017
- var __spreadProps$q = (a, b) => __defProps$q(a, __getOwnPropDescs$q(b));
35018
- var __async$M = (__this, __arguments, generator) => {
35025
+ var __spreadProps$s = (a, b) => __defProps$s(a, __getOwnPropDescs$s(b));
35026
+ var __async$N = (__this, __arguments, generator) => {
35019
35027
  return new Promise((resolve, reject) => {
35020
35028
  var fulfilled = (value) => {
35021
35029
  try {
@@ -35037,8 +35045,8 @@ var __async$M = (__this, __arguments, generator) => {
35037
35045
  };
35038
35046
  const useCreateAuctanePaySession = (params) => {
35039
35047
  const { client } = useShipEngine();
35040
- return useMutation(__spreadProps$q(__spreadValues$t({}, params), {
35041
- mutationFn: (request) => __async$M(void 0, null, function* () {
35048
+ return useMutation(__spreadProps$s(__spreadValues$v({}, params), {
35049
+ mutationFn: (request) => __async$N(void 0, null, function* () {
35042
35050
  const result = yield client.auctanePay.createSession(request);
35043
35051
  return result.data;
35044
35052
  }),
@@ -35047,29 +35055,29 @@ const useCreateAuctanePaySession = (params) => {
35047
35055
  }));
35048
35056
  };
35049
35057
 
35050
- var __defProp$s = Object.defineProperty;
35051
- var __defProps$p = Object.defineProperties;
35052
- var __getOwnPropDescs$p = Object.getOwnPropertyDescriptors;
35053
- var __getOwnPropSymbols$C = Object.getOwnPropertySymbols;
35054
- var __hasOwnProp$C = Object.prototype.hasOwnProperty;
35055
- var __propIsEnum$C = Object.prototype.propertyIsEnumerable;
35056
- var __defNormalProp$s = (obj, key, value) => key in obj ? __defProp$s(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35057
- var __spreadValues$s = (a, b) => {
35058
+ var __defProp$u = Object.defineProperty;
35059
+ var __defProps$r = Object.defineProperties;
35060
+ var __getOwnPropDescs$r = Object.getOwnPropertyDescriptors;
35061
+ var __getOwnPropSymbols$D = Object.getOwnPropertySymbols;
35062
+ var __hasOwnProp$D = Object.prototype.hasOwnProperty;
35063
+ var __propIsEnum$D = Object.prototype.propertyIsEnumerable;
35064
+ var __defNormalProp$u = (obj, key, value) => key in obj ? __defProp$u(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35065
+ var __spreadValues$u = (a, b) => {
35058
35066
  for (var prop in b || (b = {}))
35059
- if (__hasOwnProp$C.call(b, prop))
35060
- __defNormalProp$s(a, prop, b[prop]);
35061
- if (__getOwnPropSymbols$C)
35062
- for (var prop of __getOwnPropSymbols$C(b)) {
35063
- if (__propIsEnum$C.call(b, prop))
35064
- __defNormalProp$s(a, prop, b[prop]);
35067
+ if (__hasOwnProp$D.call(b, prop))
35068
+ __defNormalProp$u(a, prop, b[prop]);
35069
+ if (__getOwnPropSymbols$D)
35070
+ for (var prop of __getOwnPropSymbols$D(b)) {
35071
+ if (__propIsEnum$D.call(b, prop))
35072
+ __defNormalProp$u(a, prop, b[prop]);
35065
35073
  }
35066
35074
  return a;
35067
35075
  };
35068
- var __spreadProps$p = (a, b) => __defProps$p(a, __getOwnPropDescs$p(b));
35076
+ var __spreadProps$r = (a, b) => __defProps$r(a, __getOwnPropDescs$r(b));
35069
35077
  const useGetAuctanePayConfig = (params) => {
35070
35078
  const { client } = useShipEngine();
35071
- const queryParams = __spreadValues$s({}, params);
35072
- return useQuery(__spreadProps$p(__spreadValues$s({}, queryParams), {
35079
+ const queryParams = __spreadValues$u({}, params);
35080
+ return useQuery(__spreadProps$r(__spreadValues$u({}, queryParams), {
35073
35081
  onError,
35074
35082
  queryFn: () => client.auctanePay.getConfig(),
35075
35083
  queryKey: ["useGetAuctanePayConfig"],
@@ -35077,7 +35085,7 @@ const useGetAuctanePayConfig = (params) => {
35077
35085
  }));
35078
35086
  };
35079
35087
 
35080
- var __async$L = (__this, __arguments, generator) => {
35088
+ var __async$M = (__this, __arguments, generator) => {
35081
35089
  return new Promise((resolve, reject) => {
35082
35090
  var fulfilled = (value) => {
35083
35091
  try {
@@ -35100,7 +35108,7 @@ var __async$L = (__this, __arguments, generator) => {
35100
35108
  const useAddFunds = () => {
35101
35109
  const { client } = useShipEngine();
35102
35110
  return useMutation({
35103
- mutationFn: (_0) => __async$L(void 0, [_0], function* ({ carrierId, funds }) {
35111
+ mutationFn: (_0) => __async$M(void 0, [_0], function* ({ carrierId, funds }) {
35104
35112
  const result = yield client.carriers.addFunds(carrierId, funds);
35105
35113
  return result.data;
35106
35114
  }),
@@ -35109,7 +35117,7 @@ const useAddFunds = () => {
35109
35117
  });
35110
35118
  };
35111
35119
 
35112
- var __async$K = (__this, __arguments, generator) => {
35120
+ var __async$L = (__this, __arguments, generator) => {
35113
35121
  return new Promise((resolve, reject) => {
35114
35122
  var fulfilled = (value) => {
35115
35123
  try {
@@ -35132,7 +35140,7 @@ var __async$K = (__this, __arguments, generator) => {
35132
35140
  const useConnectCarrier = () => {
35133
35141
  const { client } = useShipEngine();
35134
35142
  return useMutation({
35135
- mutationFn: (params) => __async$K(void 0, null, function* () {
35143
+ mutationFn: (params) => __async$L(void 0, null, function* () {
35136
35144
  const result = yield client.carriers.connect(params);
35137
35145
  return result.data;
35138
35146
  }),
@@ -35241,41 +35249,41 @@ const useGetServicesByCarrier = (carrierId) => {
35241
35249
  });
35242
35250
  };
35243
35251
 
35244
- var __defProp$r = Object.defineProperty;
35245
- var __defProps$o = Object.defineProperties;
35246
- var __getOwnPropDescs$o = Object.getOwnPropertyDescriptors;
35247
- var __getOwnPropSymbols$B = Object.getOwnPropertySymbols;
35248
- var __hasOwnProp$B = Object.prototype.hasOwnProperty;
35249
- var __propIsEnum$B = Object.prototype.propertyIsEnumerable;
35250
- var __defNormalProp$r = (obj, key, value) => key in obj ? __defProp$r(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35251
- var __spreadValues$r = (a, b) => {
35252
+ var __defProp$t = Object.defineProperty;
35253
+ var __defProps$q = Object.defineProperties;
35254
+ var __getOwnPropDescs$q = Object.getOwnPropertyDescriptors;
35255
+ var __getOwnPropSymbols$C = Object.getOwnPropertySymbols;
35256
+ var __hasOwnProp$C = Object.prototype.hasOwnProperty;
35257
+ var __propIsEnum$C = Object.prototype.propertyIsEnumerable;
35258
+ var __defNormalProp$t = (obj, key, value) => key in obj ? __defProp$t(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35259
+ var __spreadValues$t = (a, b) => {
35252
35260
  for (var prop in b || (b = {}))
35253
- if (__hasOwnProp$B.call(b, prop))
35254
- __defNormalProp$r(a, prop, b[prop]);
35255
- if (__getOwnPropSymbols$B)
35256
- for (var prop of __getOwnPropSymbols$B(b)) {
35257
- if (__propIsEnum$B.call(b, prop))
35258
- __defNormalProp$r(a, prop, b[prop]);
35261
+ if (__hasOwnProp$C.call(b, prop))
35262
+ __defNormalProp$t(a, prop, b[prop]);
35263
+ if (__getOwnPropSymbols$C)
35264
+ for (var prop of __getOwnPropSymbols$C(b)) {
35265
+ if (__propIsEnum$C.call(b, prop))
35266
+ __defNormalProp$t(a, prop, b[prop]);
35259
35267
  }
35260
35268
  return a;
35261
35269
  };
35262
- var __spreadProps$o = (a, b) => __defProps$o(a, __getOwnPropDescs$o(b));
35263
- var __objRest$m = (source, exclude) => {
35270
+ var __spreadProps$q = (a, b) => __defProps$q(a, __getOwnPropDescs$q(b));
35271
+ var __objRest$n = (source, exclude) => {
35264
35272
  var target = {};
35265
35273
  for (var prop in source)
35266
- if (__hasOwnProp$B.call(source, prop) && exclude.indexOf(prop) < 0)
35274
+ if (__hasOwnProp$C.call(source, prop) && exclude.indexOf(prop) < 0)
35267
35275
  target[prop] = source[prop];
35268
- if (source != null && __getOwnPropSymbols$B)
35269
- for (var prop of __getOwnPropSymbols$B(source)) {
35270
- if (exclude.indexOf(prop) < 0 && __propIsEnum$B.call(source, prop))
35276
+ if (source != null && __getOwnPropSymbols$C)
35277
+ for (var prop of __getOwnPropSymbols$C(source)) {
35278
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$C.call(source, prop))
35271
35279
  target[prop] = source[prop];
35272
35280
  }
35273
35281
  return target;
35274
35282
  };
35275
35283
  const useListCarriers = (params) => {
35276
35284
  const { client } = useShipEngine();
35277
- const _a = __spreadValues$r({}, params), { queryFnParams } = _a, rest = __objRest$m(_a, ["queryFnParams"]);
35278
- return useQuery(__spreadProps$o(__spreadValues$r({}, rest), {
35285
+ const _a = __spreadValues$t({}, params), { queryFnParams } = _a, rest = __objRest$n(_a, ["queryFnParams"]);
35286
+ return useQuery(__spreadProps$q(__spreadValues$t({}, rest), {
35279
35287
  onError,
35280
35288
  queryFn: () => client.carriers.list(queryFnParams),
35281
35289
  queryKey: ["useListCarriers", queryFnParams],
@@ -35283,22 +35291,22 @@ const useListCarriers = (params) => {
35283
35291
  }));
35284
35292
  };
35285
35293
 
35286
- var __getOwnPropSymbols$A = Object.getOwnPropertySymbols;
35287
- var __hasOwnProp$A = Object.prototype.hasOwnProperty;
35288
- var __propIsEnum$A = Object.prototype.propertyIsEnumerable;
35289
- var __objRest$l = (source, exclude) => {
35294
+ var __getOwnPropSymbols$B = Object.getOwnPropertySymbols;
35295
+ var __hasOwnProp$B = Object.prototype.hasOwnProperty;
35296
+ var __propIsEnum$B = Object.prototype.propertyIsEnumerable;
35297
+ var __objRest$m = (source, exclude) => {
35290
35298
  var target = {};
35291
35299
  for (var prop in source)
35292
- if (__hasOwnProp$A.call(source, prop) && exclude.indexOf(prop) < 0)
35300
+ if (__hasOwnProp$B.call(source, prop) && exclude.indexOf(prop) < 0)
35293
35301
  target[prop] = source[prop];
35294
- if (source != null && __getOwnPropSymbols$A)
35295
- for (var prop of __getOwnPropSymbols$A(source)) {
35296
- if (exclude.indexOf(prop) < 0 && __propIsEnum$A.call(source, prop))
35302
+ if (source != null && __getOwnPropSymbols$B)
35303
+ for (var prop of __getOwnPropSymbols$B(source)) {
35304
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$B.call(source, prop))
35297
35305
  target[prop] = source[prop];
35298
35306
  }
35299
35307
  return target;
35300
35308
  };
35301
- var __async$J = (__this, __arguments, generator) => {
35309
+ var __async$K = (__this, __arguments, generator) => {
35302
35310
  return new Promise((resolve, reject) => {
35303
35311
  var fulfilled = (value) => {
35304
35312
  try {
@@ -35322,8 +35330,8 @@ const useUpdateAutoFunding = () => {
35322
35330
  const { client } = useShipEngine();
35323
35331
  const queryClient = useQueryClient();
35324
35332
  return useMutation({
35325
- mutationFn: (_a) => __async$J(void 0, null, function* () {
35326
- var _b = _a, { carrierId } = _b, options = __objRest$l(_b, ["carrierId"]);
35333
+ mutationFn: (_a) => __async$K(void 0, null, function* () {
35334
+ var _b = _a, { carrierId } = _b, options = __objRest$m(_b, ["carrierId"]);
35327
35335
  const result = yield client.carriers.updateAutoFunding(carrierId, options);
35328
35336
  return result.data;
35329
35337
  }),
@@ -35352,7 +35360,7 @@ const useGetZonesByCarrier = (carrierId) => {
35352
35360
  });
35353
35361
  };
35354
35362
 
35355
- var __async$I = (__this, __arguments, generator) => {
35363
+ var __async$J = (__this, __arguments, generator) => {
35356
35364
  return new Promise((resolve, reject) => {
35357
35365
  var fulfilled = (value) => {
35358
35366
  try {
@@ -35375,7 +35383,7 @@ var __async$I = (__this, __arguments, generator) => {
35375
35383
  const useDeleteCarrier = () => {
35376
35384
  const { client } = useShipEngine();
35377
35385
  return useMutation({
35378
- mutationFn: (carrierId) => __async$I(void 0, null, function* () {
35386
+ mutationFn: (carrierId) => __async$J(void 0, null, function* () {
35379
35387
  const result = yield client.carriers.delete(carrierId);
35380
35388
  return result.data;
35381
35389
  }),
@@ -35384,24 +35392,24 @@ const useDeleteCarrier = () => {
35384
35392
  });
35385
35393
  };
35386
35394
 
35387
- var __getOwnPropSymbols$z = Object.getOwnPropertySymbols;
35388
- var __hasOwnProp$z = Object.prototype.hasOwnProperty;
35389
- var __propIsEnum$z = Object.prototype.propertyIsEnumerable;
35390
- var __objRest$k = (source, exclude) => {
35395
+ var __getOwnPropSymbols$A = Object.getOwnPropertySymbols;
35396
+ var __hasOwnProp$A = Object.prototype.hasOwnProperty;
35397
+ var __propIsEnum$A = Object.prototype.propertyIsEnumerable;
35398
+ var __objRest$l = (source, exclude) => {
35391
35399
  var target = {};
35392
35400
  for (var prop in source)
35393
- if (__hasOwnProp$z.call(source, prop) && exclude.indexOf(prop) < 0)
35401
+ if (__hasOwnProp$A.call(source, prop) && exclude.indexOf(prop) < 0)
35394
35402
  target[prop] = source[prop];
35395
- if (source != null && __getOwnPropSymbols$z)
35396
- for (var prop of __getOwnPropSymbols$z(source)) {
35397
- if (exclude.indexOf(prop) < 0 && __propIsEnum$z.call(source, prop))
35403
+ if (source != null && __getOwnPropSymbols$A)
35404
+ for (var prop of __getOwnPropSymbols$A(source)) {
35405
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$A.call(source, prop))
35398
35406
  target[prop] = source[prop];
35399
35407
  }
35400
35408
  return target;
35401
35409
  };
35402
35410
  const useGetCarrierConnectionForm = (_params) => {
35403
35411
  const { client } = useShipEngine();
35404
- const _a = _params || {}, { carrierName, enabled = true } = _a, params = __objRest$k(_a, ["carrierName", "enabled"]);
35412
+ const _a = _params || {}, { carrierName, enabled = true } = _a, params = __objRest$l(_a, ["carrierName", "enabled"]);
35405
35413
  return useQuery({
35406
35414
  enabled,
35407
35415
  onError,
@@ -35411,24 +35419,24 @@ const useGetCarrierConnectionForm = (_params) => {
35411
35419
  });
35412
35420
  };
35413
35421
 
35414
- var __getOwnPropSymbols$y = Object.getOwnPropertySymbols;
35415
- var __hasOwnProp$y = Object.prototype.hasOwnProperty;
35416
- var __propIsEnum$y = Object.prototype.propertyIsEnumerable;
35417
- var __objRest$j = (source, exclude) => {
35422
+ var __getOwnPropSymbols$z = Object.getOwnPropertySymbols;
35423
+ var __hasOwnProp$z = Object.prototype.hasOwnProperty;
35424
+ var __propIsEnum$z = Object.prototype.propertyIsEnumerable;
35425
+ var __objRest$k = (source, exclude) => {
35418
35426
  var target = {};
35419
35427
  for (var prop in source)
35420
- if (__hasOwnProp$y.call(source, prop) && exclude.indexOf(prop) < 0)
35428
+ if (__hasOwnProp$z.call(source, prop) && exclude.indexOf(prop) < 0)
35421
35429
  target[prop] = source[prop];
35422
- if (source != null && __getOwnPropSymbols$y)
35423
- for (var prop of __getOwnPropSymbols$y(source)) {
35424
- if (exclude.indexOf(prop) < 0 && __propIsEnum$y.call(source, prop))
35430
+ if (source != null && __getOwnPropSymbols$z)
35431
+ for (var prop of __getOwnPropSymbols$z(source)) {
35432
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$z.call(source, prop))
35425
35433
  target[prop] = source[prop];
35426
35434
  }
35427
35435
  return target;
35428
35436
  };
35429
35437
  const useListCarrierConnections = (_params) => {
35430
35438
  const { client } = useShipEngine();
35431
- const _a = _params || {}, { enabled = true } = _a, params = __objRest$j(_a, ["enabled"]);
35439
+ const _a = _params || {}, { enabled = true } = _a, params = __objRest$k(_a, ["enabled"]);
35432
35440
  return useQuery({
35433
35441
  enabled,
35434
35442
  onError,
@@ -35438,7 +35446,7 @@ const useListCarrierConnections = (_params) => {
35438
35446
  });
35439
35447
  };
35440
35448
 
35441
- var __async$H = (__this, __arguments, generator) => {
35449
+ var __async$I = (__this, __arguments, generator) => {
35442
35450
  return new Promise((resolve, reject) => {
35443
35451
  var fulfilled = (value) => {
35444
35452
  try {
@@ -35461,7 +35469,7 @@ var __async$H = (__this, __arguments, generator) => {
35461
35469
  const useConnectCarrierAccount = () => {
35462
35470
  const { client } = useShipEngine();
35463
35471
  return useMutation({
35464
- mutationFn: (_0) => __async$H(void 0, [_0], function* ({ carrierName, formData }) {
35472
+ mutationFn: (_0) => __async$I(void 0, [_0], function* ({ carrierName, formData }) {
35465
35473
  const result = yield client.connections.connectCarrier(carrierName, formData);
35466
35474
  return result.data;
35467
35475
  }),
@@ -35481,33 +35489,33 @@ const useCarrierConnectionsServicesList = (carrierCode) => {
35481
35489
  });
35482
35490
  };
35483
35491
 
35484
- var __defProp$q = Object.defineProperty;
35485
- var __defProps$n = Object.defineProperties;
35486
- var __getOwnPropDescs$n = Object.getOwnPropertyDescriptors;
35487
- var __getOwnPropSymbols$x = Object.getOwnPropertySymbols;
35488
- var __hasOwnProp$x = Object.prototype.hasOwnProperty;
35489
- var __propIsEnum$x = Object.prototype.propertyIsEnumerable;
35490
- var __defNormalProp$q = (obj, key, value) => key in obj ? __defProp$q(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35491
- var __spreadValues$q = (a, b) => {
35492
+ var __defProp$s = Object.defineProperty;
35493
+ var __defProps$p = Object.defineProperties;
35494
+ var __getOwnPropDescs$p = Object.getOwnPropertyDescriptors;
35495
+ var __getOwnPropSymbols$y = Object.getOwnPropertySymbols;
35496
+ var __hasOwnProp$y = Object.prototype.hasOwnProperty;
35497
+ var __propIsEnum$y = Object.prototype.propertyIsEnumerable;
35498
+ var __defNormalProp$s = (obj, key, value) => key in obj ? __defProp$s(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35499
+ var __spreadValues$s = (a, b) => {
35492
35500
  for (var prop in b || (b = {}))
35493
- if (__hasOwnProp$x.call(b, prop))
35494
- __defNormalProp$q(a, prop, b[prop]);
35495
- if (__getOwnPropSymbols$x)
35496
- for (var prop of __getOwnPropSymbols$x(b)) {
35497
- if (__propIsEnum$x.call(b, prop))
35498
- __defNormalProp$q(a, prop, b[prop]);
35501
+ if (__hasOwnProp$y.call(b, prop))
35502
+ __defNormalProp$s(a, prop, b[prop]);
35503
+ if (__getOwnPropSymbols$y)
35504
+ for (var prop of __getOwnPropSymbols$y(b)) {
35505
+ if (__propIsEnum$y.call(b, prop))
35506
+ __defNormalProp$s(a, prop, b[prop]);
35499
35507
  }
35500
35508
  return a;
35501
35509
  };
35502
- var __spreadProps$n = (a, b) => __defProps$n(a, __getOwnPropDescs$n(b));
35503
- var __objRest$i = (source, exclude) => {
35510
+ var __spreadProps$p = (a, b) => __defProps$p(a, __getOwnPropDescs$p(b));
35511
+ var __objRest$j = (source, exclude) => {
35504
35512
  var target = {};
35505
35513
  for (var prop in source)
35506
- if (__hasOwnProp$x.call(source, prop) && exclude.indexOf(prop) < 0)
35514
+ if (__hasOwnProp$y.call(source, prop) && exclude.indexOf(prop) < 0)
35507
35515
  target[prop] = source[prop];
35508
- if (source != null && __getOwnPropSymbols$x)
35509
- for (var prop of __getOwnPropSymbols$x(source)) {
35510
- if (exclude.indexOf(prop) < 0 && __propIsEnum$x.call(source, prop))
35516
+ if (source != null && __getOwnPropSymbols$y)
35517
+ for (var prop of __getOwnPropSymbols$y(source)) {
35518
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$y.call(source, prop))
35511
35519
  target[prop] = source[prop];
35512
35520
  }
35513
35521
  return target;
@@ -35515,12 +35523,12 @@ var __objRest$i = (source, exclude) => {
35515
35523
  const useGetConnectionsCarrierSettings = (_a) => {
35516
35524
  var _b = _a, {
35517
35525
  queryFnParams
35518
- } = _b, params = __objRest$i(_b, [
35526
+ } = _b, params = __objRest$j(_b, [
35519
35527
  "queryFnParams"
35520
35528
  ]);
35521
35529
  const { client } = useShipEngine();
35522
35530
  const { carrierName, carrierId } = queryFnParams;
35523
- return useQuery(__spreadProps$n(__spreadValues$q({}, params), {
35531
+ return useQuery(__spreadProps$p(__spreadValues$s({}, params), {
35524
35532
  onError,
35525
35533
  queryFn: () => client.connections.getCarrierSettings(carrierName, carrierId),
35526
35534
  queryKey: ["useGetConnectionsCarrierSettings", carrierName, carrierId],
@@ -35528,26 +35536,26 @@ const useGetConnectionsCarrierSettings = (_a) => {
35528
35536
  }));
35529
35537
  };
35530
35538
 
35531
- var __defProp$p = Object.defineProperty;
35532
- var __defProps$m = Object.defineProperties;
35533
- var __getOwnPropDescs$m = Object.getOwnPropertyDescriptors;
35534
- var __getOwnPropSymbols$w = Object.getOwnPropertySymbols;
35535
- var __hasOwnProp$w = Object.prototype.hasOwnProperty;
35536
- var __propIsEnum$w = Object.prototype.propertyIsEnumerable;
35537
- var __defNormalProp$p = (obj, key, value) => key in obj ? __defProp$p(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35538
- var __spreadValues$p = (a, b) => {
35539
+ var __defProp$r = Object.defineProperty;
35540
+ var __defProps$o = Object.defineProperties;
35541
+ var __getOwnPropDescs$o = Object.getOwnPropertyDescriptors;
35542
+ var __getOwnPropSymbols$x = Object.getOwnPropertySymbols;
35543
+ var __hasOwnProp$x = Object.prototype.hasOwnProperty;
35544
+ var __propIsEnum$x = Object.prototype.propertyIsEnumerable;
35545
+ var __defNormalProp$r = (obj, key, value) => key in obj ? __defProp$r(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35546
+ var __spreadValues$r = (a, b) => {
35539
35547
  for (var prop in b || (b = {}))
35540
- if (__hasOwnProp$w.call(b, prop))
35541
- __defNormalProp$p(a, prop, b[prop]);
35542
- if (__getOwnPropSymbols$w)
35543
- for (var prop of __getOwnPropSymbols$w(b)) {
35544
- if (__propIsEnum$w.call(b, prop))
35545
- __defNormalProp$p(a, prop, b[prop]);
35548
+ if (__hasOwnProp$x.call(b, prop))
35549
+ __defNormalProp$r(a, prop, b[prop]);
35550
+ if (__getOwnPropSymbols$x)
35551
+ for (var prop of __getOwnPropSymbols$x(b)) {
35552
+ if (__propIsEnum$x.call(b, prop))
35553
+ __defNormalProp$r(a, prop, b[prop]);
35546
35554
  }
35547
35555
  return a;
35548
35556
  };
35549
- var __spreadProps$m = (a, b) => __defProps$m(a, __getOwnPropDescs$m(b));
35550
- var __async$G = (__this, __arguments, generator) => {
35557
+ var __spreadProps$o = (a, b) => __defProps$o(a, __getOwnPropDescs$o(b));
35558
+ var __async$H = (__this, __arguments, generator) => {
35551
35559
  return new Promise((resolve, reject) => {
35552
35560
  var fulfilled = (value) => {
35553
35561
  try {
@@ -35569,8 +35577,8 @@ var __async$G = (__this, __arguments, generator) => {
35569
35577
  };
35570
35578
  const useUpdateConnectionsCarrierSettings = (params) => {
35571
35579
  const { client } = useShipEngine();
35572
- return useMutation(__spreadProps$m(__spreadValues$p({}, params), {
35573
- mutationFn: (_0) => __async$G(void 0, [_0], function* ({
35580
+ return useMutation(__spreadProps$o(__spreadValues$r({}, params), {
35581
+ mutationFn: (_0) => __async$H(void 0, [_0], function* ({
35574
35582
  carrierName,
35575
35583
  carrierId,
35576
35584
  formData
@@ -35597,7 +35605,7 @@ const useListCustomPackageTypes = () => {
35597
35605
  });
35598
35606
  };
35599
35607
 
35600
- var __async$F = (__this, __arguments, generator) => {
35608
+ var __async$G = (__this, __arguments, generator) => {
35601
35609
  return new Promise((resolve, reject) => {
35602
35610
  var fulfilled = (value) => {
35603
35611
  try {
@@ -35620,7 +35628,7 @@ var __async$F = (__this, __arguments, generator) => {
35620
35628
  const useCreateFundingSource = () => {
35621
35629
  const { client } = useShipEngine();
35622
35630
  return useMutation({
35623
- mutationFn: (fundingSource) => __async$F(void 0, null, function* () {
35631
+ mutationFn: (fundingSource) => __async$G(void 0, null, function* () {
35624
35632
  const result = yield client.fundingSources.create(fundingSource);
35625
35633
  return result.data;
35626
35634
  }),
@@ -35629,7 +35637,7 @@ const useCreateFundingSource = () => {
35629
35637
  });
35630
35638
  };
35631
35639
 
35632
- var __async$E = (__this, __arguments, generator) => {
35640
+ var __async$F = (__this, __arguments, generator) => {
35633
35641
  return new Promise((resolve, reject) => {
35634
35642
  var fulfilled = (value) => {
35635
35643
  try {
@@ -35652,7 +35660,7 @@ var __async$E = (__this, __arguments, generator) => {
35652
35660
  const useFundingSourcesAddFunds = () => {
35653
35661
  const { client } = useShipEngine();
35654
35662
  return useMutation({
35655
- mutationFn: (_0) => __async$E(void 0, [_0], function* ({ funds, fundingSourceId }) {
35663
+ mutationFn: (_0) => __async$F(void 0, [_0], function* ({ funds, fundingSourceId }) {
35656
35664
  const result = yield client.fundingSources.addFunds(funds, fundingSourceId);
35657
35665
  return result.data;
35658
35666
  }),
@@ -35681,7 +35689,7 @@ const useListFundingSources = () => {
35681
35689
  });
35682
35690
  };
35683
35691
 
35684
- var __async$D = (__this, __arguments, generator) => {
35692
+ var __async$E = (__this, __arguments, generator) => {
35685
35693
  return new Promise((resolve, reject) => {
35686
35694
  var fulfilled = (value) => {
35687
35695
  try {
@@ -35704,7 +35712,7 @@ var __async$D = (__this, __arguments, generator) => {
35704
35712
  const useRegisterCarrier = () => {
35705
35713
  const { client } = useShipEngine();
35706
35714
  return useMutation({
35707
- mutationFn: (carrier) => __async$D(void 0, null, function* () {
35715
+ mutationFn: (carrier) => __async$E(void 0, null, function* () {
35708
35716
  const result = yield client.fundingSources.registerCarrier(carrier);
35709
35717
  return result.data;
35710
35718
  }),
@@ -35713,7 +35721,7 @@ const useRegisterCarrier = () => {
35713
35721
  });
35714
35722
  };
35715
35723
 
35716
- var __async$C = (__this, __arguments, generator) => {
35724
+ var __async$D = (__this, __arguments, generator) => {
35717
35725
  return new Promise((resolve, reject) => {
35718
35726
  var fulfilled = (value) => {
35719
35727
  try {
@@ -35736,7 +35744,7 @@ var __async$C = (__this, __arguments, generator) => {
35736
35744
  const useUpdateFundingSource = () => {
35737
35745
  const { client } = useShipEngine();
35738
35746
  return useMutation({
35739
- mutationFn: (_0) => __async$C(void 0, [_0], function* ({
35747
+ mutationFn: (_0) => __async$D(void 0, [_0], function* ({
35740
35748
  billingInfo,
35741
35749
  creditCardInfo,
35742
35750
  fundingSourceId,
@@ -35777,29 +35785,29 @@ const useGetFundingSourceTransactions = (fundingSourceId, params) => {
35777
35785
  });
35778
35786
  };
35779
35787
 
35780
- var __defProp$o = Object.defineProperty;
35781
- var __defProps$l = Object.defineProperties;
35782
- var __getOwnPropDescs$l = Object.getOwnPropertyDescriptors;
35783
- var __getOwnPropSymbols$v = Object.getOwnPropertySymbols;
35784
- var __hasOwnProp$v = Object.prototype.hasOwnProperty;
35785
- var __propIsEnum$v = Object.prototype.propertyIsEnumerable;
35786
- var __defNormalProp$o = (obj, key, value) => key in obj ? __defProp$o(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35787
- var __spreadValues$o = (a, b) => {
35788
+ var __defProp$q = Object.defineProperty;
35789
+ var __defProps$n = Object.defineProperties;
35790
+ var __getOwnPropDescs$n = Object.getOwnPropertyDescriptors;
35791
+ var __getOwnPropSymbols$w = Object.getOwnPropertySymbols;
35792
+ var __hasOwnProp$w = Object.prototype.hasOwnProperty;
35793
+ var __propIsEnum$w = Object.prototype.propertyIsEnumerable;
35794
+ var __defNormalProp$q = (obj, key, value) => key in obj ? __defProp$q(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35795
+ var __spreadValues$q = (a, b) => {
35788
35796
  for (var prop in b || (b = {}))
35789
- if (__hasOwnProp$v.call(b, prop))
35790
- __defNormalProp$o(a, prop, b[prop]);
35791
- if (__getOwnPropSymbols$v)
35792
- for (var prop of __getOwnPropSymbols$v(b)) {
35793
- if (__propIsEnum$v.call(b, prop))
35794
- __defNormalProp$o(a, prop, b[prop]);
35797
+ if (__hasOwnProp$w.call(b, prop))
35798
+ __defNormalProp$q(a, prop, b[prop]);
35799
+ if (__getOwnPropSymbols$w)
35800
+ for (var prop of __getOwnPropSymbols$w(b)) {
35801
+ if (__propIsEnum$w.call(b, prop))
35802
+ __defNormalProp$q(a, prop, b[prop]);
35795
35803
  }
35796
35804
  return a;
35797
35805
  };
35798
- var __spreadProps$l = (a, b) => __defProps$l(a, __getOwnPropDescs$l(b));
35806
+ var __spreadProps$n = (a, b) => __defProps$n(a, __getOwnPropDescs$n(b));
35799
35807
  const useGetInsuranceFundingSourceAcceptedTerms = (params) => {
35800
35808
  const { client } = useShipEngine();
35801
- const queryParams = __spreadValues$o({}, params);
35802
- return useQuery(__spreadProps$l(__spreadValues$o({}, queryParams), {
35809
+ const queryParams = __spreadValues$q({}, params);
35810
+ return useQuery(__spreadProps$n(__spreadValues$q({}, queryParams), {
35803
35811
  onError,
35804
35812
  queryFn: () => client.fundingSources.insuranceAcceptedTerms(),
35805
35813
  queryKey: ["useGetInsuranceFundingSourceAcceptedTerms"],
@@ -35822,22 +35830,22 @@ const useGetInsuranceAccount = (insuranceProvider) => {
35822
35830
  });
35823
35831
  };
35824
35832
 
35825
- var __getOwnPropSymbols$u = Object.getOwnPropertySymbols;
35826
- var __hasOwnProp$u = Object.prototype.hasOwnProperty;
35827
- var __propIsEnum$u = Object.prototype.propertyIsEnumerable;
35828
- var __objRest$h = (source, exclude) => {
35833
+ var __getOwnPropSymbols$v = Object.getOwnPropertySymbols;
35834
+ var __hasOwnProp$v = Object.prototype.hasOwnProperty;
35835
+ var __propIsEnum$v = Object.prototype.propertyIsEnumerable;
35836
+ var __objRest$i = (source, exclude) => {
35829
35837
  var target = {};
35830
35838
  for (var prop in source)
35831
- if (__hasOwnProp$u.call(source, prop) && exclude.indexOf(prop) < 0)
35839
+ if (__hasOwnProp$v.call(source, prop) && exclude.indexOf(prop) < 0)
35832
35840
  target[prop] = source[prop];
35833
- if (source != null && __getOwnPropSymbols$u)
35834
- for (var prop of __getOwnPropSymbols$u(source)) {
35835
- if (exclude.indexOf(prop) < 0 && __propIsEnum$u.call(source, prop))
35841
+ if (source != null && __getOwnPropSymbols$v)
35842
+ for (var prop of __getOwnPropSymbols$v(source)) {
35843
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$v.call(source, prop))
35836
35844
  target[prop] = source[prop];
35837
35845
  }
35838
35846
  return target;
35839
35847
  };
35840
- var __async$B = (__this, __arguments, generator) => {
35848
+ var __async$C = (__this, __arguments, generator) => {
35841
35849
  return new Promise((resolve, reject) => {
35842
35850
  var fulfilled = (value) => {
35843
35851
  try {
@@ -35860,8 +35868,8 @@ var __async$B = (__this, __arguments, generator) => {
35860
35868
  const useAddInsuranceFunds = () => {
35861
35869
  const { client } = useShipEngine();
35862
35870
  return useMutation({
35863
- mutationFn: (_a) => __async$B(void 0, null, function* () {
35864
- var _b = _a, { insuranceProvider } = _b, rest = __objRest$h(_b, ["insuranceProvider"]);
35871
+ mutationFn: (_a) => __async$C(void 0, null, function* () {
35872
+ var _b = _a, { insuranceProvider } = _b, rest = __objRest$i(_b, ["insuranceProvider"]);
35865
35873
  const result = yield client.insurance.addFunds(insuranceProvider, rest);
35866
35874
  return result.data;
35867
35875
  }),
@@ -35870,25 +35878,76 @@ const useAddInsuranceFunds = () => {
35870
35878
  });
35871
35879
  };
35872
35880
 
35873
- var __defProp$n = Object.defineProperty;
35874
- var __defProps$k = Object.defineProperties;
35875
- var __getOwnPropDescs$k = Object.getOwnPropertyDescriptors;
35881
+ var __defProp$p = Object.defineProperty;
35882
+ var __defProps$m = Object.defineProperties;
35883
+ var __getOwnPropDescs$m = Object.getOwnPropertyDescriptors;
35884
+ var __getOwnPropSymbols$u = Object.getOwnPropertySymbols;
35885
+ var __hasOwnProp$u = Object.prototype.hasOwnProperty;
35886
+ var __propIsEnum$u = Object.prototype.propertyIsEnumerable;
35887
+ var __defNormalProp$p = (obj, key, value) => key in obj ? __defProp$p(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35888
+ var __spreadValues$p = (a, b) => {
35889
+ for (var prop in b || (b = {}))
35890
+ if (__hasOwnProp$u.call(b, prop))
35891
+ __defNormalProp$p(a, prop, b[prop]);
35892
+ if (__getOwnPropSymbols$u)
35893
+ for (var prop of __getOwnPropSymbols$u(b)) {
35894
+ if (__propIsEnum$u.call(b, prop))
35895
+ __defNormalProp$p(a, prop, b[prop]);
35896
+ }
35897
+ return a;
35898
+ };
35899
+ var __spreadProps$m = (a, b) => __defProps$m(a, __getOwnPropDescs$m(b));
35900
+ var __async$B = (__this, __arguments, generator) => {
35901
+ return new Promise((resolve, reject) => {
35902
+ var fulfilled = (value) => {
35903
+ try {
35904
+ step(generator.next(value));
35905
+ } catch (e) {
35906
+ reject(e);
35907
+ }
35908
+ };
35909
+ var rejected = (value) => {
35910
+ try {
35911
+ step(generator.throw(value));
35912
+ } catch (e) {
35913
+ reject(e);
35914
+ }
35915
+ };
35916
+ var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
35917
+ step((generator = generator.apply(__this, __arguments)).next());
35918
+ });
35919
+ };
35920
+ const useCreateInvoiceAddress = (params) => {
35921
+ const { client } = useShipEngine();
35922
+ return useMutation(__spreadProps$m(__spreadValues$p({}, params), {
35923
+ mutationFn: (invoiceAddress) => __async$B(void 0, null, function* () {
35924
+ const result = yield client.invoiceAddress.create(invoiceAddress);
35925
+ return result.data;
35926
+ }),
35927
+ mutationKey: ["useCreateInvoiceAddress"],
35928
+ onError
35929
+ }));
35930
+ };
35931
+
35932
+ var __defProp$o = Object.defineProperty;
35933
+ var __defProps$l = Object.defineProperties;
35934
+ var __getOwnPropDescs$l = Object.getOwnPropertyDescriptors;
35876
35935
  var __getOwnPropSymbols$t = Object.getOwnPropertySymbols;
35877
35936
  var __hasOwnProp$t = Object.prototype.hasOwnProperty;
35878
35937
  var __propIsEnum$t = Object.prototype.propertyIsEnumerable;
35879
- var __defNormalProp$n = (obj, key, value) => key in obj ? __defProp$n(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35880
- var __spreadValues$n = (a, b) => {
35938
+ var __defNormalProp$o = (obj, key, value) => key in obj ? __defProp$o(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35939
+ var __spreadValues$o = (a, b) => {
35881
35940
  for (var prop in b || (b = {}))
35882
35941
  if (__hasOwnProp$t.call(b, prop))
35883
- __defNormalProp$n(a, prop, b[prop]);
35942
+ __defNormalProp$o(a, prop, b[prop]);
35884
35943
  if (__getOwnPropSymbols$t)
35885
35944
  for (var prop of __getOwnPropSymbols$t(b)) {
35886
35945
  if (__propIsEnum$t.call(b, prop))
35887
- __defNormalProp$n(a, prop, b[prop]);
35946
+ __defNormalProp$o(a, prop, b[prop]);
35888
35947
  }
35889
35948
  return a;
35890
35949
  };
35891
- var __spreadProps$k = (a, b) => __defProps$k(a, __getOwnPropDescs$k(b));
35950
+ var __spreadProps$l = (a, b) => __defProps$l(a, __getOwnPropDescs$l(b));
35892
35951
  var __async$A = (__this, __arguments, generator) => {
35893
35952
  return new Promise((resolve, reject) => {
35894
35953
  var fulfilled = (value) => {
@@ -35909,37 +35968,78 @@ var __async$A = (__this, __arguments, generator) => {
35909
35968
  step((generator = generator.apply(__this, __arguments)).next());
35910
35969
  });
35911
35970
  };
35912
- const useCreateInvoiceAddress = (params) => {
35971
+ const useUpdateInvoiceAddress = (params) => {
35913
35972
  const { client } = useShipEngine();
35914
- return useMutation(__spreadProps$k(__spreadValues$n({}, params), {
35973
+ return useMutation(__spreadProps$l(__spreadValues$o({}, params), {
35915
35974
  mutationFn: (invoiceAddress) => __async$A(void 0, null, function* () {
35916
- const result = yield client.invoiceAddress.create(invoiceAddress);
35975
+ const result = yield client.invoiceAddress.update(invoiceAddress);
35917
35976
  return result.data;
35918
35977
  }),
35919
- mutationKey: ["useCreateInvoiceAddress"],
35978
+ mutationKey: ["useUpdateInvoiceAddress"],
35920
35979
  onError
35921
35980
  }));
35922
35981
  };
35923
35982
 
35924
- var __defProp$m = Object.defineProperty;
35925
- var __defProps$j = Object.defineProperties;
35926
- var __getOwnPropDescs$j = Object.getOwnPropertyDescriptors;
35983
+ var __defProp$n = Object.defineProperty;
35984
+ var __defProps$k = Object.defineProperties;
35985
+ var __getOwnPropDescs$k = Object.getOwnPropertyDescriptors;
35927
35986
  var __getOwnPropSymbols$s = Object.getOwnPropertySymbols;
35928
35987
  var __hasOwnProp$s = Object.prototype.hasOwnProperty;
35929
35988
  var __propIsEnum$s = Object.prototype.propertyIsEnumerable;
35930
- var __defNormalProp$m = (obj, key, value) => key in obj ? __defProp$m(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35931
- var __spreadValues$m = (a, b) => {
35989
+ var __defNormalProp$n = (obj, key, value) => key in obj ? __defProp$n(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35990
+ var __spreadValues$n = (a, b) => {
35932
35991
  for (var prop in b || (b = {}))
35933
35992
  if (__hasOwnProp$s.call(b, prop))
35934
- __defNormalProp$m(a, prop, b[prop]);
35993
+ __defNormalProp$n(a, prop, b[prop]);
35935
35994
  if (__getOwnPropSymbols$s)
35936
35995
  for (var prop of __getOwnPropSymbols$s(b)) {
35937
35996
  if (__propIsEnum$s.call(b, prop))
35997
+ __defNormalProp$n(a, prop, b[prop]);
35998
+ }
35999
+ return a;
36000
+ };
36001
+ var __spreadProps$k = (a, b) => __defProps$k(a, __getOwnPropDescs$k(b));
36002
+ const useGetInvoiceAddress = (params) => {
36003
+ const { client } = useShipEngine();
36004
+ return useQuery(__spreadProps$k(__spreadValues$n({}, params), {
36005
+ onError,
36006
+ queryFn: () => client.invoiceAddress.get(),
36007
+ queryKey: ["useGetInvoiceAddress"],
36008
+ select: (result) => result.data
36009
+ }));
36010
+ };
36011
+
36012
+ var __defProp$m = Object.defineProperty;
36013
+ var __defProps$j = Object.defineProperties;
36014
+ var __getOwnPropDescs$j = Object.getOwnPropertyDescriptors;
36015
+ var __getOwnPropSymbols$r = Object.getOwnPropertySymbols;
36016
+ var __hasOwnProp$r = Object.prototype.hasOwnProperty;
36017
+ var __propIsEnum$r = Object.prototype.propertyIsEnumerable;
36018
+ var __defNormalProp$m = (obj, key, value) => key in obj ? __defProp$m(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
36019
+ var __spreadValues$m = (a, b) => {
36020
+ for (var prop in b || (b = {}))
36021
+ if (__hasOwnProp$r.call(b, prop))
36022
+ __defNormalProp$m(a, prop, b[prop]);
36023
+ if (__getOwnPropSymbols$r)
36024
+ for (var prop of __getOwnPropSymbols$r(b)) {
36025
+ if (__propIsEnum$r.call(b, prop))
35938
36026
  __defNormalProp$m(a, prop, b[prop]);
35939
36027
  }
35940
36028
  return a;
35941
36029
  };
35942
36030
  var __spreadProps$j = (a, b) => __defProps$j(a, __getOwnPropDescs$j(b));
36031
+ var __objRest$h = (source, exclude) => {
36032
+ var target = {};
36033
+ for (var prop in source)
36034
+ if (__hasOwnProp$r.call(source, prop) && exclude.indexOf(prop) < 0)
36035
+ target[prop] = source[prop];
36036
+ if (source != null && __getOwnPropSymbols$r)
36037
+ for (var prop of __getOwnPropSymbols$r(source)) {
36038
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$r.call(source, prop))
36039
+ target[prop] = source[prop];
36040
+ }
36041
+ return target;
36042
+ };
35943
36043
  var __async$z = (__this, __arguments, generator) => {
35944
36044
  return new Promise((resolve, reject) => {
35945
36045
  var fulfilled = (value) => {
@@ -35960,14 +36060,15 @@ var __async$z = (__this, __arguments, generator) => {
35960
36060
  step((generator = generator.apply(__this, __arguments)).next());
35961
36061
  });
35962
36062
  };
35963
- const useUpdateInvoiceAddress = (params) => {
36063
+ const useCreateLabelByRateId = (params) => {
35964
36064
  const { client } = useShipEngine();
35965
36065
  return useMutation(__spreadProps$j(__spreadValues$m({}, params), {
35966
- mutationFn: (invoiceAddress) => __async$z(void 0, null, function* () {
35967
- const result = yield client.invoiceAddress.update(invoiceAddress);
36066
+ mutationFn: (_a) => __async$z(void 0, null, function* () {
36067
+ var _b = _a, { rateId } = _b, options = __objRest$h(_b, ["rateId"]);
36068
+ const result = yield client.labels.createByRateId(rateId, options);
35968
36069
  return result.data;
35969
36070
  }),
35970
- mutationKey: ["useUpdateInvoiceAddress"],
36071
+ mutationKey: ["useCreateLabel"],
35971
36072
  onError
35972
36073
  }));
35973
36074
  };
@@ -35975,35 +36076,22 @@ const useUpdateInvoiceAddress = (params) => {
35975
36076
  var __defProp$l = Object.defineProperty;
35976
36077
  var __defProps$i = Object.defineProperties;
35977
36078
  var __getOwnPropDescs$i = Object.getOwnPropertyDescriptors;
35978
- var __getOwnPropSymbols$r = Object.getOwnPropertySymbols;
35979
- var __hasOwnProp$r = Object.prototype.hasOwnProperty;
35980
- var __propIsEnum$r = Object.prototype.propertyIsEnumerable;
36079
+ var __getOwnPropSymbols$q = Object.getOwnPropertySymbols;
36080
+ var __hasOwnProp$q = Object.prototype.hasOwnProperty;
36081
+ var __propIsEnum$q = Object.prototype.propertyIsEnumerable;
35981
36082
  var __defNormalProp$l = (obj, key, value) => key in obj ? __defProp$l(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35982
36083
  var __spreadValues$l = (a, b) => {
35983
36084
  for (var prop in b || (b = {}))
35984
- if (__hasOwnProp$r.call(b, prop))
36085
+ if (__hasOwnProp$q.call(b, prop))
35985
36086
  __defNormalProp$l(a, prop, b[prop]);
35986
- if (__getOwnPropSymbols$r)
35987
- for (var prop of __getOwnPropSymbols$r(b)) {
35988
- if (__propIsEnum$r.call(b, prop))
36087
+ if (__getOwnPropSymbols$q)
36088
+ for (var prop of __getOwnPropSymbols$q(b)) {
36089
+ if (__propIsEnum$q.call(b, prop))
35989
36090
  __defNormalProp$l(a, prop, b[prop]);
35990
36091
  }
35991
36092
  return a;
35992
36093
  };
35993
36094
  var __spreadProps$i = (a, b) => __defProps$i(a, __getOwnPropDescs$i(b));
35994
- const useGetInvoiceAddress = (params) => {
35995
- const { client } = useShipEngine();
35996
- return useQuery(__spreadProps$i(__spreadValues$l({}, params), {
35997
- onError,
35998
- queryFn: () => client.invoiceAddress.get(),
35999
- queryKey: ["useGetInvoiceAddress"],
36000
- select: (result) => result.data
36001
- }));
36002
- };
36003
-
36004
- var __getOwnPropSymbols$q = Object.getOwnPropertySymbols;
36005
- var __hasOwnProp$q = Object.prototype.hasOwnProperty;
36006
- var __propIsEnum$q = Object.prototype.propertyIsEnumerable;
36007
36095
  var __objRest$g = (source, exclude) => {
36008
36096
  var target = {};
36009
36097
  for (var prop in source)
@@ -36036,17 +36124,17 @@ var __async$y = (__this, __arguments, generator) => {
36036
36124
  step((generator = generator.apply(__this, __arguments)).next());
36037
36125
  });
36038
36126
  };
36039
- const useCreateLabel = () => {
36127
+ const useCreateLabelByShipmentId = (params) => {
36040
36128
  const { client } = useShipEngine();
36041
- return useMutation({
36129
+ return useMutation(__spreadProps$i(__spreadValues$l({}, params), {
36042
36130
  mutationFn: (_a) => __async$y(void 0, null, function* () {
36043
- var _b = _a, { rateId } = _b, options = __objRest$g(_b, ["rateId"]);
36044
- const result = yield client.labels.createByRateId(rateId, options);
36131
+ var _b = _a, { shipmentId } = _b, options = __objRest$g(_b, ["shipmentId"]);
36132
+ const result = yield client.labels.createByShipmentId(shipmentId, options);
36045
36133
  return result.data;
36046
36134
  }),
36047
- mutationKey: ["useCreateLabel"],
36135
+ mutationKey: ["useCreateLabelForShipment"],
36048
36136
  onError
36049
- });
36137
+ }));
36050
36138
  };
36051
36139
 
36052
36140
  const useGetLabel = (labelId) => {
@@ -39253,4 +39341,4 @@ const alchemy = {
39253
39341
  createElement
39254
39342
  };
39255
39343
 
39256
- export { AccountBillingAPI, AccountBillingPlanAPI, AccountBillingPlanChangeType, AccountSettingsAPI, AddressesAPI, AlchemyContext, AlchemyProvider, AlchemyTestProvider, AuctanePayAPI, CarriersAPI, CodedError, ConfirmationType, ConnectionsAPI, CreditCardVendor, Currency, CustomPackagesAPI, CustomsContentsType, CustomsNonDeliveryType, Element, ErrorBoundary, FundingSourcesAPI, InsuranceAPI, InsuranceProviderType, InvoiceAddressAPI, LabelsAPI, MetadataCapability, MetadataRequirement, MetadataSatisfyingFormTypes, MovementIndicator, OrderSourcesAPI, RateCardStatus, RateCardsAPI, RatesAPI, types as SE, SalesOrderShipmentsAPI, SalesOrdersAPI, SellersAPI, ServicePointsAPI, ShipEngine, ShipEngineAPI, ShipEngineContext, ShipmentsAPI, ShippingRulesAPI, ThemesAPI, WarehousesAPI, WebhooksAPI, alchemy, camelizeKeys, decamelizeKeys, alchemy as default, delay, getEmotionCache, getEndUserIpAddress, isCodedError, isCodedErrors, isDataCodedErrors, isInvalidTokenError, logger, onError, parseError, retryUntil, useAddFunds, useAddInsuranceFunds, useAddSandboxCarriers, useAlchemy, useCalculateRates, useCancelShipment, useCarrierConnectionsServicesList, useConnectCarrier, useConnectCarrierAccount, useCreateAccountImage, useCreateAuctanePaySession, useCreateFundingSource, useCreateInvoiceAddress, useCreateLabel, useCreateRateCard, useCreateSalesOrderShipment, useCreateSandboxSeller, useCreateSellerApiKey, useCreateShipment, useCreateShippingRule, useCreateWarehouse, useCreateWebhook, useDeactivateOrderSource, useDeleteAccountImage, useDeleteCarrier, useDeleteRateCard, useDeleteSellerApiKey, useDeleteShippingRule, useDeleteWarehouse, useDeleteWebhook, useDownloadRateCard, useEditShippingRule, useFundingSourcesAddFunds, useGetAccountBilling, useGetAccountBillingPlan, useGetAccountImages, useGetAccountSettings, useGetAuctanePayConfig, useGetAutoFundingConfiguration, useGetCarrierById, useGetCarrierConnectionForm, useGetConnectionsCarrierSettings, useGetCountriesByCarrier, useGetCurrenciesByCarrier, useGetFundingSourceById, useGetFundingSourceMetadata, useGetFundingSourceTransactions, useGetHereToken, useGetInsuranceAccount, useGetInsuranceFundingSourceAcceptedTerms, useGetInvoiceAddress, useGetLabel, useGetPackageRatingGroupByCarrier, useGetRateCardById, useGetSalesOrder, useGetSalesOrderByExternalOrderId, useGetSalesOrderShipment, useGetServicePoint, useGetServicesByCarrier, useGetShipment, useGetShipmentByExternalId, useGetShipmentRates, useGetShippingRuleById, useGetShippingRuleConditionsOptions, useGetThemeById, useGetZonesByCarrier, useI18n, useListCarrierConnections, useListCarriers, useListCustomPackageTypes, useListFundingSources, useListLabels, useListLabelsInfinite, useListOrderSources, useListOrderSourcesConnections, useListRateCards, useListSalesOrderShipments, useListSalesOrderShipmentsByExternalOrderId, useListSalesOrders, useListSandboxSellerIds, useListSellerApiKeys, useListServicePoints, useListShipments, useListShippingRules, useListWarehouses, useListWebhooks, useLoadIcons, useNotifySalesOrderShipped, useParseAddress, usePublishRateCard, useRatesEstimate, useRefreshOrderSource, useRefreshOrderSourceAsync, useRegisterCarrier, useShipEngine, useUpdateAccountBillingPlan, useUpdateAccountImage, useUpdateAccountSettings, useUpdateAutoFunding, useUpdateConnectionsCarrierSettings, useUpdateFundingSource, useUpdateInvoiceAddress, useUpdateOrderSource, useUpdateRateCard, useUpdateSalesOrderShipment, useUpdateWarehouse, useUpdateWebhook, useUploadRateCard, useUpsertAccountBilling, useValidateAddresses, useVoidLabel };
39344
+ export { AccountBillingAPI, AccountBillingPlanAPI, AccountBillingPlanChangeType, AccountSettingsAPI, AddressesAPI, AlchemyContext, AlchemyProvider, AlchemyTestProvider, AuctanePayAPI, CarriersAPI, CodedError, ConfirmationType, ConnectionsAPI, CreditCardVendor, Currency, CustomPackagesAPI, CustomsContentsType, CustomsNonDeliveryType, Element, ErrorBoundary, FundingSourcesAPI, InsuranceAPI, InsuranceProviderType, InvoiceAddressAPI, LabelsAPI, MetadataCapability, MetadataRequirement, MetadataSatisfyingFormTypes, MovementIndicator, OrderSourcesAPI, RateCardStatus, RateCardsAPI, RatesAPI, types as SE, SalesOrderShipmentsAPI, SalesOrdersAPI, SellersAPI, ServicePointsAPI, ShipEngine, ShipEngineAPI, ShipEngineContext, ShipmentsAPI, ShippingRulesAPI, ThemesAPI, WarehousesAPI, WebhooksAPI, alchemy, camelizeKeys, decamelizeKeys, alchemy as default, delay, getEmotionCache, getEndUserIpAddress, isCodedError, isCodedErrors, isDataCodedErrors, isInvalidTokenError, logger, onError, parseError, retryUntil, useAddFunds, useAddInsuranceFunds, useAddSandboxCarriers, useAlchemy, useCalculateRates, useCancelShipment, useCarrierConnectionsServicesList, useConnectCarrier, useConnectCarrierAccount, useCreateAccountImage, useCreateAuctanePaySession, useCreateFundingSource, useCreateInvoiceAddress, useCreateLabelByRateId, useCreateLabelByShipmentId, useCreateRateCard, useCreateSalesOrderShipment, useCreateSandboxSeller, useCreateSellerApiKey, useCreateShipment, useCreateShippingRule, useCreateWarehouse, useCreateWebhook, useDeactivateOrderSource, useDeleteAccountImage, useDeleteCarrier, useDeleteRateCard, useDeleteSellerApiKey, useDeleteShippingRule, useDeleteWarehouse, useDeleteWebhook, useDownloadRateCard, useEditShippingRule, useFundingSourcesAddFunds, useGetAccountBilling, useGetAccountBillingPlan, useGetAccountImages, useGetAccountSettings, useGetAuctanePayConfig, useGetAutoFundingConfiguration, useGetCarrierById, useGetCarrierConnectionForm, useGetConnectionsCarrierSettings, useGetCountriesByCarrier, useGetCurrenciesByCarrier, useGetFundingSourceById, useGetFundingSourceMetadata, useGetFundingSourceTransactions, useGetHereToken, useGetInsuranceAccount, useGetInsuranceFundingSourceAcceptedTerms, useGetInvoiceAddress, useGetLabel, useGetPackageRatingGroupByCarrier, useGetRateCardById, useGetSalesOrder, useGetSalesOrderByExternalOrderId, useGetSalesOrderShipment, useGetServicePoint, useGetServicesByCarrier, useGetShipment, useGetShipmentByExternalId, useGetShipmentRates, useGetShippingRuleById, useGetShippingRuleConditionsOptions, useGetThemeById, useGetZonesByCarrier, useI18n, useListCarrierConnections, useListCarriers, useListCustomPackageTypes, useListFundingSources, useListLabels, useListLabelsInfinite, useListOrderSources, useListOrderSourcesConnections, useListRateCards, useListSalesOrderShipments, useListSalesOrderShipmentsByExternalOrderId, useListSalesOrders, useListSandboxSellerIds, useListSellerApiKeys, useListServicePoints, useListShipments, useListShippingRules, useListWarehouses, useListWebhooks, useLoadIcons, useNotifySalesOrderShipped, useParseAddress, usePublishRateCard, useRatesEstimate, useRefreshOrderSource, useRefreshOrderSourceAsync, useRegisterCarrier, useShipEngine, useUpdateAccountBillingPlan, useUpdateAccountImage, useUpdateAccountSettings, useUpdateAutoFunding, useUpdateConnectionsCarrierSettings, useUpdateFundingSource, useUpdateInvoiceAddress, useUpdateOrderSource, useUpdateRateCard, useUpdateSalesOrderShipment, useUpdateWarehouse, useUpdateWebhook, useUploadRateCard, useUpsertAccountBilling, useValidateAddresses, useVoidLabel };