@shipengine/alchemy 6.0.28 → 6.0.30

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 +462 -392
  2. package/index.mjs +463 -394
  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';
@@ -4883,41 +4883,33 @@ var _getHolder = getHolder$2;
4883
4883
 
4884
4884
  /** Used as references for various `Number` constants. */
4885
4885
 
4886
- var _isIndex;
4887
- var hasRequired_isIndex;
4886
+ var MAX_SAFE_INTEGER$1 = 9007199254740991;
4888
4887
 
4889
- function require_isIndex () {
4890
- if (hasRequired_isIndex) return _isIndex;
4891
- hasRequired_isIndex = 1;
4892
- var MAX_SAFE_INTEGER = 9007199254740991;
4888
+ /** Used to detect unsigned integer values. */
4889
+ var reIsUint = /^(?:0|[1-9]\d*)$/;
4893
4890
 
4894
- /** Used to detect unsigned integer values. */
4895
- var reIsUint = /^(?:0|[1-9]\d*)$/;
4896
-
4897
- /**
4898
- * Checks if `value` is a valid array-like index.
4899
- *
4900
- * @private
4901
- * @param {*} value The value to check.
4902
- * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.
4903
- * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
4904
- */
4905
- function isIndex(value, length) {
4906
- var type = typeof value;
4907
- length = length == null ? MAX_SAFE_INTEGER : length;
4908
-
4909
- return !!length &&
4910
- (type == 'number' ||
4911
- (type != 'symbol' && reIsUint.test(value))) &&
4912
- (value > -1 && value % 1 == 0 && value < length);
4913
- }
4891
+ /**
4892
+ * Checks if `value` is a valid array-like index.
4893
+ *
4894
+ * @private
4895
+ * @param {*} value The value to check.
4896
+ * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.
4897
+ * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
4898
+ */
4899
+ function isIndex$3(value, length) {
4900
+ var type = typeof value;
4901
+ length = length == null ? MAX_SAFE_INTEGER$1 : length;
4914
4902
 
4915
- _isIndex = isIndex;
4916
- return _isIndex;
4903
+ return !!length &&
4904
+ (type == 'number' ||
4905
+ (type != 'symbol' && reIsUint.test(value))) &&
4906
+ (value > -1 && value % 1 == 0 && value < length);
4917
4907
  }
4918
4908
 
4909
+ var _isIndex = isIndex$3;
4910
+
4919
4911
  var copyArray$2 = _copyArray,
4920
- isIndex$2 = require_isIndex();
4912
+ isIndex$2 = _isIndex;
4921
4913
 
4922
4914
  /* Built-in method references for those with the same name as other `lodash` methods. */
4923
4915
  var nativeMin$1 = Math.min;
@@ -6110,7 +6102,7 @@ var baseTimes = _baseTimes,
6110
6102
  isArguments$2 = requireIsArguments(),
6111
6103
  isArray$f = isArray_1,
6112
6104
  isBuffer$4 = isBufferExports,
6113
- isIndex$1 = require_isIndex(),
6105
+ isIndex$1 = _isIndex,
6114
6106
  isTypedArray$1 = requireIsTypedArray();
6115
6107
 
6116
6108
  /** Used for built-in method references. */
@@ -9441,7 +9433,7 @@ var _baseHasIn = baseHasIn$1;
9441
9433
  var castPath = _castPath,
9442
9434
  isArguments$1 = requireIsArguments(),
9443
9435
  isArray$8 = isArray_1,
9444
- isIndex = require_isIndex(),
9436
+ isIndex = _isIndex,
9445
9437
  isLength = isLength_1,
9446
9438
  toKey$3 = _toKey;
9447
9439
 
@@ -10331,7 +10323,7 @@ function require_isIterateeCall () {
10331
10323
  hasRequired_isIterateeCall = 1;
10332
10324
  var eq = requireEq(),
10333
10325
  isArrayLike = isArrayLike_1,
10334
- isIndex = require_isIndex(),
10326
+ isIndex = _isIndex,
10335
10327
  isObject = isObject_1;
10336
10328
 
10337
10329
  /**
@@ -10798,17 +10790,17 @@ var AccountBillingPlanChangeType = /* @__PURE__ */ ((AccountBillingPlanChangeTyp
10798
10790
  return AccountBillingPlanChangeType2;
10799
10791
  })(AccountBillingPlanChangeType || {});
10800
10792
 
10801
- var __getOwnPropSymbols$H = Object.getOwnPropertySymbols;
10802
- var __hasOwnProp$H = Object.prototype.hasOwnProperty;
10803
- var __propIsEnum$H = Object.prototype.propertyIsEnumerable;
10804
- 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) => {
10805
10797
  var target = {};
10806
10798
  for (var prop in source)
10807
- if (__hasOwnProp$H.call(source, prop) && exclude.indexOf(prop) < 0)
10799
+ if (__hasOwnProp$I.call(source, prop) && exclude.indexOf(prop) < 0)
10808
10800
  target[prop] = source[prop];
10809
- if (source != null && __getOwnPropSymbols$H)
10810
- for (var prop of __getOwnPropSymbols$H(source)) {
10811
- 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))
10812
10804
  target[prop] = source[prop];
10813
10805
  }
10814
10806
  return target;
@@ -10822,7 +10814,7 @@ class CodedError {
10822
10814
  this.message = message;
10823
10815
  }
10824
10816
  static fromObject(_a) {
10825
- var _b = _a, { message } = _b, options = __objRest$p(_b, ["message"]);
10817
+ var _b = _a, { message } = _b, options = __objRest$q(_b, ["message"]);
10826
10818
  return new CodedError(message, options);
10827
10819
  }
10828
10820
  }
@@ -10941,17 +10933,17 @@ const types = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
10941
10933
  RateCardStatus
10942
10934
  }, Symbol.toStringTag, { value: 'Module' }));
10943
10935
 
10944
- var __getOwnPropSymbols$G = Object.getOwnPropertySymbols;
10945
- var __hasOwnProp$G = Object.prototype.hasOwnProperty;
10946
- var __propIsEnum$G = Object.prototype.propertyIsEnumerable;
10947
- 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) => {
10948
10940
  var target = {};
10949
10941
  for (var prop in source)
10950
- if (__hasOwnProp$G.call(source, prop) && exclude.indexOf(prop) < 0)
10942
+ if (__hasOwnProp$H.call(source, prop) && exclude.indexOf(prop) < 0)
10951
10943
  target[prop] = source[prop];
10952
- if (source != null && __getOwnPropSymbols$G)
10953
- for (var prop of __getOwnPropSymbols$G(source)) {
10954
- 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))
10955
10947
  target[prop] = source[prop];
10956
10948
  }
10957
10949
  return target;
@@ -10983,7 +10975,7 @@ class AccountSettingsAPI {
10983
10975
  * The `updateImage` method updates specific image data for a given image id.
10984
10976
  */
10985
10977
  this.updateImage = (_a) => {
10986
- var _b = _a, { labelImageId } = _b, data = __objRest$o(_b, ["labelImageId"]);
10978
+ var _b = _a, { labelImageId } = _b, data = __objRest$p(_b, ["labelImageId"]);
10987
10979
  return this.client.put(`/v1/account/settings/images/${labelImageId}`, data);
10988
10980
  };
10989
10981
  /**
@@ -13693,7 +13685,7 @@ var ipaddr = {
13693
13685
  }).call(commonjsGlobal);
13694
13686
  } (ipaddr));
13695
13687
 
13696
- var __async$X = (__this, __arguments, generator) => {
13688
+ var __async$Y = (__this, __arguments, generator) => {
13697
13689
  return new Promise((resolve, reject) => {
13698
13690
  var fulfilled = (value) => {
13699
13691
  try {
@@ -13713,7 +13705,7 @@ var __async$X = (__this, __arguments, generator) => {
13713
13705
  step((generator = generator.apply(__this, __arguments)).next());
13714
13706
  });
13715
13707
  };
13716
- const getEndUserIpAddress = () => __async$X(void 0, null, function* () {
13708
+ const getEndUserIpAddress = () => __async$Y(void 0, null, function* () {
13717
13709
  try {
13718
13710
  const response = yield axios.get("https://api.ipify.org/?format=json");
13719
13711
  if (response.data.ip && ipaddrExports.isValid(response.data.ip)) {
@@ -13770,38 +13762,38 @@ const decamelizeKeys = (obj, separator = "_") => {
13770
13762
  return obj;
13771
13763
  };
13772
13764
 
13773
- var __defProp$u = Object.defineProperty;
13774
- var __defProps$o = Object.defineProperties;
13775
- var __getOwnPropDescs$o = Object.getOwnPropertyDescriptors;
13776
- var __getOwnPropSymbols$F = Object.getOwnPropertySymbols;
13777
- var __hasOwnProp$F = Object.prototype.hasOwnProperty;
13778
- var __propIsEnum$F = Object.prototype.propertyIsEnumerable;
13779
- var __defNormalProp$u = (obj, key, value) => key in obj ? __defProp$u(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
13780
- 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) => {
13781
13773
  for (var prop in b || (b = {}))
13782
- if (__hasOwnProp$F.call(b, prop))
13783
- __defNormalProp$u(a, prop, b[prop]);
13784
- if (__getOwnPropSymbols$F)
13785
- for (var prop of __getOwnPropSymbols$F(b)) {
13786
- if (__propIsEnum$F.call(b, prop))
13787
- __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]);
13788
13780
  }
13789
13781
  return a;
13790
13782
  };
13791
- var __spreadProps$o = (a, b) => __defProps$o(a, __getOwnPropDescs$o(b));
13792
- var __objRest$n = (source, exclude) => {
13783
+ var __spreadProps$p = (a, b) => __defProps$p(a, __getOwnPropDescs$p(b));
13784
+ var __objRest$o = (source, exclude) => {
13793
13785
  var target = {};
13794
13786
  for (var prop in source)
13795
- if (__hasOwnProp$F.call(source, prop) && exclude.indexOf(prop) < 0)
13787
+ if (__hasOwnProp$G.call(source, prop) && exclude.indexOf(prop) < 0)
13796
13788
  target[prop] = source[prop];
13797
- if (source != null && __getOwnPropSymbols$F)
13798
- for (var prop of __getOwnPropSymbols$F(source)) {
13799
- 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))
13800
13792
  target[prop] = source[prop];
13801
13793
  }
13802
13794
  return target;
13803
13795
  };
13804
- var __async$W = (__this, __arguments, generator) => {
13796
+ var __async$X = (__this, __arguments, generator) => {
13805
13797
  return new Promise((resolve, reject) => {
13806
13798
  var fulfilled = (value) => {
13807
13799
  try {
@@ -13841,12 +13833,12 @@ class CarriersAPI {
13841
13833
  /**
13842
13834
  * The `connect` method connects a carrier account to a user's ShipEngine account.
13843
13835
  */
13844
- this.connect = (_a) => __async$W(this, null, function* () {
13845
- 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"]);
13846
13838
  const endUserIpAddress = yield getEndUserIpAddress();
13847
13839
  if (!endUserIpAddress)
13848
13840
  return Promise.reject([new CodedError("Unable to get IP address")]);
13849
- 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), {
13850
13842
  endUserIpAddress
13851
13843
  }));
13852
13844
  });
@@ -13932,7 +13924,7 @@ class CarriersAPI {
13932
13924
  }
13933
13925
  }
13934
13926
 
13935
- var __async$V = (__this, __arguments, generator) => {
13927
+ var __async$W = (__this, __arguments, generator) => {
13936
13928
  return new Promise((resolve, reject) => {
13937
13929
  var fulfilled = (value) => {
13938
13930
  try {
@@ -13974,7 +13966,7 @@ class ConnectionsAPI {
13974
13966
  /**
13975
13967
  * The `connectCarrier` method connects a carrier to account.
13976
13968
  */
13977
- this.connectCarrier = (carrierName, formData) => __async$V(this, null, function* () {
13969
+ this.connectCarrier = (carrierName, formData) => __async$W(this, null, function* () {
13978
13970
  return yield this.client.post(
13979
13971
  `/v1/connections/carriers/${carrierName}`,
13980
13972
  formData,
@@ -16149,23 +16141,23 @@ class CustomPackagesAPI {
16149
16141
  }
16150
16142
  }
16151
16143
 
16152
- var __defProp$t = Object.defineProperty;
16153
- var __getOwnPropSymbols$E = Object.getOwnPropertySymbols;
16154
- var __hasOwnProp$E = Object.prototype.hasOwnProperty;
16155
- var __propIsEnum$E = Object.prototype.propertyIsEnumerable;
16156
- var __defNormalProp$t = (obj, key, value) => key in obj ? __defProp$t(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
16157
- 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) => {
16158
16150
  for (var prop in b || (b = {}))
16159
- if (__hasOwnProp$E.call(b, prop))
16160
- __defNormalProp$t(a, prop, b[prop]);
16161
- if (__getOwnPropSymbols$E)
16162
- for (var prop of __getOwnPropSymbols$E(b)) {
16163
- if (__propIsEnum$E.call(b, prop))
16164
- __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]);
16165
16157
  }
16166
16158
  return a;
16167
16159
  };
16168
- var __async$U = (__this, __arguments, generator) => {
16160
+ var __async$V = (__this, __arguments, generator) => {
16169
16161
  return new Promise((resolve, reject) => {
16170
16162
  var fulfilled = (value) => {
16171
16163
  try {
@@ -16204,12 +16196,12 @@ class FundingSourcesAPI {
16204
16196
  * The `create` method creates a new funding source for a given user. This requires
16205
16197
  * payment information to be collected from the user.
16206
16198
  */
16207
- this.create = (createFundingSource) => __async$U(this, null, function* () {
16199
+ this.create = (createFundingSource) => __async$V(this, null, function* () {
16208
16200
  const endUserIpAddress = yield getEndUserIpAddress();
16209
16201
  if (!endUserIpAddress) {
16210
16202
  return Promise.reject([new CodedError("Unable to get IP address")]);
16211
16203
  }
16212
- return yield this.client.post("/v1/funding_sources", __spreadValues$t({
16204
+ return yield this.client.post("/v1/funding_sources", __spreadValues$u({
16213
16205
  endUserIpAddress
16214
16206
  }, createFundingSource));
16215
16207
  });
@@ -16218,7 +16210,7 @@ class FundingSourcesAPI {
16218
16210
  * user to update the billing address or payment information associated with the
16219
16211
  * funding source.
16220
16212
  */
16221
- this.update = (billingInfo, creditCardInfo, fundingSourceId) => __async$U(this, null, function* () {
16213
+ this.update = (billingInfo, creditCardInfo, fundingSourceId) => __async$V(this, null, function* () {
16222
16214
  const endUserIpAddress = yield getEndUserIpAddress();
16223
16215
  if (!endUserIpAddress) {
16224
16216
  return Promise.reject([new CodedError("Unable to get IP address")]);
@@ -16236,19 +16228,19 @@ class FundingSourcesAPI {
16236
16228
  * The `registerCarrier` method registers a carrier account and associates
16237
16229
  * it with a given funding source.
16238
16230
  */
16239
- this.registerCarrier = (carrier) => __async$U(this, null, function* () {
16231
+ this.registerCarrier = (carrier) => __async$V(this, null, function* () {
16240
16232
  const endUserIpAddress = yield getEndUserIpAddress();
16241
16233
  if (!endUserIpAddress) {
16242
16234
  return Promise.reject([new CodedError("Unable to get IP address")]);
16243
16235
  }
16244
- return yield this.client.post("/v1/registration/funding_source", __spreadValues$t({
16236
+ return yield this.client.post("/v1/registration/funding_source", __spreadValues$u({
16245
16237
  endUserIpAddress
16246
16238
  }, carrier));
16247
16239
  });
16248
16240
  /**
16249
16241
  * The `addFunds` method allows you to add funds to a funding source.
16250
16242
  */
16251
- this.addFunds = (amount, fundingSourceId) => __async$U(this, null, function* () {
16243
+ this.addFunds = (amount, fundingSourceId) => __async$V(this, null, function* () {
16252
16244
  return yield this.client.put(
16253
16245
  `/v1/funding_sources/${fundingSourceId}/add_funds`,
16254
16246
  amount
@@ -16258,7 +16250,7 @@ class FundingSourcesAPI {
16258
16250
  * The `metadata` method returns seller-specific requirements for creating funding sources
16259
16251
  * and attaching carriers
16260
16252
  */
16261
- this.metadata = () => __async$U(this, null, function* () {
16253
+ this.metadata = () => __async$V(this, null, function* () {
16262
16254
  return yield this.client.get("/v1/funding_sources/metadata");
16263
16255
  });
16264
16256
  /**
@@ -16310,7 +16302,7 @@ class InsuranceAPI {
16310
16302
  }
16311
16303
  }
16312
16304
 
16313
- var __async$T = (__this, __arguments, generator) => {
16305
+ var __async$U = (__this, __arguments, generator) => {
16314
16306
  return new Promise((resolve, reject) => {
16315
16307
  var fulfilled = (value) => {
16316
16308
  try {
@@ -16342,13 +16334,13 @@ class InvoiceAddressAPI {
16342
16334
  /**
16343
16335
  * The `create` method creates a new invoice address for a given user.
16344
16336
  */
16345
- this.create = (invoiceAddress) => __async$T(this, null, function* () {
16337
+ this.create = (invoiceAddress) => __async$U(this, null, function* () {
16346
16338
  return yield this.client.post("/v1/invoice_address", invoiceAddress);
16347
16339
  });
16348
16340
  /**
16349
16341
  * The `update` method updates a invoice address for a given user.
16350
16342
  */
16351
- this.update = (invoiceAddress) => __async$T(this, null, function* () {
16343
+ this.update = (invoiceAddress) => __async$U(this, null, function* () {
16352
16344
  return yield this.client.put("/v1/invoice_address", invoiceAddress);
16353
16345
  });
16354
16346
  this.client = client;
@@ -16390,17 +16382,17 @@ class LabelsAPI {
16390
16382
  }
16391
16383
  }
16392
16384
 
16393
- var __getOwnPropSymbols$D = Object.getOwnPropertySymbols;
16394
- var __hasOwnProp$D = Object.prototype.hasOwnProperty;
16395
- var __propIsEnum$D = Object.prototype.propertyIsEnumerable;
16396
- var __objRest$m = (source, exclude) => {
16385
+ var __getOwnPropSymbols$E = Object.getOwnPropertySymbols;
16386
+ var __hasOwnProp$E = Object.prototype.hasOwnProperty;
16387
+ var __propIsEnum$E = Object.prototype.propertyIsEnumerable;
16388
+ var __objRest$n = (source, exclude) => {
16397
16389
  var target = {};
16398
16390
  for (var prop in source)
16399
- if (__hasOwnProp$D.call(source, prop) && exclude.indexOf(prop) < 0)
16391
+ if (__hasOwnProp$E.call(source, prop) && exclude.indexOf(prop) < 0)
16400
16392
  target[prop] = source[prop];
16401
- if (source != null && __getOwnPropSymbols$D)
16402
- for (var prop of __getOwnPropSymbols$D(source)) {
16403
- if (exclude.indexOf(prop) < 0 && __propIsEnum$D.call(source, prop))
16393
+ if (source != null && __getOwnPropSymbols$E)
16394
+ for (var prop of __getOwnPropSymbols$E(source)) {
16395
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$E.call(source, prop))
16404
16396
  target[prop] = source[prop];
16405
16397
  }
16406
16398
  return target;
@@ -16432,7 +16424,7 @@ class OrderSourcesAPI {
16432
16424
  * The `update` method will allow the user to update a connected Order Source
16433
16425
  */
16434
16426
  this.update = (_a) => {
16435
- var _b = _a, { orderSourceId } = _b, rest = __objRest$m(_b, ["orderSourceId"]);
16427
+ var _b = _a, { orderSourceId } = _b, rest = __objRest$n(_b, ["orderSourceId"]);
16436
16428
  return this.client.put(`/v-beta/order_sources/${orderSourceId}`, rest);
16437
16429
  };
16438
16430
  /**
@@ -16521,19 +16513,19 @@ class RateCardsAPI {
16521
16513
  }
16522
16514
  }
16523
16515
 
16524
- var __defProp$s = Object.defineProperty;
16525
- var __getOwnPropSymbols$C = Object.getOwnPropertySymbols;
16526
- var __hasOwnProp$C = Object.prototype.hasOwnProperty;
16527
- var __propIsEnum$C = Object.prototype.propertyIsEnumerable;
16528
- var __defNormalProp$s = (obj, key, value) => key in obj ? __defProp$s(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
16529
- var __spreadValues$s = (a, b) => {
16516
+ var __defProp$t = Object.defineProperty;
16517
+ var __getOwnPropSymbols$D = Object.getOwnPropertySymbols;
16518
+ var __hasOwnProp$D = Object.prototype.hasOwnProperty;
16519
+ var __propIsEnum$D = Object.prototype.propertyIsEnumerable;
16520
+ var __defNormalProp$t = (obj, key, value) => key in obj ? __defProp$t(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
16521
+ var __spreadValues$t = (a, b) => {
16530
16522
  for (var prop in b || (b = {}))
16531
- if (__hasOwnProp$C.call(b, prop))
16532
- __defNormalProp$s(a, prop, b[prop]);
16533
- if (__getOwnPropSymbols$C)
16534
- for (var prop of __getOwnPropSymbols$C(b)) {
16535
- if (__propIsEnum$C.call(b, prop))
16536
- __defNormalProp$s(a, prop, b[prop]);
16523
+ if (__hasOwnProp$D.call(b, prop))
16524
+ __defNormalProp$t(a, prop, b[prop]);
16525
+ if (__getOwnPropSymbols$D)
16526
+ for (var prop of __getOwnPropSymbols$D(b)) {
16527
+ if (__propIsEnum$D.call(b, prop))
16528
+ __defNormalProp$t(a, prop, b[prop]);
16537
16529
  }
16538
16530
  return a;
16539
16531
  };
@@ -16555,7 +16547,7 @@ class RatesAPI {
16555
16547
  * method.
16556
16548
  */
16557
16549
  this.estimate = (params) => {
16558
- return this.client.post("/v1/rates/estimate", __spreadValues$s({}, params));
16550
+ return this.client.post("/v1/rates/estimate", __spreadValues$t({}, params));
16559
16551
  };
16560
16552
  this.client = client;
16561
16553
  }
@@ -16635,7 +16627,7 @@ class SalesOrdersAPI {
16635
16627
  }
16636
16628
  }
16637
16629
 
16638
- var __async$S = (__this, __arguments, generator) => {
16630
+ var __async$T = (__this, __arguments, generator) => {
16639
16631
  return new Promise((resolve, reject) => {
16640
16632
  var fulfilled = (value) => {
16641
16633
  try {
@@ -16693,7 +16685,7 @@ class SellersAPI {
16693
16685
  /**
16694
16686
  * Deletes an API Key
16695
16687
  */
16696
- this.deleteSellerApiKey = (_0) => __async$S(this, [_0], function* ({
16688
+ this.deleteSellerApiKey = (_0) => __async$T(this, [_0], function* ({
16697
16689
  encryptedApiKey,
16698
16690
  sellerId,
16699
16691
  isSandbox
@@ -16739,19 +16731,19 @@ class SellersAPI {
16739
16731
  }
16740
16732
  }
16741
16733
 
16742
- var __defProp$r = Object.defineProperty;
16743
- var __getOwnPropSymbols$B = Object.getOwnPropertySymbols;
16744
- var __hasOwnProp$B = Object.prototype.hasOwnProperty;
16745
- var __propIsEnum$B = Object.prototype.propertyIsEnumerable;
16746
- var __defNormalProp$r = (obj, key, value) => key in obj ? __defProp$r(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
16747
- var __spreadValues$r = (a, b) => {
16734
+ var __defProp$s = Object.defineProperty;
16735
+ var __getOwnPropSymbols$C = Object.getOwnPropertySymbols;
16736
+ var __hasOwnProp$C = Object.prototype.hasOwnProperty;
16737
+ var __propIsEnum$C = Object.prototype.propertyIsEnumerable;
16738
+ var __defNormalProp$s = (obj, key, value) => key in obj ? __defProp$s(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
16739
+ var __spreadValues$s = (a, b) => {
16748
16740
  for (var prop in b || (b = {}))
16749
- if (__hasOwnProp$B.call(b, prop))
16750
- __defNormalProp$r(a, prop, b[prop]);
16751
- if (__getOwnPropSymbols$B)
16752
- for (var prop of __getOwnPropSymbols$B(b)) {
16753
- if (__propIsEnum$B.call(b, prop))
16754
- __defNormalProp$r(a, prop, b[prop]);
16741
+ if (__hasOwnProp$C.call(b, prop))
16742
+ __defNormalProp$s(a, prop, b[prop]);
16743
+ if (__getOwnPropSymbols$C)
16744
+ for (var prop of __getOwnPropSymbols$C(b)) {
16745
+ if (__propIsEnum$C.call(b, prop))
16746
+ __defNormalProp$s(a, prop, b[prop]);
16755
16747
  }
16756
16748
  return a;
16757
16749
  };
@@ -16763,7 +16755,7 @@ class ServicePointsAPI {
16763
16755
  * Either an address, coordinates, or an address query
16764
16756
  */
16765
16757
  this.list = (options) => {
16766
- return this.client.post("/v1/service_points/list", __spreadValues$r({}, options));
16758
+ return this.client.post("/v1/service_points/list", __spreadValues$s({}, options));
16767
16759
  };
16768
16760
  /**
16769
16761
  * Get a specific service point by its carrier code, country code, and id
@@ -16781,7 +16773,7 @@ class ServicePointsAPI {
16781
16773
  }
16782
16774
  }
16783
16775
 
16784
- var __async$R = (__this, __arguments, generator) => {
16776
+ var __async$S = (__this, __arguments, generator) => {
16785
16777
  return new Promise((resolve, reject) => {
16786
16778
  var fulfilled = (value) => {
16787
16779
  try {
@@ -16830,7 +16822,7 @@ class ShipmentsAPI {
16830
16822
  * The `create` method allows for creating shipments based on a list of shipment
16831
16823
  * items passed into this method.
16832
16824
  */
16833
- this.create = (...shipments) => __async$R(this, null, function* () {
16825
+ this.create = (...shipments) => __async$S(this, null, function* () {
16834
16826
  return this.client.post("/v1/shipments", {
16835
16827
  shipments
16836
16828
  });
@@ -34222,26 +34214,26 @@ class WebhooksAPI {
34222
34214
  }
34223
34215
  }
34224
34216
 
34225
- var __defProp$q = Object.defineProperty;
34226
- var __defProps$n = Object.defineProperties;
34227
- var __getOwnPropDescs$n = Object.getOwnPropertyDescriptors;
34228
- var __getOwnPropSymbols$A = Object.getOwnPropertySymbols;
34229
- var __hasOwnProp$A = Object.prototype.hasOwnProperty;
34230
- var __propIsEnum$A = Object.prototype.propertyIsEnumerable;
34231
- var __defNormalProp$q = (obj, key, value) => key in obj ? __defProp$q(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
34232
- var __spreadValues$q = (a, b) => {
34217
+ var __defProp$r = Object.defineProperty;
34218
+ var __defProps$o = Object.defineProperties;
34219
+ var __getOwnPropDescs$o = Object.getOwnPropertyDescriptors;
34220
+ var __getOwnPropSymbols$B = Object.getOwnPropertySymbols;
34221
+ var __hasOwnProp$B = Object.prototype.hasOwnProperty;
34222
+ var __propIsEnum$B = Object.prototype.propertyIsEnumerable;
34223
+ var __defNormalProp$r = (obj, key, value) => key in obj ? __defProp$r(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
34224
+ var __spreadValues$r = (a, b) => {
34233
34225
  for (var prop in b || (b = {}))
34234
- if (__hasOwnProp$A.call(b, prop))
34235
- __defNormalProp$q(a, prop, b[prop]);
34236
- if (__getOwnPropSymbols$A)
34237
- for (var prop of __getOwnPropSymbols$A(b)) {
34238
- if (__propIsEnum$A.call(b, prop))
34239
- __defNormalProp$q(a, prop, b[prop]);
34226
+ if (__hasOwnProp$B.call(b, prop))
34227
+ __defNormalProp$r(a, prop, b[prop]);
34228
+ if (__getOwnPropSymbols$B)
34229
+ for (var prop of __getOwnPropSymbols$B(b)) {
34230
+ if (__propIsEnum$B.call(b, prop))
34231
+ __defNormalProp$r(a, prop, b[prop]);
34240
34232
  }
34241
34233
  return a;
34242
34234
  };
34243
- var __spreadProps$n = (a, b) => __defProps$n(a, __getOwnPropDescs$n(b));
34244
- var __async$Q = (__this, __arguments, generator) => {
34235
+ var __spreadProps$o = (a, b) => __defProps$o(a, __getOwnPropDescs$o(b));
34236
+ var __async$R = (__this, __arguments, generator) => {
34245
34237
  return new Promise((resolve, reject) => {
34246
34238
  var fulfilled = (value) => {
34247
34239
  try {
@@ -34264,7 +34256,7 @@ var __async$Q = (__this, __arguments, generator) => {
34264
34256
  const logger$1 = E({
34265
34257
  level: process.env.NODE_ENV === "production" ? "fatal" : "info",
34266
34258
  name: "shipengine-api",
34267
- serializers: __spreadProps$n(__spreadValues$q({}, k), {
34259
+ serializers: __spreadProps$o(__spreadValues$r({}, k), {
34268
34260
  req: (req) => ({
34269
34261
  headers: req.headers,
34270
34262
  method: req.method,
@@ -34289,7 +34281,7 @@ class ShipEngineAPI {
34289
34281
  this.getSandboxToken = getSandboxToken;
34290
34282
  const client = axios.create({
34291
34283
  baseURL,
34292
- headers: __spreadProps$n(__spreadValues$q({}, headers), {
34284
+ headers: __spreadProps$o(__spreadValues$r({}, headers), {
34293
34285
  "Content-Type": "application/json"
34294
34286
  }),
34295
34287
  paramsSerializer: (params) => lib.stringify(decamelizeKeys(params), { arrayFormat: "brackets" }),
@@ -34324,7 +34316,7 @@ class ShipEngineAPI {
34324
34316
  });
34325
34317
  client.defaults.headers.common["Authorization"] = `Bearer ${token}`;
34326
34318
  client.interceptors.request.use(
34327
- (config) => __async$Q(this, null, function* () {
34319
+ (config) => __async$R(this, null, function* () {
34328
34320
  if (config.isSandbox) {
34329
34321
  if (!this.sandboxToken) {
34330
34322
  this.sandboxToken = yield getSandboxToken == null ? void 0 : getSandboxToken();
@@ -34351,7 +34343,7 @@ class ShipEngineAPI {
34351
34343
  );
34352
34344
  return res;
34353
34345
  },
34354
- (err) => __async$Q(this, null, function* () {
34346
+ (err) => __async$R(this, null, function* () {
34355
34347
  var _a, _b, _c, _d, _e;
34356
34348
  logger$1.error(
34357
34349
  { err, req: err.config, res: err.response },
@@ -34398,7 +34390,7 @@ class ShipEngineAPI {
34398
34390
  * that token (also known as Seller ID)
34399
34391
  */
34400
34392
  getTenant(isSandbox) {
34401
- return __async$Q(this, null, function* () {
34393
+ return __async$R(this, null, function* () {
34402
34394
  var _a;
34403
34395
  if (!isSandbox) {
34404
34396
  return this.getTenantFromToken(this.token);
@@ -34677,25 +34669,25 @@ const delay = (ms) => new Promise((resolve) => {
34677
34669
 
34678
34670
  const onError = (_errors) => _default();
34679
34671
 
34680
- var __defProp$p = Object.defineProperty;
34681
- var __defProps$m = Object.defineProperties;
34682
- var __getOwnPropDescs$m = Object.getOwnPropertyDescriptors;
34683
- var __getOwnPropSymbols$z = Object.getOwnPropertySymbols;
34684
- var __hasOwnProp$z = Object.prototype.hasOwnProperty;
34685
- var __propIsEnum$z = Object.prototype.propertyIsEnumerable;
34686
- var __defNormalProp$p = (obj, key, value) => key in obj ? __defProp$p(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
34687
- var __spreadValues$p = (a, b) => {
34672
+ var __defProp$q = Object.defineProperty;
34673
+ var __defProps$n = Object.defineProperties;
34674
+ var __getOwnPropDescs$n = Object.getOwnPropertyDescriptors;
34675
+ var __getOwnPropSymbols$A = Object.getOwnPropertySymbols;
34676
+ var __hasOwnProp$A = Object.prototype.hasOwnProperty;
34677
+ var __propIsEnum$A = Object.prototype.propertyIsEnumerable;
34678
+ var __defNormalProp$q = (obj, key, value) => key in obj ? __defProp$q(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
34679
+ var __spreadValues$q = (a, b) => {
34688
34680
  for (var prop in b || (b = {}))
34689
- if (__hasOwnProp$z.call(b, prop))
34690
- __defNormalProp$p(a, prop, b[prop]);
34691
- if (__getOwnPropSymbols$z)
34692
- for (var prop of __getOwnPropSymbols$z(b)) {
34693
- if (__propIsEnum$z.call(b, prop))
34694
- __defNormalProp$p(a, prop, b[prop]);
34681
+ if (__hasOwnProp$A.call(b, prop))
34682
+ __defNormalProp$q(a, prop, b[prop]);
34683
+ if (__getOwnPropSymbols$A)
34684
+ for (var prop of __getOwnPropSymbols$A(b)) {
34685
+ if (__propIsEnum$A.call(b, prop))
34686
+ __defNormalProp$q(a, prop, b[prop]);
34695
34687
  }
34696
34688
  return a;
34697
34689
  };
34698
- var __spreadProps$m = (a, b) => __defProps$m(a, __getOwnPropDescs$m(b));
34690
+ var __spreadProps$n = (a, b) => __defProps$n(a, __getOwnPropDescs$n(b));
34699
34691
  const streams = [];
34700
34692
  if (process.env.NODE_ENV === "production") {
34701
34693
  streams.push({
@@ -34704,7 +34696,7 @@ if (process.env.NODE_ENV === "production") {
34704
34696
  }
34705
34697
  const logger = E({
34706
34698
  name: "shipengine",
34707
- serializers: __spreadProps$m(__spreadValues$p({}, k), {
34699
+ serializers: __spreadProps$n(__spreadValues$q({}, k), {
34708
34700
  req: (req) => ({
34709
34701
  headers: req.headers,
34710
34702
  method: req.method,
@@ -34729,7 +34721,7 @@ const retryUntil = (callbackFn, retries = 10, timeoutBetweenAttempts = 1e3) => P
34729
34721
  throw error;
34730
34722
  });
34731
34723
 
34732
- var __async$P = (__this, __arguments, generator) => {
34724
+ var __async$Q = (__this, __arguments, generator) => {
34733
34725
  return new Promise((resolve, reject) => {
34734
34726
  var fulfilled = (value) => {
34735
34727
  try {
@@ -34752,7 +34744,7 @@ var __async$P = (__this, __arguments, generator) => {
34752
34744
  const useCreateAccountImage = () => {
34753
34745
  const { client } = useShipEngine();
34754
34746
  return useMutation({
34755
- mutationFn: (data) => __async$P(void 0, null, function* () {
34747
+ mutationFn: (data) => __async$Q(void 0, null, function* () {
34756
34748
  const result = yield client.accountSettings.createImage(data);
34757
34749
  return result.data;
34758
34750
  }),
@@ -34761,7 +34753,7 @@ const useCreateAccountImage = () => {
34761
34753
  });
34762
34754
  };
34763
34755
 
34764
- var __async$O = (__this, __arguments, generator) => {
34756
+ var __async$P = (__this, __arguments, generator) => {
34765
34757
  return new Promise((resolve, reject) => {
34766
34758
  var fulfilled = (value) => {
34767
34759
  try {
@@ -34784,7 +34776,7 @@ var __async$O = (__this, __arguments, generator) => {
34784
34776
  const useDeleteAccountImage = () => {
34785
34777
  const { client } = useShipEngine();
34786
34778
  return useMutation({
34787
- mutationFn: (labelImageId) => __async$O(void 0, null, function* () {
34779
+ mutationFn: (labelImageId) => __async$P(void 0, null, function* () {
34788
34780
  const result = yield client.accountSettings.deleteImage(labelImageId);
34789
34781
  return result.data;
34790
34782
  }),
@@ -34813,7 +34805,7 @@ const useGetAccountSettings = () => {
34813
34805
  });
34814
34806
  };
34815
34807
 
34816
- var __async$N = (__this, __arguments, generator) => {
34808
+ var __async$O = (__this, __arguments, generator) => {
34817
34809
  return new Promise((resolve, reject) => {
34818
34810
  var fulfilled = (value) => {
34819
34811
  try {
@@ -34836,7 +34828,7 @@ var __async$N = (__this, __arguments, generator) => {
34836
34828
  const useUpdateAccountImage = () => {
34837
34829
  const { client } = useShipEngine();
34838
34830
  return useMutation({
34839
- mutationFn: (data) => __async$N(void 0, null, function* () {
34831
+ mutationFn: (data) => __async$O(void 0, null, function* () {
34840
34832
  const result = yield client.accountSettings.updateImage(data);
34841
34833
  return result.data;
34842
34834
  }),
@@ -34845,7 +34837,7 @@ const useUpdateAccountImage = () => {
34845
34837
  });
34846
34838
  };
34847
34839
 
34848
- var __async$M = (__this, __arguments, generator) => {
34840
+ var __async$N = (__this, __arguments, generator) => {
34849
34841
  return new Promise((resolve, reject) => {
34850
34842
  var fulfilled = (value) => {
34851
34843
  try {
@@ -34868,7 +34860,7 @@ var __async$M = (__this, __arguments, generator) => {
34868
34860
  const useUpdateAccountSettings = () => {
34869
34861
  const { client } = useShipEngine();
34870
34862
  return useMutation({
34871
- mutationFn: (settings) => __async$M(void 0, null, function* () {
34863
+ mutationFn: (settings) => __async$N(void 0, null, function* () {
34872
34864
  const result = yield client.accountSettings.update(settings);
34873
34865
  return result.data;
34874
34866
  }),
@@ -34877,7 +34869,7 @@ const useUpdateAccountSettings = () => {
34877
34869
  });
34878
34870
  };
34879
34871
 
34880
- var __async$L = (__this, __arguments, generator) => {
34872
+ var __async$M = (__this, __arguments, generator) => {
34881
34873
  return new Promise((resolve, reject) => {
34882
34874
  var fulfilled = (value) => {
34883
34875
  try {
@@ -34900,7 +34892,7 @@ var __async$L = (__this, __arguments, generator) => {
34900
34892
  const useParseAddress = () => {
34901
34893
  const { client } = useShipEngine();
34902
34894
  return useMutation({
34903
- mutationFn: (_0) => __async$L(void 0, [_0], function* ({ address, text }) {
34895
+ mutationFn: (_0) => __async$M(void 0, [_0], function* ({ address, text }) {
34904
34896
  const result = yield client.addresses.parse(text, address);
34905
34897
  return result.data;
34906
34898
  }),
@@ -34909,7 +34901,7 @@ const useParseAddress = () => {
34909
34901
  });
34910
34902
  };
34911
34903
 
34912
- var __async$K = (__this, __arguments, generator) => {
34904
+ var __async$L = (__this, __arguments, generator) => {
34913
34905
  return new Promise((resolve, reject) => {
34914
34906
  var fulfilled = (value) => {
34915
34907
  try {
@@ -34932,7 +34924,7 @@ var __async$K = (__this, __arguments, generator) => {
34932
34924
  const useValidateAddresses = () => {
34933
34925
  const { client } = useShipEngine();
34934
34926
  return useMutation({
34935
- mutationFn: (addresses) => __async$K(void 0, null, function* () {
34927
+ mutationFn: (addresses) => __async$L(void 0, null, function* () {
34936
34928
  const result = yield client.addresses.validate(addresses);
34937
34929
  return result.data;
34938
34930
  }),
@@ -34941,7 +34933,7 @@ const useValidateAddresses = () => {
34941
34933
  });
34942
34934
  };
34943
34935
 
34944
- var __async$J = (__this, __arguments, generator) => {
34936
+ var __async$K = (__this, __arguments, generator) => {
34945
34937
  return new Promise((resolve, reject) => {
34946
34938
  var fulfilled = (value) => {
34947
34939
  try {
@@ -34964,7 +34956,7 @@ var __async$J = (__this, __arguments, generator) => {
34964
34956
  const useAddFunds = () => {
34965
34957
  const { client } = useShipEngine();
34966
34958
  return useMutation({
34967
- mutationFn: (_0) => __async$J(void 0, [_0], function* ({ carrierId, funds }) {
34959
+ mutationFn: (_0) => __async$K(void 0, [_0], function* ({ carrierId, funds }) {
34968
34960
  const result = yield client.carriers.addFunds(carrierId, funds);
34969
34961
  return result.data;
34970
34962
  }),
@@ -34973,7 +34965,7 @@ const useAddFunds = () => {
34973
34965
  });
34974
34966
  };
34975
34967
 
34976
- var __async$I = (__this, __arguments, generator) => {
34968
+ var __async$J = (__this, __arguments, generator) => {
34977
34969
  return new Promise((resolve, reject) => {
34978
34970
  var fulfilled = (value) => {
34979
34971
  try {
@@ -34996,7 +34988,7 @@ var __async$I = (__this, __arguments, generator) => {
34996
34988
  const useConnectCarrier = () => {
34997
34989
  const { client } = useShipEngine();
34998
34990
  return useMutation({
34999
- mutationFn: (params) => __async$I(void 0, null, function* () {
34991
+ mutationFn: (params) => __async$J(void 0, null, function* () {
35000
34992
  const result = yield client.carriers.connect(params);
35001
34993
  return result.data;
35002
34994
  }),
@@ -35105,41 +35097,41 @@ const useGetServicesByCarrier = (carrierId) => {
35105
35097
  });
35106
35098
  };
35107
35099
 
35108
- var __defProp$o = Object.defineProperty;
35109
- var __defProps$l = Object.defineProperties;
35110
- var __getOwnPropDescs$l = Object.getOwnPropertyDescriptors;
35111
- var __getOwnPropSymbols$y = Object.getOwnPropertySymbols;
35112
- var __hasOwnProp$y = Object.prototype.hasOwnProperty;
35113
- var __propIsEnum$y = Object.prototype.propertyIsEnumerable;
35114
- var __defNormalProp$o = (obj, key, value) => key in obj ? __defProp$o(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35115
- var __spreadValues$o = (a, b) => {
35100
+ var __defProp$p = Object.defineProperty;
35101
+ var __defProps$m = Object.defineProperties;
35102
+ var __getOwnPropDescs$m = Object.getOwnPropertyDescriptors;
35103
+ var __getOwnPropSymbols$z = Object.getOwnPropertySymbols;
35104
+ var __hasOwnProp$z = Object.prototype.hasOwnProperty;
35105
+ var __propIsEnum$z = Object.prototype.propertyIsEnumerable;
35106
+ var __defNormalProp$p = (obj, key, value) => key in obj ? __defProp$p(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35107
+ var __spreadValues$p = (a, b) => {
35116
35108
  for (var prop in b || (b = {}))
35117
- if (__hasOwnProp$y.call(b, prop))
35118
- __defNormalProp$o(a, prop, b[prop]);
35119
- if (__getOwnPropSymbols$y)
35120
- for (var prop of __getOwnPropSymbols$y(b)) {
35121
- if (__propIsEnum$y.call(b, prop))
35122
- __defNormalProp$o(a, prop, b[prop]);
35109
+ if (__hasOwnProp$z.call(b, prop))
35110
+ __defNormalProp$p(a, prop, b[prop]);
35111
+ if (__getOwnPropSymbols$z)
35112
+ for (var prop of __getOwnPropSymbols$z(b)) {
35113
+ if (__propIsEnum$z.call(b, prop))
35114
+ __defNormalProp$p(a, prop, b[prop]);
35123
35115
  }
35124
35116
  return a;
35125
35117
  };
35126
- var __spreadProps$l = (a, b) => __defProps$l(a, __getOwnPropDescs$l(b));
35127
- var __objRest$l = (source, exclude) => {
35118
+ var __spreadProps$m = (a, b) => __defProps$m(a, __getOwnPropDescs$m(b));
35119
+ var __objRest$m = (source, exclude) => {
35128
35120
  var target = {};
35129
35121
  for (var prop in source)
35130
- if (__hasOwnProp$y.call(source, prop) && exclude.indexOf(prop) < 0)
35122
+ if (__hasOwnProp$z.call(source, prop) && exclude.indexOf(prop) < 0)
35131
35123
  target[prop] = source[prop];
35132
- if (source != null && __getOwnPropSymbols$y)
35133
- for (var prop of __getOwnPropSymbols$y(source)) {
35134
- if (exclude.indexOf(prop) < 0 && __propIsEnum$y.call(source, prop))
35124
+ if (source != null && __getOwnPropSymbols$z)
35125
+ for (var prop of __getOwnPropSymbols$z(source)) {
35126
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$z.call(source, prop))
35135
35127
  target[prop] = source[prop];
35136
35128
  }
35137
35129
  return target;
35138
35130
  };
35139
35131
  const useListCarriers = (params) => {
35140
35132
  const { client } = useShipEngine();
35141
- const _a = __spreadValues$o({}, params), { queryFnParams } = _a, rest = __objRest$l(_a, ["queryFnParams"]);
35142
- return useQuery(__spreadProps$l(__spreadValues$o({}, rest), {
35133
+ const _a = __spreadValues$p({}, params), { queryFnParams } = _a, rest = __objRest$m(_a, ["queryFnParams"]);
35134
+ return useQuery(__spreadProps$m(__spreadValues$p({}, rest), {
35143
35135
  onError,
35144
35136
  queryFn: () => client.carriers.list(queryFnParams),
35145
35137
  queryKey: ["useListCarriers", queryFnParams],
@@ -35147,22 +35139,22 @@ const useListCarriers = (params) => {
35147
35139
  }));
35148
35140
  };
35149
35141
 
35150
- var __getOwnPropSymbols$x = Object.getOwnPropertySymbols;
35151
- var __hasOwnProp$x = Object.prototype.hasOwnProperty;
35152
- var __propIsEnum$x = Object.prototype.propertyIsEnumerable;
35153
- var __objRest$k = (source, exclude) => {
35142
+ var __getOwnPropSymbols$y = Object.getOwnPropertySymbols;
35143
+ var __hasOwnProp$y = Object.prototype.hasOwnProperty;
35144
+ var __propIsEnum$y = Object.prototype.propertyIsEnumerable;
35145
+ var __objRest$l = (source, exclude) => {
35154
35146
  var target = {};
35155
35147
  for (var prop in source)
35156
- if (__hasOwnProp$x.call(source, prop) && exclude.indexOf(prop) < 0)
35148
+ if (__hasOwnProp$y.call(source, prop) && exclude.indexOf(prop) < 0)
35157
35149
  target[prop] = source[prop];
35158
- if (source != null && __getOwnPropSymbols$x)
35159
- for (var prop of __getOwnPropSymbols$x(source)) {
35160
- if (exclude.indexOf(prop) < 0 && __propIsEnum$x.call(source, prop))
35150
+ if (source != null && __getOwnPropSymbols$y)
35151
+ for (var prop of __getOwnPropSymbols$y(source)) {
35152
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$y.call(source, prop))
35161
35153
  target[prop] = source[prop];
35162
35154
  }
35163
35155
  return target;
35164
35156
  };
35165
- var __async$H = (__this, __arguments, generator) => {
35157
+ var __async$I = (__this, __arguments, generator) => {
35166
35158
  return new Promise((resolve, reject) => {
35167
35159
  var fulfilled = (value) => {
35168
35160
  try {
@@ -35186,8 +35178,8 @@ const useUpdateAutoFunding = () => {
35186
35178
  const { client } = useShipEngine();
35187
35179
  const queryClient = useQueryClient();
35188
35180
  return useMutation({
35189
- mutationFn: (_a) => __async$H(void 0, null, function* () {
35190
- var _b = _a, { carrierId } = _b, options = __objRest$k(_b, ["carrierId"]);
35181
+ mutationFn: (_a) => __async$I(void 0, null, function* () {
35182
+ var _b = _a, { carrierId } = _b, options = __objRest$l(_b, ["carrierId"]);
35191
35183
  const result = yield client.carriers.updateAutoFunding(carrierId, options);
35192
35184
  return result.data;
35193
35185
  }),
@@ -35216,7 +35208,7 @@ const useGetZonesByCarrier = (carrierId) => {
35216
35208
  });
35217
35209
  };
35218
35210
 
35219
- var __async$G = (__this, __arguments, generator) => {
35211
+ var __async$H = (__this, __arguments, generator) => {
35220
35212
  return new Promise((resolve, reject) => {
35221
35213
  var fulfilled = (value) => {
35222
35214
  try {
@@ -35239,7 +35231,7 @@ var __async$G = (__this, __arguments, generator) => {
35239
35231
  const useDeleteCarrier = () => {
35240
35232
  const { client } = useShipEngine();
35241
35233
  return useMutation({
35242
- mutationFn: (carrierId) => __async$G(void 0, null, function* () {
35234
+ mutationFn: (carrierId) => __async$H(void 0, null, function* () {
35243
35235
  const result = yield client.carriers.delete(carrierId);
35244
35236
  return result.data;
35245
35237
  }),
@@ -35248,24 +35240,24 @@ const useDeleteCarrier = () => {
35248
35240
  });
35249
35241
  };
35250
35242
 
35251
- var __getOwnPropSymbols$w = Object.getOwnPropertySymbols;
35252
- var __hasOwnProp$w = Object.prototype.hasOwnProperty;
35253
- var __propIsEnum$w = Object.prototype.propertyIsEnumerable;
35254
- var __objRest$j = (source, exclude) => {
35243
+ var __getOwnPropSymbols$x = Object.getOwnPropertySymbols;
35244
+ var __hasOwnProp$x = Object.prototype.hasOwnProperty;
35245
+ var __propIsEnum$x = Object.prototype.propertyIsEnumerable;
35246
+ var __objRest$k = (source, exclude) => {
35255
35247
  var target = {};
35256
35248
  for (var prop in source)
35257
- if (__hasOwnProp$w.call(source, prop) && exclude.indexOf(prop) < 0)
35249
+ if (__hasOwnProp$x.call(source, prop) && exclude.indexOf(prop) < 0)
35258
35250
  target[prop] = source[prop];
35259
- if (source != null && __getOwnPropSymbols$w)
35260
- for (var prop of __getOwnPropSymbols$w(source)) {
35261
- if (exclude.indexOf(prop) < 0 && __propIsEnum$w.call(source, prop))
35251
+ if (source != null && __getOwnPropSymbols$x)
35252
+ for (var prop of __getOwnPropSymbols$x(source)) {
35253
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$x.call(source, prop))
35262
35254
  target[prop] = source[prop];
35263
35255
  }
35264
35256
  return target;
35265
35257
  };
35266
35258
  const useGetCarrierConnectionForm = (_params) => {
35267
35259
  const { client } = useShipEngine();
35268
- const _a = _params || {}, { carrierName, enabled = true } = _a, params = __objRest$j(_a, ["carrierName", "enabled"]);
35260
+ const _a = _params || {}, { carrierName, enabled = true } = _a, params = __objRest$k(_a, ["carrierName", "enabled"]);
35269
35261
  return useQuery({
35270
35262
  enabled,
35271
35263
  onError,
@@ -35275,24 +35267,24 @@ const useGetCarrierConnectionForm = (_params) => {
35275
35267
  });
35276
35268
  };
35277
35269
 
35278
- var __getOwnPropSymbols$v = Object.getOwnPropertySymbols;
35279
- var __hasOwnProp$v = Object.prototype.hasOwnProperty;
35280
- var __propIsEnum$v = Object.prototype.propertyIsEnumerable;
35281
- var __objRest$i = (source, exclude) => {
35270
+ var __getOwnPropSymbols$w = Object.getOwnPropertySymbols;
35271
+ var __hasOwnProp$w = Object.prototype.hasOwnProperty;
35272
+ var __propIsEnum$w = Object.prototype.propertyIsEnumerable;
35273
+ var __objRest$j = (source, exclude) => {
35282
35274
  var target = {};
35283
35275
  for (var prop in source)
35284
- if (__hasOwnProp$v.call(source, prop) && exclude.indexOf(prop) < 0)
35276
+ if (__hasOwnProp$w.call(source, prop) && exclude.indexOf(prop) < 0)
35285
35277
  target[prop] = source[prop];
35286
- if (source != null && __getOwnPropSymbols$v)
35287
- for (var prop of __getOwnPropSymbols$v(source)) {
35288
- if (exclude.indexOf(prop) < 0 && __propIsEnum$v.call(source, prop))
35278
+ if (source != null && __getOwnPropSymbols$w)
35279
+ for (var prop of __getOwnPropSymbols$w(source)) {
35280
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$w.call(source, prop))
35289
35281
  target[prop] = source[prop];
35290
35282
  }
35291
35283
  return target;
35292
35284
  };
35293
35285
  const useListCarrierConnections = (_params) => {
35294
35286
  const { client } = useShipEngine();
35295
- const _a = _params || {}, { enabled = true } = _a, params = __objRest$i(_a, ["enabled"]);
35287
+ const _a = _params || {}, { enabled = true } = _a, params = __objRest$j(_a, ["enabled"]);
35296
35288
  return useQuery({
35297
35289
  enabled,
35298
35290
  onError,
@@ -35302,7 +35294,7 @@ const useListCarrierConnections = (_params) => {
35302
35294
  });
35303
35295
  };
35304
35296
 
35305
- var __async$F = (__this, __arguments, generator) => {
35297
+ var __async$G = (__this, __arguments, generator) => {
35306
35298
  return new Promise((resolve, reject) => {
35307
35299
  var fulfilled = (value) => {
35308
35300
  try {
@@ -35325,7 +35317,7 @@ var __async$F = (__this, __arguments, generator) => {
35325
35317
  const useConnectCarrierAccount = () => {
35326
35318
  const { client } = useShipEngine();
35327
35319
  return useMutation({
35328
- mutationFn: (_0) => __async$F(void 0, [_0], function* ({ carrierName, formData }) {
35320
+ mutationFn: (_0) => __async$G(void 0, [_0], function* ({ carrierName, formData }) {
35329
35321
  const result = yield client.connections.connectCarrier(carrierName, formData);
35330
35322
  return result.data;
35331
35323
  }),
@@ -35345,33 +35337,33 @@ const useCarrierConnectionsServicesList = (carrierCode) => {
35345
35337
  });
35346
35338
  };
35347
35339
 
35348
- var __defProp$n = Object.defineProperty;
35349
- var __defProps$k = Object.defineProperties;
35350
- var __getOwnPropDescs$k = Object.getOwnPropertyDescriptors;
35351
- var __getOwnPropSymbols$u = Object.getOwnPropertySymbols;
35352
- var __hasOwnProp$u = Object.prototype.hasOwnProperty;
35353
- var __propIsEnum$u = Object.prototype.propertyIsEnumerable;
35354
- var __defNormalProp$n = (obj, key, value) => key in obj ? __defProp$n(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35355
- var __spreadValues$n = (a, b) => {
35340
+ var __defProp$o = Object.defineProperty;
35341
+ var __defProps$l = Object.defineProperties;
35342
+ var __getOwnPropDescs$l = Object.getOwnPropertyDescriptors;
35343
+ var __getOwnPropSymbols$v = Object.getOwnPropertySymbols;
35344
+ var __hasOwnProp$v = Object.prototype.hasOwnProperty;
35345
+ var __propIsEnum$v = Object.prototype.propertyIsEnumerable;
35346
+ var __defNormalProp$o = (obj, key, value) => key in obj ? __defProp$o(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35347
+ var __spreadValues$o = (a, b) => {
35356
35348
  for (var prop in b || (b = {}))
35357
- if (__hasOwnProp$u.call(b, prop))
35358
- __defNormalProp$n(a, prop, b[prop]);
35359
- if (__getOwnPropSymbols$u)
35360
- for (var prop of __getOwnPropSymbols$u(b)) {
35361
- if (__propIsEnum$u.call(b, prop))
35362
- __defNormalProp$n(a, prop, b[prop]);
35349
+ if (__hasOwnProp$v.call(b, prop))
35350
+ __defNormalProp$o(a, prop, b[prop]);
35351
+ if (__getOwnPropSymbols$v)
35352
+ for (var prop of __getOwnPropSymbols$v(b)) {
35353
+ if (__propIsEnum$v.call(b, prop))
35354
+ __defNormalProp$o(a, prop, b[prop]);
35363
35355
  }
35364
35356
  return a;
35365
35357
  };
35366
- var __spreadProps$k = (a, b) => __defProps$k(a, __getOwnPropDescs$k(b));
35367
- var __objRest$h = (source, exclude) => {
35358
+ var __spreadProps$l = (a, b) => __defProps$l(a, __getOwnPropDescs$l(b));
35359
+ var __objRest$i = (source, exclude) => {
35368
35360
  var target = {};
35369
35361
  for (var prop in source)
35370
- if (__hasOwnProp$u.call(source, prop) && exclude.indexOf(prop) < 0)
35362
+ if (__hasOwnProp$v.call(source, prop) && exclude.indexOf(prop) < 0)
35371
35363
  target[prop] = source[prop];
35372
- if (source != null && __getOwnPropSymbols$u)
35373
- for (var prop of __getOwnPropSymbols$u(source)) {
35374
- if (exclude.indexOf(prop) < 0 && __propIsEnum$u.call(source, prop))
35364
+ if (source != null && __getOwnPropSymbols$v)
35365
+ for (var prop of __getOwnPropSymbols$v(source)) {
35366
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$v.call(source, prop))
35375
35367
  target[prop] = source[prop];
35376
35368
  }
35377
35369
  return target;
@@ -35379,12 +35371,12 @@ var __objRest$h = (source, exclude) => {
35379
35371
  const useGetConnectionsCarrierSettings = (_a) => {
35380
35372
  var _b = _a, {
35381
35373
  queryFnParams
35382
- } = _b, params = __objRest$h(_b, [
35374
+ } = _b, params = __objRest$i(_b, [
35383
35375
  "queryFnParams"
35384
35376
  ]);
35385
35377
  const { client } = useShipEngine();
35386
35378
  const { carrierName, carrierId } = queryFnParams;
35387
- return useQuery(__spreadProps$k(__spreadValues$n({}, params), {
35379
+ return useQuery(__spreadProps$l(__spreadValues$o({}, params), {
35388
35380
  onError,
35389
35381
  queryFn: () => client.connections.getCarrierSettings(carrierName, carrierId),
35390
35382
  queryKey: ["useGetConnectionsCarrierSettings", carrierName, carrierId],
@@ -35392,26 +35384,26 @@ const useGetConnectionsCarrierSettings = (_a) => {
35392
35384
  }));
35393
35385
  };
35394
35386
 
35395
- var __defProp$m = Object.defineProperty;
35396
- var __defProps$j = Object.defineProperties;
35397
- var __getOwnPropDescs$j = Object.getOwnPropertyDescriptors;
35398
- var __getOwnPropSymbols$t = Object.getOwnPropertySymbols;
35399
- var __hasOwnProp$t = Object.prototype.hasOwnProperty;
35400
- var __propIsEnum$t = Object.prototype.propertyIsEnumerable;
35401
- var __defNormalProp$m = (obj, key, value) => key in obj ? __defProp$m(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35402
- var __spreadValues$m = (a, b) => {
35387
+ var __defProp$n = Object.defineProperty;
35388
+ var __defProps$k = Object.defineProperties;
35389
+ var __getOwnPropDescs$k = Object.getOwnPropertyDescriptors;
35390
+ var __getOwnPropSymbols$u = Object.getOwnPropertySymbols;
35391
+ var __hasOwnProp$u = Object.prototype.hasOwnProperty;
35392
+ var __propIsEnum$u = Object.prototype.propertyIsEnumerable;
35393
+ var __defNormalProp$n = (obj, key, value) => key in obj ? __defProp$n(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35394
+ var __spreadValues$n = (a, b) => {
35403
35395
  for (var prop in b || (b = {}))
35404
- if (__hasOwnProp$t.call(b, prop))
35405
- __defNormalProp$m(a, prop, b[prop]);
35406
- if (__getOwnPropSymbols$t)
35407
- for (var prop of __getOwnPropSymbols$t(b)) {
35408
- if (__propIsEnum$t.call(b, prop))
35409
- __defNormalProp$m(a, prop, b[prop]);
35396
+ if (__hasOwnProp$u.call(b, prop))
35397
+ __defNormalProp$n(a, prop, b[prop]);
35398
+ if (__getOwnPropSymbols$u)
35399
+ for (var prop of __getOwnPropSymbols$u(b)) {
35400
+ if (__propIsEnum$u.call(b, prop))
35401
+ __defNormalProp$n(a, prop, b[prop]);
35410
35402
  }
35411
35403
  return a;
35412
35404
  };
35413
- var __spreadProps$j = (a, b) => __defProps$j(a, __getOwnPropDescs$j(b));
35414
- var __async$E = (__this, __arguments, generator) => {
35405
+ var __spreadProps$k = (a, b) => __defProps$k(a, __getOwnPropDescs$k(b));
35406
+ var __async$F = (__this, __arguments, generator) => {
35415
35407
  return new Promise((resolve, reject) => {
35416
35408
  var fulfilled = (value) => {
35417
35409
  try {
@@ -35433,8 +35425,8 @@ var __async$E = (__this, __arguments, generator) => {
35433
35425
  };
35434
35426
  const useUpdateConnectionsCarrierSettings = (params) => {
35435
35427
  const { client } = useShipEngine();
35436
- return useMutation(__spreadProps$j(__spreadValues$m({}, params), {
35437
- mutationFn: (_0) => __async$E(void 0, [_0], function* ({
35428
+ return useMutation(__spreadProps$k(__spreadValues$n({}, params), {
35429
+ mutationFn: (_0) => __async$F(void 0, [_0], function* ({
35438
35430
  carrierName,
35439
35431
  carrierId,
35440
35432
  formData
@@ -35461,7 +35453,7 @@ const useListCustomPackageTypes = () => {
35461
35453
  });
35462
35454
  };
35463
35455
 
35464
- var __async$D = (__this, __arguments, generator) => {
35456
+ var __async$E = (__this, __arguments, generator) => {
35465
35457
  return new Promise((resolve, reject) => {
35466
35458
  var fulfilled = (value) => {
35467
35459
  try {
@@ -35484,7 +35476,7 @@ var __async$D = (__this, __arguments, generator) => {
35484
35476
  const useCreateFundingSource = () => {
35485
35477
  const { client } = useShipEngine();
35486
35478
  return useMutation({
35487
- mutationFn: (fundingSource) => __async$D(void 0, null, function* () {
35479
+ mutationFn: (fundingSource) => __async$E(void 0, null, function* () {
35488
35480
  const result = yield client.fundingSources.create(fundingSource);
35489
35481
  return result.data;
35490
35482
  }),
@@ -35493,7 +35485,7 @@ const useCreateFundingSource = () => {
35493
35485
  });
35494
35486
  };
35495
35487
 
35496
- var __async$C = (__this, __arguments, generator) => {
35488
+ var __async$D = (__this, __arguments, generator) => {
35497
35489
  return new Promise((resolve, reject) => {
35498
35490
  var fulfilled = (value) => {
35499
35491
  try {
@@ -35516,7 +35508,7 @@ var __async$C = (__this, __arguments, generator) => {
35516
35508
  const useFundingSourcesAddFunds = () => {
35517
35509
  const { client } = useShipEngine();
35518
35510
  return useMutation({
35519
- mutationFn: (_0) => __async$C(void 0, [_0], function* ({ funds, fundingSourceId }) {
35511
+ mutationFn: (_0) => __async$D(void 0, [_0], function* ({ funds, fundingSourceId }) {
35520
35512
  const result = yield client.fundingSources.addFunds(funds, fundingSourceId);
35521
35513
  return result.data;
35522
35514
  }),
@@ -35545,7 +35537,7 @@ const useListFundingSources = () => {
35545
35537
  });
35546
35538
  };
35547
35539
 
35548
- var __async$B = (__this, __arguments, generator) => {
35540
+ var __async$C = (__this, __arguments, generator) => {
35549
35541
  return new Promise((resolve, reject) => {
35550
35542
  var fulfilled = (value) => {
35551
35543
  try {
@@ -35568,7 +35560,7 @@ var __async$B = (__this, __arguments, generator) => {
35568
35560
  const useRegisterCarrier = () => {
35569
35561
  const { client } = useShipEngine();
35570
35562
  return useMutation({
35571
- mutationFn: (carrier) => __async$B(void 0, null, function* () {
35563
+ mutationFn: (carrier) => __async$C(void 0, null, function* () {
35572
35564
  const result = yield client.fundingSources.registerCarrier(carrier);
35573
35565
  return result.data;
35574
35566
  }),
@@ -35577,7 +35569,7 @@ const useRegisterCarrier = () => {
35577
35569
  });
35578
35570
  };
35579
35571
 
35580
- var __async$A = (__this, __arguments, generator) => {
35572
+ var __async$B = (__this, __arguments, generator) => {
35581
35573
  return new Promise((resolve, reject) => {
35582
35574
  var fulfilled = (value) => {
35583
35575
  try {
@@ -35600,7 +35592,7 @@ var __async$A = (__this, __arguments, generator) => {
35600
35592
  const useUpdateFundingSource = () => {
35601
35593
  const { client } = useShipEngine();
35602
35594
  return useMutation({
35603
- mutationFn: (_0) => __async$A(void 0, [_0], function* ({
35595
+ mutationFn: (_0) => __async$B(void 0, [_0], function* ({
35604
35596
  billingInfo,
35605
35597
  creditCardInfo,
35606
35598
  fundingSourceId
@@ -35639,29 +35631,29 @@ const useGetFundingSourceTransactions = (fundingSourceId, params) => {
35639
35631
  });
35640
35632
  };
35641
35633
 
35642
- var __defProp$l = Object.defineProperty;
35643
- var __defProps$i = Object.defineProperties;
35644
- var __getOwnPropDescs$i = Object.getOwnPropertyDescriptors;
35645
- var __getOwnPropSymbols$s = Object.getOwnPropertySymbols;
35646
- var __hasOwnProp$s = Object.prototype.hasOwnProperty;
35647
- var __propIsEnum$s = Object.prototype.propertyIsEnumerable;
35648
- var __defNormalProp$l = (obj, key, value) => key in obj ? __defProp$l(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35649
- var __spreadValues$l = (a, b) => {
35634
+ var __defProp$m = Object.defineProperty;
35635
+ var __defProps$j = Object.defineProperties;
35636
+ var __getOwnPropDescs$j = Object.getOwnPropertyDescriptors;
35637
+ var __getOwnPropSymbols$t = Object.getOwnPropertySymbols;
35638
+ var __hasOwnProp$t = Object.prototype.hasOwnProperty;
35639
+ var __propIsEnum$t = Object.prototype.propertyIsEnumerable;
35640
+ var __defNormalProp$m = (obj, key, value) => key in obj ? __defProp$m(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35641
+ var __spreadValues$m = (a, b) => {
35650
35642
  for (var prop in b || (b = {}))
35651
- if (__hasOwnProp$s.call(b, prop))
35652
- __defNormalProp$l(a, prop, b[prop]);
35653
- if (__getOwnPropSymbols$s)
35654
- for (var prop of __getOwnPropSymbols$s(b)) {
35655
- if (__propIsEnum$s.call(b, prop))
35656
- __defNormalProp$l(a, prop, b[prop]);
35643
+ if (__hasOwnProp$t.call(b, prop))
35644
+ __defNormalProp$m(a, prop, b[prop]);
35645
+ if (__getOwnPropSymbols$t)
35646
+ for (var prop of __getOwnPropSymbols$t(b)) {
35647
+ if (__propIsEnum$t.call(b, prop))
35648
+ __defNormalProp$m(a, prop, b[prop]);
35657
35649
  }
35658
35650
  return a;
35659
35651
  };
35660
- var __spreadProps$i = (a, b) => __defProps$i(a, __getOwnPropDescs$i(b));
35652
+ var __spreadProps$j = (a, b) => __defProps$j(a, __getOwnPropDescs$j(b));
35661
35653
  const useGetInsuranceFundingSourceAcceptedTerms = (params) => {
35662
35654
  const { client } = useShipEngine();
35663
- const queryParams = __spreadValues$l({}, params);
35664
- return useQuery(__spreadProps$i(__spreadValues$l({}, queryParams), {
35655
+ const queryParams = __spreadValues$m({}, params);
35656
+ return useQuery(__spreadProps$j(__spreadValues$m({}, queryParams), {
35665
35657
  onError,
35666
35658
  queryFn: () => client.fundingSources.insuranceAcceptedTerms(),
35667
35659
  queryKey: ["useGetInsuranceFundingSourceAcceptedTerms"],
@@ -35684,22 +35676,22 @@ const useGetInsuranceAccount = (insuranceProvider) => {
35684
35676
  });
35685
35677
  };
35686
35678
 
35687
- var __getOwnPropSymbols$r = Object.getOwnPropertySymbols;
35688
- var __hasOwnProp$r = Object.prototype.hasOwnProperty;
35689
- var __propIsEnum$r = Object.prototype.propertyIsEnumerable;
35690
- var __objRest$g = (source, exclude) => {
35679
+ var __getOwnPropSymbols$s = Object.getOwnPropertySymbols;
35680
+ var __hasOwnProp$s = Object.prototype.hasOwnProperty;
35681
+ var __propIsEnum$s = Object.prototype.propertyIsEnumerable;
35682
+ var __objRest$h = (source, exclude) => {
35691
35683
  var target = {};
35692
35684
  for (var prop in source)
35693
- if (__hasOwnProp$r.call(source, prop) && exclude.indexOf(prop) < 0)
35685
+ if (__hasOwnProp$s.call(source, prop) && exclude.indexOf(prop) < 0)
35694
35686
  target[prop] = source[prop];
35695
- if (source != null && __getOwnPropSymbols$r)
35696
- for (var prop of __getOwnPropSymbols$r(source)) {
35697
- if (exclude.indexOf(prop) < 0 && __propIsEnum$r.call(source, prop))
35687
+ if (source != null && __getOwnPropSymbols$s)
35688
+ for (var prop of __getOwnPropSymbols$s(source)) {
35689
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$s.call(source, prop))
35698
35690
  target[prop] = source[prop];
35699
35691
  }
35700
35692
  return target;
35701
35693
  };
35702
- var __async$z = (__this, __arguments, generator) => {
35694
+ var __async$A = (__this, __arguments, generator) => {
35703
35695
  return new Promise((resolve, reject) => {
35704
35696
  var fulfilled = (value) => {
35705
35697
  try {
@@ -35722,8 +35714,8 @@ var __async$z = (__this, __arguments, generator) => {
35722
35714
  const useAddInsuranceFunds = () => {
35723
35715
  const { client } = useShipEngine();
35724
35716
  return useMutation({
35725
- mutationFn: (_a) => __async$z(void 0, null, function* () {
35726
- var _b = _a, { insuranceProvider } = _b, rest = __objRest$g(_b, ["insuranceProvider"]);
35717
+ mutationFn: (_a) => __async$A(void 0, null, function* () {
35718
+ var _b = _a, { insuranceProvider } = _b, rest = __objRest$h(_b, ["insuranceProvider"]);
35727
35719
  const result = yield client.insurance.addFunds(insuranceProvider, rest);
35728
35720
  return result.data;
35729
35721
  }),
@@ -35732,6 +35724,57 @@ const useAddInsuranceFunds = () => {
35732
35724
  });
35733
35725
  };
35734
35726
 
35727
+ var __defProp$l = Object.defineProperty;
35728
+ var __defProps$i = Object.defineProperties;
35729
+ var __getOwnPropDescs$i = Object.getOwnPropertyDescriptors;
35730
+ var __getOwnPropSymbols$r = Object.getOwnPropertySymbols;
35731
+ var __hasOwnProp$r = Object.prototype.hasOwnProperty;
35732
+ var __propIsEnum$r = Object.prototype.propertyIsEnumerable;
35733
+ var __defNormalProp$l = (obj, key, value) => key in obj ? __defProp$l(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35734
+ var __spreadValues$l = (a, b) => {
35735
+ for (var prop in b || (b = {}))
35736
+ if (__hasOwnProp$r.call(b, prop))
35737
+ __defNormalProp$l(a, prop, b[prop]);
35738
+ if (__getOwnPropSymbols$r)
35739
+ for (var prop of __getOwnPropSymbols$r(b)) {
35740
+ if (__propIsEnum$r.call(b, prop))
35741
+ __defNormalProp$l(a, prop, b[prop]);
35742
+ }
35743
+ return a;
35744
+ };
35745
+ var __spreadProps$i = (a, b) => __defProps$i(a, __getOwnPropDescs$i(b));
35746
+ var __async$z = (__this, __arguments, generator) => {
35747
+ return new Promise((resolve, reject) => {
35748
+ var fulfilled = (value) => {
35749
+ try {
35750
+ step(generator.next(value));
35751
+ } catch (e) {
35752
+ reject(e);
35753
+ }
35754
+ };
35755
+ var rejected = (value) => {
35756
+ try {
35757
+ step(generator.throw(value));
35758
+ } catch (e) {
35759
+ reject(e);
35760
+ }
35761
+ };
35762
+ var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
35763
+ step((generator = generator.apply(__this, __arguments)).next());
35764
+ });
35765
+ };
35766
+ const useCreateInvoiceAddress = (params) => {
35767
+ const { client } = useShipEngine();
35768
+ return useMutation(__spreadProps$i(__spreadValues$l({}, params), {
35769
+ mutationFn: (invoiceAddress) => __async$z(void 0, null, function* () {
35770
+ const result = yield client.invoiceAddress.create(invoiceAddress);
35771
+ return result.data;
35772
+ }),
35773
+ mutationKey: ["useCreateInvoiceAddress"],
35774
+ onError
35775
+ }));
35776
+ };
35777
+
35735
35778
  var __defProp$k = Object.defineProperty;
35736
35779
  var __defProps$h = Object.defineProperties;
35737
35780
  var __getOwnPropDescs$h = Object.getOwnPropertyDescriptors;
@@ -35771,14 +35814,14 @@ var __async$y = (__this, __arguments, generator) => {
35771
35814
  step((generator = generator.apply(__this, __arguments)).next());
35772
35815
  });
35773
35816
  };
35774
- const useCreateInvoiceAddress = (params) => {
35817
+ const useUpdateInvoiceAddress = (params) => {
35775
35818
  const { client } = useShipEngine();
35776
35819
  return useMutation(__spreadProps$h(__spreadValues$k({}, params), {
35777
35820
  mutationFn: (invoiceAddress) => __async$y(void 0, null, function* () {
35778
- const result = yield client.invoiceAddress.create(invoiceAddress);
35821
+ const result = yield client.invoiceAddress.update(invoiceAddress);
35779
35822
  return result.data;
35780
35823
  }),
35781
- mutationKey: ["useCreateInvoiceAddress"],
35824
+ mutationKey: ["useUpdateInvoiceAddress"],
35782
35825
  onError
35783
35826
  }));
35784
35827
  };
@@ -35802,6 +35845,31 @@ var __spreadValues$j = (a, b) => {
35802
35845
  return a;
35803
35846
  };
35804
35847
  var __spreadProps$g = (a, b) => __defProps$g(a, __getOwnPropDescs$g(b));
35848
+ const useGetInvoiceAddress = (params) => {
35849
+ const { client } = useShipEngine();
35850
+ return useQuery(__spreadProps$g(__spreadValues$j({}, params), {
35851
+ onError,
35852
+ queryFn: () => client.invoiceAddress.get(),
35853
+ queryKey: ["useGetInvoiceAddress"],
35854
+ select: (result) => result.data
35855
+ }));
35856
+ };
35857
+
35858
+ var __getOwnPropSymbols$o = Object.getOwnPropertySymbols;
35859
+ var __hasOwnProp$o = Object.prototype.hasOwnProperty;
35860
+ var __propIsEnum$o = Object.prototype.propertyIsEnumerable;
35861
+ var __objRest$g = (source, exclude) => {
35862
+ var target = {};
35863
+ for (var prop in source)
35864
+ if (__hasOwnProp$o.call(source, prop) && exclude.indexOf(prop) < 0)
35865
+ target[prop] = source[prop];
35866
+ if (source != null && __getOwnPropSymbols$o)
35867
+ for (var prop of __getOwnPropSymbols$o(source)) {
35868
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$o.call(source, prop))
35869
+ target[prop] = source[prop];
35870
+ }
35871
+ return target;
35872
+ };
35805
35873
  var __async$x = (__this, __arguments, generator) => {
35806
35874
  return new Promise((resolve, reject) => {
35807
35875
  var fulfilled = (value) => {
@@ -35822,50 +35890,53 @@ var __async$x = (__this, __arguments, generator) => {
35822
35890
  step((generator = generator.apply(__this, __arguments)).next());
35823
35891
  });
35824
35892
  };
35825
- const useUpdateInvoiceAddress = (params) => {
35893
+ const useCreateLabel = () => {
35826
35894
  const { client } = useShipEngine();
35827
- return useMutation(__spreadProps$g(__spreadValues$j({}, params), {
35828
- mutationFn: (invoiceAddress) => __async$x(void 0, null, function* () {
35829
- const result = yield client.invoiceAddress.update(invoiceAddress);
35895
+ return useMutation({
35896
+ mutationFn: (_a) => __async$x(void 0, null, function* () {
35897
+ var _b = _a, { rateId } = _b, options = __objRest$g(_b, ["rateId"]);
35898
+ const result = yield client.labels.createByRateId(rateId, options);
35830
35899
  return result.data;
35831
35900
  }),
35832
- mutationKey: ["useUpdateInvoiceAddress"],
35901
+ mutationKey: ["useCreateLabel"],
35833
35902
  onError
35834
- }));
35903
+ });
35904
+ };
35905
+
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
+ });
35835
35919
  };
35836
35920
 
35837
35921
  var __defProp$i = Object.defineProperty;
35838
35922
  var __defProps$f = Object.defineProperties;
35839
35923
  var __getOwnPropDescs$f = Object.getOwnPropertyDescriptors;
35840
- var __getOwnPropSymbols$o = Object.getOwnPropertySymbols;
35841
- var __hasOwnProp$o = Object.prototype.hasOwnProperty;
35842
- var __propIsEnum$o = Object.prototype.propertyIsEnumerable;
35924
+ var __getOwnPropSymbols$n = Object.getOwnPropertySymbols;
35925
+ var __hasOwnProp$n = Object.prototype.hasOwnProperty;
35926
+ var __propIsEnum$n = Object.prototype.propertyIsEnumerable;
35843
35927
  var __defNormalProp$i = (obj, key, value) => key in obj ? __defProp$i(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35844
35928
  var __spreadValues$i = (a, b) => {
35845
35929
  for (var prop in b || (b = {}))
35846
- if (__hasOwnProp$o.call(b, prop))
35930
+ if (__hasOwnProp$n.call(b, prop))
35847
35931
  __defNormalProp$i(a, prop, b[prop]);
35848
- if (__getOwnPropSymbols$o)
35849
- for (var prop of __getOwnPropSymbols$o(b)) {
35850
- if (__propIsEnum$o.call(b, prop))
35932
+ if (__getOwnPropSymbols$n)
35933
+ for (var prop of __getOwnPropSymbols$n(b)) {
35934
+ if (__propIsEnum$n.call(b, prop))
35851
35935
  __defNormalProp$i(a, prop, b[prop]);
35852
35936
  }
35853
35937
  return a;
35854
35938
  };
35855
35939
  var __spreadProps$f = (a, b) => __defProps$f(a, __getOwnPropDescs$f(b));
35856
- const useGetInvoiceAddress = (params) => {
35857
- const { client } = useShipEngine();
35858
- return useQuery(__spreadProps$f(__spreadValues$i({}, params), {
35859
- onError,
35860
- queryFn: () => client.invoiceAddress.get(),
35861
- queryKey: ["useGetInvoiceAddress"],
35862
- select: (result) => result.data
35863
- }));
35864
- };
35865
-
35866
- var __getOwnPropSymbols$n = Object.getOwnPropertySymbols;
35867
- var __hasOwnProp$n = Object.prototype.hasOwnProperty;
35868
- var __propIsEnum$n = Object.prototype.propertyIsEnumerable;
35869
35940
  var __objRest$f = (source, exclude) => {
35870
35941
  var target = {};
35871
35942
  for (var prop in source)
@@ -35878,6 +35949,17 @@ var __objRest$f = (source, exclude) => {
35878
35949
  }
35879
35950
  return target;
35880
35951
  };
35952
+ const useListLabels = (params) => {
35953
+ const { client } = useShipEngine();
35954
+ const _a = __spreadValues$i({}, params), { queryFnParams } = _a, rest = __objRest$f(_a, ["queryFnParams"]);
35955
+ return useQuery(__spreadProps$f(__spreadValues$i({}, rest), {
35956
+ onError,
35957
+ queryFn: () => client.labels.list(queryFnParams),
35958
+ queryKey: ["useListLabels", params],
35959
+ select: (result) => result.data
35960
+ }));
35961
+ };
35962
+
35881
35963
  var __async$w = (__this, __arguments, generator) => {
35882
35964
  return new Promise((resolve, reject) => {
35883
35965
  var fulfilled = (value) => {
@@ -35898,34 +35980,18 @@ var __async$w = (__this, __arguments, generator) => {
35898
35980
  step((generator = generator.apply(__this, __arguments)).next());
35899
35981
  });
35900
35982
  };
35901
- const useCreateLabel = () => {
35983
+ const useVoidLabel = () => {
35902
35984
  const { client } = useShipEngine();
35903
35985
  return useMutation({
35904
- mutationFn: (_a) => __async$w(void 0, null, function* () {
35905
- var _b = _a, { rateId } = _b, options = __objRest$f(_b, ["rateId"]);
35906
- const result = yield client.labels.createByRateId(rateId, options);
35986
+ mutationFn: (labelId) => __async$w(void 0, null, function* () {
35987
+ const result = yield client.labels.void(labelId);
35907
35988
  return result.data;
35908
35989
  }),
35909
- mutationKey: ["useCreateLabel"],
35990
+ mutationKey: ["useVoidLabel"],
35910
35991
  onError
35911
35992
  });
35912
35993
  };
35913
35994
 
35914
- const useGetLabel = (labelId) => {
35915
- const { client } = useShipEngine();
35916
- return useQuery({
35917
- enabled: labelId !== void 0,
35918
- onError,
35919
- queryFn: () => {
35920
- if (labelId)
35921
- return client.labels.get(labelId);
35922
- return Promise.reject(new Error("labelId is require"));
35923
- },
35924
- queryKey: ["useGetLabel", labelId],
35925
- select: (result) => result.data
35926
- });
35927
- };
35928
-
35929
35995
  var __defProp$h = Object.defineProperty;
35930
35996
  var __defProps$e = Object.defineProperties;
35931
35997
  var __getOwnPropDescs$e = Object.getOwnPropertyDescriptors;
@@ -35957,17 +36023,6 @@ var __objRest$e = (source, exclude) => {
35957
36023
  }
35958
36024
  return target;
35959
36025
  };
35960
- const useListLabels = (params) => {
35961
- const { client } = useShipEngine();
35962
- const _a = __spreadValues$h({}, params), { queryFnParams } = _a, rest = __objRest$e(_a, ["queryFnParams"]);
35963
- return useQuery(__spreadProps$e(__spreadValues$h({}, rest), {
35964
- onError,
35965
- queryFn: () => client.labels.list(queryFnParams),
35966
- queryKey: ["useListLabels", params],
35967
- select: (result) => result.data
35968
- }));
35969
- };
35970
-
35971
36026
  var __async$v = (__this, __arguments, generator) => {
35972
36027
  return new Promise((resolve, reject) => {
35973
36028
  var fulfilled = (value) => {
@@ -35988,16 +36043,30 @@ var __async$v = (__this, __arguments, generator) => {
35988
36043
  step((generator = generator.apply(__this, __arguments)).next());
35989
36044
  });
35990
36045
  };
35991
- const useVoidLabel = () => {
36046
+ const useListLabelsInfinite = (params) => {
35992
36047
  const { client } = useShipEngine();
35993
- return useMutation({
35994
- mutationFn: (labelId) => __async$v(void 0, null, function* () {
35995
- const result = yield client.labels.void(labelId);
35996
- return result.data;
36048
+ const _a = __spreadValues$h({}, params), { queryFnParams } = _a, rest = __objRest$e(_a, ["queryFnParams"]);
36049
+ return useInfiniteQuery(__spreadProps$e(__spreadValues$h({}, rest), {
36050
+ getNextPageParam: (lastPage) => {
36051
+ if (lastPage.page < lastPage.pages) {
36052
+ return lastPage.page + 1;
36053
+ }
36054
+ return void 0;
36055
+ },
36056
+ onError,
36057
+ queryFn: (_0) => __async$v(void 0, [_0], function* ({ pageParam = 1 }) {
36058
+ const response = yield client.labels.list(__spreadProps$e(__spreadValues$h({}, queryFnParams), { page: pageParam }));
36059
+ return response.data;
35997
36060
  }),
35998
- mutationKey: ["useVoidLabel"],
35999
- onError
36000
- });
36061
+ queryKey: ["useListLabelsInfinite", params],
36062
+ select: (data) => {
36063
+ return {
36064
+ labels: data.pages.flatMap((page) => page.labels),
36065
+ pageParams: data.pageParams,
36066
+ pages: data.pages
36067
+ };
36068
+ }
36069
+ }));
36001
36070
  };
36002
36071
 
36003
36072
  var __defProp$g = Object.defineProperty;
@@ -38958,4 +39027,4 @@ const alchemy = {
38958
39027
  createElement
38959
39028
  };
38960
39029
 
38961
- 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 };
39030
+ 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 };