X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Futils%2Findex.ts;h=21a650ef42d92d1d69a6b67bc1b85cfe083ce811;hb=1253d60cd246f968e985f6f067204a130b384b72;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..21a650ef 100644 --- a/src/utils/index.ts +++ b/src/utils/index.ts @@ -1,9 +1,63 @@ -export { ACElectricUtils, DCElectricUtils } from './ElectricUtils'; -export { AsyncLock, AsyncLockType } from './AsyncLock'; -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 { logger } from './Logger'; +export { ACElectricUtils, DCElectricUtils } from './ElectricUtils.js' +export { AsyncLock, AsyncLockType } from './AsyncLock.js' +export { + OutputFormat, + buildChargingStationAutomaticTransactionGeneratorConfiguration, + buildConnectorsStatus, + buildEvsesStatus +} from './ChargingStationConfigurationUtils.js' +export { CircularArray } from './CircularArray.js' +export { Configuration } from './Configuration.js' +export { Constants } from './Constants.js' +export { + handleFileException, + handleSendMessageError, + handleUncaughtException, + handleUnhandledRejection, + setDefaultErrorParams +} from './ErrorUtils.js' +export { watchJsonFile } from './FileUtils.js' +export { + buildAddedMessage, + buildChargingStationDataPayload, + buildDeletedMessage, + buildPerformanceStatisticsMessage, + buildStartedMessage, + buildStoppedMessage, + buildUpdatedMessage +} from './MessageChannelUtils.js' +export { + JSONStringifyWithMapSupport, + clone, + convertToBoolean, + convertToDate, + convertToFloat, + convertToInt, + exponentialDelay, + extractTimeSeriesValues, + formatDurationMilliSeconds, + formatDurationSeconds, + generateUUID, + getRandomFloatFluctuatedRounded, + getRandomFloatRounded, + getRandomInteger, + getWebSocketCloseEventStatusString, + isArraySorted, + isAsyncFunction, + 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'