Definition from current backend
This commit is contained in:
parent
bda58426e3
commit
7612ccde7b
|
@ -13,9 +13,9 @@ declare namespace FG {
|
||||||
firstname: string;
|
firstname: string;
|
||||||
lastname: string;
|
lastname: string;
|
||||||
mail: string;
|
mail: string;
|
||||||
avatar_url?: string;
|
|
||||||
birthday?: Date;
|
birthday?: Date;
|
||||||
roles: Array<string>;
|
roles: Array<string>;
|
||||||
|
avatar_url?: string;
|
||||||
}
|
}
|
||||||
type Permission = string;
|
type Permission = string;
|
||||||
interface Role {
|
interface Role {
|
||||||
|
@ -37,26 +37,24 @@ declare namespace FG {
|
||||||
start: Date;
|
start: Date;
|
||||||
description?: string;
|
description?: string;
|
||||||
type: EventType;
|
type: EventType;
|
||||||
slots: Array<EventSlot>;
|
jobs: Array<Job>;
|
||||||
}
|
|
||||||
interface EventSlot {
|
|
||||||
id: number;
|
|
||||||
start: Date;
|
|
||||||
end?: Date;
|
|
||||||
jobs: Array<JobSlot>;
|
|
||||||
}
|
}
|
||||||
type EventType = string;
|
type EventType = string;
|
||||||
interface Job {
|
interface Job {
|
||||||
userid: string;
|
id: number;
|
||||||
value: number;
|
start: Date;
|
||||||
}
|
end?: Date;
|
||||||
interface JobSlot {
|
comment: string;
|
||||||
type: JobType;
|
type: JobType;
|
||||||
users: Array<Job>;
|
services: Array<Service>;
|
||||||
required_jobs: number;
|
required_services: number;
|
||||||
}
|
}
|
||||||
interface JobType {
|
interface JobType {
|
||||||
id: number;
|
id: number;
|
||||||
name: string;
|
name: string;
|
||||||
}
|
}
|
||||||
|
interface Service {
|
||||||
|
userid: string;
|
||||||
|
value: number;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue