-import { JsonObject } from './JsonType';
+import { JsonType } from './JsonType';
export enum Protocol {
UI = 'ui',
}
+export enum ApplicationProtocol {
+ HTTP = 'http',
+ WS = 'ws',
+}
+
export enum ProtocolVersion {
'0.0.1' = '0.0.1',
}
LIST_CHARGING_STATIONS = 'listChargingStations',
START_TRANSACTION = 'startTransaction',
STOP_TRANSACTION = 'stopTransaction',
- UNKNOWN = 'unknown',
}
-export type ProtocolRequest = [ProtocolCommand, JsonObject];
+export type ProtocolRequest = [ProtocolCommand, JsonType];
export type ProtocolRequestHandler = (
- payload: JsonObject
-) => void | Promise<void> | JsonObject | Promise<JsonObject>;
+ payload: JsonType
+) => void | Promise<void> | JsonType | Promise<JsonType>;