You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

54 lines
1.1 KiB

  1. # ===============================================
  2. # RENDERING
  3. # ===============================================
  4. extend type Query {
  5. rendering: RenderingQuery
  6. }
  7. extend type Mutation {
  8. rendering: RenderingMutation
  9. }
  10. # -----------------------------------------------
  11. # QUERIES
  12. # -----------------------------------------------
  13. type RenderingQuery {
  14. renderers(
  15. filter: String
  16. orderBy: String
  17. ): [Renderer] @auth(requires: ["manage:system"])
  18. }
  19. # -----------------------------------------------
  20. # MUTATIONS
  21. # -----------------------------------------------
  22. type RenderingMutation {
  23. updateRenderers(
  24. renderers: [RendererInput]
  25. ): DefaultResponse @auth(requires: ["manage:system"])
  26. }
  27. # -----------------------------------------------
  28. # TYPES
  29. # -----------------------------------------------
  30. type Renderer {
  31. isEnabled: Boolean!
  32. key: String!
  33. title: String!
  34. description: String
  35. icon: String
  36. dependsOn: String
  37. input: String
  38. output: String
  39. config: [KeyValuePair]
  40. }
  41. input RendererInput {
  42. isEnabled: Boolean!
  43. key: String!
  44. config: [KeyValuePairInput]
  45. }