/**
 * 考勤状态枚举（纯常量，用于校验）
 *
 * 状态值（ISSUE-003 仲裁 scheme A）：
 *   present / absent / late / leave
 */
export const ATTENDANCE_STATUSES = [
  "present",
  "absent",
  "late",
  "leave",
] as const;

export type AttendanceStatus = (typeof ATTENDANCE_STATUSES)[number];

export function isValidAttendanceStatus(
  status: string,
): status is AttendanceStatus {
  return (ATTENDANCE_STATUSES as readonly string[]).includes(status);
}
