Files
speckle-server/packages/frontend-2/lib/server-management/graphql/queries.ts
T
Kristaps Fabians Geikins 596312ab0e feat(frontend): personal project limit disclaimers & prompts (#4822)
* ProjectsAdd wrapper

* WorkspaceMoveProject wrapper added

* move wrapper finalized

* passing through location

* more cleanup

* model add wrapper

* permissions cleanup

* add invite wrapper

* vue-tippy bugfix

* ViewerLimitsDialog prep

* upgrade limit alert prep

* limit alerts

* movemanager fix

* new add flow

* slug update fix

* add model flow

* invites?

* some extra fixes

* move unmount fix?

* more fixes

* vue-tsc update

* style: remove h-32 for smaller screens

* vue-tsc parser fix

* prep for new viewer limits dialog

* updated viewer dialogs

* comment variant cleanup

* CR comments

---------

Co-authored-by: michalspeckle <michal@speckle.systems>
2025-05-28 12:12:18 +03:00

118 lines
2.0 KiB
TypeScript

import { graphql } from '~~/lib/common/generated/gql'
export const serverManagementDataQuery = graphql(`
query ServerManagementDataPage {
admin {
userList {
totalCount
}
projectList {
totalCount
}
inviteList {
totalCount
}
}
serverInfo {
name
version
}
}
`)
export const serverInfoQuery = graphql(`
query ServerSettingsDialogData {
serverInfo {
name
description
adminContact
company
termsOfService
inviteOnly
guestModeEnabled
}
}
`)
export const getUsersQuery = graphql(`
query AdminPanelUsersList($limit: Int!, $cursor: String, $query: String) {
admin {
userList(limit: $limit, cursor: $cursor, query: $query) {
totalCount
cursor
items {
id
email
avatar
name
role
verified
company
}
}
}
}
`)
export const adminPanelProjectsQuery = graphql(`
query AdminPanelProjectsList(
$query: String
$orderBy: String
$limit: Int!
$visibility: String
$cursor: String
) {
admin {
projectList(
query: $query
orderBy: $orderBy
limit: $limit
visibility: $visibility
cursor: $cursor
) {
cursor
...SettingsServerProjects_ProjectCollection
}
}
}
`)
export const getInvitesQuery = graphql(`
query AdminPanelInvitesList($limit: Int!, $cursor: String, $query: String) {
admin {
inviteList(limit: $limit, cursor: $cursor, query: $query) {
cursor
items {
email
id
invitedBy {
id
name
}
}
totalCount
}
}
}
`)
export const getUsersCountQuery = graphql(`
query UsersCount {
admin {
userList {
totalCount
}
}
}
`)
export const getInvitesCountQuery = graphql(`
query InvitesCount {
admin {
inviteList {
totalCount
}
}
}
`)