perf(simulator): filter array for undefined before running map()
[e-mobility-charging-stations-simulator.git] / src / types / ocpp / 2.0 / Responses.ts
... / ...
CommitLineData
1import type { EmptyObject } from '../../EmptyObject';
2import type { JsonObject } from '../../JsonType';
3import type { GenericStatus, RegistrationStatusEnumType } from '../Responses';
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
17export type OCPP20HeartbeatResponse = {
18 currentTime: Date;
19} & JsonObject;
20
21export type OCPP20ClearCacheResponse = {
22 status: GenericStatus;
23 statusInfo?: StatusInfoType;
24} & JsonObject;
25
26export type OCPP20StatusNotificationResponse = EmptyObject;