mirror of
https://github.com/empayre/fleet.git
synced 2024-11-06 17:05:18 +00:00
35 lines
677 B
TypeScript
35 lines
677 B
TypeScript
import { ITeam } from "./team";
|
|
import { UserRole } from "./user";
|
|
|
|
export interface IInvite {
|
|
created_at: string;
|
|
updated_at: string;
|
|
id: number;
|
|
invited_by: number;
|
|
email: string;
|
|
name: string;
|
|
sso_enabled: boolean;
|
|
global_role: UserRole | null;
|
|
teams: ITeam[];
|
|
api_only?: boolean;
|
|
}
|
|
|
|
export interface ICreateInviteFormData {
|
|
email: string;
|
|
global_role: UserRole | null;
|
|
invited_by?: number;
|
|
name: string;
|
|
sso_enabled?: boolean;
|
|
teams: ITeam[];
|
|
}
|
|
|
|
export interface IEditInviteFormData {
|
|
currentUserId?: number;
|
|
email?: string;
|
|
global_role: UserRole | null;
|
|
name?: string;
|
|
password: null;
|
|
sso_enabled: boolean;
|
|
teams?: ITeam[];
|
|
}
|