synapse-react-client
Version:
[](https://badge.fury.io/js/synapse-react-client) [](https://github.com/prettier/prettie
12 lines • 731 B
TypeScript
import { SynapseClient } from '@sage-bionetworks/synapse-client';
/**
* Gets the ID of the file entity with the given name whose parent has the given ID.
*
* @param name The name of the entity to find.
* @param parentId The ID of the parent that the found entity must have.
* @return The ID of the file entity with the given name and parent ID, or null if the entity does not exist
* @throws Error If an entity with given name and parent ID was found, but that entity
* was not a File Entity.
*/
export declare function getFileEntityIdWithSameName(name: string, parentId: string, synapseClient: SynapseClient, errorContext?: string): Promise<string | null>;
//# sourceMappingURL=getFileEntityIdWithSameName.d.ts.map