Merge pull request #921 from SAP/combined-prs-branch
[e-mobility-charging-stations-simulator.git] / src / types / WorkerBroadcastChannel.ts
index 8d807b9af9beb39724c46e0af3437c5e79c0e09b..9ea1a0e615bc3a3d5beb7b9d9481aa9bff2d1a08 100644 (file)
@@ -3,7 +3,7 @@ import type { RequestPayload, ResponsePayload } from './UIProtocol.js'
 export type BroadcastChannelRequest = [
   string,
   BroadcastChannelProcedureName,
-  BroadcastChannelRequestPayload
+  BroadcastChannelRequestPayload,
 ]
 export type BroadcastChannelResponse = [string, BroadcastChannelResponsePayload]
 
@@ -24,7 +24,7 @@ export enum BroadcastChannelProcedureName {
   METER_VALUES = 'meterValues',
   DATA_TRANSFER = 'dataTransfer',
   DIAGNOSTICS_STATUS_NOTIFICATION = 'diagnosticsStatusNotification',
-  FIRMWARE_STATUS_NOTIFICATION = 'firmwareStatusNotification'
+  FIRMWARE_STATUS_NOTIFICATION = 'firmwareStatusNotification',
 }
 
 export interface BroadcastChannelRequestPayload extends RequestPayload {
@@ -34,7 +34,7 @@ export interface BroadcastChannelRequestPayload extends RequestPayload {
 
 export interface BroadcastChannelResponsePayload
   extends Omit<ResponsePayload, 'hashIdsSucceeded' | 'hashIdsFailed' | 'responsesFailed'> {
-  hashId: string
+  hashId: string | undefined
 }
 
 export interface MessageEvent {