@shipengine/alchemy 6.0.67 → 6.0.69

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 +245 -195
  2. package/index.mjs +245 -196
  3. package/package.json +1 -1
package/index.js CHANGED
@@ -4905,41 +4905,33 @@ var _getHolder = getHolder$2;
4905
4905
 
4906
4906
  /** Used as references for various `Number` constants. */
4907
4907
 
4908
- var _isIndex;
4909
- var hasRequired_isIndex;
4908
+ var MAX_SAFE_INTEGER$1 = 9007199254740991;
4910
4909
 
4911
- function require_isIndex () {
4912
- if (hasRequired_isIndex) return _isIndex;
4913
- hasRequired_isIndex = 1;
4914
- var MAX_SAFE_INTEGER = 9007199254740991;
4910
+ /** Used to detect unsigned integer values. */
4911
+ var reIsUint = /^(?:0|[1-9]\d*)$/;
4915
4912
 
4916
- /** Used to detect unsigned integer values. */
4917
- var reIsUint = /^(?:0|[1-9]\d*)$/;
4918
-
4919
- /**
4920
- * Checks if `value` is a valid array-like index.
4921
- *
4922
- * @private
4923
- * @param {*} value The value to check.
4924
- * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.
4925
- * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
4926
- */
4927
- function isIndex(value, length) {
4928
- var type = typeof value;
4929
- length = length == null ? MAX_SAFE_INTEGER : length;
4930
-
4931
- return !!length &&
4932
- (type == 'number' ||
4933
- (type != 'symbol' && reIsUint.test(value))) &&
4934
- (value > -1 && value % 1 == 0 && value < length);
4935
- }
4913
+ /**
4914
+ * Checks if `value` is a valid array-like index.
4915
+ *
4916
+ * @private
4917
+ * @param {*} value The value to check.
4918
+ * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.
4919
+ * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
4920
+ */
4921
+ function isIndex$3(value, length) {
4922
+ var type = typeof value;
4923
+ length = length == null ? MAX_SAFE_INTEGER$1 : length;
4936
4924
 
4937
- _isIndex = isIndex;
4938
- return _isIndex;
4925
+ return !!length &&
4926
+ (type == 'number' ||
4927
+ (type != 'symbol' && reIsUint.test(value))) &&
4928
+ (value > -1 && value % 1 == 0 && value < length);
4939
4929
  }
4940
4930
 
4931
+ var _isIndex = isIndex$3;
4932
+
4941
4933
  var copyArray$2 = _copyArray,
4942
- isIndex$2 = require_isIndex();
4934
+ isIndex$2 = _isIndex;
4943
4935
 
4944
4936
  /* Built-in method references for those with the same name as other `lodash` methods. */
4945
4937
  var nativeMin$1 = Math.min;
@@ -6132,7 +6124,7 @@ var baseTimes = _baseTimes,
6132
6124
  isArguments$2 = requireIsArguments(),
6133
6125
  isArray$f = isArray_1,
6134
6126
  isBuffer$4 = isBufferExports,
6135
- isIndex$1 = require_isIndex(),
6127
+ isIndex$1 = _isIndex,
6136
6128
  isTypedArray$1 = requireIsTypedArray();
6137
6129
 
6138
6130
  /** Used for built-in method references. */
@@ -9463,7 +9455,7 @@ var _baseHasIn = baseHasIn$1;
9463
9455
  var castPath = _castPath,
9464
9456
  isArguments$1 = requireIsArguments(),
9465
9457
  isArray$8 = isArray_1,
9466
- isIndex = require_isIndex(),
9458
+ isIndex = _isIndex,
9467
9459
  isLength = isLength_1,
9468
9460
  toKey$3 = _toKey;
9469
9461
 
@@ -10353,7 +10345,7 @@ function require_isIterateeCall () {
10353
10345
  hasRequired_isIterateeCall = 1;
10354
10346
  var eq = requireEq(),
10355
10347
  isArrayLike = isArrayLike_1,
10356
- isIndex = require_isIndex(),
10348
+ isIndex = _isIndex,
10357
10349
  isObject = isObject_1;
10358
10350
 
10359
10351
  /**
@@ -10830,17 +10822,17 @@ var AccountBillingPlanChangeType = /* @__PURE__ */ ((AccountBillingPlanChangeTyp
10830
10822
  return AccountBillingPlanChangeType2;
10831
10823
  })(AccountBillingPlanChangeType || {});
10832
10824
 
10833
- var __getOwnPropSymbols$$ = Object.getOwnPropertySymbols;
10834
- var __hasOwnProp$$ = Object.prototype.hasOwnProperty;
10835
- var __propIsEnum$$ = Object.prototype.propertyIsEnumerable;
10825
+ var __getOwnPropSymbols$10 = Object.getOwnPropertySymbols;
10826
+ var __hasOwnProp$10 = Object.prototype.hasOwnProperty;
10827
+ var __propIsEnum$10 = Object.prototype.propertyIsEnumerable;
10836
10828
  var __objRest$x = (source, exclude) => {
10837
10829
  var target = {};
10838
10830
  for (var prop in source)
10839
- if (__hasOwnProp$$.call(source, prop) && exclude.indexOf(prop) < 0)
10831
+ if (__hasOwnProp$10.call(source, prop) && exclude.indexOf(prop) < 0)
10840
10832
  target[prop] = source[prop];
10841
- if (source != null && __getOwnPropSymbols$$)
10842
- for (var prop of __getOwnPropSymbols$$(source)) {
10843
- if (exclude.indexOf(prop) < 0 && __propIsEnum$$.call(source, prop))
10833
+ if (source != null && __getOwnPropSymbols$10)
10834
+ for (var prop of __getOwnPropSymbols$10(source)) {
10835
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$10.call(source, prop))
10844
10836
  target[prop] = source[prop];
10845
10837
  }
10846
10838
  return target;
@@ -10975,17 +10967,17 @@ const types = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
10975
10967
  RateCardStatus
10976
10968
  }, Symbol.toStringTag, { value: 'Module' }));
10977
10969
 
10978
- var __getOwnPropSymbols$_ = Object.getOwnPropertySymbols;
10979
- var __hasOwnProp$_ = Object.prototype.hasOwnProperty;
10980
- var __propIsEnum$_ = Object.prototype.propertyIsEnumerable;
10970
+ var __getOwnPropSymbols$$ = Object.getOwnPropertySymbols;
10971
+ var __hasOwnProp$$ = Object.prototype.hasOwnProperty;
10972
+ var __propIsEnum$$ = Object.prototype.propertyIsEnumerable;
10981
10973
  var __objRest$w = (source, exclude) => {
10982
10974
  var target = {};
10983
10975
  for (var prop in source)
10984
- if (__hasOwnProp$_.call(source, prop) && exclude.indexOf(prop) < 0)
10976
+ if (__hasOwnProp$$.call(source, prop) && exclude.indexOf(prop) < 0)
10985
10977
  target[prop] = source[prop];
10986
- if (source != null && __getOwnPropSymbols$_)
10987
- for (var prop of __getOwnPropSymbols$_(source)) {
10988
- if (exclude.indexOf(prop) < 0 && __propIsEnum$_.call(source, prop))
10978
+ if (source != null && __getOwnPropSymbols$$)
10979
+ for (var prop of __getOwnPropSymbols$$(source)) {
10980
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$$.call(source, prop))
10989
10981
  target[prop] = source[prop];
10990
10982
  }
10991
10983
  return target;
@@ -11046,6 +11038,12 @@ class AccountAddonsAPI {
11046
11038
  this.list = () => {
11047
11039
  return this.client.get("/v1/account/addons");
11048
11040
  };
11041
+ /**
11042
+ * The `enable` method allows to enable an AddOn for the current user
11043
+ */
11044
+ this.enable = (addonCode) => {
11045
+ return this.client.post(`/v1/account/addons/${addonCode}/enable`);
11046
+ };
11049
11047
  this.client = client;
11050
11048
  }
11051
11049
  }
@@ -13853,7 +13851,7 @@ var ipaddr = {
13853
13851
  }).call(commonjsGlobal);
13854
13852
  } (ipaddr));
13855
13853
 
13856
- var __async$15 = (__this, __arguments, generator) => {
13854
+ var __async$16 = (__this, __arguments, generator) => {
13857
13855
  return new Promise((resolve, reject) => {
13858
13856
  var fulfilled = (value) => {
13859
13857
  try {
@@ -13873,7 +13871,7 @@ var __async$15 = (__this, __arguments, generator) => {
13873
13871
  step((generator = generator.apply(__this, __arguments)).next());
13874
13872
  });
13875
13873
  };
13876
- const getEndUserIpAddress = () => __async$15(void 0, null, function* () {
13874
+ const getEndUserIpAddress = () => __async$16(void 0, null, function* () {
13877
13875
  try {
13878
13876
  const response = yield axios.get("https://api.ipify.org/?format=json");
13879
13877
  if (response.data.ip && ipaddrExports.isValid(response.data.ip)) {
@@ -13934,38 +13932,38 @@ const decamelizeKeys = (obj, separator = "_") => {
13934
13932
  return obj;
13935
13933
  };
13936
13934
 
13937
- var __defProp$O = Object.defineProperty;
13938
- var __defProps$I = Object.defineProperties;
13939
- var __getOwnPropDescs$I = Object.getOwnPropertyDescriptors;
13940
- var __getOwnPropSymbols$Z = Object.getOwnPropertySymbols;
13941
- var __hasOwnProp$Z = Object.prototype.hasOwnProperty;
13942
- var __propIsEnum$Z = Object.prototype.propertyIsEnumerable;
13943
- var __defNormalProp$O = (obj, key, value) => key in obj ? __defProp$O(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
13944
- var __spreadValues$O = (a, b) => {
13935
+ var __defProp$P = Object.defineProperty;
13936
+ var __defProps$J = Object.defineProperties;
13937
+ var __getOwnPropDescs$J = Object.getOwnPropertyDescriptors;
13938
+ var __getOwnPropSymbols$_ = Object.getOwnPropertySymbols;
13939
+ var __hasOwnProp$_ = Object.prototype.hasOwnProperty;
13940
+ var __propIsEnum$_ = Object.prototype.propertyIsEnumerable;
13941
+ var __defNormalProp$P = (obj, key, value) => key in obj ? __defProp$P(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
13942
+ var __spreadValues$P = (a, b) => {
13945
13943
  for (var prop in b || (b = {}))
13946
- if (__hasOwnProp$Z.call(b, prop))
13947
- __defNormalProp$O(a, prop, b[prop]);
13948
- if (__getOwnPropSymbols$Z)
13949
- for (var prop of __getOwnPropSymbols$Z(b)) {
13950
- if (__propIsEnum$Z.call(b, prop))
13951
- __defNormalProp$O(a, prop, b[prop]);
13944
+ if (__hasOwnProp$_.call(b, prop))
13945
+ __defNormalProp$P(a, prop, b[prop]);
13946
+ if (__getOwnPropSymbols$_)
13947
+ for (var prop of __getOwnPropSymbols$_(b)) {
13948
+ if (__propIsEnum$_.call(b, prop))
13949
+ __defNormalProp$P(a, prop, b[prop]);
13952
13950
  }
13953
13951
  return a;
13954
13952
  };
13955
- var __spreadProps$I = (a, b) => __defProps$I(a, __getOwnPropDescs$I(b));
13953
+ var __spreadProps$J = (a, b) => __defProps$J(a, __getOwnPropDescs$J(b));
13956
13954
  var __objRest$v = (source, exclude) => {
13957
13955
  var target = {};
13958
13956
  for (var prop in source)
13959
- if (__hasOwnProp$Z.call(source, prop) && exclude.indexOf(prop) < 0)
13957
+ if (__hasOwnProp$_.call(source, prop) && exclude.indexOf(prop) < 0)
13960
13958
  target[prop] = source[prop];
13961
- if (source != null && __getOwnPropSymbols$Z)
13962
- for (var prop of __getOwnPropSymbols$Z(source)) {
13963
- if (exclude.indexOf(prop) < 0 && __propIsEnum$Z.call(source, prop))
13959
+ if (source != null && __getOwnPropSymbols$_)
13960
+ for (var prop of __getOwnPropSymbols$_(source)) {
13961
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$_.call(source, prop))
13964
13962
  target[prop] = source[prop];
13965
13963
  }
13966
13964
  return target;
13967
13965
  };
13968
- var __async$14 = (__this, __arguments, generator) => {
13966
+ var __async$15 = (__this, __arguments, generator) => {
13969
13967
  return new Promise((resolve, reject) => {
13970
13968
  var fulfilled = (value) => {
13971
13969
  try {
@@ -14005,12 +14003,12 @@ class CarriersAPI {
14005
14003
  /**
14006
14004
  * The `connect` method connects a carrier account to a user's ShipEngine account.
14007
14005
  */
14008
- this.connect = (_a) => __async$14(this, null, function* () {
14006
+ this.connect = (_a) => __async$15(this, null, function* () {
14009
14007
  var _b = _a, { carrierCode } = _b, connection = __objRest$v(_b, ["carrierCode"]);
14010
14008
  const endUserIpAddress = yield getEndUserIpAddress();
14011
14009
  if (!endUserIpAddress)
14012
14010
  return Promise.reject([new CodedError("Unable to get IP address")]);
14013
- return yield this.client.post(`/v1/registration/${carrierCode}`, __spreadProps$I(__spreadValues$O({}, connection), {
14011
+ return yield this.client.post(`/v1/registration/${carrierCode}`, __spreadProps$J(__spreadValues$P({}, connection), {
14014
14012
  endUserIpAddress
14015
14013
  }));
14016
14014
  });
@@ -14094,22 +14092,22 @@ class CarriersAPI {
14094
14092
  }
14095
14093
  }
14096
14094
 
14097
- var __getOwnPropSymbols$Y = Object.getOwnPropertySymbols;
14098
- var __hasOwnProp$Y = Object.prototype.hasOwnProperty;
14099
- var __propIsEnum$Y = Object.prototype.propertyIsEnumerable;
14095
+ var __getOwnPropSymbols$Z = Object.getOwnPropertySymbols;
14096
+ var __hasOwnProp$Z = Object.prototype.hasOwnProperty;
14097
+ var __propIsEnum$Z = Object.prototype.propertyIsEnumerable;
14100
14098
  var __objRest$u = (source, exclude) => {
14101
14099
  var target = {};
14102
14100
  for (var prop in source)
14103
- if (__hasOwnProp$Y.call(source, prop) && exclude.indexOf(prop) < 0)
14101
+ if (__hasOwnProp$Z.call(source, prop) && exclude.indexOf(prop) < 0)
14104
14102
  target[prop] = source[prop];
14105
- if (source != null && __getOwnPropSymbols$Y)
14106
- for (var prop of __getOwnPropSymbols$Y(source)) {
14107
- if (exclude.indexOf(prop) < 0 && __propIsEnum$Y.call(source, prop))
14103
+ if (source != null && __getOwnPropSymbols$Z)
14104
+ for (var prop of __getOwnPropSymbols$Z(source)) {
14105
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$Z.call(source, prop))
14108
14106
  target[prop] = source[prop];
14109
14107
  }
14110
14108
  return target;
14111
14109
  };
14112
- var __async$13 = (__this, __arguments, generator) => {
14110
+ var __async$14 = (__this, __arguments, generator) => {
14113
14111
  return new Promise((resolve, reject) => {
14114
14112
  var fulfilled = (value) => {
14115
14113
  try {
@@ -14151,7 +14149,7 @@ class ConnectionsAPI {
14151
14149
  /**
14152
14150
  * The `connectCarrier` method connects a carrier to account.
14153
14151
  */
14154
- this.connectCarrier = (carrierName, formData) => __async$13(this, null, function* () {
14152
+ this.connectCarrier = (carrierName, formData) => __async$14(this, null, function* () {
14155
14153
  return yield this.client.post(
14156
14154
  `/v1/connections/carriers/${carrierName}`,
14157
14155
  formData,
@@ -16319,23 +16317,23 @@ class CustomPackagesAPI {
16319
16317
  }
16320
16318
  }
16321
16319
 
16322
- var __defProp$N = Object.defineProperty;
16323
- var __getOwnPropSymbols$X = Object.getOwnPropertySymbols;
16324
- var __hasOwnProp$X = Object.prototype.hasOwnProperty;
16325
- var __propIsEnum$X = Object.prototype.propertyIsEnumerable;
16326
- var __defNormalProp$N = (obj, key, value) => key in obj ? __defProp$N(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
16327
- var __spreadValues$N = (a, b) => {
16320
+ var __defProp$O = Object.defineProperty;
16321
+ var __getOwnPropSymbols$Y = Object.getOwnPropertySymbols;
16322
+ var __hasOwnProp$Y = Object.prototype.hasOwnProperty;
16323
+ var __propIsEnum$Y = Object.prototype.propertyIsEnumerable;
16324
+ var __defNormalProp$O = (obj, key, value) => key in obj ? __defProp$O(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
16325
+ var __spreadValues$O = (a, b) => {
16328
16326
  for (var prop in b || (b = {}))
16329
- if (__hasOwnProp$X.call(b, prop))
16330
- __defNormalProp$N(a, prop, b[prop]);
16331
- if (__getOwnPropSymbols$X)
16332
- for (var prop of __getOwnPropSymbols$X(b)) {
16333
- if (__propIsEnum$X.call(b, prop))
16334
- __defNormalProp$N(a, prop, b[prop]);
16327
+ if (__hasOwnProp$Y.call(b, prop))
16328
+ __defNormalProp$O(a, prop, b[prop]);
16329
+ if (__getOwnPropSymbols$Y)
16330
+ for (var prop of __getOwnPropSymbols$Y(b)) {
16331
+ if (__propIsEnum$Y.call(b, prop))
16332
+ __defNormalProp$O(a, prop, b[prop]);
16335
16333
  }
16336
16334
  return a;
16337
16335
  };
16338
- var __async$12 = (__this, __arguments, generator) => {
16336
+ var __async$13 = (__this, __arguments, generator) => {
16339
16337
  return new Promise((resolve, reject) => {
16340
16338
  var fulfilled = (value) => {
16341
16339
  try {
@@ -16374,12 +16372,12 @@ class FundingSourcesAPI {
16374
16372
  * The `create` method creates a new funding source for a given user. This requires
16375
16373
  * payment information to be collected from the user.
16376
16374
  */
16377
- this.create = (createFundingSource) => __async$12(this, null, function* () {
16375
+ this.create = (createFundingSource) => __async$13(this, null, function* () {
16378
16376
  const endUserIpAddress = yield getEndUserIpAddress();
16379
16377
  if (!endUserIpAddress) {
16380
16378
  return Promise.reject([new CodedError("Unable to get IP address")]);
16381
16379
  }
16382
- return yield this.client.post("/v1/funding_sources", __spreadValues$N({
16380
+ return yield this.client.post("/v1/funding_sources", __spreadValues$O({
16383
16381
  endUserIpAddress
16384
16382
  }, createFundingSource));
16385
16383
  });
@@ -16388,7 +16386,7 @@ class FundingSourcesAPI {
16388
16386
  * user to update the billing address or payment information associated with the
16389
16387
  * funding source.
16390
16388
  */
16391
- this.update = (billingInfo, creditCardInfo, auctanePayInfo, fundingSourceId) => __async$12(this, null, function* () {
16389
+ this.update = (billingInfo, creditCardInfo, auctanePayInfo, fundingSourceId) => __async$13(this, null, function* () {
16392
16390
  const endUserIpAddress = yield getEndUserIpAddress();
16393
16391
  if (!endUserIpAddress) {
16394
16392
  return Promise.reject([new CodedError("Unable to get IP address")]);
@@ -16398,7 +16396,7 @@ class FundingSourcesAPI {
16398
16396
  {
16399
16397
  billingInfo,
16400
16398
  endUserIpAddress,
16401
- paymentMethod: __spreadValues$N({
16399
+ paymentMethod: __spreadValues$O({
16402
16400
  creditCardInfo
16403
16401
  }, auctanePayInfo)
16404
16402
  }
@@ -16408,19 +16406,19 @@ class FundingSourcesAPI {
16408
16406
  * The `registerCarrier` method registers a carrier account and associates
16409
16407
  * it with a given funding source.
16410
16408
  */
16411
- this.registerCarrier = (carrier) => __async$12(this, null, function* () {
16409
+ this.registerCarrier = (carrier) => __async$13(this, null, function* () {
16412
16410
  const endUserIpAddress = yield getEndUserIpAddress();
16413
16411
  if (!endUserIpAddress) {
16414
16412
  return Promise.reject([new CodedError("Unable to get IP address")]);
16415
16413
  }
16416
- return yield this.client.post("/v1/registration/funding_source", __spreadValues$N({
16414
+ return yield this.client.post("/v1/registration/funding_source", __spreadValues$O({
16417
16415
  endUserIpAddress
16418
16416
  }, carrier));
16419
16417
  });
16420
16418
  /**
16421
16419
  * The `addFunds` method allows you to add funds to a funding source.
16422
16420
  */
16423
- this.addFunds = (amount, fundingSourceId) => __async$12(this, null, function* () {
16421
+ this.addFunds = (amount, fundingSourceId) => __async$13(this, null, function* () {
16424
16422
  return yield this.client.put(
16425
16423
  `/v1/funding_sources/${fundingSourceId}/add_funds`,
16426
16424
  amount
@@ -16430,7 +16428,7 @@ class FundingSourcesAPI {
16430
16428
  * The `metadata` method returns seller-specific requirements for creating funding sources
16431
16429
  * and attaching carriers
16432
16430
  */
16433
- this.metadata = () => __async$12(this, null, function* () {
16431
+ this.metadata = () => __async$13(this, null, function* () {
16434
16432
  return yield this.client.get("/v1/funding_sources/metadata");
16435
16433
  });
16436
16434
  /**
@@ -16482,7 +16480,7 @@ class InsuranceAPI {
16482
16480
  }
16483
16481
  }
16484
16482
 
16485
- var __async$11 = (__this, __arguments, generator) => {
16483
+ var __async$12 = (__this, __arguments, generator) => {
16486
16484
  return new Promise((resolve, reject) => {
16487
16485
  var fulfilled = (value) => {
16488
16486
  try {
@@ -16514,13 +16512,13 @@ class InvoiceAddressAPI {
16514
16512
  /**
16515
16513
  * The `create` method creates a new invoice address for a given user.
16516
16514
  */
16517
- this.create = (invoiceAddress) => __async$11(this, null, function* () {
16515
+ this.create = (invoiceAddress) => __async$12(this, null, function* () {
16518
16516
  return yield this.client.post("/v1/invoice_address", invoiceAddress);
16519
16517
  });
16520
16518
  /**
16521
16519
  * The `update` method updates a invoice address for a given user.
16522
16520
  */
16523
- this.update = (invoiceAddress) => __async$11(this, null, function* () {
16521
+ this.update = (invoiceAddress) => __async$12(this, null, function* () {
16524
16522
  return yield this.client.put("/v1/invoice_address", invoiceAddress);
16525
16523
  });
16526
16524
  this.client = client;
@@ -16582,17 +16580,17 @@ class LabelsAPI {
16582
16580
  }
16583
16581
  }
16584
16582
 
16585
- var __getOwnPropSymbols$W = Object.getOwnPropertySymbols;
16586
- var __hasOwnProp$W = Object.prototype.hasOwnProperty;
16587
- var __propIsEnum$W = Object.prototype.propertyIsEnumerable;
16583
+ var __getOwnPropSymbols$X = Object.getOwnPropertySymbols;
16584
+ var __hasOwnProp$X = Object.prototype.hasOwnProperty;
16585
+ var __propIsEnum$X = Object.prototype.propertyIsEnumerable;
16588
16586
  var __objRest$t = (source, exclude) => {
16589
16587
  var target = {};
16590
16588
  for (var prop in source)
16591
- if (__hasOwnProp$W.call(source, prop) && exclude.indexOf(prop) < 0)
16589
+ if (__hasOwnProp$X.call(source, prop) && exclude.indexOf(prop) < 0)
16592
16590
  target[prop] = source[prop];
16593
- if (source != null && __getOwnPropSymbols$W)
16594
- for (var prop of __getOwnPropSymbols$W(source)) {
16595
- if (exclude.indexOf(prop) < 0 && __propIsEnum$W.call(source, prop))
16591
+ if (source != null && __getOwnPropSymbols$X)
16592
+ for (var prop of __getOwnPropSymbols$X(source)) {
16593
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$X.call(source, prop))
16596
16594
  target[prop] = source[prop];
16597
16595
  }
16598
16596
  return target;
@@ -16713,19 +16711,19 @@ class RateCardsAPI {
16713
16711
  }
16714
16712
  }
16715
16713
 
16716
- var __defProp$M = Object.defineProperty;
16717
- var __getOwnPropSymbols$V = Object.getOwnPropertySymbols;
16718
- var __hasOwnProp$V = Object.prototype.hasOwnProperty;
16719
- var __propIsEnum$V = Object.prototype.propertyIsEnumerable;
16720
- var __defNormalProp$M = (obj, key, value) => key in obj ? __defProp$M(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
16721
- var __spreadValues$M = (a, b) => {
16714
+ var __defProp$N = Object.defineProperty;
16715
+ var __getOwnPropSymbols$W = Object.getOwnPropertySymbols;
16716
+ var __hasOwnProp$W = Object.prototype.hasOwnProperty;
16717
+ var __propIsEnum$W = Object.prototype.propertyIsEnumerable;
16718
+ var __defNormalProp$N = (obj, key, value) => key in obj ? __defProp$N(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
16719
+ var __spreadValues$N = (a, b) => {
16722
16720
  for (var prop in b || (b = {}))
16723
- if (__hasOwnProp$V.call(b, prop))
16724
- __defNormalProp$M(a, prop, b[prop]);
16725
- if (__getOwnPropSymbols$V)
16726
- for (var prop of __getOwnPropSymbols$V(b)) {
16727
- if (__propIsEnum$V.call(b, prop))
16728
- __defNormalProp$M(a, prop, b[prop]);
16721
+ if (__hasOwnProp$W.call(b, prop))
16722
+ __defNormalProp$N(a, prop, b[prop]);
16723
+ if (__getOwnPropSymbols$W)
16724
+ for (var prop of __getOwnPropSymbols$W(b)) {
16725
+ if (__propIsEnum$W.call(b, prop))
16726
+ __defNormalProp$N(a, prop, b[prop]);
16729
16727
  }
16730
16728
  return a;
16731
16729
  };
@@ -16747,7 +16745,7 @@ class RatesAPI {
16747
16745
  * method.
16748
16746
  */
16749
16747
  this.estimate = (params) => {
16750
- return this.client.post("/v1/rates/estimate", __spreadValues$M({}, params));
16748
+ return this.client.post("/v1/rates/estimate", __spreadValues$N({}, params));
16751
16749
  };
16752
16750
  this.client = client;
16753
16751
  }
@@ -16827,7 +16825,7 @@ class SalesOrdersAPI {
16827
16825
  }
16828
16826
  }
16829
16827
 
16830
- var __async$10 = (__this, __arguments, generator) => {
16828
+ var __async$11 = (__this, __arguments, generator) => {
16831
16829
  return new Promise((resolve, reject) => {
16832
16830
  var fulfilled = (value) => {
16833
16831
  try {
@@ -16885,7 +16883,7 @@ class SellersAPI {
16885
16883
  /**
16886
16884
  * Deletes an API Key
16887
16885
  */
16888
- this.deleteSellerApiKey = (_0) => __async$10(this, [_0], function* ({
16886
+ this.deleteSellerApiKey = (_0) => __async$11(this, [_0], function* ({
16889
16887
  encryptedApiKey,
16890
16888
  sellerId,
16891
16889
  isSandbox
@@ -16931,19 +16929,19 @@ class SellersAPI {
16931
16929
  }
16932
16930
  }
16933
16931
 
16934
- var __defProp$L = Object.defineProperty;
16935
- var __getOwnPropSymbols$U = Object.getOwnPropertySymbols;
16936
- var __hasOwnProp$U = Object.prototype.hasOwnProperty;
16937
- var __propIsEnum$U = Object.prototype.propertyIsEnumerable;
16938
- var __defNormalProp$L = (obj, key, value) => key in obj ? __defProp$L(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
16939
- var __spreadValues$L = (a, b) => {
16932
+ var __defProp$M = Object.defineProperty;
16933
+ var __getOwnPropSymbols$V = Object.getOwnPropertySymbols;
16934
+ var __hasOwnProp$V = Object.prototype.hasOwnProperty;
16935
+ var __propIsEnum$V = Object.prototype.propertyIsEnumerable;
16936
+ var __defNormalProp$M = (obj, key, value) => key in obj ? __defProp$M(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
16937
+ var __spreadValues$M = (a, b) => {
16940
16938
  for (var prop in b || (b = {}))
16941
- if (__hasOwnProp$U.call(b, prop))
16942
- __defNormalProp$L(a, prop, b[prop]);
16943
- if (__getOwnPropSymbols$U)
16944
- for (var prop of __getOwnPropSymbols$U(b)) {
16945
- if (__propIsEnum$U.call(b, prop))
16946
- __defNormalProp$L(a, prop, b[prop]);
16939
+ if (__hasOwnProp$V.call(b, prop))
16940
+ __defNormalProp$M(a, prop, b[prop]);
16941
+ if (__getOwnPropSymbols$V)
16942
+ for (var prop of __getOwnPropSymbols$V(b)) {
16943
+ if (__propIsEnum$V.call(b, prop))
16944
+ __defNormalProp$M(a, prop, b[prop]);
16947
16945
  }
16948
16946
  return a;
16949
16947
  };
@@ -16955,7 +16953,7 @@ class ServicePointsAPI {
16955
16953
  * Either an address, coordinates, or an address query
16956
16954
  */
16957
16955
  this.list = (options) => {
16958
- return this.client.post("/v1/service_points/list", __spreadValues$L({}, options));
16956
+ return this.client.post("/v1/service_points/list", __spreadValues$M({}, options));
16959
16957
  };
16960
16958
  /**
16961
16959
  * Get a specific service point by its carrier code, country code, and id
@@ -16973,7 +16971,7 @@ class ServicePointsAPI {
16973
16971
  }
16974
16972
  }
16975
16973
 
16976
- var __async$$ = (__this, __arguments, generator) => {
16974
+ var __async$10 = (__this, __arguments, generator) => {
16977
16975
  return new Promise((resolve, reject) => {
16978
16976
  var fulfilled = (value) => {
16979
16977
  try {
@@ -17022,7 +17020,7 @@ class ShipmentsAPI {
17022
17020
  * The `create` method allows for creating shipments based on a list of shipment
17023
17021
  * items passed into this method.
17024
17022
  */
17025
- this.create = (...shipments) => __async$$(this, null, function* () {
17023
+ this.create = (...shipments) => __async$10(this, null, function* () {
17026
17024
  return this.client.post("/v1/shipments", {
17027
17025
  shipments
17028
17026
  });
@@ -34439,38 +34437,38 @@ class WebhooksAPI {
34439
34437
  }
34440
34438
  }
34441
34439
 
34442
- var __defProp$K = Object.defineProperty;
34443
- var __defProps$H = Object.defineProperties;
34444
- var __getOwnPropDescs$H = Object.getOwnPropertyDescriptors;
34445
- var __getOwnPropSymbols$T = Object.getOwnPropertySymbols;
34446
- var __hasOwnProp$T = Object.prototype.hasOwnProperty;
34447
- var __propIsEnum$T = Object.prototype.propertyIsEnumerable;
34448
- var __defNormalProp$K = (obj, key, value) => key in obj ? __defProp$K(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
34449
- var __spreadValues$K = (a, b) => {
34440
+ var __defProp$L = Object.defineProperty;
34441
+ var __defProps$I = Object.defineProperties;
34442
+ var __getOwnPropDescs$I = Object.getOwnPropertyDescriptors;
34443
+ var __getOwnPropSymbols$U = Object.getOwnPropertySymbols;
34444
+ var __hasOwnProp$U = Object.prototype.hasOwnProperty;
34445
+ var __propIsEnum$U = Object.prototype.propertyIsEnumerable;
34446
+ var __defNormalProp$L = (obj, key, value) => key in obj ? __defProp$L(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
34447
+ var __spreadValues$L = (a, b) => {
34450
34448
  for (var prop in b || (b = {}))
34451
- if (__hasOwnProp$T.call(b, prop))
34452
- __defNormalProp$K(a, prop, b[prop]);
34453
- if (__getOwnPropSymbols$T)
34454
- for (var prop of __getOwnPropSymbols$T(b)) {
34455
- if (__propIsEnum$T.call(b, prop))
34456
- __defNormalProp$K(a, prop, b[prop]);
34449
+ if (__hasOwnProp$U.call(b, prop))
34450
+ __defNormalProp$L(a, prop, b[prop]);
34451
+ if (__getOwnPropSymbols$U)
34452
+ for (var prop of __getOwnPropSymbols$U(b)) {
34453
+ if (__propIsEnum$U.call(b, prop))
34454
+ __defNormalProp$L(a, prop, b[prop]);
34457
34455
  }
34458
34456
  return a;
34459
34457
  };
34460
- var __spreadProps$H = (a, b) => __defProps$H(a, __getOwnPropDescs$H(b));
34458
+ var __spreadProps$I = (a, b) => __defProps$I(a, __getOwnPropDescs$I(b));
34461
34459
  var __objRest$s = (source, exclude) => {
34462
34460
  var target = {};
34463
34461
  for (var prop in source)
34464
- if (__hasOwnProp$T.call(source, prop) && exclude.indexOf(prop) < 0)
34462
+ if (__hasOwnProp$U.call(source, prop) && exclude.indexOf(prop) < 0)
34465
34463
  target[prop] = source[prop];
34466
- if (source != null && __getOwnPropSymbols$T)
34467
- for (var prop of __getOwnPropSymbols$T(source)) {
34468
- if (exclude.indexOf(prop) < 0 && __propIsEnum$T.call(source, prop))
34464
+ if (source != null && __getOwnPropSymbols$U)
34465
+ for (var prop of __getOwnPropSymbols$U(source)) {
34466
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$U.call(source, prop))
34469
34467
  target[prop] = source[prop];
34470
34468
  }
34471
34469
  return target;
34472
34470
  };
34473
- var __async$_ = (__this, __arguments, generator) => {
34471
+ var __async$$ = (__this, __arguments, generator) => {
34474
34472
  return new Promise((resolve, reject) => {
34475
34473
  var fulfilled = (value) => {
34476
34474
  try {
@@ -34493,7 +34491,7 @@ var __async$_ = (__this, __arguments, generator) => {
34493
34491
  const logger$1 = E({
34494
34492
  level: process.env.NODE_ENV === "production" ? "fatal" : "info",
34495
34493
  name: "shipengine-api",
34496
- serializers: __spreadProps$H(__spreadValues$K({}, k), {
34494
+ serializers: __spreadProps$I(__spreadValues$L({}, k), {
34497
34495
  req: (req) => ({
34498
34496
  headers: req.headers,
34499
34497
  method: req.method,
@@ -34518,7 +34516,7 @@ class ShipEngineAPI {
34518
34516
  this.getSandboxToken = getSandboxToken;
34519
34517
  const client = axios.create({
34520
34518
  baseURL,
34521
- headers: __spreadProps$H(__spreadValues$K({}, headers), {
34519
+ headers: __spreadProps$I(__spreadValues$L({}, headers), {
34522
34520
  "Content-Type": "application/json"
34523
34521
  }),
34524
34522
  paramsSerializer: (params) => lib.stringify(decamelizeKeys(params), { arrayFormat: "brackets" }),
@@ -34558,7 +34556,7 @@ class ShipEngineAPI {
34558
34556
  });
34559
34557
  client.defaults.headers.common["Authorization"] = `Bearer ${token}`;
34560
34558
  client.interceptors.request.use(
34561
- (config) => __async$_(this, null, function* () {
34559
+ (config) => __async$$(this, null, function* () {
34562
34560
  if (config.isSandbox) {
34563
34561
  if (!this.sandboxToken) {
34564
34562
  this.sandboxToken = yield getSandboxToken == null ? void 0 : getSandboxToken();
@@ -34585,7 +34583,7 @@ class ShipEngineAPI {
34585
34583
  );
34586
34584
  return res;
34587
34585
  },
34588
- (err) => __async$_(this, null, function* () {
34586
+ (err) => __async$$(this, null, function* () {
34589
34587
  var _a, _b, _c, _d, _e;
34590
34588
  logger$1.error(
34591
34589
  { err, req: err.config, res: err.response },
@@ -34632,7 +34630,7 @@ class ShipEngineAPI {
34632
34630
  * that token (also known as Seller ID)
34633
34631
  */
34634
34632
  getTenant(isSandbox) {
34635
- return __async$_(this, null, function* () {
34633
+ return __async$$(this, null, function* () {
34636
34634
  var _a;
34637
34635
  if (!isSandbox) {
34638
34636
  return this.getTenantFromToken(this.token);
@@ -34942,25 +34940,25 @@ const delay = (ms) => new Promise((resolve) => {
34942
34940
 
34943
34941
  const onError = (_errors) => _default();
34944
34942
 
34945
- var __defProp$J = Object.defineProperty;
34946
- var __defProps$G = Object.defineProperties;
34947
- var __getOwnPropDescs$G = Object.getOwnPropertyDescriptors;
34948
- var __getOwnPropSymbols$S = Object.getOwnPropertySymbols;
34949
- var __hasOwnProp$S = Object.prototype.hasOwnProperty;
34950
- var __propIsEnum$S = Object.prototype.propertyIsEnumerable;
34951
- var __defNormalProp$J = (obj, key, value) => key in obj ? __defProp$J(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
34952
- var __spreadValues$J = (a, b) => {
34943
+ var __defProp$K = Object.defineProperty;
34944
+ var __defProps$H = Object.defineProperties;
34945
+ var __getOwnPropDescs$H = Object.getOwnPropertyDescriptors;
34946
+ var __getOwnPropSymbols$T = Object.getOwnPropertySymbols;
34947
+ var __hasOwnProp$T = Object.prototype.hasOwnProperty;
34948
+ var __propIsEnum$T = Object.prototype.propertyIsEnumerable;
34949
+ var __defNormalProp$K = (obj, key, value) => key in obj ? __defProp$K(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
34950
+ var __spreadValues$K = (a, b) => {
34953
34951
  for (var prop in b || (b = {}))
34954
- if (__hasOwnProp$S.call(b, prop))
34955
- __defNormalProp$J(a, prop, b[prop]);
34956
- if (__getOwnPropSymbols$S)
34957
- for (var prop of __getOwnPropSymbols$S(b)) {
34958
- if (__propIsEnum$S.call(b, prop))
34959
- __defNormalProp$J(a, prop, b[prop]);
34952
+ if (__hasOwnProp$T.call(b, prop))
34953
+ __defNormalProp$K(a, prop, b[prop]);
34954
+ if (__getOwnPropSymbols$T)
34955
+ for (var prop of __getOwnPropSymbols$T(b)) {
34956
+ if (__propIsEnum$T.call(b, prop))
34957
+ __defNormalProp$K(a, prop, b[prop]);
34960
34958
  }
34961
34959
  return a;
34962
34960
  };
34963
- var __spreadProps$G = (a, b) => __defProps$G(a, __getOwnPropDescs$G(b));
34961
+ var __spreadProps$H = (a, b) => __defProps$H(a, __getOwnPropDescs$H(b));
34964
34962
  const streams = [];
34965
34963
  if (process.env.NODE_ENV === "production") {
34966
34964
  streams.push({
@@ -34969,7 +34967,7 @@ if (process.env.NODE_ENV === "production") {
34969
34967
  }
34970
34968
  const logger = E({
34971
34969
  name: "shipengine",
34972
- serializers: __spreadProps$G(__spreadValues$J({}, k), {
34970
+ serializers: __spreadProps$H(__spreadValues$K({}, k), {
34973
34971
  req: (req) => ({
34974
34972
  headers: req.headers,
34975
34973
  method: req.method,
@@ -34994,7 +34992,7 @@ const retryUntil = (callbackFn, retries = 10, timeoutBetweenAttempts = 1e3) => P
34994
34992
  throw error;
34995
34993
  });
34996
34994
 
34997
- var __async$Z = (__this, __arguments, generator) => {
34995
+ var __async$_ = (__this, __arguments, generator) => {
34998
34996
  return new Promise((resolve, reject) => {
34999
34997
  var fulfilled = (value) => {
35000
34998
  try {
@@ -35017,7 +35015,7 @@ var __async$Z = (__this, __arguments, generator) => {
35017
35015
  const useCreateAccountImage = () => {
35018
35016
  const { client } = useShipEngine();
35019
35017
  return reactQuery.useMutation({
35020
- mutationFn: (data) => __async$Z(void 0, null, function* () {
35018
+ mutationFn: (data) => __async$_(void 0, null, function* () {
35021
35019
  const result = yield client.accountSettings.createImage(data);
35022
35020
  return result.data;
35023
35021
  }),
@@ -35026,7 +35024,7 @@ const useCreateAccountImage = () => {
35026
35024
  });
35027
35025
  };
35028
35026
 
35029
- var __async$Y = (__this, __arguments, generator) => {
35027
+ var __async$Z = (__this, __arguments, generator) => {
35030
35028
  return new Promise((resolve, reject) => {
35031
35029
  var fulfilled = (value) => {
35032
35030
  try {
@@ -35049,7 +35047,7 @@ var __async$Y = (__this, __arguments, generator) => {
35049
35047
  const useDeleteAccountImage = () => {
35050
35048
  const { client } = useShipEngine();
35051
35049
  return reactQuery.useMutation({
35052
- mutationFn: (labelImageId) => __async$Y(void 0, null, function* () {
35050
+ mutationFn: (labelImageId) => __async$Z(void 0, null, function* () {
35053
35051
  const result = yield client.accountSettings.deleteImage(labelImageId);
35054
35052
  return result.data;
35055
35053
  }),
@@ -35078,7 +35076,7 @@ const useGetAccountSettings = () => {
35078
35076
  });
35079
35077
  };
35080
35078
 
35081
- var __async$X = (__this, __arguments, generator) => {
35079
+ var __async$Y = (__this, __arguments, generator) => {
35082
35080
  return new Promise((resolve, reject) => {
35083
35081
  var fulfilled = (value) => {
35084
35082
  try {
@@ -35101,7 +35099,7 @@ var __async$X = (__this, __arguments, generator) => {
35101
35099
  const useUpdateAccountImage = () => {
35102
35100
  const { client } = useShipEngine();
35103
35101
  return reactQuery.useMutation({
35104
- mutationFn: (data) => __async$X(void 0, null, function* () {
35102
+ mutationFn: (data) => __async$Y(void 0, null, function* () {
35105
35103
  const result = yield client.accountSettings.updateImage(data);
35106
35104
  return result.data;
35107
35105
  }),
@@ -35110,7 +35108,7 @@ const useUpdateAccountImage = () => {
35110
35108
  });
35111
35109
  };
35112
35110
 
35113
- var __async$W = (__this, __arguments, generator) => {
35111
+ var __async$X = (__this, __arguments, generator) => {
35114
35112
  return new Promise((resolve, reject) => {
35115
35113
  var fulfilled = (value) => {
35116
35114
  try {
@@ -35133,7 +35131,7 @@ var __async$W = (__this, __arguments, generator) => {
35133
35131
  const useUpdateAccountSettings = () => {
35134
35132
  const { client } = useShipEngine();
35135
35133
  return reactQuery.useMutation({
35136
- mutationFn: (settings) => __async$W(void 0, null, function* () {
35134
+ mutationFn: (settings) => __async$X(void 0, null, function* () {
35137
35135
  const result = yield client.accountSettings.update(settings);
35138
35136
  return result.data;
35139
35137
  }),
@@ -35142,6 +35140,35 @@ const useUpdateAccountSettings = () => {
35142
35140
  });
35143
35141
  };
35144
35142
 
35143
+ var __defProp$J = Object.defineProperty;
35144
+ var __defProps$G = Object.defineProperties;
35145
+ var __getOwnPropDescs$G = Object.getOwnPropertyDescriptors;
35146
+ var __getOwnPropSymbols$S = Object.getOwnPropertySymbols;
35147
+ var __hasOwnProp$S = Object.prototype.hasOwnProperty;
35148
+ var __propIsEnum$S = Object.prototype.propertyIsEnumerable;
35149
+ var __defNormalProp$J = (obj, key, value) => key in obj ? __defProp$J(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35150
+ var __spreadValues$J = (a, b) => {
35151
+ for (var prop in b || (b = {}))
35152
+ if (__hasOwnProp$S.call(b, prop))
35153
+ __defNormalProp$J(a, prop, b[prop]);
35154
+ if (__getOwnPropSymbols$S)
35155
+ for (var prop of __getOwnPropSymbols$S(b)) {
35156
+ if (__propIsEnum$S.call(b, prop))
35157
+ __defNormalProp$J(a, prop, b[prop]);
35158
+ }
35159
+ return a;
35160
+ };
35161
+ var __spreadProps$G = (a, b) => __defProps$G(a, __getOwnPropDescs$G(b));
35162
+ const useListAccountAddons = (params) => {
35163
+ const { client } = useShipEngine();
35164
+ return reactQuery.useQuery(__spreadProps$G(__spreadValues$J({}, params), {
35165
+ onError,
35166
+ queryFn: () => client.accountAddons.list(),
35167
+ queryKey: ["useListAccountAddons"],
35168
+ select: (result) => result.data.addons
35169
+ }));
35170
+ };
35171
+
35145
35172
  var __defProp$I = Object.defineProperty;
35146
35173
  var __defProps$F = Object.defineProperties;
35147
35174
  var __getOwnPropDescs$F = Object.getOwnPropertyDescriptors;
@@ -35161,13 +35188,35 @@ var __spreadValues$I = (a, b) => {
35161
35188
  return a;
35162
35189
  };
35163
35190
  var __spreadProps$F = (a, b) => __defProps$F(a, __getOwnPropDescs$F(b));
35164
- const useListAccountAddons = (params) => {
35191
+ var __async$W = (__this, __arguments, generator) => {
35192
+ return new Promise((resolve, reject) => {
35193
+ var fulfilled = (value) => {
35194
+ try {
35195
+ step(generator.next(value));
35196
+ } catch (e) {
35197
+ reject(e);
35198
+ }
35199
+ };
35200
+ var rejected = (value) => {
35201
+ try {
35202
+ step(generator.throw(value));
35203
+ } catch (e) {
35204
+ reject(e);
35205
+ }
35206
+ };
35207
+ var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
35208
+ step((generator = generator.apply(__this, __arguments)).next());
35209
+ });
35210
+ };
35211
+ const useEnableAccountAddon = (params) => {
35165
35212
  const { client } = useShipEngine();
35166
- return reactQuery.useQuery(__spreadProps$F(__spreadValues$I({}, params), {
35167
- onError,
35168
- queryFn: () => client.accountAddons.list(),
35169
- queryKey: ["useListAccountAddons"],
35170
- select: (result) => result.data
35213
+ return reactQuery.useMutation(__spreadProps$F(__spreadValues$I({}, params), {
35214
+ mutationFn: (addonType) => __async$W(void 0, null, function* () {
35215
+ const result = yield client.accountAddons.enable(addonType);
35216
+ return result.data;
35217
+ }),
35218
+ mutationKey: ["useEnableAccountAddon"],
35219
+ onError
35171
35220
  }));
35172
35221
  };
35173
35222
 
@@ -40197,6 +40246,7 @@ exports.useDeleteWarehouse = useDeleteWarehouse;
40197
40246
  exports.useDeleteWebhook = useDeleteWebhook;
40198
40247
  exports.useDownloadRateCard = useDownloadRateCard;
40199
40248
  exports.useEditShippingRule = useEditShippingRule;
40249
+ exports.useEnableAccountAddon = useEnableAccountAddon;
40200
40250
  exports.useExportLabels = useExportLabels;
40201
40251
  exports.useExportShipments = useExportShipments;
40202
40252
  exports.useFundingSourcesAddFunds = useFundingSourcesAddFunds;