import type { APIClient } from '@wireapp/api-client' ; import type { MemberData , Members , NewTeamData , TeamChunkData , TeamData , UpdateTeamData , } from '@wireapp/api-client/src/team/' ; export class TeamService { constructor ( private readonly apiClient ) { } public addMember ( teamId , memberData ) { return this . apiClient . teams . member . api . postMembers ( teamId , memberData ) ; } public createTeam ( teamData ) { return this . apiClient . teams . team . api . postTeam ( teamData ) ; } public deleteTeam ( teamId , password ) { return this . apiClient . teams . team . api . deleteTeam ( teamId , password ) ; } public getAllMembers ( teamId ) { return this . apiClient . teams . member . api . getAllMembers ( teamId ) ; } public getTeam ( teamId ) { return this . apiClient . teams . team . api . getTeam ( teamId ) ; } public getTeams ( ) { return this . apiClient . teams . team . api . getTeams ( ) ; } public removeMember ( teamId , userId , password ) { return this . apiClient . teams . member . api . deleteMember ( teamId , userId , password ) ; } public updateMember ( teamId , memberData ) { return this . apiClient . teams . member . api . putMembers ( teamId , memberData ) ; } public updateTeam ( teamId , teamData ) { return this . apiClient . teams . team . api . putTeam ( teamId , teamData ) ; } }