mobilizon.chapril.org-mobil.../js/src/types/current-user.model.ts

19 lines
421 B
TypeScript

import { IEvent, IParticipant } from '@/types/event.model';
import { IPerson } from '@/types/actor/person.model';
export enum ICurrentUserRole {
USER = 'USER',
MODERATOR = 'MODERATOR',
ADMINISTRATOR = 'ADMINISTRATOR',
}
export interface ICurrentUser {
id: number;
email: string;
isLoggedIn: boolean;
role: ICurrentUserRole;
participations: IParticipant[];
defaultActor: IPerson;
drafts: IEvent[];
}