import { DataSource } from '@/services/data/tuples/data-source-types' ; import { ExternalWriter } from '@/services/data/tuples/external-writer-types' ; import { Pipeline , PipelinesGraphics } from '@/services/data/tuples/pipeline-types' ; import { Topic } from '@/services/data/tuples/topic-types' ; import { AdminCacheData } from '@/services/local-persist/types' ; export enum AdminCacheEventTypes { DATA_LOADED = 'data-loaded' , ASK_DATA_LOADED = 'ask-data-loaded' , ASK_DATA = 'ask-data' , ASK_RELOAD = 'ask-reload' , SAVE_PIPELINE = 'save-pipeline' , SAVE_TOPIC = 'save-topic' , SAVE_PIPELINES_GRAPHICS = 'save-pipelines-graphics' , REMOVE_PIPELINES_GRAPHICS = 'remove-pipelines-graphics' , SAVE_DATA_SOURCE = 'save-data-source' , SAVE_EXTERNAL_WRITER = 'save-external-writer' , PIPELINE_LOADED = 'pipeline-loaded' , TOPIC_LOADED = 'topic-loaded' } export interface AdminCacheEventBus { fire ( type , data ) : this ; on ( type , listener ) : this ; off ( type , listener ) : this ; fire ( type , onDataLoadedGot ) : this ; on ( type , listener ) : this ; off ( type , listener ) : this ; fire ( type , onData ) : this ; on ( type , listener ) : this ; off ( type , listener ) : this ; fire ( type , onReloaded ) : this ; on ( type , listener ) : this ; off ( type , listener ) : this ; fire ( type , pipeline ) : this ; on ( type , listener ) : this ; off ( type , listener ) : this ; fire ( type , topic ) : this ; on ( type , listener ) : this ; off ( type , listener ) : this ; fire ( type , graphics ) : this ; on ( type , listener ) : this ; off ( type , listener ) : this ; fire ( type , pipelineGraphId ) : this ; on ( type , listener ) : this ; off ( type , listener ) : this ; fire ( type , dataSource ) : this ; on ( type , listener ) : this ; off ( type , listener ) : this ; fire ( type , writer ) : this ; on ( type , listener ) : this ; off ( type , listener ) : this ; fire ( type , pipeline ) : this ; on ( type , listener ) : this ; off ( type , listener ) : this ; fire ( type , topic ) : this ; on ( type , listener ) : this ; off ( type , listener ) : this ; }