import { LastSnapshot } from '@/services/data/account/last-snapshot-types' ; import { Favorite } from '@/services/data/console/favorite-types' ; import { AvailableSpaceInConsole , ConsoleSettings } from '@/services/data/console/settings-types' ; import { ConnectedSpace , ConnectedSpaceGraphics , ConnectedSpaceId } from '@/services/data/tuples/connected-space-types' ; import { Dashboard , DashboardId } from '@/services/data/tuples/dashboard-types' ; import { Enum , EnumId } from '@/services/data/tuples/enum-types' ; import { Topic } from '@/services/data/tuples/topic-types' ; export enum FavoriteState { HIDDEN = 'hidden' , SHOWN = 'shown' , PIN = 'pin' } export enum ConsoleEventTypes { SETTINGS_LOADED = 'settings-loaded' , ASK_SETTINGS_LOADED = 'ask-settings-loaded' , SHOW_FAVORITE = 'show-favorite' , PIN_FAVORITE = 'pin-favorite' , UNPIN_FAVORITE = 'unpin-favorite' , HIDE_FAVORITE = 'hide-favorite' , ASK_FAVORITE_STATE = 'ask-favorite-state' , DASHBOARD_ADDED_INTO_FAVORITE = 'dashboard-added-into-favorite' , DASHBOARD_REMOVED_FROM_FAVORITE = 'dashboard-removed-from-favorite' , CONNECTED_SPACE_ADDED_INTO_FAVORITE = 'connected-space-added-into-favorite' , CONNECTED_SPACE_REMOVED_FROM_FAVORITE = 'connected-space-removed-from-favorite' , DASHBOARD_CREATED = 'dashboard-created' , DASHBOARD_RENAMED = 'dashboard-renamed' , DASHBOARD_REMOVED = 'dashboard-removed' , CONNECTED_SPACE_CREATED = 'connected-space-created' , CONNECTED_SPACE_RENAMED = 'connected-space-renamed' , CONNECTED_SPACE_REMOVED = 'connected-space-removed' , CONNECTED_SPACE_GRAPHICS_CHANGED = 'connected-space-graphics-changed' , ASK_LAST_SNAPSHOT = 'ask-last-snapshot' , ASK_FAVORITE = 'ask-favorite' , ASK_CONNECTED_SPACES = 'ask-connected-spaces' , ASK_CONNECTED_SPACE_GRAPHICS = 'ask-connected-space-graphics' , ASK_DASHBOARDS = 'ask-dashboards' , ASK_AVAILABLE_SPACES = 'ask-available-spaces' , ASK_AVAILABLE_TOPICS = 'ask-available-topics' , ASK_ENUM = 'ask-enum' } export interface ConsoleEventBus { fire ( type , settings ) : this ; on ( type , listener ) : this ; off ( type , listener ) : this ; fire ( type , onSettingsLoadedGet ) : this ; on ( type , listener ) : this ; off ( type , listener ) : this ; fire ( type , position ) : this ; on ( type , listener ) : this ; off ( type , listener ) : this ; fire ( type ) : this ; on ( type , listener ) : this ; off ( type , listener ) : this ; fire ( type ) : this ; on ( type , listener ) : this ; off ( type , listener ) : this ; fire ( type ) : this ; on ( type , listener ) : this ; off ( type , listener ) : this ; fire ( type , onStateGet ) : this ; on ( type , listener ) : this ; off ( type , listener ) : this ; fire ( type , dashboardId ) : this ; on ( type , listener ) : this ; off ( type , listener ) : this ; fire ( type , dashboardId ) : this ; on ( type , listener ) : this ; off ( type , listener ) : this ; fire ( type , connectedSpaceId ) : this ; on ( type , listener ) : this ; off ( type , listener ) : this ; fire ( type , connectedSpaceId ) : this ; on ( type , listener ) : this ; off ( type , listener ) : this ; fire ( type , dashboard ) : this ; on ( type , listener ) : this ; off ( type , listener ) : this ; fire ( type , dashboard ) : this ; on ( type , listener ) : this ; off ( type , listener ) : this ; fire ( type , dashboard ) : this ; on ( type , listener ) : this ; off ( type , listener ) : this ; fire ( type , connectedSpace ) : this ; on ( type , listener ) : this ; off ( type , listener ) : this ; fire ( type , connectedSpace ) : this ; on ( type , listener ) : this ; off ( type , listener ) : this ; fire ( type , connectedSpace ) : this ; on ( type , listener ) : this ; off ( type , listener ) : this ; fire ( type , graphics ) : this ; on ( type , listener ) : this ; off ( type , listener ) : this ; fire ( type , onData ) : this ; on ( type , listener ) : this ; off ( type , listener ) : this ; fire ( type , onData ) : this ; on ( type , listener ) : this ; off ( type , listener ) : this ; fire ( type , onData ) : this ; on ( type , listener ) : this ; off ( type , listener ) : this ; fire ( type , onData ) : this ; on ( type , listener ) : this ; off ( type , listener ) : this ; fire ( type , onData ) : this ; on ( type , listener ) : this ; off ( type , listener ) : this ; fire ( type , onData ) : this ; on ( type , listener ) : this ; off ( type , listener ) : this ; fire ( type , onData ) : this ; on ( type , listener ) : this ; off ( type , listener ) : this ; fire ( type , enumId , onData ) : this ; on ( type , listener ) : this ; off ( type , listener ) : this ; }