UNPKG

596 BTypeScriptView Raw
1import { AFM, ExecuteAFM } from "@gooddata/typings";
2export declare function convertFilter(filter: AFM.CompatibilityFilter): ExecuteAFM.CompatibilityFilter;
3/**
4 * Converts 'client-land' AFM to one that will be sent to backend.
5 *
6 * @param afm afm to convert
7 * @returns new instance of ExecuteAFM.IAfm structure
8 */
9export declare function convertAfm(afm?: AFM.IAfm): ExecuteAFM.IAfm;
10/**
11 * Converts 'client-land' AFM to JSON payload acceptable by REST API.
12 *
13 * @param execution execution to send to API
14 */
15export declare function convertExecutionToJson(execution: AFM.IExecution): string;