perf: reduce OCPPUtils memory usage
[e-mobility-charging-stations-simulator.git] / src / types / ocpp / 2.0 / Responses.ts
index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..a4ecdadd9f33a3db0bd9c5890b1bd1442829d063 100644 (file)
@@ -0,0 +1,36 @@
+import type {
+  GenericStatusEnumType,
+  InstallCertificateStatusEnumType,
+  StatusInfoType,
+} from './Common';
+import type { OCPP20SetVariableResultType } from './Variables';
+import type { EmptyObject } from '../../EmptyObject';
+import type { JsonObject } from '../../JsonType';
+import type { RegistrationStatusEnumType } from '../Common';
+
+export type OCPP20BootNotificationResponse = {
+  currentTime: Date;
+  status: RegistrationStatusEnumType;
+  interval: number;
+  statusInfo?: StatusInfoType;
+} & JsonObject;
+
+export type OCPP20HeartbeatResponse = {
+  currentTime: Date;
+} & JsonObject;
+
+export type OCPP20ClearCacheResponse = {
+  status: GenericStatusEnumType;
+  statusInfo?: StatusInfoType;
+} & JsonObject;
+
+export type OCPP20StatusNotificationResponse = EmptyObject;
+
+export type OCPP20SetVariablesResponse = {
+  setVariableResult: OCPP20SetVariableResultType[];
+} & JsonObject;
+
+export type OCPP20InstallCertificateResponse = {
+  status: InstallCertificateStatusEnumType;
+  statusInfo?: StatusInfoType;
+} & JsonObject;