76cbcef4e6
* WIP Developer Settings * Access Tokens * scopes load fix * mapping to correct struct * Updates to Application * Update to apps.js to fix scopes error * Application table done * Token confirmation done. * Application Success * Fix ts * Darkmode fixes * Responsive fix * Fixes for PR * Pass size prop to Editable Avatar * Updates from PR comments * Section Header - TS Types * Add Typeguard to Delete Dialog * Add Description to scopes query * minor type guard fix * edit application cache update fix * Fix Dialog Expansion * Rename mutations to correct casing * Remove unneeded import for defineProps --------- Co-authored-by: Kristaps Fabians Geikins <fabis94@live.com>
71 lines
1.4 KiB
TypeScript
71 lines
1.4 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
|
|
role
|
|
}
|
|
}
|
|
}
|
|
`)
|
|
|
|
export const serverInfoBlobSizeLimitQuery = graphql(`
|
|
query ServerInfoBlobSizeLimit {
|
|
serverInfo {
|
|
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
|
|
}
|
|
}
|
|
}
|
|
}
|
|
`)
|