Files
speckle-server/packages/frontend-2/lib/viewer/graphql/mutations.ts
T
Kristaps Fabians Geikins 42db2f6b82 feat(server): comments module multiregion support (#3493)
* prepwork

* more prep for testing

* tests/linting seems fine

* a couple of query fixes

* fix up notifications for multiregion

* test fixes?

* wal_level issue fix?

* fileupload test fix

* anotha test fix

* undo unnecessary changes

* streamActivity -> main DB
2024-11-19 12:15:43 +02:00

52 lines
1.2 KiB
TypeScript

import { graphql } from '~~/lib/common/generated/gql'
export const broadcastViewerUserActivityMutation = graphql(`
mutation BroadcastViewerUserActivity(
$projectId: String!
$resourceIdString: String!
$message: ViewerUserActivityMessageInput!
) {
broadcastViewerUserActivity(
projectId: $projectId
resourceIdString: $resourceIdString
message: $message
)
}
`)
export const markCommentViewedMutation = graphql(`
mutation MarkCommentViewed($input: MarkCommentViewedInput!) {
commentMutations {
markViewed(input: $input)
}
}
`)
export const createCommentThreadMutation = graphql(`
mutation CreateCommentThread($input: CreateCommentInput!) {
commentMutations {
create(input: $input) {
...ViewerCommentThread
}
}
}
`)
export const createCommentReplyMutation = graphql(`
mutation CreateCommentReply($input: CreateCommentReplyInput!) {
commentMutations {
reply(input: $input) {
...ViewerCommentsReplyItem
}
}
}
`)
export const archiveCommentMutation = graphql(`
mutation ArchiveComment($input: ArchiveCommentInput!) {
commentMutations {
archive(input: $input)
}
}
`)