Skip to content

Function: isAppointmentTimerEligible()

function isAppointmentTimerEligible(appointment): boolean;

Defined in: shared/src/helper/appointmentHelper/appointmentTimerHelpers.ts:41

Validates appointment status for timer operations.

ParameterTypeDescription
appointment{ created_at: string; description: string | null; end_date: string; id: string; is_all_day: boolean; reminder: string | null; start_date: string; status: "upcoming" | "active" | "finished" | "completed" | "missed"; title: string; type: "work" | "private" | "meeting" | "blocked"; user_id: string; work_project_id: string | null; work_time_entry_id: string | null; }The appointment to check
appointment.created_atstring-
appointment.descriptionstring | null-
appointment.end_datestring-
appointment.idstring-
appointment.is_all_dayboolean-
appointment.reminderstring | null-
appointment.start_datestring-
appointment.status"upcoming" | "active" | "finished" | "completed" | "missed"-
appointment.titlestring-
appointment.type"work" | "private" | "meeting" | "blocked"-
appointment.user_idstring-
appointment.work_project_idstring | null-
appointment.work_time_entry_idstring | null-

boolean

True if appointment is in a valid status for timer operations