import { RestApiLink, User } from './element.interface'; export interface CalendarEvent { category: 'ticket' | 'reminder' | 'reminder-element'; description: { attendees: User[]; background: string; color: { background: string; text: string; }; elements: [ { element: { name: string; hash: string; type: string; }; owner: { uid: string; }; } ]; metadata: { color: { background: string; text: string; }; }; organization: { uid: string; }; privileges: 'r' | 'w'; text: string; }; dtstart: string; hash: string; summary: string; url: string; } export interface CalendarResponse { count: number; events: CalendarEvent[]; first: number; month: number; offset: number; year: number; } export interface Reminder { author: User; createdAt: string; date: string; hash: string; name: string; occurrence: { next: string | null; last: string | null; }; organization: { id: string; }; schedule: { location: string; }; security_groups: { id: string; }[]; users: User[]; } export interface ReminderWrapper { links: RestApiLink[]; reminder: Reminder; } export interface FullCalendarEvent { date?: string; start?: string; end?: string; url: string; title: string; id: string; backgroundColor?: string; borderColor?: string; }