mirror of https://github.com/Requarks/wiki.git
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
55 lines
1.1 KiB
# ===============================================
|
|
# SEARCH
|
|
# ===============================================
|
|
|
|
extend type Query {
|
|
search: SearchQuery
|
|
}
|
|
|
|
extend type Mutation {
|
|
search: SearchMutation
|
|
}
|
|
|
|
# -----------------------------------------------
|
|
# QUERIES
|
|
# -----------------------------------------------
|
|
|
|
type SearchQuery {
|
|
searchEngines(
|
|
filter: String
|
|
orderBy: String
|
|
): [SearchEngine] @auth(requires: ["manage:system"])
|
|
}
|
|
|
|
# -----------------------------------------------
|
|
# MUTATIONS
|
|
# -----------------------------------------------
|
|
|
|
type SearchMutation {
|
|
updateSearchEngines(
|
|
engines: [SearchEngineInput]
|
|
): DefaultResponse @auth(requires: ["manage:system"])
|
|
|
|
rebuildIndex: DefaultResponse @auth(requires: ["manage:system"])
|
|
}
|
|
|
|
# -----------------------------------------------
|
|
# TYPES
|
|
# -----------------------------------------------
|
|
|
|
type SearchEngine {
|
|
isEnabled: Boolean!
|
|
key: String!
|
|
title: String!
|
|
description: String
|
|
logo: String
|
|
website: String
|
|
isAvailable: Boolean
|
|
config: [KeyValuePair]
|
|
}
|
|
|
|
input SearchEngineInput {
|
|
isEnabled: Boolean!
|
|
key: String!
|
|
config: [KeyValuePairInput]
|
|
}
|