X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;ds=sidebyside;f=src%2Ftypes%2Focpp%2F1.6%2FRequests.ts;h=bbcf5145e321cd560b92b92e68241de9fdfbeedb;hb=d9f60ba1bd2b6d44bc99bf02d76d8da16a0566e6;hp=e8368793e5835f56a141c9268317767f7bffffc8;hpb=8c476a1f1117b85fa29a435fc8733a482472139f;p=e-mobility-charging-stations-simulator.git diff --git a/src/types/ocpp/1.6/Requests.ts b/src/types/ocpp/1.6/Requests.ts index e8368793..bbcf5145 100644 --- a/src/types/ocpp/1.6/Requests.ts +++ b/src/types/ocpp/1.6/Requests.ts @@ -7,6 +7,27 @@ export default interface Requests { [id: string]: [(payload?, requestPayload?) => void, (error?: OCPPError) => void, Record]; } +export enum RequestCommand { + BOOT_NOTIFICATION = 'BootNotification', + HEARTBEAT = 'Heartbeat', + STATUS_NOTIFICATION = 'StatusNotification', + CHANGE_CONFIGURATION = 'ChangeConfiguration', + START_TRANSACTION = 'StartTransaction', + STOP_TRANSACTION = 'StopTransaction', + METERVALUES = 'MeterValues' +} + +export enum IncomingRequestCommand { + RESET = 'Reset', + CLEAR_CACHE = 'ClearCache', + UNLOCK_CONNECTOR = 'UnlockConnector', + GET_CONFIGURATION = 'GetConfiguration', + CHANGE_CONFIGURATION = 'ChangeConfiguration', + SET_CHARGING_PROFILE = 'SetChargingProfile', + REMOTE_START_TRANSACTION = 'RemoteStartTransaction', + REMOTE_STOP_TRANSACTION = 'RemoteStopTransaction' +} + // eslint-disable-next-line @typescript-eslint/no-empty-interface export interface HeartbeatRequest {}