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

21 lines 929 B
import { EntityType } from '@sage-bionetworks/synapse-client'; import { RefObject } from 'react'; export declare const PYTHON_CLIENT_IMPORT_AND_LOGIN = "import synapseclient\nsyn = synapseclient.Synapse()\nsyn.login(authToken=\"YOUR_TOKEN_HERE\")"; export declare const R_CLIENT_IMPORT_AND_LOGIN = "library(synapser)\nsynLogin(authToken=\"YOUR_TOKEN_HERE\")"; declare enum DownloadAction { downloadFile = 0, addToCart = 1, programmaticAccess = 2, programmaticAccessDocker = 3, exportTable = 4 } export declare function getDownloadActionsForEntityType(type: EntityType): DownloadAction[][]; export declare function EntityDownloadButton(props: { entityId: string; name: string; entityType: EntityType; downloadConfirmationContainer?: RefObject<HTMLElement | null>; disabled?: boolean; }): import("react/jsx-runtime").JSX.Element; export {}; //# sourceMappingURL=EntityDownloadButton.d.ts.map