UNPKG

@sap-cloud-sdk/odata-v4

Version:

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

15 lines (14 loc) 810 B
import type { Selectable } from '@sap-cloud-sdk/odata-common'; import type { DeSerializers } from '../de-serializers'; import type { Entity } from '../entity'; /** * Get an object containing the given Selectables as query parameter, or an empty object if none were given. * In OData v4 selected properties are not automatically expanded anymore and a manual expand needs to be performed. * @typeParam EntityT - Type of the entity to get the selection for * @param selects - The list of selectables to be transformed to query parameters * @returns An object containing the query parameters or an empty object * @internal */ export declare function getSelect<EntityT extends Entity, DeSerializersT extends DeSerializers>(selects?: Selectable<EntityT, DeSerializersT>[]): Partial<{ select: string; }>;