refactor(ui): move the charging stations data array to vue.js global
[e-mobility-charging-stations-simulator.git] / src / types / WorkerBroadcastChannel.ts
index 8d807b9af9beb39724c46e0af3437c5e79c0e09b..caa56e9ff9ae5e674c069bd98c828ced97495cd5 100644 (file)
@@ -10,6 +10,7 @@ export type BroadcastChannelResponse = [string, BroadcastChannelResponsePayload]
 export enum BroadcastChannelProcedureName {
   START_CHARGING_STATION = 'startChargingStation',
   STOP_CHARGING_STATION = 'stopChargingStation',
+  DELETE_CHARGING_STATIONS = 'deleteChargingStations',
   OPEN_CONNECTION = 'openConnection',
   CLOSE_CONNECTION = 'closeConnection',
   START_AUTOMATIC_TRANSACTION_GENERATOR = 'startAutomaticTransactionGenerator',
@@ -34,7 +35,7 @@ export interface BroadcastChannelRequestPayload extends RequestPayload {
 
 export interface BroadcastChannelResponsePayload
   extends Omit<ResponsePayload, 'hashIdsSucceeded' | 'hashIdsFailed' | 'responsesFailed'> {
-  hashId: string
+  hashId: string | undefined
 }
 
 export interface MessageEvent {