import type { Client } from './client'

export type ProspectStatus = 'new' | 'contacted' | 'qualified' | 'won' | 'lost'

export type Prospect = {
    id: number
    '@id'?: string
    company: string
    email: string | null
    phone: string | null
    website: string | null
    status: ProspectStatus
    source: string | null
    notes: string | null
    convertedClient: Client | string | null
    createdAt?: string
    updatedAt?: string
}

export type ProspectWrite = {
    company: string
    email?: string | null
    phone?: string | null
    website?: string | null
    status?: ProspectStatus
    source?: string | null
    notes?: string | null
}
