loop-modules
Version:
Shared modules for the Loop product suite.
40 lines (39 loc) • 1.31 kB
TypeScript
import { Http } from '@angular/http';
import 'rxjs/add/operator/map';
import 'rxjs/add/operator/catch';
import { Store } from '@ngrx/store';
import { Observable } from 'rxjs/Observable';
import { APIDispatcher, APIRequestOptions } from '../utils/index';
import { LoopScenarioState } from '../states/loop-scenario.state';
export declare class LoopScenarioService extends APIDispatcher {
http: Http;
store: Store<LoopScenarioState>;
constructor(http: Http, store: Store<LoopScenarioState>);
fetch(identities: string[]): Observable<any>;
fetchForStore(identities: string[]): any;
query(page?: number, size?: number, options?: APIRequestOptions): Observable<any>;
getNextPage(): void;
find(identity: string): Observable<any>;
/**
* Toggles the selection of a scenario
*
* @param {string} identity The identity of the scenario
*
* @memberOf LoopScenarioService
*/
selectEntry(identity: string): void;
/**
* Resets the entries in the app-state slice for Loop Documents
*
*
* @memberOf LoopDocumentService
*/
resetEntries(): void;
/**
* Resets the selected entries in the app-state slice for Loop Documents
*
*
* @memberOf LoopDocumentService
*/
resetSelectedEntries(): void;
}