ChargingStationWorkerMessageEvents,
} from '../types/ChargingStationWorker';
import type { StationTemplateUrl } from '../types/ConfigurationData';
-import type Statistics from '../types/Statistics';
+import type { Statistics } from '../types/Statistics';
import Configuration from '../utils/Configuration';
import logger from '../utils/Logger';
import Utils from '../utils/Utils';
ChargingStationWorkerMessage,
ChargingStationWorkerMessageEvents,
} from '../types/ChargingStationWorker';
-import type Statistics from '../types/Statistics';
+import type { Statistics } from '../types/Statistics';
import type ChargingStation from './ChargingStation';
export class MessageChannelUtils {
import { MessageChannelUtils } from '../charging-station/MessageChannelUtils';
import { MessageType } from '../types/ocpp/MessageType';
import type { IncomingRequestCommand, RequestCommand } from '../types/ocpp/Requests';
-import type Statistics from '../types/Statistics';
-// eslint-disable-next-line no-duplicate-imports
-import type { StatisticsData, TimeSeries } from '../types/Statistics';
+import type { Statistics, StatisticsData, TimeSeries } from '../types/Statistics';
import { CircularArray, DEFAULT_CIRCULAR_ARRAY_SIZE } from '../utils/CircularArray';
import Configuration from '../utils/Configuration';
import logger from '../utils/Logger';
import lockfile from 'proper-lockfile';
import { FileType } from '../../types/FileType';
-import type Statistics from '../../types/Statistics';
+import type { Statistics } from '../../types/Statistics';
import FileUtils from '../../utils/FileUtils';
import Utils from '../../utils/Utils';
import { Storage } from './Storage';
import { PerformanceData } from '../../types/orm/entities/PerformanceData';
import { PerformanceRecord } from '../../types/orm/entities/PerformanceRecord';
-import type Statistics from '../../types/Statistics';
+import type { Statistics } from '../../types/Statistics';
import { MikroORMDBType, StorageType } from '../../types/Storage';
import Constants from '../../utils/Constants';
import { Storage } from './Storage';
import { MongoClient } from 'mongodb';
-import type Statistics from '../../types/Statistics';
+import type { Statistics } from '../../types/Statistics';
import { StorageType } from '../../types/Storage';
import Constants from '../../utils/Constants';
import { Storage } from './Storage';
import type { EmptyObject } from '../../types/EmptyObject';
import type { HandleErrorParams } from '../../types/Error';
-import type Statistics from '../../types/Statistics';
+import type { Statistics } from '../../types/Statistics';
import { DBName, StorageType } from '../../types/Storage';
import logger from '../../utils/Logger';
import Utils from '../../utils/Utils';
import type { ConnectorStatus } from './ConnectorStatus';
import type { JsonObject } from './JsonType';
import type { BootNotificationResponse } from './ocpp/Responses';
-import type Statistics from './Statistics';
+import type { Statistics } from './Statistics';
import { WorkerData, WorkerMessage, WorkerMessageEvents } from './Worker';
export interface ChargingStationWorkerOptions extends JsonObject {
stdDevTimeMeasurement: number;
};
-export default interface Statistics extends WorkerData {
+export type Statistics = WorkerData & {
id: string;
name: string;
uri: string;
createdAt: Date;
updatedAt?: Date;
statisticsData: Map<string, Partial<StatisticsData>>;
-}
+};