@sap-cloud-sdk/odata-common
Version:
SAP Cloud SDK for JavaScript common functions of OData client generator and OpenAPI clint generator.
29 lines • 1.15 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.ODataDeleteRequestConfig = void 0;
const odata_request_config_1 = require("./odata-request-config");
/**
* OData delete request configuration for an entity type.
* @typeParam EntityT - Type of the entity to setup a request for
*/
class ODataDeleteRequestConfig extends odata_request_config_1.ODataRequestConfig {
/**
* Creates an instance of ODataDeleteRequestConfig.
* @param entityApi - Entity API for building and executing the request.
* @param oDataUri - URI conversion functions.
*/
constructor(entityApi, oDataUri) {
super('delete', entityApi.entityConstructor._defaultBasePath);
this.entityApi = entityApi;
this.oDataUri = oDataUri;
this.versionIdentifierIgnored = false;
}
resourcePath() {
return this.oDataUri.getResourcePathForKeys(this.keys, this.entityApi);
}
queryParameters() {
return this.prependDollarToQueryParameters({});
}
}
exports.ODataDeleteRequestConfig = ODataDeleteRequestConfig;
//# sourceMappingURL=odata-delete-request-config.js.map