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.

47 lines
1.9 KiB

  1. # ===============================================
  2. # SYSTEM
  3. # ===============================================
  4. extend type Query {
  5. system: SystemQuery
  6. }
  7. # -----------------------------------------------
  8. # QUERIES
  9. # -----------------------------------------------
  10. type SystemQuery {
  11. info: SystemInfo
  12. }
  13. # -----------------------------------------------
  14. # MUTATIONS
  15. # -----------------------------------------------
  16. # -----------------------------------------------
  17. # TYPES
  18. # -----------------------------------------------
  19. type SystemInfo {
  20. configFile: String @auth(requires: ["manage:system"])
  21. cpuCores: Int @auth(requires: ["manage:system"])
  22. currentVersion: String @auth(requires: ["manage:system"])
  23. dbHost: String @auth(requires: ["manage:system"])
  24. dbType: String @auth(requires: ["manage:system"])
  25. dbVersion: String @auth(requires: ["manage:system"])
  26. groupsTotal: Int @auth(requires: ["manage:system", "manage:navigation", "manage:groups", "write:groups", "manage:users", "write:users"])
  27. hostname: String @auth(requires: ["manage:system"])
  28. latestVersion: String @auth(requires: ["manage:system"])
  29. latestVersionReleaseDate: Date @auth(requires: ["manage:system"])
  30. nodeVersion: String @auth(requires: ["manage:system"])
  31. operatingSystem: String @auth(requires: ["manage:system"])
  32. pagesTotal: Int @auth(requires: ["manage:system", "manage:navigation", "manage:pages", "delete:pages"])
  33. platform: String @auth(requires: ["manage:system"])
  34. ramTotal: String @auth(requires: ["manage:system"])
  35. redisHost: String @auth(requires: ["manage:system"])
  36. redisTotalRAM: String @auth(requires: ["manage:system"])
  37. redisUsedRAM: String @auth(requires: ["manage:system"])
  38. redisVersion: String @auth(requires: ["manage:system"])
  39. usersTotal: Int @auth(requires: ["manage:system", "manage:navigation", "manage:groups", "write:groups", "manage:users", "write:users"])
  40. workingDirectory: String @auth(requires: ["manage:system"])
  41. }