X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Ftypes%2Focpp%2F1.6%2FResponses.ts;h=9cd96b2473dbfccccbe7a7772b34c5f72b57184a;hb=6d52ef25c911dcb8d37ead86819b53a7fe35ef53;hp=e7814c4f178caec976040c3d6e9372c155cf1729;hpb=411894569d4a0333a4e38e911a178520a69448cd;p=e-mobility-charging-stations-simulator.git diff --git a/src/types/ocpp/1.6/Responses.ts b/src/types/ocpp/1.6/Responses.ts index e7814c4f..9cd96b24 100644 --- a/src/types/ocpp/1.6/Responses.ts +++ b/src/types/ocpp/1.6/Responses.ts @@ -1,11 +1,8 @@ -import type { - EmptyObject, - GenericStatus, - JsonObject, - OCPP16ChargingSchedule, - OCPPConfigurationKey, - RegistrationStatusEnumType, -} from '../../internal'; +import type { OCPP16ChargingSchedule } from './ChargingProfile'; +import type { EmptyObject } from '../../EmptyObject'; +import type { JsonObject } from '../../JsonType'; +import type { OCPPConfigurationKey } from '../Configuration'; +import { GenericStatus, type RegistrationStatusEnumType } from '../Responses'; export interface OCPP16HeartbeatResponse extends JsonObject { currentTime: Date; @@ -112,3 +109,16 @@ export interface OCPP16DataTransferResponse extends JsonObject { status: OCPP16DataTransferStatus; data?: string; } + +export enum OCPP16ReservationStatus { + ACCEPTED = 'Accepted', + FAULTED = 'Faulted', + OCCUPIED = 'Occupied', + REJECTED = 'Rejected', + UNAVAILABLE = 'Unavailable', + NOT_SUPPORTED = 'NotSupported', +} + +export interface OCPP16ReserveNowResponse extends JsonObject { + status: OCPP16ReservationStatus; +}