refactor: improve types testing types definition
[e-mobility-charging-stations-simulator.git] / src / utils / index.ts
index 6cb58d8328fcbac8dcef088aa9ee85c6d65080cb..58fc23762b3cc5fd9f709bfcee5db0cdbc116647 100644 (file)
@@ -1,12 +1,59 @@
+export { ACElectricUtils, DCElectricUtils } from './ElectricUtils.js'
+export { AsyncLock, AsyncLockType } from './AsyncLock.js'
 export {
-  ACElectricUtils,
-  AsyncLock,
-  AsyncLockType,
-  CircularArray,
-  Configuration,
-  Constants,
-  DCElectricUtils,
-  FileUtils,
-  Utils,
-  logger,
-} from './internal';
+  OutputFormat,
+  buildChargingStationAutomaticTransactionGeneratorConfiguration,
+  buildConnectorsStatus,
+  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,
+  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'