refactor: cleanup utils export
[e-mobility-charging-stations-simulator.git] / src / utils / index.ts
index 397ea764603fef677999c0d233312730dae9a7e0..e1d6734c9c1fba31a6bf7eaeaad68e3e44abd913 100644 (file)
@@ -1,31 +1,34 @@
-export { ACElectricUtils, DCElectricUtils } from './ElectricUtils.js'
 export { AsyncLock, AsyncLockType } from './AsyncLock.js'
 export {
-  OutputFormat,
   buildChargingStationAutomaticTransactionGeneratorConfiguration,
   buildConnectorsStatus,
-  buildEvsesStatus
+  buildEvsesStatus,
+  OutputFormat
 } from './ChargingStationConfigurationUtils.js'
 export { CircularArray } from './CircularArray.js'
 export { Configuration } from './Configuration.js'
 export { Constants } from './Constants.js'
+export { ACElectricUtils, DCElectricUtils } from './ElectricUtils.js'
 export {
   handleFileException,
+  handleSendMessageError,
   handleUncaughtException,
   handleUnhandledRejection,
-  handleSendMessageError,
   setDefaultErrorParams
 } from './ErrorUtils.js'
 export { watchJsonFile } from './FileUtils.js'
+export { logger } from './Logger.js'
 export {
+  buildAddedMessage,
+  buildDeletedMessage,
   buildPerformanceStatisticsMessage,
-  buildUpdatedMessage,
   buildStartedMessage,
-  buildStoppedMessage
+  buildStoppedMessage,
+  buildUpdatedMessage
 } from './MessageChannelUtils.js'
+export { max, min, nthPercentile, stdDeviation } from './StatisticUtils.js'
 export {
-  JSONStringifyWithMapSupport,
-  cloneObject,
+  clone,
   convertToBoolean,
   convertToDate,
   convertToFloat,
@@ -37,23 +40,16 @@ export {
   generateUUID,
   getRandomFloatFluctuatedRounded,
   getRandomFloatRounded,
-  getRandomInteger,
   getWebSocketCloseEventStatusString,
   isArraySorted,
-  isEmptyArray,
-  isEmptyObject,
-  isEmptyString,
+  isAsyncFunction,
   isNotEmptyArray,
   isNotEmptyString,
-  isValidTime,
+  isValidDate,
+  JSONStringify,
   logPrefix,
-  max,
-  min,
-  once,
   roundTo,
   secureRandom,
   sleep,
   validateUUID
 } from './Utils.js'
-export { average, median, nthPercentile, stdDeviation } from './StatisticUtils.js'
-export { logger } from './Logger.js'