5e3607658a
Les formulaires d'ajout/édition client et prospect ne conservent que le champ
« Nom société ». Les coordonnées (email, téléphone) et les champs prospect
(société, statut, source, notes) sont retirés : ils seront gérés via Contact.
Le statut prospect prend son défaut New à la création ; DTO assouplis, payload
réduit à { name }.
29 lines
655 B
TypeScript
29 lines
655 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
|
|
}
|