import BaseAPI from './BaseAPI' ; class TeamProfile extends BaseAPI { public get ( visibility = null , extraArgs = { } ) { const args = { visibility , ... extraArgs } ; return this . _get ( 'team.profile.get' , args ) ; } } export default class Team extends BaseAPI { public profile ; constructor ( token , retries_limit ) { super ( token , retries_limit ) ; this . profile = new TeamProfile ( token , retries_limit ) ; } public accessLogs ( before = 'now' , count = 100 , page = 1 , extraArgs = { } ) { const args = { before , count , page , ... extraArgs } ; return this . _get ( 'team.accessLogs' , args ) ; } public billableInfo ( user = null , extraArgs = { } ) { const args = { user , ... extraArgs } ; return this . _get ( 'team.billableInfo' , args ) ; } public info ( extraArgs = { } ) { const args = { ... extraArgs } ; return this . _get ( 'team.info' , args ) ; } public integrationLogs ( app_id = null , change_type = null , count = 100 , page = 1 , service_id = null , user = null , extraArgs = { } ) { const args = { app_id , change_type , count , page , service_id , user , ... extraArgs } ; return this . _get ( 'team.integrationLogs' , args ) ; } }