2023-04-07 15:36:47 +00:00
|
|
|
import { ITeam } from "./team";
|
|
|
|
import { UserRole } from "./user";
|
2021-04-09 10:44:57 +00:00
|
|
|
|
|
|
|
export interface IInvite {
|
2021-08-16 14:30:19 +00:00
|
|
|
created_at: string;
|
|
|
|
updated_at: string;
|
2021-04-09 10:44:57 +00:00
|
|
|
id: number;
|
|
|
|
invited_by: number;
|
2021-08-16 14:30:19 +00:00
|
|
|
email: string;
|
2021-04-09 10:44:57 +00:00
|
|
|
name: string;
|
2021-04-29 13:47:33 +00:00
|
|
|
sso_enabled: boolean;
|
2023-04-07 15:36:47 +00:00
|
|
|
global_role: UserRole | null;
|
2021-08-16 14:30:19 +00:00
|
|
|
teams: ITeam[];
|
2023-04-07 15:36:47 +00:00
|
|
|
api_only?: boolean;
|
2021-04-09 10:44:57 +00:00
|
|
|
}
|
2022-01-13 23:11:45 +00:00
|
|
|
|
|
|
|
export interface ICreateInviteFormData {
|
|
|
|
email: string;
|
2023-04-07 15:36:47 +00:00
|
|
|
global_role: UserRole | null;
|
2022-01-13 23:11:45 +00:00
|
|
|
invited_by?: number;
|
|
|
|
name: string;
|
|
|
|
sso_enabled?: boolean;
|
|
|
|
teams: ITeam[];
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface IEditInviteFormData {
|
|
|
|
currentUserId?: number;
|
|
|
|
email?: string;
|
2023-04-07 15:36:47 +00:00
|
|
|
global_role: UserRole | null;
|
2022-01-13 23:11:45 +00:00
|
|
|
name?: string;
|
|
|
|
password: null;
|
|
|
|
sso_enabled: boolean;
|
|
|
|
teams?: ITeam[];
|
|
|
|
}
|