CMS-1531 TypeScript: Convert SpaceModel to TypeScript