new version of staff for the actual front

This commit is contained in:
José Salazar
2025-12-02 09:18:01 -05:00
parent d2c227c9d5
commit 04bffcea37
3 changed files with 25 additions and 9 deletions

View File

@@ -12,9 +12,11 @@ mutation CreateStaff(
$profileType: ProfileType,
$employmentType: EmploymentType!,
$english: EnglishLevel,
$rate: Float,
$rating: Float,
$reliabilityScore: Int,
$backgroundCheckStatus: BackgroundCheckStatus!
$notes: String
) @auth(level: USER) {
staff_insert(
data: {
@@ -31,9 +33,11 @@ mutation CreateStaff(
profileType: $profileType
employmentType: $employmentType
english: $english
rate: $rate
rating: $rating
reliabilityScore: $reliabilityScore
backgroundCheckStatus: $backgroundCheckStatus
notes: $notes
}
)
}
@@ -53,9 +57,11 @@ mutation UpdateStaff(
$profileType: ProfileType,
$employmentType: EmploymentType,
$english: EnglishLevel,
$rate: Float,
$rating: Float,
$reliabilityScore: Int,
$backgroundCheckStatus: BackgroundCheckStatus
$notes: String
) @auth(level: USER) {
staff_update(
id: $id,
@@ -73,9 +79,11 @@ mutation UpdateStaff(
profileType: $profileType
employmentType: $employmentType
english: $english
rate: $rate
rating: $rating
reliabilityScore: $reliabilityScore
backgroundCheckStatus: $backgroundCheckStatus
notes: $notes
}
)
}

View File

@@ -14,9 +14,11 @@ query listStaff @auth(level: USER) {
profileType
employmentType
english
rate
rating
reliabilityScore
backgroundCheckStatus
notes
}
}
@@ -38,9 +40,11 @@ query getStaffById(
profileType
employmentType
english
rate
rating
reliabilityScore
backgroundCheckStatus
notes
}
}
@@ -70,8 +74,10 @@ query filterStaff(
position
employmentType
english
rate
rating
reliabilityScore
backgroundCheckStatus
notes
}
}