X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Ftypes%2FChargingStationWorker.ts;h=64849fc1aaad5af2ccfde7a2653021a109831362;hb=e0d3c3592f990eadb77780b324ceaa105ba44dfa;hp=2326d765c7ddd05f3021cb46d1d001ae2f4da0b9;hpb=8cc482a9324a0989516b6eb6db85a16258c4b4d1;p=e-mobility-charging-stations-simulator.git diff --git a/src/types/ChargingStationWorker.ts b/src/types/ChargingStationWorker.ts index 2326d765..64849fc1 100644 --- a/src/types/ChargingStationWorker.ts +++ b/src/types/ChargingStationWorker.ts @@ -1,6 +1,7 @@ import type { WebSocket } from 'ws'; import type { ChargingStationAutomaticTransactionGeneratorConfiguration } from './AutomaticTransactionGenerator'; +import { ChargingStationEvents } from './ChargingStationEvents'; import type { ChargingStationInfo } from './ChargingStationInfo'; import type { ChargingStationOcppConfiguration } from './ChargingStationOcppConfiguration'; import type { ConnectorStatus } from './ConnectorStatus'; @@ -40,17 +41,18 @@ export interface ChargingStationData extends WorkerData { } enum ChargingStationMessageEvents { - started = 'started', - stopped = 'stopped', - updated = 'updated', performanceStatistics = 'performanceStatistics', } export const ChargingStationWorkerMessageEvents = { ...WorkerMessageEvents, + ...ChargingStationEvents, ...ChargingStationMessageEvents, } as const; -export type ChargingStationWorkerMessageEvents = WorkerMessageEvents | ChargingStationMessageEvents; +export type ChargingStationWorkerMessageEvents = + | WorkerMessageEvents + | ChargingStationEvents + | ChargingStationMessageEvents; export type ChargingStationWorkerMessageData = ChargingStationData | Statistics;