UNPKG

@gooddata/react-components

Version:

GoodData.UI - A powerful JavaScript library for building analytical applications

24 lines (23 loc) 1.2 kB
import { SDK } from "@gooddata/gooddata-js"; import { IDataSource } from "@gooddata/gooddata-js/lib/DataLayer/interfaces/DataSource"; import { AFM, Execution } from "@gooddata/typings"; /** * * Factory function to create a new instance of IDataSource, which uses executeVisualization API instead of * executeAFM API in order to calculate results for a stored visualization object. * * This functionality is experimental at the moment and is intended for GoodData internal * testing and validation. * * NOTE: counter-intuitively, AFM must be sent as well at the moment because IDataSource interface expose * the effective AFM and there are parts of SDK that rely on this (such as coloring). * * @param sdk instance of gooddata-js to use * @param projectId GD project identifier * @param reference URI of stored visualization * @param afm AFM of the stored visualization * @param filters filters to merge with filters stored in the visualization * @private * @internal */ export declare function _experimentalDataSourceFactory(sdk: SDK, projectId: string, reference: string, afm: AFM.IAfm, filters: AFM.CompatibilityFilter[]): Promise<IDataSource<Execution.IExecutionResponses>>;