get enum value based on string typescript