1 import type { JsonObject
} from
'./JsonType'
7 export enum ApplicationProtocol
{
12 export enum ProtocolVersion
{
16 export enum AuthenticationType
{
17 PROTOCOL_BASIC_AUTH
= 'protocol-basic-auth'
20 export type ProtocolRequest
= [
21 `${string}-${string}-${string}-${string}-${string}`,
25 export type ProtocolResponse
= [
26 `${string}-${string}-${string}-${string}-${string}`,
30 export type ProtocolRequestHandler
= (
31 payload
: RequestPayload
32 ) => ResponsePayload
| Promise
<ResponsePayload
>
34 export enum ProcedureName
{
35 SIMULATOR_STATE
= 'simulatorState',
36 START_SIMULATOR
= 'startSimulator',
37 STOP_SIMULATOR
= 'stopSimulator',
38 LIST_TEMPLATES
= 'listTemplates',
39 LIST_CHARGING_STATIONS
= 'listChargingStations',
40 ADD_CHARGING_STATIONS
= 'addChargingStations',
41 DELETE_CHARGING_STATIONS
= 'deleteChargingStations',
42 SET_SUPERVISION_URL
= 'setSupervisionUrl',
43 START_CHARGING_STATION
= 'startChargingStation',
44 STOP_CHARGING_STATION
= 'stopChargingStation',
45 OPEN_CONNECTION
= 'openConnection',
46 CLOSE_CONNECTION
= 'closeConnection',
47 START_AUTOMATIC_TRANSACTION_GENERATOR
= 'startAutomaticTransactionGenerator',
48 STOP_AUTOMATIC_TRANSACTION_GENERATOR
= 'stopAutomaticTransactionGenerator',
49 START_TRANSACTION
= 'startTransaction',
50 STOP_TRANSACTION
= 'stopTransaction'
53 export interface RequestPayload
extends JsonObject
{
55 connectorIds
?: number[]
58 export enum ResponseStatus
{
63 export interface ResponsePayload
extends JsonObject
{
64 status: ResponseStatus
68 interface TemplateStatistics
extends JsonObject
{
75 export interface SimulatorState
extends JsonObject
{
78 templateStatistics
: Record
<string, TemplateStatistics
>