UNPKG

synapse-react-client

Version:

[![npm version](https://badge.fury.io/js/synapse-react-client.svg)](https://badge.fury.io/js/synapse-react-client) [![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettie

15 lines 934 B
import { FileEntity } from '@sage-bionetworks/synapse-types'; import { UseMutationOptions } from '@tanstack/react-query'; export declare function getFileNameFromExternalUrl(path: string): string; type UseLinkFileEntityToURLArgs = { /** The FileEntity to update or container entity in which a new FileEntity should be created */ entityId: string; /** A URL pointing to the external file */ url: string; /** An optional name for the FileHandle and newly created FileEntity. If not provided, the name will be generated based * on the URL. An updated FileEntity will not receive the new name. */ name?: string; }; export declare function useLinkFileEntityToURL(options?: UseMutationOptions<FileEntity, Error, UseLinkFileEntityToURLArgs>): import("@tanstack/react-query").UseMutationResult<FileEntity, Error, UseLinkFileEntityToURLArgs, unknown>; export {}; //# sourceMappingURL=useLinkFileEntityToURL.d.ts.map