import { Store } from 'shared/libs/stores' ; import { UserContext } from 'teleport/services/user' ; export default class StoreUserContext extends Store < UserContext > { state : UserContext = null ; isSso ( ) { return this . state . authType === 'sso' ; } getUsername ( ) { return this . state . username ; } getEventAccess ( ) { return this . state . acl . events ; } getConnectorAccess ( ) { return this . state . acl . authConnectors ; } getRoleAccess ( ) { return this . state . acl . roles ; } getSshLogins ( ) { return this . state . acl . sshLogins ; } getWindowsLogins ( ) { return this . state . acl . windowsLogins ; } getTrustedClusterAccess ( ) { return this . state . acl . trustedClusters ; } getUserAccess ( ) { return this . state . acl . users ; } getAppServerAccess ( ) { return this . state . acl . appServers ; } getKubeServerAccess ( ) { return this . state . acl . kubeServers ; } getTokenAccess ( ) { return this . state . acl . tokens ; } getWorkflowAccess ( ) { return this . state . acl . accessRequests ; } getAccessStrategy ( ) { return this . state . accessStrategy ; } getRequestableRoles ( ) { return this . state . accessCapabilities . requestableRoles ; } getSuggestedReviewers ( ) { return this . state . accessCapabilities . suggestedReviewers ; } getBillingAccess ( ) { return this . state . acl . billing ; } getDatabaseAccess ( ) { return this . state . acl . dbServers ; } getDesktopAccess ( ) { return this . state . acl . desktops ; } getSessionsAccess ( ) { return this . state . acl . sessions ; } }