import { Observable } from 'rxjs'; import { HttpClient } from '@angular/common/http'; import { ServerResponse } from '../../interfaces/serverResponse'; import { RequestParam } from '../../interfaces/requestParam'; /** * Service to provide base CRUD methods to make api request. * */ export declare class DataService { /** * Contains rootOrg Id */ rootOrgId: string; /** * Contains channel Id */ channelId: string; /** * Contains appId */ appId: string; /** * Contains devoce Id */ deviceId: string; /** * Contains base Url for api end points */ baseUrl: string; /** * angular HttpClient */ http: HttpClient; /** * Constructor * @param HttpClient http HttpClient reference */ constructor(http: HttpClient); /** * for making get api calls which needs headers in response * headers are fetched to get server time using Date attribute in header * @param requestParam interface */ getWithHeaders(requestParam: RequestParam): Observable; /** * for making get api calls * * @param requestParam interface */ get(requestParam: RequestParam): Observable; /** * for making post api calls with headers in response object * * @param RequestParam requestParam interface * */ postWithHeaders(requestParam: RequestParam): Observable; /** * for making post api calls * @param RequestParam requestParam interface */ post(requestParam: RequestParam): Observable; /** * for making patch api calls * * @param RequestParam requestParam interface * */ patch(requestParam: RequestParam): Observable; /** * for making delete api calls * @param RequestParam requestParam interface */ delete(requestParam: RequestParam): Observable; /** * for preparing headers */ private getHeader; private getDateDiff; }