Add BootNotification and ClearCache OCPP 2.0.1 commands support
[e-mobility-charging-stations-simulator.git] / src / types / ocpp / 2.0 / Requests.ts
1 import type { EmptyObject } from '../../EmptyObject';
2 import type { JsonObject } from '../../JsonType';
3
4 export enum OCPP20RequestCommand {
5 BOOT_NOTIFICATION = 'BootNotification',
6 HEARTBEAT = 'Heartbeat',
7 }
8
9 export enum OCPP20IncomingRequestCommand {
10 CLEAR_CACHE = 'ClearCache',
11 }
12
13 export enum BootReasonEnumType {
14 ApplicationReset = 'ApplicationReset',
15 FirmwareUpdate = 'FirmwareUpdate',
16 LocalReset = 'LocalReset',
17 PowerUp = 'PowerUp',
18 RemoteReset = 'RemoteReset',
19 ScheduledReset = 'ScheduledReset',
20 Triggered = 'Triggered',
21 Unknown = 'Unknown',
22 Watchdog = 'Watchdog',
23 }
24
25 export type ModemType = {
26 iccid?: string;
27 imsi?: string;
28 } & JsonObject;
29
30 export type ChargingStationType = {
31 serialNumber?: string;
32 model: string;
33 vendorName: string;
34 firmwareVersion?: string;
35 modem?: ModemType;
36 } & JsonObject;
37
38 export type OCPP20BootNotificationRequest = {
39 reason: BootReasonEnumType;
40 chargingStation: ChargingStationType;
41 } & JsonObject;
42
43 export type OCPP20ClearCacheRequest = EmptyObject;