59 lines
1.2 KiB
TypeScript
59 lines
1.2 KiB
TypeScript
import { graphql } from '~~/lib/common/generated/gql'
|
|
|
|
export const mentionsUserSearchQuery = graphql(`
|
|
query MentionsUserSearch($query: String!, $emailOnly: Boolean = false) {
|
|
userSearch(
|
|
query: $query
|
|
limit: 5
|
|
cursor: null
|
|
archived: false
|
|
emailOnly: $emailOnly
|
|
) {
|
|
items {
|
|
id
|
|
name
|
|
company
|
|
}
|
|
}
|
|
}
|
|
`)
|
|
|
|
export const userSearchQuery = graphql(`
|
|
query UserSearch($query: String!, $limit: Int, $cursor: String, $archived: Boolean) {
|
|
userSearch(query: $query, limit: $limit, cursor: $cursor, archived: $archived) {
|
|
cursor
|
|
items {
|
|
id
|
|
name
|
|
bio
|
|
company
|
|
avatar
|
|
verified
|
|
}
|
|
}
|
|
}
|
|
`)
|
|
|
|
export const serverInfoBlobSizeLimitQuery = graphql(`
|
|
query ServerInfoBlobSizeLimit {
|
|
serverInfo {
|
|
blobSizeLimitBytes
|
|
}
|
|
}
|
|
`)
|
|
|
|
export const projectModelsSelectorValuesQuery = graphql(`
|
|
query ProjectModelsSelectorValues($projectId: String!, $cursor: String) {
|
|
project(id: $projectId) {
|
|
id
|
|
models(limit: 100, cursor: $cursor) {
|
|
cursor
|
|
totalCount
|
|
items {
|
|
...CommonModelSelectorModel
|
|
}
|
|
}
|
|
}
|
|
}
|
|
`)
|