feat: Integrate Data Connect and Implement Staff List View Directory

This commit is contained in:
dhinesh-m24
2026-01-31 16:54:59 +05:30
parent 48bb1c457c
commit cb25b33d04
255 changed files with 21425 additions and 109 deletions

View File

@@ -0,0 +1,33 @@
mutation createTaskComment(
$taskId: UUID!
$teamMemberId: UUID!
$comment: String!
$isSystem: Boolean
) @auth(level: USER) {
taskComment_insert(
data: {
taskId: $taskId
teamMemberId: $teamMemberId
comment: $comment
isSystem: $isSystem
}
)
}
mutation updateTaskComment(
$id: UUID!
$comment: String
$isSystem: Boolean
) @auth(level: USER) {
taskComment_update(
id: $id
data: {
comment: $comment
isSystem: $isSystem
}
)
}
mutation deleteTaskComment($id: UUID!) @auth(level: USER) {
taskComment_delete(id: $id)
}

View File

@@ -0,0 +1,62 @@
query listTaskComments @auth(level: USER) {
taskComments {
id
taskId
teamMemberId
comment
isSystem
createdAt
teamMember{
user {
fullName
email
}
}
}
}
query getTaskCommentById($id: UUID!) @auth(level: USER) {
taskComment(id: $id) {
id
taskId
teamMemberId
comment
isSystem
createdAt
teamMember{
user {
fullName
email
}
}
}
}
query getTaskCommentsByTaskId($taskId: UUID!) @auth(level: USER) {
taskComments(where: { taskId: { eq: $taskId } }) {
id
taskId
teamMemberId
comment
isSystem
createdAt
teamMember{
user {
fullName
email
}
}
}
}