X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;ds=sidebyside;f=src%2Futils%2Findex.ts;h=4d5a38acfe4c35ca977ab64b5139fd8602518028;hb=c1c97db8708f26af10385f6e86af7cd933891bb8;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..4d5a38ac 100644 --- a/src/utils/index.ts +++ b/src/utils/index.ts @@ -1,10 +1,57 @@ +export { ACElectricUtils, DCElectricUtils } from './ElectricUtils'; +export { AsyncLock, AsyncLockType } from './AsyncLock'; export { - ACElectricUtils, - CircularArray, - Configuration, - Constants, - DCElectricUtils, - FileUtils, - Utils, - logger, -} from './internal'; + OutputFormat, + buildChargingStationAutomaticTransactionGeneratorConfiguration, + buildConnectorsStatus, + buildEvsesStatus, +} from './ChargingStationConfigurationUtils'; +export { CircularArray } from './CircularArray'; +export { Configuration } from './Configuration'; +export { Constants } from './Constants'; +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, + isEmptyArray, + isEmptyObject, + isEmptyString, + isNotEmptyArray, + isNotEmptyString, + isNullOrUndefined, + isUndefined, + logPrefix, + promiseWithTimeout, + roundTo, + secureRandom, + sleep, + validateUUID, +} from './Utils'; +export { median, nthPercentile, stdDeviation } from './StatisticUtils'; +export { logger } from './Logger';