import { PipelineStage } from '@/services/data/tuples/pipeline-stage-types' ; import { PipelineStageUnitAction } from '@/services/data/tuples/pipeline-stage-unit-action/pipeline-stage-unit-action-types' ; import { PipelineStageUnit } from '@/services/data/tuples/pipeline-stage-unit-types' ; import { Pipeline } from '@/services/data/tuples/pipeline-types' ; export enum PipelineFocusMode { STAGE = 'stage' , UNIT = 'unit' , FREE_WALK = 'free-walk' } export enum PipelineEventTypes { RENAME_PIPELINE = 'rename-pipeline' , SAVE_PIPELINE = 'save-pipeline' , TOGGLE_PIPELINE_ENABLEMENT = 'toggle-pipeline-enablement' , PIPELINE_SAVED = 'pipeline-saved' , TRIGGER_TYPE_CHANGED = 'trigger-type-changed' , CONDITION_CHANGED = 'condition-changed' , STAGE_ADDED = 'stage-added' , STAGE_REMOVED = 'stage-removed' , STAGE_CHANGED = 'stage-changed' , STAGE_SORTED = 'stage-sorted' , ACTION_CHANGED = 'action-changed' , STAGE_EXPANDED = 'stage-expanded' , UNIT_EXPANDED = 'unit-expanded' , SHOW_DSL = 'show-dsl' , COLLAPSE_ALL = 'collapse-all' , EXPAND_ALL = 'expand-all' , ASK_FOCUS_MODE = 'ask-focus-mode' , FOCUS_MODE_CHANGED = 'focus-mode-changed' } export interface PipelineEventBus { fire ( type , pipeline ) : this ; on ( type , listener ) : this ; off ( type , listener ) : this ; fire ( type , pipeline , onSaved ) : this ; on ( type , listener ) : this ; off ( type , listener ) : this ; fire ( type , pipeline ) : this ; on ( type , listener ) : this ; off ( type , listener ) : this ; fire ( type , pipeline , saved ) : this ; on ( type , listener ) : this ; off ( type , listener ) : this ; fire ( type , pipeline ) : this ; on ( type , listener ) : this ; off ( type , listener ) : this ; fire ( type , pipeline ) : this ; on ( type , listener ) : this ; off ( type , listener ) : this ; fire ( type , stage , pipeline ) : this ; on ( type , listener ) : this ; off ( type , listener ) : this ; fire ( type , stage , pipeline ) : this ; on ( type , listener ) : this ; off ( type , listener ) : this ; fire ( type , stage , pipeline ) : this ; on ( type , listener ) : this ; off ( type , listener ) : this ; fire ( type , pipeline ) : this ; on ( type , listener ) : this ; off ( type , listener ) : this ; fire ( type , pipeline , stage , unit , action ) : this ; on ( type , listener ) : this ; off ( type , listener ) : this ; fire ( type , pipeline , stage ) : this ; on ( type , listener ) : this ; off ( type , listener ) : this ; fire ( type , pipeline , stage , unit ) : this ; on ( type , listener ) : this ; off ( type , listener ) : this ; fire ( type , pipeline ) : this ; on ( type , listener ) : this ; off ( type , listener ) : this ; fire ( type , pipeline ) : this ; on ( type , listener ) : this ; off ( type , listener ) : this ; fire ( type , pipeline ) : this ; on ( type , listener ) : this ; off ( type , listener ) : this ; fire ( type , pipeline , onModeGet ) : this ; on ( type , listener ) : this ; off ( type , listener ) : this ; fire ( type , pipeline , mode ) : this ; on ( type , listener ) : this ; off ( type , listener ) : this ; }