Merge pull request #438 from Oloodi/Inconsistent-Shift-Booking-Status
feat(backend): add staff profile completion GraphQL queries
This commit is contained in:
55
backend/dataconnect/connector/staff/profile_completion.gql
Normal file
55
backend/dataconnect/connector/staff/profile_completion.gql
Normal file
@@ -0,0 +1,55 @@
|
||||
# ==========================================================
|
||||
# STAFF PROFILE COMPLETION - QUERIES
|
||||
# ==========================================================
|
||||
|
||||
query getStaffProfileCompletion($id: UUID!) @auth(level: USER) {
|
||||
staff(id: $id) {
|
||||
id
|
||||
fullName
|
||||
email
|
||||
phone
|
||||
preferredLocations
|
||||
industries
|
||||
skills
|
||||
}
|
||||
emergencyContacts(where: { staffId: { eq: $id } }) {
|
||||
id
|
||||
}
|
||||
taxForms(where: { staffId: { eq: $id } }) {
|
||||
id
|
||||
formType
|
||||
status
|
||||
}
|
||||
}
|
||||
|
||||
query getStaffPersonalInfoCompletion($id: UUID!) @auth(level: USER) {
|
||||
staff(id: $id) {
|
||||
id
|
||||
fullName
|
||||
email
|
||||
phone
|
||||
preferredLocations
|
||||
}
|
||||
}
|
||||
|
||||
query getStaffEmergencyProfileCompletion($id: UUID!) @auth(level: USER) {
|
||||
emergencyContacts(where: { staffId: { eq: $id } }) {
|
||||
id
|
||||
}
|
||||
}
|
||||
|
||||
query getStaffExperienceProfileCompletion($id: UUID!) @auth(level: USER) {
|
||||
staff(id: $id) {
|
||||
id
|
||||
industries
|
||||
skills
|
||||
}
|
||||
}
|
||||
|
||||
query getStaffTaxFormsProfileCompletion($id: UUID!) @auth(level: USER) {
|
||||
taxForms(where: { staffId: { eq: $id } }) {
|
||||
id
|
||||
formType
|
||||
status
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user