new version of staff for the actual front
This commit is contained in:
@@ -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
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user