X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;ds=sidebyside;f=src%2Futils%2Findex.ts;h=b202225586685306df379e6050cfa6b0a4d58b5f;hb=f0bede86574750d1d894d16a86ef63f83948e7a0;hp=d7ae66b83b7ffc8874bfa5f12ffd3426d10c301f;hpb=60a743910478b70e39dcefa5e1b752ec8a93880e;p=e-mobility-charging-stations-simulator.git diff --git a/src/utils/index.ts b/src/utils/index.ts index d7ae66b8..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 { - Constants, - FileUtils, - CircularArray, - Configuration, - ACElectricUtils, - DCElectricUtils, - logger, - Utils, -} 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'