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.

54 lines
1021 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. description: String
  35. logo: String
  36. website: String
  37. mode: String
  38. config: [KeyValuePair]
  39. }
  40. input StorageTargetInput {
  41. isEnabled: Boolean!
  42. key: String!
  43. mode: String!
  44. config: [KeyValuePairInput]
  45. }