X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Ftypes%2Focpp%2F2.0%2FResponses.ts;h=fdbebf15c4eb33fd5b8fed7c4fd719fdcceb2493;hb=1185579a331f3484e8ed7882203d2e58466635dd;hp=8fdfe89bb69e62e996a68d013b49f45f988a5ad0;hpb=d270cc878c61c42098557a0e03cc1620f74112de;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 8fdfe89b..fdbebf15 100644 --- a/src/types/ocpp/2.0/Responses.ts +++ b/src/types/ocpp/2.0/Responses.ts @@ -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;