X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;ds=sidebyside;f=src%2Ftypes%2FStatistics.ts;h=59d13108d08e9425fc474e0aa4fd9b87c289e02f;hb=baa539e6b66a5c479327f48195df5a4133b8c0e7;hp=26f6bc9fc39281a9e1777721b6e0b53408d42c8b;hpb=83e00df1c1ba02de8b637ca4cb0464eb909ebb18;p=e-mobility-charging-stations-simulator.git diff --git a/src/types/Statistics.ts b/src/types/Statistics.ts index 26f6bc9f..59d13108 100644 --- a/src/types/Statistics.ts +++ b/src/types/Statistics.ts @@ -1,12 +1,13 @@ -import type { CircularArray } from '../utils/CircularArray'; -import type { WorkerData } from './Worker'; +import type { IncomingRequestCommand, RequestCommand } from './ocpp/Requests'; +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; @@ -22,11 +23,11 @@ export type StatisticsData = { stdDevTimeMeasurement: number; }; -export default interface Statistics extends WorkerData { +export type Statistics = { id: string; name: string; uri: string; createdAt: Date; updatedAt?: Date; - statisticsData: Map>; -} + statisticsData: Map>; +} & WorkerData;