UNPKG

@sap-cloud-sdk/odata-common

Version:

SAP Cloud SDK for JavaScript common functions of OData client generator and OpenAPI clint generator.

25 lines (24 loc) 916 B
import type { EdmTypeShared } from '../edm-types'; /** * Internal representation of operation parameters. It adds metadata to the value. * @typeParam ValueT - Type of the value. */ export declare class OperationParameter<ValueT> { originalName: string; edmType: EdmTypeShared<'any'>; value: ValueT; /** * Creates an instance of OperationParameter. * @param originalName - The original name of the parameter in the OData service. * @param edmType - Original EDM type. * @param value - Value to be used as parameter. */ constructor(originalName: string, edmType: EdmTypeShared<'any'>, value: ValueT); } /** * Internal representation of all parameters of an operation as a map. * @typeParam ParametersT - External representation of all parameters */ export type OperationParameters<ParametersT> = { [K in keyof ParametersT]: OperationParameter<ParametersT[K]>; };