diff options
Diffstat (limited to 'api/types.ts')
| -rw-r--r-- | api/types.ts | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/api/types.ts b/api/types.ts new file mode 100644 index 0000000..7338d4b --- /dev/null +++ b/api/types.ts @@ -0,0 +1,53 @@ +export type OverallStatus = "all_clear" | "attention"; + +export type AlertSeverity = "gentle" | "needs_attention"; + +export type Alert = { + id: string; + title: string; + timeLabel: string; + whatHappened: string; + whyItMatters: string; + suggestedAction: string; + severity: AlertSeverity; +}; + +export type HomeData = { + overallStatus: OverallStatus; + deviceOnline: boolean; + alertStats: { + last24Hours: number; + thisWeekReviewed: number; + }; +}; + +export type ActivityMetric = { + id: string; + icon: "chatbubbles" | "people" | "time"; + title: string; + description: string; + level: "Normal" | "Low" | "High" | "Better" | "Worse"; +}; + +export type ActivityData = { + period: string; + metrics: ActivityMetric[]; +}; + +export type Device = { + id: string; + name: string; + status: "online" | "offline"; + lastCheck: string; +}; + +export type SafetyControl = { + key: string; + title: string; + description: string; + defaultValue: boolean; +}; + +export type ControlsData = { + safetyControls: SafetyControl[]; +}; |