export declare enum WidgetWidth { W1 = 1, W2 = 2, W3 = 3, W4 = 4 } export declare enum WidgetHeight { H1 = 1, H2 = 2, H3 = 3, H4 = 4 } export declare enum WidgetClickType { Settings = 0, Primary = 1, Link1 = 2, Link2 = 3 } export declare enum WidgetContentType { Column = 0, Word = 1, SemiCircle = 2, Count = 3, TreeMap = 4, TableListSummary = 5, ActivityGauge = 6, Bar = 7, Area = 8 } export interface WidgetContent { type: WidgetContentType; data?: any; } export interface WidgetMetrics { height: WidgetHeight; width: WidgetWidth; position?: number; } export interface Widget { id: string; title: string; hideSettings?: boolean; content?: WidgetContent; metrics: WidgetMetrics; actionLabels?: { primary?: string; link1?: string; link2?: string; }; } /** * */ export interface TableListHeader { name: string; field: string; class?: string; style?: string; } /** * */ export interface TableListBody { summary: string; count?: string | number; deployment?: string; status?: string; country?: string; /** * Define the type of table, used for styling */ type?: string; } export interface TableListConfig { headers: TableListHeader[]; body: TableListBody[]; } export interface ActivityGaugeConfig { value: number; text1: string; text2: string; title?: string; color?: string; backgroundColor?: string; }