2021-12-05 13:21:18 +00:00
|
|
|
/** Models exported from backend */
|
2021-05-20 21:14:32 +00:00
|
|
|
declare namespace FG {
|
|
|
|
interface Notification {
|
|
|
|
id: number;
|
|
|
|
plugin: string;
|
|
|
|
text: string;
|
2021-05-26 14:55:53 +00:00
|
|
|
data?: any;
|
2021-05-20 21:14:32 +00:00
|
|
|
time: Date;
|
|
|
|
}
|
|
|
|
interface User {
|
|
|
|
userid: string;
|
2021-12-05 13:21:18 +00:00
|
|
|
deleted: boolean;
|
2021-05-20 21:14:32 +00:00
|
|
|
display_name: string;
|
|
|
|
firstname: string;
|
|
|
|
lastname: string;
|
|
|
|
mail: string;
|
|
|
|
birthday?: Date;
|
|
|
|
roles: Array<string>;
|
|
|
|
permissions?: Array<string>;
|
|
|
|
}
|
|
|
|
interface Session {
|
|
|
|
expires: Date;
|
|
|
|
token: string;
|
|
|
|
lifetime: number;
|
|
|
|
browser: string;
|
|
|
|
platform: string;
|
|
|
|
userid: string;
|
|
|
|
}
|
|
|
|
type Permission = string;
|
|
|
|
interface Role {
|
|
|
|
id: number;
|
|
|
|
name: string;
|
|
|
|
permissions: Array<Permission>;
|
|
|
|
}
|
|
|
|
}
|