refactor(simulator): introduce HTTP methods enum
[e-mobility-charging-stations-simulator.git] / src / types / ocpp / 2.0 / Responses.ts
index 8fdfe89bb69e62e996a68d013b49f45f988a5ad0..fdbebf15c4eb33fd5b8fed7c4fd719fdcceb2493 100644 (file)
@@ -1,10 +1,11 @@
-import type { JsonObject } from '../../JsonType';
-import type { DefaultStatus, RegistrationStatusEnumType } from '../Responses';
-
-export type StatusInfoType = {
-  reasonCode: string;
-  additionalInfo?: string;
-} & JsonObject;
+import type {
+  EmptyObject,
+  GenericStatus,
+  JsonObject,
+  OCPP20SetVariableResultType,
+  RegistrationStatusEnumType,
+  StatusInfoType,
+} from '../../internal';
 
 export type OCPP20BootNotificationResponse = {
   currentTime: Date;
@@ -13,7 +14,17 @@ export type OCPP20BootNotificationResponse = {
   statusInfo?: StatusInfoType;
 } & JsonObject;
 
+export type OCPP20HeartbeatResponse = {
+  currentTime: Date;
+} & JsonObject;
+
 export type OCPP20ClearCacheResponse = {
-  status: DefaultStatus;
+  status: GenericStatus;
   statusInfo?: StatusInfoType;
 } & JsonObject;
+
+export type OCPP20StatusNotificationResponse = EmptyObject;
+
+export type OCPP20SetVariablesResponse = {
+  setVariableResult: OCPP20SetVariableResultType[];
+} & JsonObject;