mirror of
https://github.com/bitwarden/browser.git
synced 2024-10-29 07:59:42 +01:00
1016bbfb9e
* Split jslib into multiple modules
15 lines
707 B
TypeScript
15 lines
707 B
TypeScript
import { CipherView } from '../models/view/cipherView';
|
|
import { SendView } from '../models/view/sendView';
|
|
|
|
export abstract class SearchService {
|
|
indexedEntityId?: string = null;
|
|
clearIndex: () => void;
|
|
isSearchable: (query: string) => boolean;
|
|
indexCiphers: (indexedEntityGuid?: string, ciphersToIndex?: CipherView[]) => Promise<void>;
|
|
searchCiphers: (query: string,
|
|
filter?: ((cipher: CipherView) => boolean) | (((cipher: CipherView) => boolean)[]),
|
|
ciphers?: CipherView[]) => Promise<CipherView[]>;
|
|
searchCiphersBasic: (ciphers: CipherView[], query: string, deleted?: boolean) => CipherView[];
|
|
searchSends: (sends: SendView[], query: string) => SendView[];
|
|
}
|