UNPKG

@gooddata/gooddata-js

Version:
16 lines (15 loc) 596 B
import { AFM, ExecuteAFM } from "@gooddata/typings"; export declare function convertFilter(filter: AFM.CompatibilityFilter): ExecuteAFM.CompatibilityFilter; /** * Converts 'client-land' AFM to one that will be sent to backend. * * @param afm afm to convert * @returns new instance of ExecuteAFM.IAfm structure */ export declare function convertAfm(afm?: AFM.IAfm): ExecuteAFM.IAfm; /** * Converts 'client-land' AFM to JSON payload acceptable by REST API. * * @param execution execution to send to API */ export declare function convertExecutionToJson(execution: AFM.IExecution): string;