export type OracleView = 'pipeline' | 'intelligence';

export type PipelineStage =
  | 'new_inquiries'
  | 'qualified'
  | 'site_visit'
  | 'negotiation'
  | 'closed';

export type LeadBadge = 'whale' | 'hot' | 'tire_kicker';

export type LeadTag = '#Investor' | '#EndUser' | '#CashBuyer';

export type LeadSource = 'whatsapp' | 'walkin' | 'website';

export type MessageSender = 'lead' | 'oracle' | 'system';

export interface Message {
  id: string;
  sender: MessageSender;
  content: string;
  createdAt: string;
  isThinking?: boolean;
}

export interface SentimentLog {
  id: string;
  at: string;
  score: number;
  note: string;
}

export interface Lead {
  id: string;
  name: string;
  phone: string;
  stage: PipelineStage;
  oracleScore: number;
  badge?: LeadBadge;
  tags: LeadTag[];
  source: LeadSource;
  budget: string;
  unitInterest: string;
  profileImageUrl: string;
  selfieImageUrl?: string;
  visitedShowroom: boolean;
  inShowroomNow?: boolean;
  messages: Message[];
  sentimentLog: SentimentLog[];
}
