2018-12-24 06:03:10 +00:00
|
|
|
# ===============================================
|
|
|
|
# SITE
|
|
|
|
# ===============================================
|
|
|
|
|
|
|
|
extend type Query {
|
|
|
|
site: SiteQuery
|
|
|
|
}
|
|
|
|
|
|
|
|
extend type Mutation {
|
|
|
|
site: SiteMutation
|
|
|
|
}
|
|
|
|
|
|
|
|
# -----------------------------------------------
|
|
|
|
# QUERIES
|
|
|
|
# -----------------------------------------------
|
|
|
|
|
|
|
|
type SiteQuery {
|
|
|
|
config: SiteConfig @auth(requires: ["manage:system"])
|
|
|
|
}
|
|
|
|
|
|
|
|
# -----------------------------------------------
|
|
|
|
# MUTATIONS
|
|
|
|
# -----------------------------------------------
|
|
|
|
|
|
|
|
type SiteMutation {
|
|
|
|
updateConfig(
|
|
|
|
host: String!
|
|
|
|
title: String!
|
|
|
|
description: String!
|
|
|
|
robots: [String]!
|
2019-01-01 22:03:30 +00:00
|
|
|
analyticsService: String!
|
|
|
|
analyticsId: String!
|
2018-12-24 06:03:10 +00:00
|
|
|
company: String!
|
|
|
|
hasLogo: Boolean!
|
|
|
|
logoIsSquare: Boolean!
|
|
|
|
featurePageRatings: Boolean!
|
|
|
|
featurePageComments: Boolean!
|
|
|
|
featurePersonalWikis: Boolean!
|
2019-08-25 02:19:35 +00:00
|
|
|
securityIframe: Boolean!
|
|
|
|
securityReferrerPolicy: Boolean!
|
|
|
|
securityHSTS: Boolean!
|
|
|
|
securityHSTSDuration: Int!
|
|
|
|
securityCSP: Boolean!
|
|
|
|
securityCSPDirectives: String!
|
2018-12-24 06:03:10 +00:00
|
|
|
): DefaultResponse @auth(requires: ["manage:system"])
|
|
|
|
}
|
|
|
|
|
|
|
|
# -----------------------------------------------
|
|
|
|
# TYPES
|
|
|
|
# -----------------------------------------------
|
|
|
|
|
|
|
|
type SiteConfig {
|
|
|
|
host: String!
|
|
|
|
title: String!
|
|
|
|
description: String!
|
|
|
|
robots: [String]!
|
2019-01-01 22:03:30 +00:00
|
|
|
analyticsService: String!
|
2019-01-12 23:33:30 +00:00
|
|
|
analyticsId: String!
|
2018-12-24 06:03:10 +00:00
|
|
|
company: String!
|
|
|
|
hasLogo: Boolean!
|
|
|
|
logoIsSquare: Boolean!
|
|
|
|
featurePageRatings: Boolean!
|
|
|
|
featurePageComments: Boolean!
|
|
|
|
featurePersonalWikis: Boolean!
|
2019-08-25 02:19:35 +00:00
|
|
|
securityIframe: Boolean!
|
|
|
|
securityReferrerPolicy: Boolean!
|
|
|
|
securityHSTS: Boolean!
|
|
|
|
securityHSTSDuration: Int!
|
|
|
|
securityCSP: Boolean!
|
|
|
|
securityCSPDirectives: String!
|
2018-12-24 06:03:10 +00:00
|
|
|
}
|