1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-19 09:43:23 +00:00

sync organizations

This commit is contained in:
Kyle Spearrin
2018-05-18 15:26:46 -04:00
parent a421f6e64a
commit bf260819bb
5 changed files with 101 additions and 2 deletions

View File

@@ -1,3 +1,6 @@
import { OrganizationData } from '../models/data/organizationData';
import { Organization } from '../models/domain/organization';
export abstract class UserService {
userId: string;
email: string;
@@ -10,4 +13,8 @@ export abstract class UserService {
getSecurityStamp: () => Promise<string>;
clear: () => Promise<any>;
isAuthenticated: () => Promise<boolean>;
getOrganization: (id: string) => Promise<Organization>;
getAllOrganizations: () => Promise<Organization[]>;
replaceOrganizations: (organizations: { [id: string]: OrganizationData; }) => Promise<any>;
clearOrganizations: (userId: string) => Promise<any>;
}