refactor: cleanup nullish values handling
[e-mobility-charging-stations-simulator.git] / src / types / ocpp / Reservation.ts
index b185b8744f1a3d9597867b9ff0e9033679e1fc42..69050ed953eb6c42c2fab8c962b935980e6f558a 100644 (file)
@@ -1,3 +1,13 @@
-import { type OCPP16Reservation } from './1.6/Reservation';
+import type { OCPP16ReserveNowRequest } from './1.6/Requests.js'
 
-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',
+}