1 | import { DestinationOptions, Destination, DestinationNameAndJwt } from '../../connectivity/scp-cf';
|
2 | import { Constructable, Entity, EntityIdentifiable } from '../entity';
|
3 | import { ODataDeleteRequestConfig } from '../request';
|
4 | import { HttpResponse } from '../../http-client';
|
5 | import type { ODataUri } from '../uri-conversion';
|
6 | import type { FieldType } from '../selectable';
|
7 | import { MethodRequestBuilder } from './request-builder-base';
|
8 |
|
9 |
|
10 |
|
11 |
|
12 | export declare abstract class DeleteRequestBuilder<EntityT extends Entity> extends MethodRequestBuilder<ODataDeleteRequestConfig<EntityT>> implements EntityIdentifiable<EntityT> {
|
13 | readonly _entityConstructor: Constructable<EntityT>;
|
14 | readonly _entity: EntityT;
|
15 | |
16 |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 | constructor(entityConstructor: Constructable<EntityT>, oDataUri: ODataUri, keysOrEntity: Record<string, FieldType> | Entity);
|
22 | /**
|
23 | * Instructs the request to force an overwrite of the entity by sending an 'If-Match: *' header instead of sending the ETag version identifier.
|
24 | * @returns this The request itself to ease chaining while executing the request
|
25 | */
|
26 | ignoreVersionIdentifier(): this;
|
27 | /**
|
28 | * Execute query.
|
29 | * @param destination - Destination to execute the request against
|
30 | * @param options - Options to employ when fetching destinations
|
31 | * @returns A promise resolving once the entity was deleted
|
32 | */
|
33 | execute(destination: Destination | DestinationNameAndJwt, options?: DestinationOptions): Promise<void>;
|
34 | /**
|
35 | * Execute request and return an [[HttpResponse]].
|
36 | * @param destination - Destination to execute the request against
|
37 | * @param options - Options to employ when fetching destinations
|
38 | * @returns A promise resolving to an [[HttpResponse]].
|
39 | */
|
40 | executeRaw(destination: Destination | DestinationNameAndJwt, options?: DestinationOptions): Promise<HttpResponse>;
|
41 | abstract setVersionIdentifier(eTag: string): this;
|
42 | }
|
43 | export { DeleteRequestBuilder as DeleteRequestBuilderBase };
|
44 |
|
\ | No newline at end of file |