Added more database fields for contacts. Worked on popovers in customers view. #3
This commit is contained in:
Vendored
+19
-5
@@ -70,16 +70,26 @@ export function newAddress(): Address {
|
||||
}
|
||||
}
|
||||
|
||||
export interface OnlineAccount {
|
||||
platform: string;
|
||||
userName: string;
|
||||
url: string;
|
||||
}
|
||||
|
||||
export interface Contact {
|
||||
id: number;
|
||||
isPrimary?: boolean;
|
||||
salutation: string;
|
||||
academicTitle?: string;
|
||||
firstName: string;
|
||||
lastName: string;
|
||||
jobTitle?: string;
|
||||
email?: string;
|
||||
phone?: string;
|
||||
position?: string;
|
||||
isPrimary?: boolean;
|
||||
mobilePhone?: string;
|
||||
avatar?: string;
|
||||
notes?: string;
|
||||
onlineAccounts?: OnlineAccount[];
|
||||
}
|
||||
|
||||
export type ContactType = Contact
|
||||
@@ -87,14 +97,18 @@ export type ContactType = Contact
|
||||
export function newContact(): Contact {
|
||||
return {
|
||||
id: 0,
|
||||
isPrimary: false,
|
||||
salutation: '',
|
||||
academicTitle: null,
|
||||
firstName: '',
|
||||
lastName: '',
|
||||
jobTitle: '',
|
||||
email: '',
|
||||
phone: '',
|
||||
position: '',
|
||||
isPrimary: false,
|
||||
avatar: ''
|
||||
mobilePhone: '',
|
||||
avatar: '',
|
||||
notes: '',
|
||||
onlineAccounts: []
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user