export type AdjustmentStatus = "current" | "original" | "added" | "replaced";

export interface SensorPoint {
  node_id: string;
  project_x: number;
  project_y: number;
  map_x: number;
  map_y: number;
  longitude: number;
  latitude: number;
  elevation: number;
}

export interface SensorPlacementScheme {
  id: number;
  scheme_name: string;
  sensor_number: number;
  min_diameter: number;
  username: string;
  create_time: string;
  sensor_location: string[];
  sensor_points: SensorPoint[];
  can_edit: boolean;
}

export interface SchemeRecord {
  id: number;
  schemeName: string;
  sensorNumber: number;
  minDiameter: number;
  username: string;
  create_time: string;
  sensorLocation?: string[];
}

export interface SensorPointRow extends SensorPoint {
  sequence: number;
  adjustment_status: AdjustmentStatus;
}

export interface NetworkDrawingData {
  nodes: string[];
  links: string[];
  extent: [number, number, number, number];
}
