@shipengine/alchemy 6.0.96-next.0 → 6.0.96-next.1
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.
- package/index.js +26 -35
- package/index.mjs +26 -35
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -4905,41 +4905,33 @@ var _getHolder = getHolder$2;
|
|
|
4905
4905
|
|
|
4906
4906
|
/** Used as references for various `Number` constants. */
|
|
4907
4907
|
|
|
4908
|
-
var
|
|
4909
|
-
var hasRequired_isIndex;
|
|
4908
|
+
var MAX_SAFE_INTEGER$1 = 9007199254740991;
|
|
4910
4909
|
|
|
4911
|
-
|
|
4912
|
-
|
|
4913
|
-
hasRequired_isIndex = 1;
|
|
4914
|
-
var MAX_SAFE_INTEGER = 9007199254740991;
|
|
4910
|
+
/** Used to detect unsigned integer values. */
|
|
4911
|
+
var reIsUint = /^(?:0|[1-9]\d*)$/;
|
|
4915
4912
|
|
|
4916
|
-
|
|
4917
|
-
|
|
4918
|
-
|
|
4919
|
-
|
|
4920
|
-
|
|
4921
|
-
|
|
4922
|
-
|
|
4923
|
-
|
|
4924
|
-
|
|
4925
|
-
|
|
4926
|
-
|
|
4927
|
-
function isIndex(value, length) {
|
|
4928
|
-
var type = typeof value;
|
|
4929
|
-
length = length == null ? MAX_SAFE_INTEGER : length;
|
|
4930
|
-
|
|
4931
|
-
return !!length &&
|
|
4932
|
-
(type == 'number' ||
|
|
4933
|
-
(type != 'symbol' && reIsUint.test(value))) &&
|
|
4934
|
-
(value > -1 && value % 1 == 0 && value < length);
|
|
4935
|
-
}
|
|
4913
|
+
/**
|
|
4914
|
+
* Checks if `value` is a valid array-like index.
|
|
4915
|
+
*
|
|
4916
|
+
* @private
|
|
4917
|
+
* @param {*} value The value to check.
|
|
4918
|
+
* @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.
|
|
4919
|
+
* @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
|
|
4920
|
+
*/
|
|
4921
|
+
function isIndex$3(value, length) {
|
|
4922
|
+
var type = typeof value;
|
|
4923
|
+
length = length == null ? MAX_SAFE_INTEGER$1 : length;
|
|
4936
4924
|
|
|
4937
|
-
|
|
4938
|
-
|
|
4925
|
+
return !!length &&
|
|
4926
|
+
(type == 'number' ||
|
|
4927
|
+
(type != 'symbol' && reIsUint.test(value))) &&
|
|
4928
|
+
(value > -1 && value % 1 == 0 && value < length);
|
|
4939
4929
|
}
|
|
4940
4930
|
|
|
4931
|
+
var _isIndex = isIndex$3;
|
|
4932
|
+
|
|
4941
4933
|
var copyArray$2 = _copyArray,
|
|
4942
|
-
isIndex$2 =
|
|
4934
|
+
isIndex$2 = _isIndex;
|
|
4943
4935
|
|
|
4944
4936
|
/* Built-in method references for those with the same name as other `lodash` methods. */
|
|
4945
4937
|
var nativeMin$1 = Math.min;
|
|
@@ -6132,7 +6124,7 @@ var baseTimes = _baseTimes,
|
|
|
6132
6124
|
isArguments$2 = requireIsArguments(),
|
|
6133
6125
|
isArray$f = isArray_1,
|
|
6134
6126
|
isBuffer$4 = isBufferExports,
|
|
6135
|
-
isIndex$1 =
|
|
6127
|
+
isIndex$1 = _isIndex,
|
|
6136
6128
|
isTypedArray$1 = requireIsTypedArray();
|
|
6137
6129
|
|
|
6138
6130
|
/** Used for built-in method references. */
|
|
@@ -9463,7 +9455,7 @@ var _baseHasIn = baseHasIn$1;
|
|
|
9463
9455
|
var castPath = _castPath,
|
|
9464
9456
|
isArguments$1 = requireIsArguments(),
|
|
9465
9457
|
isArray$8 = isArray_1,
|
|
9466
|
-
isIndex =
|
|
9458
|
+
isIndex = _isIndex,
|
|
9467
9459
|
isLength = isLength_1,
|
|
9468
9460
|
toKey$3 = _toKey;
|
|
9469
9461
|
|
|
@@ -10353,7 +10345,7 @@ function require_isIterateeCall () {
|
|
|
10353
10345
|
hasRequired_isIterateeCall = 1;
|
|
10354
10346
|
var eq = requireEq(),
|
|
10355
10347
|
isArrayLike = isArrayLike_1,
|
|
10356
|
-
isIndex =
|
|
10348
|
+
isIndex = _isIndex,
|
|
10357
10349
|
isObject = isObject_1;
|
|
10358
10350
|
|
|
10359
10351
|
/**
|
|
@@ -35013,7 +35005,7 @@ class ShipEngineAPI {
|
|
|
35013
35005
|
* The `rateShoppers` method provides access to the Rate Shoppers endpoints in ShipEngine
|
|
35014
35006
|
* API.
|
|
35015
35007
|
*
|
|
35016
|
-
* @see {@link
|
|
35008
|
+
* @see {@link RateShoppersAPI | The Rate Shoppers API module}
|
|
35017
35009
|
*/
|
|
35018
35010
|
get rateShoppers() {
|
|
35019
35011
|
return new RateShoppersAPI(this.client);
|
|
@@ -37966,14 +37958,13 @@ const useListRateShoppers = (params) => {
|
|
|
37966
37958
|
onError,
|
|
37967
37959
|
queryFn: () => client.rateShoppers.list(queryFnParams),
|
|
37968
37960
|
queryKey: ["useListRateShoppers", params],
|
|
37969
|
-
select: (result) => result.data
|
|
37961
|
+
select: (result) => result.data
|
|
37970
37962
|
}));
|
|
37971
37963
|
};
|
|
37972
37964
|
|
|
37973
37965
|
const useGetRateShopper = (rateShopperId) => {
|
|
37974
37966
|
const { client } = useShipEngine();
|
|
37975
37967
|
return reactQuery.useQuery({
|
|
37976
|
-
enabled: !!rateShopperId,
|
|
37977
37968
|
onError,
|
|
37978
37969
|
queryFn: () => {
|
|
37979
37970
|
return client.rateShoppers.get(rateShopperId);
|
package/index.mjs
CHANGED
|
@@ -4883,41 +4883,33 @@ var _getHolder = getHolder$2;
|
|
|
4883
4883
|
|
|
4884
4884
|
/** Used as references for various `Number` constants. */
|
|
4885
4885
|
|
|
4886
|
-
var
|
|
4887
|
-
var hasRequired_isIndex;
|
|
4886
|
+
var MAX_SAFE_INTEGER$1 = 9007199254740991;
|
|
4888
4887
|
|
|
4889
|
-
|
|
4890
|
-
|
|
4891
|
-
hasRequired_isIndex = 1;
|
|
4892
|
-
var MAX_SAFE_INTEGER = 9007199254740991;
|
|
4888
|
+
/** Used to detect unsigned integer values. */
|
|
4889
|
+
var reIsUint = /^(?:0|[1-9]\d*)$/;
|
|
4893
4890
|
|
|
4894
|
-
|
|
4895
|
-
|
|
4896
|
-
|
|
4897
|
-
|
|
4898
|
-
|
|
4899
|
-
|
|
4900
|
-
|
|
4901
|
-
|
|
4902
|
-
|
|
4903
|
-
|
|
4904
|
-
|
|
4905
|
-
function isIndex(value, length) {
|
|
4906
|
-
var type = typeof value;
|
|
4907
|
-
length = length == null ? MAX_SAFE_INTEGER : length;
|
|
4908
|
-
|
|
4909
|
-
return !!length &&
|
|
4910
|
-
(type == 'number' ||
|
|
4911
|
-
(type != 'symbol' && reIsUint.test(value))) &&
|
|
4912
|
-
(value > -1 && value % 1 == 0 && value < length);
|
|
4913
|
-
}
|
|
4891
|
+
/**
|
|
4892
|
+
* Checks if `value` is a valid array-like index.
|
|
4893
|
+
*
|
|
4894
|
+
* @private
|
|
4895
|
+
* @param {*} value The value to check.
|
|
4896
|
+
* @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.
|
|
4897
|
+
* @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
|
|
4898
|
+
*/
|
|
4899
|
+
function isIndex$3(value, length) {
|
|
4900
|
+
var type = typeof value;
|
|
4901
|
+
length = length == null ? MAX_SAFE_INTEGER$1 : length;
|
|
4914
4902
|
|
|
4915
|
-
|
|
4916
|
-
|
|
4903
|
+
return !!length &&
|
|
4904
|
+
(type == 'number' ||
|
|
4905
|
+
(type != 'symbol' && reIsUint.test(value))) &&
|
|
4906
|
+
(value > -1 && value % 1 == 0 && value < length);
|
|
4917
4907
|
}
|
|
4918
4908
|
|
|
4909
|
+
var _isIndex = isIndex$3;
|
|
4910
|
+
|
|
4919
4911
|
var copyArray$2 = _copyArray,
|
|
4920
|
-
isIndex$2 =
|
|
4912
|
+
isIndex$2 = _isIndex;
|
|
4921
4913
|
|
|
4922
4914
|
/* Built-in method references for those with the same name as other `lodash` methods. */
|
|
4923
4915
|
var nativeMin$1 = Math.min;
|
|
@@ -6110,7 +6102,7 @@ var baseTimes = _baseTimes,
|
|
|
6110
6102
|
isArguments$2 = requireIsArguments(),
|
|
6111
6103
|
isArray$f = isArray_1,
|
|
6112
6104
|
isBuffer$4 = isBufferExports,
|
|
6113
|
-
isIndex$1 =
|
|
6105
|
+
isIndex$1 = _isIndex,
|
|
6114
6106
|
isTypedArray$1 = requireIsTypedArray();
|
|
6115
6107
|
|
|
6116
6108
|
/** Used for built-in method references. */
|
|
@@ -9441,7 +9433,7 @@ var _baseHasIn = baseHasIn$1;
|
|
|
9441
9433
|
var castPath = _castPath,
|
|
9442
9434
|
isArguments$1 = requireIsArguments(),
|
|
9443
9435
|
isArray$8 = isArray_1,
|
|
9444
|
-
isIndex =
|
|
9436
|
+
isIndex = _isIndex,
|
|
9445
9437
|
isLength = isLength_1,
|
|
9446
9438
|
toKey$3 = _toKey;
|
|
9447
9439
|
|
|
@@ -10331,7 +10323,7 @@ function require_isIterateeCall () {
|
|
|
10331
10323
|
hasRequired_isIterateeCall = 1;
|
|
10332
10324
|
var eq = requireEq(),
|
|
10333
10325
|
isArrayLike = isArrayLike_1,
|
|
10334
|
-
isIndex =
|
|
10326
|
+
isIndex = _isIndex,
|
|
10335
10327
|
isObject = isObject_1;
|
|
10336
10328
|
|
|
10337
10329
|
/**
|
|
@@ -34991,7 +34983,7 @@ class ShipEngineAPI {
|
|
|
34991
34983
|
* The `rateShoppers` method provides access to the Rate Shoppers endpoints in ShipEngine
|
|
34992
34984
|
* API.
|
|
34993
34985
|
*
|
|
34994
|
-
* @see {@link
|
|
34986
|
+
* @see {@link RateShoppersAPI | The Rate Shoppers API module}
|
|
34995
34987
|
*/
|
|
34996
34988
|
get rateShoppers() {
|
|
34997
34989
|
return new RateShoppersAPI(this.client);
|
|
@@ -37944,14 +37936,13 @@ const useListRateShoppers = (params) => {
|
|
|
37944
37936
|
onError,
|
|
37945
37937
|
queryFn: () => client.rateShoppers.list(queryFnParams),
|
|
37946
37938
|
queryKey: ["useListRateShoppers", params],
|
|
37947
|
-
select: (result) => result.data
|
|
37939
|
+
select: (result) => result.data
|
|
37948
37940
|
}));
|
|
37949
37941
|
};
|
|
37950
37942
|
|
|
37951
37943
|
const useGetRateShopper = (rateShopperId) => {
|
|
37952
37944
|
const { client } = useShipEngine();
|
|
37953
37945
|
return useQuery({
|
|
37954
|
-
enabled: !!rateShopperId,
|
|
37955
37946
|
onError,
|
|
37956
37947
|
queryFn: () => {
|
|
37957
37948
|
return client.rateShoppers.get(rateShopperId);
|