UNPKG

@sap-cloud-sdk/odata-common

Version:

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

22 lines (21 loc) 1.04 kB
import type { EntityBase } from '../entity-base'; import type { Link } from '../selectable'; import type { EntityApi, EntityType } from '../entity-api'; import type { Orderable } from './orderable'; /** * Link to represent an order by on a linked entity. * @template EntityT - Type of the entity to link from. * @template LinkedEntityT - Type of the entity to link to. */ export declare class OrderLink<EntityT extends EntityBase, LinkedEntityApiT extends EntityApi<EntityBase, any>> { link: Link<EntityT, any, LinkedEntityApiT>; orderBy: Orderable<EntityType<LinkedEntityApiT>, EntityApi<EntityBase, any>>[]; readonly entityType: EntityT; readonly linkedEntityType: EntityType<LinkedEntityApiT>; /** * Creates an instance of OrderLink. * @param link - Link to the entity to order by. * @param orderBy - A list of orderables based on the linked entity. */ constructor(link: Link<EntityT, any, LinkedEntityApiT>, orderBy: Orderable<EntityType<LinkedEntityApiT>, EntityApi<EntityBase, any>>[]); }