status: OCPP16DataTransferStatus;
data?: string;
}
+
+export enum OCPP16ReservationStatus {
+ ACCEPTED = 'Accepted',
+ FAULTED = 'Faulted',
+ OCCUPIED = 'Occupied',
+ REJECTED = 'Rejected',
+ UNAVAILABLE = 'Unavailable',
+}
+
+export interface OCPP16ReserveNowResponse {
+ status: OCPP16ReservationStatus;
+}
+
+export enum OCPP16CancelReservationStatus {
+ ACCEPTED = 'Accepted',
+ REJECTED = 'Rejected',
+}
+
+export interface OCPP16CancelReservationResponse {
+ status: OCPP16CancelReservationStatus;
+}
import {
OCPP16AvailabilityStatus,
type OCPP16BootNotificationResponse,
+ OCPP16CancelReservationStatus,
OCPP16ChargingProfileStatus,
OCPP16ClearChargingProfileStatus,
OCPP16ConfigurationStatus,
type OCPP16DiagnosticsStatusNotificationResponse,
type OCPP16FirmwareStatusNotificationResponse,
type OCPP16HeartbeatResponse,
+ OCPP16ReservationStatus,
type OCPP16StatusNotificationResponse,
OCPP16TriggerMessageStatus,
OCPP16UnlockStatus,
...OCPP16DataTransferStatus,
} as const;
export type DataTransferStatus = OCPP16DataTransferStatus;
+
+export type ReservationStatus = OCPP16ReservationStatus;
+
+export const ReservationStatus = {
+ ...OCPP16ReservationStatus,
+};
+
+export type CancelReservationStatus = OCPP16CancelReservationStatus;
+
+export const CancelReservationStatus = {
+ ...OCPP16CancelReservationStatus,
+};