UNPKG

1.15 kBTypeScriptView Raw
1import { Constructable, DeleteRequestBuilder as DeleteRequestBuilderBase, FieldType } from '../../odata-common';
2import { Entity } from '../entity';
3/**
4 * Create OData query to delete an entity.
5 * @typeparam EntityT - Type of the entity to be deleted
6 */
7export declare class DeleteRequestBuilder<EntityT extends Entity> extends DeleteRequestBuilderBase<EntityT> {
8 /**
9 * Creates an instance of DeleteRequestBuilder. If the entity is passed, version identifier will also be added.
10 * @param entityConstructor - Constructor type of the entity to be deleted
11 * @param keysOrEntity - Entity or Key-value pairs of key properties for the given entity
12 */
13 constructor(entityConstructor: Constructable<EntityT>, keysOrEntity: Record<string, FieldType> | Entity);
14 /**
15 * Add an eTag version identifier in the delete request header.
16 * @param eTag - The version identifier of the entity
17 * @returns The builder itself, to facilitate method chaining
18 */
19 setVersionIdentifier(eTag: string): this;
20}
21export { DeleteRequestBuilder as DeleteRequestBuilderV2 };
22//# sourceMappingURL=delete-request-builder.d.ts.map
\No newline at end of file