X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Ftypes%2Focpp%2F2.0%2FResponses.ts;h=51d6ad4444683a011aa62b0aaf0f317558dcf898;hb=f4b3f35d653138a946d74d5f3c313275ee9c03b2;hp=38fdda41c3e4261b505bdea2861dd4123965c715;hpb=a6ef1ece74c0d08e86a905571f4f6045c28131cb;p=e-mobility-charging-stations-simulator.git diff --git a/src/types/ocpp/2.0/Responses.ts b/src/types/ocpp/2.0/Responses.ts index 38fdda41..51d6ad44 100644 --- a/src/types/ocpp/2.0/Responses.ts +++ b/src/types/ocpp/2.0/Responses.ts @@ -1,36 +1,36 @@ import type { GenericStatusEnumType, InstallCertificateStatusEnumType, - StatusInfoType, -} from './Common.js'; -import type { OCPP20SetVariableResultType } from './Variables.js'; -import type { EmptyObject } from '../../EmptyObject.js'; -import type { JsonObject } from '../../JsonType.js'; -import type { RegistrationStatusEnumType } from '../Common.js'; + StatusInfoType +} from './Common.js' +import type { OCPP20SetVariableResultType } from './Variables.js' +import type { EmptyObject } from '../../EmptyObject.js' +import type { JsonObject } from '../../JsonType.js' +import type { RegistrationStatusEnumType } from '../Common.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: GenericStatusEnumType; - 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 +}