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

16 lines
314 B
TypeScript

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