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:
16
src/abstractions/collection.service.ts
Normal file
16
src/abstractions/collection.service.ts
Normal 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>;
|
||||
}
|
||||
Reference in New Issue
Block a user