import { Factor } from '@/services/data/tuples/factor-types' ; import { Topic } from '@/services/data/tuples/topic-types' ; export enum TopicEventTypes { TOPIC_NAME_CHANGED = 'topic-name-changed' , TOPIC_KIND_CHANGED = 'topic-kind-changed' , TOPIC_TYPE_CHANGED = 'topic-type-changed' , TOPIC_DATA_SOURCE_CHANGED = 'topic-data-source-changed' , TOPIC_DESCRIPTION_CHANGED = 'topic-description-changed' , FACTOR_ADDED = 'factor-added' , FACTOR_REMOVED = 'factor-removed' , FACTORS_IMPORTED = 'factors-imported' , FACTOR_NAME_CHANGED = 'factor-name-changed' , FACTOR_LABEL_CHANGED = 'factor-label-changed' , FACTOR_TYPE_CHANGED = 'factor-type-changed' , FACTOR_ENUM_CHANGED = 'factor-enum-changed' , FACTOR_INDEX_GROUP_CHANGED = 'factor-index-group-changed' , FACTOR_DEFAULT_VALUE_CHANGED = 'factor-default-value-changed' , FACTOR_FLATTEN_CHANGED = 'factor-flatten-changed' , FACTOR_ENCRYPT_CHANGED = 'factor-encrypt-changed' , FACTOR_DESCRIPTION_CHANGE = 'factor-description-changed' , FACTOR_VALUE_RULE_CHANGED = 'factor-value-rule-changed' , FACTOR_SEARCH_TEXT_CHANGED = 'factor-search-text-changed' } export interface TopicEventBus { fire ( type , topic ) : this ; on ( type , listener ) : this ; off ( type , listener ) : this ; fire ( type , topic ) : this ; on ( type , listener ) : this ; off ( type , listener ) : this ; fire ( type , topic ) : this ; on ( type , listener ) : this ; off ( type , listener ) : this ; fire ( type , topic ) : this ; on ( type , listener ) : this ; off ( type , listener ) : this ; fire ( type , topic ) : this ; on ( type , listener ) : this ; off ( type , listener ) : this ; fire ( type , factor ) : this ; on ( type , listener ) : this ; off ( type , listener ) : this ; fire ( type , factor ) : this ; on ( type , listener ) : this ; off ( type , listener ) : this ; fire ( type , factors ) : this ; on ( type , listener ) : this ; off ( type , listener ) : this ; fire ( type , factor ) : this ; on ( type , listener ) : this ; off ( type , listener ) : this ; fire ( type , factor ) : this ; on ( type , listener ) : this ; off ( type , listener ) : this ; fire ( type , factor ) : this ; on ( type , listener ) : this ; off ( type , listener ) : this ; fire ( type , factor ) : this ; on ( type , listener ) : this ; off ( type , listener ) : this ; fire ( type , factor ) : this ; on ( type , listener ) : this ; off ( type , listener ) : this ; fire ( type , factor ) : this ; on ( type , listener ) : this ; off ( type , listener ) : this ; fire ( type , factor ) : this ; on ( type , listener ) : this ; off ( type , listener ) : this ; fire ( type , factor ) : this ; on ( type , listener ) : this ; off ( type , listener ) : this ; fire ( type , factor ) : this ; on ( type , listener ) : this ; off ( type , listener ) : this ; fire ( type , factor ) : this ; on ( type , listener ) : this ; off ( type , listener ) : this ; fire ( type , topic , searchText ) : this ; on ( type , listener ) : this ; off ( type , listener ) : this ; }