42db2f6b82
* 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
52 lines
1.2 KiB
TypeScript
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)
|
|
}
|
|
}
|
|
`)
|