@sap-cloud-sdk/core
Version:
SAP Cloud SDK for JavaScript core
12 lines • 871 B
TypeScript
import { Entity as EntityBase, FieldType, Constructable } from '../../odata-common';
/**
* @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
*/
export declare function getResourcePathForKeys<EntityT extends EntityBase>(keys: Record<string, FieldType> | undefined, entityConstructor: Constructable<EntityT>): string;
//# sourceMappingURL=get-resource-path.d.ts.map