@withjoy/sdk-js
Version:
Joy Javascript SDK
26 lines (25 loc) • 705 B
TypeScript
import { Observable } from 'rxjs/Observable';
import 'rxjs/add/observable/combineLatest';
import { EventSource } from './eventSource';
export interface QA {
answer: string;
question: string;
sortKey?: number;
qandaId?: string;
key: string;
}
import { Photo } from './interfaces';
export declare class EventStory {
private es;
constructor(eventSource: EventSource);
observeStory(): Observable<{
title: string;
story: string;
}>;
observeQandas(): Observable<{
title: string;
faqs: Array<QA>;
}>;
observePrimaryFaqPhoto(): Observable<Photo>;
observePrimaryFaqPhotoHorizontal(): Observable<Photo>;
}