X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Ftypes%2Focpp%2FReservation.ts;h=61ef6474a6beb364dd625c20af791e71978ff540;hb=041365be4e6cfcec381c895a203815dd933afff5;hp=b185b8744f1a3d9597867b9ff0e9033679e1fc42;hpb=6e3d9d04815abfe85d31735fc38bdf0253d85026;p=e-mobility-charging-stations-simulator.git diff --git a/src/types/ocpp/Reservation.ts b/src/types/ocpp/Reservation.ts index b185b874..61ef6474 100644 --- a/src/types/ocpp/Reservation.ts +++ b/src/types/ocpp/Reservation.ts @@ -1,3 +1,13 @@ -import { type OCPP16Reservation } from './1.6/Reservation'; +import type { OCPP16ReserveNowRequest } from './1.6/Requests'; -export type Reservation = OCPP16Reservation; +export type Reservation = OCPP16ReserveNowRequest; + +export type ReservationKey = keyof Reservation; + +export enum ReservationTerminationReason { + EXPIRED = 'Expired', + TRANSACTION_STARTED = 'TransactionStarted', + CONNECTOR_STATE_CHANGED = 'ConnectorStateChanged', + RESERVATION_CANCELED = 'ReservationCanceled', + REPLACE_EXISTING = 'ReplaceExisting', +}