-import { JsonObject } from './JsonType';
+import type { JsonObject } from './JsonType';
export enum Protocol {
UI = 'ui',
export type ProtocolRequestHandler = (
uuid?: string,
payload?: RequestPayload
-) => ResponsePayload | Promise<ResponsePayload>;
+) => undefined | Promise<undefined> | ResponsePayload | Promise<ResponsePayload>;
export enum ProcedureName {
LIST_CHARGING_STATIONS = 'listChargingStations',
STOP_TRANSACTION = 'stopTransaction',
START_SIMULATOR = 'startSimulator',
STOP_SIMULATOR = 'stopSimulator',
+ OPEN_CONNECTION = 'openConnection',
+ CLOSE_CONNECTION = 'closeConnection',
}
+
export interface RequestPayload extends JsonObject {
hashId?: string;
+ hashIds?: string[];
}
export enum ResponseStatus {
export interface ResponsePayload extends JsonObject {
status: ResponseStatus;
+ hashIds?: string[];
}