Commit | Line | Data |
---|---|---|
d270cc87 JB |
1 | import type { EmptyObject } from '../../EmptyObject'; |
2 | import type { JsonObject } from '../../JsonType'; | |
953d6b02 | 3 | |
d270cc87 JB |
4 | export enum OCPP20RequestCommand { |
5 | BOOT_NOTIFICATION = 'BootNotification', | |
6 | HEARTBEAT = 'Heartbeat', | |
7 | } | |
8 | ||
9 | export enum OCPP20IncomingRequestCommand { | |
10 | CLEAR_CACHE = 'ClearCache', | |
81533a20 JB |
11 | REQUEST_START_TRANSACTION = 'RequestStartTransaction', |
12 | REQUEST_STOP_TRANSACTION = 'RequestStopTransaction', | |
d270cc87 JB |
13 | } |
14 | ||
15 | export enum BootReasonEnumType { | |
16 | ApplicationReset = 'ApplicationReset', | |
17 | FirmwareUpdate = 'FirmwareUpdate', | |
18 | LocalReset = 'LocalReset', | |
19 | PowerUp = 'PowerUp', | |
20 | RemoteReset = 'RemoteReset', | |
21 | ScheduledReset = 'ScheduledReset', | |
22 | Triggered = 'Triggered', | |
23 | Unknown = 'Unknown', | |
24 | Watchdog = 'Watchdog', | |
25 | } | |
26 | ||
27 | export type ModemType = { | |
28 | iccid?: string; | |
29 | imsi?: string; | |
30 | } & JsonObject; | |
31 | ||
32 | export type ChargingStationType = { | |
33 | serialNumber?: string; | |
34 | model: string; | |
35 | vendorName: string; | |
36 | firmwareVersion?: string; | |
37 | modem?: ModemType; | |
38 | } & JsonObject; | |
39 | ||
40 | export type OCPP20BootNotificationRequest = { | |
41 | reason: BootReasonEnumType; | |
42 | chargingStation: ChargingStationType; | |
43 | } & JsonObject; | |
44 | ||
81533a20 JB |
45 | export type OCPP20HeartbeatRequest = EmptyObject; |
46 | ||
d270cc87 | 47 | export type OCPP20ClearCacheRequest = EmptyObject; |