X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=ui%2Fweb%2Fsrc%2Ftypes%2FUIProtocol.ts;h=5b3efcdcef1efb81cccc8eeddc5525ccda0797f1;hb=e82376450bef7a755869accf8f662826147832d8;hp=afc55b03069540e6f7a48b7e86dec88f4cea1291;hpb=f8696170fe4343a6fef450a6f0d4a47daccbcee0;p=e-mobility-charging-stations-simulator.git diff --git a/ui/web/src/types/UIProtocol.ts b/ui/web/src/types/UIProtocol.ts index afc55b03..5b3efcdc 100644 --- a/ui/web/src/types/UIProtocol.ts +++ b/ui/web/src/types/UIProtocol.ts @@ -25,6 +25,7 @@ export type ProtocolRequestHandler = ( ) => ResponsePayload | Promise export enum ProcedureName { + SIMULATOR_STATE = 'simulatorState', START_SIMULATOR = 'startSimulator', STOP_SIMULATOR = 'stopSimulator', LIST_TEMPLATES = 'listTemplates', @@ -56,3 +57,16 @@ export interface ResponsePayload extends JsonObject { status: ResponseStatus hashIds?: string[] } + +interface TemplateStatistics extends JsonObject { + configured: number + added: number + started: number + indexes: number[] +} + +export interface SimulatorState extends JsonObject { + version: string + started: boolean + templateStatistics: Record +}