UNPKG

@withjoy/sdk-js

Version:
44 lines (43 loc) 1.3 kB
import { Observable } from 'rxjs'; import { EventSource } from './eventSource'; import 'rxjs/add/observable/interval'; import 'rxjs/add/operator/filter'; import 'rxjs/add/operator/switchMap'; export interface CalendarEvent { detail?: string; dtstart: number; dtend: number; hideTime: boolean; key: string; location: string; name: string; noEndTime: boolean; tzid: string; place_id?: string; showMap?: boolean; isMain?: boolean; } export interface EventCountdown { millisecondsToEvent: number; days: number; hours: number; minutes: number; seconds: number; } import { Photo } from './interfaces'; export declare class EventSchedule { private es; constructor(eventSource: EventSource); observeSchedule(): Observable<{ calendar: CalendarEvent[]; mapUrl: string; primaryPhoto: Photo; hasPrivateEvents: boolean; }>; observeScheduleMapUrl(): Observable<string>; observeHasPrivateEvents(): Observable<boolean>; observeCalendar(): Observable<Array<CalendarEvent>>; observeMainEvent(): Observable<CalendarEvent>; observePrimarySchedulePhoto(): Observable<Photo>; observePrimarySchedulePhotoHorizontal(): Observable<Photo>; }