X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Ftypes%2Focpp%2F1.6%2FRequests.ts;h=bbcf5145e321cd560b92b92e68241de9fdfbeedb;hb=d9f60ba1bd2b6d44bc99bf02d76d8da16a0566e6;hp=4a0cda58b057dd110bd9a79ffa9593aee51bb701;hpb=f738a0e9257a5bd6d46a79a5845b929c4a06e94f;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 4a0cda58..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 {} @@ -63,3 +84,8 @@ export enum ResetType { export interface ResetRequest { type: ResetType; } + +export interface SetChargingProfileRequest { + connectorId: number; + csChargingProfiles: ChargingProfile; +}