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(
|
2020-05-10 19:55:28 +00:00
|
|
|
host: String
|
|
|
|
title: String
|
|
|
|
description: String
|
|
|
|
robots: [String]
|
|
|
|
analyticsService: String
|
|
|
|
analyticsId: String
|
|
|
|
company: String
|
|
|
|
contentLicense: String
|
|
|
|
logoUrl: String
|
2020-07-03 23:36:33 +00:00
|
|
|
authAutoLogin: Boolean
|
|
|
|
authLoginBgUrl: String
|
|
|
|
authJwtAudience: String
|
|
|
|
authJwtExpiration: String
|
|
|
|
authJwtRenewablePeriod: String
|
2020-05-10 19:55:28 +00:00
|
|
|
featurePageRatings: Boolean
|
|
|
|
featurePageComments: Boolean
|
|
|
|
featurePersonalWikis: Boolean
|
2020-05-29 22:24:20 +00:00
|
|
|
securityOpenRedirect: Boolean
|
2020-05-10 19:55:28 +00:00
|
|
|
securityIframe: Boolean
|
|
|
|
securityReferrerPolicy: Boolean
|
|
|
|
securityTrustProxy: Boolean
|
|
|
|
securitySRI: Boolean
|
|
|
|
securityHSTS: Boolean
|
|
|
|
securityHSTSDuration: Int
|
|
|
|
securityCSP: Boolean
|
|
|
|
securityCSPDirectives: String
|
|
|
|
uploadMaxFileSize: Int
|
|
|
|
uploadMaxFiles: Int
|
|
|
|
|
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!
|
2020-02-23 20:20:55 +00:00
|
|
|
contentLicense: String!
|
2019-12-19 04:45:19 +00:00
|
|
|
logoUrl: String!
|
2020-07-03 23:36:33 +00:00
|
|
|
authAutoLogin: Boolean
|
|
|
|
authLoginBgUrl: String
|
|
|
|
authJwtAudience: String
|
|
|
|
authJwtExpiration: String
|
|
|
|
authJwtRenewablePeriod: String
|
2018-12-24 06:03:10 +00:00
|
|
|
featurePageRatings: Boolean!
|
|
|
|
featurePageComments: Boolean!
|
|
|
|
featurePersonalWikis: Boolean!
|
2020-05-29 22:24:20 +00:00
|
|
|
securityOpenRedirect: Boolean!
|
2019-08-25 02:19:35 +00:00
|
|
|
securityIframe: Boolean!
|
|
|
|
securityReferrerPolicy: Boolean!
|
2019-10-05 20:58:34 +00:00
|
|
|
securityTrustProxy: Boolean!
|
2019-10-12 18:41:45 +00:00
|
|
|
securitySRI: Boolean!
|
2019-08-25 02:19:35 +00:00
|
|
|
securityHSTS: Boolean!
|
|
|
|
securityHSTSDuration: Int!
|
|
|
|
securityCSP: Boolean!
|
|
|
|
securityCSPDirectives: String!
|
2020-05-10 19:55:28 +00:00
|
|
|
uploadMaxFileSize: Int!
|
|
|
|
uploadMaxFiles: Int!
|
2018-12-24 06:03:10 +00:00
|
|
|
}
|