mirror of
https://github.com/bitwarden/browser
synced 2025-12-20 02:03:39 +00:00
apply collection and folder views
This commit is contained in:
@@ -2,13 +2,15 @@ import { CollectionData } from '../models/data/collectionData';
|
||||
|
||||
import { Collection } from '../models/domain/collection';
|
||||
|
||||
import { CollectionView } from '../models/view/collectionView';
|
||||
|
||||
export abstract class CollectionService {
|
||||
decryptedCollectionCache: any[];
|
||||
decryptedCollectionCache: CollectionView[];
|
||||
|
||||
clearCache: () => void;
|
||||
get: (id: string) => Promise<Collection>;
|
||||
getAll: () => Promise<Collection[]>;
|
||||
getAllDecrypted: () => Promise<any[]>;
|
||||
getAllDecrypted: () => Promise<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