diff --git a/src/flaschengeist.d.ts b/src/flaschengeist.d.ts index 88954ab..9be4deb 100644 --- a/src/flaschengeist.d.ts +++ b/src/flaschengeist.d.ts @@ -13,9 +13,9 @@ declare namespace FG { firstname: string; lastname: string; mail: string; - avatar_url?: string; birthday?: Date; roles: Array; + avatar_url?: string; } type Permission = string; interface Role { @@ -37,26 +37,24 @@ declare namespace FG { start: Date; description?: string; type: EventType; - slots: Array; - } - interface EventSlot { - id: number; - start: Date; - end?: Date; - jobs: Array; + jobs: Array; } type EventType = string; interface Job { - userid: string; - value: number; - } - interface JobSlot { + id: number; + start: Date; + end?: Date; + comment: string; type: JobType; - users: Array; - required_jobs: number; + services: Array; + required_services: number; } interface JobType { id: number; name: string; } + interface Service { + userid: string; + value: number; + } }