chore: switch coding style to JS standard
[e-mobility-charging-stations-simulator.git] / src / types / ocpp / Reservation.ts
index b185b8744f1a3d9597867b9ff0e9033679e1fc42..5f15838a5d303639bbc1ebff347bd500809eb67b 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'
+}