1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-10-19 07:35:48 +02:00
bitwarden-browser/src/abstractions/collection.service.ts

17 lines
581 B
TypeScript
Raw Normal View History

2018-01-10 05:12:18 +01:00
import { CollectionData } from '../models/data/collectionData';
import { Collection } from '../models/domain/collection';
export interface CollectionService {
decryptedCollectionCache: any[];
clearCache(): void;
get(id: string): Promise<Collection>;
getAll(): Promise<Collection[]>;
getAllDecrypted(): Promise<any[]>;
upsert(collection: CollectionData | CollectionData[]): Promise<any>;
replace(collections: { [id: string]: CollectionData; }): Promise<any>;
clear(userId: string): Promise<any>;
delete(id: string | string[]): Promise<any>;
}