ecab655719
* feat(graphql/serverinfo): provide maximum object size in bytes * Places config values in a ServerConfiguration object - updates blobstorage to use ServerConfiguration, while retaining backwards compatibility * chore(fe2): update graphql serverinfo to use new configuration object * Update gqlgen and remaining changes
80 lines
1.5 KiB
TypeScript
80 lines
1.5 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
|
|
$workspaceId: String
|
|
) {
|
|
userSearch(query: $query, limit: $limit, cursor: $cursor, archived: $archived) {
|
|
cursor
|
|
items {
|
|
id
|
|
name
|
|
bio
|
|
company
|
|
avatar
|
|
verified
|
|
role
|
|
workspaceDomainPolicyCompliant(workspaceId: $workspaceId)
|
|
}
|
|
}
|
|
}
|
|
`)
|
|
|
|
export const serverInfoBlobSizeLimitQuery = graphql(`
|
|
query ServerInfoBlobSizeLimit {
|
|
serverInfo {
|
|
configuration {
|
|
blobSizeLimitBytes
|
|
}
|
|
}
|
|
}
|
|
`)
|
|
|
|
export const serverInfoAllScopesQuery = graphql(`
|
|
query ServerInfoAllScopes {
|
|
serverInfo {
|
|
scopes {
|
|
name
|
|
description
|
|
}
|
|
}
|
|
}
|
|
`)
|
|
|
|
export const projectModelsSelectorValuesQuery = graphql(`
|
|
query ProjectModelsSelectorValues($projectId: String!, $cursor: String) {
|
|
project(id: $projectId) {
|
|
id
|
|
models(limit: 100, cursor: $cursor) {
|
|
cursor
|
|
totalCount
|
|
items {
|
|
...CommonModelSelectorModel
|
|
}
|
|
}
|
|
}
|
|
}
|
|
`)
|