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,100 @@
query getStaffDocumentByKey(
$staffId: UUID!
$documentId: UUID!
) @auth(level: USER) {
staffDocument(key: { staffId: $staffId, documentId: $documentId }) {
id
staffId
staffName
documentId
status
documentUrl
expiryDate
createdAt
updatedAt
document {
id
name
documentType
description
}
}
}
query listStaffDocumentsByStaffId(
$staffId: UUID!
$offset: Int
$limit: Int
) @auth(level: USER) {
staffDocuments(
where: { staffId: { eq: $staffId } }
offset: $offset
limit: $limit
) {
id
staffId
staffName
documentId
status
documentUrl
expiryDate
createdAt
updatedAt
document {
id
name
documentType
}
}
}
query listStaffDocumentsByDocumentType(
$documentType: DocumentType!
$offset: Int
$limit: Int
) @auth(level: USER) {
staffDocuments(
where: { document: { documentType: { eq: $documentType } } }
offset: $offset
limit: $limit
) {
id
staffId
staffName
documentId
status
documentUrl
expiryDate
document {
id
name
documentType
}
}
}
query listStaffDocumentsByStatus(
$status: DocumentStatus!
$offset: Int
$limit: Int
) @auth(level: USER) {
staffDocuments(
where: { status: { eq: $status } }
offset: $offset
limit: $limit
) {
id
staffId
staffName
documentId
status
documentUrl
expiryDate
document {
id
name
documentType
}
}
}