@shipengine/alchemy 6.0.64 → 6.0.65
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 +295 -227
- package/index.mjs +294 -228
- 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$
|
|
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$
|
|
3565
|
+
var _baseGetTag = baseGetTag$5;
|
|
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$
|
|
3600
|
+
var baseGetTag$4 = _baseGetTag,
|
|
3601
3601
|
isObject$7 = isObject_1;
|
|
3602
3602
|
|
|
3603
3603
|
/** `Object#toString` result references. */
|
|
3604
3604
|
var asyncTag = '[object AsyncFunction]',
|
|
3605
|
-
funcTag$
|
|
3605
|
+
funcTag$1 = '[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$
|
|
3633
|
-
return tag == funcTag$
|
|
3632
|
+
var tag = baseGetTag$4(value);
|
|
3633
|
+
return tag == funcTag$1 || 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$
|
|
4226
|
+
function isObjectLike$8(value) {
|
|
4227
4227
|
return value != null && typeof value == 'object';
|
|
4228
4228
|
}
|
|
4229
4229
|
|
|
4230
|
-
var isObjectLike_1 = isObjectLike$
|
|
4230
|
+
var isObjectLike_1 = isObjectLike$8;
|
|
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$
|
|
4282
|
+
isObjectLike$7 = 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$
|
|
4409
|
+
if (isObjectLike$7(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$
|
|
5311
|
-
isObjectLike$
|
|
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$
|
|
5335
|
+
(isObjectLike$6(value) && baseGetTag$3(value) == symbolTag$3);
|
|
5336
5336
|
}
|
|
5337
5337
|
|
|
5338
5338
|
var isSymbol_1 = isSymbol$6;
|
|
@@ -5953,73 +5953,81 @@ var MAX_SAFE_INTEGER = 9007199254740991;
|
|
|
5953
5953
|
* _.isLength('3');
|
|
5954
5954
|
* // => false
|
|
5955
5955
|
*/
|
|
5956
|
-
function isLength$
|
|
5956
|
+
function isLength$2(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$
|
|
5961
|
+
var isLength_1 = isLength$2;
|
|
5962
5962
|
|
|
5963
|
-
var
|
|
5964
|
-
|
|
5965
|
-
isObjectLike$6 = isObjectLike_1;
|
|
5963
|
+
var _baseIsTypedArray;
|
|
5964
|
+
var hasRequired_baseIsTypedArray;
|
|
5966
5965
|
|
|
5967
|
-
|
|
5968
|
-
|
|
5969
|
-
|
|
5970
|
-
|
|
5971
|
-
|
|
5972
|
-
|
|
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;
|
|
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;
|
|
6009
5972
|
|
|
6010
|
-
/**
|
|
6011
|
-
|
|
6012
|
-
|
|
6013
|
-
|
|
6014
|
-
|
|
6015
|
-
|
|
6016
|
-
|
|
6017
|
-
|
|
6018
|
-
|
|
6019
|
-
|
|
6020
|
-
|
|
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;
|
|
6021
6015
|
|
|
6022
|
-
|
|
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
|
+
}
|
|
6027
|
+
|
|
6028
|
+
_baseIsTypedArray = baseIsTypedArray;
|
|
6029
|
+
return _baseIsTypedArray;
|
|
6030
|
+
}
|
|
6023
6031
|
|
|
6024
6032
|
/**
|
|
6025
6033
|
* The base implementation of `_.unary` without support for storing metadata.
|
|
@@ -6029,13 +6037,13 @@ var _baseIsTypedArray = baseIsTypedArray$1;
|
|
|
6029
6037
|
* @returns {Function} Returns the new capped function.
|
|
6030
6038
|
*/
|
|
6031
6039
|
|
|
6032
|
-
function baseUnary$
|
|
6040
|
+
function baseUnary$2(func) {
|
|
6033
6041
|
return function(value) {
|
|
6034
6042
|
return func(value);
|
|
6035
6043
|
};
|
|
6036
6044
|
}
|
|
6037
6045
|
|
|
6038
|
-
var _baseUnary = baseUnary$
|
|
6046
|
+
var _baseUnary = baseUnary$2;
|
|
6039
6047
|
|
|
6040
6048
|
var _nodeUtilExports = {};
|
|
6041
6049
|
var _nodeUtil = {
|
|
@@ -6076,40 +6084,48 @@ var _nodeUtil = {
|
|
|
6076
6084
|
module.exports = nodeUtil;
|
|
6077
6085
|
} (_nodeUtil, _nodeUtilExports));
|
|
6078
6086
|
|
|
6079
|
-
var
|
|
6080
|
-
|
|
6081
|
-
nodeUtil$2 = _nodeUtilExports;
|
|
6087
|
+
var isTypedArray_1;
|
|
6088
|
+
var hasRequiredIsTypedArray;
|
|
6082
6089
|
|
|
6083
|
-
|
|
6084
|
-
|
|
6090
|
+
function requireIsTypedArray () {
|
|
6091
|
+
if (hasRequiredIsTypedArray) return isTypedArray_1;
|
|
6092
|
+
hasRequiredIsTypedArray = 1;
|
|
6093
|
+
var baseIsTypedArray = require_baseIsTypedArray(),
|
|
6094
|
+
baseUnary = _baseUnary,
|
|
6095
|
+
nodeUtil = _nodeUtilExports;
|
|
6085
6096
|
|
|
6086
|
-
|
|
6087
|
-
|
|
6088
|
-
|
|
6089
|
-
|
|
6090
|
-
|
|
6091
|
-
|
|
6092
|
-
|
|
6093
|
-
|
|
6094
|
-
|
|
6095
|
-
|
|
6096
|
-
*
|
|
6097
|
-
|
|
6098
|
-
|
|
6099
|
-
|
|
6100
|
-
|
|
6101
|
-
|
|
6102
|
-
|
|
6103
|
-
|
|
6097
|
+
/* Node.js helper references. */
|
|
6098
|
+
var nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;
|
|
6099
|
+
|
|
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;
|
|
6104
6118
|
|
|
6105
|
-
|
|
6119
|
+
isTypedArray_1 = isTypedArray;
|
|
6120
|
+
return isTypedArray_1;
|
|
6121
|
+
}
|
|
6106
6122
|
|
|
6107
6123
|
var baseTimes = _baseTimes,
|
|
6108
6124
|
isArguments$2 = requireIsArguments(),
|
|
6109
6125
|
isArray$f = isArray_1,
|
|
6110
6126
|
isBuffer$4 = isBufferExports,
|
|
6111
6127
|
isIndex$1 = _isIndex,
|
|
6112
|
-
isTypedArray$1 =
|
|
6128
|
+
isTypedArray$1 = requireIsTypedArray();
|
|
6113
6129
|
|
|
6114
6130
|
/** Used for built-in method references. */
|
|
6115
6131
|
var objectProto$7 = Object.prototype;
|
|
@@ -8814,7 +8830,7 @@ var Stack$1 = require_Stack(),
|
|
|
8814
8830
|
getTag = _getTag,
|
|
8815
8831
|
isArray$c = isArray_1,
|
|
8816
8832
|
isBuffer$2 = isBufferExports,
|
|
8817
|
-
isTypedArray =
|
|
8833
|
+
isTypedArray = requireIsTypedArray();
|
|
8818
8834
|
|
|
8819
8835
|
/** Used to compose bitmasks for value comparisons. */
|
|
8820
8836
|
var COMPARE_PARTIAL_FLAG$2 = 1;
|
|
@@ -10159,7 +10175,7 @@ function require_baseMergeDeep () {
|
|
|
10159
10175
|
isFunction = isFunction_1,
|
|
10160
10176
|
isObject = isObject_1,
|
|
10161
10177
|
isPlainObject = isPlainObject_1,
|
|
10162
|
-
isTypedArray =
|
|
10178
|
+
isTypedArray = requireIsTypedArray(),
|
|
10163
10179
|
safeGet = require_safeGet(),
|
|
10164
10180
|
toPlainObject = requireToPlainObject();
|
|
10165
10181
|
|
|
@@ -10806,17 +10822,17 @@ var AccountBillingPlanChangeType = /* @__PURE__ */ ((AccountBillingPlanChangeTyp
|
|
|
10806
10822
|
return AccountBillingPlanChangeType2;
|
|
10807
10823
|
})(AccountBillingPlanChangeType || {});
|
|
10808
10824
|
|
|
10809
|
-
var __getOwnPropSymbols$
|
|
10810
|
-
var __hasOwnProp$
|
|
10811
|
-
var __propIsEnum$
|
|
10825
|
+
var __getOwnPropSymbols$Z = Object.getOwnPropertySymbols;
|
|
10826
|
+
var __hasOwnProp$Z = Object.prototype.hasOwnProperty;
|
|
10827
|
+
var __propIsEnum$Z = Object.prototype.propertyIsEnumerable;
|
|
10812
10828
|
var __objRest$x = (source, exclude) => {
|
|
10813
10829
|
var target = {};
|
|
10814
10830
|
for (var prop in source)
|
|
10815
|
-
if (__hasOwnProp$
|
|
10831
|
+
if (__hasOwnProp$Z.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
10816
10832
|
target[prop] = source[prop];
|
|
10817
|
-
if (source != null && __getOwnPropSymbols$
|
|
10818
|
-
for (var prop of __getOwnPropSymbols$
|
|
10819
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
10833
|
+
if (source != null && __getOwnPropSymbols$Z)
|
|
10834
|
+
for (var prop of __getOwnPropSymbols$Z(source)) {
|
|
10835
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$Z.call(source, prop))
|
|
10820
10836
|
target[prop] = source[prop];
|
|
10821
10837
|
}
|
|
10822
10838
|
return target;
|
|
@@ -10951,17 +10967,17 @@ const types = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
|
|
|
10951
10967
|
RateCardStatus
|
|
10952
10968
|
}, Symbol.toStringTag, { value: 'Module' }));
|
|
10953
10969
|
|
|
10954
|
-
var __getOwnPropSymbols$
|
|
10955
|
-
var __hasOwnProp$
|
|
10956
|
-
var __propIsEnum$
|
|
10970
|
+
var __getOwnPropSymbols$Y = Object.getOwnPropertySymbols;
|
|
10971
|
+
var __hasOwnProp$Y = Object.prototype.hasOwnProperty;
|
|
10972
|
+
var __propIsEnum$Y = Object.prototype.propertyIsEnumerable;
|
|
10957
10973
|
var __objRest$w = (source, exclude) => {
|
|
10958
10974
|
var target = {};
|
|
10959
10975
|
for (var prop in source)
|
|
10960
|
-
if (__hasOwnProp$
|
|
10976
|
+
if (__hasOwnProp$Y.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
10961
10977
|
target[prop] = source[prop];
|
|
10962
|
-
if (source != null && __getOwnPropSymbols$
|
|
10963
|
-
for (var prop of __getOwnPropSymbols$
|
|
10964
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
10978
|
+
if (source != null && __getOwnPropSymbols$Y)
|
|
10979
|
+
for (var prop of __getOwnPropSymbols$Y(source)) {
|
|
10980
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$Y.call(source, prop))
|
|
10965
10981
|
target[prop] = source[prop];
|
|
10966
10982
|
}
|
|
10967
10983
|
return target;
|
|
@@ -11012,6 +11028,20 @@ class AccountSettingsAPI {
|
|
|
11012
11028
|
}
|
|
11013
11029
|
}
|
|
11014
11030
|
|
|
11031
|
+
class AccountAddonsAPI {
|
|
11032
|
+
constructor(client) {
|
|
11033
|
+
this.client = client;
|
|
11034
|
+
/**
|
|
11035
|
+
* The `list` method retrieves a list of all available addons, also includes
|
|
11036
|
+
* if its avaiable for the current user
|
|
11037
|
+
*/
|
|
11038
|
+
this.list = () => {
|
|
11039
|
+
return this.client.get("/v1/account/addons");
|
|
11040
|
+
};
|
|
11041
|
+
this.client = client;
|
|
11042
|
+
}
|
|
11043
|
+
}
|
|
11044
|
+
|
|
11015
11045
|
class AddressesAPI {
|
|
11016
11046
|
constructor(client) {
|
|
11017
11047
|
this.client = client;
|
|
@@ -13882,33 +13912,33 @@ const decamelizeKeys = (obj, separator = "_") => {
|
|
|
13882
13912
|
return obj;
|
|
13883
13913
|
};
|
|
13884
13914
|
|
|
13885
|
-
var __defProp$
|
|
13886
|
-
var __defProps$
|
|
13887
|
-
var __getOwnPropDescs$
|
|
13888
|
-
var __getOwnPropSymbols$
|
|
13889
|
-
var __hasOwnProp$
|
|
13890
|
-
var __propIsEnum$
|
|
13891
|
-
var __defNormalProp$
|
|
13892
|
-
var __spreadValues$
|
|
13915
|
+
var __defProp$M = Object.defineProperty;
|
|
13916
|
+
var __defProps$G = Object.defineProperties;
|
|
13917
|
+
var __getOwnPropDescs$G = Object.getOwnPropertyDescriptors;
|
|
13918
|
+
var __getOwnPropSymbols$X = Object.getOwnPropertySymbols;
|
|
13919
|
+
var __hasOwnProp$X = Object.prototype.hasOwnProperty;
|
|
13920
|
+
var __propIsEnum$X = Object.prototype.propertyIsEnumerable;
|
|
13921
|
+
var __defNormalProp$M = (obj, key, value) => key in obj ? __defProp$M(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
13922
|
+
var __spreadValues$M = (a, b) => {
|
|
13893
13923
|
for (var prop in b || (b = {}))
|
|
13894
|
-
if (__hasOwnProp$
|
|
13895
|
-
__defNormalProp$
|
|
13896
|
-
if (__getOwnPropSymbols$
|
|
13897
|
-
for (var prop of __getOwnPropSymbols$
|
|
13898
|
-
if (__propIsEnum$
|
|
13899
|
-
__defNormalProp$
|
|
13924
|
+
if (__hasOwnProp$X.call(b, prop))
|
|
13925
|
+
__defNormalProp$M(a, prop, b[prop]);
|
|
13926
|
+
if (__getOwnPropSymbols$X)
|
|
13927
|
+
for (var prop of __getOwnPropSymbols$X(b)) {
|
|
13928
|
+
if (__propIsEnum$X.call(b, prop))
|
|
13929
|
+
__defNormalProp$M(a, prop, b[prop]);
|
|
13900
13930
|
}
|
|
13901
13931
|
return a;
|
|
13902
13932
|
};
|
|
13903
|
-
var __spreadProps$
|
|
13933
|
+
var __spreadProps$G = (a, b) => __defProps$G(a, __getOwnPropDescs$G(b));
|
|
13904
13934
|
var __objRest$v = (source, exclude) => {
|
|
13905
13935
|
var target = {};
|
|
13906
13936
|
for (var prop in source)
|
|
13907
|
-
if (__hasOwnProp$
|
|
13937
|
+
if (__hasOwnProp$X.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
13908
13938
|
target[prop] = source[prop];
|
|
13909
|
-
if (source != null && __getOwnPropSymbols$
|
|
13910
|
-
for (var prop of __getOwnPropSymbols$
|
|
13911
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
13939
|
+
if (source != null && __getOwnPropSymbols$X)
|
|
13940
|
+
for (var prop of __getOwnPropSymbols$X(source)) {
|
|
13941
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$X.call(source, prop))
|
|
13912
13942
|
target[prop] = source[prop];
|
|
13913
13943
|
}
|
|
13914
13944
|
return target;
|
|
@@ -13958,7 +13988,7 @@ class CarriersAPI {
|
|
|
13958
13988
|
const endUserIpAddress = yield getEndUserIpAddress();
|
|
13959
13989
|
if (!endUserIpAddress)
|
|
13960
13990
|
return Promise.reject([new CodedError("Unable to get IP address")]);
|
|
13961
|
-
return yield this.client.post(`/v1/registration/${carrierCode}`, __spreadProps$
|
|
13991
|
+
return yield this.client.post(`/v1/registration/${carrierCode}`, __spreadProps$G(__spreadValues$M({}, connection), {
|
|
13962
13992
|
endUserIpAddress
|
|
13963
13993
|
}));
|
|
13964
13994
|
});
|
|
@@ -14042,17 +14072,17 @@ class CarriersAPI {
|
|
|
14042
14072
|
}
|
|
14043
14073
|
}
|
|
14044
14074
|
|
|
14045
|
-
var __getOwnPropSymbols$
|
|
14046
|
-
var __hasOwnProp$
|
|
14047
|
-
var __propIsEnum$
|
|
14075
|
+
var __getOwnPropSymbols$W = Object.getOwnPropertySymbols;
|
|
14076
|
+
var __hasOwnProp$W = Object.prototype.hasOwnProperty;
|
|
14077
|
+
var __propIsEnum$W = Object.prototype.propertyIsEnumerable;
|
|
14048
14078
|
var __objRest$u = (source, exclude) => {
|
|
14049
14079
|
var target = {};
|
|
14050
14080
|
for (var prop in source)
|
|
14051
|
-
if (__hasOwnProp$
|
|
14081
|
+
if (__hasOwnProp$W.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
14052
14082
|
target[prop] = source[prop];
|
|
14053
|
-
if (source != null && __getOwnPropSymbols$
|
|
14054
|
-
for (var prop of __getOwnPropSymbols$
|
|
14055
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
14083
|
+
if (source != null && __getOwnPropSymbols$W)
|
|
14084
|
+
for (var prop of __getOwnPropSymbols$W(source)) {
|
|
14085
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$W.call(source, prop))
|
|
14056
14086
|
target[prop] = source[prop];
|
|
14057
14087
|
}
|
|
14058
14088
|
return target;
|
|
@@ -16267,19 +16297,19 @@ class CustomPackagesAPI {
|
|
|
16267
16297
|
}
|
|
16268
16298
|
}
|
|
16269
16299
|
|
|
16270
|
-
var __defProp$
|
|
16271
|
-
var __getOwnPropSymbols$
|
|
16272
|
-
var __hasOwnProp$
|
|
16273
|
-
var __propIsEnum$
|
|
16274
|
-
var __defNormalProp$
|
|
16275
|
-
var __spreadValues$
|
|
16300
|
+
var __defProp$L = Object.defineProperty;
|
|
16301
|
+
var __getOwnPropSymbols$V = Object.getOwnPropertySymbols;
|
|
16302
|
+
var __hasOwnProp$V = Object.prototype.hasOwnProperty;
|
|
16303
|
+
var __propIsEnum$V = Object.prototype.propertyIsEnumerable;
|
|
16304
|
+
var __defNormalProp$L = (obj, key, value) => key in obj ? __defProp$L(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
16305
|
+
var __spreadValues$L = (a, b) => {
|
|
16276
16306
|
for (var prop in b || (b = {}))
|
|
16277
|
-
if (__hasOwnProp$
|
|
16278
|
-
__defNormalProp$
|
|
16279
|
-
if (__getOwnPropSymbols$
|
|
16280
|
-
for (var prop of __getOwnPropSymbols$
|
|
16281
|
-
if (__propIsEnum$
|
|
16282
|
-
__defNormalProp$
|
|
16307
|
+
if (__hasOwnProp$V.call(b, prop))
|
|
16308
|
+
__defNormalProp$L(a, prop, b[prop]);
|
|
16309
|
+
if (__getOwnPropSymbols$V)
|
|
16310
|
+
for (var prop of __getOwnPropSymbols$V(b)) {
|
|
16311
|
+
if (__propIsEnum$V.call(b, prop))
|
|
16312
|
+
__defNormalProp$L(a, prop, b[prop]);
|
|
16283
16313
|
}
|
|
16284
16314
|
return a;
|
|
16285
16315
|
};
|
|
@@ -16327,7 +16357,7 @@ class FundingSourcesAPI {
|
|
|
16327
16357
|
if (!endUserIpAddress) {
|
|
16328
16358
|
return Promise.reject([new CodedError("Unable to get IP address")]);
|
|
16329
16359
|
}
|
|
16330
|
-
return yield this.client.post("/v1/funding_sources", __spreadValues$
|
|
16360
|
+
return yield this.client.post("/v1/funding_sources", __spreadValues$L({
|
|
16331
16361
|
endUserIpAddress
|
|
16332
16362
|
}, createFundingSource));
|
|
16333
16363
|
});
|
|
@@ -16346,7 +16376,7 @@ class FundingSourcesAPI {
|
|
|
16346
16376
|
{
|
|
16347
16377
|
billingInfo,
|
|
16348
16378
|
endUserIpAddress,
|
|
16349
|
-
paymentMethod: __spreadValues$
|
|
16379
|
+
paymentMethod: __spreadValues$L({
|
|
16350
16380
|
creditCardInfo
|
|
16351
16381
|
}, auctanePayInfo)
|
|
16352
16382
|
}
|
|
@@ -16361,7 +16391,7 @@ class FundingSourcesAPI {
|
|
|
16361
16391
|
if (!endUserIpAddress) {
|
|
16362
16392
|
return Promise.reject([new CodedError("Unable to get IP address")]);
|
|
16363
16393
|
}
|
|
16364
|
-
return yield this.client.post("/v1/registration/funding_source", __spreadValues$
|
|
16394
|
+
return yield this.client.post("/v1/registration/funding_source", __spreadValues$L({
|
|
16365
16395
|
endUserIpAddress
|
|
16366
16396
|
}, carrier));
|
|
16367
16397
|
});
|
|
@@ -16530,17 +16560,17 @@ class LabelsAPI {
|
|
|
16530
16560
|
}
|
|
16531
16561
|
}
|
|
16532
16562
|
|
|
16533
|
-
var __getOwnPropSymbols$
|
|
16534
|
-
var __hasOwnProp$
|
|
16535
|
-
var __propIsEnum$
|
|
16563
|
+
var __getOwnPropSymbols$U = Object.getOwnPropertySymbols;
|
|
16564
|
+
var __hasOwnProp$U = Object.prototype.hasOwnProperty;
|
|
16565
|
+
var __propIsEnum$U = Object.prototype.propertyIsEnumerable;
|
|
16536
16566
|
var __objRest$t = (source, exclude) => {
|
|
16537
16567
|
var target = {};
|
|
16538
16568
|
for (var prop in source)
|
|
16539
|
-
if (__hasOwnProp$
|
|
16569
|
+
if (__hasOwnProp$U.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
16540
16570
|
target[prop] = source[prop];
|
|
16541
|
-
if (source != null && __getOwnPropSymbols$
|
|
16542
|
-
for (var prop of __getOwnPropSymbols$
|
|
16543
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
16571
|
+
if (source != null && __getOwnPropSymbols$U)
|
|
16572
|
+
for (var prop of __getOwnPropSymbols$U(source)) {
|
|
16573
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$U.call(source, prop))
|
|
16544
16574
|
target[prop] = source[prop];
|
|
16545
16575
|
}
|
|
16546
16576
|
return target;
|
|
@@ -16661,19 +16691,19 @@ class RateCardsAPI {
|
|
|
16661
16691
|
}
|
|
16662
16692
|
}
|
|
16663
16693
|
|
|
16664
|
-
var __defProp$
|
|
16665
|
-
var __getOwnPropSymbols$
|
|
16666
|
-
var __hasOwnProp$
|
|
16667
|
-
var __propIsEnum$
|
|
16668
|
-
var __defNormalProp$
|
|
16669
|
-
var __spreadValues$
|
|
16694
|
+
var __defProp$K = Object.defineProperty;
|
|
16695
|
+
var __getOwnPropSymbols$T = Object.getOwnPropertySymbols;
|
|
16696
|
+
var __hasOwnProp$T = Object.prototype.hasOwnProperty;
|
|
16697
|
+
var __propIsEnum$T = Object.prototype.propertyIsEnumerable;
|
|
16698
|
+
var __defNormalProp$K = (obj, key, value) => key in obj ? __defProp$K(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
16699
|
+
var __spreadValues$K = (a, b) => {
|
|
16670
16700
|
for (var prop in b || (b = {}))
|
|
16671
|
-
if (__hasOwnProp$
|
|
16672
|
-
__defNormalProp$
|
|
16673
|
-
if (__getOwnPropSymbols$
|
|
16674
|
-
for (var prop of __getOwnPropSymbols$
|
|
16675
|
-
if (__propIsEnum$
|
|
16676
|
-
__defNormalProp$
|
|
16701
|
+
if (__hasOwnProp$T.call(b, prop))
|
|
16702
|
+
__defNormalProp$K(a, prop, b[prop]);
|
|
16703
|
+
if (__getOwnPropSymbols$T)
|
|
16704
|
+
for (var prop of __getOwnPropSymbols$T(b)) {
|
|
16705
|
+
if (__propIsEnum$T.call(b, prop))
|
|
16706
|
+
__defNormalProp$K(a, prop, b[prop]);
|
|
16677
16707
|
}
|
|
16678
16708
|
return a;
|
|
16679
16709
|
};
|
|
@@ -16695,7 +16725,7 @@ class RatesAPI {
|
|
|
16695
16725
|
* method.
|
|
16696
16726
|
*/
|
|
16697
16727
|
this.estimate = (params) => {
|
|
16698
|
-
return this.client.post("/v1/rates/estimate", __spreadValues$
|
|
16728
|
+
return this.client.post("/v1/rates/estimate", __spreadValues$K({}, params));
|
|
16699
16729
|
};
|
|
16700
16730
|
this.client = client;
|
|
16701
16731
|
}
|
|
@@ -16879,19 +16909,19 @@ class SellersAPI {
|
|
|
16879
16909
|
}
|
|
16880
16910
|
}
|
|
16881
16911
|
|
|
16882
|
-
var __defProp$
|
|
16883
|
-
var __getOwnPropSymbols$
|
|
16884
|
-
var __hasOwnProp$
|
|
16885
|
-
var __propIsEnum$
|
|
16886
|
-
var __defNormalProp$
|
|
16887
|
-
var __spreadValues$
|
|
16912
|
+
var __defProp$J = Object.defineProperty;
|
|
16913
|
+
var __getOwnPropSymbols$S = Object.getOwnPropertySymbols;
|
|
16914
|
+
var __hasOwnProp$S = Object.prototype.hasOwnProperty;
|
|
16915
|
+
var __propIsEnum$S = Object.prototype.propertyIsEnumerable;
|
|
16916
|
+
var __defNormalProp$J = (obj, key, value) => key in obj ? __defProp$J(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
16917
|
+
var __spreadValues$J = (a, b) => {
|
|
16888
16918
|
for (var prop in b || (b = {}))
|
|
16889
|
-
if (__hasOwnProp$
|
|
16890
|
-
__defNormalProp$
|
|
16891
|
-
if (__getOwnPropSymbols$
|
|
16892
|
-
for (var prop of __getOwnPropSymbols$
|
|
16893
|
-
if (__propIsEnum$
|
|
16894
|
-
__defNormalProp$
|
|
16919
|
+
if (__hasOwnProp$S.call(b, prop))
|
|
16920
|
+
__defNormalProp$J(a, prop, b[prop]);
|
|
16921
|
+
if (__getOwnPropSymbols$S)
|
|
16922
|
+
for (var prop of __getOwnPropSymbols$S(b)) {
|
|
16923
|
+
if (__propIsEnum$S.call(b, prop))
|
|
16924
|
+
__defNormalProp$J(a, prop, b[prop]);
|
|
16895
16925
|
}
|
|
16896
16926
|
return a;
|
|
16897
16927
|
};
|
|
@@ -16903,7 +16933,7 @@ class ServicePointsAPI {
|
|
|
16903
16933
|
* Either an address, coordinates, or an address query
|
|
16904
16934
|
*/
|
|
16905
16935
|
this.list = (options) => {
|
|
16906
|
-
return this.client.post("/v1/service_points/list", __spreadValues$
|
|
16936
|
+
return this.client.post("/v1/service_points/list", __spreadValues$J({}, options));
|
|
16907
16937
|
};
|
|
16908
16938
|
/**
|
|
16909
16939
|
* Get a specific service point by its carrier code, country code, and id
|
|
@@ -34387,33 +34417,33 @@ class WebhooksAPI {
|
|
|
34387
34417
|
}
|
|
34388
34418
|
}
|
|
34389
34419
|
|
|
34390
|
-
var __defProp$
|
|
34391
|
-
var __defProps$
|
|
34392
|
-
var __getOwnPropDescs$
|
|
34393
|
-
var __getOwnPropSymbols$
|
|
34394
|
-
var __hasOwnProp$
|
|
34395
|
-
var __propIsEnum$
|
|
34396
|
-
var __defNormalProp$
|
|
34397
|
-
var __spreadValues$
|
|
34420
|
+
var __defProp$I = Object.defineProperty;
|
|
34421
|
+
var __defProps$F = Object.defineProperties;
|
|
34422
|
+
var __getOwnPropDescs$F = Object.getOwnPropertyDescriptors;
|
|
34423
|
+
var __getOwnPropSymbols$R = Object.getOwnPropertySymbols;
|
|
34424
|
+
var __hasOwnProp$R = Object.prototype.hasOwnProperty;
|
|
34425
|
+
var __propIsEnum$R = Object.prototype.propertyIsEnumerable;
|
|
34426
|
+
var __defNormalProp$I = (obj, key, value) => key in obj ? __defProp$I(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
34427
|
+
var __spreadValues$I = (a, b) => {
|
|
34398
34428
|
for (var prop in b || (b = {}))
|
|
34399
|
-
if (__hasOwnProp$
|
|
34400
|
-
__defNormalProp$
|
|
34401
|
-
if (__getOwnPropSymbols$
|
|
34402
|
-
for (var prop of __getOwnPropSymbols$
|
|
34403
|
-
if (__propIsEnum$
|
|
34404
|
-
__defNormalProp$
|
|
34429
|
+
if (__hasOwnProp$R.call(b, prop))
|
|
34430
|
+
__defNormalProp$I(a, prop, b[prop]);
|
|
34431
|
+
if (__getOwnPropSymbols$R)
|
|
34432
|
+
for (var prop of __getOwnPropSymbols$R(b)) {
|
|
34433
|
+
if (__propIsEnum$R.call(b, prop))
|
|
34434
|
+
__defNormalProp$I(a, prop, b[prop]);
|
|
34405
34435
|
}
|
|
34406
34436
|
return a;
|
|
34407
34437
|
};
|
|
34408
|
-
var __spreadProps$
|
|
34438
|
+
var __spreadProps$F = (a, b) => __defProps$F(a, __getOwnPropDescs$F(b));
|
|
34409
34439
|
var __objRest$s = (source, exclude) => {
|
|
34410
34440
|
var target = {};
|
|
34411
34441
|
for (var prop in source)
|
|
34412
|
-
if (__hasOwnProp$
|
|
34442
|
+
if (__hasOwnProp$R.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
34413
34443
|
target[prop] = source[prop];
|
|
34414
|
-
if (source != null && __getOwnPropSymbols$
|
|
34415
|
-
for (var prop of __getOwnPropSymbols$
|
|
34416
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
34444
|
+
if (source != null && __getOwnPropSymbols$R)
|
|
34445
|
+
for (var prop of __getOwnPropSymbols$R(source)) {
|
|
34446
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$R.call(source, prop))
|
|
34417
34447
|
target[prop] = source[prop];
|
|
34418
34448
|
}
|
|
34419
34449
|
return target;
|
|
@@ -34441,7 +34471,7 @@ var __async$Z = (__this, __arguments, generator) => {
|
|
|
34441
34471
|
const logger$1 = E({
|
|
34442
34472
|
level: process.env.NODE_ENV === "production" ? "fatal" : "info",
|
|
34443
34473
|
name: "shipengine-api",
|
|
34444
|
-
serializers: __spreadProps$
|
|
34474
|
+
serializers: __spreadProps$F(__spreadValues$I({}, k), {
|
|
34445
34475
|
req: (req) => ({
|
|
34446
34476
|
headers: req.headers,
|
|
34447
34477
|
method: req.method,
|
|
@@ -34466,7 +34496,7 @@ class ShipEngineAPI {
|
|
|
34466
34496
|
this.getSandboxToken = getSandboxToken;
|
|
34467
34497
|
const client = axios.create({
|
|
34468
34498
|
baseURL,
|
|
34469
|
-
headers: __spreadProps$
|
|
34499
|
+
headers: __spreadProps$F(__spreadValues$I({}, headers), {
|
|
34470
34500
|
"Content-Type": "application/json"
|
|
34471
34501
|
}),
|
|
34472
34502
|
paramsSerializer: (params) => lib.stringify(decamelizeKeys(params), { arrayFormat: "brackets" }),
|
|
@@ -34617,6 +34647,13 @@ class ShipEngineAPI {
|
|
|
34617
34647
|
get accountBillingPlan() {
|
|
34618
34648
|
return new AccountBillingPlanAPI(this.client);
|
|
34619
34649
|
}
|
|
34650
|
+
/**
|
|
34651
|
+
* The `accountAddons` method provides access to the Account Addons endpoints
|
|
34652
|
+
* in ShipEngine API.
|
|
34653
|
+
*/
|
|
34654
|
+
get accountAddons() {
|
|
34655
|
+
return new AccountAddonsAPI(this.client);
|
|
34656
|
+
}
|
|
34620
34657
|
/**
|
|
34621
34658
|
* The `accountBilling` method provides access to the Account Billing (Recurly) endpoints
|
|
34622
34659
|
* in ShipEngine API.
|
|
@@ -34883,25 +34920,25 @@ const delay = (ms) => new Promise((resolve) => {
|
|
|
34883
34920
|
|
|
34884
34921
|
const onError = (_errors) => _default();
|
|
34885
34922
|
|
|
34886
|
-
var __defProp$
|
|
34887
|
-
var __defProps$
|
|
34888
|
-
var __getOwnPropDescs$
|
|
34889
|
-
var __getOwnPropSymbols$
|
|
34890
|
-
var __hasOwnProp$
|
|
34891
|
-
var __propIsEnum$
|
|
34892
|
-
var __defNormalProp$
|
|
34893
|
-
var __spreadValues$
|
|
34923
|
+
var __defProp$H = Object.defineProperty;
|
|
34924
|
+
var __defProps$E = Object.defineProperties;
|
|
34925
|
+
var __getOwnPropDescs$E = Object.getOwnPropertyDescriptors;
|
|
34926
|
+
var __getOwnPropSymbols$Q = Object.getOwnPropertySymbols;
|
|
34927
|
+
var __hasOwnProp$Q = Object.prototype.hasOwnProperty;
|
|
34928
|
+
var __propIsEnum$Q = Object.prototype.propertyIsEnumerable;
|
|
34929
|
+
var __defNormalProp$H = (obj, key, value) => key in obj ? __defProp$H(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
34930
|
+
var __spreadValues$H = (a, b) => {
|
|
34894
34931
|
for (var prop in b || (b = {}))
|
|
34895
|
-
if (__hasOwnProp$
|
|
34896
|
-
__defNormalProp$
|
|
34897
|
-
if (__getOwnPropSymbols$
|
|
34898
|
-
for (var prop of __getOwnPropSymbols$
|
|
34899
|
-
if (__propIsEnum$
|
|
34900
|
-
__defNormalProp$
|
|
34932
|
+
if (__hasOwnProp$Q.call(b, prop))
|
|
34933
|
+
__defNormalProp$H(a, prop, b[prop]);
|
|
34934
|
+
if (__getOwnPropSymbols$Q)
|
|
34935
|
+
for (var prop of __getOwnPropSymbols$Q(b)) {
|
|
34936
|
+
if (__propIsEnum$Q.call(b, prop))
|
|
34937
|
+
__defNormalProp$H(a, prop, b[prop]);
|
|
34901
34938
|
}
|
|
34902
34939
|
return a;
|
|
34903
34940
|
};
|
|
34904
|
-
var __spreadProps$
|
|
34941
|
+
var __spreadProps$E = (a, b) => __defProps$E(a, __getOwnPropDescs$E(b));
|
|
34905
34942
|
const streams = [];
|
|
34906
34943
|
if (process.env.NODE_ENV === "production") {
|
|
34907
34944
|
streams.push({
|
|
@@ -34910,7 +34947,7 @@ if (process.env.NODE_ENV === "production") {
|
|
|
34910
34947
|
}
|
|
34911
34948
|
const logger = E({
|
|
34912
34949
|
name: "shipengine",
|
|
34913
|
-
serializers: __spreadProps$
|
|
34950
|
+
serializers: __spreadProps$E(__spreadValues$H({}, k), {
|
|
34914
34951
|
req: (req) => ({
|
|
34915
34952
|
headers: req.headers,
|
|
34916
34953
|
method: req.method,
|
|
@@ -35083,6 +35120,35 @@ const useUpdateAccountSettings = () => {
|
|
|
35083
35120
|
});
|
|
35084
35121
|
};
|
|
35085
35122
|
|
|
35123
|
+
var __defProp$G = Object.defineProperty;
|
|
35124
|
+
var __defProps$D = Object.defineProperties;
|
|
35125
|
+
var __getOwnPropDescs$D = Object.getOwnPropertyDescriptors;
|
|
35126
|
+
var __getOwnPropSymbols$P = Object.getOwnPropertySymbols;
|
|
35127
|
+
var __hasOwnProp$P = Object.prototype.hasOwnProperty;
|
|
35128
|
+
var __propIsEnum$P = Object.prototype.propertyIsEnumerable;
|
|
35129
|
+
var __defNormalProp$G = (obj, key, value) => key in obj ? __defProp$G(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
35130
|
+
var __spreadValues$G = (a, b) => {
|
|
35131
|
+
for (var prop in b || (b = {}))
|
|
35132
|
+
if (__hasOwnProp$P.call(b, prop))
|
|
35133
|
+
__defNormalProp$G(a, prop, b[prop]);
|
|
35134
|
+
if (__getOwnPropSymbols$P)
|
|
35135
|
+
for (var prop of __getOwnPropSymbols$P(b)) {
|
|
35136
|
+
if (__propIsEnum$P.call(b, prop))
|
|
35137
|
+
__defNormalProp$G(a, prop, b[prop]);
|
|
35138
|
+
}
|
|
35139
|
+
return a;
|
|
35140
|
+
};
|
|
35141
|
+
var __spreadProps$D = (a, b) => __defProps$D(a, __getOwnPropDescs$D(b));
|
|
35142
|
+
const useListAccountAddons = (params) => {
|
|
35143
|
+
const { client } = useShipEngine();
|
|
35144
|
+
return reactQuery.useQuery(__spreadProps$D(__spreadValues$G({}, params), {
|
|
35145
|
+
onError,
|
|
35146
|
+
queryFn: () => client.accountAddons.list(),
|
|
35147
|
+
queryKey: ["useListAccountAddons"],
|
|
35148
|
+
select: (result) => result.data
|
|
35149
|
+
}));
|
|
35150
|
+
};
|
|
35151
|
+
|
|
35086
35152
|
var __async$U = (__this, __arguments, generator) => {
|
|
35087
35153
|
return new Promise((resolve, reject) => {
|
|
35088
35154
|
var fulfilled = (value) => {
|
|
@@ -39930,6 +39996,7 @@ const alchemy = {
|
|
|
39930
39996
|
createElement
|
|
39931
39997
|
};
|
|
39932
39998
|
|
|
39999
|
+
exports.AccountAddonsAPI = AccountAddonsAPI;
|
|
39933
40000
|
exports.AccountBillingAPI = AccountBillingAPI;
|
|
39934
40001
|
exports.AccountBillingPlanAPI = AccountBillingPlanAPI;
|
|
39935
40002
|
exports.AccountBillingPlanChangeType = AccountBillingPlanChangeType;
|
|
@@ -40065,6 +40132,7 @@ exports.useGetShippingRuleConditionsOptions = useGetShippingRuleConditionsOption
|
|
|
40065
40132
|
exports.useGetThemeById = useGetThemeById;
|
|
40066
40133
|
exports.useGetZonesByCarrier = useGetZonesByCarrier;
|
|
40067
40134
|
exports.useI18n = useI18n;
|
|
40135
|
+
exports.useListAccountAddons = useListAccountAddons;
|
|
40068
40136
|
exports.useListCarrierConnections = useListCarrierConnections;
|
|
40069
40137
|
exports.useListCarriers = useListCarriers;
|
|
40070
40138
|
exports.useListCustomPackageTypes = useListCustomPackageTypes;
|