X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Ftypes%2Focpp%2F2.0%2FRequests.ts;h=407fdfe4482bb1e9cb5b157bfe1e6b3523af0a60;hb=6415403ce9894b9a1d7d5d5f698483e58463370f;hp=72ad392eace7838e6e00295ee55189e4d6319345;hpb=81533a206ec56709897f27edf1298e7c86d74c31;p=e-mobility-charging-stations-simulator.git diff --git a/src/types/ocpp/2.0/Requests.ts b/src/types/ocpp/2.0/Requests.ts index 72ad392e..407fdfe4 100644 --- a/src/types/ocpp/2.0/Requests.ts +++ b/src/types/ocpp/2.0/Requests.ts @@ -4,6 +4,7 @@ import type { JsonObject } from '../../JsonType'; export enum OCPP20RequestCommand { BOOT_NOTIFICATION = 'BootNotification', HEARTBEAT = 'Heartbeat', + STATUS_NOTIFICATION = 'StatusNotification', } export enum OCPP20IncomingRequestCommand { @@ -45,3 +46,18 @@ export type OCPP20BootNotificationRequest = { export type OCPP20HeartbeatRequest = EmptyObject; export type OCPP20ClearCacheRequest = EmptyObject; + +export enum OCPP20ConnectorStatusEnumType { + AVAILABLE = 'Available', + OCCUPIED = 'Occupied', + RESERVED = 'Reserved', + UNAVAILABLE = 'Unavailable', + FAULTED = 'Faulted', +} + +export type OCPP20StatusNotificationRequest = { + timestamp: Date; + connectorStatus: OCPP20ConnectorStatusEnumType; + evseId: number; + connectorId: number; +} & JsonObject;