2020-10-21 15:39:04 +00:00
|
|
|
declare namespace FG {
|
2020-11-04 22:53:10 +00:00
|
|
|
interface Session {
|
|
|
|
expires: Date;
|
|
|
|
token: string;
|
|
|
|
lifetime: number;
|
|
|
|
browser: string;
|
|
|
|
platform: string;
|
|
|
|
userid: string;
|
|
|
|
}
|
|
|
|
interface User {
|
|
|
|
userid: string;
|
|
|
|
display_name: string;
|
|
|
|
firstname: string;
|
|
|
|
lastname: string;
|
|
|
|
mail: string;
|
2020-11-15 18:47:05 +00:00
|
|
|
birthday?: Date;
|
2020-11-06 00:12:03 +00:00
|
|
|
roles: Array<string>;
|
2021-02-07 19:16:21 +00:00
|
|
|
permissions?: Array<string>;
|
2020-11-18 01:49:19 +00:00
|
|
|
avatar_url?: string;
|
2020-11-04 22:53:10 +00:00
|
|
|
}
|
|
|
|
type Permission = string;
|
|
|
|
interface Role {
|
2020-11-09 02:39:31 +00:00
|
|
|
id: number;
|
2020-11-04 22:53:10 +00:00
|
|
|
name: string;
|
|
|
|
permissions: Array<Permission>;
|
|
|
|
}
|
|
|
|
interface Transaction {
|
|
|
|
id: number;
|
|
|
|
time: Date;
|
|
|
|
amount: number;
|
2021-01-29 01:29:27 +00:00
|
|
|
reversal_id: number;
|
2020-11-16 01:28:03 +00:00
|
|
|
sender_id?: string;
|
|
|
|
receiver_id?: string;
|
|
|
|
author_id?: string;
|
2021-01-29 01:29:27 +00:00
|
|
|
original_id?: number;
|
2020-11-04 22:53:10 +00:00
|
|
|
}
|
|
|
|
interface Event {
|
|
|
|
id: number;
|
|
|
|
start: Date;
|
2021-02-07 13:42:27 +00:00
|
|
|
end: Date;
|
2020-11-11 22:53:44 +00:00
|
|
|
description?: string;
|
2021-02-07 13:42:27 +00:00
|
|
|
type: EventType;
|
2020-11-18 01:49:19 +00:00
|
|
|
jobs: Array<Job>;
|
2020-11-04 22:53:10 +00:00
|
|
|
}
|
2021-01-26 15:38:12 +00:00
|
|
|
interface EventType {
|
|
|
|
id: number;
|
|
|
|
name: string;
|
|
|
|
}
|
2020-11-18 01:49:19 +00:00
|
|
|
interface Job {
|
2020-11-04 22:53:10 +00:00
|
|
|
id: number;
|
|
|
|
start: Date;
|
2020-11-11 22:53:44 +00:00
|
|
|
end?: Date;
|
2020-11-18 01:49:19 +00:00
|
|
|
comment: string;
|
2020-11-04 22:53:10 +00:00
|
|
|
type: JobType;
|
2020-11-18 01:49:19 +00:00
|
|
|
services: Array<Service>;
|
|
|
|
required_services: number;
|
2020-11-04 22:53:10 +00:00
|
|
|
}
|
|
|
|
interface JobType {
|
|
|
|
id: number;
|
|
|
|
name: string;
|
|
|
|
}
|
2020-11-18 01:49:19 +00:00
|
|
|
interface Service {
|
|
|
|
userid: string;
|
|
|
|
value: number;
|
|
|
|
}
|
2020-10-18 23:45:06 +00:00
|
|
|
}
|