export type LineLossTimeType = 'day' | 'month' | 'year';

export interface LineLossQuery {
  nodeId?: string | number;
  timeType?: LineLossTimeType;
  date?: string | number;
}

export interface LineLossRow {
  id: string | number;
  name: string;
  currentEnergy: number;
  childEnergy: number;
  lossEnergy: number;
  lossRate: number;
  hasDirectEnergyDevice?: boolean;
  children?: LineLossRow[];
}

export interface LineLossResult {
  timeType: LineLossTimeType;
  date: string;
  beginTime: string;
  endTime: string;
  rows: LineLossRow[];
}
