mirror of
https://github.com/bitwarden/browser.git
synced 2024-10-19 07:35:48 +02:00
17 lines
581 B
TypeScript
17 lines
581 B
TypeScript
|
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>;
|
||
|
}
|