2018-08-27 02:38:08 +00:00
|
|
|
# ===============================================
|
|
|
|
# RENDERING
|
|
|
|
# ===============================================
|
|
|
|
|
|
|
|
extend type Query {
|
|
|
|
rendering: RenderingQuery
|
|
|
|
}
|
|
|
|
|
|
|
|
extend type Mutation {
|
|
|
|
rendering: RenderingMutation
|
|
|
|
}
|
|
|
|
|
|
|
|
# -----------------------------------------------
|
|
|
|
# QUERIES
|
|
|
|
# -----------------------------------------------
|
|
|
|
|
|
|
|
type RenderingQuery {
|
|
|
|
renderers(
|
|
|
|
filter: String
|
|
|
|
orderBy: String
|
2018-10-14 21:38:39 +00:00
|
|
|
): [Renderer] @auth(requires: ["manage:system"])
|
2018-08-27 02:38:08 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
# -----------------------------------------------
|
|
|
|
# MUTATIONS
|
|
|
|
# -----------------------------------------------
|
|
|
|
|
|
|
|
type RenderingMutation {
|
|
|
|
updateRenderers(
|
|
|
|
renderers: [RendererInput]
|
2018-10-14 21:38:39 +00:00
|
|
|
): DefaultResponse @auth(requires: ["manage:system"])
|
2018-08-27 02:38:08 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
# -----------------------------------------------
|
|
|
|
# TYPES
|
|
|
|
# -----------------------------------------------
|
|
|
|
|
|
|
|
type Renderer {
|
|
|
|
isEnabled: Boolean!
|
|
|
|
key: String!
|
|
|
|
title: String!
|
|
|
|
description: String
|
|
|
|
icon: String
|
|
|
|
dependsOn: String
|
|
|
|
input: String
|
|
|
|
output: String
|
|
|
|
config: [KeyValuePair]
|
|
|
|
}
|
|
|
|
|
|
|
|
input RendererInput {
|
|
|
|
isEnabled: Boolean!
|
|
|
|
key: String!
|
|
|
|
mode: String!
|
|
|
|
config: [KeyValuePairInput]
|
|
|
|
}
|