@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.js CHANGED
@@ -10812,17 +10812,17 @@ var AccountBillingPlanChangeType = /* @__PURE__ */ ((AccountBillingPlanChangeTyp
10812
10812
  return AccountBillingPlanChangeType2;
10813
10813
  })(AccountBillingPlanChangeType || {});
10814
10814
 
10815
- var __getOwnPropSymbols$M = Object.getOwnPropertySymbols;
10816
- var __hasOwnProp$M = Object.prototype.hasOwnProperty;
10817
- var __propIsEnum$M = Object.prototype.propertyIsEnumerable;
10818
- var __objRest$q = (source, exclude) => {
10815
+ var __getOwnPropSymbols$N = Object.getOwnPropertySymbols;
10816
+ var __hasOwnProp$N = Object.prototype.hasOwnProperty;
10817
+ var __propIsEnum$N = Object.prototype.propertyIsEnumerable;
10818
+ var __objRest$r = (source, exclude) => {
10819
10819
  var target = {};
10820
10820
  for (var prop in source)
10821
- if (__hasOwnProp$M.call(source, prop) && exclude.indexOf(prop) < 0)
10821
+ if (__hasOwnProp$N.call(source, prop) && exclude.indexOf(prop) < 0)
10822
10822
  target[prop] = source[prop];
10823
- if (source != null && __getOwnPropSymbols$M)
10824
- for (var prop of __getOwnPropSymbols$M(source)) {
10825
- if (exclude.indexOf(prop) < 0 && __propIsEnum$M.call(source, prop))
10823
+ if (source != null && __getOwnPropSymbols$N)
10824
+ for (var prop of __getOwnPropSymbols$N(source)) {
10825
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$N.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$q(_b, ["message"]);
10839
+ var _b = _a, { message } = _b, options = __objRest$r(_b, ["message"]);
10840
10840
  return new CodedError(message, options);
10841
10841
  }
10842
10842
  }
@@ -10957,17 +10957,17 @@ const types = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
10957
10957
  RateCardStatus
10958
10958
  }, Symbol.toStringTag, { value: 'Module' }));
10959
10959
 
10960
- var __getOwnPropSymbols$L = Object.getOwnPropertySymbols;
10961
- var __hasOwnProp$L = Object.prototype.hasOwnProperty;
10962
- var __propIsEnum$L = Object.prototype.propertyIsEnumerable;
10963
- var __objRest$p = (source, exclude) => {
10960
+ var __getOwnPropSymbols$M = Object.getOwnPropertySymbols;
10961
+ var __hasOwnProp$M = Object.prototype.hasOwnProperty;
10962
+ var __propIsEnum$M = Object.prototype.propertyIsEnumerable;
10963
+ var __objRest$q = (source, exclude) => {
10964
10964
  var target = {};
10965
10965
  for (var prop in source)
10966
- if (__hasOwnProp$L.call(source, prop) && exclude.indexOf(prop) < 0)
10966
+ if (__hasOwnProp$M.call(source, prop) && exclude.indexOf(prop) < 0)
10967
10967
  target[prop] = source[prop];
10968
- if (source != null && __getOwnPropSymbols$L)
10969
- for (var prop of __getOwnPropSymbols$L(source)) {
10970
- if (exclude.indexOf(prop) < 0 && __propIsEnum$L.call(source, prop))
10968
+ if (source != null && __getOwnPropSymbols$M)
10969
+ for (var prop of __getOwnPropSymbols$M(source)) {
10970
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$M.call(source, prop))
10971
10971
  target[prop] = source[prop];
10972
10972
  }
10973
10973
  return target;
@@ -10999,7 +10999,7 @@ class AccountSettingsAPI {
10999
10999
  * The `updateImage` method updates specific image data for a given image id.
11000
11000
  */
11001
11001
  this.updateImage = (_a) => {
11002
- var _b = _a, { labelImageId } = _b, data = __objRest$p(_b, ["labelImageId"]);
11002
+ var _b = _a, { labelImageId } = _b, data = __objRest$q(_b, ["labelImageId"]);
11003
11003
  return this.client.put(`/v1/account/settings/images/${labelImageId}`, data);
11004
11004
  };
11005
11005
  /**
@@ -11052,7 +11052,7 @@ class AuctanePayAPI {
11052
11052
  * @returns a promise that resolves to the created session
11053
11053
  */
11054
11054
  this.createSession = (request) => {
11055
- return this.client.post("/internal/auctane_pay/sessions", request);
11055
+ return this.client.post("/v1/payments/sessions", request);
11056
11056
  };
11057
11057
  /**
11058
11058
  * The `getConfig` method get the AuctanePay config, such as the "adyenClientKey"
@@ -11060,7 +11060,7 @@ class AuctanePayAPI {
11060
11060
  * @returns a promise that returns the AuctanePay config
11061
11061
  */
11062
11062
  this.getConfig = () => {
11063
- return this.client.get("/internal/auctane_pay/config");
11063
+ return this.client.get("/v1/payments/config");
11064
11064
  };
11065
11065
  this.client = client;
11066
11066
  }
@@ -13771,7 +13771,7 @@ var ipaddr = {
13771
13771
  }).call(commonjsGlobal);
13772
13772
  } (ipaddr));
13773
13773
 
13774
- var __async$_ = (__this, __arguments, generator) => {
13774
+ var __async$$ = (__this, __arguments, generator) => {
13775
13775
  return new Promise((resolve, reject) => {
13776
13776
  var fulfilled = (value) => {
13777
13777
  try {
@@ -13791,7 +13791,7 @@ var __async$_ = (__this, __arguments, generator) => {
13791
13791
  step((generator = generator.apply(__this, __arguments)).next());
13792
13792
  });
13793
13793
  };
13794
- const getEndUserIpAddress = () => __async$_(void 0, null, function* () {
13794
+ const getEndUserIpAddress = () => __async$$(void 0, null, function* () {
13795
13795
  try {
13796
13796
  const response = yield axios.get("https://api.ipify.org/?format=json");
13797
13797
  if (response.data.ip && ipaddrExports.isValid(response.data.ip)) {
@@ -13848,38 +13848,38 @@ const decamelizeKeys = (obj, separator = "_") => {
13848
13848
  return obj;
13849
13849
  };
13850
13850
 
13851
- var __defProp$z = Object.defineProperty;
13852
- var __defProps$t = Object.defineProperties;
13853
- var __getOwnPropDescs$t = Object.getOwnPropertyDescriptors;
13854
- var __getOwnPropSymbols$K = Object.getOwnPropertySymbols;
13855
- var __hasOwnProp$K = Object.prototype.hasOwnProperty;
13856
- var __propIsEnum$K = Object.prototype.propertyIsEnumerable;
13857
- var __defNormalProp$z = (obj, key, value) => key in obj ? __defProp$z(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
13858
- var __spreadValues$z = (a, b) => {
13851
+ var __defProp$B = Object.defineProperty;
13852
+ var __defProps$v = Object.defineProperties;
13853
+ var __getOwnPropDescs$v = Object.getOwnPropertyDescriptors;
13854
+ var __getOwnPropSymbols$L = Object.getOwnPropertySymbols;
13855
+ var __hasOwnProp$L = Object.prototype.hasOwnProperty;
13856
+ var __propIsEnum$L = Object.prototype.propertyIsEnumerable;
13857
+ var __defNormalProp$B = (obj, key, value) => key in obj ? __defProp$B(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
13858
+ var __spreadValues$B = (a, b) => {
13859
13859
  for (var prop in b || (b = {}))
13860
- if (__hasOwnProp$K.call(b, prop))
13861
- __defNormalProp$z(a, prop, b[prop]);
13862
- if (__getOwnPropSymbols$K)
13863
- for (var prop of __getOwnPropSymbols$K(b)) {
13864
- if (__propIsEnum$K.call(b, prop))
13865
- __defNormalProp$z(a, prop, b[prop]);
13860
+ if (__hasOwnProp$L.call(b, prop))
13861
+ __defNormalProp$B(a, prop, b[prop]);
13862
+ if (__getOwnPropSymbols$L)
13863
+ for (var prop of __getOwnPropSymbols$L(b)) {
13864
+ if (__propIsEnum$L.call(b, prop))
13865
+ __defNormalProp$B(a, prop, b[prop]);
13866
13866
  }
13867
13867
  return a;
13868
13868
  };
13869
- var __spreadProps$t = (a, b) => __defProps$t(a, __getOwnPropDescs$t(b));
13870
- var __objRest$o = (source, exclude) => {
13869
+ var __spreadProps$v = (a, b) => __defProps$v(a, __getOwnPropDescs$v(b));
13870
+ var __objRest$p = (source, exclude) => {
13871
13871
  var target = {};
13872
13872
  for (var prop in source)
13873
- if (__hasOwnProp$K.call(source, prop) && exclude.indexOf(prop) < 0)
13873
+ if (__hasOwnProp$L.call(source, prop) && exclude.indexOf(prop) < 0)
13874
13874
  target[prop] = source[prop];
13875
- if (source != null && __getOwnPropSymbols$K)
13876
- for (var prop of __getOwnPropSymbols$K(source)) {
13877
- if (exclude.indexOf(prop) < 0 && __propIsEnum$K.call(source, prop))
13875
+ if (source != null && __getOwnPropSymbols$L)
13876
+ for (var prop of __getOwnPropSymbols$L(source)) {
13877
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$L.call(source, prop))
13878
13878
  target[prop] = source[prop];
13879
13879
  }
13880
13880
  return target;
13881
13881
  };
13882
- var __async$Z = (__this, __arguments, generator) => {
13882
+ var __async$_ = (__this, __arguments, generator) => {
13883
13883
  return new Promise((resolve, reject) => {
13884
13884
  var fulfilled = (value) => {
13885
13885
  try {
@@ -13919,12 +13919,12 @@ class CarriersAPI {
13919
13919
  /**
13920
13920
  * The `connect` method connects a carrier account to a user's ShipEngine account.
13921
13921
  */
13922
- this.connect = (_a) => __async$Z(this, null, function* () {
13923
- var _b = _a, { carrierCode } = _b, connection = __objRest$o(_b, ["carrierCode"]);
13922
+ this.connect = (_a) => __async$_(this, null, function* () {
13923
+ var _b = _a, { carrierCode } = _b, connection = __objRest$p(_b, ["carrierCode"]);
13924
13924
  const endUserIpAddress = yield getEndUserIpAddress();
13925
13925
  if (!endUserIpAddress)
13926
13926
  return Promise.reject([new CodedError("Unable to get IP address")]);
13927
- return yield this.client.post(`/v1/registration/${carrierCode}`, __spreadProps$t(__spreadValues$z({}, connection), {
13927
+ return yield this.client.post(`/v1/registration/${carrierCode}`, __spreadProps$v(__spreadValues$B({}, connection), {
13928
13928
  endUserIpAddress
13929
13929
  }));
13930
13930
  });
@@ -14010,7 +14010,7 @@ class CarriersAPI {
14010
14010
  }
14011
14011
  }
14012
14012
 
14013
- var __async$Y = (__this, __arguments, generator) => {
14013
+ var __async$Z = (__this, __arguments, generator) => {
14014
14014
  return new Promise((resolve, reject) => {
14015
14015
  var fulfilled = (value) => {
14016
14016
  try {
@@ -14052,7 +14052,7 @@ class ConnectionsAPI {
14052
14052
  /**
14053
14053
  * The `connectCarrier` method connects a carrier to account.
14054
14054
  */
14055
- this.connectCarrier = (carrierName, formData) => __async$Y(this, null, function* () {
14055
+ this.connectCarrier = (carrierName, formData) => __async$Z(this, null, function* () {
14056
14056
  return yield this.client.post(
14057
14057
  `/v1/connections/carriers/${carrierName}`,
14058
14058
  formData,
@@ -16208,23 +16208,23 @@ class CustomPackagesAPI {
16208
16208
  }
16209
16209
  }
16210
16210
 
16211
- var __defProp$y = Object.defineProperty;
16212
- var __getOwnPropSymbols$J = Object.getOwnPropertySymbols;
16213
- var __hasOwnProp$J = Object.prototype.hasOwnProperty;
16214
- var __propIsEnum$J = Object.prototype.propertyIsEnumerable;
16215
- var __defNormalProp$y = (obj, key, value) => key in obj ? __defProp$y(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
16216
- var __spreadValues$y = (a, b) => {
16211
+ var __defProp$A = Object.defineProperty;
16212
+ var __getOwnPropSymbols$K = Object.getOwnPropertySymbols;
16213
+ var __hasOwnProp$K = Object.prototype.hasOwnProperty;
16214
+ var __propIsEnum$K = Object.prototype.propertyIsEnumerable;
16215
+ var __defNormalProp$A = (obj, key, value) => key in obj ? __defProp$A(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
16216
+ var __spreadValues$A = (a, b) => {
16217
16217
  for (var prop in b || (b = {}))
16218
- if (__hasOwnProp$J.call(b, prop))
16219
- __defNormalProp$y(a, prop, b[prop]);
16220
- if (__getOwnPropSymbols$J)
16221
- for (var prop of __getOwnPropSymbols$J(b)) {
16222
- if (__propIsEnum$J.call(b, prop))
16223
- __defNormalProp$y(a, prop, b[prop]);
16218
+ if (__hasOwnProp$K.call(b, prop))
16219
+ __defNormalProp$A(a, prop, b[prop]);
16220
+ if (__getOwnPropSymbols$K)
16221
+ for (var prop of __getOwnPropSymbols$K(b)) {
16222
+ if (__propIsEnum$K.call(b, prop))
16223
+ __defNormalProp$A(a, prop, b[prop]);
16224
16224
  }
16225
16225
  return a;
16226
16226
  };
16227
- var __async$X = (__this, __arguments, generator) => {
16227
+ var __async$Y = (__this, __arguments, generator) => {
16228
16228
  return new Promise((resolve, reject) => {
16229
16229
  var fulfilled = (value) => {
16230
16230
  try {
@@ -16263,12 +16263,12 @@ class FundingSourcesAPI {
16263
16263
  * The `create` method creates a new funding source for a given user. This requires
16264
16264
  * payment information to be collected from the user.
16265
16265
  */
16266
- this.create = (createFundingSource) => __async$X(this, null, function* () {
16266
+ this.create = (createFundingSource) => __async$Y(this, null, function* () {
16267
16267
  const endUserIpAddress = yield getEndUserIpAddress();
16268
16268
  if (!endUserIpAddress) {
16269
16269
  return Promise.reject([new CodedError("Unable to get IP address")]);
16270
16270
  }
16271
- return yield this.client.post("/v1/funding_sources", __spreadValues$y({
16271
+ return yield this.client.post("/v1/funding_sources", __spreadValues$A({
16272
16272
  endUserIpAddress
16273
16273
  }, createFundingSource));
16274
16274
  });
@@ -16277,7 +16277,7 @@ class FundingSourcesAPI {
16277
16277
  * user to update the billing address or payment information associated with the
16278
16278
  * funding source.
16279
16279
  */
16280
- this.update = (billingInfo, creditCardInfo, auctanePayInfo, fundingSourceId) => __async$X(this, null, function* () {
16280
+ this.update = (billingInfo, creditCardInfo, auctanePayInfo, fundingSourceId) => __async$Y(this, null, function* () {
16281
16281
  const endUserIpAddress = yield getEndUserIpAddress();
16282
16282
  if (!endUserIpAddress) {
16283
16283
  return Promise.reject([new CodedError("Unable to get IP address")]);
@@ -16287,7 +16287,7 @@ class FundingSourcesAPI {
16287
16287
  {
16288
16288
  billingInfo,
16289
16289
  endUserIpAddress,
16290
- paymentMethod: __spreadValues$y({
16290
+ paymentMethod: __spreadValues$A({
16291
16291
  creditCardInfo
16292
16292
  }, auctanePayInfo)
16293
16293
  }
@@ -16297,19 +16297,19 @@ class FundingSourcesAPI {
16297
16297
  * The `registerCarrier` method registers a carrier account and associates
16298
16298
  * it with a given funding source.
16299
16299
  */
16300
- this.registerCarrier = (carrier) => __async$X(this, null, function* () {
16300
+ this.registerCarrier = (carrier) => __async$Y(this, null, function* () {
16301
16301
  const endUserIpAddress = yield getEndUserIpAddress();
16302
16302
  if (!endUserIpAddress) {
16303
16303
  return Promise.reject([new CodedError("Unable to get IP address")]);
16304
16304
  }
16305
- return yield this.client.post("/v1/registration/funding_source", __spreadValues$y({
16305
+ return yield this.client.post("/v1/registration/funding_source", __spreadValues$A({
16306
16306
  endUserIpAddress
16307
16307
  }, carrier));
16308
16308
  });
16309
16309
  /**
16310
16310
  * The `addFunds` method allows you to add funds to a funding source.
16311
16311
  */
16312
- this.addFunds = (amount, fundingSourceId) => __async$X(this, null, function* () {
16312
+ this.addFunds = (amount, fundingSourceId) => __async$Y(this, null, function* () {
16313
16313
  return yield this.client.put(
16314
16314
  `/v1/funding_sources/${fundingSourceId}/add_funds`,
16315
16315
  amount
@@ -16319,7 +16319,7 @@ class FundingSourcesAPI {
16319
16319
  * The `metadata` method returns seller-specific requirements for creating funding sources
16320
16320
  * and attaching carriers
16321
16321
  */
16322
- this.metadata = () => __async$X(this, null, function* () {
16322
+ this.metadata = () => __async$Y(this, null, function* () {
16323
16323
  return yield this.client.get("/v1/funding_sources/metadata");
16324
16324
  });
16325
16325
  /**
@@ -16371,7 +16371,7 @@ class InsuranceAPI {
16371
16371
  }
16372
16372
  }
16373
16373
 
16374
- var __async$W = (__this, __arguments, generator) => {
16374
+ var __async$X = (__this, __arguments, generator) => {
16375
16375
  return new Promise((resolve, reject) => {
16376
16376
  var fulfilled = (value) => {
16377
16377
  try {
@@ -16403,13 +16403,13 @@ class InvoiceAddressAPI {
16403
16403
  /**
16404
16404
  * The `create` method creates a new invoice address for a given user.
16405
16405
  */
16406
- this.create = (invoiceAddress) => __async$W(this, null, function* () {
16406
+ this.create = (invoiceAddress) => __async$X(this, null, function* () {
16407
16407
  return yield this.client.post("/v1/invoice_address", invoiceAddress);
16408
16408
  });
16409
16409
  /**
16410
16410
  * The `update` method updates a invoice address for a given user.
16411
16411
  */
16412
- this.update = (invoiceAddress) => __async$W(this, null, function* () {
16412
+ this.update = (invoiceAddress) => __async$X(this, null, function* () {
16413
16413
  return yield this.client.put("/v1/invoice_address", invoiceAddress);
16414
16414
  });
16415
16415
  this.client = client;
@@ -16441,6 +16441,14 @@ class LabelsAPI {
16441
16441
  this.createByRateId = (rateId, options) => {
16442
16442
  return this.client.post(`/v1/labels/rates/${rateId}`, options);
16443
16443
  };
16444
+ /**
16445
+ * The `createByShipmentId` allows you to create a shipping label by using a `shipmentId`
16446
+ * which is a unique identifier tied to a specific shipment that has already been created
16447
+ * with the desired address and package info.
16448
+ */
16449
+ this.createByShipmentId = (shipmentId, options) => {
16450
+ return this.client.post(`/v1/labels/shipment/${shipmentId}`, options);
16451
+ };
16444
16452
  /**
16445
16453
  * The `void` method allows a user to void a label by `labelId`.
16446
16454
  */
@@ -16451,17 +16459,17 @@ class LabelsAPI {
16451
16459
  }
16452
16460
  }
16453
16461
 
16454
- var __getOwnPropSymbols$I = Object.getOwnPropertySymbols;
16455
- var __hasOwnProp$I = Object.prototype.hasOwnProperty;
16456
- var __propIsEnum$I = Object.prototype.propertyIsEnumerable;
16457
- var __objRest$n = (source, exclude) => {
16462
+ var __getOwnPropSymbols$J = Object.getOwnPropertySymbols;
16463
+ var __hasOwnProp$J = Object.prototype.hasOwnProperty;
16464
+ var __propIsEnum$J = Object.prototype.propertyIsEnumerable;
16465
+ var __objRest$o = (source, exclude) => {
16458
16466
  var target = {};
16459
16467
  for (var prop in source)
16460
- if (__hasOwnProp$I.call(source, prop) && exclude.indexOf(prop) < 0)
16468
+ if (__hasOwnProp$J.call(source, prop) && exclude.indexOf(prop) < 0)
16461
16469
  target[prop] = source[prop];
16462
- if (source != null && __getOwnPropSymbols$I)
16463
- for (var prop of __getOwnPropSymbols$I(source)) {
16464
- if (exclude.indexOf(prop) < 0 && __propIsEnum$I.call(source, prop))
16470
+ if (source != null && __getOwnPropSymbols$J)
16471
+ for (var prop of __getOwnPropSymbols$J(source)) {
16472
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$J.call(source, prop))
16465
16473
  target[prop] = source[prop];
16466
16474
  }
16467
16475
  return target;
@@ -16493,7 +16501,7 @@ class OrderSourcesAPI {
16493
16501
  * The `update` method will allow the user to update a connected Order Source
16494
16502
  */
16495
16503
  this.update = (_a) => {
16496
- var _b = _a, { orderSourceId } = _b, rest = __objRest$n(_b, ["orderSourceId"]);
16504
+ var _b = _a, { orderSourceId } = _b, rest = __objRest$o(_b, ["orderSourceId"]);
16497
16505
  return this.client.put(`/v-beta/order_sources/${orderSourceId}`, rest);
16498
16506
  };
16499
16507
  /**
@@ -16582,19 +16590,19 @@ class RateCardsAPI {
16582
16590
  }
16583
16591
  }
16584
16592
 
16585
- var __defProp$x = Object.defineProperty;
16586
- var __getOwnPropSymbols$H = Object.getOwnPropertySymbols;
16587
- var __hasOwnProp$H = Object.prototype.hasOwnProperty;
16588
- var __propIsEnum$H = Object.prototype.propertyIsEnumerable;
16589
- var __defNormalProp$x = (obj, key, value) => key in obj ? __defProp$x(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
16590
- var __spreadValues$x = (a, b) => {
16593
+ var __defProp$z = Object.defineProperty;
16594
+ var __getOwnPropSymbols$I = Object.getOwnPropertySymbols;
16595
+ var __hasOwnProp$I = Object.prototype.hasOwnProperty;
16596
+ var __propIsEnum$I = Object.prototype.propertyIsEnumerable;
16597
+ var __defNormalProp$z = (obj, key, value) => key in obj ? __defProp$z(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
16598
+ var __spreadValues$z = (a, b) => {
16591
16599
  for (var prop in b || (b = {}))
16592
- if (__hasOwnProp$H.call(b, prop))
16593
- __defNormalProp$x(a, prop, b[prop]);
16594
- if (__getOwnPropSymbols$H)
16595
- for (var prop of __getOwnPropSymbols$H(b)) {
16596
- if (__propIsEnum$H.call(b, prop))
16597
- __defNormalProp$x(a, prop, b[prop]);
16600
+ if (__hasOwnProp$I.call(b, prop))
16601
+ __defNormalProp$z(a, prop, b[prop]);
16602
+ if (__getOwnPropSymbols$I)
16603
+ for (var prop of __getOwnPropSymbols$I(b)) {
16604
+ if (__propIsEnum$I.call(b, prop))
16605
+ __defNormalProp$z(a, prop, b[prop]);
16598
16606
  }
16599
16607
  return a;
16600
16608
  };
@@ -16616,7 +16624,7 @@ class RatesAPI {
16616
16624
  * method.
16617
16625
  */
16618
16626
  this.estimate = (params) => {
16619
- return this.client.post("/v1/rates/estimate", __spreadValues$x({}, params));
16627
+ return this.client.post("/v1/rates/estimate", __spreadValues$z({}, params));
16620
16628
  };
16621
16629
  this.client = client;
16622
16630
  }
@@ -16696,7 +16704,7 @@ class SalesOrdersAPI {
16696
16704
  }
16697
16705
  }
16698
16706
 
16699
- var __async$V = (__this, __arguments, generator) => {
16707
+ var __async$W = (__this, __arguments, generator) => {
16700
16708
  return new Promise((resolve, reject) => {
16701
16709
  var fulfilled = (value) => {
16702
16710
  try {
@@ -16754,7 +16762,7 @@ class SellersAPI {
16754
16762
  /**
16755
16763
  * Deletes an API Key
16756
16764
  */
16757
- this.deleteSellerApiKey = (_0) => __async$V(this, [_0], function* ({
16765
+ this.deleteSellerApiKey = (_0) => __async$W(this, [_0], function* ({
16758
16766
  encryptedApiKey,
16759
16767
  sellerId,
16760
16768
  isSandbox
@@ -16800,19 +16808,19 @@ class SellersAPI {
16800
16808
  }
16801
16809
  }
16802
16810
 
16803
- var __defProp$w = Object.defineProperty;
16804
- var __getOwnPropSymbols$G = Object.getOwnPropertySymbols;
16805
- var __hasOwnProp$G = Object.prototype.hasOwnProperty;
16806
- var __propIsEnum$G = Object.prototype.propertyIsEnumerable;
16807
- var __defNormalProp$w = (obj, key, value) => key in obj ? __defProp$w(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
16808
- var __spreadValues$w = (a, b) => {
16811
+ var __defProp$y = Object.defineProperty;
16812
+ var __getOwnPropSymbols$H = Object.getOwnPropertySymbols;
16813
+ var __hasOwnProp$H = Object.prototype.hasOwnProperty;
16814
+ var __propIsEnum$H = Object.prototype.propertyIsEnumerable;
16815
+ var __defNormalProp$y = (obj, key, value) => key in obj ? __defProp$y(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
16816
+ var __spreadValues$y = (a, b) => {
16809
16817
  for (var prop in b || (b = {}))
16810
- if (__hasOwnProp$G.call(b, prop))
16811
- __defNormalProp$w(a, prop, b[prop]);
16812
- if (__getOwnPropSymbols$G)
16813
- for (var prop of __getOwnPropSymbols$G(b)) {
16814
- if (__propIsEnum$G.call(b, prop))
16815
- __defNormalProp$w(a, prop, b[prop]);
16818
+ if (__hasOwnProp$H.call(b, prop))
16819
+ __defNormalProp$y(a, prop, b[prop]);
16820
+ if (__getOwnPropSymbols$H)
16821
+ for (var prop of __getOwnPropSymbols$H(b)) {
16822
+ if (__propIsEnum$H.call(b, prop))
16823
+ __defNormalProp$y(a, prop, b[prop]);
16816
16824
  }
16817
16825
  return a;
16818
16826
  };
@@ -16824,7 +16832,7 @@ class ServicePointsAPI {
16824
16832
  * Either an address, coordinates, or an address query
16825
16833
  */
16826
16834
  this.list = (options) => {
16827
- return this.client.post("/v1/service_points/list", __spreadValues$w({}, options));
16835
+ return this.client.post("/v1/service_points/list", __spreadValues$y({}, options));
16828
16836
  };
16829
16837
  /**
16830
16838
  * Get a specific service point by its carrier code, country code, and id
@@ -16842,7 +16850,7 @@ class ServicePointsAPI {
16842
16850
  }
16843
16851
  }
16844
16852
 
16845
- var __async$U = (__this, __arguments, generator) => {
16853
+ var __async$V = (__this, __arguments, generator) => {
16846
16854
  return new Promise((resolve, reject) => {
16847
16855
  var fulfilled = (value) => {
16848
16856
  try {
@@ -16891,7 +16899,7 @@ class ShipmentsAPI {
16891
16899
  * The `create` method allows for creating shipments based on a list of shipment
16892
16900
  * items passed into this method.
16893
16901
  */
16894
- this.create = (...shipments) => __async$U(this, null, function* () {
16902
+ this.create = (...shipments) => __async$V(this, null, function* () {
16895
16903
  return this.client.post("/v1/shipments", {
16896
16904
  shipments
16897
16905
  });
@@ -34283,26 +34291,26 @@ class WebhooksAPI {
34283
34291
  }
34284
34292
  }
34285
34293
 
34286
- var __defProp$v = Object.defineProperty;
34287
- var __defProps$s = Object.defineProperties;
34288
- var __getOwnPropDescs$s = Object.getOwnPropertyDescriptors;
34289
- var __getOwnPropSymbols$F = Object.getOwnPropertySymbols;
34290
- var __hasOwnProp$F = Object.prototype.hasOwnProperty;
34291
- var __propIsEnum$F = Object.prototype.propertyIsEnumerable;
34292
- var __defNormalProp$v = (obj, key, value) => key in obj ? __defProp$v(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
34293
- var __spreadValues$v = (a, b) => {
34294
+ var __defProp$x = Object.defineProperty;
34295
+ var __defProps$u = Object.defineProperties;
34296
+ var __getOwnPropDescs$u = Object.getOwnPropertyDescriptors;
34297
+ var __getOwnPropSymbols$G = Object.getOwnPropertySymbols;
34298
+ var __hasOwnProp$G = Object.prototype.hasOwnProperty;
34299
+ var __propIsEnum$G = Object.prototype.propertyIsEnumerable;
34300
+ var __defNormalProp$x = (obj, key, value) => key in obj ? __defProp$x(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
34301
+ var __spreadValues$x = (a, b) => {
34294
34302
  for (var prop in b || (b = {}))
34295
- if (__hasOwnProp$F.call(b, prop))
34296
- __defNormalProp$v(a, prop, b[prop]);
34297
- if (__getOwnPropSymbols$F)
34298
- for (var prop of __getOwnPropSymbols$F(b)) {
34299
- if (__propIsEnum$F.call(b, prop))
34300
- __defNormalProp$v(a, prop, b[prop]);
34303
+ if (__hasOwnProp$G.call(b, prop))
34304
+ __defNormalProp$x(a, prop, b[prop]);
34305
+ if (__getOwnPropSymbols$G)
34306
+ for (var prop of __getOwnPropSymbols$G(b)) {
34307
+ if (__propIsEnum$G.call(b, prop))
34308
+ __defNormalProp$x(a, prop, b[prop]);
34301
34309
  }
34302
34310
  return a;
34303
34311
  };
34304
- var __spreadProps$s = (a, b) => __defProps$s(a, __getOwnPropDescs$s(b));
34305
- var __async$T = (__this, __arguments, generator) => {
34312
+ var __spreadProps$u = (a, b) => __defProps$u(a, __getOwnPropDescs$u(b));
34313
+ var __async$U = (__this, __arguments, generator) => {
34306
34314
  return new Promise((resolve, reject) => {
34307
34315
  var fulfilled = (value) => {
34308
34316
  try {
@@ -34325,7 +34333,7 @@ var __async$T = (__this, __arguments, generator) => {
34325
34333
  const logger$1 = E({
34326
34334
  level: process.env.NODE_ENV === "production" ? "fatal" : "info",
34327
34335
  name: "shipengine-api",
34328
- serializers: __spreadProps$s(__spreadValues$v({}, k), {
34336
+ serializers: __spreadProps$u(__spreadValues$x({}, k), {
34329
34337
  req: (req) => ({
34330
34338
  headers: req.headers,
34331
34339
  method: req.method,
@@ -34350,7 +34358,7 @@ class ShipEngineAPI {
34350
34358
  this.getSandboxToken = getSandboxToken;
34351
34359
  const client = axios.create({
34352
34360
  baseURL,
34353
- headers: __spreadProps$s(__spreadValues$v({}, headers), {
34361
+ headers: __spreadProps$u(__spreadValues$x({}, headers), {
34354
34362
  "Content-Type": "application/json"
34355
34363
  }),
34356
34364
  paramsSerializer: (params) => lib.stringify(decamelizeKeys(params), { arrayFormat: "brackets" }),
@@ -34385,7 +34393,7 @@ class ShipEngineAPI {
34385
34393
  });
34386
34394
  client.defaults.headers.common["Authorization"] = `Bearer ${token}`;
34387
34395
  client.interceptors.request.use(
34388
- (config) => __async$T(this, null, function* () {
34396
+ (config) => __async$U(this, null, function* () {
34389
34397
  if (config.isSandbox) {
34390
34398
  if (!this.sandboxToken) {
34391
34399
  this.sandboxToken = yield getSandboxToken == null ? void 0 : getSandboxToken();
@@ -34412,7 +34420,7 @@ class ShipEngineAPI {
34412
34420
  );
34413
34421
  return res;
34414
34422
  },
34415
- (err) => __async$T(this, null, function* () {
34423
+ (err) => __async$U(this, null, function* () {
34416
34424
  var _a, _b, _c, _d, _e;
34417
34425
  logger$1.error(
34418
34426
  { err, req: err.config, res: err.response },
@@ -34459,7 +34467,7 @@ class ShipEngineAPI {
34459
34467
  * that token (also known as Seller ID)
34460
34468
  */
34461
34469
  getTenant(isSandbox) {
34462
- return __async$T(this, null, function* () {
34470
+ return __async$U(this, null, function* () {
34463
34471
  var _a;
34464
34472
  if (!isSandbox) {
34465
34473
  return this.getTenantFromToken(this.token);
@@ -34754,25 +34762,25 @@ const delay = (ms) => new Promise((resolve) => {
34754
34762
 
34755
34763
  const onError = (_errors) => _default();
34756
34764
 
34757
- var __defProp$u = Object.defineProperty;
34758
- var __defProps$r = Object.defineProperties;
34759
- var __getOwnPropDescs$r = Object.getOwnPropertyDescriptors;
34760
- var __getOwnPropSymbols$E = Object.getOwnPropertySymbols;
34761
- var __hasOwnProp$E = Object.prototype.hasOwnProperty;
34762
- var __propIsEnum$E = Object.prototype.propertyIsEnumerable;
34763
- var __defNormalProp$u = (obj, key, value) => key in obj ? __defProp$u(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
34764
- var __spreadValues$u = (a, b) => {
34765
+ var __defProp$w = Object.defineProperty;
34766
+ var __defProps$t = Object.defineProperties;
34767
+ var __getOwnPropDescs$t = Object.getOwnPropertyDescriptors;
34768
+ var __getOwnPropSymbols$F = Object.getOwnPropertySymbols;
34769
+ var __hasOwnProp$F = Object.prototype.hasOwnProperty;
34770
+ var __propIsEnum$F = Object.prototype.propertyIsEnumerable;
34771
+ var __defNormalProp$w = (obj, key, value) => key in obj ? __defProp$w(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
34772
+ var __spreadValues$w = (a, b) => {
34765
34773
  for (var prop in b || (b = {}))
34766
- if (__hasOwnProp$E.call(b, prop))
34767
- __defNormalProp$u(a, prop, b[prop]);
34768
- if (__getOwnPropSymbols$E)
34769
- for (var prop of __getOwnPropSymbols$E(b)) {
34770
- if (__propIsEnum$E.call(b, prop))
34771
- __defNormalProp$u(a, prop, b[prop]);
34774
+ if (__hasOwnProp$F.call(b, prop))
34775
+ __defNormalProp$w(a, prop, b[prop]);
34776
+ if (__getOwnPropSymbols$F)
34777
+ for (var prop of __getOwnPropSymbols$F(b)) {
34778
+ if (__propIsEnum$F.call(b, prop))
34779
+ __defNormalProp$w(a, prop, b[prop]);
34772
34780
  }
34773
34781
  return a;
34774
34782
  };
34775
- var __spreadProps$r = (a, b) => __defProps$r(a, __getOwnPropDescs$r(b));
34783
+ var __spreadProps$t = (a, b) => __defProps$t(a, __getOwnPropDescs$t(b));
34776
34784
  const streams = [];
34777
34785
  if (process.env.NODE_ENV === "production") {
34778
34786
  streams.push({
@@ -34781,7 +34789,7 @@ if (process.env.NODE_ENV === "production") {
34781
34789
  }
34782
34790
  const logger = E({
34783
34791
  name: "shipengine",
34784
- serializers: __spreadProps$r(__spreadValues$u({}, k), {
34792
+ serializers: __spreadProps$t(__spreadValues$w({}, k), {
34785
34793
  req: (req) => ({
34786
34794
  headers: req.headers,
34787
34795
  method: req.method,
@@ -34806,7 +34814,7 @@ const retryUntil = (callbackFn, retries = 10, timeoutBetweenAttempts = 1e3) => P
34806
34814
  throw error;
34807
34815
  });
34808
34816
 
34809
- var __async$S = (__this, __arguments, generator) => {
34817
+ var __async$T = (__this, __arguments, generator) => {
34810
34818
  return new Promise((resolve, reject) => {
34811
34819
  var fulfilled = (value) => {
34812
34820
  try {
@@ -34829,7 +34837,7 @@ var __async$S = (__this, __arguments, generator) => {
34829
34837
  const useCreateAccountImage = () => {
34830
34838
  const { client } = useShipEngine();
34831
34839
  return reactQuery.useMutation({
34832
- mutationFn: (data) => __async$S(void 0, null, function* () {
34840
+ mutationFn: (data) => __async$T(void 0, null, function* () {
34833
34841
  const result = yield client.accountSettings.createImage(data);
34834
34842
  return result.data;
34835
34843
  }),
@@ -34838,7 +34846,7 @@ const useCreateAccountImage = () => {
34838
34846
  });
34839
34847
  };
34840
34848
 
34841
- var __async$R = (__this, __arguments, generator) => {
34849
+ var __async$S = (__this, __arguments, generator) => {
34842
34850
  return new Promise((resolve, reject) => {
34843
34851
  var fulfilled = (value) => {
34844
34852
  try {
@@ -34861,7 +34869,7 @@ var __async$R = (__this, __arguments, generator) => {
34861
34869
  const useDeleteAccountImage = () => {
34862
34870
  const { client } = useShipEngine();
34863
34871
  return reactQuery.useMutation({
34864
- mutationFn: (labelImageId) => __async$R(void 0, null, function* () {
34872
+ mutationFn: (labelImageId) => __async$S(void 0, null, function* () {
34865
34873
  const result = yield client.accountSettings.deleteImage(labelImageId);
34866
34874
  return result.data;
34867
34875
  }),
@@ -34890,7 +34898,7 @@ const useGetAccountSettings = () => {
34890
34898
  });
34891
34899
  };
34892
34900
 
34893
- var __async$Q = (__this, __arguments, generator) => {
34901
+ var __async$R = (__this, __arguments, generator) => {
34894
34902
  return new Promise((resolve, reject) => {
34895
34903
  var fulfilled = (value) => {
34896
34904
  try {
@@ -34913,7 +34921,7 @@ var __async$Q = (__this, __arguments, generator) => {
34913
34921
  const useUpdateAccountImage = () => {
34914
34922
  const { client } = useShipEngine();
34915
34923
  return reactQuery.useMutation({
34916
- mutationFn: (data) => __async$Q(void 0, null, function* () {
34924
+ mutationFn: (data) => __async$R(void 0, null, function* () {
34917
34925
  const result = yield client.accountSettings.updateImage(data);
34918
34926
  return result.data;
34919
34927
  }),
@@ -34922,7 +34930,7 @@ const useUpdateAccountImage = () => {
34922
34930
  });
34923
34931
  };
34924
34932
 
34925
- var __async$P = (__this, __arguments, generator) => {
34933
+ var __async$Q = (__this, __arguments, generator) => {
34926
34934
  return new Promise((resolve, reject) => {
34927
34935
  var fulfilled = (value) => {
34928
34936
  try {
@@ -34945,7 +34953,7 @@ var __async$P = (__this, __arguments, generator) => {
34945
34953
  const useUpdateAccountSettings = () => {
34946
34954
  const { client } = useShipEngine();
34947
34955
  return reactQuery.useMutation({
34948
- mutationFn: (settings) => __async$P(void 0, null, function* () {
34956
+ mutationFn: (settings) => __async$Q(void 0, null, function* () {
34949
34957
  const result = yield client.accountSettings.update(settings);
34950
34958
  return result.data;
34951
34959
  }),
@@ -34954,7 +34962,7 @@ const useUpdateAccountSettings = () => {
34954
34962
  });
34955
34963
  };
34956
34964
 
34957
- var __async$O = (__this, __arguments, generator) => {
34965
+ var __async$P = (__this, __arguments, generator) => {
34958
34966
  return new Promise((resolve, reject) => {
34959
34967
  var fulfilled = (value) => {
34960
34968
  try {
@@ -34977,7 +34985,7 @@ var __async$O = (__this, __arguments, generator) => {
34977
34985
  const useParseAddress = () => {
34978
34986
  const { client } = useShipEngine();
34979
34987
  return reactQuery.useMutation({
34980
- mutationFn: (_0) => __async$O(void 0, [_0], function* ({ address, text }) {
34988
+ mutationFn: (_0) => __async$P(void 0, [_0], function* ({ address, text }) {
34981
34989
  const result = yield client.addresses.parse(text, address);
34982
34990
  return result.data;
34983
34991
  }),
@@ -34986,7 +34994,7 @@ const useParseAddress = () => {
34986
34994
  });
34987
34995
  };
34988
34996
 
34989
- var __async$N = (__this, __arguments, generator) => {
34997
+ var __async$O = (__this, __arguments, generator) => {
34990
34998
  return new Promise((resolve, reject) => {
34991
34999
  var fulfilled = (value) => {
34992
35000
  try {
@@ -35009,7 +35017,7 @@ var __async$N = (__this, __arguments, generator) => {
35009
35017
  const useValidateAddresses = () => {
35010
35018
  const { client } = useShipEngine();
35011
35019
  return reactQuery.useMutation({
35012
- mutationFn: (addresses) => __async$N(void 0, null, function* () {
35020
+ mutationFn: (addresses) => __async$O(void 0, null, function* () {
35013
35021
  const result = yield client.addresses.validate(addresses);
35014
35022
  return result.data;
35015
35023
  }),
@@ -35018,26 +35026,26 @@ const useValidateAddresses = () => {
35018
35026
  });
35019
35027
  };
35020
35028
 
35021
- var __defProp$t = Object.defineProperty;
35022
- var __defProps$q = Object.defineProperties;
35023
- var __getOwnPropDescs$q = Object.getOwnPropertyDescriptors;
35024
- var __getOwnPropSymbols$D = Object.getOwnPropertySymbols;
35025
- var __hasOwnProp$D = Object.prototype.hasOwnProperty;
35026
- var __propIsEnum$D = Object.prototype.propertyIsEnumerable;
35027
- var __defNormalProp$t = (obj, key, value) => key in obj ? __defProp$t(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35028
- var __spreadValues$t = (a, b) => {
35029
+ var __defProp$v = Object.defineProperty;
35030
+ var __defProps$s = Object.defineProperties;
35031
+ var __getOwnPropDescs$s = Object.getOwnPropertyDescriptors;
35032
+ var __getOwnPropSymbols$E = Object.getOwnPropertySymbols;
35033
+ var __hasOwnProp$E = Object.prototype.hasOwnProperty;
35034
+ var __propIsEnum$E = Object.prototype.propertyIsEnumerable;
35035
+ var __defNormalProp$v = (obj, key, value) => key in obj ? __defProp$v(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35036
+ var __spreadValues$v = (a, b) => {
35029
35037
  for (var prop in b || (b = {}))
35030
- if (__hasOwnProp$D.call(b, prop))
35031
- __defNormalProp$t(a, prop, b[prop]);
35032
- if (__getOwnPropSymbols$D)
35033
- for (var prop of __getOwnPropSymbols$D(b)) {
35034
- if (__propIsEnum$D.call(b, prop))
35035
- __defNormalProp$t(a, prop, b[prop]);
35038
+ if (__hasOwnProp$E.call(b, prop))
35039
+ __defNormalProp$v(a, prop, b[prop]);
35040
+ if (__getOwnPropSymbols$E)
35041
+ for (var prop of __getOwnPropSymbols$E(b)) {
35042
+ if (__propIsEnum$E.call(b, prop))
35043
+ __defNormalProp$v(a, prop, b[prop]);
35036
35044
  }
35037
35045
  return a;
35038
35046
  };
35039
- var __spreadProps$q = (a, b) => __defProps$q(a, __getOwnPropDescs$q(b));
35040
- var __async$M = (__this, __arguments, generator) => {
35047
+ var __spreadProps$s = (a, b) => __defProps$s(a, __getOwnPropDescs$s(b));
35048
+ var __async$N = (__this, __arguments, generator) => {
35041
35049
  return new Promise((resolve, reject) => {
35042
35050
  var fulfilled = (value) => {
35043
35051
  try {
@@ -35059,8 +35067,8 @@ var __async$M = (__this, __arguments, generator) => {
35059
35067
  };
35060
35068
  const useCreateAuctanePaySession = (params) => {
35061
35069
  const { client } = useShipEngine();
35062
- return reactQuery.useMutation(__spreadProps$q(__spreadValues$t({}, params), {
35063
- mutationFn: (request) => __async$M(void 0, null, function* () {
35070
+ return reactQuery.useMutation(__spreadProps$s(__spreadValues$v({}, params), {
35071
+ mutationFn: (request) => __async$N(void 0, null, function* () {
35064
35072
  const result = yield client.auctanePay.createSession(request);
35065
35073
  return result.data;
35066
35074
  }),
@@ -35069,29 +35077,29 @@ const useCreateAuctanePaySession = (params) => {
35069
35077
  }));
35070
35078
  };
35071
35079
 
35072
- var __defProp$s = Object.defineProperty;
35073
- var __defProps$p = Object.defineProperties;
35074
- var __getOwnPropDescs$p = Object.getOwnPropertyDescriptors;
35075
- var __getOwnPropSymbols$C = Object.getOwnPropertySymbols;
35076
- var __hasOwnProp$C = Object.prototype.hasOwnProperty;
35077
- var __propIsEnum$C = Object.prototype.propertyIsEnumerable;
35078
- var __defNormalProp$s = (obj, key, value) => key in obj ? __defProp$s(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35079
- var __spreadValues$s = (a, b) => {
35080
+ var __defProp$u = Object.defineProperty;
35081
+ var __defProps$r = Object.defineProperties;
35082
+ var __getOwnPropDescs$r = Object.getOwnPropertyDescriptors;
35083
+ var __getOwnPropSymbols$D = Object.getOwnPropertySymbols;
35084
+ var __hasOwnProp$D = Object.prototype.hasOwnProperty;
35085
+ var __propIsEnum$D = Object.prototype.propertyIsEnumerable;
35086
+ var __defNormalProp$u = (obj, key, value) => key in obj ? __defProp$u(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35087
+ var __spreadValues$u = (a, b) => {
35080
35088
  for (var prop in b || (b = {}))
35081
- if (__hasOwnProp$C.call(b, prop))
35082
- __defNormalProp$s(a, prop, b[prop]);
35083
- if (__getOwnPropSymbols$C)
35084
- for (var prop of __getOwnPropSymbols$C(b)) {
35085
- if (__propIsEnum$C.call(b, prop))
35086
- __defNormalProp$s(a, prop, b[prop]);
35089
+ if (__hasOwnProp$D.call(b, prop))
35090
+ __defNormalProp$u(a, prop, b[prop]);
35091
+ if (__getOwnPropSymbols$D)
35092
+ for (var prop of __getOwnPropSymbols$D(b)) {
35093
+ if (__propIsEnum$D.call(b, prop))
35094
+ __defNormalProp$u(a, prop, b[prop]);
35087
35095
  }
35088
35096
  return a;
35089
35097
  };
35090
- var __spreadProps$p = (a, b) => __defProps$p(a, __getOwnPropDescs$p(b));
35098
+ var __spreadProps$r = (a, b) => __defProps$r(a, __getOwnPropDescs$r(b));
35091
35099
  const useGetAuctanePayConfig = (params) => {
35092
35100
  const { client } = useShipEngine();
35093
- const queryParams = __spreadValues$s({}, params);
35094
- return reactQuery.useQuery(__spreadProps$p(__spreadValues$s({}, queryParams), {
35101
+ const queryParams = __spreadValues$u({}, params);
35102
+ return reactQuery.useQuery(__spreadProps$r(__spreadValues$u({}, queryParams), {
35095
35103
  onError,
35096
35104
  queryFn: () => client.auctanePay.getConfig(),
35097
35105
  queryKey: ["useGetAuctanePayConfig"],
@@ -35099,7 +35107,7 @@ const useGetAuctanePayConfig = (params) => {
35099
35107
  }));
35100
35108
  };
35101
35109
 
35102
- var __async$L = (__this, __arguments, generator) => {
35110
+ var __async$M = (__this, __arguments, generator) => {
35103
35111
  return new Promise((resolve, reject) => {
35104
35112
  var fulfilled = (value) => {
35105
35113
  try {
@@ -35122,7 +35130,7 @@ var __async$L = (__this, __arguments, generator) => {
35122
35130
  const useAddFunds = () => {
35123
35131
  const { client } = useShipEngine();
35124
35132
  return reactQuery.useMutation({
35125
- mutationFn: (_0) => __async$L(void 0, [_0], function* ({ carrierId, funds }) {
35133
+ mutationFn: (_0) => __async$M(void 0, [_0], function* ({ carrierId, funds }) {
35126
35134
  const result = yield client.carriers.addFunds(carrierId, funds);
35127
35135
  return result.data;
35128
35136
  }),
@@ -35131,7 +35139,7 @@ const useAddFunds = () => {
35131
35139
  });
35132
35140
  };
35133
35141
 
35134
- var __async$K = (__this, __arguments, generator) => {
35142
+ var __async$L = (__this, __arguments, generator) => {
35135
35143
  return new Promise((resolve, reject) => {
35136
35144
  var fulfilled = (value) => {
35137
35145
  try {
@@ -35154,7 +35162,7 @@ var __async$K = (__this, __arguments, generator) => {
35154
35162
  const useConnectCarrier = () => {
35155
35163
  const { client } = useShipEngine();
35156
35164
  return reactQuery.useMutation({
35157
- mutationFn: (params) => __async$K(void 0, null, function* () {
35165
+ mutationFn: (params) => __async$L(void 0, null, function* () {
35158
35166
  const result = yield client.carriers.connect(params);
35159
35167
  return result.data;
35160
35168
  }),
@@ -35263,41 +35271,41 @@ const useGetServicesByCarrier = (carrierId) => {
35263
35271
  });
35264
35272
  };
35265
35273
 
35266
- var __defProp$r = Object.defineProperty;
35267
- var __defProps$o = Object.defineProperties;
35268
- var __getOwnPropDescs$o = Object.getOwnPropertyDescriptors;
35269
- var __getOwnPropSymbols$B = Object.getOwnPropertySymbols;
35270
- var __hasOwnProp$B = Object.prototype.hasOwnProperty;
35271
- var __propIsEnum$B = Object.prototype.propertyIsEnumerable;
35272
- var __defNormalProp$r = (obj, key, value) => key in obj ? __defProp$r(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35273
- var __spreadValues$r = (a, b) => {
35274
+ var __defProp$t = Object.defineProperty;
35275
+ var __defProps$q = Object.defineProperties;
35276
+ var __getOwnPropDescs$q = Object.getOwnPropertyDescriptors;
35277
+ var __getOwnPropSymbols$C = Object.getOwnPropertySymbols;
35278
+ var __hasOwnProp$C = Object.prototype.hasOwnProperty;
35279
+ var __propIsEnum$C = Object.prototype.propertyIsEnumerable;
35280
+ var __defNormalProp$t = (obj, key, value) => key in obj ? __defProp$t(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35281
+ var __spreadValues$t = (a, b) => {
35274
35282
  for (var prop in b || (b = {}))
35275
- if (__hasOwnProp$B.call(b, prop))
35276
- __defNormalProp$r(a, prop, b[prop]);
35277
- if (__getOwnPropSymbols$B)
35278
- for (var prop of __getOwnPropSymbols$B(b)) {
35279
- if (__propIsEnum$B.call(b, prop))
35280
- __defNormalProp$r(a, prop, b[prop]);
35283
+ if (__hasOwnProp$C.call(b, prop))
35284
+ __defNormalProp$t(a, prop, b[prop]);
35285
+ if (__getOwnPropSymbols$C)
35286
+ for (var prop of __getOwnPropSymbols$C(b)) {
35287
+ if (__propIsEnum$C.call(b, prop))
35288
+ __defNormalProp$t(a, prop, b[prop]);
35281
35289
  }
35282
35290
  return a;
35283
35291
  };
35284
- var __spreadProps$o = (a, b) => __defProps$o(a, __getOwnPropDescs$o(b));
35285
- var __objRest$m = (source, exclude) => {
35292
+ var __spreadProps$q = (a, b) => __defProps$q(a, __getOwnPropDescs$q(b));
35293
+ var __objRest$n = (source, exclude) => {
35286
35294
  var target = {};
35287
35295
  for (var prop in source)
35288
- if (__hasOwnProp$B.call(source, prop) && exclude.indexOf(prop) < 0)
35296
+ if (__hasOwnProp$C.call(source, prop) && exclude.indexOf(prop) < 0)
35289
35297
  target[prop] = source[prop];
35290
- if (source != null && __getOwnPropSymbols$B)
35291
- for (var prop of __getOwnPropSymbols$B(source)) {
35292
- if (exclude.indexOf(prop) < 0 && __propIsEnum$B.call(source, prop))
35298
+ if (source != null && __getOwnPropSymbols$C)
35299
+ for (var prop of __getOwnPropSymbols$C(source)) {
35300
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$C.call(source, prop))
35293
35301
  target[prop] = source[prop];
35294
35302
  }
35295
35303
  return target;
35296
35304
  };
35297
35305
  const useListCarriers = (params) => {
35298
35306
  const { client } = useShipEngine();
35299
- const _a = __spreadValues$r({}, params), { queryFnParams } = _a, rest = __objRest$m(_a, ["queryFnParams"]);
35300
- return reactQuery.useQuery(__spreadProps$o(__spreadValues$r({}, rest), {
35307
+ const _a = __spreadValues$t({}, params), { queryFnParams } = _a, rest = __objRest$n(_a, ["queryFnParams"]);
35308
+ return reactQuery.useQuery(__spreadProps$q(__spreadValues$t({}, rest), {
35301
35309
  onError,
35302
35310
  queryFn: () => client.carriers.list(queryFnParams),
35303
35311
  queryKey: ["useListCarriers", queryFnParams],
@@ -35305,22 +35313,22 @@ const useListCarriers = (params) => {
35305
35313
  }));
35306
35314
  };
35307
35315
 
35308
- var __getOwnPropSymbols$A = Object.getOwnPropertySymbols;
35309
- var __hasOwnProp$A = Object.prototype.hasOwnProperty;
35310
- var __propIsEnum$A = Object.prototype.propertyIsEnumerable;
35311
- var __objRest$l = (source, exclude) => {
35316
+ var __getOwnPropSymbols$B = Object.getOwnPropertySymbols;
35317
+ var __hasOwnProp$B = Object.prototype.hasOwnProperty;
35318
+ var __propIsEnum$B = Object.prototype.propertyIsEnumerable;
35319
+ var __objRest$m = (source, exclude) => {
35312
35320
  var target = {};
35313
35321
  for (var prop in source)
35314
- if (__hasOwnProp$A.call(source, prop) && exclude.indexOf(prop) < 0)
35322
+ if (__hasOwnProp$B.call(source, prop) && exclude.indexOf(prop) < 0)
35315
35323
  target[prop] = source[prop];
35316
- if (source != null && __getOwnPropSymbols$A)
35317
- for (var prop of __getOwnPropSymbols$A(source)) {
35318
- if (exclude.indexOf(prop) < 0 && __propIsEnum$A.call(source, prop))
35324
+ if (source != null && __getOwnPropSymbols$B)
35325
+ for (var prop of __getOwnPropSymbols$B(source)) {
35326
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$B.call(source, prop))
35319
35327
  target[prop] = source[prop];
35320
35328
  }
35321
35329
  return target;
35322
35330
  };
35323
- var __async$J = (__this, __arguments, generator) => {
35331
+ var __async$K = (__this, __arguments, generator) => {
35324
35332
  return new Promise((resolve, reject) => {
35325
35333
  var fulfilled = (value) => {
35326
35334
  try {
@@ -35344,8 +35352,8 @@ const useUpdateAutoFunding = () => {
35344
35352
  const { client } = useShipEngine();
35345
35353
  const queryClient = reactQuery.useQueryClient();
35346
35354
  return reactQuery.useMutation({
35347
- mutationFn: (_a) => __async$J(void 0, null, function* () {
35348
- var _b = _a, { carrierId } = _b, options = __objRest$l(_b, ["carrierId"]);
35355
+ mutationFn: (_a) => __async$K(void 0, null, function* () {
35356
+ var _b = _a, { carrierId } = _b, options = __objRest$m(_b, ["carrierId"]);
35349
35357
  const result = yield client.carriers.updateAutoFunding(carrierId, options);
35350
35358
  return result.data;
35351
35359
  }),
@@ -35374,7 +35382,7 @@ const useGetZonesByCarrier = (carrierId) => {
35374
35382
  });
35375
35383
  };
35376
35384
 
35377
- var __async$I = (__this, __arguments, generator) => {
35385
+ var __async$J = (__this, __arguments, generator) => {
35378
35386
  return new Promise((resolve, reject) => {
35379
35387
  var fulfilled = (value) => {
35380
35388
  try {
@@ -35397,7 +35405,7 @@ var __async$I = (__this, __arguments, generator) => {
35397
35405
  const useDeleteCarrier = () => {
35398
35406
  const { client } = useShipEngine();
35399
35407
  return reactQuery.useMutation({
35400
- mutationFn: (carrierId) => __async$I(void 0, null, function* () {
35408
+ mutationFn: (carrierId) => __async$J(void 0, null, function* () {
35401
35409
  const result = yield client.carriers.delete(carrierId);
35402
35410
  return result.data;
35403
35411
  }),
@@ -35406,24 +35414,24 @@ const useDeleteCarrier = () => {
35406
35414
  });
35407
35415
  };
35408
35416
 
35409
- var __getOwnPropSymbols$z = Object.getOwnPropertySymbols;
35410
- var __hasOwnProp$z = Object.prototype.hasOwnProperty;
35411
- var __propIsEnum$z = Object.prototype.propertyIsEnumerable;
35412
- var __objRest$k = (source, exclude) => {
35417
+ var __getOwnPropSymbols$A = Object.getOwnPropertySymbols;
35418
+ var __hasOwnProp$A = Object.prototype.hasOwnProperty;
35419
+ var __propIsEnum$A = Object.prototype.propertyIsEnumerable;
35420
+ var __objRest$l = (source, exclude) => {
35413
35421
  var target = {};
35414
35422
  for (var prop in source)
35415
- if (__hasOwnProp$z.call(source, prop) && exclude.indexOf(prop) < 0)
35423
+ if (__hasOwnProp$A.call(source, prop) && exclude.indexOf(prop) < 0)
35416
35424
  target[prop] = source[prop];
35417
- if (source != null && __getOwnPropSymbols$z)
35418
- for (var prop of __getOwnPropSymbols$z(source)) {
35419
- if (exclude.indexOf(prop) < 0 && __propIsEnum$z.call(source, prop))
35425
+ if (source != null && __getOwnPropSymbols$A)
35426
+ for (var prop of __getOwnPropSymbols$A(source)) {
35427
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$A.call(source, prop))
35420
35428
  target[prop] = source[prop];
35421
35429
  }
35422
35430
  return target;
35423
35431
  };
35424
35432
  const useGetCarrierConnectionForm = (_params) => {
35425
35433
  const { client } = useShipEngine();
35426
- const _a = _params || {}, { carrierName, enabled = true } = _a, params = __objRest$k(_a, ["carrierName", "enabled"]);
35434
+ const _a = _params || {}, { carrierName, enabled = true } = _a, params = __objRest$l(_a, ["carrierName", "enabled"]);
35427
35435
  return reactQuery.useQuery({
35428
35436
  enabled,
35429
35437
  onError,
@@ -35433,24 +35441,24 @@ const useGetCarrierConnectionForm = (_params) => {
35433
35441
  });
35434
35442
  };
35435
35443
 
35436
- var __getOwnPropSymbols$y = Object.getOwnPropertySymbols;
35437
- var __hasOwnProp$y = Object.prototype.hasOwnProperty;
35438
- var __propIsEnum$y = Object.prototype.propertyIsEnumerable;
35439
- var __objRest$j = (source, exclude) => {
35444
+ var __getOwnPropSymbols$z = Object.getOwnPropertySymbols;
35445
+ var __hasOwnProp$z = Object.prototype.hasOwnProperty;
35446
+ var __propIsEnum$z = Object.prototype.propertyIsEnumerable;
35447
+ var __objRest$k = (source, exclude) => {
35440
35448
  var target = {};
35441
35449
  for (var prop in source)
35442
- if (__hasOwnProp$y.call(source, prop) && exclude.indexOf(prop) < 0)
35450
+ if (__hasOwnProp$z.call(source, prop) && exclude.indexOf(prop) < 0)
35443
35451
  target[prop] = source[prop];
35444
- if (source != null && __getOwnPropSymbols$y)
35445
- for (var prop of __getOwnPropSymbols$y(source)) {
35446
- if (exclude.indexOf(prop) < 0 && __propIsEnum$y.call(source, prop))
35452
+ if (source != null && __getOwnPropSymbols$z)
35453
+ for (var prop of __getOwnPropSymbols$z(source)) {
35454
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$z.call(source, prop))
35447
35455
  target[prop] = source[prop];
35448
35456
  }
35449
35457
  return target;
35450
35458
  };
35451
35459
  const useListCarrierConnections = (_params) => {
35452
35460
  const { client } = useShipEngine();
35453
- const _a = _params || {}, { enabled = true } = _a, params = __objRest$j(_a, ["enabled"]);
35461
+ const _a = _params || {}, { enabled = true } = _a, params = __objRest$k(_a, ["enabled"]);
35454
35462
  return reactQuery.useQuery({
35455
35463
  enabled,
35456
35464
  onError,
@@ -35460,7 +35468,7 @@ const useListCarrierConnections = (_params) => {
35460
35468
  });
35461
35469
  };
35462
35470
 
35463
- var __async$H = (__this, __arguments, generator) => {
35471
+ var __async$I = (__this, __arguments, generator) => {
35464
35472
  return new Promise((resolve, reject) => {
35465
35473
  var fulfilled = (value) => {
35466
35474
  try {
@@ -35483,7 +35491,7 @@ var __async$H = (__this, __arguments, generator) => {
35483
35491
  const useConnectCarrierAccount = () => {
35484
35492
  const { client } = useShipEngine();
35485
35493
  return reactQuery.useMutation({
35486
- mutationFn: (_0) => __async$H(void 0, [_0], function* ({ carrierName, formData }) {
35494
+ mutationFn: (_0) => __async$I(void 0, [_0], function* ({ carrierName, formData }) {
35487
35495
  const result = yield client.connections.connectCarrier(carrierName, formData);
35488
35496
  return result.data;
35489
35497
  }),
@@ -35503,33 +35511,33 @@ const useCarrierConnectionsServicesList = (carrierCode) => {
35503
35511
  });
35504
35512
  };
35505
35513
 
35506
- var __defProp$q = Object.defineProperty;
35507
- var __defProps$n = Object.defineProperties;
35508
- var __getOwnPropDescs$n = Object.getOwnPropertyDescriptors;
35509
- var __getOwnPropSymbols$x = Object.getOwnPropertySymbols;
35510
- var __hasOwnProp$x = Object.prototype.hasOwnProperty;
35511
- var __propIsEnum$x = Object.prototype.propertyIsEnumerable;
35512
- var __defNormalProp$q = (obj, key, value) => key in obj ? __defProp$q(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35513
- var __spreadValues$q = (a, b) => {
35514
+ var __defProp$s = Object.defineProperty;
35515
+ var __defProps$p = Object.defineProperties;
35516
+ var __getOwnPropDescs$p = Object.getOwnPropertyDescriptors;
35517
+ var __getOwnPropSymbols$y = Object.getOwnPropertySymbols;
35518
+ var __hasOwnProp$y = Object.prototype.hasOwnProperty;
35519
+ var __propIsEnum$y = Object.prototype.propertyIsEnumerable;
35520
+ var __defNormalProp$s = (obj, key, value) => key in obj ? __defProp$s(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35521
+ var __spreadValues$s = (a, b) => {
35514
35522
  for (var prop in b || (b = {}))
35515
- if (__hasOwnProp$x.call(b, prop))
35516
- __defNormalProp$q(a, prop, b[prop]);
35517
- if (__getOwnPropSymbols$x)
35518
- for (var prop of __getOwnPropSymbols$x(b)) {
35519
- if (__propIsEnum$x.call(b, prop))
35520
- __defNormalProp$q(a, prop, b[prop]);
35523
+ if (__hasOwnProp$y.call(b, prop))
35524
+ __defNormalProp$s(a, prop, b[prop]);
35525
+ if (__getOwnPropSymbols$y)
35526
+ for (var prop of __getOwnPropSymbols$y(b)) {
35527
+ if (__propIsEnum$y.call(b, prop))
35528
+ __defNormalProp$s(a, prop, b[prop]);
35521
35529
  }
35522
35530
  return a;
35523
35531
  };
35524
- var __spreadProps$n = (a, b) => __defProps$n(a, __getOwnPropDescs$n(b));
35525
- var __objRest$i = (source, exclude) => {
35532
+ var __spreadProps$p = (a, b) => __defProps$p(a, __getOwnPropDescs$p(b));
35533
+ var __objRest$j = (source, exclude) => {
35526
35534
  var target = {};
35527
35535
  for (var prop in source)
35528
- if (__hasOwnProp$x.call(source, prop) && exclude.indexOf(prop) < 0)
35536
+ if (__hasOwnProp$y.call(source, prop) && exclude.indexOf(prop) < 0)
35529
35537
  target[prop] = source[prop];
35530
- if (source != null && __getOwnPropSymbols$x)
35531
- for (var prop of __getOwnPropSymbols$x(source)) {
35532
- if (exclude.indexOf(prop) < 0 && __propIsEnum$x.call(source, prop))
35538
+ if (source != null && __getOwnPropSymbols$y)
35539
+ for (var prop of __getOwnPropSymbols$y(source)) {
35540
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$y.call(source, prop))
35533
35541
  target[prop] = source[prop];
35534
35542
  }
35535
35543
  return target;
@@ -35537,12 +35545,12 @@ var __objRest$i = (source, exclude) => {
35537
35545
  const useGetConnectionsCarrierSettings = (_a) => {
35538
35546
  var _b = _a, {
35539
35547
  queryFnParams
35540
- } = _b, params = __objRest$i(_b, [
35548
+ } = _b, params = __objRest$j(_b, [
35541
35549
  "queryFnParams"
35542
35550
  ]);
35543
35551
  const { client } = useShipEngine();
35544
35552
  const { carrierName, carrierId } = queryFnParams;
35545
- return reactQuery.useQuery(__spreadProps$n(__spreadValues$q({}, params), {
35553
+ return reactQuery.useQuery(__spreadProps$p(__spreadValues$s({}, params), {
35546
35554
  onError,
35547
35555
  queryFn: () => client.connections.getCarrierSettings(carrierName, carrierId),
35548
35556
  queryKey: ["useGetConnectionsCarrierSettings", carrierName, carrierId],
@@ -35550,26 +35558,26 @@ const useGetConnectionsCarrierSettings = (_a) => {
35550
35558
  }));
35551
35559
  };
35552
35560
 
35553
- var __defProp$p = Object.defineProperty;
35554
- var __defProps$m = Object.defineProperties;
35555
- var __getOwnPropDescs$m = Object.getOwnPropertyDescriptors;
35556
- var __getOwnPropSymbols$w = Object.getOwnPropertySymbols;
35557
- var __hasOwnProp$w = Object.prototype.hasOwnProperty;
35558
- var __propIsEnum$w = Object.prototype.propertyIsEnumerable;
35559
- var __defNormalProp$p = (obj, key, value) => key in obj ? __defProp$p(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35560
- var __spreadValues$p = (a, b) => {
35561
+ var __defProp$r = Object.defineProperty;
35562
+ var __defProps$o = Object.defineProperties;
35563
+ var __getOwnPropDescs$o = Object.getOwnPropertyDescriptors;
35564
+ var __getOwnPropSymbols$x = Object.getOwnPropertySymbols;
35565
+ var __hasOwnProp$x = Object.prototype.hasOwnProperty;
35566
+ var __propIsEnum$x = Object.prototype.propertyIsEnumerable;
35567
+ var __defNormalProp$r = (obj, key, value) => key in obj ? __defProp$r(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35568
+ var __spreadValues$r = (a, b) => {
35561
35569
  for (var prop in b || (b = {}))
35562
- if (__hasOwnProp$w.call(b, prop))
35563
- __defNormalProp$p(a, prop, b[prop]);
35564
- if (__getOwnPropSymbols$w)
35565
- for (var prop of __getOwnPropSymbols$w(b)) {
35566
- if (__propIsEnum$w.call(b, prop))
35567
- __defNormalProp$p(a, prop, b[prop]);
35570
+ if (__hasOwnProp$x.call(b, prop))
35571
+ __defNormalProp$r(a, prop, b[prop]);
35572
+ if (__getOwnPropSymbols$x)
35573
+ for (var prop of __getOwnPropSymbols$x(b)) {
35574
+ if (__propIsEnum$x.call(b, prop))
35575
+ __defNormalProp$r(a, prop, b[prop]);
35568
35576
  }
35569
35577
  return a;
35570
35578
  };
35571
- var __spreadProps$m = (a, b) => __defProps$m(a, __getOwnPropDescs$m(b));
35572
- var __async$G = (__this, __arguments, generator) => {
35579
+ var __spreadProps$o = (a, b) => __defProps$o(a, __getOwnPropDescs$o(b));
35580
+ var __async$H = (__this, __arguments, generator) => {
35573
35581
  return new Promise((resolve, reject) => {
35574
35582
  var fulfilled = (value) => {
35575
35583
  try {
@@ -35591,8 +35599,8 @@ var __async$G = (__this, __arguments, generator) => {
35591
35599
  };
35592
35600
  const useUpdateConnectionsCarrierSettings = (params) => {
35593
35601
  const { client } = useShipEngine();
35594
- return reactQuery.useMutation(__spreadProps$m(__spreadValues$p({}, params), {
35595
- mutationFn: (_0) => __async$G(void 0, [_0], function* ({
35602
+ return reactQuery.useMutation(__spreadProps$o(__spreadValues$r({}, params), {
35603
+ mutationFn: (_0) => __async$H(void 0, [_0], function* ({
35596
35604
  carrierName,
35597
35605
  carrierId,
35598
35606
  formData
@@ -35619,7 +35627,7 @@ const useListCustomPackageTypes = () => {
35619
35627
  });
35620
35628
  };
35621
35629
 
35622
- var __async$F = (__this, __arguments, generator) => {
35630
+ var __async$G = (__this, __arguments, generator) => {
35623
35631
  return new Promise((resolve, reject) => {
35624
35632
  var fulfilled = (value) => {
35625
35633
  try {
@@ -35642,7 +35650,7 @@ var __async$F = (__this, __arguments, generator) => {
35642
35650
  const useCreateFundingSource = () => {
35643
35651
  const { client } = useShipEngine();
35644
35652
  return reactQuery.useMutation({
35645
- mutationFn: (fundingSource) => __async$F(void 0, null, function* () {
35653
+ mutationFn: (fundingSource) => __async$G(void 0, null, function* () {
35646
35654
  const result = yield client.fundingSources.create(fundingSource);
35647
35655
  return result.data;
35648
35656
  }),
@@ -35651,7 +35659,7 @@ const useCreateFundingSource = () => {
35651
35659
  });
35652
35660
  };
35653
35661
 
35654
- var __async$E = (__this, __arguments, generator) => {
35662
+ var __async$F = (__this, __arguments, generator) => {
35655
35663
  return new Promise((resolve, reject) => {
35656
35664
  var fulfilled = (value) => {
35657
35665
  try {
@@ -35674,7 +35682,7 @@ var __async$E = (__this, __arguments, generator) => {
35674
35682
  const useFundingSourcesAddFunds = () => {
35675
35683
  const { client } = useShipEngine();
35676
35684
  return reactQuery.useMutation({
35677
- mutationFn: (_0) => __async$E(void 0, [_0], function* ({ funds, fundingSourceId }) {
35685
+ mutationFn: (_0) => __async$F(void 0, [_0], function* ({ funds, fundingSourceId }) {
35678
35686
  const result = yield client.fundingSources.addFunds(funds, fundingSourceId);
35679
35687
  return result.data;
35680
35688
  }),
@@ -35703,7 +35711,7 @@ const useListFundingSources = () => {
35703
35711
  });
35704
35712
  };
35705
35713
 
35706
- var __async$D = (__this, __arguments, generator) => {
35714
+ var __async$E = (__this, __arguments, generator) => {
35707
35715
  return new Promise((resolve, reject) => {
35708
35716
  var fulfilled = (value) => {
35709
35717
  try {
@@ -35726,7 +35734,7 @@ var __async$D = (__this, __arguments, generator) => {
35726
35734
  const useRegisterCarrier = () => {
35727
35735
  const { client } = useShipEngine();
35728
35736
  return reactQuery.useMutation({
35729
- mutationFn: (carrier) => __async$D(void 0, null, function* () {
35737
+ mutationFn: (carrier) => __async$E(void 0, null, function* () {
35730
35738
  const result = yield client.fundingSources.registerCarrier(carrier);
35731
35739
  return result.data;
35732
35740
  }),
@@ -35735,7 +35743,7 @@ const useRegisterCarrier = () => {
35735
35743
  });
35736
35744
  };
35737
35745
 
35738
- var __async$C = (__this, __arguments, generator) => {
35746
+ var __async$D = (__this, __arguments, generator) => {
35739
35747
  return new Promise((resolve, reject) => {
35740
35748
  var fulfilled = (value) => {
35741
35749
  try {
@@ -35758,7 +35766,7 @@ var __async$C = (__this, __arguments, generator) => {
35758
35766
  const useUpdateFundingSource = () => {
35759
35767
  const { client } = useShipEngine();
35760
35768
  return reactQuery.useMutation({
35761
- mutationFn: (_0) => __async$C(void 0, [_0], function* ({
35769
+ mutationFn: (_0) => __async$D(void 0, [_0], function* ({
35762
35770
  billingInfo,
35763
35771
  creditCardInfo,
35764
35772
  fundingSourceId,
@@ -35799,29 +35807,29 @@ const useGetFundingSourceTransactions = (fundingSourceId, params) => {
35799
35807
  });
35800
35808
  };
35801
35809
 
35802
- var __defProp$o = Object.defineProperty;
35803
- var __defProps$l = Object.defineProperties;
35804
- var __getOwnPropDescs$l = Object.getOwnPropertyDescriptors;
35805
- var __getOwnPropSymbols$v = Object.getOwnPropertySymbols;
35806
- var __hasOwnProp$v = Object.prototype.hasOwnProperty;
35807
- var __propIsEnum$v = Object.prototype.propertyIsEnumerable;
35808
- var __defNormalProp$o = (obj, key, value) => key in obj ? __defProp$o(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35809
- var __spreadValues$o = (a, b) => {
35810
+ var __defProp$q = Object.defineProperty;
35811
+ var __defProps$n = Object.defineProperties;
35812
+ var __getOwnPropDescs$n = Object.getOwnPropertyDescriptors;
35813
+ var __getOwnPropSymbols$w = Object.getOwnPropertySymbols;
35814
+ var __hasOwnProp$w = Object.prototype.hasOwnProperty;
35815
+ var __propIsEnum$w = Object.prototype.propertyIsEnumerable;
35816
+ var __defNormalProp$q = (obj, key, value) => key in obj ? __defProp$q(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35817
+ var __spreadValues$q = (a, b) => {
35810
35818
  for (var prop in b || (b = {}))
35811
- if (__hasOwnProp$v.call(b, prop))
35812
- __defNormalProp$o(a, prop, b[prop]);
35813
- if (__getOwnPropSymbols$v)
35814
- for (var prop of __getOwnPropSymbols$v(b)) {
35815
- if (__propIsEnum$v.call(b, prop))
35816
- __defNormalProp$o(a, prop, b[prop]);
35819
+ if (__hasOwnProp$w.call(b, prop))
35820
+ __defNormalProp$q(a, prop, b[prop]);
35821
+ if (__getOwnPropSymbols$w)
35822
+ for (var prop of __getOwnPropSymbols$w(b)) {
35823
+ if (__propIsEnum$w.call(b, prop))
35824
+ __defNormalProp$q(a, prop, b[prop]);
35817
35825
  }
35818
35826
  return a;
35819
35827
  };
35820
- var __spreadProps$l = (a, b) => __defProps$l(a, __getOwnPropDescs$l(b));
35828
+ var __spreadProps$n = (a, b) => __defProps$n(a, __getOwnPropDescs$n(b));
35821
35829
  const useGetInsuranceFundingSourceAcceptedTerms = (params) => {
35822
35830
  const { client } = useShipEngine();
35823
- const queryParams = __spreadValues$o({}, params);
35824
- return reactQuery.useQuery(__spreadProps$l(__spreadValues$o({}, queryParams), {
35831
+ const queryParams = __spreadValues$q({}, params);
35832
+ return reactQuery.useQuery(__spreadProps$n(__spreadValues$q({}, queryParams), {
35825
35833
  onError,
35826
35834
  queryFn: () => client.fundingSources.insuranceAcceptedTerms(),
35827
35835
  queryKey: ["useGetInsuranceFundingSourceAcceptedTerms"],
@@ -35844,22 +35852,22 @@ const useGetInsuranceAccount = (insuranceProvider) => {
35844
35852
  });
35845
35853
  };
35846
35854
 
35847
- var __getOwnPropSymbols$u = Object.getOwnPropertySymbols;
35848
- var __hasOwnProp$u = Object.prototype.hasOwnProperty;
35849
- var __propIsEnum$u = Object.prototype.propertyIsEnumerable;
35850
- var __objRest$h = (source, exclude) => {
35855
+ var __getOwnPropSymbols$v = Object.getOwnPropertySymbols;
35856
+ var __hasOwnProp$v = Object.prototype.hasOwnProperty;
35857
+ var __propIsEnum$v = Object.prototype.propertyIsEnumerable;
35858
+ var __objRest$i = (source, exclude) => {
35851
35859
  var target = {};
35852
35860
  for (var prop in source)
35853
- if (__hasOwnProp$u.call(source, prop) && exclude.indexOf(prop) < 0)
35861
+ if (__hasOwnProp$v.call(source, prop) && exclude.indexOf(prop) < 0)
35854
35862
  target[prop] = source[prop];
35855
- if (source != null && __getOwnPropSymbols$u)
35856
- for (var prop of __getOwnPropSymbols$u(source)) {
35857
- if (exclude.indexOf(prop) < 0 && __propIsEnum$u.call(source, prop))
35863
+ if (source != null && __getOwnPropSymbols$v)
35864
+ for (var prop of __getOwnPropSymbols$v(source)) {
35865
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$v.call(source, prop))
35858
35866
  target[prop] = source[prop];
35859
35867
  }
35860
35868
  return target;
35861
35869
  };
35862
- var __async$B = (__this, __arguments, generator) => {
35870
+ var __async$C = (__this, __arguments, generator) => {
35863
35871
  return new Promise((resolve, reject) => {
35864
35872
  var fulfilled = (value) => {
35865
35873
  try {
@@ -35882,8 +35890,8 @@ var __async$B = (__this, __arguments, generator) => {
35882
35890
  const useAddInsuranceFunds = () => {
35883
35891
  const { client } = useShipEngine();
35884
35892
  return reactQuery.useMutation({
35885
- mutationFn: (_a) => __async$B(void 0, null, function* () {
35886
- var _b = _a, { insuranceProvider } = _b, rest = __objRest$h(_b, ["insuranceProvider"]);
35893
+ mutationFn: (_a) => __async$C(void 0, null, function* () {
35894
+ var _b = _a, { insuranceProvider } = _b, rest = __objRest$i(_b, ["insuranceProvider"]);
35887
35895
  const result = yield client.insurance.addFunds(insuranceProvider, rest);
35888
35896
  return result.data;
35889
35897
  }),
@@ -35892,25 +35900,76 @@ const useAddInsuranceFunds = () => {
35892
35900
  });
35893
35901
  };
35894
35902
 
35895
- var __defProp$n = Object.defineProperty;
35896
- var __defProps$k = Object.defineProperties;
35897
- var __getOwnPropDescs$k = Object.getOwnPropertyDescriptors;
35903
+ var __defProp$p = Object.defineProperty;
35904
+ var __defProps$m = Object.defineProperties;
35905
+ var __getOwnPropDescs$m = Object.getOwnPropertyDescriptors;
35906
+ var __getOwnPropSymbols$u = Object.getOwnPropertySymbols;
35907
+ var __hasOwnProp$u = Object.prototype.hasOwnProperty;
35908
+ var __propIsEnum$u = Object.prototype.propertyIsEnumerable;
35909
+ var __defNormalProp$p = (obj, key, value) => key in obj ? __defProp$p(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35910
+ var __spreadValues$p = (a, b) => {
35911
+ for (var prop in b || (b = {}))
35912
+ if (__hasOwnProp$u.call(b, prop))
35913
+ __defNormalProp$p(a, prop, b[prop]);
35914
+ if (__getOwnPropSymbols$u)
35915
+ for (var prop of __getOwnPropSymbols$u(b)) {
35916
+ if (__propIsEnum$u.call(b, prop))
35917
+ __defNormalProp$p(a, prop, b[prop]);
35918
+ }
35919
+ return a;
35920
+ };
35921
+ var __spreadProps$m = (a, b) => __defProps$m(a, __getOwnPropDescs$m(b));
35922
+ var __async$B = (__this, __arguments, generator) => {
35923
+ return new Promise((resolve, reject) => {
35924
+ var fulfilled = (value) => {
35925
+ try {
35926
+ step(generator.next(value));
35927
+ } catch (e) {
35928
+ reject(e);
35929
+ }
35930
+ };
35931
+ var rejected = (value) => {
35932
+ try {
35933
+ step(generator.throw(value));
35934
+ } catch (e) {
35935
+ reject(e);
35936
+ }
35937
+ };
35938
+ var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
35939
+ step((generator = generator.apply(__this, __arguments)).next());
35940
+ });
35941
+ };
35942
+ const useCreateInvoiceAddress = (params) => {
35943
+ const { client } = useShipEngine();
35944
+ return reactQuery.useMutation(__spreadProps$m(__spreadValues$p({}, params), {
35945
+ mutationFn: (invoiceAddress) => __async$B(void 0, null, function* () {
35946
+ const result = yield client.invoiceAddress.create(invoiceAddress);
35947
+ return result.data;
35948
+ }),
35949
+ mutationKey: ["useCreateInvoiceAddress"],
35950
+ onError
35951
+ }));
35952
+ };
35953
+
35954
+ var __defProp$o = Object.defineProperty;
35955
+ var __defProps$l = Object.defineProperties;
35956
+ var __getOwnPropDescs$l = Object.getOwnPropertyDescriptors;
35898
35957
  var __getOwnPropSymbols$t = Object.getOwnPropertySymbols;
35899
35958
  var __hasOwnProp$t = Object.prototype.hasOwnProperty;
35900
35959
  var __propIsEnum$t = Object.prototype.propertyIsEnumerable;
35901
- var __defNormalProp$n = (obj, key, value) => key in obj ? __defProp$n(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35902
- var __spreadValues$n = (a, b) => {
35960
+ var __defNormalProp$o = (obj, key, value) => key in obj ? __defProp$o(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35961
+ var __spreadValues$o = (a, b) => {
35903
35962
  for (var prop in b || (b = {}))
35904
35963
  if (__hasOwnProp$t.call(b, prop))
35905
- __defNormalProp$n(a, prop, b[prop]);
35964
+ __defNormalProp$o(a, prop, b[prop]);
35906
35965
  if (__getOwnPropSymbols$t)
35907
35966
  for (var prop of __getOwnPropSymbols$t(b)) {
35908
35967
  if (__propIsEnum$t.call(b, prop))
35909
- __defNormalProp$n(a, prop, b[prop]);
35968
+ __defNormalProp$o(a, prop, b[prop]);
35910
35969
  }
35911
35970
  return a;
35912
35971
  };
35913
- var __spreadProps$k = (a, b) => __defProps$k(a, __getOwnPropDescs$k(b));
35972
+ var __spreadProps$l = (a, b) => __defProps$l(a, __getOwnPropDescs$l(b));
35914
35973
  var __async$A = (__this, __arguments, generator) => {
35915
35974
  return new Promise((resolve, reject) => {
35916
35975
  var fulfilled = (value) => {
@@ -35931,37 +35990,78 @@ var __async$A = (__this, __arguments, generator) => {
35931
35990
  step((generator = generator.apply(__this, __arguments)).next());
35932
35991
  });
35933
35992
  };
35934
- const useCreateInvoiceAddress = (params) => {
35993
+ const useUpdateInvoiceAddress = (params) => {
35935
35994
  const { client } = useShipEngine();
35936
- return reactQuery.useMutation(__spreadProps$k(__spreadValues$n({}, params), {
35995
+ return reactQuery.useMutation(__spreadProps$l(__spreadValues$o({}, params), {
35937
35996
  mutationFn: (invoiceAddress) => __async$A(void 0, null, function* () {
35938
- const result = yield client.invoiceAddress.create(invoiceAddress);
35997
+ const result = yield client.invoiceAddress.update(invoiceAddress);
35939
35998
  return result.data;
35940
35999
  }),
35941
- mutationKey: ["useCreateInvoiceAddress"],
36000
+ mutationKey: ["useUpdateInvoiceAddress"],
35942
36001
  onError
35943
36002
  }));
35944
36003
  };
35945
36004
 
35946
- var __defProp$m = Object.defineProperty;
35947
- var __defProps$j = Object.defineProperties;
35948
- var __getOwnPropDescs$j = Object.getOwnPropertyDescriptors;
36005
+ var __defProp$n = Object.defineProperty;
36006
+ var __defProps$k = Object.defineProperties;
36007
+ var __getOwnPropDescs$k = Object.getOwnPropertyDescriptors;
35949
36008
  var __getOwnPropSymbols$s = Object.getOwnPropertySymbols;
35950
36009
  var __hasOwnProp$s = Object.prototype.hasOwnProperty;
35951
36010
  var __propIsEnum$s = Object.prototype.propertyIsEnumerable;
35952
- var __defNormalProp$m = (obj, key, value) => key in obj ? __defProp$m(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35953
- var __spreadValues$m = (a, b) => {
36011
+ var __defNormalProp$n = (obj, key, value) => key in obj ? __defProp$n(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
36012
+ var __spreadValues$n = (a, b) => {
35954
36013
  for (var prop in b || (b = {}))
35955
36014
  if (__hasOwnProp$s.call(b, prop))
35956
- __defNormalProp$m(a, prop, b[prop]);
36015
+ __defNormalProp$n(a, prop, b[prop]);
35957
36016
  if (__getOwnPropSymbols$s)
35958
36017
  for (var prop of __getOwnPropSymbols$s(b)) {
35959
36018
  if (__propIsEnum$s.call(b, prop))
36019
+ __defNormalProp$n(a, prop, b[prop]);
36020
+ }
36021
+ return a;
36022
+ };
36023
+ var __spreadProps$k = (a, b) => __defProps$k(a, __getOwnPropDescs$k(b));
36024
+ const useGetInvoiceAddress = (params) => {
36025
+ const { client } = useShipEngine();
36026
+ return reactQuery.useQuery(__spreadProps$k(__spreadValues$n({}, params), {
36027
+ onError,
36028
+ queryFn: () => client.invoiceAddress.get(),
36029
+ queryKey: ["useGetInvoiceAddress"],
36030
+ select: (result) => result.data
36031
+ }));
36032
+ };
36033
+
36034
+ var __defProp$m = Object.defineProperty;
36035
+ var __defProps$j = Object.defineProperties;
36036
+ var __getOwnPropDescs$j = Object.getOwnPropertyDescriptors;
36037
+ var __getOwnPropSymbols$r = Object.getOwnPropertySymbols;
36038
+ var __hasOwnProp$r = Object.prototype.hasOwnProperty;
36039
+ var __propIsEnum$r = Object.prototype.propertyIsEnumerable;
36040
+ var __defNormalProp$m = (obj, key, value) => key in obj ? __defProp$m(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
36041
+ var __spreadValues$m = (a, b) => {
36042
+ for (var prop in b || (b = {}))
36043
+ if (__hasOwnProp$r.call(b, prop))
36044
+ __defNormalProp$m(a, prop, b[prop]);
36045
+ if (__getOwnPropSymbols$r)
36046
+ for (var prop of __getOwnPropSymbols$r(b)) {
36047
+ if (__propIsEnum$r.call(b, prop))
35960
36048
  __defNormalProp$m(a, prop, b[prop]);
35961
36049
  }
35962
36050
  return a;
35963
36051
  };
35964
36052
  var __spreadProps$j = (a, b) => __defProps$j(a, __getOwnPropDescs$j(b));
36053
+ var __objRest$h = (source, exclude) => {
36054
+ var target = {};
36055
+ for (var prop in source)
36056
+ if (__hasOwnProp$r.call(source, prop) && exclude.indexOf(prop) < 0)
36057
+ target[prop] = source[prop];
36058
+ if (source != null && __getOwnPropSymbols$r)
36059
+ for (var prop of __getOwnPropSymbols$r(source)) {
36060
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$r.call(source, prop))
36061
+ target[prop] = source[prop];
36062
+ }
36063
+ return target;
36064
+ };
35965
36065
  var __async$z = (__this, __arguments, generator) => {
35966
36066
  return new Promise((resolve, reject) => {
35967
36067
  var fulfilled = (value) => {
@@ -35982,14 +36082,15 @@ var __async$z = (__this, __arguments, generator) => {
35982
36082
  step((generator = generator.apply(__this, __arguments)).next());
35983
36083
  });
35984
36084
  };
35985
- const useUpdateInvoiceAddress = (params) => {
36085
+ const useCreateLabelByRateId = (params) => {
35986
36086
  const { client } = useShipEngine();
35987
36087
  return reactQuery.useMutation(__spreadProps$j(__spreadValues$m({}, params), {
35988
- mutationFn: (invoiceAddress) => __async$z(void 0, null, function* () {
35989
- const result = yield client.invoiceAddress.update(invoiceAddress);
36088
+ mutationFn: (_a) => __async$z(void 0, null, function* () {
36089
+ var _b = _a, { rateId } = _b, options = __objRest$h(_b, ["rateId"]);
36090
+ const result = yield client.labels.createByRateId(rateId, options);
35990
36091
  return result.data;
35991
36092
  }),
35992
- mutationKey: ["useUpdateInvoiceAddress"],
36093
+ mutationKey: ["useCreateLabel"],
35993
36094
  onError
35994
36095
  }));
35995
36096
  };
@@ -35997,35 +36098,22 @@ const useUpdateInvoiceAddress = (params) => {
35997
36098
  var __defProp$l = Object.defineProperty;
35998
36099
  var __defProps$i = Object.defineProperties;
35999
36100
  var __getOwnPropDescs$i = Object.getOwnPropertyDescriptors;
36000
- var __getOwnPropSymbols$r = Object.getOwnPropertySymbols;
36001
- var __hasOwnProp$r = Object.prototype.hasOwnProperty;
36002
- var __propIsEnum$r = Object.prototype.propertyIsEnumerable;
36101
+ var __getOwnPropSymbols$q = Object.getOwnPropertySymbols;
36102
+ var __hasOwnProp$q = Object.prototype.hasOwnProperty;
36103
+ var __propIsEnum$q = Object.prototype.propertyIsEnumerable;
36003
36104
  var __defNormalProp$l = (obj, key, value) => key in obj ? __defProp$l(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
36004
36105
  var __spreadValues$l = (a, b) => {
36005
36106
  for (var prop in b || (b = {}))
36006
- if (__hasOwnProp$r.call(b, prop))
36107
+ if (__hasOwnProp$q.call(b, prop))
36007
36108
  __defNormalProp$l(a, prop, b[prop]);
36008
- if (__getOwnPropSymbols$r)
36009
- for (var prop of __getOwnPropSymbols$r(b)) {
36010
- if (__propIsEnum$r.call(b, prop))
36109
+ if (__getOwnPropSymbols$q)
36110
+ for (var prop of __getOwnPropSymbols$q(b)) {
36111
+ if (__propIsEnum$q.call(b, prop))
36011
36112
  __defNormalProp$l(a, prop, b[prop]);
36012
36113
  }
36013
36114
  return a;
36014
36115
  };
36015
36116
  var __spreadProps$i = (a, b) => __defProps$i(a, __getOwnPropDescs$i(b));
36016
- const useGetInvoiceAddress = (params) => {
36017
- const { client } = useShipEngine();
36018
- return reactQuery.useQuery(__spreadProps$i(__spreadValues$l({}, params), {
36019
- onError,
36020
- queryFn: () => client.invoiceAddress.get(),
36021
- queryKey: ["useGetInvoiceAddress"],
36022
- select: (result) => result.data
36023
- }));
36024
- };
36025
-
36026
- var __getOwnPropSymbols$q = Object.getOwnPropertySymbols;
36027
- var __hasOwnProp$q = Object.prototype.hasOwnProperty;
36028
- var __propIsEnum$q = Object.prototype.propertyIsEnumerable;
36029
36117
  var __objRest$g = (source, exclude) => {
36030
36118
  var target = {};
36031
36119
  for (var prop in source)
@@ -36058,17 +36146,17 @@ var __async$y = (__this, __arguments, generator) => {
36058
36146
  step((generator = generator.apply(__this, __arguments)).next());
36059
36147
  });
36060
36148
  };
36061
- const useCreateLabel = () => {
36149
+ const useCreateLabelByShipmentId = (params) => {
36062
36150
  const { client } = useShipEngine();
36063
- return reactQuery.useMutation({
36151
+ return reactQuery.useMutation(__spreadProps$i(__spreadValues$l({}, params), {
36064
36152
  mutationFn: (_a) => __async$y(void 0, null, function* () {
36065
- var _b = _a, { rateId } = _b, options = __objRest$g(_b, ["rateId"]);
36066
- const result = yield client.labels.createByRateId(rateId, options);
36153
+ var _b = _a, { shipmentId } = _b, options = __objRest$g(_b, ["shipmentId"]);
36154
+ const result = yield client.labels.createByShipmentId(shipmentId, options);
36067
36155
  return result.data;
36068
36156
  }),
36069
- mutationKey: ["useCreateLabel"],
36157
+ mutationKey: ["useCreateLabelForShipment"],
36070
36158
  onError
36071
- });
36159
+ }));
36072
36160
  };
36073
36161
 
36074
36162
  const useGetLabel = (labelId) => {
@@ -39349,7 +39437,8 @@ exports.useCreateAccountImage = useCreateAccountImage;
39349
39437
  exports.useCreateAuctanePaySession = useCreateAuctanePaySession;
39350
39438
  exports.useCreateFundingSource = useCreateFundingSource;
39351
39439
  exports.useCreateInvoiceAddress = useCreateInvoiceAddress;
39352
- exports.useCreateLabel = useCreateLabel;
39440
+ exports.useCreateLabelByRateId = useCreateLabelByRateId;
39441
+ exports.useCreateLabelByShipmentId = useCreateLabelByShipmentId;
39353
39442
  exports.useCreateRateCard = useCreateRateCard;
39354
39443
  exports.useCreateSalesOrderShipment = useCreateSalesOrderShipment;
39355
39444
  exports.useCreateSandboxSeller = useCreateSandboxSeller;