import { LaravelModel } from './Laravel'; import { Schedule } from './Schedule'; export type ViewType = 'playlist' | 'teampoints' | 'url' | 'video'; export const ViewTypes: ViewType[] = ['playlist', 'teampoints', 'url', 'video']; export interface View extends LaravelModel { id: number; name: string; type: ViewType; length: number | null; payload: TType; concept: boolean; sensitive: boolean; } export interface UrlType { url: string; css: string; js: string; length: number; localStorage: Record; requestHeaders: Record; responseHeaders: Record; } export interface PlaylistType { items: number[]; } export interface VideoType { muted: boolean; path: string; } export interface ViewStats { scheduled: number[]; scheduledWithPast: number[]; schedules: Schedule[]; schedulesWithPast: Schedule[]; }