Add interfaces package
This commit is contained in:
@@ -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[];
|
||||
}
|
||||
Reference in New Issue
Block a user