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

This commit is contained in:
Colin Williams committed 2023-03-14 16:20:03 -07:00
1 parent 8002e73bd6
commit fc13216313
2 files changed
+17 -15

No files matched your search

+3 -1
View File
@@ -36,4 +36,6 @@ The available commands are:
* build: `npm run build`
* launch: `npm run launch`
Build simply builds the test project, while launch both builds and runs it. If you've made changes to lib, be sure to build there first.
Build simply builds the test project, while launch both builds and runs it. If you've made changes to lib, be sure to build there first.
Before launching, you should setup environment variables. `sample.env` shows you what variables are necessary. Copy the contents to a new file, `.env`, in the same folder and populate it appropriately.
+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;
}