import { Pipeline } from '@/services/data/tuples/pipeline-types' ; import { Topic } from '@/services/data/tuples/topic-types' ; import { ActiveStep , SimulateStart , StartFrom , TopicsData } from './body/state/types' ; import { DataRow } from './types' ; export enum SimulatorEventTypes { START_FROM_CHANGED = 'start-from-changed' , START_PIPELINE_CHANGED = 'start-pipeline-changed' , START_TOPIC_CHANGED = 'start-topic-changed' , ACTIVE_STEP_CHANGED = 'active-step-changed' , PIPELINE_RUN_CHANGED = 'pipeline-run-changed' , TOPIC_DATA_CHANGED = 'topic-data-changed' , ASK_START = 'ask-start' , ASK_PIPELINE_RUN = 'ask-pipeline-run' , ASK_TOPIC_DATA = 'ask-topic-data' , ASK_RUN_MATERIAL = 'ask-run-material' } export interface SimulatorEventBus { fire ( type , from ) : 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 , step ) : this ; on ( type , listener ) : this ; off ( type , listener ) : this ; fire ( type , pipeline , run ) : this ; on ( type , listener ) : this ; off ( type , listener ) : this ; fire ( type , topic , rows ) : this ; on ( type , listener ) : this ; off ( type , listener ) : this ; fire ( type , onStart ) : this ; on ( type , listener ) : this ; off ( type , listener ) : this ; fire ( type , pipeline , onRunGet ) : this ; on ( type , listener ) : this ; off ( type , listener ) : this ; fire ( type , topic , onData ) : this ; on ( type , listener ) : this ; off ( type , listener ) : this ; fire ( type , onMaterial ) : this ; on ( type , listener ) : this ; off ( type , listener ) : this ; }