1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-19 01:33:33 +00:00

web vault and organizations support

This commit is contained in:
Kyle Spearrin
2018-08-06 11:39:55 -04:00
parent 8b26d90e74
commit 3429b57db4
2 changed files with 76 additions and 27 deletions

View File

@@ -5,7 +5,9 @@ export interface ImportOption {
name: string;
}
export abstract class ImportService {
importOptions: ImportOption[];
import: (importer: Importer, fileContents: string) => Promise<any>;
getImporter: (format: string) => Importer;
featuredImportOptions: ImportOption[];
regularImportOptions: ImportOption[];
getImportOptions: () => ImportOption[];
import: (importer: Importer, fileContents: string, organizationId?: string) => Promise<Error>;
getImporter: (format: string, organization?: boolean) => Importer;
}