mirror of
https://github.com/empayre/fleet.git
synced 2024-11-06 08:55:24 +00:00
46 lines
983 B
TypeScript
46 lines
983 B
TypeScript
import PropTypes from "prop-types";
|
|
import teamInterface, { ITeam } from "./team";
|
|
|
|
export default PropTypes.shape({
|
|
created_at: PropTypes.string,
|
|
updated_at: PropTypes.string,
|
|
id: PropTypes.number,
|
|
invited_by: PropTypes.number,
|
|
email: PropTypes.string,
|
|
name: PropTypes.string,
|
|
sso_enabled: PropTypes.bool,
|
|
global_role: PropTypes.string,
|
|
teams: PropTypes.arrayOf(teamInterface),
|
|
});
|
|
|
|
export interface IInvite {
|
|
created_at: string;
|
|
updated_at: string;
|
|
id: number;
|
|
invited_by: number;
|
|
email: string;
|
|
name: string;
|
|
sso_enabled: boolean;
|
|
global_role: string | null;
|
|
teams: ITeam[];
|
|
}
|
|
|
|
export interface ICreateInviteFormData {
|
|
email: string;
|
|
global_role: string | null;
|
|
invited_by?: number;
|
|
name: string;
|
|
sso_enabled?: boolean;
|
|
teams: ITeam[];
|
|
}
|
|
|
|
export interface IEditInviteFormData {
|
|
currentUserId?: number;
|
|
email?: string;
|
|
global_role: string | null;
|
|
name?: string;
|
|
password: null;
|
|
sso_enabled: boolean;
|
|
teams?: ITeam[];
|
|
}
|