2021-05-05 14:17:25 +02:00
|
|
|
export 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-05-05 14:17:25 +02:00
|
|
|
permissions: IPermission[];
|
2021-11-26 11:12:37 +01:00
|
|
|
splash: ISplash;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface ISplash {
|
|
|
|
[key: string]: boolean;
|
2021-05-05 14:17:25 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
export interface IPermission {
|
|
|
|
permission: string;
|
|
|
|
project: string;
|
2022-01-14 15:50:02 +01:00
|
|
|
displayName: string;
|
2021-04-12 15:04:03 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
interface IAuthDetails {
|
|
|
|
type: string;
|
|
|
|
path: string;
|
|
|
|
message: string;
|
2021-05-18 12:59:48 +02:00
|
|
|
options: IAuthOptions[];
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface IAuthOptions {
|
|
|
|
type: string;
|
|
|
|
message: string;
|
|
|
|
path: string;
|
2021-04-12 15:04:03 +02:00
|
|
|
}
|
|
|
|
|
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;
|