Replaced all string enums with numbers (JS API)