feat: storage actions + git module actions
This commit is contained in:
@@ -31,6 +31,11 @@ type StorageMutation {
|
||||
updateTargets(
|
||||
targets: [StorageTargetInput]!
|
||||
): DefaultResponse @auth(requires: ["manage:system"])
|
||||
|
||||
executeAction(
|
||||
targetKey: String!
|
||||
handler: String!
|
||||
): DefaultResponse @auth(requires: ["manage:system"])
|
||||
}
|
||||
|
||||
# -----------------------------------------------
|
||||
@@ -51,6 +56,7 @@ type StorageTarget {
|
||||
syncInterval: String
|
||||
syncIntervalDefault: String
|
||||
config: [KeyValuePair]
|
||||
actions: [StorageTargetAction]
|
||||
}
|
||||
|
||||
input StorageTargetInput {
|
||||
@@ -68,3 +74,9 @@ type StorageStatus {
|
||||
message: String!
|
||||
lastAttempt: String!
|
||||
}
|
||||
|
||||
type StorageTargetAction {
|
||||
handler: String!
|
||||
label: String!
|
||||
hint: String!
|
||||
}
|
||||
|
Reference in New Issue
Block a user