mirror of
https://github.com/kc4x4sar/d4h-typescript.git
synced 2026-06-03 09:23:36 -07:00
Updated member field types to match what was coming back from the server.
This commit is contained in:
+14
-14
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user