@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.mjs
CHANGED
|
@@ -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$
|
|
3534
|
+
function baseGetTag$5(value) {
|
|
3535
3535
|
if (value == null) {
|
|
3536
3536
|
return value === undefined ? undefinedTag : nullTag;
|
|
3537
3537
|
}
|
|
@@ -3540,7 +3540,7 @@ function baseGetTag$6(value) {
|
|
|
3540
3540
|
: objectToString$1(value);
|
|
3541
3541
|
}
|
|
3542
3542
|
|
|
3543
|
-
var _baseGetTag = baseGetTag$
|
|
3543
|
+
var _baseGetTag = baseGetTag$5;
|
|
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$
|
|
3578
|
+
var baseGetTag$4 = _baseGetTag,
|
|
3579
3579
|
isObject$7 = isObject_1;
|
|
3580
3580
|
|
|
3581
3581
|
/** `Object#toString` result references. */
|
|
3582
3582
|
var asyncTag = '[object AsyncFunction]',
|
|
3583
|
-
funcTag$
|
|
3583
|
+
funcTag$1 = '[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$
|
|
3611
|
-
return tag == funcTag$
|
|
3610
|
+
var tag = baseGetTag$4(value);
|
|
3611
|
+
return tag == funcTag$1 || 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$
|
|
4204
|
+
function isObjectLike$8(value) {
|
|
4205
4205
|
return value != null && typeof value == 'object';
|
|
4206
4206
|
}
|
|
4207
4207
|
|
|
4208
|
-
var isObjectLike_1 = isObjectLike$
|
|
4208
|
+
var isObjectLike_1 = isObjectLike$8;
|
|
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$
|
|
4260
|
+
isObjectLike$7 = 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$
|
|
4387
|
+
if (isObjectLike$7(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$
|
|
5289
|
-
isObjectLike$
|
|
5288
|
+
var baseGetTag$3 = _baseGetTag,
|
|
5289
|
+
isObjectLike$6 = 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$
|
|
5313
|
+
(isObjectLike$6(value) && baseGetTag$3(value) == symbolTag$3);
|
|
5314
5314
|
}
|
|
5315
5315
|
|
|
5316
5316
|
var isSymbol_1 = isSymbol$6;
|
|
@@ -5931,73 +5931,81 @@ var MAX_SAFE_INTEGER = 9007199254740991;
|
|
|
5931
5931
|
* _.isLength('3');
|
|
5932
5932
|
* // => false
|
|
5933
5933
|
*/
|
|
5934
|
-
function isLength$
|
|
5934
|
+
function isLength$2(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$
|
|
5939
|
+
var isLength_1 = isLength$2;
|
|
5940
5940
|
|
|
5941
|
-
var
|
|
5942
|
-
|
|
5943
|
-
isObjectLike$6 = isObjectLike_1;
|
|
5941
|
+
var _baseIsTypedArray;
|
|
5942
|
+
var hasRequired_baseIsTypedArray;
|
|
5944
5943
|
|
|
5945
|
-
|
|
5946
|
-
|
|
5947
|
-
|
|
5948
|
-
|
|
5949
|
-
|
|
5950
|
-
|
|
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;
|
|
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;
|
|
5987
5950
|
|
|
5988
|
-
/**
|
|
5989
|
-
|
|
5990
|
-
|
|
5991
|
-
|
|
5992
|
-
|
|
5993
|
-
|
|
5994
|
-
|
|
5995
|
-
|
|
5996
|
-
|
|
5997
|
-
|
|
5998
|
-
|
|
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;
|
|
5999
5993
|
|
|
6000
|
-
|
|
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
|
+
}
|
|
6005
|
+
|
|
6006
|
+
_baseIsTypedArray = baseIsTypedArray;
|
|
6007
|
+
return _baseIsTypedArray;
|
|
6008
|
+
}
|
|
6001
6009
|
|
|
6002
6010
|
/**
|
|
6003
6011
|
* The base implementation of `_.unary` without support for storing metadata.
|
|
@@ -6007,13 +6015,13 @@ var _baseIsTypedArray = baseIsTypedArray$1;
|
|
|
6007
6015
|
* @returns {Function} Returns the new capped function.
|
|
6008
6016
|
*/
|
|
6009
6017
|
|
|
6010
|
-
function baseUnary$
|
|
6018
|
+
function baseUnary$2(func) {
|
|
6011
6019
|
return function(value) {
|
|
6012
6020
|
return func(value);
|
|
6013
6021
|
};
|
|
6014
6022
|
}
|
|
6015
6023
|
|
|
6016
|
-
var _baseUnary = baseUnary$
|
|
6024
|
+
var _baseUnary = baseUnary$2;
|
|
6017
6025
|
|
|
6018
6026
|
var _nodeUtilExports = {};
|
|
6019
6027
|
var _nodeUtil = {
|
|
@@ -6054,40 +6062,48 @@ var _nodeUtil = {
|
|
|
6054
6062
|
module.exports = nodeUtil;
|
|
6055
6063
|
} (_nodeUtil, _nodeUtilExports));
|
|
6056
6064
|
|
|
6057
|
-
var
|
|
6058
|
-
|
|
6059
|
-
nodeUtil$2 = _nodeUtilExports;
|
|
6065
|
+
var isTypedArray_1;
|
|
6066
|
+
var hasRequiredIsTypedArray;
|
|
6060
6067
|
|
|
6061
|
-
|
|
6062
|
-
|
|
6068
|
+
function requireIsTypedArray () {
|
|
6069
|
+
if (hasRequiredIsTypedArray) return isTypedArray_1;
|
|
6070
|
+
hasRequiredIsTypedArray = 1;
|
|
6071
|
+
var baseIsTypedArray = require_baseIsTypedArray(),
|
|
6072
|
+
baseUnary = _baseUnary,
|
|
6073
|
+
nodeUtil = _nodeUtilExports;
|
|
6063
6074
|
|
|
6064
|
-
|
|
6065
|
-
|
|
6066
|
-
|
|
6067
|
-
|
|
6068
|
-
|
|
6069
|
-
|
|
6070
|
-
|
|
6071
|
-
|
|
6072
|
-
|
|
6073
|
-
|
|
6074
|
-
*
|
|
6075
|
-
|
|
6076
|
-
|
|
6077
|
-
|
|
6078
|
-
|
|
6079
|
-
|
|
6080
|
-
|
|
6081
|
-
|
|
6075
|
+
/* Node.js helper references. */
|
|
6076
|
+
var nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;
|
|
6077
|
+
|
|
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;
|
|
6082
6096
|
|
|
6083
|
-
|
|
6097
|
+
isTypedArray_1 = isTypedArray;
|
|
6098
|
+
return isTypedArray_1;
|
|
6099
|
+
}
|
|
6084
6100
|
|
|
6085
6101
|
var baseTimes = _baseTimes,
|
|
6086
6102
|
isArguments$2 = requireIsArguments(),
|
|
6087
6103
|
isArray$f = isArray_1,
|
|
6088
6104
|
isBuffer$4 = isBufferExports,
|
|
6089
6105
|
isIndex$1 = _isIndex,
|
|
6090
|
-
isTypedArray$1 =
|
|
6106
|
+
isTypedArray$1 = requireIsTypedArray();
|
|
6091
6107
|
|
|
6092
6108
|
/** Used for built-in method references. */
|
|
6093
6109
|
var objectProto$7 = Object.prototype;
|
|
@@ -8792,7 +8808,7 @@ var Stack$1 = require_Stack(),
|
|
|
8792
8808
|
getTag = _getTag,
|
|
8793
8809
|
isArray$c = isArray_1,
|
|
8794
8810
|
isBuffer$2 = isBufferExports,
|
|
8795
|
-
isTypedArray =
|
|
8811
|
+
isTypedArray = requireIsTypedArray();
|
|
8796
8812
|
|
|
8797
8813
|
/** Used to compose bitmasks for value comparisons. */
|
|
8798
8814
|
var COMPARE_PARTIAL_FLAG$2 = 1;
|
|
@@ -10137,7 +10153,7 @@ function require_baseMergeDeep () {
|
|
|
10137
10153
|
isFunction = isFunction_1,
|
|
10138
10154
|
isObject = isObject_1,
|
|
10139
10155
|
isPlainObject = isPlainObject_1,
|
|
10140
|
-
isTypedArray =
|
|
10156
|
+
isTypedArray = requireIsTypedArray(),
|
|
10141
10157
|
safeGet = require_safeGet(),
|
|
10142
10158
|
toPlainObject = requireToPlainObject();
|
|
10143
10159
|
|
|
@@ -10784,17 +10800,17 @@ var AccountBillingPlanChangeType = /* @__PURE__ */ ((AccountBillingPlanChangeTyp
|
|
|
10784
10800
|
return AccountBillingPlanChangeType2;
|
|
10785
10801
|
})(AccountBillingPlanChangeType || {});
|
|
10786
10802
|
|
|
10787
|
-
var __getOwnPropSymbols$
|
|
10788
|
-
var __hasOwnProp$
|
|
10789
|
-
var __propIsEnum$
|
|
10803
|
+
var __getOwnPropSymbols$Z = Object.getOwnPropertySymbols;
|
|
10804
|
+
var __hasOwnProp$Z = Object.prototype.hasOwnProperty;
|
|
10805
|
+
var __propIsEnum$Z = Object.prototype.propertyIsEnumerable;
|
|
10790
10806
|
var __objRest$x = (source, exclude) => {
|
|
10791
10807
|
var target = {};
|
|
10792
10808
|
for (var prop in source)
|
|
10793
|
-
if (__hasOwnProp$
|
|
10809
|
+
if (__hasOwnProp$Z.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
10794
10810
|
target[prop] = source[prop];
|
|
10795
|
-
if (source != null && __getOwnPropSymbols$
|
|
10796
|
-
for (var prop of __getOwnPropSymbols$
|
|
10797
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
10811
|
+
if (source != null && __getOwnPropSymbols$Z)
|
|
10812
|
+
for (var prop of __getOwnPropSymbols$Z(source)) {
|
|
10813
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$Z.call(source, prop))
|
|
10798
10814
|
target[prop] = source[prop];
|
|
10799
10815
|
}
|
|
10800
10816
|
return target;
|
|
@@ -10929,17 +10945,17 @@ const types = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
|
|
|
10929
10945
|
RateCardStatus
|
|
10930
10946
|
}, Symbol.toStringTag, { value: 'Module' }));
|
|
10931
10947
|
|
|
10932
|
-
var __getOwnPropSymbols$
|
|
10933
|
-
var __hasOwnProp$
|
|
10934
|
-
var __propIsEnum$
|
|
10948
|
+
var __getOwnPropSymbols$Y = Object.getOwnPropertySymbols;
|
|
10949
|
+
var __hasOwnProp$Y = Object.prototype.hasOwnProperty;
|
|
10950
|
+
var __propIsEnum$Y = Object.prototype.propertyIsEnumerable;
|
|
10935
10951
|
var __objRest$w = (source, exclude) => {
|
|
10936
10952
|
var target = {};
|
|
10937
10953
|
for (var prop in source)
|
|
10938
|
-
if (__hasOwnProp$
|
|
10954
|
+
if (__hasOwnProp$Y.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
10939
10955
|
target[prop] = source[prop];
|
|
10940
|
-
if (source != null && __getOwnPropSymbols$
|
|
10941
|
-
for (var prop of __getOwnPropSymbols$
|
|
10942
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
10956
|
+
if (source != null && __getOwnPropSymbols$Y)
|
|
10957
|
+
for (var prop of __getOwnPropSymbols$Y(source)) {
|
|
10958
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$Y.call(source, prop))
|
|
10943
10959
|
target[prop] = source[prop];
|
|
10944
10960
|
}
|
|
10945
10961
|
return target;
|
|
@@ -10990,6 +11006,20 @@ class AccountSettingsAPI {
|
|
|
10990
11006
|
}
|
|
10991
11007
|
}
|
|
10992
11008
|
|
|
11009
|
+
class AccountAddonsAPI {
|
|
11010
|
+
constructor(client) {
|
|
11011
|
+
this.client = client;
|
|
11012
|
+
/**
|
|
11013
|
+
* The `list` method retrieves a list of all available addons, also includes
|
|
11014
|
+
* if its avaiable for the current user
|
|
11015
|
+
*/
|
|
11016
|
+
this.list = () => {
|
|
11017
|
+
return this.client.get("/v1/account/addons");
|
|
11018
|
+
};
|
|
11019
|
+
this.client = client;
|
|
11020
|
+
}
|
|
11021
|
+
}
|
|
11022
|
+
|
|
10993
11023
|
class AddressesAPI {
|
|
10994
11024
|
constructor(client) {
|
|
10995
11025
|
this.client = client;
|
|
@@ -13860,33 +13890,33 @@ const decamelizeKeys = (obj, separator = "_") => {
|
|
|
13860
13890
|
return obj;
|
|
13861
13891
|
};
|
|
13862
13892
|
|
|
13863
|
-
var __defProp$
|
|
13864
|
-
var __defProps$
|
|
13865
|
-
var __getOwnPropDescs$
|
|
13866
|
-
var __getOwnPropSymbols$
|
|
13867
|
-
var __hasOwnProp$
|
|
13868
|
-
var __propIsEnum$
|
|
13869
|
-
var __defNormalProp$
|
|
13870
|
-
var __spreadValues$
|
|
13893
|
+
var __defProp$M = Object.defineProperty;
|
|
13894
|
+
var __defProps$G = Object.defineProperties;
|
|
13895
|
+
var __getOwnPropDescs$G = Object.getOwnPropertyDescriptors;
|
|
13896
|
+
var __getOwnPropSymbols$X = Object.getOwnPropertySymbols;
|
|
13897
|
+
var __hasOwnProp$X = Object.prototype.hasOwnProperty;
|
|
13898
|
+
var __propIsEnum$X = Object.prototype.propertyIsEnumerable;
|
|
13899
|
+
var __defNormalProp$M = (obj, key, value) => key in obj ? __defProp$M(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
13900
|
+
var __spreadValues$M = (a, b) => {
|
|
13871
13901
|
for (var prop in b || (b = {}))
|
|
13872
|
-
if (__hasOwnProp$
|
|
13873
|
-
__defNormalProp$
|
|
13874
|
-
if (__getOwnPropSymbols$
|
|
13875
|
-
for (var prop of __getOwnPropSymbols$
|
|
13876
|
-
if (__propIsEnum$
|
|
13877
|
-
__defNormalProp$
|
|
13902
|
+
if (__hasOwnProp$X.call(b, prop))
|
|
13903
|
+
__defNormalProp$M(a, prop, b[prop]);
|
|
13904
|
+
if (__getOwnPropSymbols$X)
|
|
13905
|
+
for (var prop of __getOwnPropSymbols$X(b)) {
|
|
13906
|
+
if (__propIsEnum$X.call(b, prop))
|
|
13907
|
+
__defNormalProp$M(a, prop, b[prop]);
|
|
13878
13908
|
}
|
|
13879
13909
|
return a;
|
|
13880
13910
|
};
|
|
13881
|
-
var __spreadProps$
|
|
13911
|
+
var __spreadProps$G = (a, b) => __defProps$G(a, __getOwnPropDescs$G(b));
|
|
13882
13912
|
var __objRest$v = (source, exclude) => {
|
|
13883
13913
|
var target = {};
|
|
13884
13914
|
for (var prop in source)
|
|
13885
|
-
if (__hasOwnProp$
|
|
13915
|
+
if (__hasOwnProp$X.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
13886
13916
|
target[prop] = source[prop];
|
|
13887
|
-
if (source != null && __getOwnPropSymbols$
|
|
13888
|
-
for (var prop of __getOwnPropSymbols$
|
|
13889
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
13917
|
+
if (source != null && __getOwnPropSymbols$X)
|
|
13918
|
+
for (var prop of __getOwnPropSymbols$X(source)) {
|
|
13919
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$X.call(source, prop))
|
|
13890
13920
|
target[prop] = source[prop];
|
|
13891
13921
|
}
|
|
13892
13922
|
return target;
|
|
@@ -13936,7 +13966,7 @@ class CarriersAPI {
|
|
|
13936
13966
|
const endUserIpAddress = yield getEndUserIpAddress();
|
|
13937
13967
|
if (!endUserIpAddress)
|
|
13938
13968
|
return Promise.reject([new CodedError("Unable to get IP address")]);
|
|
13939
|
-
return yield this.client.post(`/v1/registration/${carrierCode}`, __spreadProps$
|
|
13969
|
+
return yield this.client.post(`/v1/registration/${carrierCode}`, __spreadProps$G(__spreadValues$M({}, connection), {
|
|
13940
13970
|
endUserIpAddress
|
|
13941
13971
|
}));
|
|
13942
13972
|
});
|
|
@@ -14020,17 +14050,17 @@ class CarriersAPI {
|
|
|
14020
14050
|
}
|
|
14021
14051
|
}
|
|
14022
14052
|
|
|
14023
|
-
var __getOwnPropSymbols$
|
|
14024
|
-
var __hasOwnProp$
|
|
14025
|
-
var __propIsEnum$
|
|
14053
|
+
var __getOwnPropSymbols$W = Object.getOwnPropertySymbols;
|
|
14054
|
+
var __hasOwnProp$W = Object.prototype.hasOwnProperty;
|
|
14055
|
+
var __propIsEnum$W = Object.prototype.propertyIsEnumerable;
|
|
14026
14056
|
var __objRest$u = (source, exclude) => {
|
|
14027
14057
|
var target = {};
|
|
14028
14058
|
for (var prop in source)
|
|
14029
|
-
if (__hasOwnProp$
|
|
14059
|
+
if (__hasOwnProp$W.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
14030
14060
|
target[prop] = source[prop];
|
|
14031
|
-
if (source != null && __getOwnPropSymbols$
|
|
14032
|
-
for (var prop of __getOwnPropSymbols$
|
|
14033
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
14061
|
+
if (source != null && __getOwnPropSymbols$W)
|
|
14062
|
+
for (var prop of __getOwnPropSymbols$W(source)) {
|
|
14063
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$W.call(source, prop))
|
|
14034
14064
|
target[prop] = source[prop];
|
|
14035
14065
|
}
|
|
14036
14066
|
return target;
|
|
@@ -16245,19 +16275,19 @@ class CustomPackagesAPI {
|
|
|
16245
16275
|
}
|
|
16246
16276
|
}
|
|
16247
16277
|
|
|
16248
|
-
var __defProp$
|
|
16249
|
-
var __getOwnPropSymbols$
|
|
16250
|
-
var __hasOwnProp$
|
|
16251
|
-
var __propIsEnum$
|
|
16252
|
-
var __defNormalProp$
|
|
16253
|
-
var __spreadValues$
|
|
16278
|
+
var __defProp$L = Object.defineProperty;
|
|
16279
|
+
var __getOwnPropSymbols$V = Object.getOwnPropertySymbols;
|
|
16280
|
+
var __hasOwnProp$V = Object.prototype.hasOwnProperty;
|
|
16281
|
+
var __propIsEnum$V = Object.prototype.propertyIsEnumerable;
|
|
16282
|
+
var __defNormalProp$L = (obj, key, value) => key in obj ? __defProp$L(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
16283
|
+
var __spreadValues$L = (a, b) => {
|
|
16254
16284
|
for (var prop in b || (b = {}))
|
|
16255
|
-
if (__hasOwnProp$
|
|
16256
|
-
__defNormalProp$
|
|
16257
|
-
if (__getOwnPropSymbols$
|
|
16258
|
-
for (var prop of __getOwnPropSymbols$
|
|
16259
|
-
if (__propIsEnum$
|
|
16260
|
-
__defNormalProp$
|
|
16285
|
+
if (__hasOwnProp$V.call(b, prop))
|
|
16286
|
+
__defNormalProp$L(a, prop, b[prop]);
|
|
16287
|
+
if (__getOwnPropSymbols$V)
|
|
16288
|
+
for (var prop of __getOwnPropSymbols$V(b)) {
|
|
16289
|
+
if (__propIsEnum$V.call(b, prop))
|
|
16290
|
+
__defNormalProp$L(a, prop, b[prop]);
|
|
16261
16291
|
}
|
|
16262
16292
|
return a;
|
|
16263
16293
|
};
|
|
@@ -16305,7 +16335,7 @@ class FundingSourcesAPI {
|
|
|
16305
16335
|
if (!endUserIpAddress) {
|
|
16306
16336
|
return Promise.reject([new CodedError("Unable to get IP address")]);
|
|
16307
16337
|
}
|
|
16308
|
-
return yield this.client.post("/v1/funding_sources", __spreadValues$
|
|
16338
|
+
return yield this.client.post("/v1/funding_sources", __spreadValues$L({
|
|
16309
16339
|
endUserIpAddress
|
|
16310
16340
|
}, createFundingSource));
|
|
16311
16341
|
});
|
|
@@ -16324,7 +16354,7 @@ class FundingSourcesAPI {
|
|
|
16324
16354
|
{
|
|
16325
16355
|
billingInfo,
|
|
16326
16356
|
endUserIpAddress,
|
|
16327
|
-
paymentMethod: __spreadValues$
|
|
16357
|
+
paymentMethod: __spreadValues$L({
|
|
16328
16358
|
creditCardInfo
|
|
16329
16359
|
}, auctanePayInfo)
|
|
16330
16360
|
}
|
|
@@ -16339,7 +16369,7 @@ class FundingSourcesAPI {
|
|
|
16339
16369
|
if (!endUserIpAddress) {
|
|
16340
16370
|
return Promise.reject([new CodedError("Unable to get IP address")]);
|
|
16341
16371
|
}
|
|
16342
|
-
return yield this.client.post("/v1/registration/funding_source", __spreadValues$
|
|
16372
|
+
return yield this.client.post("/v1/registration/funding_source", __spreadValues$L({
|
|
16343
16373
|
endUserIpAddress
|
|
16344
16374
|
}, carrier));
|
|
16345
16375
|
});
|
|
@@ -16508,17 +16538,17 @@ class LabelsAPI {
|
|
|
16508
16538
|
}
|
|
16509
16539
|
}
|
|
16510
16540
|
|
|
16511
|
-
var __getOwnPropSymbols$
|
|
16512
|
-
var __hasOwnProp$
|
|
16513
|
-
var __propIsEnum$
|
|
16541
|
+
var __getOwnPropSymbols$U = Object.getOwnPropertySymbols;
|
|
16542
|
+
var __hasOwnProp$U = Object.prototype.hasOwnProperty;
|
|
16543
|
+
var __propIsEnum$U = Object.prototype.propertyIsEnumerable;
|
|
16514
16544
|
var __objRest$t = (source, exclude) => {
|
|
16515
16545
|
var target = {};
|
|
16516
16546
|
for (var prop in source)
|
|
16517
|
-
if (__hasOwnProp$
|
|
16547
|
+
if (__hasOwnProp$U.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
16518
16548
|
target[prop] = source[prop];
|
|
16519
|
-
if (source != null && __getOwnPropSymbols$
|
|
16520
|
-
for (var prop of __getOwnPropSymbols$
|
|
16521
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
16549
|
+
if (source != null && __getOwnPropSymbols$U)
|
|
16550
|
+
for (var prop of __getOwnPropSymbols$U(source)) {
|
|
16551
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$U.call(source, prop))
|
|
16522
16552
|
target[prop] = source[prop];
|
|
16523
16553
|
}
|
|
16524
16554
|
return target;
|
|
@@ -16639,19 +16669,19 @@ class RateCardsAPI {
|
|
|
16639
16669
|
}
|
|
16640
16670
|
}
|
|
16641
16671
|
|
|
16642
|
-
var __defProp$
|
|
16643
|
-
var __getOwnPropSymbols$
|
|
16644
|
-
var __hasOwnProp$
|
|
16645
|
-
var __propIsEnum$
|
|
16646
|
-
var __defNormalProp$
|
|
16647
|
-
var __spreadValues$
|
|
16672
|
+
var __defProp$K = Object.defineProperty;
|
|
16673
|
+
var __getOwnPropSymbols$T = Object.getOwnPropertySymbols;
|
|
16674
|
+
var __hasOwnProp$T = Object.prototype.hasOwnProperty;
|
|
16675
|
+
var __propIsEnum$T = Object.prototype.propertyIsEnumerable;
|
|
16676
|
+
var __defNormalProp$K = (obj, key, value) => key in obj ? __defProp$K(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
16677
|
+
var __spreadValues$K = (a, b) => {
|
|
16648
16678
|
for (var prop in b || (b = {}))
|
|
16649
|
-
if (__hasOwnProp$
|
|
16650
|
-
__defNormalProp$
|
|
16651
|
-
if (__getOwnPropSymbols$
|
|
16652
|
-
for (var prop of __getOwnPropSymbols$
|
|
16653
|
-
if (__propIsEnum$
|
|
16654
|
-
__defNormalProp$
|
|
16679
|
+
if (__hasOwnProp$T.call(b, prop))
|
|
16680
|
+
__defNormalProp$K(a, prop, b[prop]);
|
|
16681
|
+
if (__getOwnPropSymbols$T)
|
|
16682
|
+
for (var prop of __getOwnPropSymbols$T(b)) {
|
|
16683
|
+
if (__propIsEnum$T.call(b, prop))
|
|
16684
|
+
__defNormalProp$K(a, prop, b[prop]);
|
|
16655
16685
|
}
|
|
16656
16686
|
return a;
|
|
16657
16687
|
};
|
|
@@ -16673,7 +16703,7 @@ class RatesAPI {
|
|
|
16673
16703
|
* method.
|
|
16674
16704
|
*/
|
|
16675
16705
|
this.estimate = (params) => {
|
|
16676
|
-
return this.client.post("/v1/rates/estimate", __spreadValues$
|
|
16706
|
+
return this.client.post("/v1/rates/estimate", __spreadValues$K({}, params));
|
|
16677
16707
|
};
|
|
16678
16708
|
this.client = client;
|
|
16679
16709
|
}
|
|
@@ -16857,19 +16887,19 @@ class SellersAPI {
|
|
|
16857
16887
|
}
|
|
16858
16888
|
}
|
|
16859
16889
|
|
|
16860
|
-
var __defProp$
|
|
16861
|
-
var __getOwnPropSymbols$
|
|
16862
|
-
var __hasOwnProp$
|
|
16863
|
-
var __propIsEnum$
|
|
16864
|
-
var __defNormalProp$
|
|
16865
|
-
var __spreadValues$
|
|
16890
|
+
var __defProp$J = Object.defineProperty;
|
|
16891
|
+
var __getOwnPropSymbols$S = Object.getOwnPropertySymbols;
|
|
16892
|
+
var __hasOwnProp$S = Object.prototype.hasOwnProperty;
|
|
16893
|
+
var __propIsEnum$S = Object.prototype.propertyIsEnumerable;
|
|
16894
|
+
var __defNormalProp$J = (obj, key, value) => key in obj ? __defProp$J(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
16895
|
+
var __spreadValues$J = (a, b) => {
|
|
16866
16896
|
for (var prop in b || (b = {}))
|
|
16867
|
-
if (__hasOwnProp$
|
|
16868
|
-
__defNormalProp$
|
|
16869
|
-
if (__getOwnPropSymbols$
|
|
16870
|
-
for (var prop of __getOwnPropSymbols$
|
|
16871
|
-
if (__propIsEnum$
|
|
16872
|
-
__defNormalProp$
|
|
16897
|
+
if (__hasOwnProp$S.call(b, prop))
|
|
16898
|
+
__defNormalProp$J(a, prop, b[prop]);
|
|
16899
|
+
if (__getOwnPropSymbols$S)
|
|
16900
|
+
for (var prop of __getOwnPropSymbols$S(b)) {
|
|
16901
|
+
if (__propIsEnum$S.call(b, prop))
|
|
16902
|
+
__defNormalProp$J(a, prop, b[prop]);
|
|
16873
16903
|
}
|
|
16874
16904
|
return a;
|
|
16875
16905
|
};
|
|
@@ -16881,7 +16911,7 @@ class ServicePointsAPI {
|
|
|
16881
16911
|
* Either an address, coordinates, or an address query
|
|
16882
16912
|
*/
|
|
16883
16913
|
this.list = (options) => {
|
|
16884
|
-
return this.client.post("/v1/service_points/list", __spreadValues$
|
|
16914
|
+
return this.client.post("/v1/service_points/list", __spreadValues$J({}, options));
|
|
16885
16915
|
};
|
|
16886
16916
|
/**
|
|
16887
16917
|
* Get a specific service point by its carrier code, country code, and id
|
|
@@ -34365,33 +34395,33 @@ class WebhooksAPI {
|
|
|
34365
34395
|
}
|
|
34366
34396
|
}
|
|
34367
34397
|
|
|
34368
|
-
var __defProp$
|
|
34369
|
-
var __defProps$
|
|
34370
|
-
var __getOwnPropDescs$
|
|
34371
|
-
var __getOwnPropSymbols$
|
|
34372
|
-
var __hasOwnProp$
|
|
34373
|
-
var __propIsEnum$
|
|
34374
|
-
var __defNormalProp$
|
|
34375
|
-
var __spreadValues$
|
|
34398
|
+
var __defProp$I = Object.defineProperty;
|
|
34399
|
+
var __defProps$F = Object.defineProperties;
|
|
34400
|
+
var __getOwnPropDescs$F = Object.getOwnPropertyDescriptors;
|
|
34401
|
+
var __getOwnPropSymbols$R = Object.getOwnPropertySymbols;
|
|
34402
|
+
var __hasOwnProp$R = Object.prototype.hasOwnProperty;
|
|
34403
|
+
var __propIsEnum$R = Object.prototype.propertyIsEnumerable;
|
|
34404
|
+
var __defNormalProp$I = (obj, key, value) => key in obj ? __defProp$I(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
34405
|
+
var __spreadValues$I = (a, b) => {
|
|
34376
34406
|
for (var prop in b || (b = {}))
|
|
34377
|
-
if (__hasOwnProp$
|
|
34378
|
-
__defNormalProp$
|
|
34379
|
-
if (__getOwnPropSymbols$
|
|
34380
|
-
for (var prop of __getOwnPropSymbols$
|
|
34381
|
-
if (__propIsEnum$
|
|
34382
|
-
__defNormalProp$
|
|
34407
|
+
if (__hasOwnProp$R.call(b, prop))
|
|
34408
|
+
__defNormalProp$I(a, prop, b[prop]);
|
|
34409
|
+
if (__getOwnPropSymbols$R)
|
|
34410
|
+
for (var prop of __getOwnPropSymbols$R(b)) {
|
|
34411
|
+
if (__propIsEnum$R.call(b, prop))
|
|
34412
|
+
__defNormalProp$I(a, prop, b[prop]);
|
|
34383
34413
|
}
|
|
34384
34414
|
return a;
|
|
34385
34415
|
};
|
|
34386
|
-
var __spreadProps$
|
|
34416
|
+
var __spreadProps$F = (a, b) => __defProps$F(a, __getOwnPropDescs$F(b));
|
|
34387
34417
|
var __objRest$s = (source, exclude) => {
|
|
34388
34418
|
var target = {};
|
|
34389
34419
|
for (var prop in source)
|
|
34390
|
-
if (__hasOwnProp$
|
|
34420
|
+
if (__hasOwnProp$R.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
34391
34421
|
target[prop] = source[prop];
|
|
34392
|
-
if (source != null && __getOwnPropSymbols$
|
|
34393
|
-
for (var prop of __getOwnPropSymbols$
|
|
34394
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
34422
|
+
if (source != null && __getOwnPropSymbols$R)
|
|
34423
|
+
for (var prop of __getOwnPropSymbols$R(source)) {
|
|
34424
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$R.call(source, prop))
|
|
34395
34425
|
target[prop] = source[prop];
|
|
34396
34426
|
}
|
|
34397
34427
|
return target;
|
|
@@ -34419,7 +34449,7 @@ var __async$Z = (__this, __arguments, generator) => {
|
|
|
34419
34449
|
const logger$1 = E({
|
|
34420
34450
|
level: process.env.NODE_ENV === "production" ? "fatal" : "info",
|
|
34421
34451
|
name: "shipengine-api",
|
|
34422
|
-
serializers: __spreadProps$
|
|
34452
|
+
serializers: __spreadProps$F(__spreadValues$I({}, k), {
|
|
34423
34453
|
req: (req) => ({
|
|
34424
34454
|
headers: req.headers,
|
|
34425
34455
|
method: req.method,
|
|
@@ -34444,7 +34474,7 @@ class ShipEngineAPI {
|
|
|
34444
34474
|
this.getSandboxToken = getSandboxToken;
|
|
34445
34475
|
const client = axios.create({
|
|
34446
34476
|
baseURL,
|
|
34447
|
-
headers: __spreadProps$
|
|
34477
|
+
headers: __spreadProps$F(__spreadValues$I({}, headers), {
|
|
34448
34478
|
"Content-Type": "application/json"
|
|
34449
34479
|
}),
|
|
34450
34480
|
paramsSerializer: (params) => lib.stringify(decamelizeKeys(params), { arrayFormat: "brackets" }),
|
|
@@ -34595,6 +34625,13 @@ class ShipEngineAPI {
|
|
|
34595
34625
|
get accountBillingPlan() {
|
|
34596
34626
|
return new AccountBillingPlanAPI(this.client);
|
|
34597
34627
|
}
|
|
34628
|
+
/**
|
|
34629
|
+
* The `accountAddons` method provides access to the Account Addons endpoints
|
|
34630
|
+
* in ShipEngine API.
|
|
34631
|
+
*/
|
|
34632
|
+
get accountAddons() {
|
|
34633
|
+
return new AccountAddonsAPI(this.client);
|
|
34634
|
+
}
|
|
34598
34635
|
/**
|
|
34599
34636
|
* The `accountBilling` method provides access to the Account Billing (Recurly) endpoints
|
|
34600
34637
|
* in ShipEngine API.
|
|
@@ -34861,25 +34898,25 @@ const delay = (ms) => new Promise((resolve) => {
|
|
|
34861
34898
|
|
|
34862
34899
|
const onError = (_errors) => _default();
|
|
34863
34900
|
|
|
34864
|
-
var __defProp$
|
|
34865
|
-
var __defProps$
|
|
34866
|
-
var __getOwnPropDescs$
|
|
34867
|
-
var __getOwnPropSymbols$
|
|
34868
|
-
var __hasOwnProp$
|
|
34869
|
-
var __propIsEnum$
|
|
34870
|
-
var __defNormalProp$
|
|
34871
|
-
var __spreadValues$
|
|
34901
|
+
var __defProp$H = Object.defineProperty;
|
|
34902
|
+
var __defProps$E = Object.defineProperties;
|
|
34903
|
+
var __getOwnPropDescs$E = Object.getOwnPropertyDescriptors;
|
|
34904
|
+
var __getOwnPropSymbols$Q = Object.getOwnPropertySymbols;
|
|
34905
|
+
var __hasOwnProp$Q = Object.prototype.hasOwnProperty;
|
|
34906
|
+
var __propIsEnum$Q = Object.prototype.propertyIsEnumerable;
|
|
34907
|
+
var __defNormalProp$H = (obj, key, value) => key in obj ? __defProp$H(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
34908
|
+
var __spreadValues$H = (a, b) => {
|
|
34872
34909
|
for (var prop in b || (b = {}))
|
|
34873
|
-
if (__hasOwnProp$
|
|
34874
|
-
__defNormalProp$
|
|
34875
|
-
if (__getOwnPropSymbols$
|
|
34876
|
-
for (var prop of __getOwnPropSymbols$
|
|
34877
|
-
if (__propIsEnum$
|
|
34878
|
-
__defNormalProp$
|
|
34910
|
+
if (__hasOwnProp$Q.call(b, prop))
|
|
34911
|
+
__defNormalProp$H(a, prop, b[prop]);
|
|
34912
|
+
if (__getOwnPropSymbols$Q)
|
|
34913
|
+
for (var prop of __getOwnPropSymbols$Q(b)) {
|
|
34914
|
+
if (__propIsEnum$Q.call(b, prop))
|
|
34915
|
+
__defNormalProp$H(a, prop, b[prop]);
|
|
34879
34916
|
}
|
|
34880
34917
|
return a;
|
|
34881
34918
|
};
|
|
34882
|
-
var __spreadProps$
|
|
34919
|
+
var __spreadProps$E = (a, b) => __defProps$E(a, __getOwnPropDescs$E(b));
|
|
34883
34920
|
const streams = [];
|
|
34884
34921
|
if (process.env.NODE_ENV === "production") {
|
|
34885
34922
|
streams.push({
|
|
@@ -34888,7 +34925,7 @@ if (process.env.NODE_ENV === "production") {
|
|
|
34888
34925
|
}
|
|
34889
34926
|
const logger = E({
|
|
34890
34927
|
name: "shipengine",
|
|
34891
|
-
serializers: __spreadProps$
|
|
34928
|
+
serializers: __spreadProps$E(__spreadValues$H({}, k), {
|
|
34892
34929
|
req: (req) => ({
|
|
34893
34930
|
headers: req.headers,
|
|
34894
34931
|
method: req.method,
|
|
@@ -35061,6 +35098,35 @@ const useUpdateAccountSettings = () => {
|
|
|
35061
35098
|
});
|
|
35062
35099
|
};
|
|
35063
35100
|
|
|
35101
|
+
var __defProp$G = Object.defineProperty;
|
|
35102
|
+
var __defProps$D = Object.defineProperties;
|
|
35103
|
+
var __getOwnPropDescs$D = Object.getOwnPropertyDescriptors;
|
|
35104
|
+
var __getOwnPropSymbols$P = Object.getOwnPropertySymbols;
|
|
35105
|
+
var __hasOwnProp$P = Object.prototype.hasOwnProperty;
|
|
35106
|
+
var __propIsEnum$P = Object.prototype.propertyIsEnumerable;
|
|
35107
|
+
var __defNormalProp$G = (obj, key, value) => key in obj ? __defProp$G(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
35108
|
+
var __spreadValues$G = (a, b) => {
|
|
35109
|
+
for (var prop in b || (b = {}))
|
|
35110
|
+
if (__hasOwnProp$P.call(b, prop))
|
|
35111
|
+
__defNormalProp$G(a, prop, b[prop]);
|
|
35112
|
+
if (__getOwnPropSymbols$P)
|
|
35113
|
+
for (var prop of __getOwnPropSymbols$P(b)) {
|
|
35114
|
+
if (__propIsEnum$P.call(b, prop))
|
|
35115
|
+
__defNormalProp$G(a, prop, b[prop]);
|
|
35116
|
+
}
|
|
35117
|
+
return a;
|
|
35118
|
+
};
|
|
35119
|
+
var __spreadProps$D = (a, b) => __defProps$D(a, __getOwnPropDescs$D(b));
|
|
35120
|
+
const useListAccountAddons = (params) => {
|
|
35121
|
+
const { client } = useShipEngine();
|
|
35122
|
+
return useQuery(__spreadProps$D(__spreadValues$G({}, params), {
|
|
35123
|
+
onError,
|
|
35124
|
+
queryFn: () => client.accountAddons.list(),
|
|
35125
|
+
queryKey: ["useListAccountAddons"],
|
|
35126
|
+
select: (result) => result.data
|
|
35127
|
+
}));
|
|
35128
|
+
};
|
|
35129
|
+
|
|
35064
35130
|
var __async$U = (__this, __arguments, generator) => {
|
|
35065
35131
|
return new Promise((resolve, reject) => {
|
|
35066
35132
|
var fulfilled = (value) => {
|
|
@@ -39908,4 +39974,4 @@ const alchemy = {
|
|
|
39908
39974
|
createElement
|
|
39909
39975
|
};
|
|
39910
39976
|
|
|
39911
|
-
export { AccountBillingAPI, AccountBillingPlanAPI, AccountBillingPlanChangeType, AccountSettingsAPI, AddressesAPI, AlchemyContext, AlchemyProvider, AlchemyTestProvider, AuctanePayAPI, CarriersAPI, CodedError, ConfirmationType, ConnectionsAPI, CreditCardVendor, Currency, CustomPackagesAPI, CustomsContentsType, CustomsNonDeliveryType, Element, ErrorBoundary, FundingSourcesAPI, InsuranceAPI, InsuranceProviderType, InvoiceAddressAPI, LabelsAPI, MetadataCapability, MetadataRequirement, MetadataSatisfyingFormTypes, MovementIndicator, OrderSourcesAPI, RateCardStatus, RateCardsAPI, RatesAPI, types as SE, SalesOrderShipmentsAPI, SalesOrdersAPI, SellersAPI, ServicePointsAPI, ShipEngine, ShipEngineAPI, ShipEngineContext, ShipmentsAPI, ShippingRulesAPI, ThemesAPI, UsersApi, WarehousesAPI, WebhooksAPI, alchemy, camelizeKeys, decamelizeKeys, alchemy as default, delay, getEmotionCache, getEndUserIpAddress, isCodedError, isCodedErrors, isDataCodedErrors, isInvalidTokenError, logger, onError, parseError, retryUntil, useAddFunds, useAddInsuranceFunds, useAddSandboxCarriers, useAlchemy, useCalculateRates, useCancelShipment, useCarrierConnectionsServicesList, useConnectCarrier, useConnectCarrierAccount, useCreateAccountImage, useCreateAuctanePaySession, useCreateFundingSource, useCreateInvoiceAddress, useCreateLabel, useCreateLabelByRateId, useCreateLabelByShipmentId, useCreateRateCard, useCreateSalesOrderShipment, useCreateSandboxSeller, useCreateSellerApiKey, useCreateShipment, useCreateShippingRule, useCreateWarehouse, useCreateWebhook, useDeactivateOrderSource, useDeleteAccountImage, useDeleteCarrier, useDeletePaymentMethod, useDeleteRateCard, useDeleteSellerApiKey, useDeleteShippingRule, useDeleteWarehouse, useDeleteWebhook, useDownloadRateCard, useEditShippingRule, useExportLabels, useExportShipments, useFundingSourcesAddFunds, useGetAccountBilling, useGetAccountBillingPlan, useGetAccountImages, useGetAccountSettings, useGetAuctanePayConfig, useGetAutoFundingConfiguration, useGetCarrierById, useGetCarrierConnectionForm, useGetConnectionsCarrierSettings, useGetCountriesByCarrier, useGetCurrenciesByCarrier, useGetFundingSourceById, useGetFundingSourceMetadata, useGetFundingSourceTransactions, useGetHereToken, useGetInsuranceAccount, useGetInsuranceFundingSourceAcceptedTerms, useGetInvoiceAddress, useGetLabel, useGetPackageRatingGroupByCarrier, useGetPaymentMethods, useGetRateCardById, useGetSalesOrder, useGetSalesOrderByExternalOrderId, useGetSalesOrderShipment, useGetServicePoint, useGetServicesByCarrier, useGetShipment, useGetShipmentByExternalId, useGetShipmentRates, useGetShippingRuleById, useGetShippingRuleConditionsOptions, useGetThemeById, useGetZonesByCarrier, useI18n, useListCarrierConnections, useListCarriers, useListCustomPackageTypes, useListFundingSources, useListLabels, useListLabelsInfinite, useListOrderSources, useListOrderSourcesConnections, useListRateCards, useListSalesOrderShipments, useListSalesOrderShipmentsByExternalOrderId, useListSalesOrders, useListSandboxSellerIds, useListSellerApiKeys, useListServicePoints, useListShipments, useListShippingRules, useListUsers, useListWarehouses, useListWebhooks, useLoadIcons, useNotifySalesOrderShipped, useParseAddress, usePreviewTransaction, usePublishRateCard, useRatesEstimate, useRefreshOrderSource, useRefreshOrderSourceAsync, useRegisterCarrier, useRequestStampsAccountUrls, useShipEngine, useUpdateAccountBillingPlan, useUpdateAccountImage, useUpdateAccountSettings, useUpdateAutoFunding, useUpdateConnectionsCarrierSettings, useUpdateFundingSource, useUpdateInvoiceAddress, useUpdateOrderSource, useUpdatePaymentMethod, useUpdateRateCard, useUpdateSalesOrderShipment, useUpdateWarehouse, useUpdateWebhook, useUploadRateCard, useUpsertAccountBilling, useValidateAddresses, useVoidLabel };
|
|
39977
|
+
export { AccountAddonsAPI, AccountBillingAPI, AccountBillingPlanAPI, AccountBillingPlanChangeType, AccountSettingsAPI, AddressesAPI, AlchemyContext, AlchemyProvider, AlchemyTestProvider, AuctanePayAPI, CarriersAPI, CodedError, ConfirmationType, ConnectionsAPI, CreditCardVendor, Currency, CustomPackagesAPI, CustomsContentsType, CustomsNonDeliveryType, Element, ErrorBoundary, FundingSourcesAPI, InsuranceAPI, InsuranceProviderType, InvoiceAddressAPI, LabelsAPI, MetadataCapability, MetadataRequirement, MetadataSatisfyingFormTypes, MovementIndicator, OrderSourcesAPI, RateCardStatus, RateCardsAPI, RatesAPI, types as SE, SalesOrderShipmentsAPI, SalesOrdersAPI, SellersAPI, ServicePointsAPI, ShipEngine, ShipEngineAPI, ShipEngineContext, ShipmentsAPI, ShippingRulesAPI, ThemesAPI, UsersApi, WarehousesAPI, WebhooksAPI, alchemy, camelizeKeys, decamelizeKeys, alchemy as default, delay, getEmotionCache, getEndUserIpAddress, isCodedError, isCodedErrors, isDataCodedErrors, isInvalidTokenError, logger, onError, parseError, retryUntil, useAddFunds, useAddInsuranceFunds, useAddSandboxCarriers, useAlchemy, useCalculateRates, useCancelShipment, useCarrierConnectionsServicesList, useConnectCarrier, useConnectCarrierAccount, useCreateAccountImage, useCreateAuctanePaySession, useCreateFundingSource, useCreateInvoiceAddress, useCreateLabel, useCreateLabelByRateId, useCreateLabelByShipmentId, useCreateRateCard, useCreateSalesOrderShipment, useCreateSandboxSeller, useCreateSellerApiKey, useCreateShipment, useCreateShippingRule, useCreateWarehouse, useCreateWebhook, useDeactivateOrderSource, useDeleteAccountImage, useDeleteCarrier, useDeletePaymentMethod, useDeleteRateCard, useDeleteSellerApiKey, useDeleteShippingRule, useDeleteWarehouse, useDeleteWebhook, useDownloadRateCard, useEditShippingRule, useExportLabels, useExportShipments, useFundingSourcesAddFunds, useGetAccountBilling, useGetAccountBillingPlan, useGetAccountImages, useGetAccountSettings, useGetAuctanePayConfig, useGetAutoFundingConfiguration, useGetCarrierById, useGetCarrierConnectionForm, useGetConnectionsCarrierSettings, useGetCountriesByCarrier, useGetCurrenciesByCarrier, useGetFundingSourceById, useGetFundingSourceMetadata, useGetFundingSourceTransactions, useGetHereToken, useGetInsuranceAccount, useGetInsuranceFundingSourceAcceptedTerms, useGetInvoiceAddress, useGetLabel, useGetPackageRatingGroupByCarrier, useGetPaymentMethods, useGetRateCardById, useGetSalesOrder, useGetSalesOrderByExternalOrderId, useGetSalesOrderShipment, useGetServicePoint, useGetServicesByCarrier, useGetShipment, useGetShipmentByExternalId, useGetShipmentRates, useGetShippingRuleById, useGetShippingRuleConditionsOptions, useGetThemeById, useGetZonesByCarrier, useI18n, useListAccountAddons, useListCarrierConnections, useListCarriers, useListCustomPackageTypes, useListFundingSources, useListLabels, useListLabelsInfinite, useListOrderSources, useListOrderSourcesConnections, useListRateCards, useListSalesOrderShipments, useListSalesOrderShipmentsByExternalOrderId, useListSalesOrders, useListSandboxSellerIds, useListSellerApiKeys, useListServicePoints, useListShipments, useListShippingRules, useListUsers, useListWarehouses, useListWebhooks, useLoadIcons, useNotifySalesOrderShipped, useParseAddress, usePreviewTransaction, usePublishRateCard, useRatesEstimate, useRefreshOrderSource, useRefreshOrderSourceAsync, useRegisterCarrier, useRequestStampsAccountUrls, useShipEngine, useUpdateAccountBillingPlan, useUpdateAccountImage, useUpdateAccountSettings, useUpdateAutoFunding, useUpdateConnectionsCarrierSettings, useUpdateFundingSource, useUpdateInvoiceAddress, useUpdateOrderSource, useUpdatePaymentMethod, useUpdateRateCard, useUpdateSalesOrderShipment, useUpdateWarehouse, useUpdateWebhook, useUploadRateCard, useUpsertAccountBilling, useValidateAddresses, useVoidLabel };
|