1
0
mirror of https://github.com/bpatrik/pigallery2.git synced 2025-01-10 04:07:35 +02:00
pigallery2/backend/model/interfaces/ISearchManager.ts

9 lines
391 B
TypeScript
Raw Normal View History

2016-12-27 17:09:47 +02:00
import {AutoCompleteItem, SearchTypes} from "../../../common/entities/AutoCompleteItem";
import {SearchResultDTO} from "../../../common/entities/SearchResultDTO";
2016-05-04 18:34:54 +02:00
export interface ISearchManager {
2017-07-08 00:18:24 +02:00
autocomplete(text: string): Promise<AutoCompleteItem[]>;
search(text: string, searchType: SearchTypes): Promise<SearchResultDTO>;
instantSearch(text: string): Promise<SearchResultDTO>;
2017-07-07 22:54:18 +02:00
}