@shipengine/alchemy 6.0.97-next.2 → 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.mjs CHANGED
@@ -2,7 +2,7 @@ import * as React from 'react';
2
2
  import { createContext, forwardRef, useContext, createElement as createElement$1, Fragment, useState, useEffect, useCallback, useMemo, useRef } from 'react';
3
3
  import { jsx as jsx$1 } from 'react/jsx-runtime';
4
4
  import { GigerProvider, GigerTestProvider, DefaultPortalRefProvider } from '@shipengine/giger';
5
- import { QueryClient, QueryClientProvider, useMutation, useQuery, useQueryClient, useInfiniteQuery } from '@tanstack/react-query';
5
+ import { QueryClient, QueryCache, QueryClientProvider, useMutation, useQuery, useQueryClient, useInfiniteQuery } from '@tanstack/react-query';
6
6
  import { CacheProvider } from '@emotion/react';
7
7
  import { I18nextProvider } from 'react-i18next';
8
8
  import i18n from 'i18next';
@@ -3531,7 +3531,7 @@ var symToStringTag = Symbol$5 ? Symbol$5.toStringTag : undefined;
3531
3531
  * @param {*} value The value to query.
3532
3532
  * @returns {string} Returns the `toStringTag`.
3533
3533
  */
3534
- function baseGetTag$5(value) {
3534
+ function baseGetTag$6(value) {
3535
3535
  if (value == null) {
3536
3536
  return value === undefined ? undefinedTag : nullTag;
3537
3537
  }
@@ -3540,7 +3540,7 @@ function baseGetTag$5(value) {
3540
3540
  : objectToString$1(value);
3541
3541
  }
3542
3542
 
3543
- var _baseGetTag = baseGetTag$5;
3543
+ var _baseGetTag = baseGetTag$6;
3544
3544
 
3545
3545
  /**
3546
3546
  * Checks if `value` is the
@@ -3575,12 +3575,12 @@ function isObject$8(value) {
3575
3575
 
3576
3576
  var isObject_1 = isObject$8;
3577
3577
 
3578
- var baseGetTag$4 = _baseGetTag,
3578
+ var baseGetTag$5 = _baseGetTag,
3579
3579
  isObject$7 = isObject_1;
3580
3580
 
3581
3581
  /** `Object#toString` result references. */
3582
3582
  var asyncTag = '[object AsyncFunction]',
3583
- funcTag$1 = '[object Function]',
3583
+ funcTag$2 = '[object Function]',
3584
3584
  genTag$1 = '[object GeneratorFunction]',
3585
3585
  proxyTag = '[object Proxy]';
3586
3586
 
@@ -3607,8 +3607,8 @@ function isFunction$3(value) {
3607
3607
  }
3608
3608
  // The use of `Object#toString` avoids issues with the `typeof` operator
3609
3609
  // in Safari 9 which returns 'object' for typed arrays and other constructors.
3610
- var tag = baseGetTag$4(value);
3611
- return tag == funcTag$1 || tag == genTag$1 || tag == asyncTag || tag == proxyTag;
3610
+ var tag = baseGetTag$5(value);
3611
+ return tag == funcTag$2 || tag == genTag$1 || tag == asyncTag || tag == proxyTag;
3612
3612
  }
3613
3613
 
3614
3614
  var isFunction_1 = isFunction$3;
@@ -4201,11 +4201,11 @@ var isArray_1 = isArray$h;
4201
4201
  * // => false
4202
4202
  */
4203
4203
 
4204
- function isObjectLike$8(value) {
4204
+ function isObjectLike$9(value) {
4205
4205
  return value != null && typeof value == 'object';
4206
4206
  }
4207
4207
 
4208
- var isObjectLike_1 = isObjectLike$8;
4208
+ var isObjectLike_1 = isObjectLike$9;
4209
4209
 
4210
4210
  /**
4211
4211
  * Copies the values of `source` to `array`.
@@ -4257,7 +4257,7 @@ var LazyWrapper$1 = _LazyWrapper,
4257
4257
  LodashWrapper = _LodashWrapper,
4258
4258
  baseLodash = _baseLodash,
4259
4259
  isArray$g = isArray_1,
4260
- isObjectLike$7 = isObjectLike_1,
4260
+ isObjectLike$8 = isObjectLike_1,
4261
4261
  wrapperClone = _wrapperClone;
4262
4262
 
4263
4263
  /** Used for built-in method references. */
@@ -4384,7 +4384,7 @@ var hasOwnProperty$7 = objectProto$9.hasOwnProperty;
4384
4384
  * // => true
4385
4385
  */
4386
4386
  function lodash$2(value) {
4387
- if (isObjectLike$7(value) && !isArray$g(value) && !(value instanceof LazyWrapper$1)) {
4387
+ if (isObjectLike$8(value) && !isArray$g(value) && !(value instanceof LazyWrapper$1)) {
4388
4388
  if (value instanceof LodashWrapper) {
4389
4389
  return value;
4390
4390
  }
@@ -5285,8 +5285,8 @@ function baseTrim$1(string) {
5285
5285
 
5286
5286
  var _baseTrim = baseTrim$1;
5287
5287
 
5288
- var baseGetTag$3 = _baseGetTag,
5289
- isObjectLike$6 = isObjectLike_1;
5288
+ var baseGetTag$4 = _baseGetTag,
5289
+ isObjectLike$7 = isObjectLike_1;
5290
5290
 
5291
5291
  /** `Object#toString` result references. */
5292
5292
  var symbolTag$3 = '[object Symbol]';
@@ -5310,7 +5310,7 @@ var symbolTag$3 = '[object Symbol]';
5310
5310
  */
5311
5311
  function isSymbol$6(value) {
5312
5312
  return typeof value == 'symbol' ||
5313
- (isObjectLike$6(value) && baseGetTag$3(value) == symbolTag$3);
5313
+ (isObjectLike$7(value) && baseGetTag$4(value) == symbolTag$3);
5314
5314
  }
5315
5315
 
5316
5316
  var isSymbol_1 = isSymbol$6;
@@ -5931,82 +5931,74 @@ var MAX_SAFE_INTEGER = 9007199254740991;
5931
5931
  * _.isLength('3');
5932
5932
  * // => false
5933
5933
  */
5934
- function isLength$2(value) {
5934
+ function isLength$3(value) {
5935
5935
  return typeof value == 'number' &&
5936
5936
  value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
5937
5937
  }
5938
5938
 
5939
- var isLength_1 = isLength$2;
5940
-
5941
- var _baseIsTypedArray;
5942
- var hasRequired_baseIsTypedArray;
5939
+ var isLength_1 = isLength$3;
5943
5940
 
5944
- function require_baseIsTypedArray () {
5945
- if (hasRequired_baseIsTypedArray) return _baseIsTypedArray;
5946
- hasRequired_baseIsTypedArray = 1;
5947
- var baseGetTag = _baseGetTag,
5948
- isLength = isLength_1,
5949
- isObjectLike = isObjectLike_1;
5950
-
5951
- /** `Object#toString` result references. */
5952
- var argsTag = '[object Arguments]',
5953
- arrayTag = '[object Array]',
5954
- boolTag = '[object Boolean]',
5955
- dateTag = '[object Date]',
5956
- errorTag = '[object Error]',
5957
- funcTag = '[object Function]',
5958
- mapTag = '[object Map]',
5959
- numberTag = '[object Number]',
5960
- objectTag = '[object Object]',
5961
- regexpTag = '[object RegExp]',
5962
- setTag = '[object Set]',
5963
- stringTag = '[object String]',
5964
- weakMapTag = '[object WeakMap]';
5965
-
5966
- var arrayBufferTag = '[object ArrayBuffer]',
5967
- dataViewTag = '[object DataView]',
5968
- float32Tag = '[object Float32Array]',
5969
- float64Tag = '[object Float64Array]',
5970
- int8Tag = '[object Int8Array]',
5971
- int16Tag = '[object Int16Array]',
5972
- int32Tag = '[object Int32Array]',
5973
- uint8Tag = '[object Uint8Array]',
5974
- uint8ClampedTag = '[object Uint8ClampedArray]',
5975
- uint16Tag = '[object Uint16Array]',
5976
- uint32Tag = '[object Uint32Array]';
5977
-
5978
- /** Used to identify `toStringTag` values of typed arrays. */
5979
- var typedArrayTags = {};
5980
- typedArrayTags[float32Tag] = typedArrayTags[float64Tag] =
5981
- typedArrayTags[int8Tag] = typedArrayTags[int16Tag] =
5982
- typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] =
5983
- typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] =
5984
- typedArrayTags[uint32Tag] = true;
5985
- typedArrayTags[argsTag] = typedArrayTags[arrayTag] =
5986
- typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] =
5987
- typedArrayTags[dataViewTag] = typedArrayTags[dateTag] =
5988
- typedArrayTags[errorTag] = typedArrayTags[funcTag] =
5989
- typedArrayTags[mapTag] = typedArrayTags[numberTag] =
5990
- typedArrayTags[objectTag] = typedArrayTags[regexpTag] =
5991
- typedArrayTags[setTag] = typedArrayTags[stringTag] =
5992
- typedArrayTags[weakMapTag] = false;
5941
+ var baseGetTag$3 = _baseGetTag,
5942
+ isLength$2 = isLength_1,
5943
+ isObjectLike$6 = isObjectLike_1;
5993
5944
 
5994
- /**
5995
- * The base implementation of `_.isTypedArray` without Node.js optimizations.
5996
- *
5997
- * @private
5998
- * @param {*} value The value to check.
5999
- * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
6000
- */
6001
- function baseIsTypedArray(value) {
6002
- return isObjectLike(value) &&
6003
- isLength(value.length) && !!typedArrayTags[baseGetTag(value)];
6004
- }
5945
+ /** `Object#toString` result references. */
5946
+ var argsTag$2 = '[object Arguments]',
5947
+ arrayTag$2 = '[object Array]',
5948
+ boolTag$3 = '[object Boolean]',
5949
+ dateTag$3 = '[object Date]',
5950
+ errorTag$3 = '[object Error]',
5951
+ funcTag$1 = '[object Function]',
5952
+ mapTag$5 = '[object Map]',
5953
+ numberTag$3 = '[object Number]',
5954
+ objectTag$4 = '[object Object]',
5955
+ regexpTag$3 = '[object RegExp]',
5956
+ setTag$5 = '[object Set]',
5957
+ stringTag$3 = '[object String]',
5958
+ weakMapTag$3 = '[object WeakMap]';
5959
+
5960
+ var arrayBufferTag$3 = '[object ArrayBuffer]',
5961
+ dataViewTag$4 = '[object DataView]',
5962
+ float32Tag$2 = '[object Float32Array]',
5963
+ float64Tag$2 = '[object Float64Array]',
5964
+ int8Tag$2 = '[object Int8Array]',
5965
+ int16Tag$2 = '[object Int16Array]',
5966
+ int32Tag$2 = '[object Int32Array]',
5967
+ uint8Tag$2 = '[object Uint8Array]',
5968
+ uint8ClampedTag$2 = '[object Uint8ClampedArray]',
5969
+ uint16Tag$2 = '[object Uint16Array]',
5970
+ uint32Tag$2 = '[object Uint32Array]';
5971
+
5972
+ /** Used to identify `toStringTag` values of typed arrays. */
5973
+ var typedArrayTags = {};
5974
+ typedArrayTags[float32Tag$2] = typedArrayTags[float64Tag$2] =
5975
+ typedArrayTags[int8Tag$2] = typedArrayTags[int16Tag$2] =
5976
+ typedArrayTags[int32Tag$2] = typedArrayTags[uint8Tag$2] =
5977
+ typedArrayTags[uint8ClampedTag$2] = typedArrayTags[uint16Tag$2] =
5978
+ typedArrayTags[uint32Tag$2] = true;
5979
+ typedArrayTags[argsTag$2] = typedArrayTags[arrayTag$2] =
5980
+ typedArrayTags[arrayBufferTag$3] = typedArrayTags[boolTag$3] =
5981
+ typedArrayTags[dataViewTag$4] = typedArrayTags[dateTag$3] =
5982
+ typedArrayTags[errorTag$3] = typedArrayTags[funcTag$1] =
5983
+ typedArrayTags[mapTag$5] = typedArrayTags[numberTag$3] =
5984
+ typedArrayTags[objectTag$4] = typedArrayTags[regexpTag$3] =
5985
+ typedArrayTags[setTag$5] = typedArrayTags[stringTag$3] =
5986
+ typedArrayTags[weakMapTag$3] = false;
6005
5987
 
6006
- _baseIsTypedArray = baseIsTypedArray;
6007
- return _baseIsTypedArray;
5988
+ /**
5989
+ * The base implementation of `_.isTypedArray` without Node.js optimizations.
5990
+ *
5991
+ * @private
5992
+ * @param {*} value The value to check.
5993
+ * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
5994
+ */
5995
+ function baseIsTypedArray$1(value) {
5996
+ return isObjectLike$6(value) &&
5997
+ isLength$2(value.length) && !!typedArrayTags[baseGetTag$3(value)];
6008
5998
  }
6009
5999
 
6000
+ var _baseIsTypedArray = baseIsTypedArray$1;
6001
+
6010
6002
  /**
6011
6003
  * The base implementation of `_.unary` without support for storing metadata.
6012
6004
  *
@@ -6015,13 +6007,13 @@ function require_baseIsTypedArray () {
6015
6007
  * @returns {Function} Returns the new capped function.
6016
6008
  */
6017
6009
 
6018
- function baseUnary$2(func) {
6010
+ function baseUnary$3(func) {
6019
6011
  return function(value) {
6020
6012
  return func(value);
6021
6013
  };
6022
6014
  }
6023
6015
 
6024
- var _baseUnary = baseUnary$2;
6016
+ var _baseUnary = baseUnary$3;
6025
6017
 
6026
6018
  var _nodeUtilExports = {};
6027
6019
  var _nodeUtil = {
@@ -6062,48 +6054,40 @@ var _nodeUtil = {
6062
6054
  module.exports = nodeUtil;
6063
6055
  } (_nodeUtil, _nodeUtilExports));
6064
6056
 
6065
- var isTypedArray_1;
6066
- var hasRequiredIsTypedArray;
6067
-
6068
- function requireIsTypedArray () {
6069
- if (hasRequiredIsTypedArray) return isTypedArray_1;
6070
- hasRequiredIsTypedArray = 1;
6071
- var baseIsTypedArray = require_baseIsTypedArray(),
6072
- baseUnary = _baseUnary,
6073
- nodeUtil = _nodeUtilExports;
6057
+ var baseIsTypedArray = _baseIsTypedArray,
6058
+ baseUnary$2 = _baseUnary,
6059
+ nodeUtil$2 = _nodeUtilExports;
6074
6060
 
6075
- /* Node.js helper references. */
6076
- var nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;
6061
+ /* Node.js helper references. */
6062
+ var nodeIsTypedArray = nodeUtil$2 && nodeUtil$2.isTypedArray;
6077
6063
 
6078
- /**
6079
- * Checks if `value` is classified as a typed array.
6080
- *
6081
- * @static
6082
- * @memberOf _
6083
- * @since 3.0.0
6084
- * @category Lang
6085
- * @param {*} value The value to check.
6086
- * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
6087
- * @example
6088
- *
6089
- * _.isTypedArray(new Uint8Array);
6090
- * // => true
6091
- *
6092
- * _.isTypedArray([]);
6093
- * // => false
6094
- */
6095
- var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;
6064
+ /**
6065
+ * Checks if `value` is classified as a typed array.
6066
+ *
6067
+ * @static
6068
+ * @memberOf _
6069
+ * @since 3.0.0
6070
+ * @category Lang
6071
+ * @param {*} value The value to check.
6072
+ * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
6073
+ * @example
6074
+ *
6075
+ * _.isTypedArray(new Uint8Array);
6076
+ * // => true
6077
+ *
6078
+ * _.isTypedArray([]);
6079
+ * // => false
6080
+ */
6081
+ var isTypedArray$2 = nodeIsTypedArray ? baseUnary$2(nodeIsTypedArray) : baseIsTypedArray;
6096
6082
 
6097
- isTypedArray_1 = isTypedArray;
6098
- return isTypedArray_1;
6099
- }
6083
+ var isTypedArray_1 = isTypedArray$2;
6100
6084
 
6101
6085
  var baseTimes = _baseTimes,
6102
6086
  isArguments$2 = requireIsArguments(),
6103
6087
  isArray$f = isArray_1,
6104
6088
  isBuffer$4 = isBufferExports,
6105
6089
  isIndex$1 = _isIndex,
6106
- isTypedArray$1 = requireIsTypedArray();
6090
+ isTypedArray$1 = isTypedArray_1;
6107
6091
 
6108
6092
  /** Used for built-in method references. */
6109
6093
  var objectProto$7 = Object.prototype;
@@ -8808,7 +8792,7 @@ var Stack$1 = require_Stack(),
8808
8792
  getTag = _getTag,
8809
8793
  isArray$c = isArray_1,
8810
8794
  isBuffer$2 = isBufferExports,
8811
- isTypedArray = requireIsTypedArray();
8795
+ isTypedArray = isTypedArray_1;
8812
8796
 
8813
8797
  /** Used to compose bitmasks for value comparisons. */
8814
8798
  var COMPARE_PARTIAL_FLAG$2 = 1;
@@ -10153,7 +10137,7 @@ function require_baseMergeDeep () {
10153
10137
  isFunction = isFunction_1,
10154
10138
  isObject = isObject_1,
10155
10139
  isPlainObject = isPlainObject_1,
10156
- isTypedArray = requireIsTypedArray(),
10140
+ isTypedArray = isTypedArray_1,
10157
10141
  safeGet = require_safeGet(),
10158
10142
  toPlainObject = requireToPlainObject();
10159
10143
 
@@ -10805,17 +10789,17 @@ var FeatureId = /* @__PURE__ */ ((FeatureId2) => {
10805
10789
  return FeatureId2;
10806
10790
  })(FeatureId || {});
10807
10791
 
10808
- var __getOwnPropSymbols$18 = Object.getOwnPropertySymbols;
10809
- var __hasOwnProp$18 = Object.prototype.hasOwnProperty;
10810
- var __propIsEnum$18 = Object.prototype.propertyIsEnumerable;
10811
- var __objRest$y = (source, exclude) => {
10792
+ var __getOwnPropSymbols$19 = Object.getOwnPropertySymbols;
10793
+ var __hasOwnProp$19 = Object.prototype.hasOwnProperty;
10794
+ var __propIsEnum$19 = Object.prototype.propertyIsEnumerable;
10795
+ var __objRest$z = (source, exclude) => {
10812
10796
  var target = {};
10813
10797
  for (var prop in source)
10814
- if (__hasOwnProp$18.call(source, prop) && exclude.indexOf(prop) < 0)
10798
+ if (__hasOwnProp$19.call(source, prop) && exclude.indexOf(prop) < 0)
10815
10799
  target[prop] = source[prop];
10816
- if (source != null && __getOwnPropSymbols$18)
10817
- for (var prop of __getOwnPropSymbols$18(source)) {
10818
- if (exclude.indexOf(prop) < 0 && __propIsEnum$18.call(source, prop))
10800
+ if (source != null && __getOwnPropSymbols$19)
10801
+ for (var prop of __getOwnPropSymbols$19(source)) {
10802
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$19.call(source, prop))
10819
10803
  target[prop] = source[prop];
10820
10804
  }
10821
10805
  return target;
@@ -10829,7 +10813,7 @@ class CodedError {
10829
10813
  this.message = message;
10830
10814
  }
10831
10815
  static fromObject(_a) {
10832
- var _b = _a, { message } = _b, options = __objRest$y(_b, ["message"]);
10816
+ var _b = _a, { message } = _b, options = __objRest$z(_b, ["message"]);
10833
10817
  return new CodedError(message, options);
10834
10818
  }
10835
10819
  }
@@ -10951,17 +10935,17 @@ const types = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
10951
10935
  RateCardStatus
10952
10936
  }, Symbol.toStringTag, { value: 'Module' }));
10953
10937
 
10954
- var __getOwnPropSymbols$17 = Object.getOwnPropertySymbols;
10955
- var __hasOwnProp$17 = Object.prototype.hasOwnProperty;
10956
- var __propIsEnum$17 = Object.prototype.propertyIsEnumerable;
10957
- var __objRest$x = (source, exclude) => {
10938
+ var __getOwnPropSymbols$18 = Object.getOwnPropertySymbols;
10939
+ var __hasOwnProp$18 = Object.prototype.hasOwnProperty;
10940
+ var __propIsEnum$18 = Object.prototype.propertyIsEnumerable;
10941
+ var __objRest$y = (source, exclude) => {
10958
10942
  var target = {};
10959
10943
  for (var prop in source)
10960
- if (__hasOwnProp$17.call(source, prop) && exclude.indexOf(prop) < 0)
10944
+ if (__hasOwnProp$18.call(source, prop) && exclude.indexOf(prop) < 0)
10961
10945
  target[prop] = source[prop];
10962
- if (source != null && __getOwnPropSymbols$17)
10963
- for (var prop of __getOwnPropSymbols$17(source)) {
10964
- if (exclude.indexOf(prop) < 0 && __propIsEnum$17.call(source, prop))
10946
+ if (source != null && __getOwnPropSymbols$18)
10947
+ for (var prop of __getOwnPropSymbols$18(source)) {
10948
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$18.call(source, prop))
10965
10949
  target[prop] = source[prop];
10966
10950
  }
10967
10951
  return target;
@@ -10993,7 +10977,7 @@ class AccountSettingsAPI {
10993
10977
  * The `updateImage` method updates specific image data for a given image id.
10994
10978
  */
10995
10979
  this.updateImage = (_a) => {
10996
- var _b = _a, { labelImageId } = _b, data = __objRest$x(_b, ["labelImageId"]);
10980
+ var _b = _a, { labelImageId } = _b, data = __objRest$y(_b, ["labelImageId"]);
10997
10981
  return this.client.put(`/v1/account/settings/images/${labelImageId}`, data);
10998
10982
  };
10999
10983
  /**
@@ -13988,30 +13972,30 @@ const decamelizeKeys = (obj, separator = "_") => {
13988
13972
  var __defProp$X = Object.defineProperty;
13989
13973
  var __defProps$R = Object.defineProperties;
13990
13974
  var __getOwnPropDescs$R = Object.getOwnPropertyDescriptors;
13991
- var __getOwnPropSymbols$16 = Object.getOwnPropertySymbols;
13992
- var __hasOwnProp$16 = Object.prototype.hasOwnProperty;
13993
- var __propIsEnum$16 = Object.prototype.propertyIsEnumerable;
13975
+ var __getOwnPropSymbols$17 = Object.getOwnPropertySymbols;
13976
+ var __hasOwnProp$17 = Object.prototype.hasOwnProperty;
13977
+ var __propIsEnum$17 = Object.prototype.propertyIsEnumerable;
13994
13978
  var __defNormalProp$X = (obj, key, value) => key in obj ? __defProp$X(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
13995
13979
  var __spreadValues$X = (a, b) => {
13996
13980
  for (var prop in b || (b = {}))
13997
- if (__hasOwnProp$16.call(b, prop))
13981
+ if (__hasOwnProp$17.call(b, prop))
13998
13982
  __defNormalProp$X(a, prop, b[prop]);
13999
- if (__getOwnPropSymbols$16)
14000
- for (var prop of __getOwnPropSymbols$16(b)) {
14001
- if (__propIsEnum$16.call(b, prop))
13983
+ if (__getOwnPropSymbols$17)
13984
+ for (var prop of __getOwnPropSymbols$17(b)) {
13985
+ if (__propIsEnum$17.call(b, prop))
14002
13986
  __defNormalProp$X(a, prop, b[prop]);
14003
13987
  }
14004
13988
  return a;
14005
13989
  };
14006
13990
  var __spreadProps$R = (a, b) => __defProps$R(a, __getOwnPropDescs$R(b));
14007
- var __objRest$w = (source, exclude) => {
13991
+ var __objRest$x = (source, exclude) => {
14008
13992
  var target = {};
14009
13993
  for (var prop in source)
14010
- if (__hasOwnProp$16.call(source, prop) && exclude.indexOf(prop) < 0)
13994
+ if (__hasOwnProp$17.call(source, prop) && exclude.indexOf(prop) < 0)
14011
13995
  target[prop] = source[prop];
14012
- if (source != null && __getOwnPropSymbols$16)
14013
- for (var prop of __getOwnPropSymbols$16(source)) {
14014
- if (exclude.indexOf(prop) < 0 && __propIsEnum$16.call(source, prop))
13996
+ if (source != null && __getOwnPropSymbols$17)
13997
+ for (var prop of __getOwnPropSymbols$17(source)) {
13998
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$17.call(source, prop))
14015
13999
  target[prop] = source[prop];
14016
14000
  }
14017
14001
  return target;
@@ -14057,7 +14041,7 @@ class CarriersAPI {
14057
14041
  * The `connect` method connects a carrier account to a user's ShipEngine account.
14058
14042
  */
14059
14043
  this.connect = (_a) => __async$1f(this, null, function* () {
14060
- var _b = _a, { carrierCode } = _b, connection = __objRest$w(_b, ["carrierCode"]);
14044
+ var _b = _a, { carrierCode } = _b, connection = __objRest$x(_b, ["carrierCode"]);
14061
14045
  const endUserIpAddress = yield getEndUserIpAddress();
14062
14046
  if (!endUserIpAddress)
14063
14047
  return Promise.reject([new CodedError("Unable to get IP address")]);
@@ -14155,17 +14139,17 @@ class CarriersAPI {
14155
14139
  }
14156
14140
  }
14157
14141
 
14158
- var __getOwnPropSymbols$15 = Object.getOwnPropertySymbols;
14159
- var __hasOwnProp$15 = Object.prototype.hasOwnProperty;
14160
- var __propIsEnum$15 = Object.prototype.propertyIsEnumerable;
14161
- var __objRest$v = (source, exclude) => {
14142
+ var __getOwnPropSymbols$16 = Object.getOwnPropertySymbols;
14143
+ var __hasOwnProp$16 = Object.prototype.hasOwnProperty;
14144
+ var __propIsEnum$16 = Object.prototype.propertyIsEnumerable;
14145
+ var __objRest$w = (source, exclude) => {
14162
14146
  var target = {};
14163
14147
  for (var prop in source)
14164
- if (__hasOwnProp$15.call(source, prop) && exclude.indexOf(prop) < 0)
14148
+ if (__hasOwnProp$16.call(source, prop) && exclude.indexOf(prop) < 0)
14165
14149
  target[prop] = source[prop];
14166
- if (source != null && __getOwnPropSymbols$15)
14167
- for (var prop of __getOwnPropSymbols$15(source)) {
14168
- if (exclude.indexOf(prop) < 0 && __propIsEnum$15.call(source, prop))
14150
+ if (source != null && __getOwnPropSymbols$16)
14151
+ for (var prop of __getOwnPropSymbols$16(source)) {
14152
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$16.call(source, prop))
14169
14153
  target[prop] = source[prop];
14170
14154
  }
14171
14155
  return target;
@@ -14260,7 +14244,7 @@ class ConnectionsAPI {
14260
14244
  * @docs https://auctane.atlassian.net/wiki/spaces/SEEU/pages/6228738069/ENGINE-9471+Endicia+web+client+communication
14261
14245
  */
14262
14246
  this.requestStampsAccountUrls = (_a) => {
14263
- var _b = _a, { carrierId } = _b, rest = __objRest$v(_b, ["carrierId"]);
14247
+ var _b = _a, { carrierId } = _b, rest = __objRest$w(_b, ["carrierId"]);
14264
14248
  return this.client.put(
14265
14249
  `v1/connections/carriers/stamps_com/${carrierId}/request_account_url`,
14266
14250
  rest
@@ -16381,17 +16365,17 @@ class CustomPackagesAPI {
16381
16365
  }
16382
16366
 
16383
16367
  var __defProp$W = Object.defineProperty;
16384
- var __getOwnPropSymbols$14 = Object.getOwnPropertySymbols;
16385
- var __hasOwnProp$14 = Object.prototype.hasOwnProperty;
16386
- var __propIsEnum$14 = Object.prototype.propertyIsEnumerable;
16368
+ var __getOwnPropSymbols$15 = Object.getOwnPropertySymbols;
16369
+ var __hasOwnProp$15 = Object.prototype.hasOwnProperty;
16370
+ var __propIsEnum$15 = Object.prototype.propertyIsEnumerable;
16387
16371
  var __defNormalProp$W = (obj, key, value) => key in obj ? __defProp$W(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
16388
16372
  var __spreadValues$W = (a, b) => {
16389
16373
  for (var prop in b || (b = {}))
16390
- if (__hasOwnProp$14.call(b, prop))
16374
+ if (__hasOwnProp$15.call(b, prop))
16391
16375
  __defNormalProp$W(a, prop, b[prop]);
16392
- if (__getOwnPropSymbols$14)
16393
- for (var prop of __getOwnPropSymbols$14(b)) {
16394
- if (__propIsEnum$14.call(b, prop))
16376
+ if (__getOwnPropSymbols$15)
16377
+ for (var prop of __getOwnPropSymbols$15(b)) {
16378
+ if (__propIsEnum$15.call(b, prop))
16395
16379
  __defNormalProp$W(a, prop, b[prop]);
16396
16380
  }
16397
16381
  return a;
@@ -16666,17 +16650,17 @@ class LabelsAPI {
16666
16650
  }
16667
16651
  }
16668
16652
 
16669
- var __getOwnPropSymbols$13 = Object.getOwnPropertySymbols;
16670
- var __hasOwnProp$13 = Object.prototype.hasOwnProperty;
16671
- var __propIsEnum$13 = Object.prototype.propertyIsEnumerable;
16672
- var __objRest$u = (source, exclude) => {
16653
+ var __getOwnPropSymbols$14 = Object.getOwnPropertySymbols;
16654
+ var __hasOwnProp$14 = Object.prototype.hasOwnProperty;
16655
+ var __propIsEnum$14 = Object.prototype.propertyIsEnumerable;
16656
+ var __objRest$v = (source, exclude) => {
16673
16657
  var target = {};
16674
16658
  for (var prop in source)
16675
- if (__hasOwnProp$13.call(source, prop) && exclude.indexOf(prop) < 0)
16659
+ if (__hasOwnProp$14.call(source, prop) && exclude.indexOf(prop) < 0)
16676
16660
  target[prop] = source[prop];
16677
- if (source != null && __getOwnPropSymbols$13)
16678
- for (var prop of __getOwnPropSymbols$13(source)) {
16679
- if (exclude.indexOf(prop) < 0 && __propIsEnum$13.call(source, prop))
16661
+ if (source != null && __getOwnPropSymbols$14)
16662
+ for (var prop of __getOwnPropSymbols$14(source)) {
16663
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$14.call(source, prop))
16680
16664
  target[prop] = source[prop];
16681
16665
  }
16682
16666
  return target;
@@ -16708,7 +16692,7 @@ class OrderSourcesAPI {
16708
16692
  * The `update` method will allow the user to update a connected Order Source
16709
16693
  */
16710
16694
  this.update = (_a) => {
16711
- var _b = _a, { orderSourceId } = _b, rest = __objRest$u(_b, ["orderSourceId"]);
16695
+ var _b = _a, { orderSourceId } = _b, rest = __objRest$v(_b, ["orderSourceId"]);
16712
16696
  return this.client.put(`/v-beta/order_sources/${orderSourceId}`, rest);
16713
16697
  };
16714
16698
  /**
@@ -16837,17 +16821,17 @@ class RateShoppersAPI {
16837
16821
  }
16838
16822
 
16839
16823
  var __defProp$V = Object.defineProperty;
16840
- var __getOwnPropSymbols$12 = Object.getOwnPropertySymbols;
16841
- var __hasOwnProp$12 = Object.prototype.hasOwnProperty;
16842
- var __propIsEnum$12 = Object.prototype.propertyIsEnumerable;
16824
+ var __getOwnPropSymbols$13 = Object.getOwnPropertySymbols;
16825
+ var __hasOwnProp$13 = Object.prototype.hasOwnProperty;
16826
+ var __propIsEnum$13 = Object.prototype.propertyIsEnumerable;
16843
16827
  var __defNormalProp$V = (obj, key, value) => key in obj ? __defProp$V(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
16844
16828
  var __spreadValues$V = (a, b) => {
16845
16829
  for (var prop in b || (b = {}))
16846
- if (__hasOwnProp$12.call(b, prop))
16830
+ if (__hasOwnProp$13.call(b, prop))
16847
16831
  __defNormalProp$V(a, prop, b[prop]);
16848
- if (__getOwnPropSymbols$12)
16849
- for (var prop of __getOwnPropSymbols$12(b)) {
16850
- if (__propIsEnum$12.call(b, prop))
16832
+ if (__getOwnPropSymbols$13)
16833
+ for (var prop of __getOwnPropSymbols$13(b)) {
16834
+ if (__propIsEnum$13.call(b, prop))
16851
16835
  __defNormalProp$V(a, prop, b[prop]);
16852
16836
  }
16853
16837
  return a;
@@ -17055,17 +17039,17 @@ class SellersAPI {
17055
17039
  }
17056
17040
 
17057
17041
  var __defProp$U = Object.defineProperty;
17058
- var __getOwnPropSymbols$11 = Object.getOwnPropertySymbols;
17059
- var __hasOwnProp$11 = Object.prototype.hasOwnProperty;
17060
- var __propIsEnum$11 = Object.prototype.propertyIsEnumerable;
17042
+ var __getOwnPropSymbols$12 = Object.getOwnPropertySymbols;
17043
+ var __hasOwnProp$12 = Object.prototype.hasOwnProperty;
17044
+ var __propIsEnum$12 = Object.prototype.propertyIsEnumerable;
17061
17045
  var __defNormalProp$U = (obj, key, value) => key in obj ? __defProp$U(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
17062
17046
  var __spreadValues$U = (a, b) => {
17063
17047
  for (var prop in b || (b = {}))
17064
- if (__hasOwnProp$11.call(b, prop))
17048
+ if (__hasOwnProp$12.call(b, prop))
17065
17049
  __defNormalProp$U(a, prop, b[prop]);
17066
- if (__getOwnPropSymbols$11)
17067
- for (var prop of __getOwnPropSymbols$11(b)) {
17068
- if (__propIsEnum$11.call(b, prop))
17050
+ if (__getOwnPropSymbols$12)
17051
+ for (var prop of __getOwnPropSymbols$12(b)) {
17052
+ if (__propIsEnum$12.call(b, prop))
17069
17053
  __defNormalProp$U(a, prop, b[prop]);
17070
17054
  }
17071
17055
  return a;
@@ -34565,30 +34549,30 @@ class WebhooksAPI {
34565
34549
  var __defProp$T = Object.defineProperty;
34566
34550
  var __defProps$Q = Object.defineProperties;
34567
34551
  var __getOwnPropDescs$Q = Object.getOwnPropertyDescriptors;
34568
- var __getOwnPropSymbols$10 = Object.getOwnPropertySymbols;
34569
- var __hasOwnProp$10 = Object.prototype.hasOwnProperty;
34570
- var __propIsEnum$10 = Object.prototype.propertyIsEnumerable;
34552
+ var __getOwnPropSymbols$11 = Object.getOwnPropertySymbols;
34553
+ var __hasOwnProp$11 = Object.prototype.hasOwnProperty;
34554
+ var __propIsEnum$11 = Object.prototype.propertyIsEnumerable;
34571
34555
  var __defNormalProp$T = (obj, key, value) => key in obj ? __defProp$T(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
34572
34556
  var __spreadValues$T = (a, b) => {
34573
34557
  for (var prop in b || (b = {}))
34574
- if (__hasOwnProp$10.call(b, prop))
34558
+ if (__hasOwnProp$11.call(b, prop))
34575
34559
  __defNormalProp$T(a, prop, b[prop]);
34576
- if (__getOwnPropSymbols$10)
34577
- for (var prop of __getOwnPropSymbols$10(b)) {
34578
- if (__propIsEnum$10.call(b, prop))
34560
+ if (__getOwnPropSymbols$11)
34561
+ for (var prop of __getOwnPropSymbols$11(b)) {
34562
+ if (__propIsEnum$11.call(b, prop))
34579
34563
  __defNormalProp$T(a, prop, b[prop]);
34580
34564
  }
34581
34565
  return a;
34582
34566
  };
34583
34567
  var __spreadProps$Q = (a, b) => __defProps$Q(a, __getOwnPropDescs$Q(b));
34584
- var __objRest$t = (source, exclude) => {
34568
+ var __objRest$u = (source, exclude) => {
34585
34569
  var target = {};
34586
34570
  for (var prop in source)
34587
- if (__hasOwnProp$10.call(source, prop) && exclude.indexOf(prop) < 0)
34571
+ if (__hasOwnProp$11.call(source, prop) && exclude.indexOf(prop) < 0)
34588
34572
  target[prop] = source[prop];
34589
- if (source != null && __getOwnPropSymbols$10)
34590
- for (var prop of __getOwnPropSymbols$10(source)) {
34591
- if (exclude.indexOf(prop) < 0 && __propIsEnum$10.call(source, prop))
34573
+ if (source != null && __getOwnPropSymbols$11)
34574
+ for (var prop of __getOwnPropSymbols$11(source)) {
34575
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$11.call(source, prop))
34592
34576
  target[prop] = source[prop];
34593
34577
  }
34594
34578
  return target;
@@ -34651,7 +34635,7 @@ class ShipEngineAPI {
34651
34635
  return decamelizeKeys(data);
34652
34636
  else {
34653
34637
  if (data && data.__skipDecamelize) {
34654
- const _a = data, cleanData = __objRest$t(_a, ["__skipDecamelize"]);
34638
+ const _a = data, cleanData = __objRest$u(_a, ["__skipDecamelize"]);
34655
34639
  return cleanData;
34656
34640
  }
34657
34641
  return data;
@@ -35028,6 +35012,21 @@ class ShipEngineAPI {
35028
35012
  }
35029
35013
  }
35030
35014
 
35015
+ var __getOwnPropSymbols$10 = Object.getOwnPropertySymbols;
35016
+ var __hasOwnProp$10 = Object.prototype.hasOwnProperty;
35017
+ var __propIsEnum$10 = Object.prototype.propertyIsEnumerable;
35018
+ var __objRest$t = (source, exclude) => {
35019
+ var target = {};
35020
+ for (var prop in source)
35021
+ if (__hasOwnProp$10.call(source, prop) && exclude.indexOf(prop) < 0)
35022
+ target[prop] = source[prop];
35023
+ if (source != null && __getOwnPropSymbols$10)
35024
+ for (var prop of __getOwnPropSymbols$10(source)) {
35025
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$10.call(source, prop))
35026
+ target[prop] = source[prop];
35027
+ }
35028
+ return target;
35029
+ };
35031
35030
  const ShipEngineContext = createContext(void 0);
35032
35031
  const ShipEngine = ({
35033
35032
  baseURL,
@@ -35040,9 +35039,11 @@ const ShipEngine = ({
35040
35039
  defaultQueryClientOptions = {}
35041
35040
  }) => {
35042
35041
  const [client, setClient] = useState();
35042
+ const _a = defaultQueryClientOptions, { onError, onSuccess } = _a, restQueryClientOptions = __objRest$t(_a, ["onError", "onSuccess"]);
35043
35043
  const [queryClient] = useState(
35044
35044
  () => new QueryClient({
35045
- defaultOptions: defaultQueryClientOptions
35045
+ defaultOptions: restQueryClientOptions,
35046
+ queryCache: new QueryCache({ onError, onSuccess })
35046
35047
  })
35047
35048
  );
35048
35049
  useEffect(() => {