fix: fix gap in schedule periods in composeChargingSchedules()
[e-mobility-charging-stations-simulator.git] / src / types / WorkerBroadcastChannel.ts
index 3656fe3a9a1e8618375271002850ccd407a6e5fc..abc33752cb10616fde5474a4f68c2843675a911c 100644 (file)
@@ -1,9 +1,9 @@
-import type { RequestPayload, ResponsePayload } from './internal';
+import type { RequestPayload, ResponsePayload } from './UIProtocol';
 
 export type BroadcastChannelRequest = [
   string,
   BroadcastChannelProcedureName,
-  BroadcastChannelRequestPayload
+  BroadcastChannelRequestPayload,
 ];
 export type BroadcastChannelResponse = [string, BroadcastChannelResponsePayload];
 
@@ -14,6 +14,7 @@ export enum BroadcastChannelProcedureName {
   CLOSE_CONNECTION = 'closeConnection',
   START_AUTOMATIC_TRANSACTION_GENERATOR = 'startAutomaticTransactionGenerator',
   STOP_AUTOMATIC_TRANSACTION_GENERATOR = 'stopAutomaticTransactionGenerator',
+  SET_SUPERVISION_URL = 'setSupervisionUrl',
   START_TRANSACTION = 'startTransaction',
   STOP_TRANSACTION = 'stopTransaction',
   AUTHORIZE = 'authorize',
@@ -36,4 +37,6 @@ export interface BroadcastChannelResponsePayload
   hashId: string;
 }
 
-export type MessageEvent = { data: BroadcastChannelRequest | BroadcastChannelResponse };
+export interface MessageEvent {
+  data: BroadcastChannelRequest | BroadcastChannelResponse;
+}