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.

52 lines
1.0 KiB

  1. # ===============================================
  2. # SEARCH
  3. # ===============================================
  4. extend type Query {
  5. search: SearchQuery
  6. }
  7. extend type Mutation {
  8. search: SearchMutation
  9. }
  10. # -----------------------------------------------
  11. # QUERIES
  12. # -----------------------------------------------
  13. type SearchQuery {
  14. searchEngines(
  15. filter: String
  16. orderBy: String
  17. ): [SearchEngine] @auth(requires: ["manage:system"])
  18. }
  19. # -----------------------------------------------
  20. # MUTATIONS
  21. # -----------------------------------------------
  22. type SearchMutation {
  23. updateSearchEngines(
  24. searchEngines: [SearchEngineInput]
  25. ): DefaultResponse @auth(requires: ["manage:system"])
  26. }
  27. # -----------------------------------------------
  28. # TYPES
  29. # -----------------------------------------------
  30. type SearchEngine {
  31. isEnabled: Boolean!
  32. key: String!
  33. title: String!
  34. description: String
  35. logo: String
  36. website: String
  37. config: [KeyValuePair]
  38. }
  39. input SearchEngineInput {
  40. isEnabled: Boolean!
  41. key: String!
  42. config: [KeyValuePairInput]
  43. }