UNPKG

@sap-cloud-sdk/core

Version:
22 lines 1.15 kB
import { Constructable, DeleteRequestBuilder as DeleteRequestBuilderBase, FieldType } from '../../odata-common'; import { Entity } from '../entity'; /** * Create OData query to delete an entity. * @typeparam EntityT - Type of the entity to be deleted */ export declare class DeleteRequestBuilder<EntityT extends Entity> extends DeleteRequestBuilderBase<EntityT> { /** * Creates an instance of DeleteRequestBuilder. If the entity is passed, version identifier will also be added. * @param entityConstructor - Constructor type of the entity to be deleted * @param keysOrEntity - Entity or Key-value pairs of key properties for the given entity */ constructor(entityConstructor: Constructable<EntityT>, keysOrEntity: Record<string, FieldType> | Entity); /** * Add an eTag version identifier in the delete request header. * @param eTag - The version identifier of the entity * @returns The builder itself, to facilitate method chaining */ setVersionIdentifier(eTag: string): this; } export { DeleteRequestBuilder as DeleteRequestBuilderV2 }; //# sourceMappingURL=delete-request-builder.d.ts.map