feat(leads): keep gender on leads and form submissions
A lead can carry the same honorific as a person, and a form that asks gender writes it onto the lead. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -3,7 +3,10 @@ export type { PersonGender } from "./person-name";
|
||||
export {
|
||||
PERSON_GENDERS,
|
||||
PERSON_GENDER_LABELS,
|
||||
applyLeadGenderName,
|
||||
applyPersonGenderTitle,
|
||||
isGenderQuestionLabel,
|
||||
parsePersonGenderAnswer,
|
||||
splitPersonHonorific,
|
||||
} from "./person-name";
|
||||
|
||||
@@ -2432,6 +2435,8 @@ export type LeadFormMapTo =
|
||||
| "lead.trade"
|
||||
| "lead.notes"
|
||||
| "lead.source"
|
||||
| "lead.gender"
|
||||
| "person.gender"
|
||||
| "notes"
|
||||
| "custom";
|
||||
|
||||
@@ -5470,6 +5475,8 @@ export interface LeadDto {
|
||||
id: string;
|
||||
title: string;
|
||||
contactName: string | null;
|
||||
gender: PersonGender;
|
||||
showGenderInName: boolean;
|
||||
mobile: string;
|
||||
phone: string | null;
|
||||
city: string | null;
|
||||
@@ -5510,6 +5517,8 @@ export interface CreateLeadRequest {
|
||||
title: string;
|
||||
mobile: string;
|
||||
contactName?: string | null;
|
||||
gender?: PersonGender;
|
||||
showGenderInName?: boolean;
|
||||
phone?: string | null;
|
||||
city?: string | null;
|
||||
region?: string | null;
|
||||
@@ -5531,6 +5540,8 @@ export interface UpdateLeadRequest {
|
||||
title?: string;
|
||||
mobile?: string;
|
||||
contactName?: string | null;
|
||||
gender?: PersonGender;
|
||||
showGenderInName?: boolean;
|
||||
phone?: string | null;
|
||||
city?: string | null;
|
||||
region?: string | null;
|
||||
|
||||
Reference in New Issue
Block a user