1 | import { Entity } from '../entity';
|
2 | import { MethodRequestBuilder } from '../request-builder/request-builder-base';
|
3 | import { DestinationOptions, Destination, DestinationNameAndJwt } from '../../connectivity/scp-cf';
|
4 | import { ODataCountRequestConfig } from '../request/odata-count-request-config';
|
5 | import { HttpResponse } from '../../http-client';
|
6 | import type { GetAllRequestBuilder } from './get-all-request-builder-base';
|
7 |
|
8 |
|
9 |
|
10 |
|
11 |
|
12 |
|
13 | export declare class CountRequestBuilder<EntityT extends Entity> extends MethodRequestBuilder<ODataCountRequestConfig<EntityT>> {
|
14 | readonly getAllRequest: GetAllRequestBuilder<EntityT>;
|
15 | |
16 |
|
17 |
|
18 |
|
19 | constructor(getAllRequest: GetAllRequestBuilder<EntityT>);
|
20 | /**
|
21 | * Execute request.
|
22 | * @param destination - Destination to execute the request against
|
23 | * @param options - Options to employ when fetching destinations
|
24 | * @returns A promise resolving to the number of entities
|
25 | */
|
26 | execute(destination: Destination | DestinationNameAndJwt, options?: DestinationOptions): Promise<number>;
|
27 | /**
|
28 | * Execute request and return an [[HttpResponse]].
|
29 | * @param destination - Destination to execute the request against
|
30 | * @param options - Options to employ when fetching destinations
|
31 | * @returns A promise resolving to an [[HttpResponse]].
|
32 | */
|
33 | executeRaw(destination: Destination | DestinationNameAndJwt, options?: DestinationOptions): Promise<HttpResponse>;
|
34 | }
|
35 | //# sourceMappingURL=count-request-builder.d.ts.map |
\ | No newline at end of file |