X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Futils%2Findex.ts;h=397ea764603fef677999c0d233312730dae9a7e0;hb=77b4dcc3d3fbd2148f2723df593cce10174e3358;hp=b034c9a28f26b93b1ae5c6fa94a07213023ee1af;hpb=179ed3677e63ff8cc9c49acb55b5d6330ee3802b;p=e-mobility-charging-stations-simulator.git diff --git a/src/utils/index.ts b/src/utils/index.ts index b034c9a2..397ea764 100644 --- a/src/utils/index.ts +++ b/src/utils/index.ts @@ -1,16 +1,59 @@ -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'; -export { ErrorUtils } from './ErrorUtils'; -export { FileUtils } from './FileUtils'; -export { MessageChannelUtils } from './MessageChannelUtils'; -export { Utils } from './Utils'; -export { logger } from './Logger'; + 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 { + JSONStringifyWithMapSupport, + cloneObject, + convertToBoolean, + convertToDate, + convertToFloat, + convertToInt, + exponentialDelay, + extractTimeSeriesValues, + formatDurationMilliSeconds, + formatDurationSeconds, + generateUUID, + getRandomFloatFluctuatedRounded, + getRandomFloatRounded, + getRandomInteger, + getWebSocketCloseEventStatusString, + isArraySorted, + isEmptyArray, + isEmptyObject, + isEmptyString, + isNotEmptyArray, + isNotEmptyString, + isValidTime, + logPrefix, + max, + min, + once, + roundTo, + secureRandom, + sleep, + validateUUID +} from './Utils.js' +export { average, median, nthPercentile, stdDeviation } from './StatisticUtils.js' +export { logger } from './Logger.js'