1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-17 16:53:34 +00:00

bulk move/delete apis

This commit is contained in:
Kyle Spearrin
2018-06-12 17:12:27 -04:00
parent 1021f23277
commit 7a5a4e654a
6 changed files with 80 additions and 3 deletions

View File

@@ -35,8 +35,10 @@ export abstract class CipherService {
upsert: (cipher: CipherData | CipherData[]) => Promise<any>;
replace: (ciphers: { [id: string]: CipherData; }) => Promise<any>;
clear: (userId: string) => Promise<any>;
moveManyWithServer: (ids: string[], folderId: string) => Promise<any>;
delete: (id: string | string[]) => Promise<any>;
deleteWithServer: (id: string) => Promise<any>;
deleteManyWithServer: (ids: string[]) => Promise<any>;
deleteAttachment: (id: string, attachmentId: string) => Promise<void>;
deleteAttachmentWithServer: (id: string, attachmentId: string) => Promise<void>;
sortCiphersByLastUsed: (a: any, b: any) => number;