X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Ftypes%2Focpp%2F2.0%2FResponses.ts;h=5fac747a2300cfe023a482cbd3804a7dbe020f80;hb=e8044a69a745aab08dfeea0bd9ec9dd7fe84cdd7;hp=b83f0c84369eefbcdced173c26941294691cdd1f;hpb=81533a206ec56709897f27edf1298e7c86d74c31;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 b83f0c84..5fac747a 100644 --- a/src/types/ocpp/2.0/Responses.ts +++ b/src/types/ocpp/2.0/Responses.ts @@ -1,10 +1,12 @@ -import type { JsonObject } from '../../JsonType'; -import type { DefaultStatus, RegistrationStatusEnumType } from '../Responses'; - -export type StatusInfoType = { - reasonCode: string; - additionalInfo?: string; -} & JsonObject; +import type { + EmptyObject, + GenericStatus, + InstallCertificateStatusEnumType, + JsonObject, + OCPP20SetVariableResultType, + RegistrationStatusEnumType, + StatusInfoType, +} from '../../internal'; export type OCPP20BootNotificationResponse = { currentTime: Date; @@ -18,6 +20,17 @@ export type OCPP20HeartbeatResponse = { } & JsonObject; export type OCPP20ClearCacheResponse = { - status: DefaultStatus; + status: GenericStatus; + statusInfo?: StatusInfoType; +} & JsonObject; + +export type OCPP20StatusNotificationResponse = EmptyObject; + +export type OCPP20SetVariablesResponse = { + setVariableResult: OCPP20SetVariableResultType[]; +} & JsonObject; + +export type OCPP20InstallCertificateResponse = { + status: InstallCertificateStatusEnumType; statusInfo?: StatusInfoType; } & JsonObject;