import { BasicPageParams } from '/@/api/model/baseModel';
export type ExportQueryParam = BasicPageParams & ExportParam;

export type ExportParam = {
  reportConfigName: string;
  status: number;
  orderFiled: string;
  orderType: string;
};
export interface ExecuteCondition2 {
  interval: number;
  limit: number;
  agg: string;
  orderBy: string;
  useStrictDataTypes: boolean;
  startTs: number;
  endTs: number;
  queryMode: number;
}

export interface ExecuteAttribute {
  device: string;
  name: string;
  attributes: string[];
}

export interface ExecuteCondition {
  executeCondition: ExecuteCondition2;
  executeAttributes: ExecuteAttribute[];
}

export interface ExecuteReportRecord {
  id: string;
  creator: string;
  createTime: string;
  updateTime: string;
  enabled: boolean;
  tenantId: string;
  reportConfigName: string;
  organizationName: string;
  organizationId: string;
  dataCompare: number;
  executeWay: number;
  executeStatus: number;
  executeTime: string;
  reportPath: string;
  executeCondition: ExecuteCondition;
  jobId: string;
}
