import { WidgetPlacement } from './WidgetPlacement'; import { WidgetConfiguration } from './WidgetConfiguration'; /** * Definition of the widget that gets persisted into the dashboard widget's collection (and the database in the future). * Only needs to know what type it is, where it is placed and how it is configured. */ export interface WidgetDefinition { /** * The unique identifier of a widget instance in a dashboard. */ id: string; /** * The type of the widget. */ type: string; /** * Placement of the widget inside the dashboard layout. */ placement: WidgetPlacement; /** * The configuration of the widget. */ configuration: WidgetConfiguration; }