diff --git a/src/data/test-data.ts b/src/data/test-data.ts index bd8ba08..10a9aa2 100644 --- a/src/data/test-data.ts +++ b/src/data/test-data.ts @@ -191,6 +191,34 @@ export const createTestPassengerData = ( Created: faker.date.recent().toISOString(), 'Latest Trip': faker.date.recent().toISOString(), 'TS City, State (from Treatment Site Totals 2)': [], + 'Cell Phone': faker.phone.number(), + 'Home Phone': faker.phone.number(), + Education: faker.helpers.arrayElement([ + 'Less than high school degree', + 'High school degree or equivalent', + 'Some college, no degree', + 'Associate degree', + "Bachelor's degree", + 'Graduate or professional degree', + ]), + + 'Marital Status': faker.helpers.arrayElement([ + 'Single', + 'Married', + 'Divorced', + 'Widowed', + ]), + Employment: faker.helpers.arrayElement([ + 'Employed, working 40+ hours per week', + 'Employed, working 1-39 hours per week', + 'Unemployed, looking for work', + 'Unemployed, not looking for work', + 'Retired', + 'Student', + 'Homemaker', + 'Unable to work', + 'Other', + ]), ...manualData.fields, }, ...manualData, diff --git a/src/interfaces/passenger/passenger.interface.ts b/src/interfaces/passenger/passenger.interface.ts index 7ed2565..0d912cb 100644 --- a/src/interfaces/passenger/passenger.interface.ts +++ b/src/interfaces/passenger/passenger.interface.ts @@ -11,8 +11,13 @@ export interface PassengerData { City: string; Country: string; Email: string; + 'Cell Phone': string; + 'Home Phone': string; + Education: string; 'Household Income': number; 'Household Size': number; + 'Marital Status': string; + Employment: string; Ethnicity: string[]; 'Military Service': string; 'Military Member': string[]; diff --git a/src/interfaces/passenger/trimmed-passenger.interface.ts b/src/interfaces/passenger/trimmed-passenger.interface.ts index e5c8664..0fb89de 100644 --- a/src/interfaces/passenger/trimmed-passenger.interface.ts +++ b/src/interfaces/passenger/trimmed-passenger.interface.ts @@ -13,6 +13,11 @@ export interface TrimmedPassenger { Email: string; 'Household Income': number; 'Household Size': number; + 'Cell Phone': string; + 'Home Phone': string; + Education: string; + 'Marital Status': string; + Employment: string; Ethnicity: string[]; 'Military Service': string; 'Military Member': string[]; diff --git a/src/util/trim.ts b/src/util/trim.ts index b46b7bb..cf102dc 100644 --- a/src/util/trim.ts +++ b/src/util/trim.ts @@ -50,6 +50,11 @@ export const trimPassenger = (passenger: PassengerData): TrimmedPassenger => { fields['Passenger Names (from All Flight Legs)'], Age: Age, 'Latest Trip': fields['Latest Trip'], + 'Cell Phone': fields['Cell Phone'], + 'Home Phone': fields['Home Phone'], + Education: fields['Education'], + 'Marital Status': fields['Marital Status'], + Employment: fields['Employment'], }; return trimmedPassenger; diff --git a/src/util/trimming/passengers.ts b/src/util/trimming/passengers.ts index 02270bb..2d0d403 100644 --- a/src/util/trimming/passengers.ts +++ b/src/util/trimming/passengers.ts @@ -45,6 +45,11 @@ export const trimPassenger = (passenger: PassengerData): TrimmedPassenger => { fields['Passenger Names (from All Flight Legs)'], Age: Age, 'Latest Trip': fields['Latest Trip'], + 'Cell Phone': fields['Cell Phone'], + 'Home Phone': fields['Home Phone'], + Education: fields['Education'], + 'Marital Status': fields['Marital Status'], + Employment: fields['Employment'], }; return trimmedPassenger;