adding more status for the queri of coverage

This commit is contained in:
José Salazar
2026-01-27 11:26:58 -05:00
parent fbebc22ad4
commit 3dc2e90962

View File

@@ -356,3 +356,44 @@ query listAcceptedApplicationsByBusinessForDay(
staff { id fullName email phone photoUrl } staff { id fullName email phone photoUrl }
} }
} }
#coverage list
query listStaffsApplicationsByBusinessForDay(
$businessId: UUID!
$dayStart: Timestamp!
$dayEnd: Timestamp!
$offset: Int
$limit: Int
) @auth(level: USER) {
applications(
where: {
status: {in: [ACCEPTED, CONFIRMED, CHECKED_IN, CHECKED_OUT, LATE]}
shift: {
date: { ge: $dayStart, le: $dayEnd }
order: { businessId: { eq: $businessId } }
#status: { eq: ACCEPTED }
}
}
offset: $offset
limit: $limit
orderBy: { appliedAt: ASC }
) {
id
shiftId
roleId
checkInTime
checkOutTime
appliedAt
status
shiftRole{
shift{
location
}
role{
name
}
}
staff { id fullName email phone photoUrl }
}
}