mirror of https://github.com/requarks/wiki
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
44 lines
1.7 KiB
44 lines
1.7 KiB
# ===============================================
|
|
# SYSTEM
|
|
# ===============================================
|
|
|
|
extend type Query {
|
|
system: SystemQuery
|
|
}
|
|
|
|
# -----------------------------------------------
|
|
# QUERIES
|
|
# -----------------------------------------------
|
|
|
|
type SystemQuery {
|
|
info: SystemInfo
|
|
}
|
|
|
|
# -----------------------------------------------
|
|
# MUTATIONS
|
|
# -----------------------------------------------
|
|
|
|
# -----------------------------------------------
|
|
# TYPES
|
|
# -----------------------------------------------
|
|
|
|
type SystemInfo {
|
|
configFile: String @auth(requires: ["manage:system"])
|
|
cpuCores: Int @auth(requires: ["manage:system"])
|
|
currentVersion: String @auth(requires: ["manage:system"])
|
|
dbHost: String @auth(requires: ["manage:system"])
|
|
dbType: String @auth(requires: ["manage:system"])
|
|
dbVersion: String @auth(requires: ["manage:system"])
|
|
groupsTotal: Int @auth(requires: ["manage:system", "manage:navigation", "manage:groups", "write:groups", "manage:users", "write:users"])
|
|
hostname: String @auth(requires: ["manage:system"])
|
|
latestVersion: String @auth(requires: ["manage:system"])
|
|
latestVersionReleaseDate: Date @auth(requires: ["manage:system"])
|
|
nodeVersion: String @auth(requires: ["manage:system"])
|
|
operatingSystem: String @auth(requires: ["manage:system"])
|
|
pagesTotal: Int @auth(requires: ["manage:system", "manage:navigation", "manage:pages", "delete:pages"])
|
|
platform: String @auth(requires: ["manage:system"])
|
|
ramTotal: String @auth(requires: ["manage:system"])
|
|
usersTotal: Int @auth(requires: ["manage:system", "manage:navigation", "manage:groups", "write:groups", "manage:users", "write:users"])
|
|
workingDirectory: String @auth(requires: ["manage:system"])
|
|
}
|