123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475 |
- # ===============================================
- # NAVIGATION
- # ===============================================
- extend type Query {
- navigation: NavigationQuery
- }
- extend type Mutation {
- navigation: NavigationMutation
- }
- # -----------------------------------------------
- # QUERIES
- # -----------------------------------------------
- type NavigationQuery {
- tree: [NavigationTree]!
- config: NavigationConfig!
- }
- # -----------------------------------------------
- # MUTATIONS
- # -----------------------------------------------
- type NavigationMutation {
- updateTree(
- tree: [NavigationTreeInput]!
- ): DefaultResponse @auth(requires: ["manage:navigation", "manage:system"])
- updateConfig(
- mode: NavigationMode!
- ): DefaultResponse @auth(requires: ["manage:navigation", "manage:system"])
- }
- # -----------------------------------------------
- # TYPES
- # -----------------------------------------------
- type NavigationTree {
- locale: String!
- items: [NavigationItem]!
- }
- input NavigationTreeInput {
- locale: String!
- items: [NavigationItemInput]!
- }
- type NavigationItem {
- id: String!
- kind: String!
- label: String
- icon: String
- targetType: String
- target: String
- }
- input NavigationItemInput {
- id: String!
- kind: String!
- label: String
- icon: String
- targetType: String
- target: String
- }
- type NavigationConfig {
- mode: NavigationMode!
- }
- enum NavigationMode {
- NONE
- TREE
- MIXED
- }
|