X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Fui%2Fweb%2Fsrc%2Ftypes%2FUIProtocol.ts;h=443e2352e05b82dca5f8bfdd16b331da70911b8a;hb=eb5ac884f919755e11c78e5c2fdc51bf7b0983c0;hp=22871d688b42d400648ec63000d0ccd9efd3b52b;hpb=fc040c43a050868c037485c658de49576f00fa55;p=e-mobility-charging-stations-simulator.git diff --git a/src/ui/web/src/types/UIProtocol.ts b/src/ui/web/src/types/UIProtocol.ts index 22871d68..443e2352 100644 --- a/src/ui/web/src/types/UIProtocol.ts +++ b/src/ui/web/src/types/UIProtocol.ts @@ -21,19 +21,23 @@ export type ProtocolRequestHandler = ( ) => ResponsePayload | Promise; export enum ProcedureName { + START_SIMULATOR = 'startSimulator', + STOP_SIMULATOR = 'stopSimulator', LIST_CHARGING_STATIONS = 'listChargingStations', START_CHARGING_STATION = 'startChargingStation', STOP_CHARGING_STATION = 'stopChargingStation', - START_TRANSACTION = 'startTransaction', - STOP_TRANSACTION = 'stopTransaction', - START_SIMULATOR = 'startSimulator', - STOP_SIMULATOR = 'stopSimulator', OPEN_CONNECTION = 'openConnection', CLOSE_CONNECTION = 'closeConnection', + START_AUTOMATIC_TRANSACTION_GENERATOR = 'startAutomaticTransactionGenerator', + STOP_AUTOMATIC_TRANSACTION_GENERATOR = 'stopAutomaticTransactionGenerator', + START_TRANSACTION = 'startTransaction', + STOP_TRANSACTION = 'stopTransaction', } + export interface RequestPayload extends JsonObject { - hashId?: string; hashIds?: string[]; + connectorId?: number; + connectorIds?: number[]; } export enum ResponseStatus {