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
966 B

  1. # ===============================================
  2. # STORAGE
  3. # ===============================================
  4. extend type Query {
  5. storage: StorageQuery
  6. }
  7. extend type Mutation {
  8. storage: StorageMutation
  9. }
  10. # -----------------------------------------------
  11. # QUERIES
  12. # -----------------------------------------------
  13. type StorageQuery {
  14. targets(
  15. filter: String
  16. orderBy: String
  17. ): [StorageTarget]
  18. }
  19. # -----------------------------------------------
  20. # MUTATIONS
  21. # -----------------------------------------------
  22. type StorageMutation {
  23. updateTargets(
  24. targets: [StorageTargetInput]
  25. ): DefaultResponse
  26. }
  27. # -----------------------------------------------
  28. # TYPES
  29. # -----------------------------------------------
  30. type StorageTarget {
  31. isEnabled: Boolean!
  32. key: String!
  33. title: String!
  34. mode: String
  35. config: [KeyValuePair]
  36. }
  37. input StorageTargetInput {
  38. isEnabled: Boolean!
  39. key: String!
  40. mode: String!
  41. config: [KeyValuePairInput]
  42. }