[NEW] Add enterprise data to statistics (#19363)
parent
25c3457c35
commit
831ff3ebee
@ -0,0 +1,16 @@ |
||||
import { getModules, getTags } from './license'; |
||||
|
||||
type ENTERPRISE_STATISTICS = { |
||||
modules: string[]; |
||||
tags: string[]; |
||||
} |
||||
|
||||
export function getStatistics(): ENTERPRISE_STATISTICS { |
||||
const modules = getModules(); |
||||
const tags = getTags().map(({ name }) => name); |
||||
|
||||
return { |
||||
modules, |
||||
tags, |
||||
}; |
||||
} |
||||
Loading…
Reference in new issue