UNPKG

angular-odata

Version:

Client side OData typescript library for Angular

42 lines (41 loc) 1.5 kB
import { CallableConfig, ParserOptions } from '../types'; import { ODataParserSchemaElement } from './element'; import { ODataCallableParser } from './parsers'; import { ODataSchema } from './schema'; export declare class ODataCallable<R> extends ODataParserSchemaElement<R, ODataCallableParser<R>> { entitySetPath?: string; bound?: boolean; composable?: boolean; constructor(config: CallableConfig, schema: ODataSchema); path(): string; configure({ options }: { options: ParserOptions; }): void; /** * Deseialize the given value from the callable. * @param value Value to deserialize * @param options Options for deserialization * @returns Deserialized value */ deserialize(value: any, options?: ParserOptions): any; /** * Serialize the given value for the callable. * @param value Value to serialize * @param options Options for serialization * @returns Serialized value */ serialize(value: any, options?: ParserOptions): any; /** * Encode the given value for the callable. * @param value Value to encode * @param options Options for encoding * @returns Encoded value */ encode(value: any, options?: ParserOptions): any; /** * Returns the binding parameter of the callable. * @returns The binding parameter of the callable. */ binding(): import("./parsers").ODataParameterParser<any> | undefined; returnType(): string | undefined; }