feat(contacts): keep Tahesab honorifics with person gender
Male and female names can store the title when requested, and Tahesab import and export use the same gender. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -1,3 +1,12 @@
|
||||
import type { PersonGender } from "./person-name";
|
||||
export type { PersonGender } from "./person-name";
|
||||
export {
|
||||
PERSON_GENDERS,
|
||||
PERSON_GENDER_LABELS,
|
||||
applyPersonGenderTitle,
|
||||
splitPersonHonorific,
|
||||
} from "./person-name";
|
||||
|
||||
export type UserRole = "owner" | "admin" | "sales" | "support";
|
||||
|
||||
export const USER_ROLES: UserRole[] = ["owner", "admin", "sales", "support"];
|
||||
@@ -1193,6 +1202,8 @@ export interface PersonDto {
|
||||
previousImportSource: PersonImportSource | string | null;
|
||||
previousSourceRef: string | null;
|
||||
fullName: string;
|
||||
gender: PersonGender;
|
||||
showGenderInName: boolean;
|
||||
email: string | null;
|
||||
phone: string | null;
|
||||
mobile: string | null;
|
||||
@@ -1222,6 +1233,8 @@ export interface PersonDto {
|
||||
export interface CreatePersonRequest {
|
||||
firstName?: string;
|
||||
lastName?: string;
|
||||
gender?: PersonGender;
|
||||
showGenderInName?: boolean;
|
||||
previousFirstName?: string | null;
|
||||
previousLastName?: string | null;
|
||||
importSource?: PersonImportSource | string;
|
||||
|
||||
Reference in New Issue
Block a user