29 lines
649 B
TypeScript
29 lines
649 B
TypeScript
import type { Client } from './client'
|
|
|
|
export type ProspectStatus = 'new' | 'contacted' | 'qualified' | 'won' | 'lost'
|
|
|
|
export type Prospect = {
|
|
id: number
|
|
'@id'?: string
|
|
name: string
|
|
company: string | null
|
|
email: string | null
|
|
phone: string | null
|
|
status: ProspectStatus
|
|
source: string | null
|
|
notes: string | null
|
|
convertedClient: Client | string | null
|
|
createdAt?: string
|
|
updatedAt?: string
|
|
}
|
|
|
|
export type ProspectWrite = {
|
|
name: string
|
|
company: string | null
|
|
email: string | null
|
|
phone: string | null
|
|
status: ProspectStatus
|
|
source: string | null
|
|
notes: string | null
|
|
}
|