@withjoy/sdk-js
Version:
Joy Javascript SDK
26 lines (25 loc) • 790 B
TypeScript
import { Observable } from 'rxjs/Observable';
import { EventSource } from './eventSource';
import 'rxjs/add/observable/interval';
import 'rxjs/add/operator/filter';
import 'rxjs/add/operator/switchMap';
import { Photo } from './eventSource';
export declare type Registry = {
url: string;
name: string;
key: string;
logoUrl: string;
};
export interface EventRegistryData {
stores: Registry[];
note: string | null;
primaryPhotoHorizontal: Photo;
}
export declare class EventRegistry {
private es;
constructor(eventSource: EventSource);
observeStores(): Observable<Registry[]>;
observeRegistryNote(): Observable<string>;
observeRegistryPhoto(): Observable<Photo>;
observeRegistry(): Observable<EventRegistryData>;
}