export interface EmployeeImportSummary {
  total_rows: number;
  created_employees: number;
  updated_employees: number;
  linked_users: number;
  imported_training_records: number;
  failed_rows: number;
  pending_companies: number;
  pending_departments: number;
  pending_positions: number;
}

export interface EmployeeImportError {
  row: number;
  employee_code?: string;
  message: string;
}

export interface EmployeeImportResponse {
  success: boolean;
  message: string;
  import_job_id?: number;
  summary: EmployeeImportSummary;
  errors: EmployeeImportError[];
}

export interface MasterReviewItem {
  id: string;
  type: 'company' | 'department' | 'position';
  name: string;
  affected_count: number;
  status: 'pending';
}

export interface MasterReviewResponse {
  success: boolean;
  message: string;
  companies: MasterReviewItem[];
  departments: MasterReviewItem[];
  positions: MasterReviewItem[];
}

export interface MasterReviewActionPayload {
  entityType: 'company' | 'department' | 'position';
  action: 'approve' | 'reject';
  id: string;
}
