import { EventEmitter, Injector } from '@angular/core'; import { HttpClient } from '@angular/common/http'; import { IErrorResult } from '../services/error-handler'; import { ResponseData } from '../helpers/response'; export interface IDataService { readonly GET: string; readonly POST: string; readonly PUT: string; readonly DELETE: string; readonly PATCH: string; onError: EventEmitter; onRequest: EventEmitter; onResponse: EventEmitter; injector: Injector; http: HttpClient; httpGet(url: string, params?: any, callback?: (response: Partial>) => void): void; httpPost(url: string, body?: any, callback?: (response: Partial>) => void | any): void; httpPut(url: string, body?: any, callback?: (response: Partial>) => void | any): void; httpPatch(url: string, body?: any, callback?: (response: Partial>) => void | any): void; httpDelete(url: string, body?: any, callback?: (response: Partial>) => void | any): void; httpVerb(verb: string, url: string, body?: any, callback?: (response: Partial>) => void | any): void; } export interface IMasterDataKey { propertyName: string; value: any; }