build(ci): fix pnpm lock file
[e-mobility-charging-stations-simulator.git] / src / types / WorkerBroadcastChannel.ts
index 8d807b9af9beb39724c46e0af3437c5e79c0e09b..077c2f3750acce4fe2e6ece971e8aff3ba5d5d09 100644 (file)
@@ -1,15 +1,19 @@
 import type { RequestPayload, ResponsePayload } from './UIProtocol.js'
 
 export type BroadcastChannelRequest = [
-  string,
+  `${string}-${string}-${string}-${string}-${string}`,
   BroadcastChannelProcedureName,
   BroadcastChannelRequestPayload
 ]
-export type BroadcastChannelResponse = [string, BroadcastChannelResponsePayload]
+export type BroadcastChannelResponse = [
+  `${string}-${string}-${string}-${string}-${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 +38,7 @@ export interface BroadcastChannelRequestPayload extends RequestPayload {
 
 export interface BroadcastChannelResponsePayload
   extends Omit<ResponsePayload, 'hashIdsSucceeded' | 'hashIdsFailed' | 'responsesFailed'> {
-  hashId: string
+  hashId: string | undefined
 }
 
 export interface MessageEvent {