Add interfaces package

This commit is contained in:
2026-05-05 12:03:46 +00:00
commit 8ceec521eb
21 changed files with 485 additions and 0 deletions
+27
View File
@@ -0,0 +1,27 @@
export type TDashboardWidgetKind =
| 'agentRoster'
| 'approvalQueue'
| 'deviceGrid'
| 'floorPlan'
| 'timeline'
| 'activityStream'
| 'energyChart'
| 'custom';
export interface IDashboardWidget {
id: string;
kind: TDashboardWidgetKind;
title: string;
x: number;
y: number;
w: number;
h: number;
config: Record<string, unknown>;
}
export interface IDashboardDefinition {
id: string;
homeId: string;
name: string;
widgets: IDashboardWidget[];
}