X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Ftypes%2FUIProtocol.ts;h=f48119433d3f7508c783658cdbfe1db63987baff;hb=d929adcc32a8cc79f0c7182d16f70367b001d28c;hp=204051613d3305664fb808f42c5c66a70854ee1a;hpb=2896e06dc8d72adf7150b23c941079f622f6f37c;p=e-mobility-charging-stations-simulator.git diff --git a/src/types/UIProtocol.ts b/src/types/UIProtocol.ts index 20405161..f4811943 100644 --- a/src/types/UIProtocol.ts +++ b/src/types/UIProtocol.ts @@ -1,4 +1,5 @@ -import type { BroadcastChannelResponsePayload, JsonObject } from './internal'; +import type { JsonObject } from './JsonType'; +import type { BroadcastChannelResponsePayload } from './WorkerBroadcastChannel'; export enum Protocol { UI = 'ui', @@ -23,7 +24,7 @@ export type ProtocolResponse = [string, ResponsePayload]; export type ProtocolRequestHandler = ( uuid?: string, procedureName?: ProcedureName, - payload?: RequestPayload + payload?: RequestPayload, ) => undefined | Promise | ResponsePayload | Promise; export enum ProcedureName { @@ -36,6 +37,7 @@ export enum ProcedureName { 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',