mirror of
https://github.com/bitwarden/browser
synced 2025-12-17 00:33:44 +00:00
* Move send in libs/common * Move send in libs/angular * Move send in browser * Move send in cli * Move send in desktop * Move send in web
17 lines
710 B
TypeScript
17 lines
710 B
TypeScript
import { SendView } from "../tools/send/models/view/send.view";
|
|
import { CipherView } from "../vault/models/view/cipher.view";
|
|
|
|
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[];
|
|
}
|