angular-odata-es5
Version:
OData service for Angular (es5 version)
53 lines (52 loc) • 1.74 kB
TypeScript
import { HttpHeaders, HttpParams, HttpResponse } from '@angular/common/http';
import { ODataPagedResult } from './angularODataPagedResult';
import { IODataResponseModel } from './angularODataResponseModel';
export declare class KeyConfigs {
filter: string;
top: string;
skip: string;
orderBy: string;
select: string;
search: string;
expand: string;
apply: string;
count: string;
maxPerPage: string;
}
export declare class ODataConfiguration {
private readonly _postHeaders;
private _baseUrl;
keys: KeyConfigs;
defaultRequestOptions: {
headers: HttpHeaders;
observe: 'response';
params?: HttpParams;
reportProgress?: boolean;
responseType?: 'json';
withCredentials?: boolean;
};
postRequestOptions: {
headers: HttpHeaders;
observe: 'response';
params?: HttpParams;
reportProgress?: boolean;
responseType?: 'json';
withCredentials?: boolean;
};
customRequestOptions: {
headers: HttpHeaders;
observe: 'response';
params?: HttpParams;
reportProgress?: boolean;
responseType?: 'json';
withCredentials?: boolean;
};
baseUrl: string;
getEntitiesUri(typeName: string): string;
getEntityUri(key: any, typeName: string): string;
handleError(err: any, caught: any): void;
extractQueryResultDataAsNumber(res: HttpResponse<number>): number;
extractQueryResultData<T>(res: HttpResponse<IODataResponseModel<T>>): T[];
extractQueryResultDataWithCount<T>(res: HttpResponse<IODataResponseModel<T>>): ODataPagedResult<T>;
private sanitizeTypeName;
}