Updated to using managed types instead of

hard coded ones.
This commit is contained in:
2026-01-16 17:48:46 +02:00
parent 14e6737a1d
commit 4defe33bd3
280 changed files with 48455 additions and 62 deletions

View File

@@ -2,22 +2,11 @@ export type UserRole = "user" | "team_admin" | "department_admin" | "field_admin
export type ShelterStatus = "yes" | "no" | "no_alarm" | "safe_after_exit"
export type Department = "מאי" | "עדן" | "שניר" | "יקיר"
export type Department = string
export type Team =
| "מאי"
| "שי"
| "תומר"
| "ינון"
| "עדי"
| "לינוי"
| "ניצן"
| "רונן"
| "אופיר"
| "הדר"
| "יקיר"
export type Team = string
export type Field = "יקיר" | "אורלי" | "מיכאל" | "מאור" | "גלעד"
export type Field = string
export interface User {
national_id: string
@@ -59,21 +48,3 @@ export const SHELTER_STATUS_NAMES: Record<ShelterStatus, string> = {
no_alarm: "אין אזעקה",
safe_after_exit: "אני בטוח.ה (סוף אירוע)"
}
export const DEPARTMENTS: Department[] = ["מאי", "עדן", "שניר", "יקיר"]
export const TEAMS: Team[] = [
"מאי",
"שי",
"תומר",
"ינון",
"עדי",
"לינוי",
"ניצן",
"רונן",
"אופיר",
"הדר",
"יקיר",
]
export const FIELDS: Field[] = ["יקיר", "אורלי", "מיכאל", "מאור", "גלעד"]