2019-10-03 16:54:56 +02:00
|
|
|
import { IEvent, IParticipant } from '@/types/event.model';
|
2019-10-07 13:47:46 +02:00
|
|
|
import { IPerson } from '@/types/actor/person.model';
|
2019-09-18 17:32:37 +02:00
|
|
|
|
2019-09-09 09:31:08 +02:00
|
|
|
export enum ICurrentUserRole {
|
|
|
|
USER = 'USER',
|
|
|
|
MODERATOR = 'MODERATOR',
|
|
|
|
ADMINISTRATOR = 'ADMINISTRATOR',
|
|
|
|
}
|
|
|
|
|
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;
|
2019-09-18 17:32:37 +02:00
|
|
|
participations: IParticipant[];
|
2019-10-07 13:47:46 +02:00
|
|
|
defaultActor: IPerson;
|
2019-10-03 16:54:56 +02:00
|
|
|
drafts: IEvent[];
|
2019-01-18 14:47:10 +01:00
|
|
|
}
|