moving enum out of enums/ namespace
renaming IntervalType to Interval