modifications queries, mutations of contact, recentPayment, shiftRole, teamhub
This commit is contained in:
@@ -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 }
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user