@superset-ui/core
Version:
57 lines • 1.65 kB
TypeScript
import { Behavior, ChartLabel } from '../types/Base';
import { ParseMethod } from '../../connection';
interface LookupTable {
[key: string]: boolean;
}
export interface ExampleImage {
url: string;
caption?: string;
}
export interface ChartMetadataConfig {
name: string;
canBeAnnotationTypes?: string[];
credits?: string[];
description?: string;
datasourceCount?: number;
enableNoResults?: boolean;
supportedAnnotationTypes?: string[];
thumbnail: string;
useLegacyApi?: boolean;
behaviors?: Behavior[];
exampleGallery?: ExampleImage[];
tags?: string[];
category?: string | null;
deprecated?: boolean;
label?: ChartLabel | null;
labelExplanation?: string | null;
queryObjectCount?: number;
parseMethod?: ParseMethod;
suppressContextMenu?: boolean;
}
export default class ChartMetadata {
name: string;
canBeAnnotationTypes?: string[];
canBeAnnotationTypesLookup: LookupTable;
credits: string[];
description: string;
supportedAnnotationTypes: string[];
thumbnail: string;
useLegacyApi: boolean;
behaviors: Behavior[];
datasourceCount: number;
enableNoResults: boolean;
exampleGallery: ExampleImage[];
tags: string[];
category: string | null;
deprecated?: boolean;
label?: ChartLabel | null;
labelExplanation?: string | null;
queryObjectCount: number;
parseMethod: ParseMethod;
suppressContextMenu?: boolean;
constructor(config: ChartMetadataConfig);
canBeAnnotationType(type: string): boolean;
clone(): ChartMetadata;
}
export {};
//# sourceMappingURL=ChartMetadata.d.ts.map