Merge branch 'master' into 14452-my-account
[arvados-workbench2.git] / src / models / user.ts
index c2f21e582798dacd5597872696ff7fc1685d62e7..dfb418892ef363192b73c5e8f6983c887910603b 100644 (file)
@@ -4,12 +4,25 @@
 
 import { Resource, ResourceKind } from '~/models/resource';
 
+export type userPrefs = {
+    profile?: {
+        organization?: string,
+        organization_email?: string,
+        lab?: string,
+        website_url?: string,
+        role?: string
+    }
+};
+
 export interface User {
     email: string;
     firstName: string;
     lastName: string;
     uuid: string;
     ownerUuid: string;
+    identityUrl: string;
+    prefs: userPrefs;
+    isAdmin: boolean;
 }
 
 export const getUserFullname = (user?: User) => {