import { ShortEventVisitor } from "../stats"; import { EventTypes } from "@jealous-robot-dev/drophr-common"; export interface HostHubEventData { id: string; pic: string; name: string; langs: string[]; type: EventTypes; } export interface HostHubTodayEvtClient { id: string; pic: string; sid: string; lang: string; data: string; name: string; can_host: boolean; duration: number; starts_at: number; } export interface HostHubBookingEvtClient { id: string; pic: string; data: string; name: string; lang: string; duration: number; } export interface EventSeanceWithBookings { sid: string; duration: number; starts_at: number; total_guests: number; } export interface HostHubEventToday extends HostHubEventData { can_host: boolean; starts_at: number; duration: number; sid: string; } export interface HostHubEventBookings extends HostHubEventData { guests: number; duration: number; seances: EventSeanceWithBookings[]; } export interface HostHubData { has_active_events: boolean; total_events_today: number; events_today: HostHubEventToday[]; bookings: { total: number; events: HostHubEventBookings[]; }; } export interface SessionGuests { sid: string; guests: ShortEventVisitor[]; } export interface EventGuests { event_id: string; guests: SessionGuests[]; }