Add api /types and add selector for event in the dialog for creating a visualization