UNPKG

1.17 kBTypeScriptView Raw
1import { Entity, Constructable } from '../entity';
2import { FieldType, Selectable } from '../selectable';
3import { Expandable } from '../expandable';
4import { ODataUri } from '../uri-conversion';
5import { ODataRequestConfig } from './odata-request-config';
6import { WithKeys, WithSelection } from './odata-request-traits';
7/**
8 * OData getByKey request configuration for an entity type.
9 * @typeparam EntityT - Type of the entity to setup a request for
10 */
11export declare class ODataGetByKeyRequestConfig<EntityT extends Entity> extends ODataRequestConfig implements WithKeys, WithSelection<EntityT> {
12 readonly entityConstructor: Constructable<EntityT>;
13 private oDataUri;
14 keys: Record<string, FieldType>;
15 selects: Selectable<EntityT>[];
16 expands: Expandable<EntityT>[];
17 /**
18 * Creates an instance of ODataGetByKeyRequestConfig.
19 * @param entityConstructor - Constructor type of the entity to create a configuration for
20 */
21 constructor(entityConstructor: Constructable<EntityT>, oDataUri: ODataUri);
22 resourcePath(): string;
23 queryParameters(): Record<string, any>;
24}
25//# sourceMappingURL=odata-get-by-key-request-config.d.ts.map
\No newline at end of file