X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Futils%2Findex.ts;h=7c876834ed260ee32aad32656edab3d7e5fac3f5;hb=42b8cf5cdca8eaab1e7442f7c92c2a5ed97434f6;hp=6a68f64f7cdd7492f1e6d627a201d4a948fcb21e;hpb=516dee136cf113684286054f85481d66c7961b49;p=e-mobility-charging-stations-simulator.git diff --git a/src/utils/index.ts b/src/utils/index.ts index 6a68f64f..7c876834 100644 --- a/src/utils/index.ts +++ b/src/utils/index.ts @@ -1,8 +1,61 @@ 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 { 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, + max, + min, + once, + roundTo, + secureRandom, + sleep, + validateUUID, +} from './Utils'; +export { average, median, nthPercentile, stdDeviation } from './StatisticUtils'; export { logger } from './Logger';