2018-09-29 19:39:09 +00:00
|
|
|
# ===============================================
|
|
|
|
# NAVIGATION
|
|
|
|
# ===============================================
|
|
|
|
|
|
|
|
extend type Query {
|
|
|
|
navigation: NavigationQuery
|
|
|
|
}
|
|
|
|
|
|
|
|
extend type Mutation {
|
|
|
|
navigation: NavigationMutation
|
|
|
|
}
|
|
|
|
|
|
|
|
# -----------------------------------------------
|
|
|
|
# QUERIES
|
|
|
|
# -----------------------------------------------
|
|
|
|
|
|
|
|
type NavigationQuery {
|
|
|
|
tree: [NavigationItem]!
|
|
|
|
}
|
|
|
|
|
|
|
|
# -----------------------------------------------
|
|
|
|
# MUTATIONS
|
|
|
|
# -----------------------------------------------
|
|
|
|
|
|
|
|
type NavigationMutation {
|
|
|
|
updateTree(
|
|
|
|
tree: [NavigationItemInput]!
|
2018-10-19 22:18:55 +00:00
|
|
|
): DefaultResponse @auth(requires: ["manage:navigation", "manage:system"])
|
2018-09-29 19:39:09 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
# -----------------------------------------------
|
|
|
|
# TYPES
|
|
|
|
# -----------------------------------------------
|
|
|
|
|
|
|
|
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
|
|
|
|
}
|