@dereekb/util 13.2.2 → 13.3.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/fetch/index.cjs.js +17 -0
- package/fetch/index.esm.js +17 -1
- package/fetch/package.json +2 -2
- package/fetch/src/lib/fetch.url.d.ts +30 -0
- package/index.cjs.js +329 -50
- package/index.esm.js +318 -51
- package/package.json +1 -1
- package/src/lib/date/date.d.ts +4 -0
- package/src/lib/encryption/encryption.object.d.ts +111 -0
- package/src/lib/encryption/index.d.ts +1 -0
- package/src/lib/file/index.d.ts +1 -0
- package/src/lib/index.d.ts +1 -0
- package/src/lib/number/encoded.d.ts +70 -0
- package/src/lib/number/index.d.ts +1 -0
- package/src/lib/object/object.d.ts +4 -0
- package/src/lib/string/string.d.ts +182 -47
- package/src/lib/string/url.d.ts +5 -1
- package/src/lib/value/label.d.ts +6 -0
- package/test/index.cjs.js +2 -2
- package/test/index.esm.js +2 -2
- package/test/package.json +2 -2
package/index.esm.js
CHANGED
|
@@ -4022,6 +4022,62 @@ var DOLLAR_AMOUNT_STRING_REGEX = /^\$?([0-9]+)\.?([0-9][0-9])$/;
|
|
|
4022
4022
|
return chainMapSameFunctions(transformFunctions);
|
|
4023
4023
|
}
|
|
4024
4024
|
|
|
4025
|
+
/**
|
|
4026
|
+
* Encodes a number as a radix-36 string.
|
|
4027
|
+
*
|
|
4028
|
+
* Uses digits 0-9 and lowercase letters a-z, producing compact representations
|
|
4029
|
+
* that are useful for URL-safe identifiers and short codes.
|
|
4030
|
+
*
|
|
4031
|
+
* @param number - The number to encode. Should be a non-negative integer for consistent results.
|
|
4032
|
+
* @returns The radix-36 encoded string representation.
|
|
4033
|
+
*
|
|
4034
|
+
* @example
|
|
4035
|
+
* ```ts
|
|
4036
|
+
* encodeRadix36Number(0); // '0'
|
|
4037
|
+
* encodeRadix36Number(35); // 'z'
|
|
4038
|
+
* encodeRadix36Number(100); // '2s'
|
|
4039
|
+
* ```
|
|
4040
|
+
*/ function encodeRadix36Number(number) {
|
|
4041
|
+
return number.toString(36);
|
|
4042
|
+
}
|
|
4043
|
+
/**
|
|
4044
|
+
* Decodes a radix-36 encoded string back to a number.
|
|
4045
|
+
*
|
|
4046
|
+
* Parses a string containing digits 0-9 and letters a-z (case-insensitive)
|
|
4047
|
+
* as a base-36 number.
|
|
4048
|
+
*
|
|
4049
|
+
* @param encoded - The radix-36 encoded string to decode.
|
|
4050
|
+
* @returns The decoded numeric value. Returns `NaN` if the input is not a valid radix-36 string.
|
|
4051
|
+
*
|
|
4052
|
+
* @example
|
|
4053
|
+
* ```ts
|
|
4054
|
+
* decodeRadix36Number('0'); // 0
|
|
4055
|
+
* decodeRadix36Number('z'); // 35
|
|
4056
|
+
* decodeRadix36Number('2s'); // 100
|
|
4057
|
+
* ```
|
|
4058
|
+
*/ function decodeRadix36Number(encoded) {
|
|
4059
|
+
return parseInt(encoded, 36);
|
|
4060
|
+
}
|
|
4061
|
+
/**
|
|
4062
|
+
* Pattern that matches strings containing only hexadecimal characters (0-9, a-f, A-F).
|
|
4063
|
+
*/ var HEX_PATTERN = /^[0-9a-fA-F]+$/;
|
|
4064
|
+
/**
|
|
4065
|
+
* Checks whether the input string contains only valid hexadecimal characters.
|
|
4066
|
+
*
|
|
4067
|
+
* @example
|
|
4068
|
+
* ```ts
|
|
4069
|
+
* isHex('a1b2c3'); // true
|
|
4070
|
+
* isHex('FF00AA'); // true
|
|
4071
|
+
* isHex('hello'); // false
|
|
4072
|
+
* isHex(''); // false
|
|
4073
|
+
* ```
|
|
4074
|
+
*
|
|
4075
|
+
* @param value - The string to check.
|
|
4076
|
+
* @returns True if the string is non-empty and contains only hex characters.
|
|
4077
|
+
*/ function isHex(value) {
|
|
4078
|
+
return HEX_PATTERN.test(value);
|
|
4079
|
+
}
|
|
4080
|
+
|
|
4025
4081
|
/**
|
|
4026
4082
|
* Reduces an array of numbers to its maximum value.
|
|
4027
4083
|
*
|
|
@@ -5275,9 +5331,9 @@ function arrayToObject(values, keyFn) {
|
|
|
5275
5331
|
/**
|
|
5276
5332
|
* Default comma joiner character used by comma-related string functions.
|
|
5277
5333
|
*/ var COMMA_JOINER = ',';
|
|
5278
|
-
|
|
5279
|
-
|
|
5280
|
-
|
|
5334
|
+
/**
|
|
5335
|
+
* Default space joiner character used by space-related string functions.
|
|
5336
|
+
*/ var SPACE_JOINER = ' ';
|
|
5281
5337
|
function joinStrings(input) {
|
|
5282
5338
|
var joiner = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : COMMA_JOINER, trim = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : false;
|
|
5283
5339
|
if (input == null) {
|
|
@@ -5291,26 +5347,103 @@ function joinStrings(input) {
|
|
|
5291
5347
|
}
|
|
5292
5348
|
return array.filter(Boolean).join(joiner);
|
|
5293
5349
|
}
|
|
5294
|
-
|
|
5295
|
-
|
|
5296
|
-
|
|
5350
|
+
/**
|
|
5351
|
+
* Splits a string like {@link String.prototype.split}, but joins overflow segments back together
|
|
5352
|
+
* instead of discarding them. Useful when you only want to split on the first N-1 occurrences.
|
|
5353
|
+
*
|
|
5354
|
+
* @param input - string to split
|
|
5355
|
+
* @param separator - delimiter to split on
|
|
5356
|
+
* @param limit - maximum number of resulting segments; overflow segments are rejoined with the separator
|
|
5357
|
+
* @returns array of string segments, with length at most equal to limit
|
|
5358
|
+
*/ function splitJoinRemainder(input, separator, limit) {
|
|
5359
|
+
var split = input.split(separator);
|
|
5360
|
+
var components = [];
|
|
5361
|
+
if (split.length > 1) {
|
|
5362
|
+
var hasItemsToMerge = split.length > limit;
|
|
5363
|
+
var stopIndex = hasItemsToMerge ? limit - 1 : split.length;
|
|
5364
|
+
for(var i = 0; i < stopIndex; i += 1){
|
|
5365
|
+
components.push(split[i]);
|
|
5366
|
+
}
|
|
5367
|
+
if (hasItemsToMerge) {
|
|
5368
|
+
components.push(split.slice(stopIndex).join(separator));
|
|
5369
|
+
}
|
|
5370
|
+
} else {
|
|
5371
|
+
components.push(split[0]);
|
|
5372
|
+
}
|
|
5373
|
+
return components;
|
|
5297
5374
|
}
|
|
5298
|
-
|
|
5299
|
-
|
|
5300
|
-
|
|
5375
|
+
/**
|
|
5376
|
+
* Creates a {@link JoinStringsInstance} that joins arrays of strings using the configured delimiter.
|
|
5377
|
+
*
|
|
5378
|
+
* @example
|
|
5379
|
+
* ```ts
|
|
5380
|
+
* const joinWithPipe = joinStringsInstance({ joiner: '|' });
|
|
5381
|
+
* joinWithPipe(['a', 'b']); // 'a|b'
|
|
5382
|
+
* joinWithPipe(null); // null
|
|
5383
|
+
* ```
|
|
5384
|
+
*
|
|
5385
|
+
* @param config - configuration for the delimiter and default trim behavior
|
|
5386
|
+
* @returns a new callable {@link JoinStringsInstance}
|
|
5387
|
+
*/ function joinStringsInstance(config) {
|
|
5388
|
+
var joiner = config.joiner, _config_trimByDefault = config.trimByDefault, trimByDefault = _config_trimByDefault === void 0 ? false : _config_trimByDefault;
|
|
5389
|
+
var fn = function fn(input) {
|
|
5390
|
+
var trim = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : trimByDefault;
|
|
5391
|
+
return joinStrings(input, joiner, trim);
|
|
5301
5392
|
};
|
|
5302
|
-
|
|
5303
|
-
|
|
5304
|
-
|
|
5305
|
-
});
|
|
5393
|
+
fn.joiner = joiner;
|
|
5394
|
+
fn.trimByDefault = trimByDefault;
|
|
5395
|
+
return fn;
|
|
5306
5396
|
}
|
|
5307
5397
|
/**
|
|
5308
|
-
*
|
|
5398
|
+
* Creates a {@link StringSplitJoinInstance} that splits and joins strings using the configured delimiter.
|
|
5309
5399
|
*
|
|
5310
|
-
* @
|
|
5311
|
-
*
|
|
5312
|
-
|
|
5313
|
-
|
|
5400
|
+
* @example
|
|
5401
|
+
* ```ts
|
|
5402
|
+
* const pipeSplitJoin = stringSplitJoinInstance({ joiner: '|' });
|
|
5403
|
+
* pipeSplitJoin.joinStrings(['a', 'b']); // 'a|b'
|
|
5404
|
+
* pipeSplitJoin.splitStrings('a|b'); // ['a', 'b']
|
|
5405
|
+
* ```
|
|
5406
|
+
*
|
|
5407
|
+
* @param config - configuration for the delimiter and default trim behavior
|
|
5408
|
+
* @returns a new {@link StringSplitJoinInstance}
|
|
5409
|
+
*/ function stringSplitJoinInstance(config) {
|
|
5410
|
+
var joiner = config.joiner;
|
|
5411
|
+
var joinStrings = joinStringsInstance(config);
|
|
5412
|
+
var splitStrings = function splitStrings(input) {
|
|
5413
|
+
var mapFn = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : function(x) {
|
|
5414
|
+
return x;
|
|
5415
|
+
};
|
|
5416
|
+
var splits = input.split(joiner);
|
|
5417
|
+
return splits.map(function(x) {
|
|
5418
|
+
return mapFn(x.trim());
|
|
5419
|
+
});
|
|
5420
|
+
};
|
|
5421
|
+
return {
|
|
5422
|
+
joiner: joiner,
|
|
5423
|
+
trimByDefault: joinStrings.trimByDefault,
|
|
5424
|
+
joinStrings: joinStrings,
|
|
5425
|
+
splitStrings: splitStrings,
|
|
5426
|
+
splitStringsToSet: function splitStringsToSet(input) {
|
|
5427
|
+
return new Set(input != null ? splitStrings(input) : []);
|
|
5428
|
+
},
|
|
5429
|
+
splitJoinRemainder: function splitJoinRemainder1(input, limit) {
|
|
5430
|
+
return splitJoinRemainder(input, joiner, limit);
|
|
5431
|
+
}
|
|
5432
|
+
};
|
|
5433
|
+
}
|
|
5434
|
+
/**
|
|
5435
|
+
* Global {@link StringSplitJoinInstance} that uses commas as the delimiter.
|
|
5436
|
+
*/ var COMMA_STRING_SPLIT_JOIN = stringSplitJoinInstance({
|
|
5437
|
+
joiner: COMMA_JOINER
|
|
5438
|
+
});
|
|
5439
|
+
/**
|
|
5440
|
+
* Global {@link StringSplitJoinInstance} that uses spaces as the delimiter, with trimming enabled by default.
|
|
5441
|
+
*/ var SPACE_STRING_SPLIT_JOIN = stringSplitJoinInstance({
|
|
5442
|
+
joiner: SPACE_JOINER,
|
|
5443
|
+
trimByDefault: true
|
|
5444
|
+
});
|
|
5445
|
+
function caseInsensitiveString(input) {
|
|
5446
|
+
return input === null || input === void 0 ? void 0 : input.toLocaleLowerCase();
|
|
5314
5447
|
}
|
|
5315
5448
|
/**
|
|
5316
5449
|
* Adds a plus prefix to the input value and converts it to a string. If the value is negative or 0, no prefix is added.
|
|
@@ -5344,34 +5477,6 @@ function splitCommaSeparatedString(input) {
|
|
|
5344
5477
|
*/ function lowercaseFirstLetter(value) {
|
|
5345
5478
|
return value.charAt(0).toLowerCase() + value.slice(1);
|
|
5346
5479
|
}
|
|
5347
|
-
/**
|
|
5348
|
-
* Splits a string like {@link String.prototype.split}, but joins overflow segments back together
|
|
5349
|
-
* instead of discarding them. Useful when you only want to split on the first N-1 occurrences.
|
|
5350
|
-
*
|
|
5351
|
-
* @param input - string to split
|
|
5352
|
-
* @param separator - delimiter to split on
|
|
5353
|
-
* @param limit - maximum number of resulting segments; overflow segments are rejoined with the separator
|
|
5354
|
-
* @returns array of string segments, with length at most equal to limit
|
|
5355
|
-
*/ function splitJoinRemainder(input, separator, limit) {
|
|
5356
|
-
var split = input.split(separator);
|
|
5357
|
-
var components = [];
|
|
5358
|
-
if (split.length > 1) {
|
|
5359
|
-
var hasItemsToMerge = split.length > limit;
|
|
5360
|
-
var stopIndex = hasItemsToMerge ? limit - 1 : split.length;
|
|
5361
|
-
for(var i = 0; i < stopIndex; i += 1){
|
|
5362
|
-
components.push(split[i]);
|
|
5363
|
-
}
|
|
5364
|
-
if (hasItemsToMerge) {
|
|
5365
|
-
components.push(split.slice(stopIndex).join(separator));
|
|
5366
|
-
}
|
|
5367
|
-
} else {
|
|
5368
|
-
components.push(split[0]);
|
|
5369
|
-
}
|
|
5370
|
-
return components;
|
|
5371
|
-
}
|
|
5372
|
-
/**
|
|
5373
|
-
* Default space joiner character used by space-related string functions.
|
|
5374
|
-
*/ var SPACE_JOINER = ' ';
|
|
5375
5480
|
/**
|
|
5376
5481
|
* Splits the input string into a first name and last name tuple using a space as the delimiter.
|
|
5377
5482
|
* If the name contains more than one space, the remainder is treated as the last name.
|
|
@@ -5379,10 +5484,7 @@ function splitCommaSeparatedString(input) {
|
|
|
5379
5484
|
* @param input - full name string to split
|
|
5380
5485
|
* @returns a tuple of [firstName, lastName], where lastName includes all text after the first space
|
|
5381
5486
|
*/ function splitJoinNameString(input) {
|
|
5382
|
-
return splitJoinRemainder(input,
|
|
5383
|
-
}
|
|
5384
|
-
function joinStringsWithSpaces(input) {
|
|
5385
|
-
return joinStrings(input, SPACE_JOINER, true);
|
|
5487
|
+
return SPACE_STRING_SPLIT_JOIN.splitJoinRemainder(input, 2);
|
|
5386
5488
|
}
|
|
5387
5489
|
/**
|
|
5388
5490
|
* Creates a string that repeats the given string a specified number of times.
|
|
@@ -5453,6 +5555,41 @@ function joinStringsWithSpaces(input) {
|
|
|
5453
5555
|
*/ function simplifyWhitespace(input) {
|
|
5454
5556
|
return input.split(/\r?\n/).filter(Boolean).map(flattenWhitespace).join('\n');
|
|
5455
5557
|
}
|
|
5558
|
+
// MARK: Compat
|
|
5559
|
+
/**
|
|
5560
|
+
* Joins an array of strings into a single string using commas. Does not trim empty values by default.
|
|
5561
|
+
*
|
|
5562
|
+
* Delegates to {@link COMMA_STRING_SPLIT_JOIN}.
|
|
5563
|
+
*
|
|
5564
|
+
* @param input string or array of strings
|
|
5565
|
+
* @param trim whether or not to trim the strings before joining. Defaults to false.
|
|
5566
|
+
* @returns joined string, or null/undefined if the input is null/undefined
|
|
5567
|
+
*/ var joinStringsWithCommas = COMMA_STRING_SPLIT_JOIN.joinStrings;
|
|
5568
|
+
/**
|
|
5569
|
+
* Splits a comma-separated string into an array of strings.
|
|
5570
|
+
*
|
|
5571
|
+
* Delegates to {@link COMMA_STRING_SPLIT_JOIN}.
|
|
5572
|
+
*
|
|
5573
|
+
* @param input string to split
|
|
5574
|
+
* @param mapFn function to map each split string to a value
|
|
5575
|
+
* @returns array of strings
|
|
5576
|
+
*/ var splitCommaSeparatedString = COMMA_STRING_SPLIT_JOIN.splitStrings;
|
|
5577
|
+
/**
|
|
5578
|
+
* Splits a comma-separated string into a Set of unique trimmed string values.
|
|
5579
|
+
*
|
|
5580
|
+
* Delegates to {@link COMMA_STRING_SPLIT_JOIN}.
|
|
5581
|
+
*
|
|
5582
|
+
* @param input - comma-separated string to split, or null/undefined
|
|
5583
|
+
* @returns a Set of unique string values; empty Set if input is null/undefined
|
|
5584
|
+
*/ var splitCommaSeparatedStringToSet = COMMA_STRING_SPLIT_JOIN.splitStringsToSet;
|
|
5585
|
+
/**
|
|
5586
|
+
* Joins one or more strings together with spaces. Extra spaces are trimmed from the values.
|
|
5587
|
+
*
|
|
5588
|
+
* Delegates to {@link SPACE_STRING_SPLIT_JOIN}.
|
|
5589
|
+
*
|
|
5590
|
+
* @param input string or array of strings
|
|
5591
|
+
* @returns joined string, or null/undefined if the input is null/undefined
|
|
5592
|
+
*/ var joinStringsWithSpaces = SPACE_STRING_SPLIT_JOIN.joinStrings;
|
|
5456
5593
|
|
|
5457
5594
|
/**
|
|
5458
5595
|
* Maps each value in an iterable through a function and returns the results as an array.
|
|
@@ -8978,10 +9115,13 @@ function _unsupported_iterable_to_array$f(o, minLen) {
|
|
|
8978
9115
|
* @param input - The string to analyze as a URL.
|
|
8979
9116
|
* @returns An object containing parsed URL components and validation flags.
|
|
8980
9117
|
*/ function websiteUrlDetails(input) {
|
|
9118
|
+
var _readPortNumber;
|
|
8981
9119
|
var noHttp = removeHttpFromUrl(input);
|
|
8982
9120
|
var splitPair = websiteDomainAndPathPairFromWebsiteUrl(noHttp);
|
|
8983
9121
|
var domain = splitPair.domain, websitePath = splitPair.path;
|
|
8984
9122
|
var pathHasWebsiteDomain = hasWebsiteDomain(domain);
|
|
9123
|
+
var inputHasPortNumber = hasPortNumber(input);
|
|
9124
|
+
var portNumber = inputHasPortNumber ? (_readPortNumber = readPortNumber(input)) !== null && _readPortNumber !== void 0 ? _readPortNumber : undefined : undefined;
|
|
8985
9125
|
var _splitStringAtFirstCharacterOccurence = _sliced_to_array$c(splitStringAtFirstCharacterOccurence(splitPair.path, '?'), 2), path = _splitStringAtFirstCharacterOccurence[0], query = _splitStringAtFirstCharacterOccurence[1]; // everything after the query is ignored
|
|
8986
9126
|
var isWebsiteUrl = pathHasWebsiteDomain && isSlashPathFolder(path + '/');
|
|
8987
9127
|
var inputHasHttpPrefix = hasHttpPrefix(input);
|
|
@@ -8990,6 +9130,8 @@ function _unsupported_iterable_to_array$f(o, minLen) {
|
|
|
8990
9130
|
isWebsiteUrl: isWebsiteUrl,
|
|
8991
9131
|
hasWebsiteDomain: pathHasWebsiteDomain,
|
|
8992
9132
|
hasHttpPrefix: inputHasHttpPrefix,
|
|
9133
|
+
hasPortNumber: inputHasPortNumber,
|
|
9134
|
+
portNumber: portNumber,
|
|
8993
9135
|
splitPair: splitPair,
|
|
8994
9136
|
domain: domain,
|
|
8995
9137
|
websitePath: websitePath,
|
|
@@ -9026,6 +9168,9 @@ function _unsupported_iterable_to_array$f(o, minLen) {
|
|
|
9026
9168
|
*/ function websiteUrlFromPaths(basePath, paths, defaultProtocol) {
|
|
9027
9169
|
var _readWebsiteProtocol;
|
|
9028
9170
|
var protocol = (_readWebsiteProtocol = readWebsiteProtocol(basePath)) !== null && _readWebsiteProtocol !== void 0 ? _readWebsiteProtocol : defaultProtocol;
|
|
9171
|
+
if (!basePath) {
|
|
9172
|
+
return mergeSlashPaths(asArray(paths));
|
|
9173
|
+
}
|
|
9029
9174
|
var baseWebUrl = removeWebProtocolPrefix(baseWebsiteUrl(basePath)); // remove prefix to prevent issues with slash paths
|
|
9030
9175
|
var webUrl = mergeSlashPaths([
|
|
9031
9176
|
baseWebUrl
|
|
@@ -9704,6 +9849,23 @@ function toReadableError(inputError) {
|
|
|
9704
9849
|
return ((typeof input === "undefined" ? "undefined" : _type_of$9(input)) === 'object' ? input.message : input) || input;
|
|
9705
9850
|
}
|
|
9706
9851
|
|
|
9852
|
+
/**
|
|
9853
|
+
* Returns true if the buffer appears to have the markings of a valid PDF.
|
|
9854
|
+
*
|
|
9855
|
+
* Checks for two structural markers defined by the PDF specification (ISO 32000):
|
|
9856
|
+
* - `%PDF-` header at the start of the buffer, which identifies the file as a PDF document.
|
|
9857
|
+
* - `%%EOF` marker somewhere in the buffer, which signals the end of a PDF file.
|
|
9858
|
+
*
|
|
9859
|
+
* This is a lightweight heuristic check, not a full validation. A buffer that passes
|
|
9860
|
+
* this check is not guaranteed to be a well-formed or uncorrupted PDF — it only confirms
|
|
9861
|
+
* the expected start/end markers are present.
|
|
9862
|
+
*
|
|
9863
|
+
* @param buffer - Buffer-like object to check. Only requires the `lastIndexOf` method.
|
|
9864
|
+
* @returns true if both PDF markers are found in the expected positions.
|
|
9865
|
+
*/ function bufferHasValidPdfMarkings(buffer) {
|
|
9866
|
+
return buffer.lastIndexOf('%PDF-') === 0 && buffer.lastIndexOf('%%EOF') > -1;
|
|
9867
|
+
}
|
|
9868
|
+
|
|
9707
9869
|
function _array_like_to_array$e(arr, len) {
|
|
9708
9870
|
if (len == null || len > arr.length) len = arr.length;
|
|
9709
9871
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
@@ -12216,6 +12378,9 @@ function dateFromDateOrTimeMillisecondsNumber(input) {
|
|
|
12216
12378
|
/**
|
|
12217
12379
|
* Number of minutes in an hour.
|
|
12218
12380
|
*/ var MINUTES_IN_HOUR = 60;
|
|
12381
|
+
/**
|
|
12382
|
+
* Number of seconds in an hour.
|
|
12383
|
+
*/ var SECONDS_IN_HOUR = MINUTES_IN_HOUR * SECONDS_IN_MINUTE;
|
|
12219
12384
|
/**
|
|
12220
12385
|
* Number of milliseconds in a second.
|
|
12221
12386
|
*/ var MS_IN_SECOND = 1000;
|
|
@@ -19642,4 +19807,106 @@ function _ts_generator(thisArg, body) {
|
|
|
19642
19807
|
return root;
|
|
19643
19808
|
}
|
|
19644
19809
|
|
|
19645
|
-
export { ALL_DOUBLE_SLASHES_REGEX, ALL_SLASHES_REGEX, ALL_SLASH_PATH_FILE_TYPE_SEPARATORS_REGEX, APPLICATION_FILE_EXTENSION_TO_MIME_TYPES_RECORD, APPLICATION_MIME_TYPES_TO_FILE_EXTENSIONS_RECORD, ASSERTION_ERROR_CODE, ASSERTION_HANDLER, AUTH_ADMIN_ROLE, AUTH_ONBOARDED_ROLE, AUTH_ROLE_CLAIMS_DEFAULT_CLAIM_VALUE, AUTH_ROLE_CLAIMS_DEFAULT_EMPTY_VALUE, AUTH_TOS_SIGNED_ROLE, AUTH_USER_ROLE, AbstractUniqueModel, Assert, AssertMax, AssertMin, AssertionError, AssertionIssueHandler, BooleanStringKeyArrayUtility, CATCH_ALL_HANDLE_RESULT_KEY, COMMA_JOINER, CSV_MIME_TYPE, CUT_VALUE_TO_ZERO_PRECISION, DASH_CHARACTER_PREFIX_INSTANCE, DATE_NOW_VALUE, DAYS_IN_YEAR, DEFAULT_CUT_STRING_END_TEXT, DEFAULT_LAT_LNG_STRING_VALUE, DEFAULT_RANDOM_EMAIL_FACTORY_CONFIG, DEFAULT_RANDOM_PHONE_NUMBER_FACTORY_CONFIG, DEFAULT_READABLE_ERROR_CODE, DEFAULT_SLASH_PATH_ILLEGAL_CHARACTERS, DEFAULT_SLASH_PATH_ILLEGAL_CHARACTER_REPLACEMENT, DEFAULT_SLASH_PATH_PATH_MATCHER_NON_MATCHING_FILL_VALUE, DEFAULT_UNKNOWN_MODEL_TYPE_STRING, DOCUMENT_FILE_EXTENSION_TO_MIME_TYPES_RECORD, DOCUMENT_MIME_TYPES_TO_FILE_EXTENSIONS_RECORD, DOCX_MIME_TYPE, DOLLAR_AMOUNT_PRECISION, DOLLAR_AMOUNT_STRING_REGEX, DataDoesNotExistError, DataIsExpiredError, Day, DestroyFunctionObject, E164PHONE_NUMBER_REGEX, E164PHONE_NUMBER_WITH_EXTENSION_REGEX, E164PHONE_NUMBER_WITH_OPTIONAL_EXTENSION_REGEX, ExploreTreeVisitNodeDecision, FINAL_PAGE, FIRST_PAGE, FRACTIONAL_HOURS_PRECISION_FUNCTION, FlattenTreeAddNodeDecision, FullStorageObject, GIF_MIME_TYPE, HAS_PORT_NUMBER_REGEX, HAS_WEBSITE_DOMAIN_NAME_REGEX, HEIF_MIME_TYPE, HOURS_IN_DAY, HTML_MIME_TYPE, HTTP_OR_HTTPS_REGEX, HashSet, IMAGE_FILE_EXTENSION_TO_MIME_TYPES_RECORD, IMAGE_MIME_TYPES_TO_FILE_EXTENSIONS_RECORD, ISO8601_DAY_STRING_REGEX, ISO8601_DAY_STRING_START_REGEX, ISO_8601_DATE_STRING_REGEX, JPEG_MIME_TYPE, JSON_MIME_TYPE, KeyValueTypleValueFilter, LAT_LNG_PATTERN, LAT_LNG_PATTERN_MAX_PRECISION, LAT_LONG_100KM_PRECISION, LAT_LONG_100M_PRECISION, LAT_LONG_10CM_PRECISION, LAT_LONG_10KM_PRECISION, LAT_LONG_10M_PRECISION, LAT_LONG_1CM_PRECISION, LAT_LONG_1KM_PRECISION, LAT_LONG_1MM_PRECISION, LAT_LONG_1M_PRECISION, LAT_LONG_GRAINS_OF_SAND_PRECISION, LEADING_SLASHES_REGEX, MAP_IDENTITY, MARKDOWN_MIME_TYPE, MAX_BITWISE_SET_SIZE, MAX_LATITUDE_VALUE, MAX_LONGITUDE_VALUE, MINUTES_IN_DAY, MINUTES_IN_HOUR, MINUTE_OF_DAY_MAXMIMUM, MINUTE_OF_DAY_MINIUMUM, MIN_LATITUDE_VALUE, MIN_LONGITUDE_VALUE, MONTH_DAY_SLASH_DATE_STRING_REGEX, MS_IN_DAY, MS_IN_HOUR, MS_IN_MINUTE, MS_IN_SECOND, MemoryStorageInstance, ModelRelationUtility, NOOP_MODIFIER, NUMBER_STRING_DENCODER_64, NUMBER_STRING_DENCODER_64_DEFAULT_NEGATIVE_PREFIX, NUMBER_STRING_DENCODER_64_DIGITS, PDF_MIME_TYPE, PHONE_EXTENSION_NUMBER_REGEX, PNG_MIME_TYPE, PRIMATIVE_KEY_DENCODER_VALUE, PropertyDescriptorUtility, RAW_MIME_TYPE, REGEX_SPECIAL_CHARACTERS, REGEX_SPECIAL_CHARACTERS_SET, RelationChange, SECONDS_IN_MINUTE, SHARED_MEMORY_STORAGE, SLASH_PATH_FILE_TYPE_SEPARATOR, SLASH_PATH_SEPARATOR, SORT_VALUE_EQUAL, SORT_VALUE_GREATER_THAN, SORT_VALUE_LESS_THAN, SPACE_JOINER, SPLIT_STRING_TREE_NODE_ROOT_VALUE, SVG_MIME_TYPE, ServerErrorResponse, SetDeltaChange, SimpleStorageObject, SlashPathPathMatcherPartCode, StorageObject, StorageObjectUtility, StoredDataError, SyncState, TIFF_MIME_TYPE, TOTAL_LATITUDE_RANGE, TOTAL_LONGITUDE_RANGE, TOTAL_SPAN_OF_LONGITUDE, TRAILING_FILE_TYPE_SEPARATORS_REGEX, TRAILING_SLASHES_REGEX, TXT_MIME_TYPE, TimeAM, TimerCancelledError, TypedServiceRegistryInstance, UNLOADED_PAGE, UNSET_INDEX_NUMBER, US_STATE_CODE_STRING_REGEX, UTC_DATE_STRING_REGEX, UTC_TIMEZONE_STRING, UTF_8_START_CHARACTER, UTF_PRIVATE_USAGE_AREA_START, UnauthorizedServerErrorResponse, WEBP_MIME_TYPE, WEBSITE_TLD_DETECTION_REGEX, WEB_PROTOCOL_PREFIX_REGEX, XLSX_MIME_TYPE, XML_MIME_TYPE, YAML_MIME_TYPE, ZIP_CODE_STRING_REGEX, ZIP_FILE_MIME_TYPE, addHttpToUrl, addLatLngPoints, addMilliseconds, addModifiers, addPlusPrefixToNumber, addPrefix, addPrefixFunction, addSuffix, addSuffixFunction, addToSet, addToSetCopy, addToSplitStringTree, addTrailingSlash, allFalsyOrEmptyKeys, allIndexesInIndexRange, allKeyValueTuples, allMaybeSoKeys, allNonUndefinedKeys, allObjectsAreEqual, allValuesAreMaybeNot, allValuesAreNotMaybe, allowValueOnceFilter, applicationFileExtensionForMimeType, applyBestFit, applySplitStringTreeWithMultipleValues, applyToMultipleFields, approximateTimerEndDate, areEqualContext, areEqualPOJOValues, areEqualPOJOValuesUsingPojoFilter, arrayContainsDuplicateValue, arrayContentsDiffer, arrayDecision, arrayDecisionFunction, arrayFactory, arrayInputFactory, arrayToLowercase, arrayToMap, arrayToObject, arrayToUppercase, asArray, asDecisionFunction, asGetter, asIndexRangeCheckFunctionConfig, asIterable, asMinuteOfDay, asNonEmptyArray, asNumber, asObjectCopyFactory, asPromise, asSet, assignValuesToPOJO, assignValuesToPOJOFunction, authClaims, authRoleClaimsService, authRolesSetHasRoles, baseWebsiteUrl, batch, batchCalc, bitwiseObjectDencoder, bitwiseObjectEncoder, bitwiseObjectdecoder, bitwiseSetDecoder, bitwiseSetDencoder, booleanFactory, booleanKeyArrayUtility, boundNumber, boundNumberFunction, boundToRectangle, breadthFirstExploreTreeTraversalFactoryFunction, build, cachedGetter, calculateExpirationDate, capLatValue, capitalizeFirstLetter, caseInsensitiveFilterByIndexOfDecisionFactory, caseInsensitiveString, catchAllHandlerKey, chainMapFunction, chainMapSameFunctions, characterPrefixSuffixInstance, checkAnyHaveExpired, checkAtleastOneNotExpired, coerceToEmailParticipants, combineMaps, compareEqualityWithValueFromItemsFunction, compareEqualityWithValueFromItemsFunctionFactory, compareFnOrder, compareWithMappedValuesFunction, computeNextFractionalHour, computeNextFreeIndexFunction, computeNextFreeIndexOnSortedValuesFunction, concatArrays, concatArraysUnique, containsAllStringsAnyCase, containsAllValues, containsAnyStringAnyCase, containsAnyValue, containsAnyValueFromSet, containsNoValueFromSet, containsNoneOfValue, containsStringAnyCase, convertEmailParticipantStringToParticipant, convertMaybeToArray, convertMaybeToNonEmptyArray, convertParticipantToEmailParticipantString, convertToArray, copyArray, copyField, copyLatLngBound, copyLatLngPoint, copyObject, copySetAndDo, countAllInNestedArray, countPOJOKeys, countPOJOKeysFunction, cronExpressionRepeatingEveryNMinutes, cssClassesSet, cutString, cutStringFunction, cutToPrecision, cutValueToInteger, cutValueToPrecision, cutValueToPrecisionFunction, dateFromDateOrTimeMillisecondsNumber, dateFromDateOrTimeSecondsNumber, dateFromLogicalDate, dateFromMinuteOfDay, dateOrMillisecondsToDate, dateToHoursAndMinutes, dateToMinuteOfDay, dayOfWeek, daysOfWeekArray, daysOfWeekFromEnabledDays, daysOfWeekNameFunction, daysOfWeekNameMap, decisionFunction, decodeHashedValues, decodeHashedValuesWithDecodeMap, decodeModelKeyTypePair, defaultFilterFromPOJOFunctionNoCopy, defaultForwardFunctionFactory, defaultLatLngPoint, defaultLatLngString, dencodeBitwiseSet, depthFirstExploreTreeTraversalFactoryFunction, diffLatLngBoundPoints, diffLatLngPoints, documentFileExtensionForMimeType, dollarAmountString, dollarAmountStringWithUnitFunction, e164PhoneNumberExtensionPair, e164PhoneNumberFromE164PhoneNumberExtensionPair, enabledDaysFromDaysOfWeek, encodeBitwiseSet, encodeModelKeyTypePair, errorMessageContainsString, errorMessageContainsStringFunction, escapeStringCharactersFunction, escapeStringForRegex, excludeValues, excludeValuesFromArray, excludeValuesFromSet, existsInIterable, expandArrayMapTuples, expandArrayValueTuples, expandFlattenTreeFunction, expandIndexSet, expandSlashPathPathMatcherPartToDecisionFunctions, expandTreeFunction, expandTrees, expirationDetails, exploreTreeFunction, exponentialPromiseRateLimiter, extendLatLngBound, fileExtensionForMimeType, filterAndMapFunction, filterEmptyArrayValues, filterEmptyPojoValues, filterFalsyAndEmptyValues, filterFromIterable, filterFromPOJO, filterFromPOJOFunction, filterKeyValueTupleFunction, filterKeyValueTuples, filterKeyValueTuplesFunction, filterKeyValueTuplesInputToFilter, filterKeysOnPOJOFunction, filterMaybeArrayFunction, filterMaybeArrayValues, filterNullAndUndefinedValues, filterOnlyUndefinedValues, filterTuplesOnPOJOFunction, filterUndefinedValues, filterUniqueByIndex, filterUniqueCaseInsensitiveStrings, filterUniqueFunction, filterUniqueTransform, filterUniqueValues, filterValuesByDistance, filterValuesByDistanceNoOrder, filterValuesToSet, filterValuesUsingSet, filteredPage, findAllCharacterOccurences, findAllCharacterOccurencesFunction, findBest, findBestIndexMatch, findBestIndexMatchFunction, findBestIndexSetPair, findBestSplitStringTreeChildMatch, findBestSplitStringTreeChildMatchPath, findBestSplitStringTreeMatch, findBestSplitStringTreeMatchPath, findFirstCharacterOccurence, findInIterable, findIndexOfFirstDuplicateValue, findItemsByIndex, findNext, findPOJOKeys, findPOJOKeysFunction, findStringsRegexString, findToIndexSet, findValuesFrom, firstAndLastCharacterOccurrence, firstAndLastValue, firstValue, firstValueFromIterable, fitToIndexRangeFunction, fixExtraQueryParameters, fixMultiSlashesInSlashPath, flattenArray, flattenArrayOrValueArray, flattenArrayToSet, flattenArrayUnique, flattenArrayUniqueCaseInsensitiveStrings, flattenTree, flattenTreeToArray, flattenTreeToArrayFunction, flattenWhitespace, forEachInIterable, forEachKeyValue, forEachKeyValueOnPOJOFunction, forEachWithArray, forwardFunction, fractionalHoursToMinutes, generateIfDoesNotExist, getArrayNextIndex, getBaseLog, getDayOffset, getDayTomorrow, getDayYesterday, getDaysOfWeekNames, getFunctionType, getNextDay, getNextPageNumber, getOverlappingRectangle, getPageNumber, getPreviousDay, getValueFromGetter, groupValues, handlerBindAccessor, handlerConfigurerFactory, handlerFactory, handlerMappedSetFunction, handlerMappedSetFunctionFactory, handlerSetFunction, hasDifferentStringsNoCase, hasDifferentValues, hasHttpPrefix, hasNonNullValue, hasPortNumber, hasSameTimezone, hasSameValues, hasValueFunction, hasValueOrNotEmpty, hasValueOrNotEmptyObject, hasWebsiteDomain, hasWebsiteTopLevelDomain, hashSetForIndexed, hourToFractionalHour, hoursAndMinutesToString, idBatchFactory, imageFileExtensionForMimeType, incrementingNumberFactory, indexDeltaGroup, indexDeltaGroupFunction, indexRange, indexRangeCheckFunction, indexRangeCheckReaderFunction, indexRangeForArray, indexRangeOverlapsIndexRange, indexRangeOverlapsIndexRangeFunction, indexRangeReaderPairFactory, indexRefMap, indexedValuesArrayAccessorFactory, insertIntoBooleanKeyArray, invertBooleanReturnFunction, invertDecision, invertFilter, invertMaybeBoolean, invertStringRecord, isAllowed, isClassLikeType, isCompleteUnitedStatesAddress, isConsideredUtcTimezoneString, isDate, isDefaultLatLngPoint, isDefaultLatLngPointValue, isDefaultReadableError, isDefinedAndNotFalse, isDollarAmountString, isE164PhoneNumber, isE164PhoneNumberWithExtension, isEmptyIterable, isEqualContext, isEqualDate, isEqualToValueDecisionFunction, isEvenNumber, isFalseBooleanKeyArray, isFinalPage, isGetter, isISO8601DateString, isISO8601DayString, isISO8601DayStringStart, isInAllowedDaysOfWeekSet, isInNumberBoundFunction, isInSetDecisionFunction, isIndexNumberInIndexRange, isIndexNumberInIndexRangeFunction, isIndexRangeInIndexRange, isIndexRangeInIndexRangeFunction, isIterable, isKnownHttpWebsiteProtocol, isLatLngBound, isLatLngBoundWithinLatLngBound, isLatLngPoint, isLatLngPointWithinLatLngBound, isLatLngString, isLogicalDateStringCode, isMapIdentityFunction, isMaybeNot, isMaybeNotOrTrue, isMaybeSo, isMinuteOfDay, isModelKey, isMonthDaySlashDate, isNonClassFunction, isNotFalse, isNotNullOrEmptyString, isNumberDivisibleBy, isObjectWithConstructor, isOddNumber, isPast, isPromise, isPromiseLike, isSameLatLngBound, isSameLatLngPoint, isSameNonNullValue, isSameVector, isSelectedDecisionFunctionFactory, isSelectedIndexDecisionFunction, isServerError, isSlashPathFile, isSlashPathFolder, isSlashPathTypedFile, isStandardInternetAccessibleWebsiteUrl, isStringOrTrue, isThrottled, isTrueBooleanKeyArray, isUTCDateString, isUnderThreshold, isUniqueKeyedFunction, isUsStateCodeString, isValidLatLngPoint, isValidLatitude, isValidLongitude, isValidNumberBound, isValidPhoneExtensionNumber, isValidSlashPath, isWebsiteUrl, isWebsiteUrlWithPrefix, isWithinLatLngBoundFunction, isolateSlashPath, isolateSlashPathFunction, isolateWebsitePathFunction, itemCountForBatchIndex, iterableToArray, iterableToMap, iterableToSet, iterablesAreSetEquivalent, iterate, iterateFilteredPages, joinHostAndPort, joinStrings, joinStringsWithCommas, joinStringsWithSpaces, keepCharactersAfterFirstCharacterOccurence, keepCharactersAfterFirstCharacterOccurenceFunction, keepFromSetCopy, keepValuesFromArray, keepValuesFromSet, keyValueMapFactory, labeledValueMap, lastValue, latLngBound, latLngBoundCenterPoint, latLngBoundEastBound, latLngBoundFromInput, latLngBoundFullyWrapsMap, latLngBoundFunction, latLngBoundNorthBound, latLngBoundNorthEastPoint, latLngBoundNorthWestPoint, latLngBoundOverlapsLatLngBound, latLngBoundSouthBound, latLngBoundSouthEastPoint, latLngBoundSouthWestPoint, latLngBoundStrictlyWrapsMap, latLngBoundTuple, latLngBoundTupleFunction, latLngBoundWestBound, latLngBoundWrapsMap, latLngDataPointFunction, latLngPoint, latLngPointFromString, latLngPointFunction, latLngPointPrecisionFunction, latLngString, latLngStringFunction, latLngTuple, latLngTupleFunction, limitArray, lonLatTuple, lowercaseFirstLetter, mailToUrlString, makeBestFit, makeCopyModelFieldFunction, makeDateMonthForMonthOfYear, makeDefaultNonConcurrentTaskKeyFactory, makeGetter, makeHandler, makeHashDecodeMap, makeKeyPairs, makeModelConversionFieldValuesFunction, makeModelMap, makeModelMapFunctions, makeMultiModelKeyMap, makeTimer, makeValuesGroupMap, makeWithFactory, makeWithFactoryInput, mapArrayFunction, mapFunctionOutput, mapFunctionOutputPair, mapGetter, mapGetterFactory, mapIdentityFunction, mapIterable, mapKeysIntersectionObjectToArray, mapMaybeFunction, mapObjectKeysFunction, mapObjectKeysToLowercase, mapObjectMap, mapObjectMapFunction, mapObjectToTargetObject, mapPromiseOrValue, mapToObject, mapToTuples, mapValuesToSet, mappedUseAsyncFunction, mappedUseFunction, mapsHaveSameKeys, maybeMergeModelModifiers, maybeMergeModifiers, maybeModifierMapToFunction, maybeSet, mergeArrays, mergeArraysIntoArray, mergeFilterFunctions, mergeModifiers, mergeObjects, mergeObjectsFunction, mergeSlashPaths, messageFromError, millisecondsToMinutesAndSeconds, mimeTypeForApplicationFileExtension, mimeTypeForDocumentFileExtension, mimeTypeForFileExtension, mimeTypeForImageFileExtension, minAndMaxFunction, minAndMaxIndex, minAndMaxIndexFunction, minAndMaxIndexItemsFunction, minAndMaxNumber, minutesToFractionalHours, minutesToHoursAndMinutes, modelFieldConversions, modelFieldMapFunction, modelFieldMapFunctions, modelTypeDataPairFactory, modifier, modifierMapToFunction, modifyModelMapFunction, modifyModelMapFunctions, monthDaySlashDateToDateString, monthOfYearFromDate, monthOfYearFromDateMonth, monthOfYearFromUTCDate, multiKeyValueMapFactory, multiValueMapBuilder, neMostLatLngPoint, nearestDivisibleValues, numberStringDencoder, numberStringDencoderDecodedNumberValueFunction, numberStringDencoderEncodedStringValueFunction, numberStringDencoderFunction, objectCopyFactory, objectDeltaArrayCompressor, objectFieldEqualityChecker, objectFlatMergeMatrix, objectHasKey, objectHasKeys, objectHasNoKeys, objectIsEmpty, objectKeyEqualityComparatorFunction, objectKeysEqualityComparatorFunction, objectMergeMatrix, objectToMap, overlapsLatLngBoundFunction, overrideInObject, overrideInObjectFunctionFactory, padStartFunction, pairGroupValues, parseISO8601DayStringToUTCDate, partialServerError, passThrough, percentNumberFromDecimal, percentNumberToDecimal, performAsyncTask, performAsyncTasks, performBatchLoop, performMakeLoop, performTaskCountLoop, performTaskLoop, performTasksFromFactoryInParallelFunction, performTasksInParallel, performTasksInParallelFunction, pickOneRandomly, poll, primativeKeyDencoder, primativeKeyDencoderMap, primativeKeyStringDencoder, primativeValuesDelta, promiseReference, protectedFactory, pushArrayItemsIntoArray, pushElementOntoArray, pushItemOrArrayItemsIntoArray, randomArrayFactory, randomArrayIndex, randomBoolean, randomEmailFactory, randomFromArrayFactory, randomLatLngFactory, randomLatLngFromCenterFactory, randomNumber, randomNumberFactory, randomPhoneNumberFactory, randomPickFactory, range, rangedIndexedValuesArrayAccessorFactory, rangedIndexedValuesArrayAccessorInfoFactory, readBooleanKeySafetyWrap, readDomainFromEmailAddress, readDomainsFromEmailAddresses, readEmailDomainFromUrlOrEmailAddress, readIndexNumber, readKeysFrom, readKeysFromFilterUniqueFunctionAdditionalKeys, readKeysFromFilterUniqueFunctionAdditionalKeysInput, readKeysFunction, readKeysSetFrom, readKeysSetFunction, readKeysToMap, readModelKey, readModelKeyFromObject, readModelKeys, readModelKeysFromObjects, readMultipleKeysToMap, readPortNumber, readUniqueModelKey, readWebsiteProtocol, readableError, readableStreamToBase64, readableStreamToBuffer, readableStreamToStringFunction, rectangleOverlapsRectangle, reduceBooleansFn, reduceBooleansWithAnd, reduceBooleansWithAndFn, reduceBooleansWithOr, reduceBooleansWithOrFn, reduceNumbers, reduceNumbersFn, reduceNumbersWithAdd, reduceNumbersWithAddFn, reduceNumbersWithMax, reduceNumbersWithMaxFn, reduceNumbersWithMin, reduceNumbersWithMinFn, removeByKeyFromBooleanKeyArray, removeCharactersAfterFirstCharacterOccurence, removeCharactersAfterFirstCharacterOccurenceFunction, removeExtensionFromPhoneNumber, removeFromBooleanKeyArray, removeFromSet, removeFromSetCopy, removeHttpFromUrl, removeModelsWithKey, removeModelsWithSameKey, removeModifiers, removeTrailingFileTypeSeparators, removeTrailingSlashes, removeValuesAtIndexesFromArrayCopy, removeWebProtocolPrefix, repeatString, replaceCharacterAtIndexIf, replaceCharacterAtIndexWith, replaceInvalidFilePathTypeSeparatorsInSlashPath, replaceInvalidFilePathTypeSeparatorsInSlashPathFunction, replaceLastCharacterIf, replaceLastCharacterIfIsFunction, replaceMultipleFilePathsInSlashPath, replaceStringsFunction, requireModelKey, resetPeriodPromiseRateLimiter, restoreOrder, restoreOrderWithValues, reverseCompareFn, roundNumberToStepFunction, roundNumberUpToStep, roundToPrecision, roundToPrecisionFunction, roundingFunction, runAsyncTaskForValue, runAsyncTasksForValues, runNamedAsyncTasks, runNamedAsyncTasksFunction, safeCompareEquality, safeEqualityComparatorFunction, safeFindBestIndexMatch, searchStringFilterFunction, secondsToMinutesAndSeconds, separateValues, separateValuesToSets, sequentialIncrementingNumberStringModelIdFactory, serverError, setContainsAllValues, setContainsAnyValue, setContainsNoneOfValue, setDeltaChangeKeys, setDeltaFunction, setHasValueFunction, setIncludes, setIncludesFunction, setKeysOnMap, setWebProtocolPrefix, setsAreEquivalent, simpleSortValuesFunctionWithSortRef, simplifyWhitespace, slashPathDetails, slashPathDirectoryTree, slashPathFactory, slashPathFolder, slashPathFolderFactory, slashPathInvalidError, slashPathName, slashPathParts, slashPathPathMatcher, slashPathPathMatcherConfig, slashPathStartTypeFactory, slashPathSubPathMatcher, slashPathType, slashPathValidationFactory, sliceIndexRangeFunction, sliceStringFunction, sortAscendingIndexNumberRefFunction, sortByIndexAscendingCompareFunction, sortByIndexRangeAscendingCompareFunction, sortByLabelFunction, sortByNumberFunction, sortByStringFunction, sortCompareNumberFunction, sortNumbersAscendingFunction, sortValues, sortValuesFunctionOrMapIdentityWithSortRef, sortValuesFunctionWithSortRef, spaceSeparatedCssClasses, splitCommaSeparatedString, splitCommaSeparatedStringToSet, splitFront, splitJoinNameString, splitJoinRemainder, splitStringAtFirstCharacterOccurence, splitStringAtFirstCharacterOccurenceFunction, splitStringAtIndex, splitStringTreeFactory, startOfDayForSystemDateInUTC, startOfDayForUTCDateInUTC, stepsFromIndex, stepsFromIndexFunction, stringCharactersToIndexRecord, stringContains, stringFactoryFromFactory, stringFromDateFactory, stringFromTimeFactory, stringToBoolean, stringToLowercaseFunction, stringToUppercaseFunction, stringTrimFunction, sumOfIntegersBetween, swMostLatLngPoint, symmetricDifferenceArray, symmetricDifferenceArrayBetweenSets, symmetricDifferenceWithModels, takeFront, takeLast, takeValuesFromIterable, telUrlString, telUrlStringForE164PhoneNumberPair, terminatingFactoryFromArray, throwKeyIsRequired, timePeriodCounter, toAbsoluteSlashPathStartType, toCaseInsensitiveStringArray, toMinuteOfDay, toModelFieldConversions, toModelMapFunctions, toReadableError, toRelativeSlashPathStartType, toggleInSet, toggleInSetCopy, toggleTimerRunning, transformNumberFunction, transformNumberFunctionConfig, transformStringFunction, transformStringFunctionConfig, transformStrings, trimArray, trueOrFalseString, tryWithPromiseFactoriesFunction, typedServiceRegistry, unique, uniqueCaseInsensitiveStrings, uniqueCaseInsensitiveStringsSet, uniqueKeys, uniqueModels, unitedStatesAddressString, unixDateTimeSecondsNumberForNow, unixDateTimeSecondsNumberFromDate, unixDateTimeSecondsNumberFromDateOrTimeNumber, unixDateTimeSecondsNumberToDate, unixMillisecondsNumberToDate, updateMaybeValue, urlWithoutParameters, useAsync, useCallback, useContextFunction, useIterableOrValue, useModelOrKey, usePromise, useValue, validLatLngPoint, validLatLngPointFunction, valueAtIndex, valuesAreBothNullishOrEquivalent, valuesFromPOJO, valuesFromPOJOFunction, vectorMinimumSizeResizeFunction, vectorsAreEqual, waitForMs, websiteDomainAndPathPair, websiteDomainAndPathPairFromWebsiteUrl, websitePathAndQueryPair, websitePathFromWebsiteDomainAndPath, websitePathFromWebsiteUrl, websiteUrlDetails, websiteUrlFromPaths, wrapIndexRangeFunction, wrapLatLngPoint, wrapLngValue, wrapMapFunctionOutput, wrapNumberFunction, wrapTuples, wrapUseAsyncFunction, wrapUseFunction };
|
|
19810
|
+
// MARK: Mapped Types
|
|
19811
|
+
/**
|
|
19812
|
+
* Default prefix used for encrypted field names.
|
|
19813
|
+
*/ var DEFAULT_ENCRYPTED_FIELD_PREFIX = '$';
|
|
19814
|
+
// MARK: Factory
|
|
19815
|
+
/**
|
|
19816
|
+
* Creates a selective field encryptor that encrypts/decrypts specific fields on an object.
|
|
19817
|
+
*
|
|
19818
|
+
* Each encrypted field's value is JSON.stringified before encryption and JSON.parsed after
|
|
19819
|
+
* decryption, so fields can hold any JSON-serializable value (not just strings).
|
|
19820
|
+
*
|
|
19821
|
+
* @example
|
|
19822
|
+
* ```ts
|
|
19823
|
+
* const encryptor = selectiveFieldEncryptor({
|
|
19824
|
+
* provider: myEncryptionProvider,
|
|
19825
|
+
* fields: ['client_secret'] as const
|
|
19826
|
+
* });
|
|
19827
|
+
*
|
|
19828
|
+
* const encrypted = encryptor.encrypt({ client_id: 'abc', client_secret: 's3cret' });
|
|
19829
|
+
* // encrypted => { client_id: 'abc', $client_secret: '<ciphertext>' }
|
|
19830
|
+
*
|
|
19831
|
+
* const decrypted = encryptor.decrypt(encrypted);
|
|
19832
|
+
* // decrypted => { client_id: 'abc', client_secret: 's3cret' }
|
|
19833
|
+
* ```
|
|
19834
|
+
*
|
|
19835
|
+
* @param config - Encryption configuration specifying provider, fields, and optional prefix.
|
|
19836
|
+
* @returns A selective field encryptor instance.
|
|
19837
|
+
*/ function selectiveFieldEncryptor(config) {
|
|
19838
|
+
var provider = config.provider, fields = config.fields, prefixInput = config.prefix;
|
|
19839
|
+
var prefix = prefixInput !== null && prefixInput !== void 0 ? prefixInput : DEFAULT_ENCRYPTED_FIELD_PREFIX;
|
|
19840
|
+
var fieldSet = new Set(fields);
|
|
19841
|
+
var result = {
|
|
19842
|
+
encrypt: function encrypt(input) {
|
|
19843
|
+
var output = {};
|
|
19844
|
+
var inputRecord = input;
|
|
19845
|
+
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
|
|
19846
|
+
try {
|
|
19847
|
+
for(var _iterator = Object.keys(inputRecord)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
|
|
19848
|
+
var key = _step.value;
|
|
19849
|
+
if (fieldSet.has(key)) {
|
|
19850
|
+
var json = JSON.stringify(inputRecord[key]);
|
|
19851
|
+
output["".concat(prefix).concat(key)] = provider.encrypt(json);
|
|
19852
|
+
} else {
|
|
19853
|
+
output[key] = inputRecord[key];
|
|
19854
|
+
}
|
|
19855
|
+
}
|
|
19856
|
+
} catch (err) {
|
|
19857
|
+
_didIteratorError = true;
|
|
19858
|
+
_iteratorError = err;
|
|
19859
|
+
} finally{
|
|
19860
|
+
try {
|
|
19861
|
+
if (!_iteratorNormalCompletion && _iterator.return != null) {
|
|
19862
|
+
_iterator.return();
|
|
19863
|
+
}
|
|
19864
|
+
} finally{
|
|
19865
|
+
if (_didIteratorError) {
|
|
19866
|
+
throw _iteratorError;
|
|
19867
|
+
}
|
|
19868
|
+
}
|
|
19869
|
+
}
|
|
19870
|
+
return output;
|
|
19871
|
+
},
|
|
19872
|
+
decrypt: function decrypt(input) {
|
|
19873
|
+
var output = {};
|
|
19874
|
+
var inputRecord = input;
|
|
19875
|
+
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
|
|
19876
|
+
try {
|
|
19877
|
+
for(var _iterator = Object.keys(inputRecord)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
|
|
19878
|
+
var key = _step.value;
|
|
19879
|
+
var handled = false;
|
|
19880
|
+
if (key.startsWith(prefix)) {
|
|
19881
|
+
var originalKey = key.slice(prefix.length);
|
|
19882
|
+
if (fieldSet.has(originalKey)) {
|
|
19883
|
+
var decrypted = provider.decrypt(inputRecord[key]);
|
|
19884
|
+
output[originalKey] = JSON.parse(decrypted);
|
|
19885
|
+
handled = true;
|
|
19886
|
+
}
|
|
19887
|
+
}
|
|
19888
|
+
if (!handled) {
|
|
19889
|
+
output[key] = inputRecord[key];
|
|
19890
|
+
}
|
|
19891
|
+
}
|
|
19892
|
+
} catch (err) {
|
|
19893
|
+
_didIteratorError = true;
|
|
19894
|
+
_iteratorError = err;
|
|
19895
|
+
} finally{
|
|
19896
|
+
try {
|
|
19897
|
+
if (!_iteratorNormalCompletion && _iterator.return != null) {
|
|
19898
|
+
_iterator.return();
|
|
19899
|
+
}
|
|
19900
|
+
} finally{
|
|
19901
|
+
if (_didIteratorError) {
|
|
19902
|
+
throw _iteratorError;
|
|
19903
|
+
}
|
|
19904
|
+
}
|
|
19905
|
+
}
|
|
19906
|
+
return output;
|
|
19907
|
+
}
|
|
19908
|
+
};
|
|
19909
|
+
return result;
|
|
19910
|
+
}
|
|
19911
|
+
|
|
19912
|
+
export { ALL_DOUBLE_SLASHES_REGEX, ALL_SLASHES_REGEX, ALL_SLASH_PATH_FILE_TYPE_SEPARATORS_REGEX, APPLICATION_FILE_EXTENSION_TO_MIME_TYPES_RECORD, APPLICATION_MIME_TYPES_TO_FILE_EXTENSIONS_RECORD, ASSERTION_ERROR_CODE, ASSERTION_HANDLER, AUTH_ADMIN_ROLE, AUTH_ONBOARDED_ROLE, AUTH_ROLE_CLAIMS_DEFAULT_CLAIM_VALUE, AUTH_ROLE_CLAIMS_DEFAULT_EMPTY_VALUE, AUTH_TOS_SIGNED_ROLE, AUTH_USER_ROLE, AbstractUniqueModel, Assert, AssertMax, AssertMin, AssertionError, AssertionIssueHandler, BooleanStringKeyArrayUtility, CATCH_ALL_HANDLE_RESULT_KEY, COMMA_JOINER, COMMA_STRING_SPLIT_JOIN, CSV_MIME_TYPE, CUT_VALUE_TO_ZERO_PRECISION, DASH_CHARACTER_PREFIX_INSTANCE, DATE_NOW_VALUE, DAYS_IN_YEAR, DEFAULT_CUT_STRING_END_TEXT, DEFAULT_ENCRYPTED_FIELD_PREFIX, DEFAULT_LAT_LNG_STRING_VALUE, DEFAULT_RANDOM_EMAIL_FACTORY_CONFIG, DEFAULT_RANDOM_PHONE_NUMBER_FACTORY_CONFIG, DEFAULT_READABLE_ERROR_CODE, DEFAULT_SLASH_PATH_ILLEGAL_CHARACTERS, DEFAULT_SLASH_PATH_ILLEGAL_CHARACTER_REPLACEMENT, DEFAULT_SLASH_PATH_PATH_MATCHER_NON_MATCHING_FILL_VALUE, DEFAULT_UNKNOWN_MODEL_TYPE_STRING, DOCUMENT_FILE_EXTENSION_TO_MIME_TYPES_RECORD, DOCUMENT_MIME_TYPES_TO_FILE_EXTENSIONS_RECORD, DOCX_MIME_TYPE, DOLLAR_AMOUNT_PRECISION, DOLLAR_AMOUNT_STRING_REGEX, DataDoesNotExistError, DataIsExpiredError, Day, DestroyFunctionObject, E164PHONE_NUMBER_REGEX, E164PHONE_NUMBER_WITH_EXTENSION_REGEX, E164PHONE_NUMBER_WITH_OPTIONAL_EXTENSION_REGEX, ExploreTreeVisitNodeDecision, FINAL_PAGE, FIRST_PAGE, FRACTIONAL_HOURS_PRECISION_FUNCTION, FlattenTreeAddNodeDecision, FullStorageObject, GIF_MIME_TYPE, HAS_PORT_NUMBER_REGEX, HAS_WEBSITE_DOMAIN_NAME_REGEX, HEIF_MIME_TYPE, HEX_PATTERN, HOURS_IN_DAY, HTML_MIME_TYPE, HTTP_OR_HTTPS_REGEX, HashSet, IMAGE_FILE_EXTENSION_TO_MIME_TYPES_RECORD, IMAGE_MIME_TYPES_TO_FILE_EXTENSIONS_RECORD, ISO8601_DAY_STRING_REGEX, ISO8601_DAY_STRING_START_REGEX, ISO_8601_DATE_STRING_REGEX, JPEG_MIME_TYPE, JSON_MIME_TYPE, KeyValueTypleValueFilter, LAT_LNG_PATTERN, LAT_LNG_PATTERN_MAX_PRECISION, LAT_LONG_100KM_PRECISION, LAT_LONG_100M_PRECISION, LAT_LONG_10CM_PRECISION, LAT_LONG_10KM_PRECISION, LAT_LONG_10M_PRECISION, LAT_LONG_1CM_PRECISION, LAT_LONG_1KM_PRECISION, LAT_LONG_1MM_PRECISION, LAT_LONG_1M_PRECISION, LAT_LONG_GRAINS_OF_SAND_PRECISION, LEADING_SLASHES_REGEX, MAP_IDENTITY, MARKDOWN_MIME_TYPE, MAX_BITWISE_SET_SIZE, MAX_LATITUDE_VALUE, MAX_LONGITUDE_VALUE, MINUTES_IN_DAY, MINUTES_IN_HOUR, MINUTE_OF_DAY_MAXMIMUM, MINUTE_OF_DAY_MINIUMUM, MIN_LATITUDE_VALUE, MIN_LONGITUDE_VALUE, MONTH_DAY_SLASH_DATE_STRING_REGEX, MS_IN_DAY, MS_IN_HOUR, MS_IN_MINUTE, MS_IN_SECOND, MemoryStorageInstance, ModelRelationUtility, NOOP_MODIFIER, NUMBER_STRING_DENCODER_64, NUMBER_STRING_DENCODER_64_DEFAULT_NEGATIVE_PREFIX, NUMBER_STRING_DENCODER_64_DIGITS, PDF_MIME_TYPE, PHONE_EXTENSION_NUMBER_REGEX, PNG_MIME_TYPE, PRIMATIVE_KEY_DENCODER_VALUE, PropertyDescriptorUtility, RAW_MIME_TYPE, REGEX_SPECIAL_CHARACTERS, REGEX_SPECIAL_CHARACTERS_SET, RelationChange, SECONDS_IN_HOUR, SECONDS_IN_MINUTE, SHARED_MEMORY_STORAGE, SLASH_PATH_FILE_TYPE_SEPARATOR, SLASH_PATH_SEPARATOR, SORT_VALUE_EQUAL, SORT_VALUE_GREATER_THAN, SORT_VALUE_LESS_THAN, SPACE_JOINER, SPACE_STRING_SPLIT_JOIN, SPLIT_STRING_TREE_NODE_ROOT_VALUE, SVG_MIME_TYPE, ServerErrorResponse, SetDeltaChange, SimpleStorageObject, SlashPathPathMatcherPartCode, StorageObject, StorageObjectUtility, StoredDataError, SyncState, TIFF_MIME_TYPE, TOTAL_LATITUDE_RANGE, TOTAL_LONGITUDE_RANGE, TOTAL_SPAN_OF_LONGITUDE, TRAILING_FILE_TYPE_SEPARATORS_REGEX, TRAILING_SLASHES_REGEX, TXT_MIME_TYPE, TimeAM, TimerCancelledError, TypedServiceRegistryInstance, UNLOADED_PAGE, UNSET_INDEX_NUMBER, US_STATE_CODE_STRING_REGEX, UTC_DATE_STRING_REGEX, UTC_TIMEZONE_STRING, UTF_8_START_CHARACTER, UTF_PRIVATE_USAGE_AREA_START, UnauthorizedServerErrorResponse, WEBP_MIME_TYPE, WEBSITE_TLD_DETECTION_REGEX, WEB_PROTOCOL_PREFIX_REGEX, XLSX_MIME_TYPE, XML_MIME_TYPE, YAML_MIME_TYPE, ZIP_CODE_STRING_REGEX, ZIP_FILE_MIME_TYPE, addHttpToUrl, addLatLngPoints, addMilliseconds, addModifiers, addPlusPrefixToNumber, addPrefix, addPrefixFunction, addSuffix, addSuffixFunction, addToSet, addToSetCopy, addToSplitStringTree, addTrailingSlash, allFalsyOrEmptyKeys, allIndexesInIndexRange, allKeyValueTuples, allMaybeSoKeys, allNonUndefinedKeys, allObjectsAreEqual, allValuesAreMaybeNot, allValuesAreNotMaybe, allowValueOnceFilter, applicationFileExtensionForMimeType, applyBestFit, applySplitStringTreeWithMultipleValues, applyToMultipleFields, approximateTimerEndDate, areEqualContext, areEqualPOJOValues, areEqualPOJOValuesUsingPojoFilter, arrayContainsDuplicateValue, arrayContentsDiffer, arrayDecision, arrayDecisionFunction, arrayFactory, arrayInputFactory, arrayToLowercase, arrayToMap, arrayToObject, arrayToUppercase, asArray, asDecisionFunction, asGetter, asIndexRangeCheckFunctionConfig, asIterable, asMinuteOfDay, asNonEmptyArray, asNumber, asObjectCopyFactory, asPromise, asSet, assignValuesToPOJO, assignValuesToPOJOFunction, authClaims, authRoleClaimsService, authRolesSetHasRoles, baseWebsiteUrl, batch, batchCalc, bitwiseObjectDencoder, bitwiseObjectEncoder, bitwiseObjectdecoder, bitwiseSetDecoder, bitwiseSetDencoder, booleanFactory, booleanKeyArrayUtility, boundNumber, boundNumberFunction, boundToRectangle, breadthFirstExploreTreeTraversalFactoryFunction, bufferHasValidPdfMarkings, build, cachedGetter, calculateExpirationDate, capLatValue, capitalizeFirstLetter, caseInsensitiveFilterByIndexOfDecisionFactory, caseInsensitiveString, catchAllHandlerKey, chainMapFunction, chainMapSameFunctions, characterPrefixSuffixInstance, checkAnyHaveExpired, checkAtleastOneNotExpired, coerceToEmailParticipants, combineMaps, compareEqualityWithValueFromItemsFunction, compareEqualityWithValueFromItemsFunctionFactory, compareFnOrder, compareWithMappedValuesFunction, computeNextFractionalHour, computeNextFreeIndexFunction, computeNextFreeIndexOnSortedValuesFunction, concatArrays, concatArraysUnique, containsAllStringsAnyCase, containsAllValues, containsAnyStringAnyCase, containsAnyValue, containsAnyValueFromSet, containsNoValueFromSet, containsNoneOfValue, containsStringAnyCase, convertEmailParticipantStringToParticipant, convertMaybeToArray, convertMaybeToNonEmptyArray, convertParticipantToEmailParticipantString, convertToArray, copyArray, copyField, copyLatLngBound, copyLatLngPoint, copyObject, copySetAndDo, countAllInNestedArray, countPOJOKeys, countPOJOKeysFunction, cronExpressionRepeatingEveryNMinutes, cssClassesSet, cutString, cutStringFunction, cutToPrecision, cutValueToInteger, cutValueToPrecision, cutValueToPrecisionFunction, dateFromDateOrTimeMillisecondsNumber, dateFromDateOrTimeSecondsNumber, dateFromLogicalDate, dateFromMinuteOfDay, dateOrMillisecondsToDate, dateToHoursAndMinutes, dateToMinuteOfDay, dayOfWeek, daysOfWeekArray, daysOfWeekFromEnabledDays, daysOfWeekNameFunction, daysOfWeekNameMap, decisionFunction, decodeHashedValues, decodeHashedValuesWithDecodeMap, decodeModelKeyTypePair, decodeRadix36Number, defaultFilterFromPOJOFunctionNoCopy, defaultForwardFunctionFactory, defaultLatLngPoint, defaultLatLngString, dencodeBitwiseSet, depthFirstExploreTreeTraversalFactoryFunction, diffLatLngBoundPoints, diffLatLngPoints, documentFileExtensionForMimeType, dollarAmountString, dollarAmountStringWithUnitFunction, e164PhoneNumberExtensionPair, e164PhoneNumberFromE164PhoneNumberExtensionPair, enabledDaysFromDaysOfWeek, encodeBitwiseSet, encodeModelKeyTypePair, encodeRadix36Number, errorMessageContainsString, errorMessageContainsStringFunction, escapeStringCharactersFunction, escapeStringForRegex, excludeValues, excludeValuesFromArray, excludeValuesFromSet, existsInIterable, expandArrayMapTuples, expandArrayValueTuples, expandFlattenTreeFunction, expandIndexSet, expandSlashPathPathMatcherPartToDecisionFunctions, expandTreeFunction, expandTrees, expirationDetails, exploreTreeFunction, exponentialPromiseRateLimiter, extendLatLngBound, fileExtensionForMimeType, filterAndMapFunction, filterEmptyArrayValues, filterEmptyPojoValues, filterFalsyAndEmptyValues, filterFromIterable, filterFromPOJO, filterFromPOJOFunction, filterKeyValueTupleFunction, filterKeyValueTuples, filterKeyValueTuplesFunction, filterKeyValueTuplesInputToFilter, filterKeysOnPOJOFunction, filterMaybeArrayFunction, filterMaybeArrayValues, filterNullAndUndefinedValues, filterOnlyUndefinedValues, filterTuplesOnPOJOFunction, filterUndefinedValues, filterUniqueByIndex, filterUniqueCaseInsensitiveStrings, filterUniqueFunction, filterUniqueTransform, filterUniqueValues, filterValuesByDistance, filterValuesByDistanceNoOrder, filterValuesToSet, filterValuesUsingSet, filteredPage, findAllCharacterOccurences, findAllCharacterOccurencesFunction, findBest, findBestIndexMatch, findBestIndexMatchFunction, findBestIndexSetPair, findBestSplitStringTreeChildMatch, findBestSplitStringTreeChildMatchPath, findBestSplitStringTreeMatch, findBestSplitStringTreeMatchPath, findFirstCharacterOccurence, findInIterable, findIndexOfFirstDuplicateValue, findItemsByIndex, findNext, findPOJOKeys, findPOJOKeysFunction, findStringsRegexString, findToIndexSet, findValuesFrom, firstAndLastCharacterOccurrence, firstAndLastValue, firstValue, firstValueFromIterable, fitToIndexRangeFunction, fixExtraQueryParameters, fixMultiSlashesInSlashPath, flattenArray, flattenArrayOrValueArray, flattenArrayToSet, flattenArrayUnique, flattenArrayUniqueCaseInsensitiveStrings, flattenTree, flattenTreeToArray, flattenTreeToArrayFunction, flattenWhitespace, forEachInIterable, forEachKeyValue, forEachKeyValueOnPOJOFunction, forEachWithArray, forwardFunction, fractionalHoursToMinutes, generateIfDoesNotExist, getArrayNextIndex, getBaseLog, getDayOffset, getDayTomorrow, getDayYesterday, getDaysOfWeekNames, getFunctionType, getNextDay, getNextPageNumber, getOverlappingRectangle, getPageNumber, getPreviousDay, getValueFromGetter, groupValues, handlerBindAccessor, handlerConfigurerFactory, handlerFactory, handlerMappedSetFunction, handlerMappedSetFunctionFactory, handlerSetFunction, hasDifferentStringsNoCase, hasDifferentValues, hasHttpPrefix, hasNonNullValue, hasPortNumber, hasSameTimezone, hasSameValues, hasValueFunction, hasValueOrNotEmpty, hasValueOrNotEmptyObject, hasWebsiteDomain, hasWebsiteTopLevelDomain, hashSetForIndexed, hourToFractionalHour, hoursAndMinutesToString, idBatchFactory, imageFileExtensionForMimeType, incrementingNumberFactory, indexDeltaGroup, indexDeltaGroupFunction, indexRange, indexRangeCheckFunction, indexRangeCheckReaderFunction, indexRangeForArray, indexRangeOverlapsIndexRange, indexRangeOverlapsIndexRangeFunction, indexRangeReaderPairFactory, indexRefMap, indexedValuesArrayAccessorFactory, insertIntoBooleanKeyArray, invertBooleanReturnFunction, invertDecision, invertFilter, invertMaybeBoolean, invertStringRecord, isAllowed, isClassLikeType, isCompleteUnitedStatesAddress, isConsideredUtcTimezoneString, isDate, isDefaultLatLngPoint, isDefaultLatLngPointValue, isDefaultReadableError, isDefinedAndNotFalse, isDollarAmountString, isE164PhoneNumber, isE164PhoneNumberWithExtension, isEmptyIterable, isEqualContext, isEqualDate, isEqualToValueDecisionFunction, isEvenNumber, isFalseBooleanKeyArray, isFinalPage, isGetter, isHex, isISO8601DateString, isISO8601DayString, isISO8601DayStringStart, isInAllowedDaysOfWeekSet, isInNumberBoundFunction, isInSetDecisionFunction, isIndexNumberInIndexRange, isIndexNumberInIndexRangeFunction, isIndexRangeInIndexRange, isIndexRangeInIndexRangeFunction, isIterable, isKnownHttpWebsiteProtocol, isLatLngBound, isLatLngBoundWithinLatLngBound, isLatLngPoint, isLatLngPointWithinLatLngBound, isLatLngString, isLogicalDateStringCode, isMapIdentityFunction, isMaybeNot, isMaybeNotOrTrue, isMaybeSo, isMinuteOfDay, isModelKey, isMonthDaySlashDate, isNonClassFunction, isNotFalse, isNotNullOrEmptyString, isNumberDivisibleBy, isObjectWithConstructor, isOddNumber, isPast, isPromise, isPromiseLike, isSameLatLngBound, isSameLatLngPoint, isSameNonNullValue, isSameVector, isSelectedDecisionFunctionFactory, isSelectedIndexDecisionFunction, isServerError, isSlashPathFile, isSlashPathFolder, isSlashPathTypedFile, isStandardInternetAccessibleWebsiteUrl, isStringOrTrue, isThrottled, isTrueBooleanKeyArray, isUTCDateString, isUnderThreshold, isUniqueKeyedFunction, isUsStateCodeString, isValidLatLngPoint, isValidLatitude, isValidLongitude, isValidNumberBound, isValidPhoneExtensionNumber, isValidSlashPath, isWebsiteUrl, isWebsiteUrlWithPrefix, isWithinLatLngBoundFunction, isolateSlashPath, isolateSlashPathFunction, isolateWebsitePathFunction, itemCountForBatchIndex, iterableToArray, iterableToMap, iterableToSet, iterablesAreSetEquivalent, iterate, iterateFilteredPages, joinHostAndPort, joinStrings, joinStringsInstance, joinStringsWithCommas, joinStringsWithSpaces, keepCharactersAfterFirstCharacterOccurence, keepCharactersAfterFirstCharacterOccurenceFunction, keepFromSetCopy, keepValuesFromArray, keepValuesFromSet, keyValueMapFactory, labeledValueMap, lastValue, latLngBound, latLngBoundCenterPoint, latLngBoundEastBound, latLngBoundFromInput, latLngBoundFullyWrapsMap, latLngBoundFunction, latLngBoundNorthBound, latLngBoundNorthEastPoint, latLngBoundNorthWestPoint, latLngBoundOverlapsLatLngBound, latLngBoundSouthBound, latLngBoundSouthEastPoint, latLngBoundSouthWestPoint, latLngBoundStrictlyWrapsMap, latLngBoundTuple, latLngBoundTupleFunction, latLngBoundWestBound, latLngBoundWrapsMap, latLngDataPointFunction, latLngPoint, latLngPointFromString, latLngPointFunction, latLngPointPrecisionFunction, latLngString, latLngStringFunction, latLngTuple, latLngTupleFunction, limitArray, lonLatTuple, lowercaseFirstLetter, mailToUrlString, makeBestFit, makeCopyModelFieldFunction, makeDateMonthForMonthOfYear, makeDefaultNonConcurrentTaskKeyFactory, makeGetter, makeHandler, makeHashDecodeMap, makeKeyPairs, makeModelConversionFieldValuesFunction, makeModelMap, makeModelMapFunctions, makeMultiModelKeyMap, makeTimer, makeValuesGroupMap, makeWithFactory, makeWithFactoryInput, mapArrayFunction, mapFunctionOutput, mapFunctionOutputPair, mapGetter, mapGetterFactory, mapIdentityFunction, mapIterable, mapKeysIntersectionObjectToArray, mapMaybeFunction, mapObjectKeysFunction, mapObjectKeysToLowercase, mapObjectMap, mapObjectMapFunction, mapObjectToTargetObject, mapPromiseOrValue, mapToObject, mapToTuples, mapValuesToSet, mappedUseAsyncFunction, mappedUseFunction, mapsHaveSameKeys, maybeMergeModelModifiers, maybeMergeModifiers, maybeModifierMapToFunction, maybeSet, mergeArrays, mergeArraysIntoArray, mergeFilterFunctions, mergeModifiers, mergeObjects, mergeObjectsFunction, mergeSlashPaths, messageFromError, millisecondsToMinutesAndSeconds, mimeTypeForApplicationFileExtension, mimeTypeForDocumentFileExtension, mimeTypeForFileExtension, mimeTypeForImageFileExtension, minAndMaxFunction, minAndMaxIndex, minAndMaxIndexFunction, minAndMaxIndexItemsFunction, minAndMaxNumber, minutesToFractionalHours, minutesToHoursAndMinutes, modelFieldConversions, modelFieldMapFunction, modelFieldMapFunctions, modelTypeDataPairFactory, modifier, modifierMapToFunction, modifyModelMapFunction, modifyModelMapFunctions, monthDaySlashDateToDateString, monthOfYearFromDate, monthOfYearFromDateMonth, monthOfYearFromUTCDate, multiKeyValueMapFactory, multiValueMapBuilder, neMostLatLngPoint, nearestDivisibleValues, numberStringDencoder, numberStringDencoderDecodedNumberValueFunction, numberStringDencoderEncodedStringValueFunction, numberStringDencoderFunction, objectCopyFactory, objectDeltaArrayCompressor, objectFieldEqualityChecker, objectFlatMergeMatrix, objectHasKey, objectHasKeys, objectHasNoKeys, objectIsEmpty, objectKeyEqualityComparatorFunction, objectKeysEqualityComparatorFunction, objectMergeMatrix, objectToMap, overlapsLatLngBoundFunction, overrideInObject, overrideInObjectFunctionFactory, padStartFunction, pairGroupValues, parseISO8601DayStringToUTCDate, partialServerError, passThrough, percentNumberFromDecimal, percentNumberToDecimal, performAsyncTask, performAsyncTasks, performBatchLoop, performMakeLoop, performTaskCountLoop, performTaskLoop, performTasksFromFactoryInParallelFunction, performTasksInParallel, performTasksInParallelFunction, pickOneRandomly, poll, primativeKeyDencoder, primativeKeyDencoderMap, primativeKeyStringDencoder, primativeValuesDelta, promiseReference, protectedFactory, pushArrayItemsIntoArray, pushElementOntoArray, pushItemOrArrayItemsIntoArray, randomArrayFactory, randomArrayIndex, randomBoolean, randomEmailFactory, randomFromArrayFactory, randomLatLngFactory, randomLatLngFromCenterFactory, randomNumber, randomNumberFactory, randomPhoneNumberFactory, randomPickFactory, range, rangedIndexedValuesArrayAccessorFactory, rangedIndexedValuesArrayAccessorInfoFactory, readBooleanKeySafetyWrap, readDomainFromEmailAddress, readDomainsFromEmailAddresses, readEmailDomainFromUrlOrEmailAddress, readIndexNumber, readKeysFrom, readKeysFromFilterUniqueFunctionAdditionalKeys, readKeysFromFilterUniqueFunctionAdditionalKeysInput, readKeysFunction, readKeysSetFrom, readKeysSetFunction, readKeysToMap, readModelKey, readModelKeyFromObject, readModelKeys, readModelKeysFromObjects, readMultipleKeysToMap, readPortNumber, readUniqueModelKey, readWebsiteProtocol, readableError, readableStreamToBase64, readableStreamToBuffer, readableStreamToStringFunction, rectangleOverlapsRectangle, reduceBooleansFn, reduceBooleansWithAnd, reduceBooleansWithAndFn, reduceBooleansWithOr, reduceBooleansWithOrFn, reduceNumbers, reduceNumbersFn, reduceNumbersWithAdd, reduceNumbersWithAddFn, reduceNumbersWithMax, reduceNumbersWithMaxFn, reduceNumbersWithMin, reduceNumbersWithMinFn, removeByKeyFromBooleanKeyArray, removeCharactersAfterFirstCharacterOccurence, removeCharactersAfterFirstCharacterOccurenceFunction, removeExtensionFromPhoneNumber, removeFromBooleanKeyArray, removeFromSet, removeFromSetCopy, removeHttpFromUrl, removeModelsWithKey, removeModelsWithSameKey, removeModifiers, removeTrailingFileTypeSeparators, removeTrailingSlashes, removeValuesAtIndexesFromArrayCopy, removeWebProtocolPrefix, repeatString, replaceCharacterAtIndexIf, replaceCharacterAtIndexWith, replaceInvalidFilePathTypeSeparatorsInSlashPath, replaceInvalidFilePathTypeSeparatorsInSlashPathFunction, replaceLastCharacterIf, replaceLastCharacterIfIsFunction, replaceMultipleFilePathsInSlashPath, replaceStringsFunction, requireModelKey, resetPeriodPromiseRateLimiter, restoreOrder, restoreOrderWithValues, reverseCompareFn, roundNumberToStepFunction, roundNumberUpToStep, roundToPrecision, roundToPrecisionFunction, roundingFunction, runAsyncTaskForValue, runAsyncTasksForValues, runNamedAsyncTasks, runNamedAsyncTasksFunction, safeCompareEquality, safeEqualityComparatorFunction, safeFindBestIndexMatch, searchStringFilterFunction, secondsToMinutesAndSeconds, selectiveFieldEncryptor, separateValues, separateValuesToSets, sequentialIncrementingNumberStringModelIdFactory, serverError, setContainsAllValues, setContainsAnyValue, setContainsNoneOfValue, setDeltaChangeKeys, setDeltaFunction, setHasValueFunction, setIncludes, setIncludesFunction, setKeysOnMap, setWebProtocolPrefix, setsAreEquivalent, simpleSortValuesFunctionWithSortRef, simplifyWhitespace, slashPathDetails, slashPathDirectoryTree, slashPathFactory, slashPathFolder, slashPathFolderFactory, slashPathInvalidError, slashPathName, slashPathParts, slashPathPathMatcher, slashPathPathMatcherConfig, slashPathStartTypeFactory, slashPathSubPathMatcher, slashPathType, slashPathValidationFactory, sliceIndexRangeFunction, sliceStringFunction, sortAscendingIndexNumberRefFunction, sortByIndexAscendingCompareFunction, sortByIndexRangeAscendingCompareFunction, sortByLabelFunction, sortByNumberFunction, sortByStringFunction, sortCompareNumberFunction, sortNumbersAscendingFunction, sortValues, sortValuesFunctionOrMapIdentityWithSortRef, sortValuesFunctionWithSortRef, spaceSeparatedCssClasses, splitCommaSeparatedString, splitCommaSeparatedStringToSet, splitFront, splitJoinNameString, splitJoinRemainder, splitStringAtFirstCharacterOccurence, splitStringAtFirstCharacterOccurenceFunction, splitStringAtIndex, splitStringTreeFactory, startOfDayForSystemDateInUTC, startOfDayForUTCDateInUTC, stepsFromIndex, stepsFromIndexFunction, stringCharactersToIndexRecord, stringContains, stringFactoryFromFactory, stringFromDateFactory, stringFromTimeFactory, stringSplitJoinInstance, stringToBoolean, stringToLowercaseFunction, stringToUppercaseFunction, stringTrimFunction, sumOfIntegersBetween, swMostLatLngPoint, symmetricDifferenceArray, symmetricDifferenceArrayBetweenSets, symmetricDifferenceWithModels, takeFront, takeLast, takeValuesFromIterable, telUrlString, telUrlStringForE164PhoneNumberPair, terminatingFactoryFromArray, throwKeyIsRequired, timePeriodCounter, toAbsoluteSlashPathStartType, toCaseInsensitiveStringArray, toMinuteOfDay, toModelFieldConversions, toModelMapFunctions, toReadableError, toRelativeSlashPathStartType, toggleInSet, toggleInSetCopy, toggleTimerRunning, transformNumberFunction, transformNumberFunctionConfig, transformStringFunction, transformStringFunctionConfig, transformStrings, trimArray, trueOrFalseString, tryWithPromiseFactoriesFunction, typedServiceRegistry, unique, uniqueCaseInsensitiveStrings, uniqueCaseInsensitiveStringsSet, uniqueKeys, uniqueModels, unitedStatesAddressString, unixDateTimeSecondsNumberForNow, unixDateTimeSecondsNumberFromDate, unixDateTimeSecondsNumberFromDateOrTimeNumber, unixDateTimeSecondsNumberToDate, unixMillisecondsNumberToDate, updateMaybeValue, urlWithoutParameters, useAsync, useCallback, useContextFunction, useIterableOrValue, useModelOrKey, usePromise, useValue, validLatLngPoint, validLatLngPointFunction, valueAtIndex, valuesAreBothNullishOrEquivalent, valuesFromPOJO, valuesFromPOJOFunction, vectorMinimumSizeResizeFunction, vectorsAreEqual, waitForMs, websiteDomainAndPathPair, websiteDomainAndPathPairFromWebsiteUrl, websitePathAndQueryPair, websitePathFromWebsiteDomainAndPath, websitePathFromWebsiteUrl, websiteUrlDetails, websiteUrlFromPaths, wrapIndexRangeFunction, wrapLatLngPoint, wrapLngValue, wrapMapFunctionOutput, wrapNumberFunction, wrapTuples, wrapUseAsyncFunction, wrapUseFunction };
|
package/package.json
CHANGED
package/src/lib/date/date.d.ts
CHANGED
|
@@ -276,6 +276,10 @@ export declare const MINUTES_IN_DAY: Minutes;
|
|
|
276
276
|
* Number of minutes in an hour.
|
|
277
277
|
*/
|
|
278
278
|
export declare const MINUTES_IN_HOUR: Minutes;
|
|
279
|
+
/**
|
|
280
|
+
* Number of seconds in an hour.
|
|
281
|
+
*/
|
|
282
|
+
export declare const SECONDS_IN_HOUR: Minutes;
|
|
279
283
|
/**
|
|
280
284
|
* Number of milliseconds in a second.
|
|
281
285
|
*/
|