mirror of
				https://github.com/Unleash/unleash.git
				synced 2025-10-27 11:02:16 +01:00 
			
		
		
		
	feat: adds a way to specify a root role on a group, which will cause any user entering into that group to take on the permissions of that root role Co-authored-by: Nuno Góis <github@nunogois.com>
		
			
				
	
	
		
			25 lines
		
	
	
		
			431 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
			
		
		
	
	
			25 lines
		
	
	
		
			431 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
| import { IUser } from './user';
 | |
| 
 | |
| export interface IGroup {
 | |
|     id: number;
 | |
|     name: string;
 | |
|     description: string;
 | |
|     createdAt: Date;
 | |
|     users: IGroupUser[];
 | |
|     projects: string[];
 | |
|     addedAt?: string;
 | |
|     userCount?: number;
 | |
|     mappingsSSO: string[];
 | |
|     rootRole?: number;
 | |
| }
 | |
| 
 | |
| export interface IGroupUser extends IUser {
 | |
|     joinedAt?: Date;
 | |
| }
 | |
| 
 | |
| export interface IGroupUserModel {
 | |
|     user: {
 | |
|         id: number;
 | |
|     };
 | |
| }
 |