2024-03-18 13:58:05 +01:00
|
|
|
import type { IUser } from './user';
|
2022-07-22 09:31:08 +02:00
|
|
|
|
|
|
|
export interface IGroup {
|
|
|
|
id: number;
|
|
|
|
name: string;
|
|
|
|
description: string;
|
|
|
|
createdAt: Date;
|
|
|
|
users: IGroupUser[];
|
|
|
|
projects: string[];
|
|
|
|
addedAt?: string;
|
2022-07-26 14:02:54 +02:00
|
|
|
userCount?: number;
|
2022-10-13 12:34:47 +02:00
|
|
|
mappingsSSO: string[];
|
2023-04-20 12:29:30 +02:00
|
|
|
rootRole?: number;
|
2024-04-12 11:01:57 +02:00
|
|
|
scimId?: string;
|
2022-07-22 09:31:08 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
export interface IGroupUser extends IUser {
|
|
|
|
joinedAt?: Date;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface IGroupUserModel {
|
|
|
|
user: {
|
|
|
|
id: number;
|
|
|
|
};
|
|
|
|
}
|