bitwarden-estensione-browser/src/abstractions/search.service.ts

14 lines
642 B
TypeScript
Raw Normal View History

import { CipherView } from '../models/view/cipherView';
2021-01-23 02:54:22 +01:00
import { SendView } from '../models/view/sendView';
export abstract class SearchService {
clearIndex: () => void;
2018-08-13 17:52:55 +02:00
isSearchable: (query: string) => boolean;
indexCiphers: (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[];
2021-01-23 02:54:22 +01:00
searchSends: (sends: SendView[], query: string) => SendView[];
}