felicity-lims/webapp/models/auth.ts
Aurthur Musendame da2d305916 updated user api
2024-07-24 11:04:53 +02:00

41 lines
811 B
TypeScript

export interface IUser {
uid?: string;
userUid?: string;
firstName?: string;
lastName?: string;
email?: string;
mobilePhone?: string;
businessPhone?: string;
groupUid?: string;
group?: IGroup;
role?: string; // group name
groups?: IGroup[];
isActive?: boolean;
isSuperuser?: boolean;
userName?: string;
isBlocked?: boolean;
password?: string;
passwordc?: string;
// for API axios
first_name?: string;
last_name?: string;
}
export interface IPermission {
uid?: string;
action?: string;
target?: string;
active?: boolean;
checked?: boolean;
}
export interface IGroup {
uid?: string;
name?: string;
keyword?: string;
permissions?: IPermission[];
active?: boolean;
pages?: string;
}