55 lines
1.1 KiB
GraphQL
55 lines
1.1 KiB
GraphQL
# ===============================================
|
|
# RENDERING
|
|
# ===============================================
|
|
|
|
extend type Query {
|
|
rendering: RenderingQuery
|
|
}
|
|
|
|
extend type Mutation {
|
|
rendering: RenderingMutation
|
|
}
|
|
|
|
# -----------------------------------------------
|
|
# QUERIES
|
|
# -----------------------------------------------
|
|
|
|
type RenderingQuery {
|
|
renderers(
|
|
filter: String
|
|
orderBy: String
|
|
): [Renderer] @auth(requires: ["manage:system"])
|
|
}
|
|
|
|
# -----------------------------------------------
|
|
# MUTATIONS
|
|
# -----------------------------------------------
|
|
|
|
type RenderingMutation {
|
|
updateRenderers(
|
|
renderers: [RendererInput]
|
|
): DefaultResponse @auth(requires: ["manage:system"])
|
|
}
|
|
|
|
# -----------------------------------------------
|
|
# 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!
|
|
config: [KeyValuePairInput]
|
|
}
|