X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Futils%2Findex.ts;h=1cdd45ee37c41b0b47591f7bf4dc13c6bd16c793;hb=d929adcc32a8cc79f0c7182d16f70367b001d28c;hp=32d351bca5c366d3b61669bb3ae245bfe3eebe48;hpb=51022aa0d811eec79514fbeb56cb9556e7168cd7;p=e-mobility-charging-stations-simulator.git diff --git a/src/utils/index.ts b/src/utils/index.ts index 32d351bc..1cdd45ee 100644 --- a/src/utils/index.ts +++ b/src/utils/index.ts @@ -1,9 +1,59 @@ export { ACElectricUtils, DCElectricUtils } from './ElectricUtils'; export { AsyncLock, AsyncLockType } from './AsyncLock'; +export { + OutputFormat, + buildChargingStationAutomaticTransactionGeneratorConfiguration, + buildConnectorsStatus, + buildEvsesStatus, +} from './ChargingStationConfigurationUtils'; export { CircularArray } from './CircularArray'; export { Configuration } from './Configuration'; export { Constants } from './Constants'; -export { ErrorUtils } from './ErrorUtils'; -export { FileUtils } from './FileUtils'; -export { Utils } from './Utils'; +export { + handleFileException, + handleUncaughtException, + handleUnhandledRejection, + handleSendMessageError, + setDefaultErrorParams, +} from './ErrorUtils'; +export { watchJsonFile } from './FileUtils'; +export { + buildPerformanceStatisticsMessage, + buildUpdatedMessage, + buildStartedMessage, + buildStoppedMessage, +} from './MessageChannelUtils'; +export { + JSONStringifyWithMapSupport, + cloneObject, + convertToBoolean, + convertToDate, + convertToFloat, + convertToInt, + exponentialDelay, + extractTimeSeriesValues, + formatDurationMilliSeconds, + formatDurationSeconds, + generateUUID, + getRandomFloatFluctuatedRounded, + getRandomFloatRounded, + getRandomInteger, + getWebSocketCloseEventStatusString, + isArraySorted, + isEmptyArray, + isEmptyObject, + isEmptyString, + isNotEmptyArray, + isNotEmptyString, + isNullOrUndefined, + isUndefined, + isValidTime, + logPrefix, + promiseWithTimeout, + roundTo, + secureRandom, + sleep, + validateUUID, +} from './Utils'; +export { median, nthPercentile, stdDeviation } from './StatisticUtils'; export { logger } from './Logger';