import { sdk } from './SDKClient'; import { whenLoggedIn } from './loggedIn'; export const fetchFeatures = (): Promise => whenLoggedIn() .then(() => sdk.rest.get('/v1/licenses.info', {})) .then(({ license }) => license.activeModules);