1 import type { EmptyObject
, JsonObject
} from
'../../internal';
3 export enum OCPP20RequestCommand
{
4 BOOT_NOTIFICATION
= 'BootNotification',
5 HEARTBEAT
= 'Heartbeat',
6 STATUS_NOTIFICATION
= 'StatusNotification',
9 export enum OCPP20IncomingRequestCommand
{
10 CLEAR_CACHE
= 'ClearCache',
11 REQUEST_START_TRANSACTION
= 'RequestStartTransaction',
12 REQUEST_STOP_TRANSACTION
= 'RequestStopTransaction',
15 export enum BootReasonEnumType
{
16 ApplicationReset
= 'ApplicationReset',
17 FirmwareUpdate
= 'FirmwareUpdate',
18 LocalReset
= 'LocalReset',
20 RemoteReset
= 'RemoteReset',
21 ScheduledReset
= 'ScheduledReset',
22 Triggered
= 'Triggered',
24 Watchdog
= 'Watchdog',
27 export type ModemType
= {
32 export type ChargingStationType
= {
33 serialNumber
?: string;
36 firmwareVersion
?: string;
40 export type OCPP20BootNotificationRequest
= {
41 reason
: BootReasonEnumType
;
42 chargingStation
: ChargingStationType
;
45 export type OCPP20HeartbeatRequest
= EmptyObject
;
47 export type OCPP20ClearCacheRequest
= EmptyObject
;
49 export enum OCPP20ConnectorStatusEnumType
{
50 AVAILABLE
= 'Available',
51 OCCUPIED
= 'Occupied',
52 RESERVED
= 'Reserved',
53 UNAVAILABLE
= 'Unavailable',
57 export type OCPP20StatusNotificationRequest
= {
59 connectorStatus
: OCPP20ConnectorStatusEnumType
;