modifications queries, mutations of contact, recentPayment, shiftRole, teamhub

This commit is contained in:
José Salazar
2026-01-20 14:23:04 -05:00
parent 463c513a49
commit 4e09d21beb
9 changed files with 164 additions and 121 deletions

View File

@@ -225,3 +225,71 @@ query listShiftRolesByShiftIdAndTimeRange(
}
}
# ------------------------------------------------------------
# LIST SHIFT ROLES BY VENDOR (via Shift -> Order)
# ------------------------------------------------------------
query listShiftRolesByVendorId(
$vendorId: UUID!
$offset: Int
$limit: Int
) @auth(level: USER) {
shiftRoles(
where: {
shift: {
order: {
vendorId: { eq: $vendorId }
}
}
}
offset: $offset
limit: $limit
orderBy: { createdAt: DESC }
) {
id
shiftId
roleId
count
assigned
startTime
endTime
hours
department
uniform
breakType
totalValue
createdAt
role {
id
name
costPerHour
}
shift {
id
title
date
location
locationAddress
description
orderId
order {
id
eventName
vendorId
businessId
orderType
status
date
recurringDays
permanentDays
notes
business { id businessName }
vendor { id companyName }
}
}
}
}