1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-20 02:03:39 +00:00

move collection service tio jslib

This commit is contained in:
Kyle Spearrin
2018-01-09 23:12:18 -05:00
parent 6bdc683c0d
commit 8e64181a5d
4 changed files with 142 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
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>;
}