Add enum for event types (#1)