import { IColumnParam } from '../../core/utils/get-column-chart'; import { ISelectMetadata } from './chart-custom'; export interface ISearchParamTemplate { module: string; key?: string; type?: string; pageSize?: number; pageNumber?: number; category?: string; } export interface IResSearchTemplateItem { attribute?: string; queryContext?: string; createdDate: number; creatorName: string; creatorUname: string; desc: string; dsCategory: string; dsTable: string; dsType: string; fields: IColumnParam[]; forecast: boolean; module: string; html?: string; name: string; organId: string; sourceType: string; sourceTypeName: string; sourceUuid: string; type: string; uuid: string; visualize: boolean; publishContent?: string; category: string; thumbnail: string; publish: boolean; } export interface IResSearchTemplate { items: IResSearchTemplateItem[]; total: number; type?: string; } export interface IParamsCategories { module: string; type: string; key: string; } export interface IResCategories { elements: string[]; } export interface IResQueryParams { category?: string; name?: string; type?: string; uuid_template?: string; uuid?: string; namechart?: string; html?: string; viztype?: string; thumbnail?: string; uuid_html?: string; import?: boolean | string; } export interface IParamsMetadata { type: string; category: string; name: string; } export interface IDataSource { type: string; category: string; table: string; } export type SQLSchema = { [k: string]: string; }; export interface IResMetadata { category: string; contentSize: 0; name: string; published: true; schemas: SQLSchema; sourceID: string; type: string; uuid: string; } export interface IColumnSchema { value: string; type: string; } export declare enum EType { INT = "INT", DOUBLE = "DOUBLE", LONG = "LONG", INT64 = "INT64", FLOAT = "FLOAT", NUMBER = "NUMBER", STRING = "STRING", CHAR = "CHAR", VARCHAR = "VARCHAR", DATE = "DATE" } export interface IDataMapping { column: IColumnParam; arrMapping: IColumnSchema[] | undefined; valueMapping: string | null; } export interface IVizType { name: string; vizType: string; html: string; } export interface IAttribute { width?: number; height?: number; vizType?: IVizType; formData?: any; nameChart?: string; typeSubmit?: string; queries?: any[] | any; dataSource?: IDataSource; schemas?: SQLSchema; columns?: ISelectMetadata[]; uuidHTML?: string; contentHTML?: string; } export interface IQueryContext { form_data?: any; formData?: any; query?: any; queries?: any[]; post_process_param?: any; fields?: any; } export interface IField { name: string; to: string; type: string; column: IColumnParam; } export interface IParamsChart { datasource: IDataSource | string; force?: string; queries?: any; form_data?: any; result_format?: string; result_type?: string; fields?: IField[] | any; formData?: any; } export declare enum ETypeSubmit { EXPLORE_JSON = "explore_json", DATA = "data", CUSTOM = "custom" } export declare enum EVisualize { ANALYTICS_APP = "analytics_app", SEND_SCRIPT = "send_script", SEND_LOAD_JS_DONE = "send_load_js_done", SEND_DATA_TO_VISUAL_CHART = "send_data_to_chart_visual", CHART_VISUAL = "chart_visual" } export interface IParamsChartTemplate { 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 IResChart { name: string; title: string; desc: string; dsType: string; dsCategory: string; dsTable: string; type: string; typeName: string; thumbnailUri: string; attribute: string; fields: IField[]; creatorUname: string; creatorName: string; lastModifierUname: string; lastModifierName: string; createdDate: number; lastModifiedDate: number; queryContext: string; sharedUuid?: string; uuid: string; organId: string; }