2019-10-03 14:54:56 +00:00
|
|
|
import { IEvent, IParticipant } from '@/types/event.model';
|
2019-10-07 11:47:46 +00:00
|
|
|
import { IPerson } from '@/types/actor/person.model';
|
2019-09-18 15:32:37 +00:00
|
|
|
|
2019-09-09 07:31:08 +00:00
|
|
|
export enum ICurrentUserRole {
|
|
|
|
USER = 'USER',
|
|
|
|
MODERATOR = 'MODERATOR',
|
|
|
|
ADMINISTRATOR = 'ADMINISTRATOR',
|
|
|
|
}
|
|
|
|
|
2019-01-18 13:47:10 +00:00
|
|
|
export interface ICurrentUser {
|
2019-03-22 09:57:14 +00:00
|
|
|
id: number;
|
|
|
|
email: string;
|
2019-04-01 09:49:54 +00:00
|
|
|
isLoggedIn: boolean;
|
2019-09-09 07:31:08 +00:00
|
|
|
role: ICurrentUserRole;
|
2019-09-18 15:32:37 +00:00
|
|
|
participations: IParticipant[];
|
2019-10-07 11:47:46 +00:00
|
|
|
defaultActor: IPerson;
|
2019-10-03 14:54:56 +00:00
|
|
|
drafts: IEvent[];
|
2019-01-18 13:47:10 +00:00
|
|
|
}
|