mirror of
https://github.com/bitwarden/browser
synced 2025-12-20 18:23:31 +00:00
getAllNested for collections too. added treenodeobject interface
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import { CollectionData } from '../models/data/collectionData';
|
||||
|
||||
import { Collection } from '../models/domain/collection';
|
||||
import { TreeNode } from '../models/domain/treeNode';
|
||||
|
||||
import { CollectionView } from '../models/view/collectionView';
|
||||
|
||||
@@ -13,6 +14,7 @@ export abstract class CollectionService {
|
||||
get: (id: string) => Promise<Collection>;
|
||||
getAll: () => Promise<Collection[]>;
|
||||
getAllDecrypted: () => Promise<CollectionView[]>;
|
||||
getAllNested: (collections?: CollectionView[]) => Promise<Array<TreeNode<CollectionView>>>;
|
||||
upsert: (collection: CollectionData | CollectionData[]) => Promise<any>;
|
||||
replace: (collections: { [id: string]: CollectionData; }) => Promise<any>;
|
||||
clear: (userId: string) => Promise<any>;
|
||||
|
||||
Reference in New Issue
Block a user