Commit | Line | Data |
---|---|---|
28f1c574 JB |
1 | import type { |
2 | BootReasonEnumType, | |
3 | EmptyObject, | |
4 | JsonObject, | |
5 | OCPP20ConnectorStatusEnumType, | |
6 | OCPP20SetVariableDataType, | |
7 | } from '../../internal'; | |
953d6b02 | 8 | |
d270cc87 JB |
9 | export enum OCPP20RequestCommand { |
10 | BOOT_NOTIFICATION = 'BootNotification', | |
11 | HEARTBEAT = 'Heartbeat', | |
6e939d9e | 12 | STATUS_NOTIFICATION = 'StatusNotification', |
d270cc87 JB |
13 | } |
14 | ||
15 | export enum OCPP20IncomingRequestCommand { | |
16 | CLEAR_CACHE = 'ClearCache', | |
81533a20 JB |
17 | REQUEST_START_TRANSACTION = 'RequestStartTransaction', |
18 | REQUEST_STOP_TRANSACTION = 'RequestStopTransaction', | |
d270cc87 JB |
19 | } |
20 | ||
28f1c574 | 21 | type ModemType = { |
d270cc87 JB |
22 | iccid?: string; |
23 | imsi?: string; | |
24 | } & JsonObject; | |
25 | ||
28f1c574 | 26 | type ChargingStationType = { |
d270cc87 JB |
27 | serialNumber?: string; |
28 | model: string; | |
29 | vendorName: string; | |
30 | firmwareVersion?: string; | |
31 | modem?: ModemType; | |
32 | } & JsonObject; | |
33 | ||
34 | export type OCPP20BootNotificationRequest = { | |
35 | reason: BootReasonEnumType; | |
36 | chargingStation: ChargingStationType; | |
37 | } & JsonObject; | |
38 | ||
81533a20 JB |
39 | export type OCPP20HeartbeatRequest = EmptyObject; |
40 | ||
d270cc87 | 41 | export type OCPP20ClearCacheRequest = EmptyObject; |
6e939d9e | 42 | |
6e939d9e JB |
43 | export type OCPP20StatusNotificationRequest = { |
44 | timestamp: Date; | |
45 | connectorStatus: OCPP20ConnectorStatusEnumType; | |
46 | evseId: number; | |
47 | connectorId: number; | |
6415403c | 48 | } & JsonObject; |
28f1c574 JB |
49 | |
50 | export type OCPP20SetVariablesRequest = { | |
51 | setVariableData: OCPP20SetVariableDataType[]; | |
52 | } & JsonObject; |