import { Dashboard } from '@/services/data/tuples/dashboard-types' ; import { Paragraph } from '@/services/data/tuples/paragraph' ; import { Report } from '@/services/data/tuples/report-types' ; export enum DashboardEventTypes { SAVE_DASHBOARD = 'save-dashboard' , REFRESH_INTERVAL_CHANGED = 'refresh-interval-changed' , REPORT_ADDED = 'report-added' , REPORT_REMOVED = 'report-removed' , PARAGRAPH_ADDED = 'paragraph-added' , PARAGRAPH_REMOVED = 'paragraph-removed' , TOGGLE_PRINT_PAGE_SIZE = 'toggle-print-page-size' , REFRESH_REPORTS = 'refresh-reports' , REPAINT_REPORTS = 'repaint-reports' , REPAINT_REPORTS_ON_ADDED = 'repaint-reports-on-added' , REPAINT_REPORTS_ON_REMOVED = 'repaint-reports-on-removed' } export interface DashboardEventBus { fire ( type , dashboard ) : this ; on ( type , listener ) : this ; off ( type , listener ) : this ; fire ( type , dashboard ) : this ; on ( type , listener ) : this ; off ( type , listener ) : this ; fire ( type , report ) : this ; on ( type , listener ) : this ; off ( type , listener ) : this ; fire ( type , report ) : this ; on ( type , listener ) : this ; off ( type , listener ) : this ; fire ( type , paragraph ) : this ; on ( type , listener ) : this ; off ( type , listener ) : this ; fire ( type , paragraph ) : this ; on ( type , listener ) : this ; off ( type , listener ) : this ; fire ( type , visible ) : this ; on ( type , listener ) : this ; off ( type , listener ) : this ; fire ( type , dashboard ) : this ; on ( type , listener ) : this ; off ( type , listener ) : this ; fire ( type , dashboard , reports ) : this ; on ( type , listener ) : this ; off ( type , listener ) : this ; fire ( type , dashboard ) : this ; on ( type , listener ) : this ; off ( type , listener ) : this ; fire ( type , dashboard ) : this ; on ( type , listener ) : this ; off ( type , listener ) : this ; }