perf: reduce OCPPUtils memory usage
[e-mobility-charging-stations-simulator.git] / src / types / ocpp / 2.0 / Responses.ts
index 3f4d2f4274cc4c36dd73f51f303cb3ea773b5be6..a4ecdadd9f33a3db0bd9c5890b1bd1442829d063 100644 (file)
@@ -1,14 +1,12 @@
 import type {
-  EmptyObject,
-  GenericStatus,
-  JsonObject,
-  RegistrationStatusEnumType,
-} from '../../internal';
-
-export type StatusInfoType = {
-  reasonCode: string;
-  additionalInfo?: string;
-} & JsonObject;
+  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;
@@ -22,8 +20,17 @@ export type OCPP20HeartbeatResponse = {
 } & JsonObject;
 
 export type OCPP20ClearCacheResponse = {
-  status: GenericStatus;
+  status: GenericStatusEnumType;
   statusInfo?: StatusInfoType;
 } & JsonObject;
 
 export type OCPP20StatusNotificationResponse = EmptyObject;
+
+export type OCPP20SetVariablesResponse = {
+  setVariableResult: OCPP20SetVariableResultType[];
+} & JsonObject;
+
+export type OCPP20InstallCertificateResponse = {
+  status: InstallCertificateStatusEnumType;
+  statusInfo?: StatusInfoType;
+} & JsonObject;