2018-12-24 01:03:10 -05: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 17:03:30 -05:00
|
|
|
analyticsService: String!
|
|
|
|
analyticsId: String!
|
2018-12-24 01:03:10 -05:00
|
|
|
company: String!
|
2020-02-23 15:20:55 -05:00
|
|
|
contentLicense: String!
|
2019-12-18 23:45:19 -05:00
|
|
|
logoUrl: String!
|
2018-12-24 01:03:10 -05:00
|
|
|
featurePageRatings: Boolean!
|
|
|
|
featurePageComments: Boolean!
|
|
|
|
featurePersonalWikis: Boolean!
|
2019-08-24 22:19:35 -04:00
|
|
|
securityIframe: Boolean!
|
|
|
|
securityReferrerPolicy: Boolean!
|
2019-10-05 16:58:34 -04:00
|
|
|
securityTrustProxy: Boolean!
|
2019-10-12 14:41:45 -04:00
|
|
|
securitySRI: Boolean!
|
2019-08-24 22:19:35 -04:00
|
|
|
securityHSTS: Boolean!
|
|
|
|
securityHSTSDuration: Int!
|
|
|
|
securityCSP: Boolean!
|
|
|
|
securityCSPDirectives: String!
|
2018-12-24 01:03:10 -05:00
|
|
|
): DefaultResponse @auth(requires: ["manage:system"])
|
|
|
|
}
|
|
|
|
|
|
|
|
# -----------------------------------------------
|
|
|
|
# TYPES
|
|
|
|
# -----------------------------------------------
|
|
|
|
|
|
|
|
type SiteConfig {
|
|
|
|
host: String!
|
|
|
|
title: String!
|
|
|
|
description: String!
|
|
|
|
robots: [String]!
|
2019-01-01 17:03:30 -05:00
|
|
|
analyticsService: String!
|
2019-01-12 18:33:30 -05:00
|
|
|
analyticsId: String!
|
2018-12-24 01:03:10 -05:00
|
|
|
company: String!
|
2020-02-23 15:20:55 -05:00
|
|
|
contentLicense: String!
|
2019-12-18 23:45:19 -05:00
|
|
|
logoUrl: String!
|
2018-12-24 01:03:10 -05:00
|
|
|
featurePageRatings: Boolean!
|
|
|
|
featurePageComments: Boolean!
|
|
|
|
featurePersonalWikis: Boolean!
|
2019-08-24 22:19:35 -04:00
|
|
|
securityIframe: Boolean!
|
|
|
|
securityReferrerPolicy: Boolean!
|
2019-10-05 16:58:34 -04:00
|
|
|
securityTrustProxy: Boolean!
|
2019-10-12 14:41:45 -04:00
|
|
|
securitySRI: Boolean!
|
2019-08-24 22:19:35 -04:00
|
|
|
securityHSTS: Boolean!
|
|
|
|
securityHSTSDuration: Int!
|
|
|
|
securityCSP: Boolean!
|
|
|
|
securityCSPDirectives: String!
|
2018-12-24 01:03:10 -05:00
|
|
|
}
|