Files
Krow-workspace/dataconnect/connector/staff/queries.gql
2025-12-17 11:58:19 -05:00

126 lines
2.3 KiB
GraphQL

query listStaff @auth(level: USER) {
staffs {
id
employeeName
vendorId
vendorName
manager
contactNumber
phone # nuevo
email
department
hubLocation
eventLocation # nuevo
address # nuevo
city # nuevo
track
position
position2
initial # nuevo
profileType
employmentType
english
englishRequired # nuevo
rate
rating
reliabilityScore
backgroundCheckStatus
notes
accountingComments # nuevo
shiftCoveragePercentage # nuevo
cancellationCount # nuevo
noShowCount # nuevo
totalShifts # nuevo
invoiced # nuevo
checkIn # nuevo
scheduleDays # nuevo
replacedBy # nuevo
action # nuevo
ro # nuevo
mon # nuevo
}
}
query getStaffById(
$id: UUID!
) @auth(level: USER) {
staff(id: $id) {
id
employeeName
vendorId
vendorName
manager
contactNumber
phone # nuevo
email
department
hubLocation
eventLocation # nuevo
address # nuevo
city # nuevo
track
position
position2 # nuevo
initial # nuevo
profileType
employmentType
english
rate
rating
reliabilityScore
backgroundCheckStatus
notes
accountingComments # nuevo
shiftCoveragePercentage # nuevo
cancellationCount # nuevo
noShowCount # nuevo
totalShifts # nuevo
invoiced # nuevo
englishRequired # nuevo
checkIn # nuevo
scheduleDays # nuevo
replacedBy # nuevo
action # nuevo
ro # nuevo
mon # nuevo
}
}
query filterStaff(
$employeeName: String,
$vendorId: String,
$department: StaffDepartment,
$employmentType: EmploymentType,
$english: EnglishLevel,
$backgroundCheckStatus: BackgroundCheckStatus
) @auth(level: USER) {
staffs(
where: {
employeeName: { eq: $employeeName }
vendorId: { eq: $vendorId }
department: { eq: $department }
employmentType: { eq: $employmentType }
english: { eq: $english }
backgroundCheckStatus: { eq: $backgroundCheckStatus }
}
) {
id
employeeName
vendorId
vendorName
department
hubLocation
eventLocation # nuevo
position
position2
employmentType
english
rate
rating
reliabilityScore
backgroundCheckStatus
notes
invoiced # nuevo
}
}