Built skeleton MilestonePromptData
This commit is contained in:
parent
22232060c2
commit
f7f959c426
61
src/utils/buildMilestonePromptData.js
Normal file
61
src/utils/buildMilestonePromptData.js
Normal file
@ -0,0 +1,61 @@
|
|||||||
|
export function buildMilestonePromptData({
|
||||||
|
selectedCareer,
|
||||||
|
careerCluster,
|
||||||
|
existingMilestones,
|
||||||
|
financialMilestones,
|
||||||
|
retirementMilestones,
|
||||||
|
salaryProjections,
|
||||||
|
educationDetails,
|
||||||
|
expectedSalaryByRegion,
|
||||||
|
financialGoals,
|
||||||
|
retirementGoals,
|
||||||
|
userPreferences,
|
||||||
|
popoutPanelData,
|
||||||
|
isCollegeMode
|
||||||
|
}) {
|
||||||
|
return {
|
||||||
|
careerPath: {
|
||||||
|
name: selectedCareer?.career_name,
|
||||||
|
socCode: selectedCareer?.soc_code,
|
||||||
|
cluster: careerCluster,
|
||||||
|
},
|
||||||
|
existingMilestones: {
|
||||||
|
career: existingMilestones,
|
||||||
|
financial: financialMilestones,
|
||||||
|
retirement: retirementMilestones,
|
||||||
|
},
|
||||||
|
salaryProjection: {
|
||||||
|
startingSalary: salaryProjections.starting,
|
||||||
|
annualIncreaseRate: salaryProjections.growthRate,
|
||||||
|
earningHorizonYears: salaryProjections.horizon,
|
||||||
|
},
|
||||||
|
education: {
|
||||||
|
degreeType: educationDetails.degreeType,
|
||||||
|
programLength: educationDetails.programLength,
|
||||||
|
costOfAttendance: educationDetails.cost,
|
||||||
|
loanRepayment: educationDetails.loanRepayment,
|
||||||
|
interestRate: educationDetails.interestRate,
|
||||||
|
expectedGraduationDate: educationDetails.graduationDate,
|
||||||
|
isInCollege: isCollegeMode === true,
|
||||||
|
},
|
||||||
|
regionalSalary: {
|
||||||
|
zipCode: expectedSalaryByRegion.zipCode,
|
||||||
|
salaryData: expectedSalaryByRegion.salaryInfo,
|
||||||
|
},
|
||||||
|
goals: {
|
||||||
|
financial: financialGoals,
|
||||||
|
retirement: retirementGoals,
|
||||||
|
},
|
||||||
|
userPreferences, // work style, motivations, values
|
||||||
|
popoutPanel: {
|
||||||
|
commuteDistanceMiles: popoutPanelData.commuteDistance,
|
||||||
|
schoolName: popoutPanelData.schoolName,
|
||||||
|
website: popoutPanelData.website,
|
||||||
|
region: popoutPanelData.region,
|
||||||
|
},
|
||||||
|
economicOutlook: {
|
||||||
|
projections: popoutPanelData.economicProjections,
|
||||||
|
}
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
Loading…
Reference in New Issue
Block a user