feat: admin storage - save + list
This commit is contained in:
51
server/graph/schemas/storage.graphql
Normal file
51
server/graph/schemas/storage.graphql
Normal file
@@ -0,0 +1,51 @@
|
||||
# ===============================================
|
||||
# STORAGE
|
||||
# ===============================================
|
||||
|
||||
extend type Query {
|
||||
storage: StorageQuery
|
||||
}
|
||||
|
||||
extend type Mutation {
|
||||
storage: StorageMutation
|
||||
}
|
||||
|
||||
# -----------------------------------------------
|
||||
# QUERIES
|
||||
# -----------------------------------------------
|
||||
|
||||
type StorageQuery {
|
||||
targets(
|
||||
filter: String
|
||||
orderBy: String
|
||||
): [StorageTarget]
|
||||
}
|
||||
|
||||
# -----------------------------------------------
|
||||
# MUTATIONS
|
||||
# -----------------------------------------------
|
||||
|
||||
type StorageMutation {
|
||||
updateTargets(
|
||||
targets: [StorageTargetInput]
|
||||
): DefaultResponse
|
||||
}
|
||||
|
||||
# -----------------------------------------------
|
||||
# TYPES
|
||||
# -----------------------------------------------
|
||||
|
||||
type StorageTarget {
|
||||
isEnabled: Boolean!
|
||||
key: String!
|
||||
title: String!
|
||||
mode: String
|
||||
config: [KeyValuePair]
|
||||
}
|
||||
|
||||
input StorageTargetInput {
|
||||
isEnabled: Boolean!
|
||||
key: String!
|
||||
mode: String!
|
||||
config: [KeyValuePairInput]
|
||||
}
|
Reference in New Issue
Block a user