Files
Krow-workspace/dataconnect/connector/staff/mutations.gql
2025-12-02 09:18:01 -05:00

96 lines
2.2 KiB
GraphQL

mutation CreateStaff(
$employeeName: String!,
$vendorId: UUID,
$vendorName: String,
$manager: String,
$contactNumber: String,
$email: String,
$department: StaffDepartment,
$hubLocation: String,
$track: String,
$position: String,
$profileType: ProfileType,
$employmentType: EmploymentType!,
$english: EnglishLevel,
$rate: Float,
$rating: Float,
$reliabilityScore: Int,
$backgroundCheckStatus: BackgroundCheckStatus!
$notes: String
) @auth(level: USER) {
staff_insert(
data: {
employeeName: $employeeName
vendorId: $vendorId
vendorName: $vendorName
manager: $manager
contactNumber: $contactNumber
email: $email
department: $department
hubLocation: $hubLocation
track: $track
position: $position
profileType: $profileType
employmentType: $employmentType
english: $english
rate: $rate
rating: $rating
reliabilityScore: $reliabilityScore
backgroundCheckStatus: $backgroundCheckStatus
notes: $notes
}
)
}
mutation UpdateStaff(
$id: UUID!,
$employeeName: String,
$vendorId: UUID,
$vendorName: String,
$manager: String,
$contactNumber: String,
$email: String,
$department: StaffDepartment,
$hubLocation: String,
$track: String,
$position: String,
$profileType: ProfileType,
$employmentType: EmploymentType,
$english: EnglishLevel,
$rate: Float,
$rating: Float,
$reliabilityScore: Int,
$backgroundCheckStatus: BackgroundCheckStatus
$notes: String
) @auth(level: USER) {
staff_update(
id: $id,
data: {
employeeName: $employeeName
vendorId: $vendorId
vendorName: $vendorName
manager: $manager
contactNumber: $contactNumber
email: $email
department: $department
hubLocation: $hubLocation
track: $track
position: $position
profileType: $profileType
employmentType: $employmentType
english: $english
rate: $rate
rating: $rating
reliabilityScore: $reliabilityScore
backgroundCheckStatus: $backgroundCheckStatus
notes: $notes
}
)
}
mutation DeleteStaff(
$id: UUID!
) @auth(level: USER) {
staff_delete(id: $id)
}