1
0
mirror of https://github.com/bitwarden/browser synced 2026-01-07 19:13:39 +00:00

update key api changes

This commit is contained in:
Kyle Spearrin
2018-07-17 17:22:45 -04:00
parent 3354f0b818
commit f35ecf0cd8
8 changed files with 39 additions and 6 deletions

View File

@@ -1,6 +1,7 @@
import { FolderData } from '../models/data/folderData';
import { Folder } from '../models/domain/folder';
import { SymmetricCryptoKey } from '../models/domain/symmetricCryptoKey';
import { FolderView } from '../models/view/folderView';
@@ -8,7 +9,7 @@ export abstract class FolderService {
decryptedFolderCache: FolderView[];
clearCache: () => void;
encrypt: (model: FolderView) => Promise<Folder>;
encrypt: (model: FolderView, key?: SymmetricCryptoKey) => Promise<Folder>;
get: (id: string) => Promise<Folder>;
getAll: () => Promise<Folder[]>;
getAllDecrypted: () => Promise<FolderView[]>;