Updated member field types to match what was coming back from the server.

This commit is contained in:
Colin Williams
2023-03-14 16:20:03 -07:00
parent 8002e73bd6
commit fc13216313
2 changed files with 17 additions and 15 deletions
+14 -14
View File
@@ -8,22 +8,22 @@ export interface CustomField {
id: number;
type: CustomFieldType;
label: string;
value_string: string | undefined;
value: string | undefined;
value_string: string | null;
value: string | null;
}
export interface EmergencyContact {
name: string;
relation: string;
phone: string;
alt_phone: string;
name: string | null;
relation: string | null;
phone: string | null;
alt_phone: string | null;
}
export interface MemberStatus {
id: number;
type: string;
value: string;
label: MemberStatusLabel | undefined;
label: MemberStatusLabel | null;
}
export interface MemberStatusLabel {
@@ -33,17 +33,17 @@ export interface MemberStatusLabel {
export interface Member {
address: string;
custom_fields: CustomField[];
email?: string;
emergency_contacts: EmergencyContact;
group_ids?: number[];
custom_fields?: CustomField[];
email: string | null;
emergency_contacts: EmergencyContact[];
group_ids: number[] | null;
homephone: string;
id: number;
mobilephone?: string;
mobilephone: string;
name: string;
notes: string;
notes: string | null;
position: string;
ref?: string;
ref: string;
status: MemberStatus;
workphone: string;
}