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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

17 lines
691 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 {
indexedEntityId?: string = null;
clearIndex: () => void;
2018-08-13 17:52:55 +02:00
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[];
2021-01-23 02:54:22 +01:00
searchSends: (sends: SendView[], query: string) => SendView[];
}