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

16 lines 1.42 kB
import { ColumnModel, ColumnType, Entity, EntityHeader, QueryResultBundle, Table, UserGroupHeader, UserProfile } from '@sage-bionetworks/synapse-types'; export declare const SEND_TO_ANALYSIS_PLATFORM_SIGN_IN_MESSAGE = "You must be signed in to send results to an analysis platform."; export declare const getColumnIndicesWithType: (data: QueryResultBundle | undefined, ...columnTypes: ColumnType[]) => number[]; export declare const getUniqueEntities: (data: QueryResultBundle, mapIdToHeader: Record<string, EntityHeader | Partial<UserGroupHeader & UserProfile>>, indices: number[]) => Set<string>; /** * i.e. the view may have FileEntities in it * * PORTALS-2010: Enhance change made for PORTALS-1973. File specific action will only be shown for rows that represent FileEntities. */ export declare function isFileViewOrDataset(entity?: Table): boolean | undefined; export declare const getFileColumnModelId: (columnModels?: ColumnModel[]) => string | undefined; export declare function isSortableColumn(column: ColumnType): boolean; export declare function getDefaultPrimaryKey(entity?: Table, columnModels?: ColumnModel[]): string[] | undefined; export declare function isEntityViewOrDatasetOrCollection(entity: Entity): boolean; export declare function mapRowToRecord(rowData: (string | null)[], schema: Record<string, number>): Record<string, string | null>; //# sourceMappingURL=SynapseTableUtils.d.ts.map