Extend details panel with files
[arvados.git] / src / models / user.ts
index 9f9c534763ca86ee40190c2361c89b4e81da2f95..a7b8458bf81fb37eb6480d33ea19c6e484b67180 100644 (file)
@@ -4,12 +4,24 @@
 
 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;
 }
 
@@ -25,7 +37,7 @@ export interface UserResource extends Resource {
     lastName: string;
     identityUrl: string;
     isAdmin: boolean;
-    prefs: string;
+    prefs: UserPrefs;
     defaultOwnerUuid: string;
     isActive: boolean;
     writableBy: string[];