2017-06-12 06:36:50 -04:00
|
|
|
export declare class BaseService {
|
|
|
|
private $http;
|
|
|
|
private $q;
|
2017-07-21 13:59:47 -04:00
|
|
|
private pageContext;
|
2017-06-12 06:36:50 -04:00
|
|
|
static $inject: string[];
|
|
|
|
baseUrl: string;
|
2017-07-21 13:59:47 -04:00
|
|
|
constructor($http: ng.IHttpService, $q: ng.IQService, pageContext: any);
|
2017-06-12 06:36:50 -04:00
|
|
|
getRequest(query?: string, endPoint?: string): ng.IPromise<any>;
|
|
|
|
postRequest(url: string, requestBody: any, endPoint?: string): ng.IPromise<any>;
|
|
|
|
updateRequest(url: string, requestBody: any, eTag: string, endPoint?: string): ng.IPromise<{}>;
|
|
|
|
deleteRequest(url: string, eTag: string, endPoint?: string): ng.IPromise<{}>;
|
|
|
|
fileUploadRequest(url: string, file: ArrayBuffer, endPoint?: string): ng.IPromise<any>;
|
|
|
|
private getFormDigestValue(webUrl);
|
|
|
|
}
|