@sap-cloud-sdk/core
Version:
SAP Cloud SDK for JavaScript core
25 lines • 1.17 kB
TypeScript
import { Entity, Constructable } from '../entity';
import { FieldType, Selectable } from '../selectable';
import { Expandable } from '../expandable';
import { ODataUri } from '../uri-conversion';
import { ODataRequestConfig } from './odata-request-config';
import { WithKeys, WithSelection } from './odata-request-traits';
/**
* OData getByKey request configuration for an entity type.
* @typeparam EntityT - Type of the entity to setup a request for
*/
export declare class ODataGetByKeyRequestConfig<EntityT extends Entity> extends ODataRequestConfig implements WithKeys, WithSelection<EntityT> {
readonly entityConstructor: Constructable<EntityT>;
private oDataUri;
keys: Record<string, FieldType>;
selects: Selectable<EntityT>[];
expands: Expandable<EntityT>[];
/**
* Creates an instance of ODataGetByKeyRequestConfig.
* @param entityConstructor - Constructor type of the entity to create a configuration for
*/
constructor(entityConstructor: Constructable<EntityT>, oDataUri: ODataUri);
resourcePath(): string;
queryParameters(): Record<string, any>;
}
//# sourceMappingURL=odata-get-by-key-request-config.d.ts.map