From e14ef767eb3164330eb3838013eaa988da343e25 Mon Sep 17 00:00:00 2001 From: Gokul Date: Thu, 19 Feb 2026 16:19:49 +0530 Subject: [PATCH] Staff profile completion --- .../connector/staff/profile_completion.gql | 55 +++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 backend/dataconnect/connector/staff/profile_completion.gql diff --git a/backend/dataconnect/connector/staff/profile_completion.gql b/backend/dataconnect/connector/staff/profile_completion.gql new file mode 100644 index 00000000..a80e0b10 --- /dev/null +++ b/backend/dataconnect/connector/staff/profile_completion.gql @@ -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 + } +}