import { BucketId } from '@/services/data/tuples/bucket-types' ; import { Indicator , IndicatorId } from '@/services/data/tuples/indicator-types' ; import { QueryBucket } from '@/services/data/tuples/query-bucket-types' ; import { EnumForIndicator , QueryIndicatorCategoryParams , TopicForIndicator } from '@/services/data/tuples/query-indicator-types' ; import { IndicatorDeclarationStep } from './types' ; export interface IndicatorsData { indicator ? : Indicator ; topic ? : TopicForIndicator ; enums ? : Array < EnumForIndicator > ; } export enum IndicatorsEventTypes { SWITCH_STEP = 'switch-step' , CREATE_INDICATOR = 'create-indicator' , PICK_INDICATOR = 'pick-indicator' , PICK_TOPIC = 'pick-topic' , INDICATOR_VALUE_BUCKET_PICKED = 'indicator-value-bucket-picked' , INDICATOR_VALUE_BUCKET_UNPICKED = 'indicator-value-bucket-unpicked' , SAVE_INDICATOR = 'save-indicator' , INDICATOR_SAVED = 'indicator-saved' , ASK_INDICATOR_CATEGORY = 'ask-indicator-category' } export interface IndicatorsEventBus { fire ( type , step , data ? ) : this ; on ( type , listener ) : this ; off ( type , listener ) : this ; fire ( type , onCreated ) : this ; on ( type , listener ) : this ; off ( type , listener ) : this ; fire ( type , indicatorId , onData ) : this ; on ( type , listener ) : this ; off ( type , listener ) : this ; fire ( type , data , onData ) : this ; on ( type , listener ) : this ; off ( type , listener ) : this ; fire ( type , indicator , bucket ) : this ; on ( type , listener ) : this ; off ( type , listener ) : this ; fire ( type , indicator , bucketId ) : this ; on ( type , listener ) : this ; off ( type , listener ) : this ; fire ( type , indicator , onSaved ) : this ; on ( type , listener ) : this ; off ( type , listener ) : this ; fire ( type , indicator ) : this ; on ( type , listener ) : this ; off ( type , listener ) : this ; fire ( type , indicator , prefix , onData ) : this ; on ( type , listener ) : this ; off ( type , listener ) : this ; }