import { adminMlCapabilities , userMlCapabilities , MlCapabilities , getDefaultCapabilities , } from '../../../../common/types/capabilities' ; export function getAdminCapabilities ( ) { const caps = { } ; Object . keys ( adminMlCapabilities ) . forEach ( ( k ) => { caps [ k ] = true ; } ) ; return { ... getUserCapabilities ( ) , ... caps } as MlCapabilities ; } export function getUserCapabilities ( ) { const caps = { } ; Object . keys ( userMlCapabilities ) . forEach ( ( k ) => { caps [ k ] = true ; } ) ; return { ... getDefaultCapabilities ( ) , ... caps } as MlCapabilities ; }