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.

59 lines
1.3 KiB

  1. # ===============================================
  2. # SITE
  3. # ===============================================
  4. extend type Query {
  5. site: SiteQuery
  6. }
  7. extend type Mutation {
  8. site: SiteMutation
  9. }
  10. # -----------------------------------------------
  11. # QUERIES
  12. # -----------------------------------------------
  13. type SiteQuery {
  14. config: SiteConfig @auth(requires: ["manage:system"])
  15. }
  16. # -----------------------------------------------
  17. # MUTATIONS
  18. # -----------------------------------------------
  19. type SiteMutation {
  20. updateConfig(
  21. host: String!
  22. title: String!
  23. description: String!
  24. robots: [String]!
  25. analyticsService: String!
  26. analyticsId: String!
  27. company: String!
  28. hasLogo: Boolean!
  29. logoIsSquare: Boolean!
  30. featurePageRatings: Boolean!
  31. featurePageComments: Boolean!
  32. featurePersonalWikis: Boolean!
  33. ): DefaultResponse @auth(requires: ["manage:system"])
  34. }
  35. # -----------------------------------------------
  36. # TYPES
  37. # -----------------------------------------------
  38. type SiteConfig {
  39. host: String!
  40. title: String!
  41. description: String!
  42. robots: [String]!
  43. analyticsService: String!
  44. analyticsId: String!
  45. company: String!
  46. hasLogo: Boolean!
  47. logoIsSquare: Boolean!
  48. featurePageRatings: Boolean!
  49. featurePageComments: Boolean!
  50. featurePersonalWikis: Boolean!
  51. }