import { MonitorRule , MonitorRules , MonitorRulesCriteria } from '@/services/data/data-quality/rule-types' ; import { Factor } from '@/services/data/tuples/factor-types' ; import { Topic } from '@/services/data/tuples/topic-types' ; export enum RulesEventTypes { DO_SEARCH = 'do-search' , FILTER_BY_FACTOR = 'filter-by-factor' , SORT_FACTORS = 'sort-factors' , ADD_FACTOR = 'add-factor' , RULE_CHANGED = 'rule-changed' , ASK_RULE_CHANGED = 'ask-rule-changed' , SAVED = 'saved' } export interface RulesEventBus { fire ( type , criteria , topic ? ) : this ; on ( type , listener ) : this ; off ( type , listener ) : this ; fire ( type , all , topicOnly , factor ? ) : this ; on ( type , listener ) : this ; off ( type , listener ) : this ; fire ( type ) : this ; on ( type , listener ) : this ; off ( type , listener ) : this ; fire ( type , factor , onAdded ) : this ; on ( type , listener ) : this ; off ( type , listener ) : this ; fire ( type , rule ? ) : this ; on ( type , listener ) : this ; off ( type , listener ) : this ; fire ( type , onChangedGet ) : this ; on ( type , listener ) : this ; off ( type , listener ) : this ; fire ( type , rules ) : this ; on ( type , listener ) : this ; off ( type , listener ) : this ; }