2018-03-18 02:41:16 +00:00
|
|
|
# ===============================================
|
|
|
|
# SYSTEM
|
|
|
|
# ===============================================
|
|
|
|
|
|
|
|
extend type Query {
|
|
|
|
system: SystemQuery
|
|
|
|
}
|
|
|
|
|
2019-02-23 23:22:25 +00:00
|
|
|
extend type Mutation {
|
|
|
|
system: SystemMutation
|
|
|
|
}
|
|
|
|
|
2018-03-18 02:41:16 +00:00
|
|
|
# -----------------------------------------------
|
|
|
|
# QUERIES
|
|
|
|
# -----------------------------------------------
|
|
|
|
|
|
|
|
type SystemQuery {
|
2019-02-23 23:22:25 +00:00
|
|
|
flags: [SystemFlag] @auth(requires: ["manage:system"])
|
2019-01-12 23:33:30 +00:00
|
|
|
info: SystemInfo
|
2018-03-18 02:41:16 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
# -----------------------------------------------
|
|
|
|
# MUTATIONS
|
|
|
|
# -----------------------------------------------
|
|
|
|
|
2019-02-23 23:22:25 +00:00
|
|
|
type SystemMutation {
|
|
|
|
updateFlags(
|
|
|
|
flags: [SystemFlagInput]!
|
|
|
|
): DefaultResponse @auth(requires: ["manage:system"])
|
2019-07-06 21:43:50 +00:00
|
|
|
|
|
|
|
resetTelemetryClientId: DefaultResponse @auth(requires: ["manage:system"])
|
|
|
|
|
|
|
|
setTelemetry(
|
|
|
|
enabled: Boolean!
|
|
|
|
): DefaultResponse @auth(requires: ["manage:system"])
|
2019-09-22 20:32:39 +00:00
|
|
|
|
|
|
|
performUpgrade: DefaultResponse @auth(requires: ["manage:system"])
|
2019-02-23 23:22:25 +00:00
|
|
|
}
|
|
|
|
|
2018-03-18 02:41:16 +00:00
|
|
|
# -----------------------------------------------
|
|
|
|
# TYPES
|
|
|
|
# -----------------------------------------------
|
|
|
|
|
2019-02-23 23:22:25 +00:00
|
|
|
type SystemFlag {
|
|
|
|
key: String!
|
|
|
|
value: Boolean!
|
|
|
|
}
|
|
|
|
|
|
|
|
input SystemFlagInput {
|
|
|
|
key: String!
|
|
|
|
value: Boolean!
|
|
|
|
}
|
|
|
|
|
2018-03-18 02:41:16 +00:00
|
|
|
type SystemInfo {
|
2019-01-12 23:33:30 +00:00
|
|
|
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"])
|
2019-07-06 21:43:50 +00:00
|
|
|
telemetry: Boolean @auth(requires: ["manage:system"])
|
|
|
|
telemetryClientId: String @auth(requires: ["manage:system"])
|
2019-09-22 20:32:39 +00:00
|
|
|
upgradeCapable: Boolean @auth(requires: ["manage:system"])
|
2019-01-12 23:33:30 +00:00
|
|
|
usersTotal: Int @auth(requires: ["manage:system", "manage:navigation", "manage:groups", "write:groups", "manage:users", "write:users"])
|
|
|
|
workingDirectory: String @auth(requires: ["manage:system"])
|
2018-03-18 02:41:16 +00:00
|
|
|
}
|