UNPKG

@sap-cloud-sdk/core

Version:
20 lines 1.34 kB
import { Constructable, EntityIdentifiable, FieldType, GetByKeyRequestBuilder as GetByKeyRequestBuilderBase } from '../../odata-common'; import { Entity } from '../entity'; /** * Create an OData request to get a single entity based on its key properties. * The properties available in the response can be restricted by creating a [[GetAllRequestBuilder.select selection]], where no selection is equal to selecting all fields. * Note that navigational properties are automatically expanded if they included in a select. * @typeparam EntityT - Type of the entity to be requested */ export declare class GetByKeyRequestBuilder<EntityT extends Entity> extends GetByKeyRequestBuilderBase<EntityT> implements EntityIdentifiable<EntityT> { readonly _entityConstructor: Constructable<EntityT>; readonly _entity: EntityT; /** * Creates an instance of GetByKeyRequestBuilder. * @param _entityConstructor - Constructor of the entity to create the request for * @param keys - Key-value pairs where the key is the name of a key property of the given entity and the value is the respective value */ constructor(_entityConstructor: Constructable<EntityT>, keys: Record<string, FieldType>); } export { GetByKeyRequestBuilder as GetByKeyRequestBuilderV2 }; //# sourceMappingURL=get-by-key-request-builder.d.ts.map