1 | import { Destination, DestinationNameAndJwt, DestinationOptions } from '../../connectivity/scp-cf';
|
2 | import { Constructable, Entity } from '../entity';
|
3 | import { ODataGetByKeyRequestConfig } from '../request';
|
4 | import { ODataUri } from '../uri-conversion';
|
5 | import { FieldType, Selectable } from '../selectable';
|
6 | import { EntityDeserializer } from '../entity-deserializer';
|
7 | import { ResponseDataAccessor } from '../response-data-accessor';
|
8 | import { GetRequestBuilder } from './get-request-builder-base';
|
9 |
|
10 |
|
11 |
|
12 |
|
13 | export declare abstract class GetByKeyRequestBuilder<EntityT extends Entity> extends GetRequestBuilder<EntityT, ODataGetByKeyRequestConfig<EntityT>> {
|
14 | readonly entityDeserializer: EntityDeserializer;
|
15 | readonly dataAccessor: ResponseDataAccessor;
|
16 | |
17 |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 |
|
23 | constructor(entityConstructor: Constructable<EntityT>, keys: Record<string, FieldType>, oDataUri: ODataUri, entityDeserializer: EntityDeserializer, dataAccessor: ResponseDataAccessor);
|
24 | /**
|
25 | * Restrict the response to the given selection of properties in the request.
|
26 | * @param selects - Fields to select in the request
|
27 | * @returns The request builder itself, to facilitate method chaining
|
28 | */
|
29 | select(...selects: Selectable<EntityT>[]): this;
|
30 | select(selects: Selectable<EntityT>[]): this;
|
31 | /**
|
32 | * Execute request.
|
33 | * @param destination - Destination to execute the request against
|
34 | * @param options - Options to employ when fetching destinations
|
35 | * @returns A promise resolving to the requested entity
|
36 | */
|
37 | execute(destination: Destination | DestinationNameAndJwt, options?: DestinationOptions): Promise<EntityT>;
|
38 | }
|
39 | export { GetByKeyRequestBuilder as GetByKeyRequestBuilderBase };
|
40 |
|
\ | No newline at end of file |