mirror of
https://github.com/kc4x4sar/d4h-typescript.git
synced 2026-07-12 17:21:05 -07:00
Updated member field types to match what was coming back from the server.
This commit is contained in:
@@ -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
@@ -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