X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Futils%2Findex.ts;h=b202225586685306df379e6050cfa6b0a4d58b5f;hb=5948d169983d2660f661661e3ec7ca0f98dbafea;hp=ff5de5a1d9e72bae5c1d48fcb9be721fc18c006d;hpb=01f4001e733ebc61423d3023d87b1399b6afa215;p=e-mobility-charging-stations-simulator.git diff --git a/src/utils/index.ts b/src/utils/index.ts index ff5de5a1..b2022255 100644 --- a/src/utils/index.ts +++ b/src/utils/index.ts @@ -1,10 +1,60 @@ +export { ACElectricUtils, DCElectricUtils } from './ElectricUtils.js' +export { AsyncLock, AsyncLockType } from './AsyncLock.js' export { - ACElectricUtils, - CircularArray, - Configuration, - Constants, - DCElectricUtils, - FileUtils, - Utils, - logger, -} from './internal'; + OutputFormat, + buildChargingStationAutomaticTransactionGeneratorConfiguration, + buildConnectorsStatus, + buildEvsesStatus +} from './ChargingStationConfigurationUtils.js' +export { CircularArray } from './CircularArray.js' +export { Configuration } from './Configuration.js' +export { Constants } from './Constants.js' +export { + handleFileException, + handleUncaughtException, + handleUnhandledRejection, + handleSendMessageError, + setDefaultErrorParams +} from './ErrorUtils.js' +export { watchJsonFile } from './FileUtils.js' +export { + buildPerformanceStatisticsMessage, + buildUpdatedMessage, + buildStartedMessage, + buildStoppedMessage +} from './MessageChannelUtils.js' +export { + isAsyncFunction, + JSONStringifyWithMapSupport, + clone, + convertToBoolean, + convertToDate, + convertToFloat, + convertToInt, + exponentialDelay, + extractTimeSeriesValues, + formatDurationMilliSeconds, + formatDurationSeconds, + generateUUID, + getRandomFloatFluctuatedRounded, + getRandomFloatRounded, + getRandomInteger, + getWebSocketCloseEventStatusString, + isArraySorted, + isEmptyArray, + isEmptyObject, + isEmptyString, + isNotEmptyArray, + isNotEmptyString, + isValidDate, + logPrefix, + max, + min, + once, + roundTo, + secureRandom, + sleep, + validateUUID +} from './Utils.js' +export { average, median, nthPercentile, stdDeviation } from './StatisticUtils.js' +export { logger } from './Logger.js'