@shipengine/alchemy 6.0.29 → 6.0.31

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 +444 -362
  2. package/index.mjs +445 -364
  3. package/package.json +1 -1
package/index.mjs CHANGED
@@ -2,7 +2,7 @@ import * as React from 'react';
2
2
  import { createContext, forwardRef, useContext, createElement as createElement$1, Fragment, useState, useEffect, useCallback, useMemo, useRef } from 'react';
3
3
  import { jsx as jsx$1 } from 'react/jsx-runtime';
4
4
  import { GigerProvider, GigerTestProvider, DefaultPortalRefProvider } from '@shipengine/giger';
5
- import { QueryClient, QueryClientProvider, useMutation, useQuery, useQueryClient } from '@tanstack/react-query';
5
+ import { QueryClient, QueryClientProvider, useMutation, useQuery, useQueryClient, useInfiniteQuery } from '@tanstack/react-query';
6
6
  import { CacheProvider } from '@emotion/react';
7
7
  import { I18nextProvider } from 'react-i18next';
8
8
  import i18n from 'i18next';
@@ -10790,17 +10790,17 @@ var AccountBillingPlanChangeType = /* @__PURE__ */ ((AccountBillingPlanChangeTyp
10790
10790
  return AccountBillingPlanChangeType2;
10791
10791
  })(AccountBillingPlanChangeType || {});
10792
10792
 
10793
- var __getOwnPropSymbols$H = Object.getOwnPropertySymbols;
10794
- var __hasOwnProp$H = Object.prototype.hasOwnProperty;
10795
- var __propIsEnum$H = Object.prototype.propertyIsEnumerable;
10796
- var __objRest$p = (source, exclude) => {
10793
+ var __getOwnPropSymbols$I = Object.getOwnPropertySymbols;
10794
+ var __hasOwnProp$I = Object.prototype.hasOwnProperty;
10795
+ var __propIsEnum$I = Object.prototype.propertyIsEnumerable;
10796
+ var __objRest$q = (source, exclude) => {
10797
10797
  var target = {};
10798
10798
  for (var prop in source)
10799
- if (__hasOwnProp$H.call(source, prop) && exclude.indexOf(prop) < 0)
10799
+ if (__hasOwnProp$I.call(source, prop) && exclude.indexOf(prop) < 0)
10800
10800
  target[prop] = source[prop];
10801
- if (source != null && __getOwnPropSymbols$H)
10802
- for (var prop of __getOwnPropSymbols$H(source)) {
10803
- if (exclude.indexOf(prop) < 0 && __propIsEnum$H.call(source, prop))
10801
+ if (source != null && __getOwnPropSymbols$I)
10802
+ for (var prop of __getOwnPropSymbols$I(source)) {
10803
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$I.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$p(_b, ["message"]);
10817
+ var _b = _a, { message } = _b, options = __objRest$q(_b, ["message"]);
10818
10818
  return new CodedError(message, options);
10819
10819
  }
10820
10820
  }
@@ -10933,17 +10933,17 @@ const types = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
10933
10933
  RateCardStatus
10934
10934
  }, Symbol.toStringTag, { value: 'Module' }));
10935
10935
 
10936
- var __getOwnPropSymbols$G = Object.getOwnPropertySymbols;
10937
- var __hasOwnProp$G = Object.prototype.hasOwnProperty;
10938
- var __propIsEnum$G = Object.prototype.propertyIsEnumerable;
10939
- var __objRest$o = (source, exclude) => {
10936
+ var __getOwnPropSymbols$H = Object.getOwnPropertySymbols;
10937
+ var __hasOwnProp$H = Object.prototype.hasOwnProperty;
10938
+ var __propIsEnum$H = Object.prototype.propertyIsEnumerable;
10939
+ var __objRest$p = (source, exclude) => {
10940
10940
  var target = {};
10941
10941
  for (var prop in source)
10942
- if (__hasOwnProp$G.call(source, prop) && exclude.indexOf(prop) < 0)
10942
+ if (__hasOwnProp$H.call(source, prop) && exclude.indexOf(prop) < 0)
10943
10943
  target[prop] = source[prop];
10944
- if (source != null && __getOwnPropSymbols$G)
10945
- for (var prop of __getOwnPropSymbols$G(source)) {
10946
- if (exclude.indexOf(prop) < 0 && __propIsEnum$G.call(source, prop))
10944
+ if (source != null && __getOwnPropSymbols$H)
10945
+ for (var prop of __getOwnPropSymbols$H(source)) {
10946
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$H.call(source, prop))
10947
10947
  target[prop] = source[prop];
10948
10948
  }
10949
10949
  return target;
@@ -10975,7 +10975,7 @@ class AccountSettingsAPI {
10975
10975
  * The `updateImage` method updates specific image data for a given image id.
10976
10976
  */
10977
10977
  this.updateImage = (_a) => {
10978
- var _b = _a, { labelImageId } = _b, data = __objRest$o(_b, ["labelImageId"]);
10978
+ var _b = _a, { labelImageId } = _b, data = __objRest$p(_b, ["labelImageId"]);
10979
10979
  return this.client.put(`/v1/account/settings/images/${labelImageId}`, data);
10980
10980
  };
10981
10981
  /**
@@ -13685,7 +13685,7 @@ var ipaddr = {
13685
13685
  }).call(commonjsGlobal);
13686
13686
  } (ipaddr));
13687
13687
 
13688
- var __async$X = (__this, __arguments, generator) => {
13688
+ var __async$Y = (__this, __arguments, generator) => {
13689
13689
  return new Promise((resolve, reject) => {
13690
13690
  var fulfilled = (value) => {
13691
13691
  try {
@@ -13705,7 +13705,7 @@ var __async$X = (__this, __arguments, generator) => {
13705
13705
  step((generator = generator.apply(__this, __arguments)).next());
13706
13706
  });
13707
13707
  };
13708
- const getEndUserIpAddress = () => __async$X(void 0, null, function* () {
13708
+ const getEndUserIpAddress = () => __async$Y(void 0, null, function* () {
13709
13709
  try {
13710
13710
  const response = yield axios.get("https://api.ipify.org/?format=json");
13711
13711
  if (response.data.ip && ipaddrExports.isValid(response.data.ip)) {
@@ -13762,38 +13762,38 @@ const decamelizeKeys = (obj, separator = "_") => {
13762
13762
  return obj;
13763
13763
  };
13764
13764
 
13765
- var __defProp$u = Object.defineProperty;
13766
- var __defProps$o = Object.defineProperties;
13767
- var __getOwnPropDescs$o = Object.getOwnPropertyDescriptors;
13768
- var __getOwnPropSymbols$F = Object.getOwnPropertySymbols;
13769
- var __hasOwnProp$F = Object.prototype.hasOwnProperty;
13770
- var __propIsEnum$F = Object.prototype.propertyIsEnumerable;
13771
- var __defNormalProp$u = (obj, key, value) => key in obj ? __defProp$u(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
13772
- var __spreadValues$u = (a, b) => {
13765
+ var __defProp$v = Object.defineProperty;
13766
+ var __defProps$p = Object.defineProperties;
13767
+ var __getOwnPropDescs$p = Object.getOwnPropertyDescriptors;
13768
+ var __getOwnPropSymbols$G = Object.getOwnPropertySymbols;
13769
+ var __hasOwnProp$G = Object.prototype.hasOwnProperty;
13770
+ var __propIsEnum$G = Object.prototype.propertyIsEnumerable;
13771
+ var __defNormalProp$v = (obj, key, value) => key in obj ? __defProp$v(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
13772
+ var __spreadValues$v = (a, b) => {
13773
13773
  for (var prop in b || (b = {}))
13774
- if (__hasOwnProp$F.call(b, prop))
13775
- __defNormalProp$u(a, prop, b[prop]);
13776
- if (__getOwnPropSymbols$F)
13777
- for (var prop of __getOwnPropSymbols$F(b)) {
13778
- if (__propIsEnum$F.call(b, prop))
13779
- __defNormalProp$u(a, prop, b[prop]);
13774
+ if (__hasOwnProp$G.call(b, prop))
13775
+ __defNormalProp$v(a, prop, b[prop]);
13776
+ if (__getOwnPropSymbols$G)
13777
+ for (var prop of __getOwnPropSymbols$G(b)) {
13778
+ if (__propIsEnum$G.call(b, prop))
13779
+ __defNormalProp$v(a, prop, b[prop]);
13780
13780
  }
13781
13781
  return a;
13782
13782
  };
13783
- var __spreadProps$o = (a, b) => __defProps$o(a, __getOwnPropDescs$o(b));
13784
- var __objRest$n = (source, exclude) => {
13783
+ var __spreadProps$p = (a, b) => __defProps$p(a, __getOwnPropDescs$p(b));
13784
+ var __objRest$o = (source, exclude) => {
13785
13785
  var target = {};
13786
13786
  for (var prop in source)
13787
- if (__hasOwnProp$F.call(source, prop) && exclude.indexOf(prop) < 0)
13787
+ if (__hasOwnProp$G.call(source, prop) && exclude.indexOf(prop) < 0)
13788
13788
  target[prop] = source[prop];
13789
- if (source != null && __getOwnPropSymbols$F)
13790
- for (var prop of __getOwnPropSymbols$F(source)) {
13791
- if (exclude.indexOf(prop) < 0 && __propIsEnum$F.call(source, prop))
13789
+ if (source != null && __getOwnPropSymbols$G)
13790
+ for (var prop of __getOwnPropSymbols$G(source)) {
13791
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$G.call(source, prop))
13792
13792
  target[prop] = source[prop];
13793
13793
  }
13794
13794
  return target;
13795
13795
  };
13796
- var __async$W = (__this, __arguments, generator) => {
13796
+ var __async$X = (__this, __arguments, generator) => {
13797
13797
  return new Promise((resolve, reject) => {
13798
13798
  var fulfilled = (value) => {
13799
13799
  try {
@@ -13833,12 +13833,12 @@ class CarriersAPI {
13833
13833
  /**
13834
13834
  * The `connect` method connects a carrier account to a user's ShipEngine account.
13835
13835
  */
13836
- this.connect = (_a) => __async$W(this, null, function* () {
13837
- var _b = _a, { carrierCode } = _b, connection = __objRest$n(_b, ["carrierCode"]);
13836
+ this.connect = (_a) => __async$X(this, null, function* () {
13837
+ var _b = _a, { carrierCode } = _b, connection = __objRest$o(_b, ["carrierCode"]);
13838
13838
  const endUserIpAddress = yield getEndUserIpAddress();
13839
13839
  if (!endUserIpAddress)
13840
13840
  return Promise.reject([new CodedError("Unable to get IP address")]);
13841
- return yield this.client.post(`/v1/registration/${carrierCode}`, __spreadProps$o(__spreadValues$u({}, connection), {
13841
+ return yield this.client.post(`/v1/registration/${carrierCode}`, __spreadProps$p(__spreadValues$v({}, connection), {
13842
13842
  endUserIpAddress
13843
13843
  }));
13844
13844
  });
@@ -13924,7 +13924,7 @@ class CarriersAPI {
13924
13924
  }
13925
13925
  }
13926
13926
 
13927
- var __async$V = (__this, __arguments, generator) => {
13927
+ var __async$W = (__this, __arguments, generator) => {
13928
13928
  return new Promise((resolve, reject) => {
13929
13929
  var fulfilled = (value) => {
13930
13930
  try {
@@ -13966,7 +13966,7 @@ class ConnectionsAPI {
13966
13966
  /**
13967
13967
  * The `connectCarrier` method connects a carrier to account.
13968
13968
  */
13969
- this.connectCarrier = (carrierName, formData) => __async$V(this, null, function* () {
13969
+ this.connectCarrier = (carrierName, formData) => __async$W(this, null, function* () {
13970
13970
  return yield this.client.post(
13971
13971
  `/v1/connections/carriers/${carrierName}`,
13972
13972
  formData,
@@ -16141,23 +16141,23 @@ class CustomPackagesAPI {
16141
16141
  }
16142
16142
  }
16143
16143
 
16144
- var __defProp$t = Object.defineProperty;
16145
- var __getOwnPropSymbols$E = Object.getOwnPropertySymbols;
16146
- var __hasOwnProp$E = Object.prototype.hasOwnProperty;
16147
- var __propIsEnum$E = Object.prototype.propertyIsEnumerable;
16148
- var __defNormalProp$t = (obj, key, value) => key in obj ? __defProp$t(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
16149
- var __spreadValues$t = (a, b) => {
16144
+ var __defProp$u = Object.defineProperty;
16145
+ var __getOwnPropSymbols$F = Object.getOwnPropertySymbols;
16146
+ var __hasOwnProp$F = Object.prototype.hasOwnProperty;
16147
+ var __propIsEnum$F = Object.prototype.propertyIsEnumerable;
16148
+ var __defNormalProp$u = (obj, key, value) => key in obj ? __defProp$u(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
16149
+ var __spreadValues$u = (a, b) => {
16150
16150
  for (var prop in b || (b = {}))
16151
- if (__hasOwnProp$E.call(b, prop))
16152
- __defNormalProp$t(a, prop, b[prop]);
16153
- if (__getOwnPropSymbols$E)
16154
- for (var prop of __getOwnPropSymbols$E(b)) {
16155
- if (__propIsEnum$E.call(b, prop))
16156
- __defNormalProp$t(a, prop, b[prop]);
16151
+ if (__hasOwnProp$F.call(b, prop))
16152
+ __defNormalProp$u(a, prop, b[prop]);
16153
+ if (__getOwnPropSymbols$F)
16154
+ for (var prop of __getOwnPropSymbols$F(b)) {
16155
+ if (__propIsEnum$F.call(b, prop))
16156
+ __defNormalProp$u(a, prop, b[prop]);
16157
16157
  }
16158
16158
  return a;
16159
16159
  };
16160
- var __async$U = (__this, __arguments, generator) => {
16160
+ var __async$V = (__this, __arguments, generator) => {
16161
16161
  return new Promise((resolve, reject) => {
16162
16162
  var fulfilled = (value) => {
16163
16163
  try {
@@ -16196,12 +16196,12 @@ class FundingSourcesAPI {
16196
16196
  * The `create` method creates a new funding source for a given user. This requires
16197
16197
  * payment information to be collected from the user.
16198
16198
  */
16199
- this.create = (createFundingSource) => __async$U(this, null, function* () {
16199
+ this.create = (createFundingSource) => __async$V(this, null, function* () {
16200
16200
  const endUserIpAddress = yield getEndUserIpAddress();
16201
16201
  if (!endUserIpAddress) {
16202
16202
  return Promise.reject([new CodedError("Unable to get IP address")]);
16203
16203
  }
16204
- return yield this.client.post("/v1/funding_sources", __spreadValues$t({
16204
+ return yield this.client.post("/v1/funding_sources", __spreadValues$u({
16205
16205
  endUserIpAddress
16206
16206
  }, createFundingSource));
16207
16207
  });
@@ -16210,7 +16210,7 @@ class FundingSourcesAPI {
16210
16210
  * user to update the billing address or payment information associated with the
16211
16211
  * funding source.
16212
16212
  */
16213
- this.update = (billingInfo, creditCardInfo, fundingSourceId) => __async$U(this, null, function* () {
16213
+ this.update = (billingInfo, creditCardInfo, auctanePayInfo, fundingSourceId) => __async$V(this, null, function* () {
16214
16214
  const endUserIpAddress = yield getEndUserIpAddress();
16215
16215
  if (!endUserIpAddress) {
16216
16216
  return Promise.reject([new CodedError("Unable to get IP address")]);
@@ -16220,7 +16220,9 @@ class FundingSourcesAPI {
16220
16220
  {
16221
16221
  billingInfo,
16222
16222
  endUserIpAddress,
16223
- paymentMethod: { creditCardInfo }
16223
+ paymentMethod: __spreadValues$u({
16224
+ creditCardInfo
16225
+ }, auctanePayInfo)
16224
16226
  }
16225
16227
  );
16226
16228
  });
@@ -16228,19 +16230,19 @@ class FundingSourcesAPI {
16228
16230
  * The `registerCarrier` method registers a carrier account and associates
16229
16231
  * it with a given funding source.
16230
16232
  */
16231
- this.registerCarrier = (carrier) => __async$U(this, null, function* () {
16233
+ this.registerCarrier = (carrier) => __async$V(this, null, function* () {
16232
16234
  const endUserIpAddress = yield getEndUserIpAddress();
16233
16235
  if (!endUserIpAddress) {
16234
16236
  return Promise.reject([new CodedError("Unable to get IP address")]);
16235
16237
  }
16236
- return yield this.client.post("/v1/registration/funding_source", __spreadValues$t({
16238
+ return yield this.client.post("/v1/registration/funding_source", __spreadValues$u({
16237
16239
  endUserIpAddress
16238
16240
  }, carrier));
16239
16241
  });
16240
16242
  /**
16241
16243
  * The `addFunds` method allows you to add funds to a funding source.
16242
16244
  */
16243
- this.addFunds = (amount, fundingSourceId) => __async$U(this, null, function* () {
16245
+ this.addFunds = (amount, fundingSourceId) => __async$V(this, null, function* () {
16244
16246
  return yield this.client.put(
16245
16247
  `/v1/funding_sources/${fundingSourceId}/add_funds`,
16246
16248
  amount
@@ -16250,7 +16252,7 @@ class FundingSourcesAPI {
16250
16252
  * The `metadata` method returns seller-specific requirements for creating funding sources
16251
16253
  * and attaching carriers
16252
16254
  */
16253
- this.metadata = () => __async$U(this, null, function* () {
16255
+ this.metadata = () => __async$V(this, null, function* () {
16254
16256
  return yield this.client.get("/v1/funding_sources/metadata");
16255
16257
  });
16256
16258
  /**
@@ -16302,7 +16304,7 @@ class InsuranceAPI {
16302
16304
  }
16303
16305
  }
16304
16306
 
16305
- var __async$T = (__this, __arguments, generator) => {
16307
+ var __async$U = (__this, __arguments, generator) => {
16306
16308
  return new Promise((resolve, reject) => {
16307
16309
  var fulfilled = (value) => {
16308
16310
  try {
@@ -16334,13 +16336,13 @@ class InvoiceAddressAPI {
16334
16336
  /**
16335
16337
  * The `create` method creates a new invoice address for a given user.
16336
16338
  */
16337
- this.create = (invoiceAddress) => __async$T(this, null, function* () {
16339
+ this.create = (invoiceAddress) => __async$U(this, null, function* () {
16338
16340
  return yield this.client.post("/v1/invoice_address", invoiceAddress);
16339
16341
  });
16340
16342
  /**
16341
16343
  * The `update` method updates a invoice address for a given user.
16342
16344
  */
16343
- this.update = (invoiceAddress) => __async$T(this, null, function* () {
16345
+ this.update = (invoiceAddress) => __async$U(this, null, function* () {
16344
16346
  return yield this.client.put("/v1/invoice_address", invoiceAddress);
16345
16347
  });
16346
16348
  this.client = client;
@@ -16382,17 +16384,17 @@ class LabelsAPI {
16382
16384
  }
16383
16385
  }
16384
16386
 
16385
- var __getOwnPropSymbols$D = Object.getOwnPropertySymbols;
16386
- var __hasOwnProp$D = Object.prototype.hasOwnProperty;
16387
- var __propIsEnum$D = Object.prototype.propertyIsEnumerable;
16388
- var __objRest$m = (source, exclude) => {
16387
+ var __getOwnPropSymbols$E = Object.getOwnPropertySymbols;
16388
+ var __hasOwnProp$E = Object.prototype.hasOwnProperty;
16389
+ var __propIsEnum$E = Object.prototype.propertyIsEnumerable;
16390
+ var __objRest$n = (source, exclude) => {
16389
16391
  var target = {};
16390
16392
  for (var prop in source)
16391
- if (__hasOwnProp$D.call(source, prop) && exclude.indexOf(prop) < 0)
16393
+ if (__hasOwnProp$E.call(source, prop) && exclude.indexOf(prop) < 0)
16392
16394
  target[prop] = source[prop];
16393
- if (source != null && __getOwnPropSymbols$D)
16394
- for (var prop of __getOwnPropSymbols$D(source)) {
16395
- if (exclude.indexOf(prop) < 0 && __propIsEnum$D.call(source, prop))
16395
+ if (source != null && __getOwnPropSymbols$E)
16396
+ for (var prop of __getOwnPropSymbols$E(source)) {
16397
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$E.call(source, prop))
16396
16398
  target[prop] = source[prop];
16397
16399
  }
16398
16400
  return target;
@@ -16424,7 +16426,7 @@ class OrderSourcesAPI {
16424
16426
  * The `update` method will allow the user to update a connected Order Source
16425
16427
  */
16426
16428
  this.update = (_a) => {
16427
- var _b = _a, { orderSourceId } = _b, rest = __objRest$m(_b, ["orderSourceId"]);
16429
+ var _b = _a, { orderSourceId } = _b, rest = __objRest$n(_b, ["orderSourceId"]);
16428
16430
  return this.client.put(`/v-beta/order_sources/${orderSourceId}`, rest);
16429
16431
  };
16430
16432
  /**
@@ -16513,19 +16515,19 @@ class RateCardsAPI {
16513
16515
  }
16514
16516
  }
16515
16517
 
16516
- var __defProp$s = Object.defineProperty;
16517
- var __getOwnPropSymbols$C = Object.getOwnPropertySymbols;
16518
- var __hasOwnProp$C = Object.prototype.hasOwnProperty;
16519
- var __propIsEnum$C = Object.prototype.propertyIsEnumerable;
16520
- var __defNormalProp$s = (obj, key, value) => key in obj ? __defProp$s(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
16521
- var __spreadValues$s = (a, b) => {
16518
+ var __defProp$t = Object.defineProperty;
16519
+ var __getOwnPropSymbols$D = Object.getOwnPropertySymbols;
16520
+ var __hasOwnProp$D = Object.prototype.hasOwnProperty;
16521
+ var __propIsEnum$D = Object.prototype.propertyIsEnumerable;
16522
+ var __defNormalProp$t = (obj, key, value) => key in obj ? __defProp$t(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
16523
+ var __spreadValues$t = (a, b) => {
16522
16524
  for (var prop in b || (b = {}))
16523
- if (__hasOwnProp$C.call(b, prop))
16524
- __defNormalProp$s(a, prop, b[prop]);
16525
- if (__getOwnPropSymbols$C)
16526
- for (var prop of __getOwnPropSymbols$C(b)) {
16527
- if (__propIsEnum$C.call(b, prop))
16528
- __defNormalProp$s(a, prop, b[prop]);
16525
+ if (__hasOwnProp$D.call(b, prop))
16526
+ __defNormalProp$t(a, prop, b[prop]);
16527
+ if (__getOwnPropSymbols$D)
16528
+ for (var prop of __getOwnPropSymbols$D(b)) {
16529
+ if (__propIsEnum$D.call(b, prop))
16530
+ __defNormalProp$t(a, prop, b[prop]);
16529
16531
  }
16530
16532
  return a;
16531
16533
  };
@@ -16547,7 +16549,7 @@ class RatesAPI {
16547
16549
  * method.
16548
16550
  */
16549
16551
  this.estimate = (params) => {
16550
- return this.client.post("/v1/rates/estimate", __spreadValues$s({}, params));
16552
+ return this.client.post("/v1/rates/estimate", __spreadValues$t({}, params));
16551
16553
  };
16552
16554
  this.client = client;
16553
16555
  }
@@ -16627,7 +16629,7 @@ class SalesOrdersAPI {
16627
16629
  }
16628
16630
  }
16629
16631
 
16630
- var __async$S = (__this, __arguments, generator) => {
16632
+ var __async$T = (__this, __arguments, generator) => {
16631
16633
  return new Promise((resolve, reject) => {
16632
16634
  var fulfilled = (value) => {
16633
16635
  try {
@@ -16685,7 +16687,7 @@ class SellersAPI {
16685
16687
  /**
16686
16688
  * Deletes an API Key
16687
16689
  */
16688
- this.deleteSellerApiKey = (_0) => __async$S(this, [_0], function* ({
16690
+ this.deleteSellerApiKey = (_0) => __async$T(this, [_0], function* ({
16689
16691
  encryptedApiKey,
16690
16692
  sellerId,
16691
16693
  isSandbox
@@ -16731,19 +16733,19 @@ class SellersAPI {
16731
16733
  }
16732
16734
  }
16733
16735
 
16734
- var __defProp$r = Object.defineProperty;
16735
- var __getOwnPropSymbols$B = Object.getOwnPropertySymbols;
16736
- var __hasOwnProp$B = Object.prototype.hasOwnProperty;
16737
- var __propIsEnum$B = Object.prototype.propertyIsEnumerable;
16738
- var __defNormalProp$r = (obj, key, value) => key in obj ? __defProp$r(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
16739
- var __spreadValues$r = (a, b) => {
16736
+ var __defProp$s = Object.defineProperty;
16737
+ var __getOwnPropSymbols$C = Object.getOwnPropertySymbols;
16738
+ var __hasOwnProp$C = Object.prototype.hasOwnProperty;
16739
+ var __propIsEnum$C = Object.prototype.propertyIsEnumerable;
16740
+ var __defNormalProp$s = (obj, key, value) => key in obj ? __defProp$s(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
16741
+ var __spreadValues$s = (a, b) => {
16740
16742
  for (var prop in b || (b = {}))
16741
- if (__hasOwnProp$B.call(b, prop))
16742
- __defNormalProp$r(a, prop, b[prop]);
16743
- if (__getOwnPropSymbols$B)
16744
- for (var prop of __getOwnPropSymbols$B(b)) {
16745
- if (__propIsEnum$B.call(b, prop))
16746
- __defNormalProp$r(a, prop, b[prop]);
16743
+ if (__hasOwnProp$C.call(b, prop))
16744
+ __defNormalProp$s(a, prop, b[prop]);
16745
+ if (__getOwnPropSymbols$C)
16746
+ for (var prop of __getOwnPropSymbols$C(b)) {
16747
+ if (__propIsEnum$C.call(b, prop))
16748
+ __defNormalProp$s(a, prop, b[prop]);
16747
16749
  }
16748
16750
  return a;
16749
16751
  };
@@ -16755,7 +16757,7 @@ class ServicePointsAPI {
16755
16757
  * Either an address, coordinates, or an address query
16756
16758
  */
16757
16759
  this.list = (options) => {
16758
- return this.client.post("/v1/service_points/list", __spreadValues$r({}, options));
16760
+ return this.client.post("/v1/service_points/list", __spreadValues$s({}, options));
16759
16761
  };
16760
16762
  /**
16761
16763
  * Get a specific service point by its carrier code, country code, and id
@@ -16773,7 +16775,7 @@ class ServicePointsAPI {
16773
16775
  }
16774
16776
  }
16775
16777
 
16776
- var __async$R = (__this, __arguments, generator) => {
16778
+ var __async$S = (__this, __arguments, generator) => {
16777
16779
  return new Promise((resolve, reject) => {
16778
16780
  var fulfilled = (value) => {
16779
16781
  try {
@@ -16822,7 +16824,7 @@ class ShipmentsAPI {
16822
16824
  * The `create` method allows for creating shipments based on a list of shipment
16823
16825
  * items passed into this method.
16824
16826
  */
16825
- this.create = (...shipments) => __async$R(this, null, function* () {
16827
+ this.create = (...shipments) => __async$S(this, null, function* () {
16826
16828
  return this.client.post("/v1/shipments", {
16827
16829
  shipments
16828
16830
  });
@@ -34214,26 +34216,26 @@ class WebhooksAPI {
34214
34216
  }
34215
34217
  }
34216
34218
 
34217
- var __defProp$q = Object.defineProperty;
34218
- var __defProps$n = Object.defineProperties;
34219
- var __getOwnPropDescs$n = Object.getOwnPropertyDescriptors;
34220
- var __getOwnPropSymbols$A = Object.getOwnPropertySymbols;
34221
- var __hasOwnProp$A = Object.prototype.hasOwnProperty;
34222
- var __propIsEnum$A = Object.prototype.propertyIsEnumerable;
34223
- var __defNormalProp$q = (obj, key, value) => key in obj ? __defProp$q(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
34224
- var __spreadValues$q = (a, b) => {
34219
+ var __defProp$r = Object.defineProperty;
34220
+ var __defProps$o = Object.defineProperties;
34221
+ var __getOwnPropDescs$o = Object.getOwnPropertyDescriptors;
34222
+ var __getOwnPropSymbols$B = Object.getOwnPropertySymbols;
34223
+ var __hasOwnProp$B = Object.prototype.hasOwnProperty;
34224
+ var __propIsEnum$B = Object.prototype.propertyIsEnumerable;
34225
+ var __defNormalProp$r = (obj, key, value) => key in obj ? __defProp$r(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
34226
+ var __spreadValues$r = (a, b) => {
34225
34227
  for (var prop in b || (b = {}))
34226
- if (__hasOwnProp$A.call(b, prop))
34227
- __defNormalProp$q(a, prop, b[prop]);
34228
- if (__getOwnPropSymbols$A)
34229
- for (var prop of __getOwnPropSymbols$A(b)) {
34230
- if (__propIsEnum$A.call(b, prop))
34231
- __defNormalProp$q(a, prop, b[prop]);
34228
+ if (__hasOwnProp$B.call(b, prop))
34229
+ __defNormalProp$r(a, prop, b[prop]);
34230
+ if (__getOwnPropSymbols$B)
34231
+ for (var prop of __getOwnPropSymbols$B(b)) {
34232
+ if (__propIsEnum$B.call(b, prop))
34233
+ __defNormalProp$r(a, prop, b[prop]);
34232
34234
  }
34233
34235
  return a;
34234
34236
  };
34235
- var __spreadProps$n = (a, b) => __defProps$n(a, __getOwnPropDescs$n(b));
34236
- var __async$Q = (__this, __arguments, generator) => {
34237
+ var __spreadProps$o = (a, b) => __defProps$o(a, __getOwnPropDescs$o(b));
34238
+ var __async$R = (__this, __arguments, generator) => {
34237
34239
  return new Promise((resolve, reject) => {
34238
34240
  var fulfilled = (value) => {
34239
34241
  try {
@@ -34256,7 +34258,7 @@ var __async$Q = (__this, __arguments, generator) => {
34256
34258
  const logger$1 = E({
34257
34259
  level: process.env.NODE_ENV === "production" ? "fatal" : "info",
34258
34260
  name: "shipengine-api",
34259
- serializers: __spreadProps$n(__spreadValues$q({}, k), {
34261
+ serializers: __spreadProps$o(__spreadValues$r({}, k), {
34260
34262
  req: (req) => ({
34261
34263
  headers: req.headers,
34262
34264
  method: req.method,
@@ -34281,7 +34283,7 @@ class ShipEngineAPI {
34281
34283
  this.getSandboxToken = getSandboxToken;
34282
34284
  const client = axios.create({
34283
34285
  baseURL,
34284
- headers: __spreadProps$n(__spreadValues$q({}, headers), {
34286
+ headers: __spreadProps$o(__spreadValues$r({}, headers), {
34285
34287
  "Content-Type": "application/json"
34286
34288
  }),
34287
34289
  paramsSerializer: (params) => lib.stringify(decamelizeKeys(params), { arrayFormat: "brackets" }),
@@ -34316,7 +34318,7 @@ class ShipEngineAPI {
34316
34318
  });
34317
34319
  client.defaults.headers.common["Authorization"] = `Bearer ${token}`;
34318
34320
  client.interceptors.request.use(
34319
- (config) => __async$Q(this, null, function* () {
34321
+ (config) => __async$R(this, null, function* () {
34320
34322
  if (config.isSandbox) {
34321
34323
  if (!this.sandboxToken) {
34322
34324
  this.sandboxToken = yield getSandboxToken == null ? void 0 : getSandboxToken();
@@ -34343,7 +34345,7 @@ class ShipEngineAPI {
34343
34345
  );
34344
34346
  return res;
34345
34347
  },
34346
- (err) => __async$Q(this, null, function* () {
34348
+ (err) => __async$R(this, null, function* () {
34347
34349
  var _a, _b, _c, _d, _e;
34348
34350
  logger$1.error(
34349
34351
  { err, req: err.config, res: err.response },
@@ -34390,7 +34392,7 @@ class ShipEngineAPI {
34390
34392
  * that token (also known as Seller ID)
34391
34393
  */
34392
34394
  getTenant(isSandbox) {
34393
- return __async$Q(this, null, function* () {
34395
+ return __async$R(this, null, function* () {
34394
34396
  var _a;
34395
34397
  if (!isSandbox) {
34396
34398
  return this.getTenantFromToken(this.token);
@@ -34669,25 +34671,25 @@ const delay = (ms) => new Promise((resolve) => {
34669
34671
 
34670
34672
  const onError = (_errors) => _default();
34671
34673
 
34672
- var __defProp$p = Object.defineProperty;
34673
- var __defProps$m = Object.defineProperties;
34674
- var __getOwnPropDescs$m = Object.getOwnPropertyDescriptors;
34675
- var __getOwnPropSymbols$z = Object.getOwnPropertySymbols;
34676
- var __hasOwnProp$z = Object.prototype.hasOwnProperty;
34677
- var __propIsEnum$z = Object.prototype.propertyIsEnumerable;
34678
- var __defNormalProp$p = (obj, key, value) => key in obj ? __defProp$p(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
34679
- var __spreadValues$p = (a, b) => {
34674
+ var __defProp$q = Object.defineProperty;
34675
+ var __defProps$n = Object.defineProperties;
34676
+ var __getOwnPropDescs$n = Object.getOwnPropertyDescriptors;
34677
+ var __getOwnPropSymbols$A = Object.getOwnPropertySymbols;
34678
+ var __hasOwnProp$A = Object.prototype.hasOwnProperty;
34679
+ var __propIsEnum$A = Object.prototype.propertyIsEnumerable;
34680
+ var __defNormalProp$q = (obj, key, value) => key in obj ? __defProp$q(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
34681
+ var __spreadValues$q = (a, b) => {
34680
34682
  for (var prop in b || (b = {}))
34681
- if (__hasOwnProp$z.call(b, prop))
34682
- __defNormalProp$p(a, prop, b[prop]);
34683
- if (__getOwnPropSymbols$z)
34684
- for (var prop of __getOwnPropSymbols$z(b)) {
34685
- if (__propIsEnum$z.call(b, prop))
34686
- __defNormalProp$p(a, prop, b[prop]);
34683
+ if (__hasOwnProp$A.call(b, prop))
34684
+ __defNormalProp$q(a, prop, b[prop]);
34685
+ if (__getOwnPropSymbols$A)
34686
+ for (var prop of __getOwnPropSymbols$A(b)) {
34687
+ if (__propIsEnum$A.call(b, prop))
34688
+ __defNormalProp$q(a, prop, b[prop]);
34687
34689
  }
34688
34690
  return a;
34689
34691
  };
34690
- var __spreadProps$m = (a, b) => __defProps$m(a, __getOwnPropDescs$m(b));
34692
+ var __spreadProps$n = (a, b) => __defProps$n(a, __getOwnPropDescs$n(b));
34691
34693
  const streams = [];
34692
34694
  if (process.env.NODE_ENV === "production") {
34693
34695
  streams.push({
@@ -34696,7 +34698,7 @@ if (process.env.NODE_ENV === "production") {
34696
34698
  }
34697
34699
  const logger = E({
34698
34700
  name: "shipengine",
34699
- serializers: __spreadProps$m(__spreadValues$p({}, k), {
34701
+ serializers: __spreadProps$n(__spreadValues$q({}, k), {
34700
34702
  req: (req) => ({
34701
34703
  headers: req.headers,
34702
34704
  method: req.method,
@@ -34721,7 +34723,7 @@ const retryUntil = (callbackFn, retries = 10, timeoutBetweenAttempts = 1e3) => P
34721
34723
  throw error;
34722
34724
  });
34723
34725
 
34724
- var __async$P = (__this, __arguments, generator) => {
34726
+ var __async$Q = (__this, __arguments, generator) => {
34725
34727
  return new Promise((resolve, reject) => {
34726
34728
  var fulfilled = (value) => {
34727
34729
  try {
@@ -34744,7 +34746,7 @@ var __async$P = (__this, __arguments, generator) => {
34744
34746
  const useCreateAccountImage = () => {
34745
34747
  const { client } = useShipEngine();
34746
34748
  return useMutation({
34747
- mutationFn: (data) => __async$P(void 0, null, function* () {
34749
+ mutationFn: (data) => __async$Q(void 0, null, function* () {
34748
34750
  const result = yield client.accountSettings.createImage(data);
34749
34751
  return result.data;
34750
34752
  }),
@@ -34753,7 +34755,7 @@ const useCreateAccountImage = () => {
34753
34755
  });
34754
34756
  };
34755
34757
 
34756
- var __async$O = (__this, __arguments, generator) => {
34758
+ var __async$P = (__this, __arguments, generator) => {
34757
34759
  return new Promise((resolve, reject) => {
34758
34760
  var fulfilled = (value) => {
34759
34761
  try {
@@ -34776,7 +34778,7 @@ var __async$O = (__this, __arguments, generator) => {
34776
34778
  const useDeleteAccountImage = () => {
34777
34779
  const { client } = useShipEngine();
34778
34780
  return useMutation({
34779
- mutationFn: (labelImageId) => __async$O(void 0, null, function* () {
34781
+ mutationFn: (labelImageId) => __async$P(void 0, null, function* () {
34780
34782
  const result = yield client.accountSettings.deleteImage(labelImageId);
34781
34783
  return result.data;
34782
34784
  }),
@@ -34805,7 +34807,7 @@ const useGetAccountSettings = () => {
34805
34807
  });
34806
34808
  };
34807
34809
 
34808
- var __async$N = (__this, __arguments, generator) => {
34810
+ var __async$O = (__this, __arguments, generator) => {
34809
34811
  return new Promise((resolve, reject) => {
34810
34812
  var fulfilled = (value) => {
34811
34813
  try {
@@ -34828,7 +34830,7 @@ var __async$N = (__this, __arguments, generator) => {
34828
34830
  const useUpdateAccountImage = () => {
34829
34831
  const { client } = useShipEngine();
34830
34832
  return useMutation({
34831
- mutationFn: (data) => __async$N(void 0, null, function* () {
34833
+ mutationFn: (data) => __async$O(void 0, null, function* () {
34832
34834
  const result = yield client.accountSettings.updateImage(data);
34833
34835
  return result.data;
34834
34836
  }),
@@ -34837,7 +34839,7 @@ const useUpdateAccountImage = () => {
34837
34839
  });
34838
34840
  };
34839
34841
 
34840
- var __async$M = (__this, __arguments, generator) => {
34842
+ var __async$N = (__this, __arguments, generator) => {
34841
34843
  return new Promise((resolve, reject) => {
34842
34844
  var fulfilled = (value) => {
34843
34845
  try {
@@ -34860,7 +34862,7 @@ var __async$M = (__this, __arguments, generator) => {
34860
34862
  const useUpdateAccountSettings = () => {
34861
34863
  const { client } = useShipEngine();
34862
34864
  return useMutation({
34863
- mutationFn: (settings) => __async$M(void 0, null, function* () {
34865
+ mutationFn: (settings) => __async$N(void 0, null, function* () {
34864
34866
  const result = yield client.accountSettings.update(settings);
34865
34867
  return result.data;
34866
34868
  }),
@@ -34869,7 +34871,7 @@ const useUpdateAccountSettings = () => {
34869
34871
  });
34870
34872
  };
34871
34873
 
34872
- var __async$L = (__this, __arguments, generator) => {
34874
+ var __async$M = (__this, __arguments, generator) => {
34873
34875
  return new Promise((resolve, reject) => {
34874
34876
  var fulfilled = (value) => {
34875
34877
  try {
@@ -34892,7 +34894,7 @@ var __async$L = (__this, __arguments, generator) => {
34892
34894
  const useParseAddress = () => {
34893
34895
  const { client } = useShipEngine();
34894
34896
  return useMutation({
34895
- mutationFn: (_0) => __async$L(void 0, [_0], function* ({ address, text }) {
34897
+ mutationFn: (_0) => __async$M(void 0, [_0], function* ({ address, text }) {
34896
34898
  const result = yield client.addresses.parse(text, address);
34897
34899
  return result.data;
34898
34900
  }),
@@ -34901,7 +34903,7 @@ const useParseAddress = () => {
34901
34903
  });
34902
34904
  };
34903
34905
 
34904
- var __async$K = (__this, __arguments, generator) => {
34906
+ var __async$L = (__this, __arguments, generator) => {
34905
34907
  return new Promise((resolve, reject) => {
34906
34908
  var fulfilled = (value) => {
34907
34909
  try {
@@ -34924,7 +34926,7 @@ var __async$K = (__this, __arguments, generator) => {
34924
34926
  const useValidateAddresses = () => {
34925
34927
  const { client } = useShipEngine();
34926
34928
  return useMutation({
34927
- mutationFn: (addresses) => __async$K(void 0, null, function* () {
34929
+ mutationFn: (addresses) => __async$L(void 0, null, function* () {
34928
34930
  const result = yield client.addresses.validate(addresses);
34929
34931
  return result.data;
34930
34932
  }),
@@ -34933,7 +34935,7 @@ const useValidateAddresses = () => {
34933
34935
  });
34934
34936
  };
34935
34937
 
34936
- var __async$J = (__this, __arguments, generator) => {
34938
+ var __async$K = (__this, __arguments, generator) => {
34937
34939
  return new Promise((resolve, reject) => {
34938
34940
  var fulfilled = (value) => {
34939
34941
  try {
@@ -34956,7 +34958,7 @@ var __async$J = (__this, __arguments, generator) => {
34956
34958
  const useAddFunds = () => {
34957
34959
  const { client } = useShipEngine();
34958
34960
  return useMutation({
34959
- mutationFn: (_0) => __async$J(void 0, [_0], function* ({ carrierId, funds }) {
34961
+ mutationFn: (_0) => __async$K(void 0, [_0], function* ({ carrierId, funds }) {
34960
34962
  const result = yield client.carriers.addFunds(carrierId, funds);
34961
34963
  return result.data;
34962
34964
  }),
@@ -34965,7 +34967,7 @@ const useAddFunds = () => {
34965
34967
  });
34966
34968
  };
34967
34969
 
34968
- var __async$I = (__this, __arguments, generator) => {
34970
+ var __async$J = (__this, __arguments, generator) => {
34969
34971
  return new Promise((resolve, reject) => {
34970
34972
  var fulfilled = (value) => {
34971
34973
  try {
@@ -34988,7 +34990,7 @@ var __async$I = (__this, __arguments, generator) => {
34988
34990
  const useConnectCarrier = () => {
34989
34991
  const { client } = useShipEngine();
34990
34992
  return useMutation({
34991
- mutationFn: (params) => __async$I(void 0, null, function* () {
34993
+ mutationFn: (params) => __async$J(void 0, null, function* () {
34992
34994
  const result = yield client.carriers.connect(params);
34993
34995
  return result.data;
34994
34996
  }),
@@ -35097,41 +35099,41 @@ const useGetServicesByCarrier = (carrierId) => {
35097
35099
  });
35098
35100
  };
35099
35101
 
35100
- var __defProp$o = Object.defineProperty;
35101
- var __defProps$l = Object.defineProperties;
35102
- var __getOwnPropDescs$l = Object.getOwnPropertyDescriptors;
35103
- var __getOwnPropSymbols$y = Object.getOwnPropertySymbols;
35104
- var __hasOwnProp$y = Object.prototype.hasOwnProperty;
35105
- var __propIsEnum$y = Object.prototype.propertyIsEnumerable;
35106
- var __defNormalProp$o = (obj, key, value) => key in obj ? __defProp$o(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35107
- var __spreadValues$o = (a, b) => {
35102
+ var __defProp$p = Object.defineProperty;
35103
+ var __defProps$m = Object.defineProperties;
35104
+ var __getOwnPropDescs$m = Object.getOwnPropertyDescriptors;
35105
+ var __getOwnPropSymbols$z = Object.getOwnPropertySymbols;
35106
+ var __hasOwnProp$z = Object.prototype.hasOwnProperty;
35107
+ var __propIsEnum$z = Object.prototype.propertyIsEnumerable;
35108
+ var __defNormalProp$p = (obj, key, value) => key in obj ? __defProp$p(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35109
+ var __spreadValues$p = (a, b) => {
35108
35110
  for (var prop in b || (b = {}))
35109
- if (__hasOwnProp$y.call(b, prop))
35110
- __defNormalProp$o(a, prop, b[prop]);
35111
- if (__getOwnPropSymbols$y)
35112
- for (var prop of __getOwnPropSymbols$y(b)) {
35113
- if (__propIsEnum$y.call(b, prop))
35114
- __defNormalProp$o(a, prop, b[prop]);
35111
+ if (__hasOwnProp$z.call(b, prop))
35112
+ __defNormalProp$p(a, prop, b[prop]);
35113
+ if (__getOwnPropSymbols$z)
35114
+ for (var prop of __getOwnPropSymbols$z(b)) {
35115
+ if (__propIsEnum$z.call(b, prop))
35116
+ __defNormalProp$p(a, prop, b[prop]);
35115
35117
  }
35116
35118
  return a;
35117
35119
  };
35118
- var __spreadProps$l = (a, b) => __defProps$l(a, __getOwnPropDescs$l(b));
35119
- var __objRest$l = (source, exclude) => {
35120
+ var __spreadProps$m = (a, b) => __defProps$m(a, __getOwnPropDescs$m(b));
35121
+ var __objRest$m = (source, exclude) => {
35120
35122
  var target = {};
35121
35123
  for (var prop in source)
35122
- if (__hasOwnProp$y.call(source, prop) && exclude.indexOf(prop) < 0)
35124
+ if (__hasOwnProp$z.call(source, prop) && exclude.indexOf(prop) < 0)
35123
35125
  target[prop] = source[prop];
35124
- if (source != null && __getOwnPropSymbols$y)
35125
- for (var prop of __getOwnPropSymbols$y(source)) {
35126
- if (exclude.indexOf(prop) < 0 && __propIsEnum$y.call(source, prop))
35126
+ if (source != null && __getOwnPropSymbols$z)
35127
+ for (var prop of __getOwnPropSymbols$z(source)) {
35128
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$z.call(source, prop))
35127
35129
  target[prop] = source[prop];
35128
35130
  }
35129
35131
  return target;
35130
35132
  };
35131
35133
  const useListCarriers = (params) => {
35132
35134
  const { client } = useShipEngine();
35133
- const _a = __spreadValues$o({}, params), { queryFnParams } = _a, rest = __objRest$l(_a, ["queryFnParams"]);
35134
- return useQuery(__spreadProps$l(__spreadValues$o({}, rest), {
35135
+ const _a = __spreadValues$p({}, params), { queryFnParams } = _a, rest = __objRest$m(_a, ["queryFnParams"]);
35136
+ return useQuery(__spreadProps$m(__spreadValues$p({}, rest), {
35135
35137
  onError,
35136
35138
  queryFn: () => client.carriers.list(queryFnParams),
35137
35139
  queryKey: ["useListCarriers", queryFnParams],
@@ -35139,22 +35141,22 @@ const useListCarriers = (params) => {
35139
35141
  }));
35140
35142
  };
35141
35143
 
35142
- var __getOwnPropSymbols$x = Object.getOwnPropertySymbols;
35143
- var __hasOwnProp$x = Object.prototype.hasOwnProperty;
35144
- var __propIsEnum$x = Object.prototype.propertyIsEnumerable;
35145
- var __objRest$k = (source, exclude) => {
35144
+ var __getOwnPropSymbols$y = Object.getOwnPropertySymbols;
35145
+ var __hasOwnProp$y = Object.prototype.hasOwnProperty;
35146
+ var __propIsEnum$y = Object.prototype.propertyIsEnumerable;
35147
+ var __objRest$l = (source, exclude) => {
35146
35148
  var target = {};
35147
35149
  for (var prop in source)
35148
- if (__hasOwnProp$x.call(source, prop) && exclude.indexOf(prop) < 0)
35150
+ if (__hasOwnProp$y.call(source, prop) && exclude.indexOf(prop) < 0)
35149
35151
  target[prop] = source[prop];
35150
- if (source != null && __getOwnPropSymbols$x)
35151
- for (var prop of __getOwnPropSymbols$x(source)) {
35152
- if (exclude.indexOf(prop) < 0 && __propIsEnum$x.call(source, prop))
35152
+ if (source != null && __getOwnPropSymbols$y)
35153
+ for (var prop of __getOwnPropSymbols$y(source)) {
35154
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$y.call(source, prop))
35153
35155
  target[prop] = source[prop];
35154
35156
  }
35155
35157
  return target;
35156
35158
  };
35157
- var __async$H = (__this, __arguments, generator) => {
35159
+ var __async$I = (__this, __arguments, generator) => {
35158
35160
  return new Promise((resolve, reject) => {
35159
35161
  var fulfilled = (value) => {
35160
35162
  try {
@@ -35178,8 +35180,8 @@ const useUpdateAutoFunding = () => {
35178
35180
  const { client } = useShipEngine();
35179
35181
  const queryClient = useQueryClient();
35180
35182
  return useMutation({
35181
- mutationFn: (_a) => __async$H(void 0, null, function* () {
35182
- var _b = _a, { carrierId } = _b, options = __objRest$k(_b, ["carrierId"]);
35183
+ mutationFn: (_a) => __async$I(void 0, null, function* () {
35184
+ var _b = _a, { carrierId } = _b, options = __objRest$l(_b, ["carrierId"]);
35183
35185
  const result = yield client.carriers.updateAutoFunding(carrierId, options);
35184
35186
  return result.data;
35185
35187
  }),
@@ -35208,7 +35210,7 @@ const useGetZonesByCarrier = (carrierId) => {
35208
35210
  });
35209
35211
  };
35210
35212
 
35211
- var __async$G = (__this, __arguments, generator) => {
35213
+ var __async$H = (__this, __arguments, generator) => {
35212
35214
  return new Promise((resolve, reject) => {
35213
35215
  var fulfilled = (value) => {
35214
35216
  try {
@@ -35231,7 +35233,7 @@ var __async$G = (__this, __arguments, generator) => {
35231
35233
  const useDeleteCarrier = () => {
35232
35234
  const { client } = useShipEngine();
35233
35235
  return useMutation({
35234
- mutationFn: (carrierId) => __async$G(void 0, null, function* () {
35236
+ mutationFn: (carrierId) => __async$H(void 0, null, function* () {
35235
35237
  const result = yield client.carriers.delete(carrierId);
35236
35238
  return result.data;
35237
35239
  }),
@@ -35240,24 +35242,24 @@ const useDeleteCarrier = () => {
35240
35242
  });
35241
35243
  };
35242
35244
 
35243
- var __getOwnPropSymbols$w = Object.getOwnPropertySymbols;
35244
- var __hasOwnProp$w = Object.prototype.hasOwnProperty;
35245
- var __propIsEnum$w = Object.prototype.propertyIsEnumerable;
35246
- var __objRest$j = (source, exclude) => {
35245
+ var __getOwnPropSymbols$x = Object.getOwnPropertySymbols;
35246
+ var __hasOwnProp$x = Object.prototype.hasOwnProperty;
35247
+ var __propIsEnum$x = Object.prototype.propertyIsEnumerable;
35248
+ var __objRest$k = (source, exclude) => {
35247
35249
  var target = {};
35248
35250
  for (var prop in source)
35249
- if (__hasOwnProp$w.call(source, prop) && exclude.indexOf(prop) < 0)
35251
+ if (__hasOwnProp$x.call(source, prop) && exclude.indexOf(prop) < 0)
35250
35252
  target[prop] = source[prop];
35251
- if (source != null && __getOwnPropSymbols$w)
35252
- for (var prop of __getOwnPropSymbols$w(source)) {
35253
- if (exclude.indexOf(prop) < 0 && __propIsEnum$w.call(source, prop))
35253
+ if (source != null && __getOwnPropSymbols$x)
35254
+ for (var prop of __getOwnPropSymbols$x(source)) {
35255
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$x.call(source, prop))
35254
35256
  target[prop] = source[prop];
35255
35257
  }
35256
35258
  return target;
35257
35259
  };
35258
35260
  const useGetCarrierConnectionForm = (_params) => {
35259
35261
  const { client } = useShipEngine();
35260
- const _a = _params || {}, { carrierName, enabled = true } = _a, params = __objRest$j(_a, ["carrierName", "enabled"]);
35262
+ const _a = _params || {}, { carrierName, enabled = true } = _a, params = __objRest$k(_a, ["carrierName", "enabled"]);
35261
35263
  return useQuery({
35262
35264
  enabled,
35263
35265
  onError,
@@ -35267,24 +35269,24 @@ const useGetCarrierConnectionForm = (_params) => {
35267
35269
  });
35268
35270
  };
35269
35271
 
35270
- var __getOwnPropSymbols$v = Object.getOwnPropertySymbols;
35271
- var __hasOwnProp$v = Object.prototype.hasOwnProperty;
35272
- var __propIsEnum$v = Object.prototype.propertyIsEnumerable;
35273
- var __objRest$i = (source, exclude) => {
35272
+ var __getOwnPropSymbols$w = Object.getOwnPropertySymbols;
35273
+ var __hasOwnProp$w = Object.prototype.hasOwnProperty;
35274
+ var __propIsEnum$w = Object.prototype.propertyIsEnumerable;
35275
+ var __objRest$j = (source, exclude) => {
35274
35276
  var target = {};
35275
35277
  for (var prop in source)
35276
- if (__hasOwnProp$v.call(source, prop) && exclude.indexOf(prop) < 0)
35278
+ if (__hasOwnProp$w.call(source, prop) && exclude.indexOf(prop) < 0)
35277
35279
  target[prop] = source[prop];
35278
- if (source != null && __getOwnPropSymbols$v)
35279
- for (var prop of __getOwnPropSymbols$v(source)) {
35280
- if (exclude.indexOf(prop) < 0 && __propIsEnum$v.call(source, prop))
35280
+ if (source != null && __getOwnPropSymbols$w)
35281
+ for (var prop of __getOwnPropSymbols$w(source)) {
35282
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$w.call(source, prop))
35281
35283
  target[prop] = source[prop];
35282
35284
  }
35283
35285
  return target;
35284
35286
  };
35285
35287
  const useListCarrierConnections = (_params) => {
35286
35288
  const { client } = useShipEngine();
35287
- const _a = _params || {}, { enabled = true } = _a, params = __objRest$i(_a, ["enabled"]);
35289
+ const _a = _params || {}, { enabled = true } = _a, params = __objRest$j(_a, ["enabled"]);
35288
35290
  return useQuery({
35289
35291
  enabled,
35290
35292
  onError,
@@ -35294,7 +35296,7 @@ const useListCarrierConnections = (_params) => {
35294
35296
  });
35295
35297
  };
35296
35298
 
35297
- var __async$F = (__this, __arguments, generator) => {
35299
+ var __async$G = (__this, __arguments, generator) => {
35298
35300
  return new Promise((resolve, reject) => {
35299
35301
  var fulfilled = (value) => {
35300
35302
  try {
@@ -35317,7 +35319,7 @@ var __async$F = (__this, __arguments, generator) => {
35317
35319
  const useConnectCarrierAccount = () => {
35318
35320
  const { client } = useShipEngine();
35319
35321
  return useMutation({
35320
- mutationFn: (_0) => __async$F(void 0, [_0], function* ({ carrierName, formData }) {
35322
+ mutationFn: (_0) => __async$G(void 0, [_0], function* ({ carrierName, formData }) {
35321
35323
  const result = yield client.connections.connectCarrier(carrierName, formData);
35322
35324
  return result.data;
35323
35325
  }),
@@ -35337,33 +35339,33 @@ const useCarrierConnectionsServicesList = (carrierCode) => {
35337
35339
  });
35338
35340
  };
35339
35341
 
35340
- var __defProp$n = Object.defineProperty;
35341
- var __defProps$k = Object.defineProperties;
35342
- var __getOwnPropDescs$k = Object.getOwnPropertyDescriptors;
35343
- var __getOwnPropSymbols$u = Object.getOwnPropertySymbols;
35344
- var __hasOwnProp$u = Object.prototype.hasOwnProperty;
35345
- var __propIsEnum$u = Object.prototype.propertyIsEnumerable;
35346
- var __defNormalProp$n = (obj, key, value) => key in obj ? __defProp$n(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35347
- var __spreadValues$n = (a, b) => {
35342
+ var __defProp$o = Object.defineProperty;
35343
+ var __defProps$l = Object.defineProperties;
35344
+ var __getOwnPropDescs$l = Object.getOwnPropertyDescriptors;
35345
+ var __getOwnPropSymbols$v = Object.getOwnPropertySymbols;
35346
+ var __hasOwnProp$v = Object.prototype.hasOwnProperty;
35347
+ var __propIsEnum$v = Object.prototype.propertyIsEnumerable;
35348
+ var __defNormalProp$o = (obj, key, value) => key in obj ? __defProp$o(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35349
+ var __spreadValues$o = (a, b) => {
35348
35350
  for (var prop in b || (b = {}))
35349
- if (__hasOwnProp$u.call(b, prop))
35350
- __defNormalProp$n(a, prop, b[prop]);
35351
- if (__getOwnPropSymbols$u)
35352
- for (var prop of __getOwnPropSymbols$u(b)) {
35353
- if (__propIsEnum$u.call(b, prop))
35354
- __defNormalProp$n(a, prop, b[prop]);
35351
+ if (__hasOwnProp$v.call(b, prop))
35352
+ __defNormalProp$o(a, prop, b[prop]);
35353
+ if (__getOwnPropSymbols$v)
35354
+ for (var prop of __getOwnPropSymbols$v(b)) {
35355
+ if (__propIsEnum$v.call(b, prop))
35356
+ __defNormalProp$o(a, prop, b[prop]);
35355
35357
  }
35356
35358
  return a;
35357
35359
  };
35358
- var __spreadProps$k = (a, b) => __defProps$k(a, __getOwnPropDescs$k(b));
35359
- var __objRest$h = (source, exclude) => {
35360
+ var __spreadProps$l = (a, b) => __defProps$l(a, __getOwnPropDescs$l(b));
35361
+ var __objRest$i = (source, exclude) => {
35360
35362
  var target = {};
35361
35363
  for (var prop in source)
35362
- if (__hasOwnProp$u.call(source, prop) && exclude.indexOf(prop) < 0)
35364
+ if (__hasOwnProp$v.call(source, prop) && exclude.indexOf(prop) < 0)
35363
35365
  target[prop] = source[prop];
35364
- if (source != null && __getOwnPropSymbols$u)
35365
- for (var prop of __getOwnPropSymbols$u(source)) {
35366
- if (exclude.indexOf(prop) < 0 && __propIsEnum$u.call(source, prop))
35366
+ if (source != null && __getOwnPropSymbols$v)
35367
+ for (var prop of __getOwnPropSymbols$v(source)) {
35368
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$v.call(source, prop))
35367
35369
  target[prop] = source[prop];
35368
35370
  }
35369
35371
  return target;
@@ -35371,12 +35373,12 @@ var __objRest$h = (source, exclude) => {
35371
35373
  const useGetConnectionsCarrierSettings = (_a) => {
35372
35374
  var _b = _a, {
35373
35375
  queryFnParams
35374
- } = _b, params = __objRest$h(_b, [
35376
+ } = _b, params = __objRest$i(_b, [
35375
35377
  "queryFnParams"
35376
35378
  ]);
35377
35379
  const { client } = useShipEngine();
35378
35380
  const { carrierName, carrierId } = queryFnParams;
35379
- return useQuery(__spreadProps$k(__spreadValues$n({}, params), {
35381
+ return useQuery(__spreadProps$l(__spreadValues$o({}, params), {
35380
35382
  onError,
35381
35383
  queryFn: () => client.connections.getCarrierSettings(carrierName, carrierId),
35382
35384
  queryKey: ["useGetConnectionsCarrierSettings", carrierName, carrierId],
@@ -35384,26 +35386,26 @@ const useGetConnectionsCarrierSettings = (_a) => {
35384
35386
  }));
35385
35387
  };
35386
35388
 
35387
- var __defProp$m = Object.defineProperty;
35388
- var __defProps$j = Object.defineProperties;
35389
- var __getOwnPropDescs$j = Object.getOwnPropertyDescriptors;
35390
- var __getOwnPropSymbols$t = Object.getOwnPropertySymbols;
35391
- var __hasOwnProp$t = Object.prototype.hasOwnProperty;
35392
- var __propIsEnum$t = Object.prototype.propertyIsEnumerable;
35393
- var __defNormalProp$m = (obj, key, value) => key in obj ? __defProp$m(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35394
- var __spreadValues$m = (a, b) => {
35389
+ var __defProp$n = Object.defineProperty;
35390
+ var __defProps$k = Object.defineProperties;
35391
+ var __getOwnPropDescs$k = Object.getOwnPropertyDescriptors;
35392
+ var __getOwnPropSymbols$u = Object.getOwnPropertySymbols;
35393
+ var __hasOwnProp$u = Object.prototype.hasOwnProperty;
35394
+ var __propIsEnum$u = Object.prototype.propertyIsEnumerable;
35395
+ var __defNormalProp$n = (obj, key, value) => key in obj ? __defProp$n(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35396
+ var __spreadValues$n = (a, b) => {
35395
35397
  for (var prop in b || (b = {}))
35396
- if (__hasOwnProp$t.call(b, prop))
35397
- __defNormalProp$m(a, prop, b[prop]);
35398
- if (__getOwnPropSymbols$t)
35399
- for (var prop of __getOwnPropSymbols$t(b)) {
35400
- if (__propIsEnum$t.call(b, prop))
35401
- __defNormalProp$m(a, prop, b[prop]);
35398
+ if (__hasOwnProp$u.call(b, prop))
35399
+ __defNormalProp$n(a, prop, b[prop]);
35400
+ if (__getOwnPropSymbols$u)
35401
+ for (var prop of __getOwnPropSymbols$u(b)) {
35402
+ if (__propIsEnum$u.call(b, prop))
35403
+ __defNormalProp$n(a, prop, b[prop]);
35402
35404
  }
35403
35405
  return a;
35404
35406
  };
35405
- var __spreadProps$j = (a, b) => __defProps$j(a, __getOwnPropDescs$j(b));
35406
- var __async$E = (__this, __arguments, generator) => {
35407
+ var __spreadProps$k = (a, b) => __defProps$k(a, __getOwnPropDescs$k(b));
35408
+ var __async$F = (__this, __arguments, generator) => {
35407
35409
  return new Promise((resolve, reject) => {
35408
35410
  var fulfilled = (value) => {
35409
35411
  try {
@@ -35425,8 +35427,8 @@ var __async$E = (__this, __arguments, generator) => {
35425
35427
  };
35426
35428
  const useUpdateConnectionsCarrierSettings = (params) => {
35427
35429
  const { client } = useShipEngine();
35428
- return useMutation(__spreadProps$j(__spreadValues$m({}, params), {
35429
- mutationFn: (_0) => __async$E(void 0, [_0], function* ({
35430
+ return useMutation(__spreadProps$k(__spreadValues$n({}, params), {
35431
+ mutationFn: (_0) => __async$F(void 0, [_0], function* ({
35430
35432
  carrierName,
35431
35433
  carrierId,
35432
35434
  formData
@@ -35453,7 +35455,7 @@ const useListCustomPackageTypes = () => {
35453
35455
  });
35454
35456
  };
35455
35457
 
35456
- var __async$D = (__this, __arguments, generator) => {
35458
+ var __async$E = (__this, __arguments, generator) => {
35457
35459
  return new Promise((resolve, reject) => {
35458
35460
  var fulfilled = (value) => {
35459
35461
  try {
@@ -35476,7 +35478,7 @@ var __async$D = (__this, __arguments, generator) => {
35476
35478
  const useCreateFundingSource = () => {
35477
35479
  const { client } = useShipEngine();
35478
35480
  return useMutation({
35479
- mutationFn: (fundingSource) => __async$D(void 0, null, function* () {
35481
+ mutationFn: (fundingSource) => __async$E(void 0, null, function* () {
35480
35482
  const result = yield client.fundingSources.create(fundingSource);
35481
35483
  return result.data;
35482
35484
  }),
@@ -35485,7 +35487,7 @@ const useCreateFundingSource = () => {
35485
35487
  });
35486
35488
  };
35487
35489
 
35488
- var __async$C = (__this, __arguments, generator) => {
35490
+ var __async$D = (__this, __arguments, generator) => {
35489
35491
  return new Promise((resolve, reject) => {
35490
35492
  var fulfilled = (value) => {
35491
35493
  try {
@@ -35508,7 +35510,7 @@ var __async$C = (__this, __arguments, generator) => {
35508
35510
  const useFundingSourcesAddFunds = () => {
35509
35511
  const { client } = useShipEngine();
35510
35512
  return useMutation({
35511
- mutationFn: (_0) => __async$C(void 0, [_0], function* ({ funds, fundingSourceId }) {
35513
+ mutationFn: (_0) => __async$D(void 0, [_0], function* ({ funds, fundingSourceId }) {
35512
35514
  const result = yield client.fundingSources.addFunds(funds, fundingSourceId);
35513
35515
  return result.data;
35514
35516
  }),
@@ -35537,7 +35539,7 @@ const useListFundingSources = () => {
35537
35539
  });
35538
35540
  };
35539
35541
 
35540
- var __async$B = (__this, __arguments, generator) => {
35542
+ var __async$C = (__this, __arguments, generator) => {
35541
35543
  return new Promise((resolve, reject) => {
35542
35544
  var fulfilled = (value) => {
35543
35545
  try {
@@ -35560,7 +35562,7 @@ var __async$B = (__this, __arguments, generator) => {
35560
35562
  const useRegisterCarrier = () => {
35561
35563
  const { client } = useShipEngine();
35562
35564
  return useMutation({
35563
- mutationFn: (carrier) => __async$B(void 0, null, function* () {
35565
+ mutationFn: (carrier) => __async$C(void 0, null, function* () {
35564
35566
  const result = yield client.fundingSources.registerCarrier(carrier);
35565
35567
  return result.data;
35566
35568
  }),
@@ -35569,7 +35571,7 @@ const useRegisterCarrier = () => {
35569
35571
  });
35570
35572
  };
35571
35573
 
35572
- var __async$A = (__this, __arguments, generator) => {
35574
+ var __async$B = (__this, __arguments, generator) => {
35573
35575
  return new Promise((resolve, reject) => {
35574
35576
  var fulfilled = (value) => {
35575
35577
  try {
@@ -35592,14 +35594,16 @@ var __async$A = (__this, __arguments, generator) => {
35592
35594
  const useUpdateFundingSource = () => {
35593
35595
  const { client } = useShipEngine();
35594
35596
  return useMutation({
35595
- mutationFn: (_0) => __async$A(void 0, [_0], function* ({
35597
+ mutationFn: (_0) => __async$B(void 0, [_0], function* ({
35596
35598
  billingInfo,
35597
35599
  creditCardInfo,
35598
- fundingSourceId
35600
+ fundingSourceId,
35601
+ auctanePayInfo
35599
35602
  }) {
35600
35603
  const result = yield client.fundingSources.update(
35601
35604
  billingInfo,
35602
35605
  creditCardInfo,
35606
+ auctanePayInfo,
35603
35607
  fundingSourceId
35604
35608
  );
35605
35609
  return result.data;
@@ -35631,29 +35635,29 @@ const useGetFundingSourceTransactions = (fundingSourceId, params) => {
35631
35635
  });
35632
35636
  };
35633
35637
 
35634
- var __defProp$l = Object.defineProperty;
35635
- var __defProps$i = Object.defineProperties;
35636
- var __getOwnPropDescs$i = Object.getOwnPropertyDescriptors;
35637
- var __getOwnPropSymbols$s = Object.getOwnPropertySymbols;
35638
- var __hasOwnProp$s = Object.prototype.hasOwnProperty;
35639
- var __propIsEnum$s = Object.prototype.propertyIsEnumerable;
35640
- var __defNormalProp$l = (obj, key, value) => key in obj ? __defProp$l(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35641
- var __spreadValues$l = (a, b) => {
35638
+ var __defProp$m = Object.defineProperty;
35639
+ var __defProps$j = Object.defineProperties;
35640
+ var __getOwnPropDescs$j = Object.getOwnPropertyDescriptors;
35641
+ var __getOwnPropSymbols$t = Object.getOwnPropertySymbols;
35642
+ var __hasOwnProp$t = Object.prototype.hasOwnProperty;
35643
+ var __propIsEnum$t = Object.prototype.propertyIsEnumerable;
35644
+ var __defNormalProp$m = (obj, key, value) => key in obj ? __defProp$m(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35645
+ var __spreadValues$m = (a, b) => {
35642
35646
  for (var prop in b || (b = {}))
35643
- if (__hasOwnProp$s.call(b, prop))
35644
- __defNormalProp$l(a, prop, b[prop]);
35645
- if (__getOwnPropSymbols$s)
35646
- for (var prop of __getOwnPropSymbols$s(b)) {
35647
- if (__propIsEnum$s.call(b, prop))
35648
- __defNormalProp$l(a, prop, b[prop]);
35647
+ if (__hasOwnProp$t.call(b, prop))
35648
+ __defNormalProp$m(a, prop, b[prop]);
35649
+ if (__getOwnPropSymbols$t)
35650
+ for (var prop of __getOwnPropSymbols$t(b)) {
35651
+ if (__propIsEnum$t.call(b, prop))
35652
+ __defNormalProp$m(a, prop, b[prop]);
35649
35653
  }
35650
35654
  return a;
35651
35655
  };
35652
- var __spreadProps$i = (a, b) => __defProps$i(a, __getOwnPropDescs$i(b));
35656
+ var __spreadProps$j = (a, b) => __defProps$j(a, __getOwnPropDescs$j(b));
35653
35657
  const useGetInsuranceFundingSourceAcceptedTerms = (params) => {
35654
35658
  const { client } = useShipEngine();
35655
- const queryParams = __spreadValues$l({}, params);
35656
- return useQuery(__spreadProps$i(__spreadValues$l({}, queryParams), {
35659
+ const queryParams = __spreadValues$m({}, params);
35660
+ return useQuery(__spreadProps$j(__spreadValues$m({}, queryParams), {
35657
35661
  onError,
35658
35662
  queryFn: () => client.fundingSources.insuranceAcceptedTerms(),
35659
35663
  queryKey: ["useGetInsuranceFundingSourceAcceptedTerms"],
@@ -35676,22 +35680,22 @@ const useGetInsuranceAccount = (insuranceProvider) => {
35676
35680
  });
35677
35681
  };
35678
35682
 
35679
- var __getOwnPropSymbols$r = Object.getOwnPropertySymbols;
35680
- var __hasOwnProp$r = Object.prototype.hasOwnProperty;
35681
- var __propIsEnum$r = Object.prototype.propertyIsEnumerable;
35682
- var __objRest$g = (source, exclude) => {
35683
+ var __getOwnPropSymbols$s = Object.getOwnPropertySymbols;
35684
+ var __hasOwnProp$s = Object.prototype.hasOwnProperty;
35685
+ var __propIsEnum$s = Object.prototype.propertyIsEnumerable;
35686
+ var __objRest$h = (source, exclude) => {
35683
35687
  var target = {};
35684
35688
  for (var prop in source)
35685
- if (__hasOwnProp$r.call(source, prop) && exclude.indexOf(prop) < 0)
35689
+ if (__hasOwnProp$s.call(source, prop) && exclude.indexOf(prop) < 0)
35686
35690
  target[prop] = source[prop];
35687
- if (source != null && __getOwnPropSymbols$r)
35688
- for (var prop of __getOwnPropSymbols$r(source)) {
35689
- if (exclude.indexOf(prop) < 0 && __propIsEnum$r.call(source, prop))
35691
+ if (source != null && __getOwnPropSymbols$s)
35692
+ for (var prop of __getOwnPropSymbols$s(source)) {
35693
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$s.call(source, prop))
35690
35694
  target[prop] = source[prop];
35691
35695
  }
35692
35696
  return target;
35693
35697
  };
35694
- var __async$z = (__this, __arguments, generator) => {
35698
+ var __async$A = (__this, __arguments, generator) => {
35695
35699
  return new Promise((resolve, reject) => {
35696
35700
  var fulfilled = (value) => {
35697
35701
  try {
@@ -35714,8 +35718,8 @@ var __async$z = (__this, __arguments, generator) => {
35714
35718
  const useAddInsuranceFunds = () => {
35715
35719
  const { client } = useShipEngine();
35716
35720
  return useMutation({
35717
- mutationFn: (_a) => __async$z(void 0, null, function* () {
35718
- var _b = _a, { insuranceProvider } = _b, rest = __objRest$g(_b, ["insuranceProvider"]);
35721
+ mutationFn: (_a) => __async$A(void 0, null, function* () {
35722
+ var _b = _a, { insuranceProvider } = _b, rest = __objRest$h(_b, ["insuranceProvider"]);
35719
35723
  const result = yield client.insurance.addFunds(insuranceProvider, rest);
35720
35724
  return result.data;
35721
35725
  }),
@@ -35724,6 +35728,57 @@ const useAddInsuranceFunds = () => {
35724
35728
  });
35725
35729
  };
35726
35730
 
35731
+ var __defProp$l = Object.defineProperty;
35732
+ var __defProps$i = Object.defineProperties;
35733
+ var __getOwnPropDescs$i = Object.getOwnPropertyDescriptors;
35734
+ var __getOwnPropSymbols$r = Object.getOwnPropertySymbols;
35735
+ var __hasOwnProp$r = Object.prototype.hasOwnProperty;
35736
+ var __propIsEnum$r = Object.prototype.propertyIsEnumerable;
35737
+ var __defNormalProp$l = (obj, key, value) => key in obj ? __defProp$l(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35738
+ var __spreadValues$l = (a, b) => {
35739
+ for (var prop in b || (b = {}))
35740
+ if (__hasOwnProp$r.call(b, prop))
35741
+ __defNormalProp$l(a, prop, b[prop]);
35742
+ if (__getOwnPropSymbols$r)
35743
+ for (var prop of __getOwnPropSymbols$r(b)) {
35744
+ if (__propIsEnum$r.call(b, prop))
35745
+ __defNormalProp$l(a, prop, b[prop]);
35746
+ }
35747
+ return a;
35748
+ };
35749
+ var __spreadProps$i = (a, b) => __defProps$i(a, __getOwnPropDescs$i(b));
35750
+ var __async$z = (__this, __arguments, generator) => {
35751
+ return new Promise((resolve, reject) => {
35752
+ var fulfilled = (value) => {
35753
+ try {
35754
+ step(generator.next(value));
35755
+ } catch (e) {
35756
+ reject(e);
35757
+ }
35758
+ };
35759
+ var rejected = (value) => {
35760
+ try {
35761
+ step(generator.throw(value));
35762
+ } catch (e) {
35763
+ reject(e);
35764
+ }
35765
+ };
35766
+ var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
35767
+ step((generator = generator.apply(__this, __arguments)).next());
35768
+ });
35769
+ };
35770
+ const useCreateInvoiceAddress = (params) => {
35771
+ const { client } = useShipEngine();
35772
+ return useMutation(__spreadProps$i(__spreadValues$l({}, params), {
35773
+ mutationFn: (invoiceAddress) => __async$z(void 0, null, function* () {
35774
+ const result = yield client.invoiceAddress.create(invoiceAddress);
35775
+ return result.data;
35776
+ }),
35777
+ mutationKey: ["useCreateInvoiceAddress"],
35778
+ onError
35779
+ }));
35780
+ };
35781
+
35727
35782
  var __defProp$k = Object.defineProperty;
35728
35783
  var __defProps$h = Object.defineProperties;
35729
35784
  var __getOwnPropDescs$h = Object.getOwnPropertyDescriptors;
@@ -35763,14 +35818,14 @@ var __async$y = (__this, __arguments, generator) => {
35763
35818
  step((generator = generator.apply(__this, __arguments)).next());
35764
35819
  });
35765
35820
  };
35766
- const useCreateInvoiceAddress = (params) => {
35821
+ const useUpdateInvoiceAddress = (params) => {
35767
35822
  const { client } = useShipEngine();
35768
35823
  return useMutation(__spreadProps$h(__spreadValues$k({}, params), {
35769
35824
  mutationFn: (invoiceAddress) => __async$y(void 0, null, function* () {
35770
- const result = yield client.invoiceAddress.create(invoiceAddress);
35825
+ const result = yield client.invoiceAddress.update(invoiceAddress);
35771
35826
  return result.data;
35772
35827
  }),
35773
- mutationKey: ["useCreateInvoiceAddress"],
35828
+ mutationKey: ["useUpdateInvoiceAddress"],
35774
35829
  onError
35775
35830
  }));
35776
35831
  };
@@ -35794,6 +35849,31 @@ var __spreadValues$j = (a, b) => {
35794
35849
  return a;
35795
35850
  };
35796
35851
  var __spreadProps$g = (a, b) => __defProps$g(a, __getOwnPropDescs$g(b));
35852
+ const useGetInvoiceAddress = (params) => {
35853
+ const { client } = useShipEngine();
35854
+ return useQuery(__spreadProps$g(__spreadValues$j({}, params), {
35855
+ onError,
35856
+ queryFn: () => client.invoiceAddress.get(),
35857
+ queryKey: ["useGetInvoiceAddress"],
35858
+ select: (result) => result.data
35859
+ }));
35860
+ };
35861
+
35862
+ var __getOwnPropSymbols$o = Object.getOwnPropertySymbols;
35863
+ var __hasOwnProp$o = Object.prototype.hasOwnProperty;
35864
+ var __propIsEnum$o = Object.prototype.propertyIsEnumerable;
35865
+ var __objRest$g = (source, exclude) => {
35866
+ var target = {};
35867
+ for (var prop in source)
35868
+ if (__hasOwnProp$o.call(source, prop) && exclude.indexOf(prop) < 0)
35869
+ target[prop] = source[prop];
35870
+ if (source != null && __getOwnPropSymbols$o)
35871
+ for (var prop of __getOwnPropSymbols$o(source)) {
35872
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$o.call(source, prop))
35873
+ target[prop] = source[prop];
35874
+ }
35875
+ return target;
35876
+ };
35797
35877
  var __async$x = (__this, __arguments, generator) => {
35798
35878
  return new Promise((resolve, reject) => {
35799
35879
  var fulfilled = (value) => {
@@ -35814,50 +35894,53 @@ var __async$x = (__this, __arguments, generator) => {
35814
35894
  step((generator = generator.apply(__this, __arguments)).next());
35815
35895
  });
35816
35896
  };
35817
- const useUpdateInvoiceAddress = (params) => {
35897
+ const useCreateLabel = () => {
35818
35898
  const { client } = useShipEngine();
35819
- return useMutation(__spreadProps$g(__spreadValues$j({}, params), {
35820
- mutationFn: (invoiceAddress) => __async$x(void 0, null, function* () {
35821
- const result = yield client.invoiceAddress.update(invoiceAddress);
35899
+ return useMutation({
35900
+ mutationFn: (_a) => __async$x(void 0, null, function* () {
35901
+ var _b = _a, { rateId } = _b, options = __objRest$g(_b, ["rateId"]);
35902
+ const result = yield client.labels.createByRateId(rateId, options);
35822
35903
  return result.data;
35823
35904
  }),
35824
- mutationKey: ["useUpdateInvoiceAddress"],
35905
+ mutationKey: ["useCreateLabel"],
35825
35906
  onError
35826
- }));
35907
+ });
35908
+ };
35909
+
35910
+ const useGetLabel = (labelId) => {
35911
+ const { client } = useShipEngine();
35912
+ return useQuery({
35913
+ enabled: labelId !== void 0,
35914
+ onError,
35915
+ queryFn: () => {
35916
+ if (labelId)
35917
+ return client.labels.get(labelId);
35918
+ return Promise.reject(new Error("labelId is require"));
35919
+ },
35920
+ queryKey: ["useGetLabel", labelId],
35921
+ select: (result) => result.data
35922
+ });
35827
35923
  };
35828
35924
 
35829
35925
  var __defProp$i = Object.defineProperty;
35830
35926
  var __defProps$f = Object.defineProperties;
35831
35927
  var __getOwnPropDescs$f = Object.getOwnPropertyDescriptors;
35832
- var __getOwnPropSymbols$o = Object.getOwnPropertySymbols;
35833
- var __hasOwnProp$o = Object.prototype.hasOwnProperty;
35834
- var __propIsEnum$o = Object.prototype.propertyIsEnumerable;
35928
+ var __getOwnPropSymbols$n = Object.getOwnPropertySymbols;
35929
+ var __hasOwnProp$n = Object.prototype.hasOwnProperty;
35930
+ var __propIsEnum$n = Object.prototype.propertyIsEnumerable;
35835
35931
  var __defNormalProp$i = (obj, key, value) => key in obj ? __defProp$i(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35836
35932
  var __spreadValues$i = (a, b) => {
35837
35933
  for (var prop in b || (b = {}))
35838
- if (__hasOwnProp$o.call(b, prop))
35934
+ if (__hasOwnProp$n.call(b, prop))
35839
35935
  __defNormalProp$i(a, prop, b[prop]);
35840
- if (__getOwnPropSymbols$o)
35841
- for (var prop of __getOwnPropSymbols$o(b)) {
35842
- if (__propIsEnum$o.call(b, prop))
35936
+ if (__getOwnPropSymbols$n)
35937
+ for (var prop of __getOwnPropSymbols$n(b)) {
35938
+ if (__propIsEnum$n.call(b, prop))
35843
35939
  __defNormalProp$i(a, prop, b[prop]);
35844
35940
  }
35845
35941
  return a;
35846
35942
  };
35847
35943
  var __spreadProps$f = (a, b) => __defProps$f(a, __getOwnPropDescs$f(b));
35848
- const useGetInvoiceAddress = (params) => {
35849
- const { client } = useShipEngine();
35850
- return useQuery(__spreadProps$f(__spreadValues$i({}, params), {
35851
- onError,
35852
- queryFn: () => client.invoiceAddress.get(),
35853
- queryKey: ["useGetInvoiceAddress"],
35854
- select: (result) => result.data
35855
- }));
35856
- };
35857
-
35858
- var __getOwnPropSymbols$n = Object.getOwnPropertySymbols;
35859
- var __hasOwnProp$n = Object.prototype.hasOwnProperty;
35860
- var __propIsEnum$n = Object.prototype.propertyIsEnumerable;
35861
35944
  var __objRest$f = (source, exclude) => {
35862
35945
  var target = {};
35863
35946
  for (var prop in source)
@@ -35870,6 +35953,17 @@ var __objRest$f = (source, exclude) => {
35870
35953
  }
35871
35954
  return target;
35872
35955
  };
35956
+ const useListLabels = (params) => {
35957
+ const { client } = useShipEngine();
35958
+ const _a = __spreadValues$i({}, params), { queryFnParams } = _a, rest = __objRest$f(_a, ["queryFnParams"]);
35959
+ return useQuery(__spreadProps$f(__spreadValues$i({}, rest), {
35960
+ onError,
35961
+ queryFn: () => client.labels.list(queryFnParams),
35962
+ queryKey: ["useListLabels", params],
35963
+ select: (result) => result.data
35964
+ }));
35965
+ };
35966
+
35873
35967
  var __async$w = (__this, __arguments, generator) => {
35874
35968
  return new Promise((resolve, reject) => {
35875
35969
  var fulfilled = (value) => {
@@ -35890,34 +35984,18 @@ var __async$w = (__this, __arguments, generator) => {
35890
35984
  step((generator = generator.apply(__this, __arguments)).next());
35891
35985
  });
35892
35986
  };
35893
- const useCreateLabel = () => {
35987
+ const useVoidLabel = () => {
35894
35988
  const { client } = useShipEngine();
35895
35989
  return useMutation({
35896
- mutationFn: (_a) => __async$w(void 0, null, function* () {
35897
- var _b = _a, { rateId } = _b, options = __objRest$f(_b, ["rateId"]);
35898
- const result = yield client.labels.createByRateId(rateId, options);
35990
+ mutationFn: (labelId) => __async$w(void 0, null, function* () {
35991
+ const result = yield client.labels.void(labelId);
35899
35992
  return result.data;
35900
35993
  }),
35901
- mutationKey: ["useCreateLabel"],
35994
+ mutationKey: ["useVoidLabel"],
35902
35995
  onError
35903
35996
  });
35904
35997
  };
35905
35998
 
35906
- const useGetLabel = (labelId) => {
35907
- const { client } = useShipEngine();
35908
- return useQuery({
35909
- enabled: labelId !== void 0,
35910
- onError,
35911
- queryFn: () => {
35912
- if (labelId)
35913
- return client.labels.get(labelId);
35914
- return Promise.reject(new Error("labelId is require"));
35915
- },
35916
- queryKey: ["useGetLabel", labelId],
35917
- select: (result) => result.data
35918
- });
35919
- };
35920
-
35921
35999
  var __defProp$h = Object.defineProperty;
35922
36000
  var __defProps$e = Object.defineProperties;
35923
36001
  var __getOwnPropDescs$e = Object.getOwnPropertyDescriptors;
@@ -35949,17 +36027,6 @@ var __objRest$e = (source, exclude) => {
35949
36027
  }
35950
36028
  return target;
35951
36029
  };
35952
- const useListLabels = (params) => {
35953
- const { client } = useShipEngine();
35954
- const _a = __spreadValues$h({}, params), { queryFnParams } = _a, rest = __objRest$e(_a, ["queryFnParams"]);
35955
- return useQuery(__spreadProps$e(__spreadValues$h({}, rest), {
35956
- onError,
35957
- queryFn: () => client.labels.list(queryFnParams),
35958
- queryKey: ["useListLabels", params],
35959
- select: (result) => result.data
35960
- }));
35961
- };
35962
-
35963
36030
  var __async$v = (__this, __arguments, generator) => {
35964
36031
  return new Promise((resolve, reject) => {
35965
36032
  var fulfilled = (value) => {
@@ -35980,16 +36047,30 @@ var __async$v = (__this, __arguments, generator) => {
35980
36047
  step((generator = generator.apply(__this, __arguments)).next());
35981
36048
  });
35982
36049
  };
35983
- const useVoidLabel = () => {
36050
+ const useListLabelsInfinite = (params) => {
35984
36051
  const { client } = useShipEngine();
35985
- return useMutation({
35986
- mutationFn: (labelId) => __async$v(void 0, null, function* () {
35987
- const result = yield client.labels.void(labelId);
35988
- return result.data;
36052
+ const _a = __spreadValues$h({}, params), { queryFnParams } = _a, rest = __objRest$e(_a, ["queryFnParams"]);
36053
+ return useInfiniteQuery(__spreadProps$e(__spreadValues$h({}, rest), {
36054
+ getNextPageParam: (lastPage) => {
36055
+ if (lastPage.page < lastPage.pages) {
36056
+ return lastPage.page + 1;
36057
+ }
36058
+ return void 0;
36059
+ },
36060
+ onError,
36061
+ queryFn: (_0) => __async$v(void 0, [_0], function* ({ pageParam = 1 }) {
36062
+ const response = yield client.labels.list(__spreadProps$e(__spreadValues$h({}, queryFnParams), { page: pageParam }));
36063
+ return response.data;
35989
36064
  }),
35990
- mutationKey: ["useVoidLabel"],
35991
- onError
35992
- });
36065
+ queryKey: ["useListLabelsInfinite", params],
36066
+ select: (data) => {
36067
+ return {
36068
+ labels: data.pages.flatMap((page) => page.labels),
36069
+ pageParams: data.pageParams,
36070
+ pages: data.pages
36071
+ };
36072
+ }
36073
+ }));
35993
36074
  };
35994
36075
 
35995
36076
  var __defProp$g = Object.defineProperty;
@@ -38950,4 +39031,4 @@ const alchemy = {
38950
39031
  createElement
38951
39032
  };
38952
39033
 
38953
- export { AccountSettingsAPI, AddressesAPI, AlchemyContext, AlchemyProvider, AlchemyTestProvider, 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, useCreateFundingSource, useCreateInvoiceAddress, useCreateLabel, useCreateRateCard, useCreateSalesOrderShipment, useCreateSandboxSeller, useCreateSellerApiKey, useCreateShipment, useCreateShippingRule, useCreateWarehouse, useCreateWebhook, useDeactivateOrderSource, useDeleteAccountImage, useDeleteCarrier, useDeleteRateCard, useDeleteSellerApiKey, useDeleteShippingRule, useDeleteWarehouse, useDeleteWebhook, useDownloadRateCard, useEditShippingRule, useFundingSourcesAddFunds, useGetAccountBillingPlan, useGetAccountImages, useGetAccountSettings, 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, 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, useValidateAddresses, useVoidLabel };
39034
+ export { AccountSettingsAPI, AddressesAPI, AlchemyContext, AlchemyProvider, AlchemyTestProvider, 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, useCreateFundingSource, useCreateInvoiceAddress, useCreateLabel, useCreateRateCard, useCreateSalesOrderShipment, useCreateSandboxSeller, useCreateSellerApiKey, useCreateShipment, useCreateShippingRule, useCreateWarehouse, useCreateWebhook, useDeactivateOrderSource, useDeleteAccountImage, useDeleteCarrier, useDeleteRateCard, useDeleteSellerApiKey, useDeleteShippingRule, useDeleteWarehouse, useDeleteWebhook, useDownloadRateCard, useEditShippingRule, useFundingSourcesAddFunds, useGetAccountBillingPlan, useGetAccountImages, useGetAccountSettings, 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, useValidateAddresses, useVoidLabel };