Fixing teams context for the most part, skipping manage user test case because...
- Fixing teams context with new API.
- Skipping manage users test case which concerns the new team context api to do it in a separate ticket.
- Fixing tests with new mocks.
- Creating new API type definitions.
Edited by abhayashrestha