flaschengeist-frontend/src/flaschengeist.d.ts

32 lines
498 B
TypeScript
Raw Normal View History

interface Session {
user: User;
expires: Date;
token: string;
lifetime: number;
browser: string;
platform: string;
}
interface User {
roles: Array<Role>;
userid: string;
display_name: string;
firstname: string;
lastname: string;
mail: string;
}
interface Permission {
id: number;
name: string;
}
interface Role {
permissions: Array<Permission>;
id: number;
name: string;
}
interface UserAttribute {
id: number;
user: number;
name: string;
value: string;
}