Strong type sendMessageHandler response with generics
[e-mobility-charging-stations-simulator.git] / src / types / ocpp / Responses.ts
index 50f1d2b134f9b71867ac7eb02b92ae4b11fac827..d7e6db554f68456e79aac01709f4366b6bbaeb64 100644 (file)
@@ -4,12 +4,15 @@ import {
   OCPP16ChargingProfileStatus,
   OCPP16ClearChargingProfileStatus,
   OCPP16ConfigurationStatus,
+  OCPP16HeartbeatResponse,
   OCPP16RegistrationStatus,
+  OCPP16StatusNotificationResponse,
   OCPP16TriggerMessageStatus,
   OCPP16UnlockStatus,
 } from './1.6/Responses';
 
 import { JsonType } from '../JsonType';
+import { OCPP16MeterValuesResponse } from './1.6/MeterValues';
 
 export type ResponseHandler = (
   payload: JsonType | string,
@@ -18,6 +21,12 @@ export type ResponseHandler = (
 
 export type BootNotificationResponse = OCPP16BootNotificationResponse;
 
+export type HeartbeatResponse = OCPP16HeartbeatResponse;
+
+export type StatusNotificationResponse = OCPP16StatusNotificationResponse;
+
+export type MeterValuesResponse = OCPP16MeterValuesResponse;
+
 export enum DefaultStatus {
   ACCEPTED = 'Accepted',
   REJECTED = 'Rejected',