UNPKG

angular-odata

Version:

Client side OData typescript library for Angular

27 lines (26 loc) 1.23 kB
import { Observable } from 'rxjs'; import { ODataApi } from './api'; import { ODataCollection, ODataModel } from './models'; import { ODataRequest } from './resources'; import { ODataCallable, ODataEntitySet, ODataEnumType, ODataStructuredType } from './schema'; import { ApiConfig, EdmType, Parser } from './types'; export declare class ODataSettings { apis: ODataApi[]; constructor(configs: ApiConfig[]); configure(settings: { requester?: (request: ODataRequest<any>) => Observable<any>; }): void; defaultApi(): ODataApi; findApiByName(name: string): ODataApi | undefined; apiByName(name: string): ODataApi; findApiForTypes(types: string[]): ODataApi | undefined; findApiForType(type: string): ODataApi | undefined; apiForType(type: string): ODataApi; enumTypeForType<T>(type: string): ODataEnumType<T>; structuredTypeForType<T>(type: string): ODataStructuredType<T>; callableForType<T>(type: string, bindingType?: string): ODataCallable<T>; entitySetForType(type: string): ODataEntitySet; parserForType<T>(type: string | EdmType): Parser<T>; modelForType(type: string): typeof ODataModel; collectionForType(type: string): typeof ODataCollection; }