1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-22 11:13:46 +00:00

getNested tree object by node id

This commit is contained in:
Kyle Spearrin
2018-10-26 10:48:06 -04:00
parent b0eea9d7ce
commit d4b3a16fd1
6 changed files with 30 additions and 10 deletions

View File

@@ -15,6 +15,7 @@ export abstract class CollectionService {
getAll: () => Promise<Collection[]>;
getAllDecrypted: () => Promise<CollectionView[]>;
getAllNested: (collections?: CollectionView[]) => Promise<Array<TreeNode<CollectionView>>>;
getNested: (id: string) => Promise<TreeNode<CollectionView>>;
upsert: (collection: CollectionData | CollectionData[]) => Promise<any>;
replace: (collections: { [id: string]: CollectionData; }) => Promise<any>;
clear: (userId: string) => Promise<any>;