1 | import { HttpClient, HttpParams } from '@angular/common/http';
|
2 | import { Observable } from 'rxjs';
|
3 | import { LocalDataSource } from '../local/local.data-source';
|
4 | import { ServerSourceConf } from './server-source.conf';
|
5 | export declare class ServerDataSource extends LocalDataSource {
|
6 | protected http: HttpClient;
|
7 | protected conf: ServerSourceConf;
|
8 | protected lastRequestCount: number;
|
9 | constructor(http: HttpClient, conf?: ServerSourceConf | {});
|
10 | count(): number;
|
11 | getElements(): Promise<any>;
|
12 | /**
|
13 | * Extracts array of data from server response
|
14 | * @param res
|
15 | * @returns {any}
|
16 | */
|
17 | protected extractDataFromResponse(res: any): Array<any>;
|
18 | |
19 |
|
20 |
|
21 |
|
22 |
|
23 |
|
24 | protected extractTotalFromResponse(res: any): number;
|
25 | protected requestElements(): Observable<any>;
|
26 | protected createRequesParams(): HttpParams;
|
27 | protected addSortRequestParams(httpParams: HttpParams): HttpParams;
|
28 | protected addFilterRequestParams(httpParams: HttpParams): HttpParams;
|
29 | protected addPagerRequestParams(httpParams: HttpParams): HttpParams;
|
30 | }
|