JavaScript doesn't have enums, QML allows you to do something like enums by registering names.
What you are writing there is an Object or singleton called Enums with a subobject/property DayOfWeek with an enum.
But that doesn't exist on the C++ side either.
Or you use normal enums instead of enum classes and have comparable support on both language sides.
Would be my choice.
Cheers,
_
Bookmarks