feat: expose template stats to UI server simulatorState command
[e-mobility-charging-stations-simulator.git] / src / utils / index.ts
1 export { ACElectricUtils, DCElectricUtils } from './ElectricUtils.js'
2 export { AsyncLock, AsyncLockType } from './AsyncLock.js'
3 export {
4 OutputFormat,
5 buildChargingStationAutomaticTransactionGeneratorConfiguration,
6 buildConnectorsStatus,
7 buildEvsesStatus
8 } from './ChargingStationConfigurationUtils.js'
9 export { CircularArray } from './CircularArray.js'
10 export { Configuration } from './Configuration.js'
11 export { Constants } from './Constants.js'
12 export {
13 handleFileException,
14 handleSendMessageError,
15 handleUncaughtException,
16 handleUnhandledRejection,
17 setDefaultErrorParams
18 } from './ErrorUtils.js'
19 export { watchJsonFile } from './FileUtils.js'
20 export {
21 buildAddedMessage,
22 buildChargingStationDataPayload,
23 buildDeletedMessage,
24 buildPerformanceStatisticsMessage,
25 buildStartedMessage,
26 buildStoppedMessage,
27 buildTemplateStatisticsPayload,
28 buildUpdatedMessage
29 } from './MessageChannelUtils.js'
30 export {
31 JSONStringifyWithMapSupport,
32 clone,
33 convertToBoolean,
34 convertToDate,
35 convertToFloat,
36 convertToInt,
37 exponentialDelay,
38 extractTimeSeriesValues,
39 formatDurationMilliSeconds,
40 formatDurationSeconds,
41 generateUUID,
42 getRandomFloatFluctuatedRounded,
43 getRandomFloatRounded,
44 getRandomInteger,
45 getWebSocketCloseEventStatusString,
46 isArraySorted,
47 isAsyncFunction,
48 isEmptyArray,
49 isEmptyObject,
50 isEmptyString,
51 isNotEmptyArray,
52 isNotEmptyString,
53 isValidDate,
54 logPrefix,
55 max,
56 min,
57 once,
58 roundTo,
59 secureRandom,
60 sleep,
61 validateUUID
62 } from './Utils.js'
63 export { average, median, nthPercentile, stdDeviation } from './StatisticUtils.js'
64 export { logger } from './Logger.js'