@shipengine/alchemy 6.0.77-next.0 → 6.0.78-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 +322 -248
  2. package/index.mjs +322 -249
  3. package/package.json +1 -1
package/index.js CHANGED
@@ -2288,7 +2288,7 @@ var syncFallback = function syncFallback(create) {
2288
2288
  var useInsertionEffect = React__namespace['useInsertion' + 'Effect'] ? React__namespace['useInsertion' + 'Effect'] : false;
2289
2289
  var useInsertionEffectAlwaysWithSyncFallback = useInsertionEffect || syncFallback;
2290
2290
 
2291
- var hasOwnProperty$c = {}.hasOwnProperty;
2291
+ var hasOwnProperty$b = {}.hasOwnProperty;
2292
2292
 
2293
2293
  var EmotionCacheContext = /* #__PURE__ */React.createContext( // we're doing this to avoid preconstruct's dead code elimination in this one case
2294
2294
  // because this module is primarily intended for the browser and node
@@ -2375,7 +2375,7 @@ var createEmotionProps = function createEmotionProps(type, props) {
2375
2375
  var newProps = {};
2376
2376
 
2377
2377
  for (var key in props) {
2378
- if (hasOwnProperty$c.call(props, key)) {
2378
+ if (hasOwnProperty$b.call(props, key)) {
2379
2379
  newProps[key] = props[key];
2380
2380
  }
2381
2381
  }
@@ -2436,7 +2436,7 @@ var Emotion = /* #__PURE__ */withEmotionCache(function (props, cache, ref) {
2436
2436
  var newProps = {};
2437
2437
 
2438
2438
  for (var key in props) {
2439
- if (hasOwnProperty$c.call(props, key) && key !== 'css' && key !== typePropName && (process.env.NODE_ENV === 'production' || key !== labelPropName)) {
2439
+ if (hasOwnProperty$b.call(props, key) && key !== 'css' && key !== typePropName && (process.env.NODE_ENV === 'production' || key !== labelPropName)) {
2440
2440
  newProps[key] = props[key];
2441
2441
  }
2442
2442
  }
@@ -2455,7 +2455,7 @@ if (process.env.NODE_ENV !== 'production') {
2455
2455
  }
2456
2456
 
2457
2457
  function jsx(type, props, key) {
2458
- if (!hasOwnProperty$c.call(props, 'css')) {
2458
+ if (!hasOwnProperty$b.call(props, 'css')) {
2459
2459
  return jsxRuntime.jsx(type, props, key);
2460
2460
  }
2461
2461
 
@@ -3467,17 +3467,17 @@ var _Symbol = Symbol$7;
3467
3467
  var Symbol$6 = _Symbol;
3468
3468
 
3469
3469
  /** Used for built-in method references. */
3470
- var objectProto$e = Object.prototype;
3470
+ var objectProto$d = Object.prototype;
3471
3471
 
3472
3472
  /** Used to check objects for own properties. */
3473
- var hasOwnProperty$b = objectProto$e.hasOwnProperty;
3473
+ var hasOwnProperty$a = objectProto$d.hasOwnProperty;
3474
3474
 
3475
3475
  /**
3476
3476
  * Used to resolve the
3477
3477
  * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
3478
3478
  * of values.
3479
3479
  */
3480
- var nativeObjectToString$1 = objectProto$e.toString;
3480
+ var nativeObjectToString$1 = objectProto$d.toString;
3481
3481
 
3482
3482
  /** Built-in value references. */
3483
3483
  var symToStringTag$1 = Symbol$6 ? Symbol$6.toStringTag : undefined;
@@ -3490,7 +3490,7 @@ var symToStringTag$1 = Symbol$6 ? Symbol$6.toStringTag : undefined;
3490
3490
  * @returns {string} Returns the raw `toStringTag`.
3491
3491
  */
3492
3492
  function getRawTag$1(value) {
3493
- var isOwn = hasOwnProperty$b.call(value, symToStringTag$1),
3493
+ var isOwn = hasOwnProperty$a.call(value, symToStringTag$1),
3494
3494
  tag = value[symToStringTag$1];
3495
3495
 
3496
3496
  try {
@@ -3513,14 +3513,14 @@ var _getRawTag = getRawTag$1;
3513
3513
 
3514
3514
  /** Used for built-in method references. */
3515
3515
 
3516
- var objectProto$d = Object.prototype;
3516
+ var objectProto$c = Object.prototype;
3517
3517
 
3518
3518
  /**
3519
3519
  * Used to resolve the
3520
3520
  * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
3521
3521
  * of values.
3522
3522
  */
3523
- var nativeObjectToString = objectProto$d.toString;
3523
+ var nativeObjectToString = objectProto$c.toString;
3524
3524
 
3525
3525
  /**
3526
3526
  * Converts `value` to a string using `Object.prototype.toString`.
@@ -3553,7 +3553,7 @@ var symToStringTag = Symbol$5 ? Symbol$5.toStringTag : undefined;
3553
3553
  * @param {*} value The value to query.
3554
3554
  * @returns {string} Returns the `toStringTag`.
3555
3555
  */
3556
- function baseGetTag$6(value) {
3556
+ function baseGetTag$5(value) {
3557
3557
  if (value == null) {
3558
3558
  return value === undefined ? undefinedTag : nullTag;
3559
3559
  }
@@ -3562,7 +3562,7 @@ function baseGetTag$6(value) {
3562
3562
  : objectToString$1(value);
3563
3563
  }
3564
3564
 
3565
- var _baseGetTag = baseGetTag$6;
3565
+ var _baseGetTag = baseGetTag$5;
3566
3566
 
3567
3567
  /**
3568
3568
  * Checks if `value` is the
@@ -3597,7 +3597,7 @@ function isObject$8(value) {
3597
3597
 
3598
3598
  var isObject_1 = isObject$8;
3599
3599
 
3600
- var baseGetTag$5 = _baseGetTag,
3600
+ var baseGetTag$4 = _baseGetTag,
3601
3601
  isObject$7 = isObject_1;
3602
3602
 
3603
3603
  /** `Object#toString` result references. */
@@ -3629,7 +3629,7 @@ function isFunction$3(value) {
3629
3629
  }
3630
3630
  // The use of `Object#toString` avoids issues with the `typeof` operator
3631
3631
  // in Safari 9 which returns 'object' for typed arrays and other constructors.
3632
- var tag = baseGetTag$5(value);
3632
+ var tag = baseGetTag$4(value);
3633
3633
  return tag == funcTag$1 || tag == genTag$1 || tag == asyncTag || tag == proxyTag;
3634
3634
  }
3635
3635
 
@@ -3707,17 +3707,17 @@ var reIsHostCtor = /^\[object .+?Constructor\]$/;
3707
3707
 
3708
3708
  /** Used for built-in method references. */
3709
3709
  var funcProto$1 = Function.prototype,
3710
- objectProto$c = Object.prototype;
3710
+ objectProto$b = Object.prototype;
3711
3711
 
3712
3712
  /** Used to resolve the decompiled source of functions. */
3713
3713
  var funcToString$1 = funcProto$1.toString;
3714
3714
 
3715
3715
  /** Used to check objects for own properties. */
3716
- var hasOwnProperty$a = objectProto$c.hasOwnProperty;
3716
+ var hasOwnProperty$9 = objectProto$b.hasOwnProperty;
3717
3717
 
3718
3718
  /** Used to detect if a method is native. */
3719
3719
  var reIsNative = RegExp('^' +
3720
- funcToString$1.call(hasOwnProperty$a).replace(reRegExpChar, '\\$&')
3720
+ funcToString$1.call(hasOwnProperty$9).replace(reRegExpChar, '\\$&')
3721
3721
  .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$'
3722
3722
  );
3723
3723
 
@@ -4118,10 +4118,10 @@ var _realNames = realNames$1;
4118
4118
  var realNames = _realNames;
4119
4119
 
4120
4120
  /** Used for built-in method references. */
4121
- var objectProto$b = Object.prototype;
4121
+ var objectProto$a = Object.prototype;
4122
4122
 
4123
4123
  /** Used to check objects for own properties. */
4124
- var hasOwnProperty$9 = objectProto$b.hasOwnProperty;
4124
+ var hasOwnProperty$8 = objectProto$a.hasOwnProperty;
4125
4125
 
4126
4126
  /**
4127
4127
  * Gets the name of `func`.
@@ -4133,7 +4133,7 @@ var hasOwnProperty$9 = objectProto$b.hasOwnProperty;
4133
4133
  function getFuncName$1(func) {
4134
4134
  var result = (func.name + ''),
4135
4135
  array = realNames[result],
4136
- length = hasOwnProperty$9.call(realNames, result) ? array.length : 0;
4136
+ length = hasOwnProperty$8.call(realNames, result) ? array.length : 0;
4137
4137
 
4138
4138
  while (length--) {
4139
4139
  var data = array[length],
@@ -4223,11 +4223,11 @@ var isArray_1 = isArray$h;
4223
4223
  * // => false
4224
4224
  */
4225
4225
 
4226
- function isObjectLike$a(value) {
4226
+ function isObjectLike$8(value) {
4227
4227
  return value != null && typeof value == 'object';
4228
4228
  }
4229
4229
 
4230
- var isObjectLike_1 = isObjectLike$a;
4230
+ var isObjectLike_1 = isObjectLike$8;
4231
4231
 
4232
4232
  /**
4233
4233
  * Copies the values of `source` to `array`.
@@ -4279,14 +4279,14 @@ var LazyWrapper$1 = _LazyWrapper,
4279
4279
  LodashWrapper = _LodashWrapper,
4280
4280
  baseLodash = _baseLodash,
4281
4281
  isArray$g = isArray_1,
4282
- isObjectLike$9 = isObjectLike_1,
4282
+ isObjectLike$7 = isObjectLike_1,
4283
4283
  wrapperClone = _wrapperClone;
4284
4284
 
4285
4285
  /** Used for built-in method references. */
4286
- var objectProto$a = Object.prototype;
4286
+ var objectProto$9 = Object.prototype;
4287
4287
 
4288
4288
  /** Used to check objects for own properties. */
4289
- var hasOwnProperty$8 = objectProto$a.hasOwnProperty;
4289
+ var hasOwnProperty$7 = objectProto$9.hasOwnProperty;
4290
4290
 
4291
4291
  /**
4292
4292
  * Creates a `lodash` object which wraps `value` to enable implicit method
@@ -4406,11 +4406,11 @@ var hasOwnProperty$8 = objectProto$a.hasOwnProperty;
4406
4406
  * // => true
4407
4407
  */
4408
4408
  function lodash$2(value) {
4409
- if (isObjectLike$9(value) && !isArray$g(value) && !(value instanceof LazyWrapper$1)) {
4409
+ if (isObjectLike$7(value) && !isArray$g(value) && !(value instanceof LazyWrapper$1)) {
4410
4410
  if (value instanceof LodashWrapper) {
4411
4411
  return value;
4412
4412
  }
4413
- if (hasOwnProperty$8.call(value, '__wrapped__')) {
4413
+ if (hasOwnProperty$7.call(value, '__wrapped__')) {
4414
4414
  return wrapperClone(value);
4415
4415
  }
4416
4416
  }
@@ -5307,8 +5307,8 @@ function baseTrim$1(string) {
5307
5307
 
5308
5308
  var _baseTrim = baseTrim$1;
5309
5309
 
5310
- var baseGetTag$4 = _baseGetTag,
5311
- isObjectLike$8 = isObjectLike_1;
5310
+ var baseGetTag$3 = _baseGetTag,
5311
+ isObjectLike$6 = isObjectLike_1;
5312
5312
 
5313
5313
  /** `Object#toString` result references. */
5314
5314
  var symbolTag$3 = '[object Symbol]';
@@ -5332,7 +5332,7 @@ var symbolTag$3 = '[object Symbol]';
5332
5332
  */
5333
5333
  function isSymbol$6(value) {
5334
5334
  return typeof value == 'symbol' ||
5335
- (isObjectLike$8(value) && baseGetTag$4(value) == symbolTag$3);
5335
+ (isObjectLike$6(value) && baseGetTag$3(value) == symbolTag$3);
5336
5336
  }
5337
5337
 
5338
5338
  var isSymbol_1 = isSymbol$6;
@@ -5696,10 +5696,10 @@ var baseAssignValue$1 = _baseAssignValue,
5696
5696
  eq$1 = requireEq();
5697
5697
 
5698
5698
  /** Used for built-in method references. */
5699
- var objectProto$9 = Object.prototype;
5699
+ var objectProto$8 = Object.prototype;
5700
5700
 
5701
5701
  /** Used to check objects for own properties. */
5702
- var hasOwnProperty$7 = objectProto$9.hasOwnProperty;
5702
+ var hasOwnProperty$6 = objectProto$8.hasOwnProperty;
5703
5703
 
5704
5704
  /**
5705
5705
  * Assigns `value` to `key` of `object` if the existing value is not equivalent
@@ -5713,7 +5713,7 @@ var hasOwnProperty$7 = objectProto$9.hasOwnProperty;
5713
5713
  */
5714
5714
  function assignValue$2(object, key, value) {
5715
5715
  var objValue = object[key];
5716
- if (!(hasOwnProperty$7.call(object, key) && eq$1(objValue, value)) ||
5716
+ if (!(hasOwnProperty$6.call(object, key) && eq$1(objValue, value)) ||
5717
5717
  (value === undefined && !(key in object))) {
5718
5718
  baseAssignValue$1(object, key, value);
5719
5719
  }
@@ -5784,61 +5784,77 @@ function baseTimes$1(n, iteratee) {
5784
5784
 
5785
5785
  var _baseTimes = baseTimes$1;
5786
5786
 
5787
- var baseGetTag$3 = _baseGetTag,
5788
- isObjectLike$7 = isObjectLike_1;
5787
+ var _baseIsArguments;
5788
+ var hasRequired_baseIsArguments;
5789
5789
 
5790
- /** `Object#toString` result references. */
5791
- var argsTag$2 = '[object Arguments]';
5790
+ function require_baseIsArguments () {
5791
+ if (hasRequired_baseIsArguments) return _baseIsArguments;
5792
+ hasRequired_baseIsArguments = 1;
5793
+ var baseGetTag = _baseGetTag,
5794
+ isObjectLike = isObjectLike_1;
5792
5795
 
5793
- /**
5794
- * The base implementation of `_.isArguments`.
5795
- *
5796
- * @private
5797
- * @param {*} value The value to check.
5798
- * @returns {boolean} Returns `true` if `value` is an `arguments` object,
5799
- */
5800
- function baseIsArguments$1(value) {
5801
- return isObjectLike$7(value) && baseGetTag$3(value) == argsTag$2;
5796
+ /** `Object#toString` result references. */
5797
+ var argsTag = '[object Arguments]';
5798
+
5799
+ /**
5800
+ * The base implementation of `_.isArguments`.
5801
+ *
5802
+ * @private
5803
+ * @param {*} value The value to check.
5804
+ * @returns {boolean} Returns `true` if `value` is an `arguments` object,
5805
+ */
5806
+ function baseIsArguments(value) {
5807
+ return isObjectLike(value) && baseGetTag(value) == argsTag;
5808
+ }
5809
+
5810
+ _baseIsArguments = baseIsArguments;
5811
+ return _baseIsArguments;
5802
5812
  }
5803
5813
 
5804
- var _baseIsArguments = baseIsArguments$1;
5814
+ var isArguments_1;
5815
+ var hasRequiredIsArguments;
5805
5816
 
5806
- var baseIsArguments = _baseIsArguments,
5807
- isObjectLike$6 = isObjectLike_1;
5817
+ function requireIsArguments () {
5818
+ if (hasRequiredIsArguments) return isArguments_1;
5819
+ hasRequiredIsArguments = 1;
5820
+ var baseIsArguments = require_baseIsArguments(),
5821
+ isObjectLike = isObjectLike_1;
5808
5822
 
5809
- /** Used for built-in method references. */
5810
- var objectProto$8 = Object.prototype;
5823
+ /** Used for built-in method references. */
5824
+ var objectProto = Object.prototype;
5811
5825
 
5812
- /** Used to check objects for own properties. */
5813
- var hasOwnProperty$6 = objectProto$8.hasOwnProperty;
5826
+ /** Used to check objects for own properties. */
5827
+ var hasOwnProperty = objectProto.hasOwnProperty;
5814
5828
 
5815
- /** Built-in value references. */
5816
- var propertyIsEnumerable$1 = objectProto$8.propertyIsEnumerable;
5829
+ /** Built-in value references. */
5830
+ var propertyIsEnumerable = objectProto.propertyIsEnumerable;
5817
5831
 
5818
- /**
5819
- * Checks if `value` is likely an `arguments` object.
5820
- *
5821
- * @static
5822
- * @memberOf _
5823
- * @since 0.1.0
5824
- * @category Lang
5825
- * @param {*} value The value to check.
5826
- * @returns {boolean} Returns `true` if `value` is an `arguments` object,
5827
- * else `false`.
5828
- * @example
5829
- *
5830
- * _.isArguments(function() { return arguments; }());
5831
- * // => true
5832
- *
5833
- * _.isArguments([1, 2, 3]);
5834
- * // => false
5835
- */
5836
- var isArguments$3 = baseIsArguments(function() { return arguments; }()) ? baseIsArguments : function(value) {
5837
- return isObjectLike$6(value) && hasOwnProperty$6.call(value, 'callee') &&
5838
- !propertyIsEnumerable$1.call(value, 'callee');
5839
- };
5832
+ /**
5833
+ * Checks if `value` is likely an `arguments` object.
5834
+ *
5835
+ * @static
5836
+ * @memberOf _
5837
+ * @since 0.1.0
5838
+ * @category Lang
5839
+ * @param {*} value The value to check.
5840
+ * @returns {boolean} Returns `true` if `value` is an `arguments` object,
5841
+ * else `false`.
5842
+ * @example
5843
+ *
5844
+ * _.isArguments(function() { return arguments; }());
5845
+ * // => true
5846
+ *
5847
+ * _.isArguments([1, 2, 3]);
5848
+ * // => false
5849
+ */
5850
+ var isArguments = baseIsArguments(function() { return arguments; }()) ? baseIsArguments : function(value) {
5851
+ return isObjectLike(value) && hasOwnProperty.call(value, 'callee') &&
5852
+ !propertyIsEnumerable.call(value, 'callee');
5853
+ };
5840
5854
 
5841
- var isArguments_1 = isArguments$3;
5855
+ isArguments_1 = isArguments;
5856
+ return isArguments_1;
5857
+ }
5842
5858
 
5843
5859
  var isBufferExports = {};
5844
5860
  var isBuffer$5 = {
@@ -6105,7 +6121,7 @@ function requireIsTypedArray () {
6105
6121
  }
6106
6122
 
6107
6123
  var baseTimes = _baseTimes,
6108
- isArguments$2 = isArguments_1,
6124
+ isArguments$2 = requireIsArguments(),
6109
6125
  isArray$f = isArray_1,
6110
6126
  isBuffer$4 = isBufferExports,
6111
6127
  isIndex$1 = _isIndex,
@@ -9437,7 +9453,7 @@ function baseHasIn$1(object, key) {
9437
9453
  var _baseHasIn = baseHasIn$1;
9438
9454
 
9439
9455
  var castPath = _castPath,
9440
- isArguments$1 = isArguments_1,
9456
+ isArguments$1 = requireIsArguments(),
9441
9457
  isArray$8 = isArray_1,
9442
9458
  isIndex = _isIndex,
9443
9459
  isLength = isLength_1,
@@ -9698,7 +9714,7 @@ function iteratee(func) {
9698
9714
  var iteratee_1 = iteratee;
9699
9715
 
9700
9716
  var Symbol$1 = _Symbol,
9701
- isArguments = isArguments_1,
9717
+ isArguments = requireIsArguments(),
9702
9718
  isArray$6 = isArray_1;
9703
9719
 
9704
9720
  /** Built-in value references. */
@@ -10152,7 +10168,7 @@ function require_baseMergeDeep () {
10152
10168
  cloneTypedArray = require_cloneTypedArray(),
10153
10169
  copyArray = _copyArray,
10154
10170
  initCloneObject = _initCloneObject,
10155
- isArguments = isArguments_1,
10171
+ isArguments = requireIsArguments(),
10156
10172
  isArray = isArray_1,
10157
10173
  isArrayLikeObject = requireIsArrayLikeObject(),
10158
10174
  isBuffer = isBufferExports,
@@ -10811,17 +10827,17 @@ var FeatureId = /* @__PURE__ */ ((FeatureId2) => {
10811
10827
  return FeatureId2;
10812
10828
  })(FeatureId || {});
10813
10829
 
10814
- var __getOwnPropSymbols$11 = Object.getOwnPropertySymbols;
10815
- var __hasOwnProp$11 = Object.prototype.hasOwnProperty;
10816
- var __propIsEnum$11 = Object.prototype.propertyIsEnumerable;
10830
+ var __getOwnPropSymbols$12 = Object.getOwnPropertySymbols;
10831
+ var __hasOwnProp$12 = Object.prototype.hasOwnProperty;
10832
+ var __propIsEnum$12 = Object.prototype.propertyIsEnumerable;
10817
10833
  var __objRest$x = (source, exclude) => {
10818
10834
  var target = {};
10819
10835
  for (var prop in source)
10820
- if (__hasOwnProp$11.call(source, prop) && exclude.indexOf(prop) < 0)
10836
+ if (__hasOwnProp$12.call(source, prop) && exclude.indexOf(prop) < 0)
10821
10837
  target[prop] = source[prop];
10822
- if (source != null && __getOwnPropSymbols$11)
10823
- for (var prop of __getOwnPropSymbols$11(source)) {
10824
- if (exclude.indexOf(prop) < 0 && __propIsEnum$11.call(source, prop))
10838
+ if (source != null && __getOwnPropSymbols$12)
10839
+ for (var prop of __getOwnPropSymbols$12(source)) {
10840
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$12.call(source, prop))
10825
10841
  target[prop] = source[prop];
10826
10842
  }
10827
10843
  return target;
@@ -10957,17 +10973,17 @@ const types = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
10957
10973
  RateCardStatus
10958
10974
  }, Symbol.toStringTag, { value: 'Module' }));
10959
10975
 
10960
- var __getOwnPropSymbols$10 = Object.getOwnPropertySymbols;
10961
- var __hasOwnProp$10 = Object.prototype.hasOwnProperty;
10962
- var __propIsEnum$10 = Object.prototype.propertyIsEnumerable;
10976
+ var __getOwnPropSymbols$11 = Object.getOwnPropertySymbols;
10977
+ var __hasOwnProp$11 = Object.prototype.hasOwnProperty;
10978
+ var __propIsEnum$11 = Object.prototype.propertyIsEnumerable;
10963
10979
  var __objRest$w = (source, exclude) => {
10964
10980
  var target = {};
10965
10981
  for (var prop in source)
10966
- if (__hasOwnProp$10.call(source, prop) && exclude.indexOf(prop) < 0)
10982
+ if (__hasOwnProp$11.call(source, prop) && exclude.indexOf(prop) < 0)
10967
10983
  target[prop] = source[prop];
10968
- if (source != null && __getOwnPropSymbols$10)
10969
- for (var prop of __getOwnPropSymbols$10(source)) {
10970
- if (exclude.indexOf(prop) < 0 && __propIsEnum$10.call(source, prop))
10984
+ if (source != null && __getOwnPropSymbols$11)
10985
+ for (var prop of __getOwnPropSymbols$11(source)) {
10986
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$11.call(source, prop))
10971
10987
  target[prop] = source[prop];
10972
10988
  }
10973
10989
  return target;
@@ -11034,6 +11050,12 @@ class AccountAddonsAPI {
11034
11050
  this.enable = (addonCode) => {
11035
11051
  return this.client.post(`/v1/account/addons/${addonCode}/enable`);
11036
11052
  };
11053
+ /**
11054
+ * The `disable` method allows to disable an AddOn for the current user
11055
+ */
11056
+ this.disable = (addonCode) => {
11057
+ return this.client.post(`/v1/account/addons/${addonCode}/disable`);
11058
+ };
11037
11059
  this.client = client;
11038
11060
  }
11039
11061
  }
@@ -13855,7 +13877,7 @@ var ipaddr = {
13855
13877
  }).call(commonjsGlobal);
13856
13878
  } (ipaddr));
13857
13879
 
13858
- var __async$16 = (__this, __arguments, generator) => {
13880
+ var __async$17 = (__this, __arguments, generator) => {
13859
13881
  return new Promise((resolve, reject) => {
13860
13882
  var fulfilled = (value) => {
13861
13883
  try {
@@ -13875,7 +13897,7 @@ var __async$16 = (__this, __arguments, generator) => {
13875
13897
  step((generator = generator.apply(__this, __arguments)).next());
13876
13898
  });
13877
13899
  };
13878
- const getEndUserIpAddress = () => __async$16(void 0, null, function* () {
13900
+ const getEndUserIpAddress = () => __async$17(void 0, null, function* () {
13879
13901
  try {
13880
13902
  const response = yield axios.get("https://api.ipify.org/?format=json");
13881
13903
  if (response.data.ip && ipaddrExports.isValid(response.data.ip)) {
@@ -13936,38 +13958,38 @@ const decamelizeKeys = (obj, separator = "_") => {
13936
13958
  return obj;
13937
13959
  };
13938
13960
 
13939
- var __defProp$Q = Object.defineProperty;
13940
- var __defProps$K = Object.defineProperties;
13941
- var __getOwnPropDescs$K = Object.getOwnPropertyDescriptors;
13942
- var __getOwnPropSymbols$$ = Object.getOwnPropertySymbols;
13943
- var __hasOwnProp$$ = Object.prototype.hasOwnProperty;
13944
- var __propIsEnum$$ = Object.prototype.propertyIsEnumerable;
13945
- var __defNormalProp$Q = (obj, key, value) => key in obj ? __defProp$Q(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
13946
- var __spreadValues$Q = (a, b) => {
13961
+ var __defProp$R = Object.defineProperty;
13962
+ var __defProps$L = Object.defineProperties;
13963
+ var __getOwnPropDescs$L = Object.getOwnPropertyDescriptors;
13964
+ var __getOwnPropSymbols$10 = Object.getOwnPropertySymbols;
13965
+ var __hasOwnProp$10 = Object.prototype.hasOwnProperty;
13966
+ var __propIsEnum$10 = Object.prototype.propertyIsEnumerable;
13967
+ var __defNormalProp$R = (obj, key, value) => key in obj ? __defProp$R(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
13968
+ var __spreadValues$R = (a, b) => {
13947
13969
  for (var prop in b || (b = {}))
13948
- if (__hasOwnProp$$.call(b, prop))
13949
- __defNormalProp$Q(a, prop, b[prop]);
13950
- if (__getOwnPropSymbols$$)
13951
- for (var prop of __getOwnPropSymbols$$(b)) {
13952
- if (__propIsEnum$$.call(b, prop))
13953
- __defNormalProp$Q(a, prop, b[prop]);
13970
+ if (__hasOwnProp$10.call(b, prop))
13971
+ __defNormalProp$R(a, prop, b[prop]);
13972
+ if (__getOwnPropSymbols$10)
13973
+ for (var prop of __getOwnPropSymbols$10(b)) {
13974
+ if (__propIsEnum$10.call(b, prop))
13975
+ __defNormalProp$R(a, prop, b[prop]);
13954
13976
  }
13955
13977
  return a;
13956
13978
  };
13957
- var __spreadProps$K = (a, b) => __defProps$K(a, __getOwnPropDescs$K(b));
13979
+ var __spreadProps$L = (a, b) => __defProps$L(a, __getOwnPropDescs$L(b));
13958
13980
  var __objRest$v = (source, exclude) => {
13959
13981
  var target = {};
13960
13982
  for (var prop in source)
13961
- if (__hasOwnProp$$.call(source, prop) && exclude.indexOf(prop) < 0)
13983
+ if (__hasOwnProp$10.call(source, prop) && exclude.indexOf(prop) < 0)
13962
13984
  target[prop] = source[prop];
13963
- if (source != null && __getOwnPropSymbols$$)
13964
- for (var prop of __getOwnPropSymbols$$(source)) {
13965
- if (exclude.indexOf(prop) < 0 && __propIsEnum$$.call(source, prop))
13985
+ if (source != null && __getOwnPropSymbols$10)
13986
+ for (var prop of __getOwnPropSymbols$10(source)) {
13987
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$10.call(source, prop))
13966
13988
  target[prop] = source[prop];
13967
13989
  }
13968
13990
  return target;
13969
13991
  };
13970
- var __async$15 = (__this, __arguments, generator) => {
13992
+ var __async$16 = (__this, __arguments, generator) => {
13971
13993
  return new Promise((resolve, reject) => {
13972
13994
  var fulfilled = (value) => {
13973
13995
  try {
@@ -14007,12 +14029,12 @@ class CarriersAPI {
14007
14029
  /**
14008
14030
  * The `connect` method connects a carrier account to a user's ShipEngine account.
14009
14031
  */
14010
- this.connect = (_a) => __async$15(this, null, function* () {
14032
+ this.connect = (_a) => __async$16(this, null, function* () {
14011
14033
  var _b = _a, { carrierCode } = _b, connection = __objRest$v(_b, ["carrierCode"]);
14012
14034
  const endUserIpAddress = yield getEndUserIpAddress();
14013
14035
  if (!endUserIpAddress)
14014
14036
  return Promise.reject([new CodedError("Unable to get IP address")]);
14015
- return yield this.client.post(`/v1/registration/${carrierCode}`, __spreadProps$K(__spreadValues$Q({}, connection), {
14037
+ return yield this.client.post(`/v1/registration/${carrierCode}`, __spreadProps$L(__spreadValues$R({}, connection), {
14016
14038
  endUserIpAddress
14017
14039
  }));
14018
14040
  });
@@ -14096,22 +14118,22 @@ class CarriersAPI {
14096
14118
  }
14097
14119
  }
14098
14120
 
14099
- var __getOwnPropSymbols$_ = Object.getOwnPropertySymbols;
14100
- var __hasOwnProp$_ = Object.prototype.hasOwnProperty;
14101
- var __propIsEnum$_ = Object.prototype.propertyIsEnumerable;
14121
+ var __getOwnPropSymbols$$ = Object.getOwnPropertySymbols;
14122
+ var __hasOwnProp$$ = Object.prototype.hasOwnProperty;
14123
+ var __propIsEnum$$ = Object.prototype.propertyIsEnumerable;
14102
14124
  var __objRest$u = (source, exclude) => {
14103
14125
  var target = {};
14104
14126
  for (var prop in source)
14105
- if (__hasOwnProp$_.call(source, prop) && exclude.indexOf(prop) < 0)
14127
+ if (__hasOwnProp$$.call(source, prop) && exclude.indexOf(prop) < 0)
14106
14128
  target[prop] = source[prop];
14107
- if (source != null && __getOwnPropSymbols$_)
14108
- for (var prop of __getOwnPropSymbols$_(source)) {
14109
- if (exclude.indexOf(prop) < 0 && __propIsEnum$_.call(source, prop))
14129
+ if (source != null && __getOwnPropSymbols$$)
14130
+ for (var prop of __getOwnPropSymbols$$(source)) {
14131
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$$.call(source, prop))
14110
14132
  target[prop] = source[prop];
14111
14133
  }
14112
14134
  return target;
14113
14135
  };
14114
- var __async$14 = (__this, __arguments, generator) => {
14136
+ var __async$15 = (__this, __arguments, generator) => {
14115
14137
  return new Promise((resolve, reject) => {
14116
14138
  var fulfilled = (value) => {
14117
14139
  try {
@@ -14153,7 +14175,7 @@ class ConnectionsAPI {
14153
14175
  /**
14154
14176
  * The `connectCarrier` method connects a carrier to account.
14155
14177
  */
14156
- this.connectCarrier = (carrierName, formData) => __async$14(this, null, function* () {
14178
+ this.connectCarrier = (carrierName, formData) => __async$15(this, null, function* () {
14157
14179
  return yield this.client.post(
14158
14180
  `/v1/connections/carriers/${carrierName}`,
14159
14181
  formData,
@@ -16321,23 +16343,23 @@ class CustomPackagesAPI {
16321
16343
  }
16322
16344
  }
16323
16345
 
16324
- var __defProp$P = Object.defineProperty;
16325
- var __getOwnPropSymbols$Z = Object.getOwnPropertySymbols;
16326
- var __hasOwnProp$Z = Object.prototype.hasOwnProperty;
16327
- var __propIsEnum$Z = Object.prototype.propertyIsEnumerable;
16328
- var __defNormalProp$P = (obj, key, value) => key in obj ? __defProp$P(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
16329
- var __spreadValues$P = (a, b) => {
16346
+ var __defProp$Q = Object.defineProperty;
16347
+ var __getOwnPropSymbols$_ = Object.getOwnPropertySymbols;
16348
+ var __hasOwnProp$_ = Object.prototype.hasOwnProperty;
16349
+ var __propIsEnum$_ = Object.prototype.propertyIsEnumerable;
16350
+ var __defNormalProp$Q = (obj, key, value) => key in obj ? __defProp$Q(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
16351
+ var __spreadValues$Q = (a, b) => {
16330
16352
  for (var prop in b || (b = {}))
16331
- if (__hasOwnProp$Z.call(b, prop))
16332
- __defNormalProp$P(a, prop, b[prop]);
16333
- if (__getOwnPropSymbols$Z)
16334
- for (var prop of __getOwnPropSymbols$Z(b)) {
16335
- if (__propIsEnum$Z.call(b, prop))
16336
- __defNormalProp$P(a, prop, b[prop]);
16353
+ if (__hasOwnProp$_.call(b, prop))
16354
+ __defNormalProp$Q(a, prop, b[prop]);
16355
+ if (__getOwnPropSymbols$_)
16356
+ for (var prop of __getOwnPropSymbols$_(b)) {
16357
+ if (__propIsEnum$_.call(b, prop))
16358
+ __defNormalProp$Q(a, prop, b[prop]);
16337
16359
  }
16338
16360
  return a;
16339
16361
  };
16340
- var __async$13 = (__this, __arguments, generator) => {
16362
+ var __async$14 = (__this, __arguments, generator) => {
16341
16363
  return new Promise((resolve, reject) => {
16342
16364
  var fulfilled = (value) => {
16343
16365
  try {
@@ -16376,12 +16398,12 @@ class FundingSourcesAPI {
16376
16398
  * The `create` method creates a new funding source for a given user. This requires
16377
16399
  * payment information to be collected from the user.
16378
16400
  */
16379
- this.create = (createFundingSource) => __async$13(this, null, function* () {
16401
+ this.create = (createFundingSource) => __async$14(this, null, function* () {
16380
16402
  const endUserIpAddress = yield getEndUserIpAddress();
16381
16403
  if (!endUserIpAddress) {
16382
16404
  return Promise.reject([new CodedError("Unable to get IP address")]);
16383
16405
  }
16384
- return yield this.client.post("/v1/funding_sources", __spreadValues$P({
16406
+ return yield this.client.post("/v1/funding_sources", __spreadValues$Q({
16385
16407
  endUserIpAddress
16386
16408
  }, createFundingSource));
16387
16409
  });
@@ -16390,7 +16412,7 @@ class FundingSourcesAPI {
16390
16412
  * user to update the billing address or payment information associated with the
16391
16413
  * funding source.
16392
16414
  */
16393
- this.update = (billingInfo, creditCardInfo, auctanePayInfo, fundingSourceId) => __async$13(this, null, function* () {
16415
+ this.update = (billingInfo, creditCardInfo, auctanePayInfo, fundingSourceId) => __async$14(this, null, function* () {
16394
16416
  const endUserIpAddress = yield getEndUserIpAddress();
16395
16417
  if (!endUserIpAddress) {
16396
16418
  return Promise.reject([new CodedError("Unable to get IP address")]);
@@ -16400,7 +16422,7 @@ class FundingSourcesAPI {
16400
16422
  {
16401
16423
  billingInfo,
16402
16424
  endUserIpAddress,
16403
- paymentMethod: __spreadValues$P({
16425
+ paymentMethod: __spreadValues$Q({
16404
16426
  creditCardInfo
16405
16427
  }, auctanePayInfo)
16406
16428
  }
@@ -16410,19 +16432,19 @@ class FundingSourcesAPI {
16410
16432
  * The `registerCarrier` method registers a carrier account and associates
16411
16433
  * it with a given funding source.
16412
16434
  */
16413
- this.registerCarrier = (carrier) => __async$13(this, null, function* () {
16435
+ this.registerCarrier = (carrier) => __async$14(this, null, function* () {
16414
16436
  const endUserIpAddress = yield getEndUserIpAddress();
16415
16437
  if (!endUserIpAddress) {
16416
16438
  return Promise.reject([new CodedError("Unable to get IP address")]);
16417
16439
  }
16418
- return yield this.client.post("/v1/registration/funding_source", __spreadValues$P({
16440
+ return yield this.client.post("/v1/registration/funding_source", __spreadValues$Q({
16419
16441
  endUserIpAddress
16420
16442
  }, carrier));
16421
16443
  });
16422
16444
  /**
16423
16445
  * The `addFunds` method allows you to add funds to a funding source.
16424
16446
  */
16425
- this.addFunds = (amount, fundingSourceId) => __async$13(this, null, function* () {
16447
+ this.addFunds = (amount, fundingSourceId) => __async$14(this, null, function* () {
16426
16448
  return yield this.client.put(
16427
16449
  `/v1/funding_sources/${fundingSourceId}/add_funds`,
16428
16450
  amount
@@ -16432,7 +16454,7 @@ class FundingSourcesAPI {
16432
16454
  * The `metadata` method returns seller-specific requirements for creating funding sources
16433
16455
  * and attaching carriers
16434
16456
  */
16435
- this.metadata = () => __async$13(this, null, function* () {
16457
+ this.metadata = () => __async$14(this, null, function* () {
16436
16458
  return yield this.client.get("/v1/funding_sources/metadata");
16437
16459
  });
16438
16460
  /**
@@ -16484,7 +16506,7 @@ class InsuranceAPI {
16484
16506
  }
16485
16507
  }
16486
16508
 
16487
- var __async$12 = (__this, __arguments, generator) => {
16509
+ var __async$13 = (__this, __arguments, generator) => {
16488
16510
  return new Promise((resolve, reject) => {
16489
16511
  var fulfilled = (value) => {
16490
16512
  try {
@@ -16516,13 +16538,13 @@ class InvoiceAddressAPI {
16516
16538
  /**
16517
16539
  * The `create` method creates a new invoice address for a given user.
16518
16540
  */
16519
- this.create = (invoiceAddress) => __async$12(this, null, function* () {
16541
+ this.create = (invoiceAddress) => __async$13(this, null, function* () {
16520
16542
  return yield this.client.post("/v1/invoice_address", invoiceAddress);
16521
16543
  });
16522
16544
  /**
16523
16545
  * The `update` method updates a invoice address for a given user.
16524
16546
  */
16525
- this.update = (invoiceAddress) => __async$12(this, null, function* () {
16547
+ this.update = (invoiceAddress) => __async$13(this, null, function* () {
16526
16548
  return yield this.client.put("/v1/invoice_address", invoiceAddress);
16527
16549
  });
16528
16550
  this.client = client;
@@ -16584,17 +16606,17 @@ class LabelsAPI {
16584
16606
  }
16585
16607
  }
16586
16608
 
16587
- var __getOwnPropSymbols$Y = Object.getOwnPropertySymbols;
16588
- var __hasOwnProp$Y = Object.prototype.hasOwnProperty;
16589
- var __propIsEnum$Y = Object.prototype.propertyIsEnumerable;
16609
+ var __getOwnPropSymbols$Z = Object.getOwnPropertySymbols;
16610
+ var __hasOwnProp$Z = Object.prototype.hasOwnProperty;
16611
+ var __propIsEnum$Z = Object.prototype.propertyIsEnumerable;
16590
16612
  var __objRest$t = (source, exclude) => {
16591
16613
  var target = {};
16592
16614
  for (var prop in source)
16593
- if (__hasOwnProp$Y.call(source, prop) && exclude.indexOf(prop) < 0)
16615
+ if (__hasOwnProp$Z.call(source, prop) && exclude.indexOf(prop) < 0)
16594
16616
  target[prop] = source[prop];
16595
- if (source != null && __getOwnPropSymbols$Y)
16596
- for (var prop of __getOwnPropSymbols$Y(source)) {
16597
- if (exclude.indexOf(prop) < 0 && __propIsEnum$Y.call(source, prop))
16617
+ if (source != null && __getOwnPropSymbols$Z)
16618
+ for (var prop of __getOwnPropSymbols$Z(source)) {
16619
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$Z.call(source, prop))
16598
16620
  target[prop] = source[prop];
16599
16621
  }
16600
16622
  return target;
@@ -16715,19 +16737,19 @@ class RateCardsAPI {
16715
16737
  }
16716
16738
  }
16717
16739
 
16718
- var __defProp$O = Object.defineProperty;
16719
- var __getOwnPropSymbols$X = Object.getOwnPropertySymbols;
16720
- var __hasOwnProp$X = Object.prototype.hasOwnProperty;
16721
- var __propIsEnum$X = Object.prototype.propertyIsEnumerable;
16722
- var __defNormalProp$O = (obj, key, value) => key in obj ? __defProp$O(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
16723
- var __spreadValues$O = (a, b) => {
16740
+ var __defProp$P = Object.defineProperty;
16741
+ var __getOwnPropSymbols$Y = Object.getOwnPropertySymbols;
16742
+ var __hasOwnProp$Y = Object.prototype.hasOwnProperty;
16743
+ var __propIsEnum$Y = Object.prototype.propertyIsEnumerable;
16744
+ var __defNormalProp$P = (obj, key, value) => key in obj ? __defProp$P(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
16745
+ var __spreadValues$P = (a, b) => {
16724
16746
  for (var prop in b || (b = {}))
16725
- if (__hasOwnProp$X.call(b, prop))
16726
- __defNormalProp$O(a, prop, b[prop]);
16727
- if (__getOwnPropSymbols$X)
16728
- for (var prop of __getOwnPropSymbols$X(b)) {
16729
- if (__propIsEnum$X.call(b, prop))
16730
- __defNormalProp$O(a, prop, b[prop]);
16747
+ if (__hasOwnProp$Y.call(b, prop))
16748
+ __defNormalProp$P(a, prop, b[prop]);
16749
+ if (__getOwnPropSymbols$Y)
16750
+ for (var prop of __getOwnPropSymbols$Y(b)) {
16751
+ if (__propIsEnum$Y.call(b, prop))
16752
+ __defNormalProp$P(a, prop, b[prop]);
16731
16753
  }
16732
16754
  return a;
16733
16755
  };
@@ -16749,7 +16771,7 @@ class RatesAPI {
16749
16771
  * method.
16750
16772
  */
16751
16773
  this.estimate = (params) => {
16752
- return this.client.post("/v1/rates/estimate", __spreadValues$O({}, params));
16774
+ return this.client.post("/v1/rates/estimate", __spreadValues$P({}, params));
16753
16775
  };
16754
16776
  this.client = client;
16755
16777
  }
@@ -16829,7 +16851,7 @@ class SalesOrdersAPI {
16829
16851
  }
16830
16852
  }
16831
16853
 
16832
- var __async$11 = (__this, __arguments, generator) => {
16854
+ var __async$12 = (__this, __arguments, generator) => {
16833
16855
  return new Promise((resolve, reject) => {
16834
16856
  var fulfilled = (value) => {
16835
16857
  try {
@@ -16887,7 +16909,7 @@ class SellersAPI {
16887
16909
  /**
16888
16910
  * Deletes an API Key
16889
16911
  */
16890
- this.deleteSellerApiKey = (_0) => __async$11(this, [_0], function* ({
16912
+ this.deleteSellerApiKey = (_0) => __async$12(this, [_0], function* ({
16891
16913
  encryptedApiKey,
16892
16914
  sellerId,
16893
16915
  isSandbox
@@ -16933,19 +16955,19 @@ class SellersAPI {
16933
16955
  }
16934
16956
  }
16935
16957
 
16936
- var __defProp$N = Object.defineProperty;
16937
- var __getOwnPropSymbols$W = Object.getOwnPropertySymbols;
16938
- var __hasOwnProp$W = Object.prototype.hasOwnProperty;
16939
- var __propIsEnum$W = Object.prototype.propertyIsEnumerable;
16940
- var __defNormalProp$N = (obj, key, value) => key in obj ? __defProp$N(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
16941
- var __spreadValues$N = (a, b) => {
16958
+ var __defProp$O = Object.defineProperty;
16959
+ var __getOwnPropSymbols$X = Object.getOwnPropertySymbols;
16960
+ var __hasOwnProp$X = Object.prototype.hasOwnProperty;
16961
+ var __propIsEnum$X = Object.prototype.propertyIsEnumerable;
16962
+ var __defNormalProp$O = (obj, key, value) => key in obj ? __defProp$O(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
16963
+ var __spreadValues$O = (a, b) => {
16942
16964
  for (var prop in b || (b = {}))
16943
- if (__hasOwnProp$W.call(b, prop))
16944
- __defNormalProp$N(a, prop, b[prop]);
16945
- if (__getOwnPropSymbols$W)
16946
- for (var prop of __getOwnPropSymbols$W(b)) {
16947
- if (__propIsEnum$W.call(b, prop))
16948
- __defNormalProp$N(a, prop, b[prop]);
16965
+ if (__hasOwnProp$X.call(b, prop))
16966
+ __defNormalProp$O(a, prop, b[prop]);
16967
+ if (__getOwnPropSymbols$X)
16968
+ for (var prop of __getOwnPropSymbols$X(b)) {
16969
+ if (__propIsEnum$X.call(b, prop))
16970
+ __defNormalProp$O(a, prop, b[prop]);
16949
16971
  }
16950
16972
  return a;
16951
16973
  };
@@ -16957,7 +16979,7 @@ class ServicePointsAPI {
16957
16979
  * Either an address, coordinates, or an address query
16958
16980
  */
16959
16981
  this.list = (options) => {
16960
- return this.client.post("/v1/service_points/list", __spreadValues$N({}, options));
16982
+ return this.client.post("/v1/service_points/list", __spreadValues$O({}, options));
16961
16983
  };
16962
16984
  /**
16963
16985
  * Get a specific service point by its carrier code, country code, and id
@@ -16975,7 +16997,7 @@ class ServicePointsAPI {
16975
16997
  }
16976
16998
  }
16977
16999
 
16978
- var __async$10 = (__this, __arguments, generator) => {
17000
+ var __async$11 = (__this, __arguments, generator) => {
16979
17001
  return new Promise((resolve, reject) => {
16980
17002
  var fulfilled = (value) => {
16981
17003
  try {
@@ -17024,7 +17046,7 @@ class ShipmentsAPI {
17024
17046
  * The `create` method allows for creating shipments based on a list of shipment
17025
17047
  * items passed into this method.
17026
17048
  */
17027
- this.create = (...shipments) => __async$10(this, null, function* () {
17049
+ this.create = (...shipments) => __async$11(this, null, function* () {
17028
17050
  return this.client.post("/v1/shipments", {
17029
17051
  shipments
17030
17052
  });
@@ -34441,38 +34463,38 @@ class WebhooksAPI {
34441
34463
  }
34442
34464
  }
34443
34465
 
34444
- var __defProp$M = Object.defineProperty;
34445
- var __defProps$J = Object.defineProperties;
34446
- var __getOwnPropDescs$J = Object.getOwnPropertyDescriptors;
34447
- var __getOwnPropSymbols$V = Object.getOwnPropertySymbols;
34448
- var __hasOwnProp$V = Object.prototype.hasOwnProperty;
34449
- var __propIsEnum$V = Object.prototype.propertyIsEnumerable;
34450
- var __defNormalProp$M = (obj, key, value) => key in obj ? __defProp$M(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
34451
- var __spreadValues$M = (a, b) => {
34466
+ var __defProp$N = Object.defineProperty;
34467
+ var __defProps$K = Object.defineProperties;
34468
+ var __getOwnPropDescs$K = Object.getOwnPropertyDescriptors;
34469
+ var __getOwnPropSymbols$W = Object.getOwnPropertySymbols;
34470
+ var __hasOwnProp$W = Object.prototype.hasOwnProperty;
34471
+ var __propIsEnum$W = Object.prototype.propertyIsEnumerable;
34472
+ var __defNormalProp$N = (obj, key, value) => key in obj ? __defProp$N(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
34473
+ var __spreadValues$N = (a, b) => {
34452
34474
  for (var prop in b || (b = {}))
34453
- if (__hasOwnProp$V.call(b, prop))
34454
- __defNormalProp$M(a, prop, b[prop]);
34455
- if (__getOwnPropSymbols$V)
34456
- for (var prop of __getOwnPropSymbols$V(b)) {
34457
- if (__propIsEnum$V.call(b, prop))
34458
- __defNormalProp$M(a, prop, b[prop]);
34475
+ if (__hasOwnProp$W.call(b, prop))
34476
+ __defNormalProp$N(a, prop, b[prop]);
34477
+ if (__getOwnPropSymbols$W)
34478
+ for (var prop of __getOwnPropSymbols$W(b)) {
34479
+ if (__propIsEnum$W.call(b, prop))
34480
+ __defNormalProp$N(a, prop, b[prop]);
34459
34481
  }
34460
34482
  return a;
34461
34483
  };
34462
- var __spreadProps$J = (a, b) => __defProps$J(a, __getOwnPropDescs$J(b));
34484
+ var __spreadProps$K = (a, b) => __defProps$K(a, __getOwnPropDescs$K(b));
34463
34485
  var __objRest$s = (source, exclude) => {
34464
34486
  var target = {};
34465
34487
  for (var prop in source)
34466
- if (__hasOwnProp$V.call(source, prop) && exclude.indexOf(prop) < 0)
34488
+ if (__hasOwnProp$W.call(source, prop) && exclude.indexOf(prop) < 0)
34467
34489
  target[prop] = source[prop];
34468
- if (source != null && __getOwnPropSymbols$V)
34469
- for (var prop of __getOwnPropSymbols$V(source)) {
34470
- if (exclude.indexOf(prop) < 0 && __propIsEnum$V.call(source, prop))
34490
+ if (source != null && __getOwnPropSymbols$W)
34491
+ for (var prop of __getOwnPropSymbols$W(source)) {
34492
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$W.call(source, prop))
34471
34493
  target[prop] = source[prop];
34472
34494
  }
34473
34495
  return target;
34474
34496
  };
34475
- var __async$$ = (__this, __arguments, generator) => {
34497
+ var __async$10 = (__this, __arguments, generator) => {
34476
34498
  return new Promise((resolve, reject) => {
34477
34499
  var fulfilled = (value) => {
34478
34500
  try {
@@ -34495,7 +34517,7 @@ var __async$$ = (__this, __arguments, generator) => {
34495
34517
  const logger$1 = E({
34496
34518
  level: process.env.NODE_ENV === "production" ? "fatal" : "info",
34497
34519
  name: "shipengine-api",
34498
- serializers: __spreadProps$J(__spreadValues$M({}, k), {
34520
+ serializers: __spreadProps$K(__spreadValues$N({}, k), {
34499
34521
  req: (req) => ({
34500
34522
  headers: req.headers,
34501
34523
  method: req.method,
@@ -34520,7 +34542,7 @@ class ShipEngineAPI {
34520
34542
  this.getSandboxToken = getSandboxToken;
34521
34543
  const client = axios.create({
34522
34544
  baseURL,
34523
- headers: __spreadProps$J(__spreadValues$M({}, headers), {
34545
+ headers: __spreadProps$K(__spreadValues$N({}, headers), {
34524
34546
  "Content-Type": "application/json"
34525
34547
  }),
34526
34548
  paramsSerializer: (params) => lib.stringify(decamelizeKeys(params), { arrayFormat: "brackets" }),
@@ -34560,7 +34582,7 @@ class ShipEngineAPI {
34560
34582
  });
34561
34583
  client.defaults.headers.common["Authorization"] = `Bearer ${token}`;
34562
34584
  client.interceptors.request.use(
34563
- (config) => __async$$(this, null, function* () {
34585
+ (config) => __async$10(this, null, function* () {
34564
34586
  if (config.isSandbox) {
34565
34587
  if (!this.sandboxToken) {
34566
34588
  this.sandboxToken = yield getSandboxToken == null ? void 0 : getSandboxToken();
@@ -34589,7 +34611,7 @@ class ShipEngineAPI {
34589
34611
  }
34590
34612
  return res;
34591
34613
  },
34592
- (err) => __async$$(this, null, function* () {
34614
+ (err) => __async$10(this, null, function* () {
34593
34615
  var _a, _b, _c, _d, _e;
34594
34616
  if (debug) {
34595
34617
  logger$1.error(
@@ -34638,7 +34660,7 @@ class ShipEngineAPI {
34638
34660
  * that token (also known as Seller ID)
34639
34661
  */
34640
34662
  getTenant(isSandbox) {
34641
- return __async$$(this, null, function* () {
34663
+ return __async$10(this, null, function* () {
34642
34664
  var _a;
34643
34665
  if (!isSandbox) {
34644
34666
  return this.getTenantFromToken(this.token);
@@ -34957,25 +34979,25 @@ const delay = (ms) => new Promise((resolve) => {
34957
34979
 
34958
34980
  const onError = (_errors) => _default();
34959
34981
 
34960
- var __defProp$L = Object.defineProperty;
34961
- var __defProps$I = Object.defineProperties;
34962
- var __getOwnPropDescs$I = Object.getOwnPropertyDescriptors;
34963
- var __getOwnPropSymbols$U = Object.getOwnPropertySymbols;
34964
- var __hasOwnProp$U = Object.prototype.hasOwnProperty;
34965
- var __propIsEnum$U = Object.prototype.propertyIsEnumerable;
34966
- var __defNormalProp$L = (obj, key, value) => key in obj ? __defProp$L(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
34967
- var __spreadValues$L = (a, b) => {
34982
+ var __defProp$M = Object.defineProperty;
34983
+ var __defProps$J = Object.defineProperties;
34984
+ var __getOwnPropDescs$J = Object.getOwnPropertyDescriptors;
34985
+ var __getOwnPropSymbols$V = Object.getOwnPropertySymbols;
34986
+ var __hasOwnProp$V = Object.prototype.hasOwnProperty;
34987
+ var __propIsEnum$V = Object.prototype.propertyIsEnumerable;
34988
+ var __defNormalProp$M = (obj, key, value) => key in obj ? __defProp$M(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
34989
+ var __spreadValues$M = (a, b) => {
34968
34990
  for (var prop in b || (b = {}))
34969
- if (__hasOwnProp$U.call(b, prop))
34970
- __defNormalProp$L(a, prop, b[prop]);
34971
- if (__getOwnPropSymbols$U)
34972
- for (var prop of __getOwnPropSymbols$U(b)) {
34973
- if (__propIsEnum$U.call(b, prop))
34974
- __defNormalProp$L(a, prop, b[prop]);
34991
+ if (__hasOwnProp$V.call(b, prop))
34992
+ __defNormalProp$M(a, prop, b[prop]);
34993
+ if (__getOwnPropSymbols$V)
34994
+ for (var prop of __getOwnPropSymbols$V(b)) {
34995
+ if (__propIsEnum$V.call(b, prop))
34996
+ __defNormalProp$M(a, prop, b[prop]);
34975
34997
  }
34976
34998
  return a;
34977
34999
  };
34978
- var __spreadProps$I = (a, b) => __defProps$I(a, __getOwnPropDescs$I(b));
35000
+ var __spreadProps$J = (a, b) => __defProps$J(a, __getOwnPropDescs$J(b));
34979
35001
  const streams = [];
34980
35002
  if (process.env.NODE_ENV === "production") {
34981
35003
  streams.push({
@@ -34984,7 +35006,7 @@ if (process.env.NODE_ENV === "production") {
34984
35006
  }
34985
35007
  const logger = E({
34986
35008
  name: "shipengine",
34987
- serializers: __spreadProps$I(__spreadValues$L({}, k), {
35009
+ serializers: __spreadProps$J(__spreadValues$M({}, k), {
34988
35010
  req: (req) => ({
34989
35011
  headers: req.headers,
34990
35012
  method: req.method,
@@ -35009,7 +35031,7 @@ const retryUntil = (callbackFn, retries = 10, timeoutBetweenAttempts = 1e3) => P
35009
35031
  throw error;
35010
35032
  });
35011
35033
 
35012
- var __async$_ = (__this, __arguments, generator) => {
35034
+ var __async$$ = (__this, __arguments, generator) => {
35013
35035
  return new Promise((resolve, reject) => {
35014
35036
  var fulfilled = (value) => {
35015
35037
  try {
@@ -35032,7 +35054,7 @@ var __async$_ = (__this, __arguments, generator) => {
35032
35054
  const useCreateAccountImage = () => {
35033
35055
  const { client } = useShipEngine();
35034
35056
  return reactQuery.useMutation({
35035
- mutationFn: (data) => __async$_(void 0, null, function* () {
35057
+ mutationFn: (data) => __async$$(void 0, null, function* () {
35036
35058
  const result = yield client.accountSettings.createImage(data);
35037
35059
  return result.data;
35038
35060
  }),
@@ -35041,7 +35063,7 @@ const useCreateAccountImage = () => {
35041
35063
  });
35042
35064
  };
35043
35065
 
35044
- var __async$Z = (__this, __arguments, generator) => {
35066
+ var __async$_ = (__this, __arguments, generator) => {
35045
35067
  return new Promise((resolve, reject) => {
35046
35068
  var fulfilled = (value) => {
35047
35069
  try {
@@ -35064,7 +35086,7 @@ var __async$Z = (__this, __arguments, generator) => {
35064
35086
  const useDeleteAccountImage = () => {
35065
35087
  const { client } = useShipEngine();
35066
35088
  return reactQuery.useMutation({
35067
- mutationFn: (labelImageId) => __async$Z(void 0, null, function* () {
35089
+ mutationFn: (labelImageId) => __async$_(void 0, null, function* () {
35068
35090
  const result = yield client.accountSettings.deleteImage(labelImageId);
35069
35091
  return result.data;
35070
35092
  }),
@@ -35093,7 +35115,7 @@ const useGetAccountSettings = () => {
35093
35115
  });
35094
35116
  };
35095
35117
 
35096
- var __async$Y = (__this, __arguments, generator) => {
35118
+ var __async$Z = (__this, __arguments, generator) => {
35097
35119
  return new Promise((resolve, reject) => {
35098
35120
  var fulfilled = (value) => {
35099
35121
  try {
@@ -35116,7 +35138,7 @@ var __async$Y = (__this, __arguments, generator) => {
35116
35138
  const useUpdateAccountImage = () => {
35117
35139
  const { client } = useShipEngine();
35118
35140
  return reactQuery.useMutation({
35119
- mutationFn: (data) => __async$Y(void 0, null, function* () {
35141
+ mutationFn: (data) => __async$Z(void 0, null, function* () {
35120
35142
  const result = yield client.accountSettings.updateImage(data);
35121
35143
  return result.data;
35122
35144
  }),
@@ -35125,7 +35147,7 @@ const useUpdateAccountImage = () => {
35125
35147
  });
35126
35148
  };
35127
35149
 
35128
- var __async$X = (__this, __arguments, generator) => {
35150
+ var __async$Y = (__this, __arguments, generator) => {
35129
35151
  return new Promise((resolve, reject) => {
35130
35152
  var fulfilled = (value) => {
35131
35153
  try {
@@ -35148,7 +35170,7 @@ var __async$X = (__this, __arguments, generator) => {
35148
35170
  const useUpdateAccountSettings = () => {
35149
35171
  const { client } = useShipEngine();
35150
35172
  return reactQuery.useMutation({
35151
- mutationFn: (settings) => __async$X(void 0, null, function* () {
35173
+ mutationFn: (settings) => __async$Y(void 0, null, function* () {
35152
35174
  const result = yield client.accountSettings.update(settings);
35153
35175
  return result.data;
35154
35176
  }),
@@ -35157,6 +35179,35 @@ const useUpdateAccountSettings = () => {
35157
35179
  });
35158
35180
  };
35159
35181
 
35182
+ var __defProp$L = Object.defineProperty;
35183
+ var __defProps$I = Object.defineProperties;
35184
+ var __getOwnPropDescs$I = Object.getOwnPropertyDescriptors;
35185
+ var __getOwnPropSymbols$U = Object.getOwnPropertySymbols;
35186
+ var __hasOwnProp$U = Object.prototype.hasOwnProperty;
35187
+ var __propIsEnum$U = Object.prototype.propertyIsEnumerable;
35188
+ var __defNormalProp$L = (obj, key, value) => key in obj ? __defProp$L(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35189
+ var __spreadValues$L = (a, b) => {
35190
+ for (var prop in b || (b = {}))
35191
+ if (__hasOwnProp$U.call(b, prop))
35192
+ __defNormalProp$L(a, prop, b[prop]);
35193
+ if (__getOwnPropSymbols$U)
35194
+ for (var prop of __getOwnPropSymbols$U(b)) {
35195
+ if (__propIsEnum$U.call(b, prop))
35196
+ __defNormalProp$L(a, prop, b[prop]);
35197
+ }
35198
+ return a;
35199
+ };
35200
+ var __spreadProps$I = (a, b) => __defProps$I(a, __getOwnPropDescs$I(b));
35201
+ const useListAccountAddons = (params) => {
35202
+ const { client } = useShipEngine();
35203
+ return reactQuery.useQuery(__spreadProps$I(__spreadValues$L({}, params), {
35204
+ onError,
35205
+ queryFn: () => client.accountAddons.list(),
35206
+ queryKey: ["useListAccountAddons"],
35207
+ select: (result) => result.data.addons
35208
+ }));
35209
+ };
35210
+
35160
35211
  var __defProp$K = Object.defineProperty;
35161
35212
  var __defProps$H = Object.defineProperties;
35162
35213
  var __getOwnPropDescs$H = Object.getOwnPropertyDescriptors;
@@ -35176,13 +35227,35 @@ var __spreadValues$K = (a, b) => {
35176
35227
  return a;
35177
35228
  };
35178
35229
  var __spreadProps$H = (a, b) => __defProps$H(a, __getOwnPropDescs$H(b));
35179
- const useListAccountAddons = (params) => {
35230
+ var __async$X = (__this, __arguments, generator) => {
35231
+ return new Promise((resolve, reject) => {
35232
+ var fulfilled = (value) => {
35233
+ try {
35234
+ step(generator.next(value));
35235
+ } catch (e) {
35236
+ reject(e);
35237
+ }
35238
+ };
35239
+ var rejected = (value) => {
35240
+ try {
35241
+ step(generator.throw(value));
35242
+ } catch (e) {
35243
+ reject(e);
35244
+ }
35245
+ };
35246
+ var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
35247
+ step((generator = generator.apply(__this, __arguments)).next());
35248
+ });
35249
+ };
35250
+ const useEnableAccountAddon = (params) => {
35180
35251
  const { client } = useShipEngine();
35181
- return reactQuery.useQuery(__spreadProps$H(__spreadValues$K({}, params), {
35182
- onError,
35183
- queryFn: () => client.accountAddons.list(),
35184
- queryKey: ["useListAccountAddons"],
35185
- select: (result) => result.data.addons
35252
+ return reactQuery.useMutation(__spreadProps$H(__spreadValues$K({}, params), {
35253
+ mutationFn: (addonType) => __async$X(void 0, null, function* () {
35254
+ const result = yield client.accountAddons.enable(addonType);
35255
+ return result.data;
35256
+ }),
35257
+ mutationKey: ["useEnableAccountAddon"],
35258
+ onError
35186
35259
  }));
35187
35260
  };
35188
35261
 
@@ -35225,14 +35298,14 @@ var __async$W = (__this, __arguments, generator) => {
35225
35298
  step((generator = generator.apply(__this, __arguments)).next());
35226
35299
  });
35227
35300
  };
35228
- const useEnableAccountAddon = (params) => {
35301
+ const useDisableAccountAddon = (params) => {
35229
35302
  const { client } = useShipEngine();
35230
35303
  return reactQuery.useMutation(__spreadProps$G(__spreadValues$J({}, params), {
35231
35304
  mutationFn: (addonType) => __async$W(void 0, null, function* () {
35232
- const result = yield client.accountAddons.enable(addonType);
35305
+ const result = yield client.accountAddons.disable(addonType);
35233
35306
  return result.data;
35234
35307
  }),
35235
- mutationKey: ["useEnableAccountAddon"],
35308
+ mutationKey: ["useDisableAccountAddon"],
35236
35309
  onError
35237
35310
  }));
35238
35311
  };
@@ -40292,6 +40365,7 @@ exports.useDeleteSellerApiKey = useDeleteSellerApiKey;
40292
40365
  exports.useDeleteShippingRule = useDeleteShippingRule;
40293
40366
  exports.useDeleteWarehouse = useDeleteWarehouse;
40294
40367
  exports.useDeleteWebhook = useDeleteWebhook;
40368
+ exports.useDisableAccountAddon = useDisableAccountAddon;
40295
40369
  exports.useDownloadRateCard = useDownloadRateCard;
40296
40370
  exports.useEditShippingRule = useEditShippingRule;
40297
40371
  exports.useEnableAccountAddon = useEnableAccountAddon;