import { Bucket , BucketSegment } from '@/services/data/tuples/bucket-types' ; export enum SortType { CODE = 'code' , NAME = 'name' , UNCONCERNED = 'unconcerned' } export enum BucketEventTypes { BUCKET_NAME_CHANGED = 'bucket-name-changed' , BUCKET_TYPE_CHANGED = 'bucket-type-changed' , BUCKET_DESCRIPTION_CHANGED = 'bucket-description-changed' , BUCKET_RANGE_INCLUDE_CHANGED = 'bucket-range-include-changed' , SEGMENT_NAME_CHANGED = 'segment-name-changed' , SEGMENT_ADDED = 'segment-added' , SEGMENT_CHANGED = 'segment-changed' , SEGMENT_REMOVED = 'segment-removed' , SEGMENT_SORTED = 'segment-sorted' , CATEGORY_SEGMENT_VALUE_ADDED = 'category-segment-value-added' , CATEGORY_SEGMENT_VALUES_ADDED = 'category-segment-values-added' , CATEGORY_SEGMENT_VALUE_REMOVED = 'category-segment-value-removed' , BUCKET_MEASURE_METHOD_CHANGED = 'bucket-measure-method-changed' , BUCKET_ENUM_CHANGED = 'bucket-enum-changed' } export interface BucketEventBus { fire ( type , bucket ) : this ; on ( type , listener ) : this ; off ( type , listener ) : this ; fire ( type , bucket ) : this ; on ( type , listener ) : this ; off ( type , listener ) : this ; fire ( type , bucket ) : this ; on ( type , listener ) : this ; off ( type , listener ) : this ; fire ( type , bucket ) : this ; on ( type , listener ) : this ; off ( type , listener ) : this ; fire ( type , bucket , segment ) : this ; on ( type , listener ) : this ; off ( type , listener ) : this ; fire ( type , bucket , segment ) : this ; on ( type , listener ) : this ; off ( type , listener ) : this ; fire ( type , bucket , segment ) : this ; on ( type , listener ) : this ; off ( type , listener ) : this ; fire ( type , bucket , segment ) : this ; on ( type , listener ) : this ; off ( type , listener ) : this ; fire ( type , bucket , sortType ) : this ; on ( type , listener ) : this ; off ( type , listener ) : this ; fire ( type , bucket , segment , value ) : this ; on ( type , listener ) : this ; off ( type , listener ) : this ; fire ( type , bucket , segment , values ) : this ; on ( type , listener ) : this ; off ( type , listener ) : this ; fire ( type , bucket , segment , value ) : this ; on ( type , listener ) : this ; off ( type , listener ) : this ; fire ( type , bucket ) : this ; on ( type , listener ) : this ; off ( type , listener ) : this ; fire ( type , bucket ) : this ; on ( type , listener ) : this ; off ( type , listener ) : this ; }