Files
speckle-server/packages/frontend-2/lib/viewer/graphql/mutations.ts
T
Kristaps Fabians Geikins b02a07e2b6 feat: Frontend 2.0 MVP
2023-05-08 10:47:01 +03: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($threadId: String!) {
commentMutations {
markViewed(commentId: $threadId)
}
}
`)
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($commentId: String!, $archived: Boolean) {
commentMutations {
archive(commentId: $commentId, archived: $archived)
}
}
`)