site.graphql 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  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. securityIframe: Boolean!
  34. securityReferrerPolicy: Boolean!
  35. securityHSTS: Boolean!
  36. securityHSTSDuration: Int!
  37. securityCSP: Boolean!
  38. securityCSPDirectives: String!
  39. ): DefaultResponse @auth(requires: ["manage:system"])
  40. }
  41. # -----------------------------------------------
  42. # TYPES
  43. # -----------------------------------------------
  44. type SiteConfig {
  45. host: String!
  46. title: String!
  47. description: String!
  48. robots: [String]!
  49. analyticsService: String!
  50. analyticsId: String!
  51. company: String!
  52. hasLogo: Boolean!
  53. logoIsSquare: Boolean!
  54. featurePageRatings: Boolean!
  55. featurePageComments: Boolean!
  56. featurePersonalWikis: Boolean!
  57. securityIframe: Boolean!
  58. securityReferrerPolicy: Boolean!
  59. securityHSTS: Boolean!
  60. securityHSTSDuration: Int!
  61. securityCSP: Boolean!
  62. securityCSPDirectives: String!
  63. }