UNPKG

synapse-react-client

Version:

[![Build Status](https://travis-ci.com/Sage-Bionetworks/Synapse-React-Client.svg?branch=main)](https://travis-ci.com/Sage-Bionetworks/Synapse-React-Client) [![npm version](https://badge.fury.io/js/synapse-react-client.svg)](https://badge.fury.io/js/synaps

22 lines (21 loc) 951 B
import { QueryBundleRequest } from '../synapseTypes/'; import { QueryResultBundle } from '../synapseTypes/'; declare type PartialStateObject = { hasMoreData: boolean; data: QueryResultBundle; }; /** * Retrieve the index of a column using the column name * @param name the column name * @param result the QueryResultBundle containing the columns * @returns The index of the column, or -1 if the column doesn't exist in the result */ export declare const getFieldIndex: (name: string, result: QueryResultBundle | undefined) => number; /** * Grab the next page of data, pulling in 25 more rows. * * @param {*} queryRequest Query request as specified by * https://rest-docs.synapse.org/rest/org/sagebionetworks/repo/model/table/Query.html */ export declare const getNextPageOfData: (queryRequest: QueryBundleRequest, data: QueryResultBundle, token?: string | undefined) => Promise<PartialStateObject>; export {};