import { hoursToMilliseconds, secondsToMilliseconds } from 'date-fns';
import type { ChargingStation } from './ChargingStation';
-import { checkChargingStation } from './ChargingStationUtils';
import { IdTagsCache } from './IdTagsCache';
+import { checkChargingStation } from './Utils';
import { BaseError } from '../exception';
import { PerformanceStatistics } from '../performance';
import {
import chalk from 'chalk';
import { availableParallelism } from 'poolifier';
-import { waitChargingStationEvents } from './ChargingStationUtils';
import type { AbstractUIServer } from './ui-server/AbstractUIServer';
import { UIServerFactory } from './ui-server/UIServerFactory';
+import { waitChargingStationEvents } from './Utils';
import { version } from '../../package.json' assert { type: 'json' };
import { BaseError } from '../exception';
import { type Storage, StorageFactory } from '../performance';
deleteConfigurationKey,
getConfigurationKey,
setConfigurationKeyValue,
-} from './ChargingStationConfigurationKeyUtils';
+} from './ConfigurationKeyUtils';
+import { IdTagsCache } from './IdTagsCache';
+import {
+ OCPP16IncomingRequestService,
+ OCPP16RequestService,
+ OCPP16ResponseService,
+ OCPP16ServiceUtils,
+ OCPP20IncomingRequestService,
+ OCPP20RequestService,
+ OCPP20ResponseService,
+ type OCPPIncomingRequestService,
+ type OCPPRequestService,
+ OCPPServiceUtils,
+} from './ocpp';
+import { SharedLRUCache } from './SharedLRUCache';
import {
buildConnectorsMap,
checkConnectorsConfiguration,
propagateSerialNumber,
stationTemplateToStationInfo,
warnTemplateKeysDeprecation,
-} from './ChargingStationUtils';
-import { IdTagsCache } from './IdTagsCache';
-import {
- OCPP16IncomingRequestService,
- OCPP16RequestService,
- OCPP16ResponseService,
- OCPP16ServiceUtils,
- OCPP20IncomingRequestService,
- OCPP20RequestService,
- OCPP20ResponseService,
- type OCPPIncomingRequestService,
- type OCPPRequestService,
- OCPPServiceUtils,
-} from './ocpp';
-import { SharedLRUCache } from './SharedLRUCache';
+} from './Utils';
import { BaseError, OCPPError } from '../exception';
import { PerformanceStatistics } from '../performance';
import {
import { type FSWatcher, readFileSync } from 'node:fs';
import type { ChargingStation } from './ChargingStation';
-import { getIdTagsFile } from './ChargingStationUtils';
+import { getIdTagsFile } from './Utils';
import { FileType, IdTagDistribution } from '../types';
import {
handleFileException,
} from 'date-fns';
import type { ChargingStation } from './ChargingStation';
-import { getConfigurationKey } from './ChargingStationConfigurationKeyUtils';
+import { getConfigurationKey } from './ConfigurationKeyUtils';
import { BaseError } from '../exception';
import {
AmpereUnits,
secureRandom,
} from '../utils';
-const moduleName = 'ChargingStationUtils';
+const moduleName = 'Utils';
export const getChargingStationId = (
index: number,
} from '../../types';
import { Constants, convertToInt, isEmptyObject, isNullOrUndefined, logger } from '../../utils';
import type { ChargingStation } from '../ChargingStation';
-import { getConfigurationKey } from '../ChargingStationConfigurationKeyUtils';
+import { getConfigurationKey } from '../ConfigurationKeyUtils';
import { OCPP16ServiceUtils } from '../ocpp';
const moduleName = 'ChargingStationWorkerBroadcastChannel';
addConfigurationKey,
getConfigurationKey,
setConfigurationKeyValue,
-} from './ChargingStationConfigurationKeyUtils';
+} from './ConfigurationKeyUtils';
export {
getIdTagsFile,
checkChargingStation,
resetConnectorStatus,
hasFeatureProfile,
-} from './ChargingStationUtils';
+} from './Utils';