Files
wehub-resource-sync 2114b14ee0
Sync main into demo / sync (push) Has been cancelled
chore: import upstream snapshot with attribution
2026-07-13 12:35:26 +08:00

43 lines
780 B
TypeScript

export type ContactId = string;
export interface ContactPhone {
id: string;
label: string; // e.g. 手机/住宅/公司
number: string;
isPrimary?: boolean;
}
export interface ContactEmail {
id: string;
label: string;
email: string;
isPrimary?: boolean;
}
export interface Contact {
id: ContactId;
displayName: string;
/** Optional sort key (e.g. pinyin/latin) for stable UI grouping */
sortKey?: string;
/** Optional section key shown in the right index (A-Z or '#') */
sectionKey?: string;
avatarColor?: string;
avatarUri?: string;
starred?: boolean;
lastContactedAt?: number;
phones: ContactPhone[];
emails?: ContactEmail[];
company?: string;
title?: string;
notes?: string;
createdAt?: number;
updatedAt?: number;
}