perf(simulator): filter array for undefined before running map()
[e-mobility-charging-stations-simulator.git] / src / types / ocpp / 2.0 / Responses.ts
CommitLineData
6e939d9e 1import type { EmptyObject } from '../../EmptyObject';
d270cc87 2import type { JsonObject } from '../../JsonType';
f03e1042 3import type { GenericStatus, RegistrationStatusEnumType } from '../Responses';
d270cc87
JB
4
5export type StatusInfoType = {
6 reasonCode: string;
7 additionalInfo?: string;
8} & JsonObject;
9
10export type OCPP20BootNotificationResponse = {
11 currentTime: Date;
12 status: RegistrationStatusEnumType;
13 interval: number;
14 statusInfo?: StatusInfoType;
15} & JsonObject;
16
81533a20
JB
17export type OCPP20HeartbeatResponse = {
18 currentTime: Date;
19} & JsonObject;
20
d270cc87 21export type OCPP20ClearCacheResponse = {
f03e1042 22 status: GenericStatus;
d270cc87
JB
23 statusInfo?: StatusInfoType;
24} & JsonObject;
6e939d9e
JB
25
26export type OCPP20StatusNotificationResponse = EmptyObject;