| kumaran.m | 3b4814a | 2020-05-01 19:48:54 +0530 | [diff] [blame^] | 1 | /* |
| 2 | Copyright 2020 TATA ELXSI |
| 3 | |
| 4 | Licensed under the Apache License, Version 2.0 (the 'License'); |
| 5 | you may not use this file except in compliance with the License. |
| 6 | You may obtain a copy of the License at |
| 7 | |
| 8 | http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | |
| 10 | Unless required by applicable law or agreed to in writing, software |
| 11 | distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | See the License for the specific language governing permissions and |
| 14 | limitations under the License. |
| 15 | |
| 16 | Author: KUMARAN M (kumaran.m@tataelxsi.co.in), RAJESH S (rajesh.s@tataelxsi.co.in), BARATH KUMAR R (barath.r@tataelxsi.co.in) |
| 17 | */ |
| 18 | |
| 19 | /** |
| 20 | * @file Model for user related information. |
| 21 | */ |
| 22 | |
| 23 | /** Interface for UserDetails */ |
| 24 | export interface UserDetails { |
| 25 | userDetail: UserDetail[]; |
| 26 | } |
| 27 | |
| 28 | /** Interface for UserDetail */ |
| 29 | export interface UserDetail { |
| 30 | username: string; |
| 31 | password?: string; |
| 32 | _id?: string; |
| 33 | projects: string[]; |
| 34 | _admin?: Admin; |
| 35 | modified: string; |
| 36 | created: string; |
| 37 | identifier: string; |
| 38 | projectListName?: string; |
| 39 | project_role_mappings?: ProjectRoleMappings[]; |
| 40 | } |
| 41 | |
| 42 | /** Interface for user role mappings */ |
| 43 | export interface UserRoleMap { |
| 44 | project_role_mappings?: ProjectRoleMappings[]; |
| 45 | } |
| 46 | |
| 47 | /** Interface for Admin */ |
| 48 | interface Admin { |
| 49 | salt: string; |
| 50 | created: number; |
| 51 | modified: number; |
| 52 | } |
| 53 | /** Interface for UserDetail */ |
| 54 | export interface UserData { |
| 55 | username: string; |
| 56 | projects: string; |
| 57 | modified: string; |
| 58 | created: string; |
| 59 | identifier: string; |
| 60 | } |
| 61 | |
| 62 | /** Interface for Project Roles Mappings */ |
| 63 | export interface ProjectRoleMappings { |
| 64 | project?: string; |
| 65 | project_name?: string; |
| 66 | role?: string; |
| 67 | role_name?: string; |
| 68 | } |