remove knockout mapping and update ts definisitions