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.

55 lines
1.1 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. engines: [SearchEngineInput]
  25. ): DefaultResponse @auth(requires: ["manage:system"])
  26. rebuildIndex: DefaultResponse @auth(requires: ["manage:system"])
  27. }
  28. # -----------------------------------------------
  29. # TYPES
  30. # -----------------------------------------------
  31. type SearchEngine {
  32. isEnabled: Boolean!
  33. key: String!
  34. title: String!
  35. description: String
  36. logo: String
  37. website: String
  38. isAvailable: Boolean
  39. config: [KeyValuePair]
  40. }
  41. input SearchEngineInput {
  42. isEnabled: Boolean!
  43. key: String!
  44. config: [KeyValuePairInput]
  45. }