The manual provides an example of using an Enum, so that cannot by itself be the problem.
What kind of error are you getting.
Do not know if it is relevant here. But I had to init settings in code like below. I initially thought the data file was sufficient to do this but it seems not.
// Load app settings
settings = localStorage.getObject("appSettings");
// Create default settings if none found
if (settings == null) {
settings = {
targetPaceWarm: 2.326,
targetPaceInterval: 2.857,
targetPaceRecovery: 2.083,
targetPaceCool: 2.083,
durationWarm: 10,
durationInterval: 12,
durationRecovery: 5,
durationCool: 20,
repeatCount: 2
}
}