@gooddata/react-components
Version:
GoodData.UI - A powerful JavaScript library for building analytical applications
25 lines (24 loc) • 1.19 kB
TypeScript
import { Execution, VisualizationObject } from "@gooddata/typings";
import { ApiResponseError } from "@gooddata/gooddata-js";
import { IntlShape } from "react-intl";
import { RuntimeError } from "../errors/RuntimeError";
export declare function isApiResponseError(error: TypeError | ApiResponseError): error is ApiResponseError;
export interface IErrorMap {
[key: string]: {
icon?: string;
message: string;
description: string;
};
}
export declare function generateErrorMap(intl: IntlShape): IErrorMap;
export declare function convertErrors(error: ApiResponseError | TypeError): RuntimeError;
/**
* isEmptyResult
* is a function that returns true if the execution result is empty (no data points) and false otherwise.
* @param responses:Execution.IExecutionResponses - object with execution response and result
* @return boolean
* @internal
*/
export declare function isEmptyResult(responses: Execution.IExecutionResponses): boolean;
export declare function checkEmptyResult(responses: Execution.IExecutionResponses): Execution.IExecutionResponses;
export declare const hasDuplicateIdentifiers: (buckets: VisualizationObject.IBucket[]) => boolean;