@sap-cloud-sdk/core
Version:
SAP Cloud SDK for JavaScript core
19 lines • 1.01 kB
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.getResourcePathForKeys = void 0;
var odata_uri_1 = require("./odata-uri");
/**
* @deprecated Since v1.21.0. Use [[ODataUri.getResourcePathForKeys]] instead.
* Get the resource path of an entity specified by key-value pairs.
* @typeparam EntityT - Type of the entity to get the resource path for
* @param keys - Key-value pairs where the key is the name of a key property of the given entity and the value is the respective value
* @param entityConstructor - Constructor type of the entity to get the resource path for
* @param uriConverter - OData version specific converter for strings in URIs
* @returns The path to the resource
*/
function getResourcePathForKeys(keys, entityConstructor) {
if (keys === void 0) { keys = {}; }
return odata_uri_1.oDataUri.getResourcePathForKeys(keys, entityConstructor);
}
exports.getResourcePathForKeys = getResourcePathForKeys;
//# sourceMappingURL=get-resource-path.js.map
;