@sap-cloud-sdk/core
Version:
SAP Cloud SDK for JavaScript core
24 lines • 1.29 kB
TypeScript
import { Constructable, DeleteRequestBuilder as DeleteRequestBuilderBase, EntityIdentifiable, 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> implements EntityIdentifiable<EntityT> {
readonly _entityConstructor: Constructable<EntityT>;
readonly _entity: 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 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 DeleteRequestBuilderV4 };
//# sourceMappingURL=delete-request-builder.d.ts.map