2018-03-30 15:30:30 -04:00
|
|
|
import {AutoCompleteItem, SearchTypes} from '../../../common/entities/AutoCompleteItem';
|
|
|
|
import {SearchResultDTO} from '../../../common/entities/SearchResultDTO';
|
2017-07-20 23:00:49 +02:00
|
|
|
|
2016-05-04 18:34:54 +02:00
|
|
|
export interface ISearchManager {
|
2017-07-08 00:18:24 +02:00
|
|
|
autocomplete(text: string): Promise<AutoCompleteItem[]>;
|
2018-03-30 15:30:30 -04:00
|
|
|
|
2017-07-08 00:18:24 +02:00
|
|
|
search(text: string, searchType: SearchTypes): Promise<SearchResultDTO>;
|
2018-03-30 15:30:30 -04:00
|
|
|
|
2017-07-08 00:18:24 +02:00
|
|
|
instantSearch(text: string): Promise<SearchResultDTO>;
|
2017-07-07 22:54:18 +02:00
|
|
|
}
|