export type Constant = {
  id: number;
  uniqueTag: string;
  name: string;
  moduleName: string;
  show: ShowStatus;
  category: Category;
  editionIds?: EditionType[];
  thumb: null | string;
  type: null | ChartType;
  updatedAt: string;
  updatedBy: string;
  version: string;
}[];

export enum ShowStatus {
  HIDE,
  SHOW,
}

export type Category =
  | '常规图表'
  | '文字'
  | '辅助图形'
  | '指标'
  | '地图'
  | '交互'
  | '定制组件'
  | '其他';

export type ChartType = '柱形图' | '折线图' | '饼图' | '散点图' | '其他';

export type EditionType = 'saas_basic' | 'saas_advanced' | 'saas_vip';
