@shipengine/alchemy 6.0.97 → 6.0.98-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 +202 -201
  2. package/index.mjs +203 -202
  3. package/package.json +1 -1
package/index.js CHANGED
@@ -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$5(value) {
3556
+ function baseGetTag$6(value) {
3557
3557
  if (value == null) {
3558
3558
  return value === undefined ? undefinedTag : nullTag;
3559
3559
  }
@@ -3562,7 +3562,7 @@ function baseGetTag$5(value) {
3562
3562
  : objectToString$1(value);
3563
3563
  }
3564
3564
 
3565
- var _baseGetTag = baseGetTag$5;
3565
+ var _baseGetTag = baseGetTag$6;
3566
3566
 
3567
3567
  /**
3568
3568
  * Checks if `value` is the
@@ -3597,12 +3597,12 @@ function isObject$8(value) {
3597
3597
 
3598
3598
  var isObject_1 = isObject$8;
3599
3599
 
3600
- var baseGetTag$4 = _baseGetTag,
3600
+ var baseGetTag$5 = _baseGetTag,
3601
3601
  isObject$7 = isObject_1;
3602
3602
 
3603
3603
  /** `Object#toString` result references. */
3604
3604
  var asyncTag = '[object AsyncFunction]',
3605
- funcTag$1 = '[object Function]',
3605
+ funcTag$2 = '[object Function]',
3606
3606
  genTag$1 = '[object GeneratorFunction]',
3607
3607
  proxyTag = '[object Proxy]';
3608
3608
 
@@ -3629,8 +3629,8 @@ 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$4(value);
3633
- return tag == funcTag$1 || tag == genTag$1 || tag == asyncTag || tag == proxyTag;
3632
+ var tag = baseGetTag$5(value);
3633
+ return tag == funcTag$2 || tag == genTag$1 || tag == asyncTag || tag == proxyTag;
3634
3634
  }
3635
3635
 
3636
3636
  var isFunction_1 = isFunction$3;
@@ -4223,11 +4223,11 @@ var isArray_1 = isArray$h;
4223
4223
  * // => false
4224
4224
  */
4225
4225
 
4226
- function isObjectLike$8(value) {
4226
+ function isObjectLike$9(value) {
4227
4227
  return value != null && typeof value == 'object';
4228
4228
  }
4229
4229
 
4230
- var isObjectLike_1 = isObjectLike$8;
4230
+ var isObjectLike_1 = isObjectLike$9;
4231
4231
 
4232
4232
  /**
4233
4233
  * Copies the values of `source` to `array`.
@@ -4279,7 +4279,7 @@ var LazyWrapper$1 = _LazyWrapper,
4279
4279
  LodashWrapper = _LodashWrapper,
4280
4280
  baseLodash = _baseLodash,
4281
4281
  isArray$g = isArray_1,
4282
- isObjectLike$7 = isObjectLike_1,
4282
+ isObjectLike$8 = isObjectLike_1,
4283
4283
  wrapperClone = _wrapperClone;
4284
4284
 
4285
4285
  /** Used for built-in method references. */
@@ -4406,7 +4406,7 @@ var hasOwnProperty$7 = objectProto$9.hasOwnProperty;
4406
4406
  * // => true
4407
4407
  */
4408
4408
  function lodash$2(value) {
4409
- if (isObjectLike$7(value) && !isArray$g(value) && !(value instanceof LazyWrapper$1)) {
4409
+ if (isObjectLike$8(value) && !isArray$g(value) && !(value instanceof LazyWrapper$1)) {
4410
4410
  if (value instanceof LodashWrapper) {
4411
4411
  return value;
4412
4412
  }
@@ -5307,8 +5307,8 @@ function baseTrim$1(string) {
5307
5307
 
5308
5308
  var _baseTrim = baseTrim$1;
5309
5309
 
5310
- var baseGetTag$3 = _baseGetTag,
5311
- isObjectLike$6 = isObjectLike_1;
5310
+ var baseGetTag$4 = _baseGetTag,
5311
+ isObjectLike$7 = 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$6(value) && baseGetTag$3(value) == symbolTag$3);
5335
+ (isObjectLike$7(value) && baseGetTag$4(value) == symbolTag$3);
5336
5336
  }
5337
5337
 
5338
5338
  var isSymbol_1 = isSymbol$6;
@@ -5953,82 +5953,74 @@ var MAX_SAFE_INTEGER = 9007199254740991;
5953
5953
  * _.isLength('3');
5954
5954
  * // => false
5955
5955
  */
5956
- function isLength$2(value) {
5956
+ function isLength$3(value) {
5957
5957
  return typeof value == 'number' &&
5958
5958
  value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
5959
5959
  }
5960
5960
 
5961
- var isLength_1 = isLength$2;
5962
-
5963
- var _baseIsTypedArray;
5964
- var hasRequired_baseIsTypedArray;
5961
+ var isLength_1 = isLength$3;
5965
5962
 
5966
- function require_baseIsTypedArray () {
5967
- if (hasRequired_baseIsTypedArray) return _baseIsTypedArray;
5968
- hasRequired_baseIsTypedArray = 1;
5969
- var baseGetTag = _baseGetTag,
5970
- isLength = isLength_1,
5971
- isObjectLike = isObjectLike_1;
5972
-
5973
- /** `Object#toString` result references. */
5974
- var argsTag = '[object Arguments]',
5975
- arrayTag = '[object Array]',
5976
- boolTag = '[object Boolean]',
5977
- dateTag = '[object Date]',
5978
- errorTag = '[object Error]',
5979
- funcTag = '[object Function]',
5980
- mapTag = '[object Map]',
5981
- numberTag = '[object Number]',
5982
- objectTag = '[object Object]',
5983
- regexpTag = '[object RegExp]',
5984
- setTag = '[object Set]',
5985
- stringTag = '[object String]',
5986
- weakMapTag = '[object WeakMap]';
5987
-
5988
- var arrayBufferTag = '[object ArrayBuffer]',
5989
- dataViewTag = '[object DataView]',
5990
- float32Tag = '[object Float32Array]',
5991
- float64Tag = '[object Float64Array]',
5992
- int8Tag = '[object Int8Array]',
5993
- int16Tag = '[object Int16Array]',
5994
- int32Tag = '[object Int32Array]',
5995
- uint8Tag = '[object Uint8Array]',
5996
- uint8ClampedTag = '[object Uint8ClampedArray]',
5997
- uint16Tag = '[object Uint16Array]',
5998
- uint32Tag = '[object Uint32Array]';
5999
-
6000
- /** Used to identify `toStringTag` values of typed arrays. */
6001
- var typedArrayTags = {};
6002
- typedArrayTags[float32Tag] = typedArrayTags[float64Tag] =
6003
- typedArrayTags[int8Tag] = typedArrayTags[int16Tag] =
6004
- typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] =
6005
- typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] =
6006
- typedArrayTags[uint32Tag] = true;
6007
- typedArrayTags[argsTag] = typedArrayTags[arrayTag] =
6008
- typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] =
6009
- typedArrayTags[dataViewTag] = typedArrayTags[dateTag] =
6010
- typedArrayTags[errorTag] = typedArrayTags[funcTag] =
6011
- typedArrayTags[mapTag] = typedArrayTags[numberTag] =
6012
- typedArrayTags[objectTag] = typedArrayTags[regexpTag] =
6013
- typedArrayTags[setTag] = typedArrayTags[stringTag] =
6014
- typedArrayTags[weakMapTag] = false;
5963
+ var baseGetTag$3 = _baseGetTag,
5964
+ isLength$2 = isLength_1,
5965
+ isObjectLike$6 = isObjectLike_1;
6015
5966
 
6016
- /**
6017
- * The base implementation of `_.isTypedArray` without Node.js optimizations.
6018
- *
6019
- * @private
6020
- * @param {*} value The value to check.
6021
- * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
6022
- */
6023
- function baseIsTypedArray(value) {
6024
- return isObjectLike(value) &&
6025
- isLength(value.length) && !!typedArrayTags[baseGetTag(value)];
6026
- }
5967
+ /** `Object#toString` result references. */
5968
+ var argsTag$2 = '[object Arguments]',
5969
+ arrayTag$2 = '[object Array]',
5970
+ boolTag$3 = '[object Boolean]',
5971
+ dateTag$3 = '[object Date]',
5972
+ errorTag$3 = '[object Error]',
5973
+ funcTag$1 = '[object Function]',
5974
+ mapTag$5 = '[object Map]',
5975
+ numberTag$3 = '[object Number]',
5976
+ objectTag$4 = '[object Object]',
5977
+ regexpTag$3 = '[object RegExp]',
5978
+ setTag$5 = '[object Set]',
5979
+ stringTag$3 = '[object String]',
5980
+ weakMapTag$3 = '[object WeakMap]';
5981
+
5982
+ var arrayBufferTag$3 = '[object ArrayBuffer]',
5983
+ dataViewTag$4 = '[object DataView]',
5984
+ float32Tag$2 = '[object Float32Array]',
5985
+ float64Tag$2 = '[object Float64Array]',
5986
+ int8Tag$2 = '[object Int8Array]',
5987
+ int16Tag$2 = '[object Int16Array]',
5988
+ int32Tag$2 = '[object Int32Array]',
5989
+ uint8Tag$2 = '[object Uint8Array]',
5990
+ uint8ClampedTag$2 = '[object Uint8ClampedArray]',
5991
+ uint16Tag$2 = '[object Uint16Array]',
5992
+ uint32Tag$2 = '[object Uint32Array]';
5993
+
5994
+ /** Used to identify `toStringTag` values of typed arrays. */
5995
+ var typedArrayTags = {};
5996
+ typedArrayTags[float32Tag$2] = typedArrayTags[float64Tag$2] =
5997
+ typedArrayTags[int8Tag$2] = typedArrayTags[int16Tag$2] =
5998
+ typedArrayTags[int32Tag$2] = typedArrayTags[uint8Tag$2] =
5999
+ typedArrayTags[uint8ClampedTag$2] = typedArrayTags[uint16Tag$2] =
6000
+ typedArrayTags[uint32Tag$2] = true;
6001
+ typedArrayTags[argsTag$2] = typedArrayTags[arrayTag$2] =
6002
+ typedArrayTags[arrayBufferTag$3] = typedArrayTags[boolTag$3] =
6003
+ typedArrayTags[dataViewTag$4] = typedArrayTags[dateTag$3] =
6004
+ typedArrayTags[errorTag$3] = typedArrayTags[funcTag$1] =
6005
+ typedArrayTags[mapTag$5] = typedArrayTags[numberTag$3] =
6006
+ typedArrayTags[objectTag$4] = typedArrayTags[regexpTag$3] =
6007
+ typedArrayTags[setTag$5] = typedArrayTags[stringTag$3] =
6008
+ typedArrayTags[weakMapTag$3] = false;
6027
6009
 
6028
- _baseIsTypedArray = baseIsTypedArray;
6029
- return _baseIsTypedArray;
6010
+ /**
6011
+ * The base implementation of `_.isTypedArray` without Node.js optimizations.
6012
+ *
6013
+ * @private
6014
+ * @param {*} value The value to check.
6015
+ * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
6016
+ */
6017
+ function baseIsTypedArray$1(value) {
6018
+ return isObjectLike$6(value) &&
6019
+ isLength$2(value.length) && !!typedArrayTags[baseGetTag$3(value)];
6030
6020
  }
6031
6021
 
6022
+ var _baseIsTypedArray = baseIsTypedArray$1;
6023
+
6032
6024
  /**
6033
6025
  * The base implementation of `_.unary` without support for storing metadata.
6034
6026
  *
@@ -6037,13 +6029,13 @@ function require_baseIsTypedArray () {
6037
6029
  * @returns {Function} Returns the new capped function.
6038
6030
  */
6039
6031
 
6040
- function baseUnary$2(func) {
6032
+ function baseUnary$3(func) {
6041
6033
  return function(value) {
6042
6034
  return func(value);
6043
6035
  };
6044
6036
  }
6045
6037
 
6046
- var _baseUnary = baseUnary$2;
6038
+ var _baseUnary = baseUnary$3;
6047
6039
 
6048
6040
  var _nodeUtilExports = {};
6049
6041
  var _nodeUtil = {
@@ -6084,48 +6076,40 @@ var _nodeUtil = {
6084
6076
  module.exports = nodeUtil;
6085
6077
  } (_nodeUtil, _nodeUtilExports));
6086
6078
 
6087
- var isTypedArray_1;
6088
- var hasRequiredIsTypedArray;
6089
-
6090
- function requireIsTypedArray () {
6091
- if (hasRequiredIsTypedArray) return isTypedArray_1;
6092
- hasRequiredIsTypedArray = 1;
6093
- var baseIsTypedArray = require_baseIsTypedArray(),
6094
- baseUnary = _baseUnary,
6095
- nodeUtil = _nodeUtilExports;
6079
+ var baseIsTypedArray = _baseIsTypedArray,
6080
+ baseUnary$2 = _baseUnary,
6081
+ nodeUtil$2 = _nodeUtilExports;
6096
6082
 
6097
- /* Node.js helper references. */
6098
- var nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;
6083
+ /* Node.js helper references. */
6084
+ var nodeIsTypedArray = nodeUtil$2 && nodeUtil$2.isTypedArray;
6099
6085
 
6100
- /**
6101
- * Checks if `value` is classified as a typed array.
6102
- *
6103
- * @static
6104
- * @memberOf _
6105
- * @since 3.0.0
6106
- * @category Lang
6107
- * @param {*} value The value to check.
6108
- * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
6109
- * @example
6110
- *
6111
- * _.isTypedArray(new Uint8Array);
6112
- * // => true
6113
- *
6114
- * _.isTypedArray([]);
6115
- * // => false
6116
- */
6117
- var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;
6086
+ /**
6087
+ * Checks if `value` is classified as a typed array.
6088
+ *
6089
+ * @static
6090
+ * @memberOf _
6091
+ * @since 3.0.0
6092
+ * @category Lang
6093
+ * @param {*} value The value to check.
6094
+ * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
6095
+ * @example
6096
+ *
6097
+ * _.isTypedArray(new Uint8Array);
6098
+ * // => true
6099
+ *
6100
+ * _.isTypedArray([]);
6101
+ * // => false
6102
+ */
6103
+ var isTypedArray$2 = nodeIsTypedArray ? baseUnary$2(nodeIsTypedArray) : baseIsTypedArray;
6118
6104
 
6119
- isTypedArray_1 = isTypedArray;
6120
- return isTypedArray_1;
6121
- }
6105
+ var isTypedArray_1 = isTypedArray$2;
6122
6106
 
6123
6107
  var baseTimes = _baseTimes,
6124
6108
  isArguments$2 = requireIsArguments(),
6125
6109
  isArray$f = isArray_1,
6126
6110
  isBuffer$4 = isBufferExports,
6127
6111
  isIndex$1 = _isIndex,
6128
- isTypedArray$1 = requireIsTypedArray();
6112
+ isTypedArray$1 = isTypedArray_1;
6129
6113
 
6130
6114
  /** Used for built-in method references. */
6131
6115
  var objectProto$7 = Object.prototype;
@@ -8830,7 +8814,7 @@ var Stack$1 = require_Stack(),
8830
8814
  getTag = _getTag,
8831
8815
  isArray$c = isArray_1,
8832
8816
  isBuffer$2 = isBufferExports,
8833
- isTypedArray = requireIsTypedArray();
8817
+ isTypedArray = isTypedArray_1;
8834
8818
 
8835
8819
  /** Used to compose bitmasks for value comparisons. */
8836
8820
  var COMPARE_PARTIAL_FLAG$2 = 1;
@@ -10175,7 +10159,7 @@ function require_baseMergeDeep () {
10175
10159
  isFunction = isFunction_1,
10176
10160
  isObject = isObject_1,
10177
10161
  isPlainObject = isPlainObject_1,
10178
- isTypedArray = requireIsTypedArray(),
10162
+ isTypedArray = isTypedArray_1,
10179
10163
  safeGet = require_safeGet(),
10180
10164
  toPlainObject = requireToPlainObject();
10181
10165
 
@@ -10827,17 +10811,17 @@ var FeatureId = /* @__PURE__ */ ((FeatureId2) => {
10827
10811
  return FeatureId2;
10828
10812
  })(FeatureId || {});
10829
10813
 
10830
- var __getOwnPropSymbols$18 = Object.getOwnPropertySymbols;
10831
- var __hasOwnProp$18 = Object.prototype.hasOwnProperty;
10832
- var __propIsEnum$18 = Object.prototype.propertyIsEnumerable;
10833
- var __objRest$y = (source, exclude) => {
10814
+ var __getOwnPropSymbols$19 = Object.getOwnPropertySymbols;
10815
+ var __hasOwnProp$19 = Object.prototype.hasOwnProperty;
10816
+ var __propIsEnum$19 = Object.prototype.propertyIsEnumerable;
10817
+ var __objRest$z = (source, exclude) => {
10834
10818
  var target = {};
10835
10819
  for (var prop in source)
10836
- if (__hasOwnProp$18.call(source, prop) && exclude.indexOf(prop) < 0)
10820
+ if (__hasOwnProp$19.call(source, prop) && exclude.indexOf(prop) < 0)
10837
10821
  target[prop] = source[prop];
10838
- if (source != null && __getOwnPropSymbols$18)
10839
- for (var prop of __getOwnPropSymbols$18(source)) {
10840
- if (exclude.indexOf(prop) < 0 && __propIsEnum$18.call(source, prop))
10822
+ if (source != null && __getOwnPropSymbols$19)
10823
+ for (var prop of __getOwnPropSymbols$19(source)) {
10824
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$19.call(source, prop))
10841
10825
  target[prop] = source[prop];
10842
10826
  }
10843
10827
  return target;
@@ -10851,7 +10835,7 @@ class CodedError {
10851
10835
  this.message = message;
10852
10836
  }
10853
10837
  static fromObject(_a) {
10854
- var _b = _a, { message } = _b, options = __objRest$y(_b, ["message"]);
10838
+ var _b = _a, { message } = _b, options = __objRest$z(_b, ["message"]);
10855
10839
  return new CodedError(message, options);
10856
10840
  }
10857
10841
  }
@@ -10973,17 +10957,17 @@ const types = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
10973
10957
  RateCardStatus
10974
10958
  }, Symbol.toStringTag, { value: 'Module' }));
10975
10959
 
10976
- var __getOwnPropSymbols$17 = Object.getOwnPropertySymbols;
10977
- var __hasOwnProp$17 = Object.prototype.hasOwnProperty;
10978
- var __propIsEnum$17 = Object.prototype.propertyIsEnumerable;
10979
- var __objRest$x = (source, exclude) => {
10960
+ var __getOwnPropSymbols$18 = Object.getOwnPropertySymbols;
10961
+ var __hasOwnProp$18 = Object.prototype.hasOwnProperty;
10962
+ var __propIsEnum$18 = Object.prototype.propertyIsEnumerable;
10963
+ var __objRest$y = (source, exclude) => {
10980
10964
  var target = {};
10981
10965
  for (var prop in source)
10982
- if (__hasOwnProp$17.call(source, prop) && exclude.indexOf(prop) < 0)
10966
+ if (__hasOwnProp$18.call(source, prop) && exclude.indexOf(prop) < 0)
10983
10967
  target[prop] = source[prop];
10984
- if (source != null && __getOwnPropSymbols$17)
10985
- for (var prop of __getOwnPropSymbols$17(source)) {
10986
- if (exclude.indexOf(prop) < 0 && __propIsEnum$17.call(source, prop))
10968
+ if (source != null && __getOwnPropSymbols$18)
10969
+ for (var prop of __getOwnPropSymbols$18(source)) {
10970
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$18.call(source, prop))
10987
10971
  target[prop] = source[prop];
10988
10972
  }
10989
10973
  return target;
@@ -11015,7 +10999,7 @@ class AccountSettingsAPI {
11015
10999
  * The `updateImage` method updates specific image data for a given image id.
11016
11000
  */
11017
11001
  this.updateImage = (_a) => {
11018
- var _b = _a, { labelImageId } = _b, data = __objRest$x(_b, ["labelImageId"]);
11002
+ var _b = _a, { labelImageId } = _b, data = __objRest$y(_b, ["labelImageId"]);
11019
11003
  return this.client.put(`/v1/account/settings/images/${labelImageId}`, data);
11020
11004
  };
11021
11005
  /**
@@ -14010,30 +13994,30 @@ const decamelizeKeys = (obj, separator = "_") => {
14010
13994
  var __defProp$X = Object.defineProperty;
14011
13995
  var __defProps$R = Object.defineProperties;
14012
13996
  var __getOwnPropDescs$R = Object.getOwnPropertyDescriptors;
14013
- var __getOwnPropSymbols$16 = Object.getOwnPropertySymbols;
14014
- var __hasOwnProp$16 = Object.prototype.hasOwnProperty;
14015
- var __propIsEnum$16 = Object.prototype.propertyIsEnumerable;
13997
+ var __getOwnPropSymbols$17 = Object.getOwnPropertySymbols;
13998
+ var __hasOwnProp$17 = Object.prototype.hasOwnProperty;
13999
+ var __propIsEnum$17 = Object.prototype.propertyIsEnumerable;
14016
14000
  var __defNormalProp$X = (obj, key, value) => key in obj ? __defProp$X(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
14017
14001
  var __spreadValues$X = (a, b) => {
14018
14002
  for (var prop in b || (b = {}))
14019
- if (__hasOwnProp$16.call(b, prop))
14003
+ if (__hasOwnProp$17.call(b, prop))
14020
14004
  __defNormalProp$X(a, prop, b[prop]);
14021
- if (__getOwnPropSymbols$16)
14022
- for (var prop of __getOwnPropSymbols$16(b)) {
14023
- if (__propIsEnum$16.call(b, prop))
14005
+ if (__getOwnPropSymbols$17)
14006
+ for (var prop of __getOwnPropSymbols$17(b)) {
14007
+ if (__propIsEnum$17.call(b, prop))
14024
14008
  __defNormalProp$X(a, prop, b[prop]);
14025
14009
  }
14026
14010
  return a;
14027
14011
  };
14028
14012
  var __spreadProps$R = (a, b) => __defProps$R(a, __getOwnPropDescs$R(b));
14029
- var __objRest$w = (source, exclude) => {
14013
+ var __objRest$x = (source, exclude) => {
14030
14014
  var target = {};
14031
14015
  for (var prop in source)
14032
- if (__hasOwnProp$16.call(source, prop) && exclude.indexOf(prop) < 0)
14016
+ if (__hasOwnProp$17.call(source, prop) && exclude.indexOf(prop) < 0)
14033
14017
  target[prop] = source[prop];
14034
- if (source != null && __getOwnPropSymbols$16)
14035
- for (var prop of __getOwnPropSymbols$16(source)) {
14036
- if (exclude.indexOf(prop) < 0 && __propIsEnum$16.call(source, prop))
14018
+ if (source != null && __getOwnPropSymbols$17)
14019
+ for (var prop of __getOwnPropSymbols$17(source)) {
14020
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$17.call(source, prop))
14037
14021
  target[prop] = source[prop];
14038
14022
  }
14039
14023
  return target;
@@ -14079,7 +14063,7 @@ class CarriersAPI {
14079
14063
  * The `connect` method connects a carrier account to a user's ShipEngine account.
14080
14064
  */
14081
14065
  this.connect = (_a) => __async$1f(this, null, function* () {
14082
- var _b = _a, { carrierCode } = _b, connection = __objRest$w(_b, ["carrierCode"]);
14066
+ var _b = _a, { carrierCode } = _b, connection = __objRest$x(_b, ["carrierCode"]);
14083
14067
  const endUserIpAddress = yield getEndUserIpAddress();
14084
14068
  if (!endUserIpAddress)
14085
14069
  return Promise.reject([new CodedError("Unable to get IP address")]);
@@ -14177,17 +14161,17 @@ class CarriersAPI {
14177
14161
  }
14178
14162
  }
14179
14163
 
14180
- var __getOwnPropSymbols$15 = Object.getOwnPropertySymbols;
14181
- var __hasOwnProp$15 = Object.prototype.hasOwnProperty;
14182
- var __propIsEnum$15 = Object.prototype.propertyIsEnumerable;
14183
- var __objRest$v = (source, exclude) => {
14164
+ var __getOwnPropSymbols$16 = Object.getOwnPropertySymbols;
14165
+ var __hasOwnProp$16 = Object.prototype.hasOwnProperty;
14166
+ var __propIsEnum$16 = Object.prototype.propertyIsEnumerable;
14167
+ var __objRest$w = (source, exclude) => {
14184
14168
  var target = {};
14185
14169
  for (var prop in source)
14186
- if (__hasOwnProp$15.call(source, prop) && exclude.indexOf(prop) < 0)
14170
+ if (__hasOwnProp$16.call(source, prop) && exclude.indexOf(prop) < 0)
14187
14171
  target[prop] = source[prop];
14188
- if (source != null && __getOwnPropSymbols$15)
14189
- for (var prop of __getOwnPropSymbols$15(source)) {
14190
- if (exclude.indexOf(prop) < 0 && __propIsEnum$15.call(source, prop))
14172
+ if (source != null && __getOwnPropSymbols$16)
14173
+ for (var prop of __getOwnPropSymbols$16(source)) {
14174
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$16.call(source, prop))
14191
14175
  target[prop] = source[prop];
14192
14176
  }
14193
14177
  return target;
@@ -14282,7 +14266,7 @@ class ConnectionsAPI {
14282
14266
  * @docs https://auctane.atlassian.net/wiki/spaces/SEEU/pages/6228738069/ENGINE-9471+Endicia+web+client+communication
14283
14267
  */
14284
14268
  this.requestStampsAccountUrls = (_a) => {
14285
- var _b = _a, { carrierId } = _b, rest = __objRest$v(_b, ["carrierId"]);
14269
+ var _b = _a, { carrierId } = _b, rest = __objRest$w(_b, ["carrierId"]);
14286
14270
  return this.client.put(
14287
14271
  `v1/connections/carriers/stamps_com/${carrierId}/request_account_url`,
14288
14272
  rest
@@ -16403,17 +16387,17 @@ class CustomPackagesAPI {
16403
16387
  }
16404
16388
 
16405
16389
  var __defProp$W = Object.defineProperty;
16406
- var __getOwnPropSymbols$14 = Object.getOwnPropertySymbols;
16407
- var __hasOwnProp$14 = Object.prototype.hasOwnProperty;
16408
- var __propIsEnum$14 = Object.prototype.propertyIsEnumerable;
16390
+ var __getOwnPropSymbols$15 = Object.getOwnPropertySymbols;
16391
+ var __hasOwnProp$15 = Object.prototype.hasOwnProperty;
16392
+ var __propIsEnum$15 = Object.prototype.propertyIsEnumerable;
16409
16393
  var __defNormalProp$W = (obj, key, value) => key in obj ? __defProp$W(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
16410
16394
  var __spreadValues$W = (a, b) => {
16411
16395
  for (var prop in b || (b = {}))
16412
- if (__hasOwnProp$14.call(b, prop))
16396
+ if (__hasOwnProp$15.call(b, prop))
16413
16397
  __defNormalProp$W(a, prop, b[prop]);
16414
- if (__getOwnPropSymbols$14)
16415
- for (var prop of __getOwnPropSymbols$14(b)) {
16416
- if (__propIsEnum$14.call(b, prop))
16398
+ if (__getOwnPropSymbols$15)
16399
+ for (var prop of __getOwnPropSymbols$15(b)) {
16400
+ if (__propIsEnum$15.call(b, prop))
16417
16401
  __defNormalProp$W(a, prop, b[prop]);
16418
16402
  }
16419
16403
  return a;
@@ -16688,17 +16672,17 @@ class LabelsAPI {
16688
16672
  }
16689
16673
  }
16690
16674
 
16691
- var __getOwnPropSymbols$13 = Object.getOwnPropertySymbols;
16692
- var __hasOwnProp$13 = Object.prototype.hasOwnProperty;
16693
- var __propIsEnum$13 = Object.prototype.propertyIsEnumerable;
16694
- var __objRest$u = (source, exclude) => {
16675
+ var __getOwnPropSymbols$14 = Object.getOwnPropertySymbols;
16676
+ var __hasOwnProp$14 = Object.prototype.hasOwnProperty;
16677
+ var __propIsEnum$14 = Object.prototype.propertyIsEnumerable;
16678
+ var __objRest$v = (source, exclude) => {
16695
16679
  var target = {};
16696
16680
  for (var prop in source)
16697
- if (__hasOwnProp$13.call(source, prop) && exclude.indexOf(prop) < 0)
16681
+ if (__hasOwnProp$14.call(source, prop) && exclude.indexOf(prop) < 0)
16698
16682
  target[prop] = source[prop];
16699
- if (source != null && __getOwnPropSymbols$13)
16700
- for (var prop of __getOwnPropSymbols$13(source)) {
16701
- if (exclude.indexOf(prop) < 0 && __propIsEnum$13.call(source, prop))
16683
+ if (source != null && __getOwnPropSymbols$14)
16684
+ for (var prop of __getOwnPropSymbols$14(source)) {
16685
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$14.call(source, prop))
16702
16686
  target[prop] = source[prop];
16703
16687
  }
16704
16688
  return target;
@@ -16730,7 +16714,7 @@ class OrderSourcesAPI {
16730
16714
  * The `update` method will allow the user to update a connected Order Source
16731
16715
  */
16732
16716
  this.update = (_a) => {
16733
- var _b = _a, { orderSourceId } = _b, rest = __objRest$u(_b, ["orderSourceId"]);
16717
+ var _b = _a, { orderSourceId } = _b, rest = __objRest$v(_b, ["orderSourceId"]);
16734
16718
  return this.client.put(`/v-beta/order_sources/${orderSourceId}`, rest);
16735
16719
  };
16736
16720
  /**
@@ -16859,17 +16843,17 @@ class RateShoppersAPI {
16859
16843
  }
16860
16844
 
16861
16845
  var __defProp$V = Object.defineProperty;
16862
- var __getOwnPropSymbols$12 = Object.getOwnPropertySymbols;
16863
- var __hasOwnProp$12 = Object.prototype.hasOwnProperty;
16864
- var __propIsEnum$12 = Object.prototype.propertyIsEnumerable;
16846
+ var __getOwnPropSymbols$13 = Object.getOwnPropertySymbols;
16847
+ var __hasOwnProp$13 = Object.prototype.hasOwnProperty;
16848
+ var __propIsEnum$13 = Object.prototype.propertyIsEnumerable;
16865
16849
  var __defNormalProp$V = (obj, key, value) => key in obj ? __defProp$V(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
16866
16850
  var __spreadValues$V = (a, b) => {
16867
16851
  for (var prop in b || (b = {}))
16868
- if (__hasOwnProp$12.call(b, prop))
16852
+ if (__hasOwnProp$13.call(b, prop))
16869
16853
  __defNormalProp$V(a, prop, b[prop]);
16870
- if (__getOwnPropSymbols$12)
16871
- for (var prop of __getOwnPropSymbols$12(b)) {
16872
- if (__propIsEnum$12.call(b, prop))
16854
+ if (__getOwnPropSymbols$13)
16855
+ for (var prop of __getOwnPropSymbols$13(b)) {
16856
+ if (__propIsEnum$13.call(b, prop))
16873
16857
  __defNormalProp$V(a, prop, b[prop]);
16874
16858
  }
16875
16859
  return a;
@@ -17077,17 +17061,17 @@ class SellersAPI {
17077
17061
  }
17078
17062
 
17079
17063
  var __defProp$U = Object.defineProperty;
17080
- var __getOwnPropSymbols$11 = Object.getOwnPropertySymbols;
17081
- var __hasOwnProp$11 = Object.prototype.hasOwnProperty;
17082
- var __propIsEnum$11 = Object.prototype.propertyIsEnumerable;
17064
+ var __getOwnPropSymbols$12 = Object.getOwnPropertySymbols;
17065
+ var __hasOwnProp$12 = Object.prototype.hasOwnProperty;
17066
+ var __propIsEnum$12 = Object.prototype.propertyIsEnumerable;
17083
17067
  var __defNormalProp$U = (obj, key, value) => key in obj ? __defProp$U(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
17084
17068
  var __spreadValues$U = (a, b) => {
17085
17069
  for (var prop in b || (b = {}))
17086
- if (__hasOwnProp$11.call(b, prop))
17070
+ if (__hasOwnProp$12.call(b, prop))
17087
17071
  __defNormalProp$U(a, prop, b[prop]);
17088
- if (__getOwnPropSymbols$11)
17089
- for (var prop of __getOwnPropSymbols$11(b)) {
17090
- if (__propIsEnum$11.call(b, prop))
17072
+ if (__getOwnPropSymbols$12)
17073
+ for (var prop of __getOwnPropSymbols$12(b)) {
17074
+ if (__propIsEnum$12.call(b, prop))
17091
17075
  __defNormalProp$U(a, prop, b[prop]);
17092
17076
  }
17093
17077
  return a;
@@ -34587,30 +34571,30 @@ class WebhooksAPI {
34587
34571
  var __defProp$T = Object.defineProperty;
34588
34572
  var __defProps$Q = Object.defineProperties;
34589
34573
  var __getOwnPropDescs$Q = Object.getOwnPropertyDescriptors;
34590
- var __getOwnPropSymbols$10 = Object.getOwnPropertySymbols;
34591
- var __hasOwnProp$10 = Object.prototype.hasOwnProperty;
34592
- var __propIsEnum$10 = Object.prototype.propertyIsEnumerable;
34574
+ var __getOwnPropSymbols$11 = Object.getOwnPropertySymbols;
34575
+ var __hasOwnProp$11 = Object.prototype.hasOwnProperty;
34576
+ var __propIsEnum$11 = Object.prototype.propertyIsEnumerable;
34593
34577
  var __defNormalProp$T = (obj, key, value) => key in obj ? __defProp$T(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
34594
34578
  var __spreadValues$T = (a, b) => {
34595
34579
  for (var prop in b || (b = {}))
34596
- if (__hasOwnProp$10.call(b, prop))
34580
+ if (__hasOwnProp$11.call(b, prop))
34597
34581
  __defNormalProp$T(a, prop, b[prop]);
34598
- if (__getOwnPropSymbols$10)
34599
- for (var prop of __getOwnPropSymbols$10(b)) {
34600
- if (__propIsEnum$10.call(b, prop))
34582
+ if (__getOwnPropSymbols$11)
34583
+ for (var prop of __getOwnPropSymbols$11(b)) {
34584
+ if (__propIsEnum$11.call(b, prop))
34601
34585
  __defNormalProp$T(a, prop, b[prop]);
34602
34586
  }
34603
34587
  return a;
34604
34588
  };
34605
34589
  var __spreadProps$Q = (a, b) => __defProps$Q(a, __getOwnPropDescs$Q(b));
34606
- var __objRest$t = (source, exclude) => {
34590
+ var __objRest$u = (source, exclude) => {
34607
34591
  var target = {};
34608
34592
  for (var prop in source)
34609
- if (__hasOwnProp$10.call(source, prop) && exclude.indexOf(prop) < 0)
34593
+ if (__hasOwnProp$11.call(source, prop) && exclude.indexOf(prop) < 0)
34610
34594
  target[prop] = source[prop];
34611
- if (source != null && __getOwnPropSymbols$10)
34612
- for (var prop of __getOwnPropSymbols$10(source)) {
34613
- if (exclude.indexOf(prop) < 0 && __propIsEnum$10.call(source, prop))
34595
+ if (source != null && __getOwnPropSymbols$11)
34596
+ for (var prop of __getOwnPropSymbols$11(source)) {
34597
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$11.call(source, prop))
34614
34598
  target[prop] = source[prop];
34615
34599
  }
34616
34600
  return target;
@@ -34673,7 +34657,7 @@ class ShipEngineAPI {
34673
34657
  return decamelizeKeys(data);
34674
34658
  else {
34675
34659
  if (data && data.__skipDecamelize) {
34676
- const _a = data, cleanData = __objRest$t(_a, ["__skipDecamelize"]);
34660
+ const _a = data, cleanData = __objRest$u(_a, ["__skipDecamelize"]);
34677
34661
  return cleanData;
34678
34662
  }
34679
34663
  return data;
@@ -35050,6 +35034,21 @@ class ShipEngineAPI {
35050
35034
  }
35051
35035
  }
35052
35036
 
35037
+ var __getOwnPropSymbols$10 = Object.getOwnPropertySymbols;
35038
+ var __hasOwnProp$10 = Object.prototype.hasOwnProperty;
35039
+ var __propIsEnum$10 = Object.prototype.propertyIsEnumerable;
35040
+ var __objRest$t = (source, exclude) => {
35041
+ var target = {};
35042
+ for (var prop in source)
35043
+ if (__hasOwnProp$10.call(source, prop) && exclude.indexOf(prop) < 0)
35044
+ target[prop] = source[prop];
35045
+ if (source != null && __getOwnPropSymbols$10)
35046
+ for (var prop of __getOwnPropSymbols$10(source)) {
35047
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$10.call(source, prop))
35048
+ target[prop] = source[prop];
35049
+ }
35050
+ return target;
35051
+ };
35053
35052
  const ShipEngineContext = React.createContext(void 0);
35054
35053
  const ShipEngine = ({
35055
35054
  baseURL,
@@ -35062,9 +35061,11 @@ const ShipEngine = ({
35062
35061
  defaultQueryClientOptions = {}
35063
35062
  }) => {
35064
35063
  const [client, setClient] = React.useState();
35064
+ const _a = defaultQueryClientOptions, { onError, onSuccess } = _a, restQueryClientOptions = __objRest$t(_a, ["onError", "onSuccess"]);
35065
35065
  const [queryClient] = React.useState(
35066
35066
  () => new reactQuery.QueryClient({
35067
- defaultOptions: defaultQueryClientOptions
35067
+ defaultOptions: restQueryClientOptions,
35068
+ queryCache: new reactQuery.QueryCache({ onError, onSuccess })
35068
35069
  })
35069
35070
  );
35070
35071
  React.useEffect(() => {