@shipengine/alchemy 6.0.70 → 6.0.74-next.0

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 +215 -156
  2. package/index.mjs +213 -157
  3. package/package.json +1 -1
package/index.js CHANGED
@@ -10822,17 +10822,22 @@ var AccountBillingPlanChangeType = /* @__PURE__ */ ((AccountBillingPlanChangeTyp
10822
10822
  return AccountBillingPlanChangeType2;
10823
10823
  })(AccountBillingPlanChangeType || {});
10824
10824
 
10825
- var __getOwnPropSymbols$10 = Object.getOwnPropertySymbols;
10826
- var __hasOwnProp$10 = Object.prototype.hasOwnProperty;
10827
- var __propIsEnum$10 = Object.prototype.propertyIsEnumerable;
10825
+ var FeatureId = /* @__PURE__ */ ((FeatureId2) => {
10826
+ FeatureId2[FeatureId2["SSApiAnalytics"] = 182] = "SSApiAnalytics";
10827
+ return FeatureId2;
10828
+ })(FeatureId || {});
10829
+
10830
+ var __getOwnPropSymbols$11 = Object.getOwnPropertySymbols;
10831
+ var __hasOwnProp$11 = Object.prototype.hasOwnProperty;
10832
+ var __propIsEnum$11 = Object.prototype.propertyIsEnumerable;
10828
10833
  var __objRest$x = (source, exclude) => {
10829
10834
  var target = {};
10830
10835
  for (var prop in source)
10831
- if (__hasOwnProp$10.call(source, prop) && exclude.indexOf(prop) < 0)
10836
+ if (__hasOwnProp$11.call(source, prop) && exclude.indexOf(prop) < 0)
10832
10837
  target[prop] = 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))
10838
+ if (source != null && __getOwnPropSymbols$11)
10839
+ for (var prop of __getOwnPropSymbols$11(source)) {
10840
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$11.call(source, prop))
10836
10841
  target[prop] = source[prop];
10837
10842
  }
10838
10843
  return target;
@@ -10959,6 +10964,7 @@ const types = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
10959
10964
  Currency,
10960
10965
  CustomsContentsType,
10961
10966
  CustomsNonDeliveryType,
10967
+ FeatureId,
10962
10968
  InsuranceProviderType,
10963
10969
  MetadataCapability,
10964
10970
  MetadataRequirement,
@@ -10967,17 +10973,17 @@ const types = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
10967
10973
  RateCardStatus
10968
10974
  }, Symbol.toStringTag, { value: 'Module' }));
10969
10975
 
10970
- var __getOwnPropSymbols$$ = Object.getOwnPropertySymbols;
10971
- var __hasOwnProp$$ = Object.prototype.hasOwnProperty;
10972
- var __propIsEnum$$ = Object.prototype.propertyIsEnumerable;
10976
+ var __getOwnPropSymbols$10 = Object.getOwnPropertySymbols;
10977
+ var __hasOwnProp$10 = Object.prototype.hasOwnProperty;
10978
+ var __propIsEnum$10 = Object.prototype.propertyIsEnumerable;
10973
10979
  var __objRest$w = (source, exclude) => {
10974
10980
  var target = {};
10975
10981
  for (var prop in source)
10976
- if (__hasOwnProp$$.call(source, prop) && exclude.indexOf(prop) < 0)
10982
+ if (__hasOwnProp$10.call(source, prop) && exclude.indexOf(prop) < 0)
10977
10983
  target[prop] = source[prop];
10978
- if (source != null && __getOwnPropSymbols$$)
10979
- for (var prop of __getOwnPropSymbols$$(source)) {
10980
- if (exclude.indexOf(prop) < 0 && __propIsEnum$$.call(source, prop))
10984
+ if (source != null && __getOwnPropSymbols$10)
10985
+ for (var prop of __getOwnPropSymbols$10(source)) {
10986
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$10.call(source, prop))
10981
10987
  target[prop] = source[prop];
10982
10988
  }
10983
10989
  return target;
@@ -11048,6 +11054,20 @@ class AccountAddonsAPI {
11048
11054
  }
11049
11055
  }
11050
11056
 
11057
+ class AccountFeaturesAPI {
11058
+ constructor(client) {
11059
+ this.client = client;
11060
+ /**
11061
+ * The `list` method retrieves a list of all available features, also includes
11062
+ * if its avaiable for the current user
11063
+ */
11064
+ this.list = () => {
11065
+ return this.client.get("/v1/account/features");
11066
+ };
11067
+ this.client = client;
11068
+ }
11069
+ }
11070
+
11051
11071
  class AddressesAPI {
11052
11072
  constructor(client) {
11053
11073
  this.client = client;
@@ -13932,33 +13952,33 @@ const decamelizeKeys = (obj, separator = "_") => {
13932
13952
  return obj;
13933
13953
  };
13934
13954
 
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) => {
13955
+ var __defProp$Q = Object.defineProperty;
13956
+ var __defProps$K = Object.defineProperties;
13957
+ var __getOwnPropDescs$K = Object.getOwnPropertyDescriptors;
13958
+ var __getOwnPropSymbols$$ = Object.getOwnPropertySymbols;
13959
+ var __hasOwnProp$$ = Object.prototype.hasOwnProperty;
13960
+ var __propIsEnum$$ = Object.prototype.propertyIsEnumerable;
13961
+ var __defNormalProp$Q = (obj, key, value) => key in obj ? __defProp$Q(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
13962
+ var __spreadValues$Q = (a, b) => {
13943
13963
  for (var prop in b || (b = {}))
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]);
13964
+ if (__hasOwnProp$$.call(b, prop))
13965
+ __defNormalProp$Q(a, prop, b[prop]);
13966
+ if (__getOwnPropSymbols$$)
13967
+ for (var prop of __getOwnPropSymbols$$(b)) {
13968
+ if (__propIsEnum$$.call(b, prop))
13969
+ __defNormalProp$Q(a, prop, b[prop]);
13950
13970
  }
13951
13971
  return a;
13952
13972
  };
13953
- var __spreadProps$J = (a, b) => __defProps$J(a, __getOwnPropDescs$J(b));
13973
+ var __spreadProps$K = (a, b) => __defProps$K(a, __getOwnPropDescs$K(b));
13954
13974
  var __objRest$v = (source, exclude) => {
13955
13975
  var target = {};
13956
13976
  for (var prop in source)
13957
- if (__hasOwnProp$_.call(source, prop) && exclude.indexOf(prop) < 0)
13977
+ if (__hasOwnProp$$.call(source, prop) && exclude.indexOf(prop) < 0)
13958
13978
  target[prop] = source[prop];
13959
- if (source != null && __getOwnPropSymbols$_)
13960
- for (var prop of __getOwnPropSymbols$_(source)) {
13961
- if (exclude.indexOf(prop) < 0 && __propIsEnum$_.call(source, prop))
13979
+ if (source != null && __getOwnPropSymbols$$)
13980
+ for (var prop of __getOwnPropSymbols$$(source)) {
13981
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$$.call(source, prop))
13962
13982
  target[prop] = source[prop];
13963
13983
  }
13964
13984
  return target;
@@ -14008,7 +14028,7 @@ class CarriersAPI {
14008
14028
  const endUserIpAddress = yield getEndUserIpAddress();
14009
14029
  if (!endUserIpAddress)
14010
14030
  return Promise.reject([new CodedError("Unable to get IP address")]);
14011
- return yield this.client.post(`/v1/registration/${carrierCode}`, __spreadProps$J(__spreadValues$P({}, connection), {
14031
+ return yield this.client.post(`/v1/registration/${carrierCode}`, __spreadProps$K(__spreadValues$Q({}, connection), {
14012
14032
  endUserIpAddress
14013
14033
  }));
14014
14034
  });
@@ -14092,17 +14112,17 @@ class CarriersAPI {
14092
14112
  }
14093
14113
  }
14094
14114
 
14095
- var __getOwnPropSymbols$Z = Object.getOwnPropertySymbols;
14096
- var __hasOwnProp$Z = Object.prototype.hasOwnProperty;
14097
- var __propIsEnum$Z = Object.prototype.propertyIsEnumerable;
14115
+ var __getOwnPropSymbols$_ = Object.getOwnPropertySymbols;
14116
+ var __hasOwnProp$_ = Object.prototype.hasOwnProperty;
14117
+ var __propIsEnum$_ = Object.prototype.propertyIsEnumerable;
14098
14118
  var __objRest$u = (source, exclude) => {
14099
14119
  var target = {};
14100
14120
  for (var prop in source)
14101
- if (__hasOwnProp$Z.call(source, prop) && exclude.indexOf(prop) < 0)
14121
+ if (__hasOwnProp$_.call(source, prop) && exclude.indexOf(prop) < 0)
14102
14122
  target[prop] = 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))
14123
+ if (source != null && __getOwnPropSymbols$_)
14124
+ for (var prop of __getOwnPropSymbols$_(source)) {
14125
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$_.call(source, prop))
14106
14126
  target[prop] = source[prop];
14107
14127
  }
14108
14128
  return target;
@@ -16317,19 +16337,19 @@ class CustomPackagesAPI {
16317
16337
  }
16318
16338
  }
16319
16339
 
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) => {
16340
+ var __defProp$P = Object.defineProperty;
16341
+ var __getOwnPropSymbols$Z = Object.getOwnPropertySymbols;
16342
+ var __hasOwnProp$Z = Object.prototype.hasOwnProperty;
16343
+ var __propIsEnum$Z = Object.prototype.propertyIsEnumerable;
16344
+ var __defNormalProp$P = (obj, key, value) => key in obj ? __defProp$P(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
16345
+ var __spreadValues$P = (a, b) => {
16326
16346
  for (var prop in b || (b = {}))
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]);
16347
+ if (__hasOwnProp$Z.call(b, prop))
16348
+ __defNormalProp$P(a, prop, b[prop]);
16349
+ if (__getOwnPropSymbols$Z)
16350
+ for (var prop of __getOwnPropSymbols$Z(b)) {
16351
+ if (__propIsEnum$Z.call(b, prop))
16352
+ __defNormalProp$P(a, prop, b[prop]);
16333
16353
  }
16334
16354
  return a;
16335
16355
  };
@@ -16377,7 +16397,7 @@ class FundingSourcesAPI {
16377
16397
  if (!endUserIpAddress) {
16378
16398
  return Promise.reject([new CodedError("Unable to get IP address")]);
16379
16399
  }
16380
- return yield this.client.post("/v1/funding_sources", __spreadValues$O({
16400
+ return yield this.client.post("/v1/funding_sources", __spreadValues$P({
16381
16401
  endUserIpAddress
16382
16402
  }, createFundingSource));
16383
16403
  });
@@ -16396,7 +16416,7 @@ class FundingSourcesAPI {
16396
16416
  {
16397
16417
  billingInfo,
16398
16418
  endUserIpAddress,
16399
- paymentMethod: __spreadValues$O({
16419
+ paymentMethod: __spreadValues$P({
16400
16420
  creditCardInfo
16401
16421
  }, auctanePayInfo)
16402
16422
  }
@@ -16411,7 +16431,7 @@ class FundingSourcesAPI {
16411
16431
  if (!endUserIpAddress) {
16412
16432
  return Promise.reject([new CodedError("Unable to get IP address")]);
16413
16433
  }
16414
- return yield this.client.post("/v1/registration/funding_source", __spreadValues$O({
16434
+ return yield this.client.post("/v1/registration/funding_source", __spreadValues$P({
16415
16435
  endUserIpAddress
16416
16436
  }, carrier));
16417
16437
  });
@@ -16580,17 +16600,17 @@ class LabelsAPI {
16580
16600
  }
16581
16601
  }
16582
16602
 
16583
- var __getOwnPropSymbols$X = Object.getOwnPropertySymbols;
16584
- var __hasOwnProp$X = Object.prototype.hasOwnProperty;
16585
- var __propIsEnum$X = Object.prototype.propertyIsEnumerable;
16603
+ var __getOwnPropSymbols$Y = Object.getOwnPropertySymbols;
16604
+ var __hasOwnProp$Y = Object.prototype.hasOwnProperty;
16605
+ var __propIsEnum$Y = Object.prototype.propertyIsEnumerable;
16586
16606
  var __objRest$t = (source, exclude) => {
16587
16607
  var target = {};
16588
16608
  for (var prop in source)
16589
- if (__hasOwnProp$X.call(source, prop) && exclude.indexOf(prop) < 0)
16609
+ if (__hasOwnProp$Y.call(source, prop) && exclude.indexOf(prop) < 0)
16590
16610
  target[prop] = 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))
16611
+ if (source != null && __getOwnPropSymbols$Y)
16612
+ for (var prop of __getOwnPropSymbols$Y(source)) {
16613
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$Y.call(source, prop))
16594
16614
  target[prop] = source[prop];
16595
16615
  }
16596
16616
  return target;
@@ -16711,19 +16731,19 @@ class RateCardsAPI {
16711
16731
  }
16712
16732
  }
16713
16733
 
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) => {
16734
+ var __defProp$O = Object.defineProperty;
16735
+ var __getOwnPropSymbols$X = Object.getOwnPropertySymbols;
16736
+ var __hasOwnProp$X = Object.prototype.hasOwnProperty;
16737
+ var __propIsEnum$X = Object.prototype.propertyIsEnumerable;
16738
+ var __defNormalProp$O = (obj, key, value) => key in obj ? __defProp$O(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
16739
+ var __spreadValues$O = (a, b) => {
16720
16740
  for (var prop in b || (b = {}))
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]);
16741
+ if (__hasOwnProp$X.call(b, prop))
16742
+ __defNormalProp$O(a, prop, b[prop]);
16743
+ if (__getOwnPropSymbols$X)
16744
+ for (var prop of __getOwnPropSymbols$X(b)) {
16745
+ if (__propIsEnum$X.call(b, prop))
16746
+ __defNormalProp$O(a, prop, b[prop]);
16727
16747
  }
16728
16748
  return a;
16729
16749
  };
@@ -16745,7 +16765,7 @@ class RatesAPI {
16745
16765
  * method.
16746
16766
  */
16747
16767
  this.estimate = (params) => {
16748
- return this.client.post("/v1/rates/estimate", __spreadValues$N({}, params));
16768
+ return this.client.post("/v1/rates/estimate", __spreadValues$O({}, params));
16749
16769
  };
16750
16770
  this.client = client;
16751
16771
  }
@@ -16929,19 +16949,19 @@ class SellersAPI {
16929
16949
  }
16930
16950
  }
16931
16951
 
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) => {
16952
+ var __defProp$N = Object.defineProperty;
16953
+ var __getOwnPropSymbols$W = Object.getOwnPropertySymbols;
16954
+ var __hasOwnProp$W = Object.prototype.hasOwnProperty;
16955
+ var __propIsEnum$W = Object.prototype.propertyIsEnumerable;
16956
+ var __defNormalProp$N = (obj, key, value) => key in obj ? __defProp$N(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
16957
+ var __spreadValues$N = (a, b) => {
16938
16958
  for (var prop in b || (b = {}))
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]);
16959
+ if (__hasOwnProp$W.call(b, prop))
16960
+ __defNormalProp$N(a, prop, b[prop]);
16961
+ if (__getOwnPropSymbols$W)
16962
+ for (var prop of __getOwnPropSymbols$W(b)) {
16963
+ if (__propIsEnum$W.call(b, prop))
16964
+ __defNormalProp$N(a, prop, b[prop]);
16945
16965
  }
16946
16966
  return a;
16947
16967
  };
@@ -16953,7 +16973,7 @@ class ServicePointsAPI {
16953
16973
  * Either an address, coordinates, or an address query
16954
16974
  */
16955
16975
  this.list = (options) => {
16956
- return this.client.post("/v1/service_points/list", __spreadValues$M({}, options));
16976
+ return this.client.post("/v1/service_points/list", __spreadValues$N({}, options));
16957
16977
  };
16958
16978
  /**
16959
16979
  * Get a specific service point by its carrier code, country code, and id
@@ -34437,33 +34457,33 @@ class WebhooksAPI {
34437
34457
  }
34438
34458
  }
34439
34459
 
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) => {
34460
+ var __defProp$M = Object.defineProperty;
34461
+ var __defProps$J = Object.defineProperties;
34462
+ var __getOwnPropDescs$J = Object.getOwnPropertyDescriptors;
34463
+ var __getOwnPropSymbols$V = Object.getOwnPropertySymbols;
34464
+ var __hasOwnProp$V = Object.prototype.hasOwnProperty;
34465
+ var __propIsEnum$V = Object.prototype.propertyIsEnumerable;
34466
+ var __defNormalProp$M = (obj, key, value) => key in obj ? __defProp$M(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
34467
+ var __spreadValues$M = (a, b) => {
34448
34468
  for (var prop in b || (b = {}))
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]);
34469
+ if (__hasOwnProp$V.call(b, prop))
34470
+ __defNormalProp$M(a, prop, b[prop]);
34471
+ if (__getOwnPropSymbols$V)
34472
+ for (var prop of __getOwnPropSymbols$V(b)) {
34473
+ if (__propIsEnum$V.call(b, prop))
34474
+ __defNormalProp$M(a, prop, b[prop]);
34455
34475
  }
34456
34476
  return a;
34457
34477
  };
34458
- var __spreadProps$I = (a, b) => __defProps$I(a, __getOwnPropDescs$I(b));
34478
+ var __spreadProps$J = (a, b) => __defProps$J(a, __getOwnPropDescs$J(b));
34459
34479
  var __objRest$s = (source, exclude) => {
34460
34480
  var target = {};
34461
34481
  for (var prop in source)
34462
- if (__hasOwnProp$U.call(source, prop) && exclude.indexOf(prop) < 0)
34482
+ if (__hasOwnProp$V.call(source, prop) && exclude.indexOf(prop) < 0)
34463
34483
  target[prop] = 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))
34484
+ if (source != null && __getOwnPropSymbols$V)
34485
+ for (var prop of __getOwnPropSymbols$V(source)) {
34486
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$V.call(source, prop))
34467
34487
  target[prop] = source[prop];
34468
34488
  }
34469
34489
  return target;
@@ -34491,7 +34511,7 @@ var __async$$ = (__this, __arguments, generator) => {
34491
34511
  const logger$1 = E({
34492
34512
  level: process.env.NODE_ENV === "production" ? "fatal" : "info",
34493
34513
  name: "shipengine-api",
34494
- serializers: __spreadProps$I(__spreadValues$L({}, k), {
34514
+ serializers: __spreadProps$J(__spreadValues$M({}, k), {
34495
34515
  req: (req) => ({
34496
34516
  headers: req.headers,
34497
34517
  method: req.method,
@@ -34516,7 +34536,7 @@ class ShipEngineAPI {
34516
34536
  this.getSandboxToken = getSandboxToken;
34517
34537
  const client = axios.create({
34518
34538
  baseURL,
34519
- headers: __spreadProps$I(__spreadValues$L({}, headers), {
34539
+ headers: __spreadProps$J(__spreadValues$M({}, headers), {
34520
34540
  "Content-Type": "application/json"
34521
34541
  }),
34522
34542
  paramsSerializer: (params) => lib.stringify(decamelizeKeys(params), { arrayFormat: "brackets" }),
@@ -34678,6 +34698,13 @@ class ShipEngineAPI {
34678
34698
  get accountAddons() {
34679
34699
  return new AccountAddonsAPI(this.client);
34680
34700
  }
34701
+ /**
34702
+ * The `accountFeatures` method provides access to the Account Features endpoints
34703
+ * in ShipEngine API.
34704
+ */
34705
+ get accountFeatures() {
34706
+ return new AccountFeaturesAPI(this.client);
34707
+ }
34681
34708
  /**
34682
34709
  * The `accountBilling` method provides access to the Account Billing (Recurly) endpoints
34683
34710
  * in ShipEngine API.
@@ -34946,25 +34973,25 @@ const delay = (ms) => new Promise((resolve) => {
34946
34973
 
34947
34974
  const onError = (_errors) => _default();
34948
34975
 
34949
- var __defProp$K = Object.defineProperty;
34950
- var __defProps$H = Object.defineProperties;
34951
- var __getOwnPropDescs$H = Object.getOwnPropertyDescriptors;
34952
- var __getOwnPropSymbols$T = Object.getOwnPropertySymbols;
34953
- var __hasOwnProp$T = Object.prototype.hasOwnProperty;
34954
- var __propIsEnum$T = Object.prototype.propertyIsEnumerable;
34955
- var __defNormalProp$K = (obj, key, value) => key in obj ? __defProp$K(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
34956
- var __spreadValues$K = (a, b) => {
34976
+ var __defProp$L = Object.defineProperty;
34977
+ var __defProps$I = Object.defineProperties;
34978
+ var __getOwnPropDescs$I = Object.getOwnPropertyDescriptors;
34979
+ var __getOwnPropSymbols$U = Object.getOwnPropertySymbols;
34980
+ var __hasOwnProp$U = Object.prototype.hasOwnProperty;
34981
+ var __propIsEnum$U = Object.prototype.propertyIsEnumerable;
34982
+ var __defNormalProp$L = (obj, key, value) => key in obj ? __defProp$L(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
34983
+ var __spreadValues$L = (a, b) => {
34957
34984
  for (var prop in b || (b = {}))
34958
- if (__hasOwnProp$T.call(b, prop))
34959
- __defNormalProp$K(a, prop, b[prop]);
34960
- if (__getOwnPropSymbols$T)
34961
- for (var prop of __getOwnPropSymbols$T(b)) {
34962
- if (__propIsEnum$T.call(b, prop))
34963
- __defNormalProp$K(a, prop, b[prop]);
34985
+ if (__hasOwnProp$U.call(b, prop))
34986
+ __defNormalProp$L(a, prop, b[prop]);
34987
+ if (__getOwnPropSymbols$U)
34988
+ for (var prop of __getOwnPropSymbols$U(b)) {
34989
+ if (__propIsEnum$U.call(b, prop))
34990
+ __defNormalProp$L(a, prop, b[prop]);
34964
34991
  }
34965
34992
  return a;
34966
34993
  };
34967
- var __spreadProps$H = (a, b) => __defProps$H(a, __getOwnPropDescs$H(b));
34994
+ var __spreadProps$I = (a, b) => __defProps$I(a, __getOwnPropDescs$I(b));
34968
34995
  const streams = [];
34969
34996
  if (process.env.NODE_ENV === "production") {
34970
34997
  streams.push({
@@ -34973,7 +35000,7 @@ if (process.env.NODE_ENV === "production") {
34973
35000
  }
34974
35001
  const logger = E({
34975
35002
  name: "shipengine",
34976
- serializers: __spreadProps$H(__spreadValues$K({}, k), {
35003
+ serializers: __spreadProps$I(__spreadValues$L({}, k), {
34977
35004
  req: (req) => ({
34978
35005
  headers: req.headers,
34979
35006
  method: req.method,
@@ -35146,6 +35173,35 @@ const useUpdateAccountSettings = () => {
35146
35173
  });
35147
35174
  };
35148
35175
 
35176
+ var __defProp$K = Object.defineProperty;
35177
+ var __defProps$H = Object.defineProperties;
35178
+ var __getOwnPropDescs$H = Object.getOwnPropertyDescriptors;
35179
+ var __getOwnPropSymbols$T = Object.getOwnPropertySymbols;
35180
+ var __hasOwnProp$T = Object.prototype.hasOwnProperty;
35181
+ var __propIsEnum$T = Object.prototype.propertyIsEnumerable;
35182
+ var __defNormalProp$K = (obj, key, value) => key in obj ? __defProp$K(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35183
+ var __spreadValues$K = (a, b) => {
35184
+ for (var prop in b || (b = {}))
35185
+ if (__hasOwnProp$T.call(b, prop))
35186
+ __defNormalProp$K(a, prop, b[prop]);
35187
+ if (__getOwnPropSymbols$T)
35188
+ for (var prop of __getOwnPropSymbols$T(b)) {
35189
+ if (__propIsEnum$T.call(b, prop))
35190
+ __defNormalProp$K(a, prop, b[prop]);
35191
+ }
35192
+ return a;
35193
+ };
35194
+ var __spreadProps$H = (a, b) => __defProps$H(a, __getOwnPropDescs$H(b));
35195
+ const useListAccountAddons = (params) => {
35196
+ const { client } = useShipEngine();
35197
+ return reactQuery.useQuery(__spreadProps$H(__spreadValues$K({}, params), {
35198
+ onError,
35199
+ queryFn: () => client.accountAddons.list(),
35200
+ queryKey: ["useListAccountAddons"],
35201
+ select: (result) => result.data.addons
35202
+ }));
35203
+ };
35204
+
35149
35205
  var __defProp$J = Object.defineProperty;
35150
35206
  var __defProps$G = Object.defineProperties;
35151
35207
  var __getOwnPropDescs$G = Object.getOwnPropertyDescriptors;
@@ -35165,35 +35221,6 @@ var __spreadValues$J = (a, b) => {
35165
35221
  return a;
35166
35222
  };
35167
35223
  var __spreadProps$G = (a, b) => __defProps$G(a, __getOwnPropDescs$G(b));
35168
- const useListAccountAddons = (params) => {
35169
- const { client } = useShipEngine();
35170
- return reactQuery.useQuery(__spreadProps$G(__spreadValues$J({}, params), {
35171
- onError,
35172
- queryFn: () => client.accountAddons.list(),
35173
- queryKey: ["useListAccountAddons"],
35174
- select: (result) => result.data.addons
35175
- }));
35176
- };
35177
-
35178
- var __defProp$I = Object.defineProperty;
35179
- var __defProps$F = Object.defineProperties;
35180
- var __getOwnPropDescs$F = Object.getOwnPropertyDescriptors;
35181
- var __getOwnPropSymbols$R = Object.getOwnPropertySymbols;
35182
- var __hasOwnProp$R = Object.prototype.hasOwnProperty;
35183
- var __propIsEnum$R = Object.prototype.propertyIsEnumerable;
35184
- var __defNormalProp$I = (obj, key, value) => key in obj ? __defProp$I(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35185
- var __spreadValues$I = (a, b) => {
35186
- for (var prop in b || (b = {}))
35187
- if (__hasOwnProp$R.call(b, prop))
35188
- __defNormalProp$I(a, prop, b[prop]);
35189
- if (__getOwnPropSymbols$R)
35190
- for (var prop of __getOwnPropSymbols$R(b)) {
35191
- if (__propIsEnum$R.call(b, prop))
35192
- __defNormalProp$I(a, prop, b[prop]);
35193
- }
35194
- return a;
35195
- };
35196
- var __spreadProps$F = (a, b) => __defProps$F(a, __getOwnPropDescs$F(b));
35197
35224
  var __async$W = (__this, __arguments, generator) => {
35198
35225
  return new Promise((resolve, reject) => {
35199
35226
  var fulfilled = (value) => {
@@ -35216,7 +35243,7 @@ var __async$W = (__this, __arguments, generator) => {
35216
35243
  };
35217
35244
  const useEnableAccountAddon = (params) => {
35218
35245
  const { client } = useShipEngine();
35219
- return reactQuery.useMutation(__spreadProps$F(__spreadValues$I({}, params), {
35246
+ return reactQuery.useMutation(__spreadProps$G(__spreadValues$J({}, params), {
35220
35247
  mutationFn: (addonType) => __async$W(void 0, null, function* () {
35221
35248
  const result = yield client.accountAddons.enable(addonType);
35222
35249
  return result.data;
@@ -35226,6 +35253,35 @@ const useEnableAccountAddon = (params) => {
35226
35253
  }));
35227
35254
  };
35228
35255
 
35256
+ var __defProp$I = Object.defineProperty;
35257
+ var __defProps$F = Object.defineProperties;
35258
+ var __getOwnPropDescs$F = Object.getOwnPropertyDescriptors;
35259
+ var __getOwnPropSymbols$R = Object.getOwnPropertySymbols;
35260
+ var __hasOwnProp$R = Object.prototype.hasOwnProperty;
35261
+ var __propIsEnum$R = Object.prototype.propertyIsEnumerable;
35262
+ var __defNormalProp$I = (obj, key, value) => key in obj ? __defProp$I(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35263
+ var __spreadValues$I = (a, b) => {
35264
+ for (var prop in b || (b = {}))
35265
+ if (__hasOwnProp$R.call(b, prop))
35266
+ __defNormalProp$I(a, prop, b[prop]);
35267
+ if (__getOwnPropSymbols$R)
35268
+ for (var prop of __getOwnPropSymbols$R(b)) {
35269
+ if (__propIsEnum$R.call(b, prop))
35270
+ __defNormalProp$I(a, prop, b[prop]);
35271
+ }
35272
+ return a;
35273
+ };
35274
+ var __spreadProps$F = (a, b) => __defProps$F(a, __getOwnPropDescs$F(b));
35275
+ const useListAccountFeatures = (params) => {
35276
+ const { client } = useShipEngine();
35277
+ return reactQuery.useQuery(__spreadProps$F(__spreadValues$I({}, params), {
35278
+ onError,
35279
+ queryFn: () => client.accountFeatures.list(),
35280
+ queryKey: ["useListAccountFeatures"],
35281
+ select: (result) => result.data.features
35282
+ }));
35283
+ };
35284
+
35229
35285
  var __async$V = (__this, __arguments, generator) => {
35230
35286
  return new Promise((resolve, reject) => {
35231
35287
  var fulfilled = (value) => {
@@ -40158,6 +40214,7 @@ exports.AccountAddonsAPI = AccountAddonsAPI;
40158
40214
  exports.AccountBillingAPI = AccountBillingAPI;
40159
40215
  exports.AccountBillingPlanAPI = AccountBillingPlanAPI;
40160
40216
  exports.AccountBillingPlanChangeType = AccountBillingPlanChangeType;
40217
+ exports.AccountFeaturesAPI = AccountFeaturesAPI;
40161
40218
  exports.AccountSettingsAPI = AccountSettingsAPI;
40162
40219
  exports.AddressesAPI = AddressesAPI;
40163
40220
  exports.AlchemyContext = AlchemyContext;
@@ -40175,6 +40232,7 @@ exports.CustomsContentsType = CustomsContentsType;
40175
40232
  exports.CustomsNonDeliveryType = CustomsNonDeliveryType;
40176
40233
  exports.Element = Element;
40177
40234
  exports.ErrorBoundary = ErrorBoundary;
40235
+ exports.FeatureId = FeatureId;
40178
40236
  exports.FundingSourcesAPI = FundingSourcesAPI;
40179
40237
  exports.InsuranceAPI = InsuranceAPI;
40180
40238
  exports.InsuranceProviderType = InsuranceProviderType;
@@ -40294,6 +40352,7 @@ exports.useGetZonesByCarrier = useGetZonesByCarrier;
40294
40352
  exports.useI18n = useI18n;
40295
40353
  exports.useIdentityVerification = useIdentityVerification;
40296
40354
  exports.useListAccountAddons = useListAccountAddons;
40355
+ exports.useListAccountFeatures = useListAccountFeatures;
40297
40356
  exports.useListCarrierConnections = useListCarrierConnections;
40298
40357
  exports.useListCarriers = useListCarriers;
40299
40358
  exports.useListCustomPackageTypes = useListCustomPackageTypes;
package/index.mjs CHANGED
@@ -10800,17 +10800,22 @@ var AccountBillingPlanChangeType = /* @__PURE__ */ ((AccountBillingPlanChangeTyp
10800
10800
  return AccountBillingPlanChangeType2;
10801
10801
  })(AccountBillingPlanChangeType || {});
10802
10802
 
10803
- var __getOwnPropSymbols$10 = Object.getOwnPropertySymbols;
10804
- var __hasOwnProp$10 = Object.prototype.hasOwnProperty;
10805
- var __propIsEnum$10 = Object.prototype.propertyIsEnumerable;
10803
+ var FeatureId = /* @__PURE__ */ ((FeatureId2) => {
10804
+ FeatureId2[FeatureId2["SSApiAnalytics"] = 182] = "SSApiAnalytics";
10805
+ return FeatureId2;
10806
+ })(FeatureId || {});
10807
+
10808
+ var __getOwnPropSymbols$11 = Object.getOwnPropertySymbols;
10809
+ var __hasOwnProp$11 = Object.prototype.hasOwnProperty;
10810
+ var __propIsEnum$11 = Object.prototype.propertyIsEnumerable;
10806
10811
  var __objRest$x = (source, exclude) => {
10807
10812
  var target = {};
10808
10813
  for (var prop in source)
10809
- if (__hasOwnProp$10.call(source, prop) && exclude.indexOf(prop) < 0)
10814
+ if (__hasOwnProp$11.call(source, prop) && exclude.indexOf(prop) < 0)
10810
10815
  target[prop] = source[prop];
10811
- if (source != null && __getOwnPropSymbols$10)
10812
- for (var prop of __getOwnPropSymbols$10(source)) {
10813
- if (exclude.indexOf(prop) < 0 && __propIsEnum$10.call(source, prop))
10816
+ if (source != null && __getOwnPropSymbols$11)
10817
+ for (var prop of __getOwnPropSymbols$11(source)) {
10818
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$11.call(source, prop))
10814
10819
  target[prop] = source[prop];
10815
10820
  }
10816
10821
  return target;
@@ -10937,6 +10942,7 @@ const types = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
10937
10942
  Currency,
10938
10943
  CustomsContentsType,
10939
10944
  CustomsNonDeliveryType,
10945
+ FeatureId,
10940
10946
  InsuranceProviderType,
10941
10947
  MetadataCapability,
10942
10948
  MetadataRequirement,
@@ -10945,17 +10951,17 @@ const types = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
10945
10951
  RateCardStatus
10946
10952
  }, Symbol.toStringTag, { value: 'Module' }));
10947
10953
 
10948
- var __getOwnPropSymbols$$ = Object.getOwnPropertySymbols;
10949
- var __hasOwnProp$$ = Object.prototype.hasOwnProperty;
10950
- var __propIsEnum$$ = Object.prototype.propertyIsEnumerable;
10954
+ var __getOwnPropSymbols$10 = Object.getOwnPropertySymbols;
10955
+ var __hasOwnProp$10 = Object.prototype.hasOwnProperty;
10956
+ var __propIsEnum$10 = Object.prototype.propertyIsEnumerable;
10951
10957
  var __objRest$w = (source, exclude) => {
10952
10958
  var target = {};
10953
10959
  for (var prop in source)
10954
- if (__hasOwnProp$$.call(source, prop) && exclude.indexOf(prop) < 0)
10960
+ if (__hasOwnProp$10.call(source, prop) && exclude.indexOf(prop) < 0)
10955
10961
  target[prop] = source[prop];
10956
- if (source != null && __getOwnPropSymbols$$)
10957
- for (var prop of __getOwnPropSymbols$$(source)) {
10958
- if (exclude.indexOf(prop) < 0 && __propIsEnum$$.call(source, prop))
10962
+ if (source != null && __getOwnPropSymbols$10)
10963
+ for (var prop of __getOwnPropSymbols$10(source)) {
10964
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$10.call(source, prop))
10959
10965
  target[prop] = source[prop];
10960
10966
  }
10961
10967
  return target;
@@ -11026,6 +11032,20 @@ class AccountAddonsAPI {
11026
11032
  }
11027
11033
  }
11028
11034
 
11035
+ class AccountFeaturesAPI {
11036
+ constructor(client) {
11037
+ this.client = client;
11038
+ /**
11039
+ * The `list` method retrieves a list of all available features, also includes
11040
+ * if its avaiable for the current user
11041
+ */
11042
+ this.list = () => {
11043
+ return this.client.get("/v1/account/features");
11044
+ };
11045
+ this.client = client;
11046
+ }
11047
+ }
11048
+
11029
11049
  class AddressesAPI {
11030
11050
  constructor(client) {
11031
11051
  this.client = client;
@@ -13910,33 +13930,33 @@ const decamelizeKeys = (obj, separator = "_") => {
13910
13930
  return obj;
13911
13931
  };
13912
13932
 
13913
- var __defProp$P = Object.defineProperty;
13914
- var __defProps$J = Object.defineProperties;
13915
- var __getOwnPropDescs$J = Object.getOwnPropertyDescriptors;
13916
- var __getOwnPropSymbols$_ = Object.getOwnPropertySymbols;
13917
- var __hasOwnProp$_ = Object.prototype.hasOwnProperty;
13918
- var __propIsEnum$_ = Object.prototype.propertyIsEnumerable;
13919
- var __defNormalProp$P = (obj, key, value) => key in obj ? __defProp$P(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
13920
- var __spreadValues$P = (a, b) => {
13933
+ var __defProp$Q = Object.defineProperty;
13934
+ var __defProps$K = Object.defineProperties;
13935
+ var __getOwnPropDescs$K = Object.getOwnPropertyDescriptors;
13936
+ var __getOwnPropSymbols$$ = Object.getOwnPropertySymbols;
13937
+ var __hasOwnProp$$ = Object.prototype.hasOwnProperty;
13938
+ var __propIsEnum$$ = Object.prototype.propertyIsEnumerable;
13939
+ var __defNormalProp$Q = (obj, key, value) => key in obj ? __defProp$Q(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
13940
+ var __spreadValues$Q = (a, b) => {
13921
13941
  for (var prop in b || (b = {}))
13922
- if (__hasOwnProp$_.call(b, prop))
13923
- __defNormalProp$P(a, prop, b[prop]);
13924
- if (__getOwnPropSymbols$_)
13925
- for (var prop of __getOwnPropSymbols$_(b)) {
13926
- if (__propIsEnum$_.call(b, prop))
13927
- __defNormalProp$P(a, prop, b[prop]);
13942
+ if (__hasOwnProp$$.call(b, prop))
13943
+ __defNormalProp$Q(a, prop, b[prop]);
13944
+ if (__getOwnPropSymbols$$)
13945
+ for (var prop of __getOwnPropSymbols$$(b)) {
13946
+ if (__propIsEnum$$.call(b, prop))
13947
+ __defNormalProp$Q(a, prop, b[prop]);
13928
13948
  }
13929
13949
  return a;
13930
13950
  };
13931
- var __spreadProps$J = (a, b) => __defProps$J(a, __getOwnPropDescs$J(b));
13951
+ var __spreadProps$K = (a, b) => __defProps$K(a, __getOwnPropDescs$K(b));
13932
13952
  var __objRest$v = (source, exclude) => {
13933
13953
  var target = {};
13934
13954
  for (var prop in source)
13935
- if (__hasOwnProp$_.call(source, prop) && exclude.indexOf(prop) < 0)
13955
+ if (__hasOwnProp$$.call(source, prop) && exclude.indexOf(prop) < 0)
13936
13956
  target[prop] = source[prop];
13937
- if (source != null && __getOwnPropSymbols$_)
13938
- for (var prop of __getOwnPropSymbols$_(source)) {
13939
- if (exclude.indexOf(prop) < 0 && __propIsEnum$_.call(source, prop))
13957
+ if (source != null && __getOwnPropSymbols$$)
13958
+ for (var prop of __getOwnPropSymbols$$(source)) {
13959
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$$.call(source, prop))
13940
13960
  target[prop] = source[prop];
13941
13961
  }
13942
13962
  return target;
@@ -13986,7 +14006,7 @@ class CarriersAPI {
13986
14006
  const endUserIpAddress = yield getEndUserIpAddress();
13987
14007
  if (!endUserIpAddress)
13988
14008
  return Promise.reject([new CodedError("Unable to get IP address")]);
13989
- return yield this.client.post(`/v1/registration/${carrierCode}`, __spreadProps$J(__spreadValues$P({}, connection), {
14009
+ return yield this.client.post(`/v1/registration/${carrierCode}`, __spreadProps$K(__spreadValues$Q({}, connection), {
13990
14010
  endUserIpAddress
13991
14011
  }));
13992
14012
  });
@@ -14070,17 +14090,17 @@ class CarriersAPI {
14070
14090
  }
14071
14091
  }
14072
14092
 
14073
- var __getOwnPropSymbols$Z = Object.getOwnPropertySymbols;
14074
- var __hasOwnProp$Z = Object.prototype.hasOwnProperty;
14075
- var __propIsEnum$Z = Object.prototype.propertyIsEnumerable;
14093
+ var __getOwnPropSymbols$_ = Object.getOwnPropertySymbols;
14094
+ var __hasOwnProp$_ = Object.prototype.hasOwnProperty;
14095
+ var __propIsEnum$_ = Object.prototype.propertyIsEnumerable;
14076
14096
  var __objRest$u = (source, exclude) => {
14077
14097
  var target = {};
14078
14098
  for (var prop in source)
14079
- if (__hasOwnProp$Z.call(source, prop) && exclude.indexOf(prop) < 0)
14099
+ if (__hasOwnProp$_.call(source, prop) && exclude.indexOf(prop) < 0)
14080
14100
  target[prop] = source[prop];
14081
- if (source != null && __getOwnPropSymbols$Z)
14082
- for (var prop of __getOwnPropSymbols$Z(source)) {
14083
- if (exclude.indexOf(prop) < 0 && __propIsEnum$Z.call(source, prop))
14101
+ if (source != null && __getOwnPropSymbols$_)
14102
+ for (var prop of __getOwnPropSymbols$_(source)) {
14103
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$_.call(source, prop))
14084
14104
  target[prop] = source[prop];
14085
14105
  }
14086
14106
  return target;
@@ -16295,19 +16315,19 @@ class CustomPackagesAPI {
16295
16315
  }
16296
16316
  }
16297
16317
 
16298
- var __defProp$O = Object.defineProperty;
16299
- var __getOwnPropSymbols$Y = Object.getOwnPropertySymbols;
16300
- var __hasOwnProp$Y = Object.prototype.hasOwnProperty;
16301
- var __propIsEnum$Y = Object.prototype.propertyIsEnumerable;
16302
- var __defNormalProp$O = (obj, key, value) => key in obj ? __defProp$O(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
16303
- var __spreadValues$O = (a, b) => {
16318
+ var __defProp$P = Object.defineProperty;
16319
+ var __getOwnPropSymbols$Z = Object.getOwnPropertySymbols;
16320
+ var __hasOwnProp$Z = Object.prototype.hasOwnProperty;
16321
+ var __propIsEnum$Z = Object.prototype.propertyIsEnumerable;
16322
+ var __defNormalProp$P = (obj, key, value) => key in obj ? __defProp$P(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
16323
+ var __spreadValues$P = (a, b) => {
16304
16324
  for (var prop in b || (b = {}))
16305
- if (__hasOwnProp$Y.call(b, prop))
16306
- __defNormalProp$O(a, prop, b[prop]);
16307
- if (__getOwnPropSymbols$Y)
16308
- for (var prop of __getOwnPropSymbols$Y(b)) {
16309
- if (__propIsEnum$Y.call(b, prop))
16310
- __defNormalProp$O(a, prop, b[prop]);
16325
+ if (__hasOwnProp$Z.call(b, prop))
16326
+ __defNormalProp$P(a, prop, b[prop]);
16327
+ if (__getOwnPropSymbols$Z)
16328
+ for (var prop of __getOwnPropSymbols$Z(b)) {
16329
+ if (__propIsEnum$Z.call(b, prop))
16330
+ __defNormalProp$P(a, prop, b[prop]);
16311
16331
  }
16312
16332
  return a;
16313
16333
  };
@@ -16355,7 +16375,7 @@ class FundingSourcesAPI {
16355
16375
  if (!endUserIpAddress) {
16356
16376
  return Promise.reject([new CodedError("Unable to get IP address")]);
16357
16377
  }
16358
- return yield this.client.post("/v1/funding_sources", __spreadValues$O({
16378
+ return yield this.client.post("/v1/funding_sources", __spreadValues$P({
16359
16379
  endUserIpAddress
16360
16380
  }, createFundingSource));
16361
16381
  });
@@ -16374,7 +16394,7 @@ class FundingSourcesAPI {
16374
16394
  {
16375
16395
  billingInfo,
16376
16396
  endUserIpAddress,
16377
- paymentMethod: __spreadValues$O({
16397
+ paymentMethod: __spreadValues$P({
16378
16398
  creditCardInfo
16379
16399
  }, auctanePayInfo)
16380
16400
  }
@@ -16389,7 +16409,7 @@ class FundingSourcesAPI {
16389
16409
  if (!endUserIpAddress) {
16390
16410
  return Promise.reject([new CodedError("Unable to get IP address")]);
16391
16411
  }
16392
- return yield this.client.post("/v1/registration/funding_source", __spreadValues$O({
16412
+ return yield this.client.post("/v1/registration/funding_source", __spreadValues$P({
16393
16413
  endUserIpAddress
16394
16414
  }, carrier));
16395
16415
  });
@@ -16558,17 +16578,17 @@ class LabelsAPI {
16558
16578
  }
16559
16579
  }
16560
16580
 
16561
- var __getOwnPropSymbols$X = Object.getOwnPropertySymbols;
16562
- var __hasOwnProp$X = Object.prototype.hasOwnProperty;
16563
- var __propIsEnum$X = Object.prototype.propertyIsEnumerable;
16581
+ var __getOwnPropSymbols$Y = Object.getOwnPropertySymbols;
16582
+ var __hasOwnProp$Y = Object.prototype.hasOwnProperty;
16583
+ var __propIsEnum$Y = Object.prototype.propertyIsEnumerable;
16564
16584
  var __objRest$t = (source, exclude) => {
16565
16585
  var target = {};
16566
16586
  for (var prop in source)
16567
- if (__hasOwnProp$X.call(source, prop) && exclude.indexOf(prop) < 0)
16587
+ if (__hasOwnProp$Y.call(source, prop) && exclude.indexOf(prop) < 0)
16568
16588
  target[prop] = source[prop];
16569
- if (source != null && __getOwnPropSymbols$X)
16570
- for (var prop of __getOwnPropSymbols$X(source)) {
16571
- if (exclude.indexOf(prop) < 0 && __propIsEnum$X.call(source, prop))
16589
+ if (source != null && __getOwnPropSymbols$Y)
16590
+ for (var prop of __getOwnPropSymbols$Y(source)) {
16591
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$Y.call(source, prop))
16572
16592
  target[prop] = source[prop];
16573
16593
  }
16574
16594
  return target;
@@ -16689,19 +16709,19 @@ class RateCardsAPI {
16689
16709
  }
16690
16710
  }
16691
16711
 
16692
- var __defProp$N = Object.defineProperty;
16693
- var __getOwnPropSymbols$W = Object.getOwnPropertySymbols;
16694
- var __hasOwnProp$W = Object.prototype.hasOwnProperty;
16695
- var __propIsEnum$W = Object.prototype.propertyIsEnumerable;
16696
- var __defNormalProp$N = (obj, key, value) => key in obj ? __defProp$N(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
16697
- var __spreadValues$N = (a, b) => {
16712
+ var __defProp$O = Object.defineProperty;
16713
+ var __getOwnPropSymbols$X = Object.getOwnPropertySymbols;
16714
+ var __hasOwnProp$X = Object.prototype.hasOwnProperty;
16715
+ var __propIsEnum$X = Object.prototype.propertyIsEnumerable;
16716
+ var __defNormalProp$O = (obj, key, value) => key in obj ? __defProp$O(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
16717
+ var __spreadValues$O = (a, b) => {
16698
16718
  for (var prop in b || (b = {}))
16699
- if (__hasOwnProp$W.call(b, prop))
16700
- __defNormalProp$N(a, prop, b[prop]);
16701
- if (__getOwnPropSymbols$W)
16702
- for (var prop of __getOwnPropSymbols$W(b)) {
16703
- if (__propIsEnum$W.call(b, prop))
16704
- __defNormalProp$N(a, prop, b[prop]);
16719
+ if (__hasOwnProp$X.call(b, prop))
16720
+ __defNormalProp$O(a, prop, b[prop]);
16721
+ if (__getOwnPropSymbols$X)
16722
+ for (var prop of __getOwnPropSymbols$X(b)) {
16723
+ if (__propIsEnum$X.call(b, prop))
16724
+ __defNormalProp$O(a, prop, b[prop]);
16705
16725
  }
16706
16726
  return a;
16707
16727
  };
@@ -16723,7 +16743,7 @@ class RatesAPI {
16723
16743
  * method.
16724
16744
  */
16725
16745
  this.estimate = (params) => {
16726
- return this.client.post("/v1/rates/estimate", __spreadValues$N({}, params));
16746
+ return this.client.post("/v1/rates/estimate", __spreadValues$O({}, params));
16727
16747
  };
16728
16748
  this.client = client;
16729
16749
  }
@@ -16907,19 +16927,19 @@ class SellersAPI {
16907
16927
  }
16908
16928
  }
16909
16929
 
16910
- var __defProp$M = Object.defineProperty;
16911
- var __getOwnPropSymbols$V = Object.getOwnPropertySymbols;
16912
- var __hasOwnProp$V = Object.prototype.hasOwnProperty;
16913
- var __propIsEnum$V = Object.prototype.propertyIsEnumerable;
16914
- var __defNormalProp$M = (obj, key, value) => key in obj ? __defProp$M(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
16915
- var __spreadValues$M = (a, b) => {
16930
+ var __defProp$N = Object.defineProperty;
16931
+ var __getOwnPropSymbols$W = Object.getOwnPropertySymbols;
16932
+ var __hasOwnProp$W = Object.prototype.hasOwnProperty;
16933
+ var __propIsEnum$W = Object.prototype.propertyIsEnumerable;
16934
+ var __defNormalProp$N = (obj, key, value) => key in obj ? __defProp$N(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
16935
+ var __spreadValues$N = (a, b) => {
16916
16936
  for (var prop in b || (b = {}))
16917
- if (__hasOwnProp$V.call(b, prop))
16918
- __defNormalProp$M(a, prop, b[prop]);
16919
- if (__getOwnPropSymbols$V)
16920
- for (var prop of __getOwnPropSymbols$V(b)) {
16921
- if (__propIsEnum$V.call(b, prop))
16922
- __defNormalProp$M(a, prop, b[prop]);
16937
+ if (__hasOwnProp$W.call(b, prop))
16938
+ __defNormalProp$N(a, prop, b[prop]);
16939
+ if (__getOwnPropSymbols$W)
16940
+ for (var prop of __getOwnPropSymbols$W(b)) {
16941
+ if (__propIsEnum$W.call(b, prop))
16942
+ __defNormalProp$N(a, prop, b[prop]);
16923
16943
  }
16924
16944
  return a;
16925
16945
  };
@@ -16931,7 +16951,7 @@ class ServicePointsAPI {
16931
16951
  * Either an address, coordinates, or an address query
16932
16952
  */
16933
16953
  this.list = (options) => {
16934
- return this.client.post("/v1/service_points/list", __spreadValues$M({}, options));
16954
+ return this.client.post("/v1/service_points/list", __spreadValues$N({}, options));
16935
16955
  };
16936
16956
  /**
16937
16957
  * Get a specific service point by its carrier code, country code, and id
@@ -34415,33 +34435,33 @@ class WebhooksAPI {
34415
34435
  }
34416
34436
  }
34417
34437
 
34418
- var __defProp$L = Object.defineProperty;
34419
- var __defProps$I = Object.defineProperties;
34420
- var __getOwnPropDescs$I = Object.getOwnPropertyDescriptors;
34421
- var __getOwnPropSymbols$U = Object.getOwnPropertySymbols;
34422
- var __hasOwnProp$U = Object.prototype.hasOwnProperty;
34423
- var __propIsEnum$U = Object.prototype.propertyIsEnumerable;
34424
- var __defNormalProp$L = (obj, key, value) => key in obj ? __defProp$L(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
34425
- var __spreadValues$L = (a, b) => {
34438
+ var __defProp$M = Object.defineProperty;
34439
+ var __defProps$J = Object.defineProperties;
34440
+ var __getOwnPropDescs$J = Object.getOwnPropertyDescriptors;
34441
+ var __getOwnPropSymbols$V = Object.getOwnPropertySymbols;
34442
+ var __hasOwnProp$V = Object.prototype.hasOwnProperty;
34443
+ var __propIsEnum$V = Object.prototype.propertyIsEnumerable;
34444
+ var __defNormalProp$M = (obj, key, value) => key in obj ? __defProp$M(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
34445
+ var __spreadValues$M = (a, b) => {
34426
34446
  for (var prop in b || (b = {}))
34427
- if (__hasOwnProp$U.call(b, prop))
34428
- __defNormalProp$L(a, prop, b[prop]);
34429
- if (__getOwnPropSymbols$U)
34430
- for (var prop of __getOwnPropSymbols$U(b)) {
34431
- if (__propIsEnum$U.call(b, prop))
34432
- __defNormalProp$L(a, prop, b[prop]);
34447
+ if (__hasOwnProp$V.call(b, prop))
34448
+ __defNormalProp$M(a, prop, b[prop]);
34449
+ if (__getOwnPropSymbols$V)
34450
+ for (var prop of __getOwnPropSymbols$V(b)) {
34451
+ if (__propIsEnum$V.call(b, prop))
34452
+ __defNormalProp$M(a, prop, b[prop]);
34433
34453
  }
34434
34454
  return a;
34435
34455
  };
34436
- var __spreadProps$I = (a, b) => __defProps$I(a, __getOwnPropDescs$I(b));
34456
+ var __spreadProps$J = (a, b) => __defProps$J(a, __getOwnPropDescs$J(b));
34437
34457
  var __objRest$s = (source, exclude) => {
34438
34458
  var target = {};
34439
34459
  for (var prop in source)
34440
- if (__hasOwnProp$U.call(source, prop) && exclude.indexOf(prop) < 0)
34460
+ if (__hasOwnProp$V.call(source, prop) && exclude.indexOf(prop) < 0)
34441
34461
  target[prop] = source[prop];
34442
- if (source != null && __getOwnPropSymbols$U)
34443
- for (var prop of __getOwnPropSymbols$U(source)) {
34444
- if (exclude.indexOf(prop) < 0 && __propIsEnum$U.call(source, prop))
34462
+ if (source != null && __getOwnPropSymbols$V)
34463
+ for (var prop of __getOwnPropSymbols$V(source)) {
34464
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$V.call(source, prop))
34445
34465
  target[prop] = source[prop];
34446
34466
  }
34447
34467
  return target;
@@ -34469,7 +34489,7 @@ var __async$$ = (__this, __arguments, generator) => {
34469
34489
  const logger$1 = E({
34470
34490
  level: process.env.NODE_ENV === "production" ? "fatal" : "info",
34471
34491
  name: "shipengine-api",
34472
- serializers: __spreadProps$I(__spreadValues$L({}, k), {
34492
+ serializers: __spreadProps$J(__spreadValues$M({}, k), {
34473
34493
  req: (req) => ({
34474
34494
  headers: req.headers,
34475
34495
  method: req.method,
@@ -34494,7 +34514,7 @@ class ShipEngineAPI {
34494
34514
  this.getSandboxToken = getSandboxToken;
34495
34515
  const client = axios.create({
34496
34516
  baseURL,
34497
- headers: __spreadProps$I(__spreadValues$L({}, headers), {
34517
+ headers: __spreadProps$J(__spreadValues$M({}, headers), {
34498
34518
  "Content-Type": "application/json"
34499
34519
  }),
34500
34520
  paramsSerializer: (params) => lib.stringify(decamelizeKeys(params), { arrayFormat: "brackets" }),
@@ -34656,6 +34676,13 @@ class ShipEngineAPI {
34656
34676
  get accountAddons() {
34657
34677
  return new AccountAddonsAPI(this.client);
34658
34678
  }
34679
+ /**
34680
+ * The `accountFeatures` method provides access to the Account Features endpoints
34681
+ * in ShipEngine API.
34682
+ */
34683
+ get accountFeatures() {
34684
+ return new AccountFeaturesAPI(this.client);
34685
+ }
34659
34686
  /**
34660
34687
  * The `accountBilling` method provides access to the Account Billing (Recurly) endpoints
34661
34688
  * in ShipEngine API.
@@ -34924,25 +34951,25 @@ const delay = (ms) => new Promise((resolve) => {
34924
34951
 
34925
34952
  const onError = (_errors) => _default();
34926
34953
 
34927
- var __defProp$K = Object.defineProperty;
34928
- var __defProps$H = Object.defineProperties;
34929
- var __getOwnPropDescs$H = Object.getOwnPropertyDescriptors;
34930
- var __getOwnPropSymbols$T = Object.getOwnPropertySymbols;
34931
- var __hasOwnProp$T = Object.prototype.hasOwnProperty;
34932
- var __propIsEnum$T = Object.prototype.propertyIsEnumerable;
34933
- var __defNormalProp$K = (obj, key, value) => key in obj ? __defProp$K(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
34934
- var __spreadValues$K = (a, b) => {
34954
+ var __defProp$L = Object.defineProperty;
34955
+ var __defProps$I = Object.defineProperties;
34956
+ var __getOwnPropDescs$I = Object.getOwnPropertyDescriptors;
34957
+ var __getOwnPropSymbols$U = Object.getOwnPropertySymbols;
34958
+ var __hasOwnProp$U = Object.prototype.hasOwnProperty;
34959
+ var __propIsEnum$U = Object.prototype.propertyIsEnumerable;
34960
+ var __defNormalProp$L = (obj, key, value) => key in obj ? __defProp$L(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
34961
+ var __spreadValues$L = (a, b) => {
34935
34962
  for (var prop in b || (b = {}))
34936
- if (__hasOwnProp$T.call(b, prop))
34937
- __defNormalProp$K(a, prop, b[prop]);
34938
- if (__getOwnPropSymbols$T)
34939
- for (var prop of __getOwnPropSymbols$T(b)) {
34940
- if (__propIsEnum$T.call(b, prop))
34941
- __defNormalProp$K(a, prop, b[prop]);
34963
+ if (__hasOwnProp$U.call(b, prop))
34964
+ __defNormalProp$L(a, prop, b[prop]);
34965
+ if (__getOwnPropSymbols$U)
34966
+ for (var prop of __getOwnPropSymbols$U(b)) {
34967
+ if (__propIsEnum$U.call(b, prop))
34968
+ __defNormalProp$L(a, prop, b[prop]);
34942
34969
  }
34943
34970
  return a;
34944
34971
  };
34945
- var __spreadProps$H = (a, b) => __defProps$H(a, __getOwnPropDescs$H(b));
34972
+ var __spreadProps$I = (a, b) => __defProps$I(a, __getOwnPropDescs$I(b));
34946
34973
  const streams = [];
34947
34974
  if (process.env.NODE_ENV === "production") {
34948
34975
  streams.push({
@@ -34951,7 +34978,7 @@ if (process.env.NODE_ENV === "production") {
34951
34978
  }
34952
34979
  const logger = E({
34953
34980
  name: "shipengine",
34954
- serializers: __spreadProps$H(__spreadValues$K({}, k), {
34981
+ serializers: __spreadProps$I(__spreadValues$L({}, k), {
34955
34982
  req: (req) => ({
34956
34983
  headers: req.headers,
34957
34984
  method: req.method,
@@ -35124,6 +35151,35 @@ const useUpdateAccountSettings = () => {
35124
35151
  });
35125
35152
  };
35126
35153
 
35154
+ var __defProp$K = Object.defineProperty;
35155
+ var __defProps$H = Object.defineProperties;
35156
+ var __getOwnPropDescs$H = Object.getOwnPropertyDescriptors;
35157
+ var __getOwnPropSymbols$T = Object.getOwnPropertySymbols;
35158
+ var __hasOwnProp$T = Object.prototype.hasOwnProperty;
35159
+ var __propIsEnum$T = Object.prototype.propertyIsEnumerable;
35160
+ var __defNormalProp$K = (obj, key, value) => key in obj ? __defProp$K(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35161
+ var __spreadValues$K = (a, b) => {
35162
+ for (var prop in b || (b = {}))
35163
+ if (__hasOwnProp$T.call(b, prop))
35164
+ __defNormalProp$K(a, prop, b[prop]);
35165
+ if (__getOwnPropSymbols$T)
35166
+ for (var prop of __getOwnPropSymbols$T(b)) {
35167
+ if (__propIsEnum$T.call(b, prop))
35168
+ __defNormalProp$K(a, prop, b[prop]);
35169
+ }
35170
+ return a;
35171
+ };
35172
+ var __spreadProps$H = (a, b) => __defProps$H(a, __getOwnPropDescs$H(b));
35173
+ const useListAccountAddons = (params) => {
35174
+ const { client } = useShipEngine();
35175
+ return useQuery(__spreadProps$H(__spreadValues$K({}, params), {
35176
+ onError,
35177
+ queryFn: () => client.accountAddons.list(),
35178
+ queryKey: ["useListAccountAddons"],
35179
+ select: (result) => result.data.addons
35180
+ }));
35181
+ };
35182
+
35127
35183
  var __defProp$J = Object.defineProperty;
35128
35184
  var __defProps$G = Object.defineProperties;
35129
35185
  var __getOwnPropDescs$G = Object.getOwnPropertyDescriptors;
@@ -35143,35 +35199,6 @@ var __spreadValues$J = (a, b) => {
35143
35199
  return a;
35144
35200
  };
35145
35201
  var __spreadProps$G = (a, b) => __defProps$G(a, __getOwnPropDescs$G(b));
35146
- const useListAccountAddons = (params) => {
35147
- const { client } = useShipEngine();
35148
- return useQuery(__spreadProps$G(__spreadValues$J({}, params), {
35149
- onError,
35150
- queryFn: () => client.accountAddons.list(),
35151
- queryKey: ["useListAccountAddons"],
35152
- select: (result) => result.data.addons
35153
- }));
35154
- };
35155
-
35156
- var __defProp$I = Object.defineProperty;
35157
- var __defProps$F = Object.defineProperties;
35158
- var __getOwnPropDescs$F = Object.getOwnPropertyDescriptors;
35159
- var __getOwnPropSymbols$R = Object.getOwnPropertySymbols;
35160
- var __hasOwnProp$R = Object.prototype.hasOwnProperty;
35161
- var __propIsEnum$R = Object.prototype.propertyIsEnumerable;
35162
- var __defNormalProp$I = (obj, key, value) => key in obj ? __defProp$I(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35163
- var __spreadValues$I = (a, b) => {
35164
- for (var prop in b || (b = {}))
35165
- if (__hasOwnProp$R.call(b, prop))
35166
- __defNormalProp$I(a, prop, b[prop]);
35167
- if (__getOwnPropSymbols$R)
35168
- for (var prop of __getOwnPropSymbols$R(b)) {
35169
- if (__propIsEnum$R.call(b, prop))
35170
- __defNormalProp$I(a, prop, b[prop]);
35171
- }
35172
- return a;
35173
- };
35174
- var __spreadProps$F = (a, b) => __defProps$F(a, __getOwnPropDescs$F(b));
35175
35202
  var __async$W = (__this, __arguments, generator) => {
35176
35203
  return new Promise((resolve, reject) => {
35177
35204
  var fulfilled = (value) => {
@@ -35194,7 +35221,7 @@ var __async$W = (__this, __arguments, generator) => {
35194
35221
  };
35195
35222
  const useEnableAccountAddon = (params) => {
35196
35223
  const { client } = useShipEngine();
35197
- return useMutation(__spreadProps$F(__spreadValues$I({}, params), {
35224
+ return useMutation(__spreadProps$G(__spreadValues$J({}, params), {
35198
35225
  mutationFn: (addonType) => __async$W(void 0, null, function* () {
35199
35226
  const result = yield client.accountAddons.enable(addonType);
35200
35227
  return result.data;
@@ -35204,6 +35231,35 @@ const useEnableAccountAddon = (params) => {
35204
35231
  }));
35205
35232
  };
35206
35233
 
35234
+ var __defProp$I = Object.defineProperty;
35235
+ var __defProps$F = Object.defineProperties;
35236
+ var __getOwnPropDescs$F = Object.getOwnPropertyDescriptors;
35237
+ var __getOwnPropSymbols$R = Object.getOwnPropertySymbols;
35238
+ var __hasOwnProp$R = Object.prototype.hasOwnProperty;
35239
+ var __propIsEnum$R = Object.prototype.propertyIsEnumerable;
35240
+ var __defNormalProp$I = (obj, key, value) => key in obj ? __defProp$I(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35241
+ var __spreadValues$I = (a, b) => {
35242
+ for (var prop in b || (b = {}))
35243
+ if (__hasOwnProp$R.call(b, prop))
35244
+ __defNormalProp$I(a, prop, b[prop]);
35245
+ if (__getOwnPropSymbols$R)
35246
+ for (var prop of __getOwnPropSymbols$R(b)) {
35247
+ if (__propIsEnum$R.call(b, prop))
35248
+ __defNormalProp$I(a, prop, b[prop]);
35249
+ }
35250
+ return a;
35251
+ };
35252
+ var __spreadProps$F = (a, b) => __defProps$F(a, __getOwnPropDescs$F(b));
35253
+ const useListAccountFeatures = (params) => {
35254
+ const { client } = useShipEngine();
35255
+ return useQuery(__spreadProps$F(__spreadValues$I({}, params), {
35256
+ onError,
35257
+ queryFn: () => client.accountFeatures.list(),
35258
+ queryKey: ["useListAccountFeatures"],
35259
+ select: (result) => result.data.features
35260
+ }));
35261
+ };
35262
+
35207
35263
  var __async$V = (__this, __arguments, generator) => {
35208
35264
  return new Promise((resolve, reject) => {
35209
35265
  var fulfilled = (value) => {
@@ -40132,4 +40188,4 @@ const alchemy = {
40132
40188
  createElement
40133
40189
  };
40134
40190
 
40135
- export { AccountAddonsAPI, AccountBillingAPI, AccountBillingPlanAPI, AccountBillingPlanChangeType, AccountSettingsAPI, AddressesAPI, AlchemyContext, AlchemyProvider, AlchemyTestProvider, AuctanePayAPI, CarriersAPI, CodedError, ConfirmationType, ConnectionsAPI, CreditCardVendor, Currency, CustomPackagesAPI, CustomsContentsType, CustomsNonDeliveryType, Element, ErrorBoundary, FundingSourcesAPI, InsuranceAPI, InsuranceProviderType, InvoiceAddressAPI, LabelsAPI, MetadataCapability, MetadataRequirement, MetadataSatisfyingFormTypes, MovementIndicator, OrderSourcesAPI, RateCardStatus, RateCardsAPI, RatesAPI, types as SE, SalesOrderShipmentsAPI, SalesOrdersAPI, SellersAPI, ServicePointsAPI, ShipEngine, ShipEngineAPI, ShipEngineContext, ShipmentsAPI, ShippingRulesAPI, ThemesAPI, UsersApi, WarehousesAPI, WebhooksAPI, alchemy, camelizeKeys, decamelizeKeys, alchemy as default, delay, getEmotionCache, getEndUserIpAddress, isCodedError, isCodedErrors, isDataCodedErrors, isInvalidTokenError, logger, onError, parseError, retryUntil, useAddFunds, useAddInsuranceFunds, useAddSandboxCarriers, useAlchemy, useCalculateRates, useCancelShipment, useCarrierConnectionsServicesList, useConnectCarrier, useConnectCarrierAccount, useCreateAccountImage, useCreateAuctanePaySession, useCreateFundingSource, useCreateInvoiceAddress, useCreateLabel, useCreateLabelByRateId, useCreateLabelByShipmentId, useCreateRateCard, useCreateSalesOrderShipment, useCreateSandboxSeller, useCreateSellerApiKey, useCreateShipment, useCreateShippingRule, useCreateWarehouse, useCreateWebhook, useDeactivateOrderSource, useDeleteAccountImage, useDeleteCarrier, useDeletePaymentMethod, useDeleteRateCard, useDeleteSellerApiKey, useDeleteShippingRule, useDeleteWarehouse, useDeleteWebhook, useDownloadRateCard, useEditShippingRule, useEnableAccountAddon, useExportLabels, useExportShipments, useFundingSourcesAddFunds, useGetAccountBilling, useGetAccountBillingPlan, useGetAccountImages, useGetAccountSettings, useGetAuctanePayConfig, useGetAutoFundingConfiguration, useGetCarrierById, useGetCarrierConnectionForm, useGetConnectionsCarrierSettings, useGetCountriesByCarrier, useGetCurrenciesByCarrier, useGetFundingSourceById, useGetFundingSourceMetadata, useGetFundingSourceTransactions, useGetHereToken, useGetInsuranceAccount, useGetInsuranceFundingSourceAcceptedTerms, useGetInvoiceAddress, useGetLabel, useGetPackageRatingGroupByCarrier, useGetPaymentAccount, useGetPaymentMethods, useGetRateCardById, useGetSalesOrder, useGetSalesOrderByExternalOrderId, useGetSalesOrderShipment, useGetServicePoint, useGetServicesByCarrier, useGetShipment, useGetShipmentByExternalId, useGetShipmentRates, useGetShippingRuleById, useGetShippingRuleConditionsOptions, useGetThemeById, useGetZonesByCarrier, useI18n, useIdentityVerification, useListAccountAddons, useListCarrierConnections, useListCarriers, useListCustomPackageTypes, useListFundingSources, useListLabels, useListLabelsInfinite, useListOrderSources, useListOrderSourcesConnections, useListRateCards, useListSalesOrderShipments, useListSalesOrderShipmentsByExternalOrderId, useListSalesOrders, useListSandboxSellerIds, useListSellerApiKeys, useListServicePoints, useListShipments, useListShippingRules, useListUsers, useListWarehouses, useListWebhooks, useLoadIcons, useNotifySalesOrderShipped, useParseAddress, usePreviewTransaction, usePublishRateCard, useRatesEstimate, useRefreshOrderSource, useRefreshOrderSourceAsync, useRegisterCarrier, useRequestStampsAccountUrls, useShipEngine, useUpdateAccountBillingPlan, useUpdateAccountImage, useUpdateAccountSettings, useUpdateAutoFunding, useUpdateConnectionsCarrierSettings, useUpdateFundingSource, useUpdateInvoiceAddress, useUpdateOrderSource, useUpdatePaymentMethod, useUpdateRateCard, useUpdateSalesOrderShipment, useUpdateWarehouse, useUpdateWebhook, useUploadRateCard, useUpsertAccountBilling, useValidateAddresses, useVoidLabel };
40191
+ export { AccountAddonsAPI, AccountBillingAPI, AccountBillingPlanAPI, AccountBillingPlanChangeType, AccountFeaturesAPI, AccountSettingsAPI, AddressesAPI, AlchemyContext, AlchemyProvider, AlchemyTestProvider, AuctanePayAPI, CarriersAPI, CodedError, ConfirmationType, ConnectionsAPI, CreditCardVendor, Currency, CustomPackagesAPI, CustomsContentsType, CustomsNonDeliveryType, Element, ErrorBoundary, FeatureId, 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, UsersApi, WarehousesAPI, WebhooksAPI, alchemy, camelizeKeys, decamelizeKeys, alchemy as default, delay, getEmotionCache, getEndUserIpAddress, isCodedError, isCodedErrors, isDataCodedErrors, isInvalidTokenError, logger, onError, parseError, retryUntil, useAddFunds, useAddInsuranceFunds, useAddSandboxCarriers, useAlchemy, useCalculateRates, useCancelShipment, useCarrierConnectionsServicesList, useConnectCarrier, useConnectCarrierAccount, useCreateAccountImage, useCreateAuctanePaySession, useCreateFundingSource, useCreateInvoiceAddress, useCreateLabel, useCreateLabelByRateId, useCreateLabelByShipmentId, useCreateRateCard, useCreateSalesOrderShipment, useCreateSandboxSeller, useCreateSellerApiKey, useCreateShipment, useCreateShippingRule, useCreateWarehouse, useCreateWebhook, useDeactivateOrderSource, useDeleteAccountImage, useDeleteCarrier, useDeletePaymentMethod, useDeleteRateCard, useDeleteSellerApiKey, useDeleteShippingRule, useDeleteWarehouse, useDeleteWebhook, useDownloadRateCard, useEditShippingRule, useEnableAccountAddon, useExportLabels, useExportShipments, useFundingSourcesAddFunds, useGetAccountBilling, useGetAccountBillingPlan, useGetAccountImages, useGetAccountSettings, useGetAuctanePayConfig, useGetAutoFundingConfiguration, useGetCarrierById, useGetCarrierConnectionForm, useGetConnectionsCarrierSettings, useGetCountriesByCarrier, useGetCurrenciesByCarrier, useGetFundingSourceById, useGetFundingSourceMetadata, useGetFundingSourceTransactions, useGetHereToken, useGetInsuranceAccount, useGetInsuranceFundingSourceAcceptedTerms, useGetInvoiceAddress, useGetLabel, useGetPackageRatingGroupByCarrier, useGetPaymentAccount, useGetPaymentMethods, useGetRateCardById, useGetSalesOrder, useGetSalesOrderByExternalOrderId, useGetSalesOrderShipment, useGetServicePoint, useGetServicesByCarrier, useGetShipment, useGetShipmentByExternalId, useGetShipmentRates, useGetShippingRuleById, useGetShippingRuleConditionsOptions, useGetThemeById, useGetZonesByCarrier, useI18n, useIdentityVerification, useListAccountAddons, useListAccountFeatures, useListCarrierConnections, useListCarriers, useListCustomPackageTypes, useListFundingSources, useListLabels, useListLabelsInfinite, useListOrderSources, useListOrderSourcesConnections, useListRateCards, useListSalesOrderShipments, useListSalesOrderShipmentsByExternalOrderId, useListSalesOrders, useListSandboxSellerIds, useListSellerApiKeys, useListServicePoints, useListShipments, useListShippingRules, useListUsers, useListWarehouses, useListWebhooks, useLoadIcons, useNotifySalesOrderShipped, useParseAddress, usePreviewTransaction, usePublishRateCard, useRatesEstimate, useRefreshOrderSource, useRefreshOrderSourceAsync, useRegisterCarrier, useRequestStampsAccountUrls, useShipEngine, useUpdateAccountBillingPlan, useUpdateAccountImage, useUpdateAccountSettings, useUpdateAutoFunding, useUpdateConnectionsCarrierSettings, useUpdateFundingSource, useUpdateInvoiceAddress, useUpdateOrderSource, useUpdatePaymentMethod, useUpdateRateCard, useUpdateSalesOrderShipment, useUpdateWarehouse, useUpdateWebhook, useUploadRateCard, useUpsertAccountBilling, useValidateAddresses, useVoidLabel };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shipengine/alchemy",
3
- "version": "6.0.70",
3
+ "version": "6.0.74-next.0",
4
4
  "main": "./index.js",
5
5
  "types": "./index.d.ts",
6
6
  "exports": {