export interface IColorScheme { id: string; label: string; colors: string[]; } export declare const colorSchemes: IColorScheme[]; export declare enum Operators { EQUALS = "EQUALS", NOT_EQUALS = "NOT_EQUALS", LESS_THAN = "LESS_THAN", LESS_THAN_OR_EQUAL = "LESS_THAN_OR_EQUAL", GREATER_THAN = "GREATER_THAN", GREATER_THAN_OR_EQUAL = "GREATER_THAN_OR_EQUAL", IN = "IN", NOT_IN = "NOT_IN", LIKE = "LIKE", IS_NOT_NULL = "IS_NOT_NULL", IS_NULL = "IS_NULL", TIME_RANGE = "TIME_RANGE" } export declare const operatorsArray: { value: Operators; name: string; operation: string; }[]; export declare const operatorsArrayTime: { value: Operators; name: string; operation: string; }[]; export interface FilterColumn { uuid?: string; column: string; columnType: string; operator: string; operatorid: string; comparator: any; fromDate?: number; toDate?: number; valueDate?: number; name?: string; } export interface ISelectMetadata { value: string; name: string; type: string; } export declare enum ColumnDataType { NUMBER = "NUMBER", INT = "INT", DATE = "DATE", LONG = "LONG", DOUBLE = "DOUBLE", FLOAT = "FLOAT", STRING = "STRING", CHAR = "CHAR", VARCHAR = "VARCHAR", BOOLEAN = "BOOLEAN", INT64 = "INT64" } export interface IOperator { value: string; name: string; operation: string; } export interface IEvaluateFactor { title?: string; revenue: string; revenueUnit?: string; plan?: string; planTitle?: string; planUnit?: string; achieve?: string; achieveTitle?: string; compare?: string; compareTitle?: string; organization?: string; date?: any; filters?: FilterColumn[]; row_limit?: number; } export interface IEvaluateCustomize { fontsizeTitle: number; fontsizeRevenue: number; fontsizePlan: number; fontsizeTitlePlan: number; fontsizeText: number; colorAchieve: string; colorPlan: string; colorCompare: string; colorText: string; } export interface ITargetsFactor { title?: string; imgUri?: string; unit?: string; organization?: string; titleAchieve?: string; achieve: number; } export declare const dataDefault: ITargetsFactor; export interface ITargetsCustomize { viz_type: string; colorScheme: string | string[]; fontsizeTitle: number; fontsizeAchieve: number; fontsizeText: number; widthImg: number; heightImg: number; } export declare enum EVizType { HTML_TEMPLATE = "chart_html_template", BAR_COMPARE = "echarts_timeseries_bar_compare", TABLE_CUSTOM = "table_custom", BAR_V2 = "dist_bar_v2", MIXED = "mixed", CANDLESTICK = "candlestick" } export declare const dataEC: { title: string; achieve: { metric: number; text: string; }; plan: { metric: number; text: string; }; planTitle: string; achievePercent: { metric: number; text: string; }; compareToTSPOLY: { metric: number; text: string; }; organization: string; date: string; }; export interface IInfoFactor { title?: string; titleTarget?: string; numberTotal?: number; numberTarget?: number; } export interface IInfoCustomize { viz_type: string; colorScheme: string[] | string; fontsizeNumber: number; fontsizeTitle: number; } export declare const dataInfo: IInfoFactor; export interface IDataSource { table: string; type: string; category: string; } export interface IFormDataSubmit { form_data?: string; formData?: string; queries?: string; datasource?: IDataSource | string; result_format?: string; result_type?: string; force?: string; } export type KeyValue = { [k: string]: string | any; }; export interface IResEvaluate { elements: KeyValue[]; } export interface IResolve { queriesData: KeyValue | any; formData: KeyValue | any; type?: string; } export interface IParamsSaveChart { name: string; title: string; desc: string; dsType: string; dsCategory: string; dsTable: string; type: string; typeName: string; thumbnailUri: string; attribute: string; fields?: string; queryContext: string; uuid?: string; } export interface ISelect { value: string; name: string; } export declare const timeGrain: ISelect[]; export interface IColumn { filterable: boolean; groupby: boolean; is_certified: boolean; column_name: string; type: string; id: number; type_generic: number; is_dttm: boolean; } export interface IMetric { expressionType: string; column: IColumn; aggregate: string; sqlExpression: null; isNew: boolean; datasourceWarning: boolean; hasCustomLabel: boolean; label: string; } export interface IFilter { col: string; colType: string; op: string; val: any; fromDate?: number; toDate?: number; } export interface ICustomBarFactor { granularity_sqla: string; time_grain_sqla: string; row_limit: string; } export interface ICustomBarCustomize { colorScheme: string; show_legend: boolean; dataZoom: boolean; } export interface IBarV2Factor { group_by: string[]; row_limit: string; compare: boolean; } export interface IBarV2Customize { colorScheme: string; show_legend: boolean; dataZoom: boolean; x_ticks_layout: string; orientation: string; } export interface IMixedFactor { granularity_sqla: string; time_grain_sqla: string; left_axis: string; } export interface IMixedCustomize { colorScheme: string; show_legend: boolean; dataZoom: boolean; left_y_axis_title: string; right_y_axis_title: string; top_x_axis_title: string; bottom_x_axis_title: string; } export interface IQuery { groupby: string[]; row_limit: number; } export interface IQueryB { groupby_b: string[]; row_limit_b: number; } export interface IAliasColumn { column: string; alias: string; uuid: string; type: string; } export interface ITableCustomCustomize { background_head: string; color_head: string; pagination: boolean; page_size: number | string; } export interface IFormDataTableCustom { columns: IAliasColumn[]; background_head: string; color_head: string; pagination: boolean; page_size: number | string; filters: FilterColumn[]; } export interface IQueriesTableCustom { columns: string[]; row_limit: number; filter: IFilter[]; }