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.

51 lines
1017 B

  1. # ===============================================
  2. # NAVIGATION
  3. # ===============================================
  4. extend type Query {
  5. navigation: NavigationQuery
  6. }
  7. extend type Mutation {
  8. navigation: NavigationMutation
  9. }
  10. # -----------------------------------------------
  11. # QUERIES
  12. # -----------------------------------------------
  13. type NavigationQuery {
  14. tree: [NavigationItem]!
  15. }
  16. # -----------------------------------------------
  17. # MUTATIONS
  18. # -----------------------------------------------
  19. type NavigationMutation {
  20. updateTree(
  21. tree: [NavigationItemInput]!
  22. ): DefaultResponse @auth(requires: ["manage:navigation", "manage:system"])
  23. }
  24. # -----------------------------------------------
  25. # TYPES
  26. # -----------------------------------------------
  27. type NavigationItem {
  28. id: String!
  29. kind: String!
  30. label: String
  31. icon: String
  32. targetType: String
  33. target: String
  34. }
  35. input NavigationItemInput {
  36. id: String!
  37. kind: String!
  38. label: String
  39. icon: String
  40. targetType: String
  41. target: String
  42. }