refactor: revert internal exports
[e-mobility-charging-stations-simulator.git] / src / types / Statistics.ts
index 37460aee97cb0382cc322a4f8745d77204045d1e..59d13108d08e9425fc474e0aa4fd9b87c289e02f 100644 (file)
@@ -1,13 +1,13 @@
-import type { CircularArray } from '../utils/CircularArray';
 import type { IncomingRequestCommand, RequestCommand } from './ocpp/Requests';
-import type { WorkerData } from './Worker';
+import type { CircularArray } from '../utils';
+import type { WorkerData } from '../worker';
 
 export type TimeSeries = {
   timestamp: number;
   value: number;
 };
 
-export type StatisticsData = {
+type StatisticsData = {
   countRequest: number;
   countResponse: number;
   countError: number;
@@ -23,11 +23,11 @@ export type StatisticsData = {
   stdDevTimeMeasurement: number;
 };
 
-export type Statistics = WorkerData & {
+export type Statistics = {
   id: string;
   name: string;
   uri: string;
   createdAt: Date;
   updatedAt?: Date;
-  statisticsData: Map<string, Partial<StatisticsData>>;
-};
+  statisticsData: Map<string | RequestCommand | IncomingRequestCommand, Partial<StatisticsData>>;
+} & WorkerData;