blob: e49670a8cb7ef1c825d105cfb52d2a1148fe6e9d [file] [log] [blame]
kumaran.m3b4814a2020-05-01 19:48:54 +05301/*
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 */
24export interface UserDetails {
25 userDetail: UserDetail[];
26}
27
28/** Interface for UserDetail */
29export 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.JS1b17c432023-04-26 17:54:57 +053040 account_expire_time: string;
41 password_expire_time?: string;
kumaran.m3b4814a2020-05-01 19:48:54 +053042}
43
44/** Interface for user role mappings */
45export interface UserRoleMap {
46 project_role_mappings?: ProjectRoleMappings[];
Barath Kumar R42fe05d2021-01-29 16:02:34 +053047 remove_project_role_mappings?: ProjectRoleMappings[];
kumaran.m3b4814a2020-05-01 19:48:54 +053048}
49
50/** Interface for Admin */
51interface Admin {
52 salt: string;
53 created: number;
54 modified: number;
SANDHYA.JS1b17c432023-04-26 17:54:57 +053055 user_status?: string;
56 account_expire_time?: number;
57 password_expire_time?: number;
kumaran.m3b4814a2020-05-01 19:48:54 +053058}
59/** Interface for UserDetail */
60export interface UserData {
61 username: string;
62 projects: string;
63 modified: string;
64 created: string;
65 identifier: string;
SANDHYA.JS1b17c432023-04-26 17:54:57 +053066 user_status: string;
67 account_expire_time?: string;
kumaran.m3b4814a2020-05-01 19:48:54 +053068}
69
70/** Interface for Project Roles Mappings */
71export interface ProjectRoleMappings {
72 project?: string;
73 project_name?: string;
74 role?: string;
75 role_name?: string;
76}