2021-04-23 10:59:11 +02:00
|
|
|
interface IAuthStatus {
|
2021-04-12 15:04:03 +02:00
|
|
|
authDetails: IAuthDetails;
|
|
|
|
showDialog: boolean;
|
2021-04-23 10:59:11 +02:00
|
|
|
profile?: IUser;
|
2021-04-12 15:04:03 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
interface IAuthDetails {
|
|
|
|
type: string;
|
|
|
|
path: string;
|
|
|
|
message: string;
|
|
|
|
options: string[];
|
|
|
|
}
|
|
|
|
|
2021-04-23 10:59:11 +02:00
|
|
|
export interface IUser {
|
2021-04-12 15:04:03 +02:00
|
|
|
id: number;
|
2021-04-23 10:59:11 +02:00
|
|
|
email: string;
|
|
|
|
name: string;
|
2021-04-12 15:04:03 +02:00
|
|
|
createdAt: string;
|
|
|
|
imageUrl: string;
|
|
|
|
loginAttempts: number;
|
2021-04-23 10:59:11 +02:00
|
|
|
permissions: string[] | null;
|
|
|
|
inviteLink: string;
|
|
|
|
rootRole: number;
|
|
|
|
seenAt: string | null;
|
|
|
|
username?: string;
|
2021-04-12 15:04:03 +02:00
|
|
|
}
|
|
|
|
|
2021-04-23 10:59:11 +02:00
|
|
|
export interface IUserPayload {
|
|
|
|
name: string;
|
|
|
|
email: string;
|
|
|
|
id?: string;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface IAddedUser extends IUser {
|
|
|
|
emailSent?: boolean;
|
|
|
|
}
|
|
|
|
|
|
|
|
export default IAuthStatus;
|