| 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[]; |
| SANDHYA.JS | 1b17c43 | 2023-04-26 17:54:57 +0530 | [diff] [blame] | 40 | account_expire_time: string; |
| 41 | password_expire_time?: string; |
| SANDHYA.JS | 6c68608 | 2024-06-10 21:39:41 +0530 | [diff] [blame] | 42 | email_id?: string; |
| kumaran.m | 3b4814a | 2020-05-01 19:48:54 +0530 | [diff] [blame] | 43 | } |
| 44 | |
| 45 | /** Interface for user role mappings */ |
| 46 | export interface UserRoleMap { |
| 47 | project_role_mappings?: ProjectRoleMappings[]; |
| Barath Kumar R | 42fe05d | 2021-01-29 16:02:34 +0530 | [diff] [blame] | 48 | remove_project_role_mappings?: ProjectRoleMappings[]; |
| kumaran.m | 3b4814a | 2020-05-01 19:48:54 +0530 | [diff] [blame] | 49 | } |
| 50 | |
| 51 | /** Interface for Admin */ |
| 52 | interface Admin { |
| 53 | salt: string; |
| 54 | created: number; |
| 55 | modified: number; |
| SANDHYA.JS | 1b17c43 | 2023-04-26 17:54:57 +0530 | [diff] [blame] | 56 | user_status?: string; |
| 57 | account_expire_time?: number; |
| 58 | password_expire_time?: number; |
| kumaran.m | 3b4814a | 2020-05-01 19:48:54 +0530 | [diff] [blame] | 59 | } |
| 60 | /** Interface for UserDetail */ |
| 61 | export interface UserData { |
| 62 | username: string; |
| 63 | projects: string; |
| 64 | modified: string; |
| 65 | created: string; |
| 66 | identifier: string; |
| SANDHYA.JS | 1b17c43 | 2023-04-26 17:54:57 +0530 | [diff] [blame] | 67 | user_status: string; |
| 68 | account_expire_time?: string; |
| SANDHYA.JS | 6c68608 | 2024-06-10 21:39:41 +0530 | [diff] [blame] | 69 | email_id?: string; |
| kumaran.m | 3b4814a | 2020-05-01 19:48:54 +0530 | [diff] [blame] | 70 | } |
| 71 | |
| 72 | /** Interface for Project Roles Mappings */ |
| 73 | export interface ProjectRoleMappings { |
| 74 | project?: string; |
| 75 | project_name?: string; |
| 76 | role?: string; |
| 77 | role_name?: string; |
| 78 | } |