Merge dependabot/npm_and_yarn/types/tar-6.1.12 into combined-prs-branch
[e-mobility-charging-stations-simulator.git] / src / types / ocpp / 2.0 / Responses.ts
index 5fac747a2300cfe023a482cbd3804a7dbe020f80..4248c5d8f6baf74bc7b5874371c6026a781e9442 100644 (file)
@@ -1,36 +1,36 @@
+import type { EmptyObject } from '../../EmptyObject.js'
+import type { JsonObject } from '../../JsonType.js'
+import type { RegistrationStatusEnumType } from '../Common.js'
 import type {
-  EmptyObject,
-  GenericStatus,
+  GenericStatusEnumType,
   InstallCertificateStatusEnumType,
-  JsonObject,
-  OCPP20SetVariableResultType,
-  RegistrationStatusEnumType,
-  StatusInfoType,
-} from '../../internal';
+  StatusInfoType
+} from './Common.js'
+import type { OCPP20SetVariableResultType } from './Variables.js'
 
-export type OCPP20BootNotificationResponse = {
-  currentTime: Date;
-  status: RegistrationStatusEnumType;
-  interval: number;
-  statusInfo?: StatusInfoType;
-} & JsonObject;
+export interface OCPP20BootNotificationResponse extends JsonObject {
+  currentTime: Date
+  status: RegistrationStatusEnumType
+  interval: number
+  statusInfo?: StatusInfoType
+}
 
-export type OCPP20HeartbeatResponse = {
-  currentTime: Date;
-} & JsonObject;
+export interface OCPP20HeartbeatResponse extends JsonObject {
+  currentTime: Date
+}
 
-export type OCPP20ClearCacheResponse = {
-  status: GenericStatus;
-  statusInfo?: StatusInfoType;
-} & JsonObject;
+export interface OCPP20ClearCacheResponse extends JsonObject {
+  status: GenericStatusEnumType
+  statusInfo?: StatusInfoType
+}
 
-export type OCPP20StatusNotificationResponse = EmptyObject;
+export type OCPP20StatusNotificationResponse = EmptyObject
 
-export type OCPP20SetVariablesResponse = {
-  setVariableResult: OCPP20SetVariableResultType[];
-} & JsonObject;
+export interface OCPP20SetVariablesResponse extends JsonObject {
+  setVariableResult: OCPP20SetVariableResultType[]
+}
 
-export type OCPP20InstallCertificateResponse = {
-  status: InstallCertificateStatusEnumType;
-  statusInfo?: StatusInfoType;
-} & JsonObject;
+export interface OCPP20InstallCertificateResponse extends JsonObject {
+  status: InstallCertificateStatusEnumType
+  statusInfo?: StatusInfoType
+}