src/applications/check-in/api/local-mock-api/mocks/v2/feature-toggles/index.js
const generateFeatureToggles = (toggles = {}) => {
const {
checkInExperienceEnabled = true,
preCheckInEnabled = true,
checkInExperienceTranslationDisclaimerSpanishEnabled = true,
checkInExperienceTranslationDisclaimerTagalogEnabled = true,
checkInExperienceTravelReimbursement = true,
checkInExperienceBrowserMonitoring = false,
checkInExperienceUpcomingAppointmentsEnabled = false,
checkInExperienceMedicationReviewContent = true,
} = toggles;
return {
data: {
type: 'feature_toggles',
features: [
{
name: 'check_in_experience_enabled',
value: checkInExperienceEnabled,
},
{
name: 'check_in_experience_pre_check_in_enabled',
value: preCheckInEnabled,
},
{
name: 'check_in_experience_translation_disclaimer_spanish_enabled',
value: checkInExperienceTranslationDisclaimerSpanishEnabled,
},
{
name: 'check_in_experience_translation_disclaimer_tagalog_enabled',
value: checkInExperienceTranslationDisclaimerTagalogEnabled,
},
{
name: 'check_in_experience_travel_reimbursement',
value: checkInExperienceTravelReimbursement,
},
{
name: 'check_in_experience_browser_monitoring',
value: checkInExperienceBrowserMonitoring,
},
{
name: 'check_in_experience_upcoming_appointments_enabled',
value: checkInExperienceUpcomingAppointmentsEnabled,
},
{
name: 'check_in_experience_medication_review_content',
value: checkInExperienceMedicationReviewContent,
},
],
},
};
};
module.exports = { generateFeatureToggles };