X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Ftypes%2FWorkerBroadcastChannel.ts;h=abc33752cb10616fde5474a4f68c2843675a911c;hb=c4ab56bac3353a08b0b7e058e9edfcfc0e629c94;hp=3656fe3a9a1e8618375271002850ccd407a6e5fc;hpb=2896e06dc8d72adf7150b23c941079f622f6f37c;p=e-mobility-charging-stations-simulator.git diff --git a/src/types/WorkerBroadcastChannel.ts b/src/types/WorkerBroadcastChannel.ts index 3656fe3a..abc33752 100644 --- a/src/types/WorkerBroadcastChannel.ts +++ b/src/types/WorkerBroadcastChannel.ts @@ -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; +}