import { Catalog } from '@/services/data/tuples/catalog-types' ; import { CatalogCriteria } from '@/services/data/tuples/query-catalog-types' ; import { QueryUserForHolder } from '@/services/data/tuples/query-user-types' ; export enum CatalogEventTypes { ASK_USERS = 'ask-users' , DO_SEARCH = 'do-search' , DO_CREATE_CATALOG = 'do-create-catalog' , ASK_CATALOG_CHANGED = 'ask-catalog-changed' , CATALOG_CHANGED = 'catalog-changed' , CATALOG_SAVED = 'catalog-saved' , CATALOG_DELETED = 'catalog-deleted' , CLEAR_CATALOG_STATE = 'clear-catalog-state' } export interface CatalogEventBus { fire ( type , onData ) : this ; on ( type , listener ) : this ; off ( type , listener ) : this ; fire ( type , criteria ) : this ; on ( type , listener ) : this ; off ( type , listener ) : this ; fire ( type , catalog ) : this ; on ( type , listener ) : this ; off ( type , listener ) : this ; fire ( type , onData ) : this ; on ( type , listener ) : this ; off ( type , listener ) : this ; fire ( type , catalog ) : this ; on ( type , listener ) : this ; off ( type , listener ) : this ; fire ( type , catalog ) : this ; on ( type , listener ) : this ; off ( type , listener ) : this ; fire ( type , catalog ) : this ; on ( type , listener ) : this ; off ( type , listener ) : this ; fire ( type ) : this ; on ( type , listener ) : this ; off ( type , listener ) : this ; }