2020-02-18 08:57:00 +01:00
|
|
|
import { IEvent, IParticipant } from "@/types/event.model";
|
|
|
|
import { IPerson } from "@/types/actor/person.model";
|
|
|
|
import { Paginate } from "./paginate";
|
2019-09-18 17:32:37 +02:00
|
|
|
|
2019-09-09 09:31:08 +02:00
|
|
|
export enum ICurrentUserRole {
|
2020-02-18 08:57:00 +01:00
|
|
|
USER = "USER",
|
|
|
|
MODERATOR = "MODERATOR",
|
|
|
|
ADMINISTRATOR = "ADMINISTRATOR",
|
2019-09-09 09:31:08 +02:00
|
|
|
}
|
|
|
|
|
2019-01-18 14:47:10 +01:00
|
|
|
export interface ICurrentUser {
|
2019-03-22 10:57:14 +01:00
|
|
|
id: number;
|
|
|
|
email: string;
|
2019-04-01 11:49:54 +02:00
|
|
|
isLoggedIn: boolean;
|
2019-09-09 09:31:08 +02:00
|
|
|
role: ICurrentUserRole;
|
2020-02-18 08:57:00 +01:00
|
|
|
participations: Paginate<IParticipant>;
|
2019-10-07 13:47:46 +02:00
|
|
|
defaultActor: IPerson;
|
2019-10-03 16:54:56 +02:00
|
|
|
drafts: IEvent[];
|
2020-02-18 08:57:00 +01:00
|
|
|
settings: IUserSettings;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface IUserSettings {
|
|
|
|
timezone: string;
|
|
|
|
notificationOnDay: string;
|
|
|
|
notificationEachWeek: string;
|
|
|
|
notificationBeforeEvent: string;
|
2019-01-18 14:47:10 +01:00
|
|
|
}
|