refactor: use native node random integer generator
[e-mobility-charging-stations-simulator.git] / src / utils / index.ts
CommitLineData
66a7748d 1export { AsyncLock, AsyncLockType } from './AsyncLock.js'
179ed367 2export {
179ed367
JB
3 buildChargingStationAutomaticTransactionGeneratorConfiguration,
4 buildConnectorsStatus,
4c3f6c20
JB
5 buildEvsesStatus,
6 OutputFormat
66a7748d
JB
7} from './ChargingStationConfigurationUtils.js'
8export { CircularArray } from './CircularArray.js'
9export { Configuration } from './Configuration.js'
10export { Constants } from './Constants.js'
4c3f6c20 11export { ACElectricUtils, DCElectricUtils } from './ElectricUtils.js'
fa5995d6
JB
12export {
13 handleFileException,
244c1396 14 handleSendMessageError,
fa5995d6
JB
15 handleUncaughtException,
16 handleUnhandledRejection,
66a7748d
JB
17 setDefaultErrorParams
18} from './ErrorUtils.js'
19export { watchJsonFile } from './FileUtils.js'
4c3f6c20 20export { logger } from './Logger.js'
c8faabc8 21export {
244c1396
JB
22 buildAddedMessage,
23 buildChargingStationDataPayload,
09e5a7a8 24 buildDeletedMessage,
c8faabc8 25 buildPerformanceStatisticsMessage,
c8faabc8 26 buildStartedMessage,
244c1396
JB
27 buildStoppedMessage,
28 buildUpdatedMessage
66a7748d 29} from './MessageChannelUtils.js'
c17a8d29 30export { max, min, nthPercentile, stdDeviation } from './StatisticUtils.js'
9bf0ef23 31export {
40615072 32 clone,
9bf0ef23
JB
33 convertToBoolean,
34 convertToDate,
35 convertToFloat,
36 convertToInt,
37 exponentialDelay,
da55bd34 38 extractTimeSeriesValues,
9bf0ef23
JB
39 formatDurationMilliSeconds,
40 formatDurationSeconds,
41 generateUUID,
42 getRandomFloatFluctuatedRounded,
43 getRandomFloatRounded,
9bf0ef23 44 getWebSocketCloseEventStatusString,
80c58041 45 isArraySorted,
244c1396 46 isAsyncFunction,
9bf0ef23
JB
47 isNotEmptyArray,
48 isNotEmptyString,
5dc7c990 49 isValidDate,
276e05ae 50 JSONStringify,
9bf0ef23 51 logPrefix,
9bf0ef23
JB
52 roundTo,
53 secureRandom,
54 sleep,
66a7748d
JB
55 validateUUID
56} from './Utils.js'