1 | import { Http, Response } from '@angular/http';
|
2 | import { Observable } from 'rxjs/Observable';
|
3 | import 'rxjs/add/operator/mergeMap';
|
4 | import { IReadOnlyService } from './ReadOnlyService';
|
5 | import { ServiceBase } from './Service';
|
6 | export declare abstract class CorsServiceBase<TNew, TOut> extends ServiceBase<TNew, TOut> {
|
7 | constructor(http: Http, baseUrl: string, readOnlyService: IReadOnlyService<TOut>);
|
8 | postItem(item: TNew): Observable<Response>;
|
9 | putItem<TIn>(id: string, item: TIn): Observable<Response>;
|
10 | deleteItem(id: string): Observable<Response>;
|
11 | private waitForConfiguration<T>(action);
|
12 | protected abstract getServerUrl(): Observable<string>;
|
13 | }
|