X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Futils%2Findex.ts;h=21a650ef42d92d1d69a6b67bc1b85cfe083ce811;hb=0b1828224edf798044ef54672ddfc69598cd99a5;hp=2506da85375da705a69eb0eb516b22ec71fbaa8d;hpb=c8faabc815e314d10188b9c285c61e1e4c367f8c;p=e-mobility-charging-stations-simulator.git diff --git a/src/utils/index.ts b/src/utils/index.ts index 2506da85..21a650ef 100644 --- a/src/utils/index.ts +++ b/src/utils/index.ts @@ -1,27 +1,63 @@ -export { ACElectricUtils, DCElectricUtils } from './ElectricUtils'; -export { AsyncLock, AsyncLockType } from './AsyncLock'; +export { ACElectricUtils, DCElectricUtils } from './ElectricUtils.js' +export { AsyncLock, AsyncLockType } from './AsyncLock.js' export { OutputFormat, buildChargingStationAutomaticTransactionGeneratorConfiguration, buildConnectorsStatus, - buildEvsesStatus, -} from './ChargingStationConfigurationUtils'; -export { CircularArray } from './CircularArray'; -export { Configuration } from './Configuration'; -export { Constants } from './Constants'; + buildEvsesStatus +} from './ChargingStationConfigurationUtils.js' +export { CircularArray } from './CircularArray.js' +export { Configuration } from './Configuration.js' +export { Constants } from './Constants.js' export { handleFileException, + handleSendMessageError, handleUncaughtException, handleUnhandledRejection, - handleSendMessageError, - setDefaultErrorParams, -} from './ErrorUtils'; -export { watchJsonFile } from './FileUtils'; + setDefaultErrorParams +} from './ErrorUtils.js' +export { watchJsonFile } from './FileUtils.js' export { + buildAddedMessage, + buildChargingStationDataPayload, + buildDeletedMessage, buildPerformanceStatisticsMessage, - buildUpdatedMessage, buildStartedMessage, buildStoppedMessage, -} from './MessageChannelUtils'; -export { Utils } from './Utils'; -export { logger } from './Logger'; + 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'