@burdenoff/microfe-crewfoundry 2026.1029.2 → 2026.1030.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (47) hide show
  1. package/dist/crewfoundry/components/EmployeeSkillsPanel.d.ts +12 -0
  2. package/dist/crewfoundry/components/EmployeeSkillsPanel.d.ts.map +1 -0
  3. package/dist/crewfoundry/components/EmployeeSkillsPanel.js +168 -0
  4. package/dist/crewfoundry/components/EmployeeSkillsPanel.js.map +1 -0
  5. package/dist/crewfoundry/lib/useFocusedRecordParam.d.ts +51 -0
  6. package/dist/crewfoundry/lib/useFocusedRecordParam.d.ts.map +1 -0
  7. package/dist/crewfoundry/lib/useFocusedRecordParam.js +38 -0
  8. package/dist/crewfoundry/lib/useFocusedRecordParam.js.map +1 -0
  9. package/dist/crewfoundry/pages/CommunicationsAnnouncementsPagePage.d.ts.map +1 -1
  10. package/dist/crewfoundry/pages/CommunicationsAnnouncementsPagePage.js +119 -112
  11. package/dist/crewfoundry/pages/CommunicationsAnnouncementsPagePage.js.map +1 -1
  12. package/dist/crewfoundry/pages/CompanyClientManagementPagePage.d.ts.map +1 -1
  13. package/dist/crewfoundry/pages/CompanyClientManagementPagePage.js +78 -71
  14. package/dist/crewfoundry/pages/CompanyClientManagementPagePage.js.map +1 -1
  15. package/dist/crewfoundry/pages/CompanyVendorManagementPagePage.d.ts.map +1 -1
  16. package/dist/crewfoundry/pages/CompanyVendorManagementPagePage.js +88 -81
  17. package/dist/crewfoundry/pages/CompanyVendorManagementPagePage.js.map +1 -1
  18. package/dist/crewfoundry/pages/HiringCandidatesPagePage.d.ts.map +1 -1
  19. package/dist/crewfoundry/pages/HiringCandidatesPagePage.js +133 -126
  20. package/dist/crewfoundry/pages/HiringCandidatesPagePage.js.map +1 -1
  21. package/dist/crewfoundry/pages/HiringInterviewsPagePage.d.ts.map +1 -1
  22. package/dist/crewfoundry/pages/HiringInterviewsPagePage.js +150 -143
  23. package/dist/crewfoundry/pages/HiringInterviewsPagePage.js.map +1 -1
  24. package/dist/crewfoundry/pages/HrDepartmentsPagePage.d.ts.map +1 -1
  25. package/dist/crewfoundry/pages/HrDepartmentsPagePage.js +110 -103
  26. package/dist/crewfoundry/pages/HrDepartmentsPagePage.js.map +1 -1
  27. package/dist/crewfoundry/pages/HrEmployeeProfilePagePage.d.ts.map +1 -1
  28. package/dist/crewfoundry/pages/HrEmployeeProfilePagePage.js +124 -134
  29. package/dist/crewfoundry/pages/HrEmployeeProfilePagePage.js.map +1 -1
  30. package/dist/crewfoundry/pages/HrLeaveManagementPagePage.d.ts.map +1 -1
  31. package/dist/crewfoundry/pages/HrLeaveManagementPagePage.js +173 -162
  32. package/dist/crewfoundry/pages/HrLeaveManagementPagePage.js.map +1 -1
  33. package/dist/crewfoundry/pages/HrPayrollPagePage.d.ts.map +1 -1
  34. package/dist/crewfoundry/pages/HrPayrollPagePage.js +169 -158
  35. package/dist/crewfoundry/pages/HrPayrollPagePage.js.map +1 -1
  36. package/dist/crewfoundry/pages/HrTimeTrackingPagePage.d.ts.map +1 -1
  37. package/dist/crewfoundry/pages/HrTimeTrackingPagePage.js +179 -163
  38. package/dist/crewfoundry/pages/HrTimeTrackingPagePage.js.map +1 -1
  39. package/dist/crewfoundry/store/crewfoundryStore.d.ts +22 -0
  40. package/dist/crewfoundry/store/crewfoundryStore.d.ts.map +1 -1
  41. package/dist/crewfoundry/store/crewfoundryStore.js +158 -129
  42. package/dist/crewfoundry/store/crewfoundryStore.js.map +1 -1
  43. package/dist/utils/pageContext.d.ts +43 -4
  44. package/dist/utils/pageContext.d.ts.map +1 -1
  45. package/dist/utils/pageContext.js +10 -3
  46. package/dist/utils/pageContext.js.map +1 -1
  47. package/package.json +3 -2
@@ -1,7 +1,7 @@
1
1
  import { create as e } from "zustand";
2
2
  import { graphqlFetch as t } from "@burdenoff/fe-libs/shared/graphql";
3
3
  //#region src/crewfoundry/store/crewfoundryStore.ts
4
- var n = "\n query CrewfoundryBootstrap {\n crewfoundryBootstrap {\n employees { id firstName lastName email department position status type salary startDate avatar location managerId phone performanceScore skills terminationDate }\n departments { id name headId headName employeeCount budget location status }\n jobPostings { id title department location type experienceLevel salaryMin salaryMax status applicants postedDate deadline description requirements benefits }\n candidates { id firstName lastName email phone position status appliedDate resumeUrl rating source experience skills currentCompany notes hiredDate }\n interviews { id candidateId candidateName position interviewerName date time type status feedback rating }\n announcements { id title content author authorRole category priority isPinned createdAt viewCount tags }\n teams { id name description leadId leadName members memberCount department status projectCount createdAt }\n projects { id name description status priority startDate endDate progress budget spent teamId teamName managerId managerName tasks completedTasks }\n leaveRequests { id employeeId employeeName department type startDate endDate days status reason approverName }\n timeEntries { id employeeId employeeName date clockIn clockOut totalHours overtime project status billable }\n vendors { id name category contactPerson email phone status contractValue rating }\n clients { id name industry contactPerson email phone status revenue projects since }\n }\n }\n", r = "\n query CrewPayrollRecords {\n crewPayrollRecords { id employeeId employeeName department period grossPay deductions netPay status payDate paymentMethod }\n }\n", i = "\n query CrewfoundryWorkspaceBootstrapWithOverlap(\n $workspaceId: ID!\n $projectPagination: PaginationInput\n $groupFirst: Int\n $conversationFirst: Int\n ) {\n crewfoundryBootstrap {\n employees { id firstName lastName email department position status type salary startDate avatar location managerId phone performanceScore skills terminationDate }\n departments { id name headId headName employeeCount budget location status }\n jobPostings { id title department location type experienceLevel salaryMin salaryMax status applicants postedDate deadline description requirements benefits }\n candidates { id firstName lastName email phone position status appliedDate resumeUrl rating source experience skills currentCompany notes hiredDate }\n interviews { id candidateId candidateName position interviewerName date time type status feedback rating }\n announcements { id title content author authorRole category priority isPinned createdAt viewCount tags }\n teams { id name description leadId leadName members memberCount department status projectCount createdAt }\n projects { id name description status priority startDate endDate progress budget spent teamId teamName managerId managerName tasks completedTasks }\n leaveRequests { id employeeId employeeName department type startDate endDate days status reason approverName }\n timeEntries { id employeeId employeeName date clockIn clockOut totalHours overtime project status billable }\n vendors { id name category contactPerson email phone status contractValue rating }\n clients { id name industry contactPerson email phone status revenue projects since }\n }\n projects(filter: { workspaceId: $workspaceId }, pagination: $projectPagination) {\n items {\n id\n name\n key\n creatorId\n status\n config\n archived\n createdAt\n updatedAt\n }\n }\n groups(first: $groupFirst) {\n edges {\n node {\n id\n name\n description\n groupType\n status\n memberCount\n ownerId\n createdAt\n }\n }\n }\n conversations(first: $conversationFirst) {\n edges {\n node {\n id\n title\n description\n state\n unreadCount\n memberCount\n updatedAt\n }\n }\n }\n }\n", a = "mutation CreateCrewEmployee($input: CreateCrewEmployeeInput!) { createCrewEmployee(input: $input) { id firstName lastName email department position status type salary startDate avatar location managerId phone performanceScore skills terminationDate } }", o = "mutation UpdateCrewEmployee($id: ID!, $input: UpdateCrewEmployeeInput!) { updateCrewEmployee(id: $id, input: $input) { id firstName lastName email department position status type salary startDate avatar location managerId phone performanceScore skills terminationDate } }", s = "mutation RemoveCrewEmployee($id: ID!) { removeCrewEmployee(id: $id) }", c = "mutation CreateCrewJobPosting($input: CreateCrewJobPostingInput!) { createCrewJobPosting(input: $input) { id title department location type experienceLevel salaryMin salaryMax status applicants postedDate deadline description requirements benefits } }", l = "mutation UpdateCrewJobPosting($id: ID!, $input: UpdateCrewJobPostingInput!) { updateCrewJobPosting(id: $id, input: $input) { id title department location type experienceLevel salaryMin salaryMax status applicants postedDate deadline description requirements benefits } }", u = "mutation CreateCrewCandidate($input: CreateCrewCandidateInput!) { createCrewCandidate(input: $input) { id firstName lastName email phone position status appliedDate resumeUrl rating source experience skills currentCompany notes hiredDate } }", d = "mutation UpdateCrewCandidate($id: ID!, $input: UpdateCrewCandidateInput!) { updateCrewCandidate(id: $id, input: $input) { id firstName lastName email phone position status appliedDate resumeUrl rating source experience skills currentCompany notes hiredDate } }", f = "mutation CreateCrewAnnouncement($input: CreateCrewAnnouncementInput!) { createCrewAnnouncement(input: $input) { id title content author authorRole category priority isPinned createdAt viewCount tags } }", p = "mutation CreateCrewLeaveRequest($input: CreateCrewLeaveRequestInput!) { createCrewLeaveRequest(input: $input) { id employeeId employeeName department type startDate endDate days status reason approverName } }", m = "mutation UpdateCrewLeaveRequest($id: ID!, $input: UpdateCrewLeaveRequestInput!) { updateCrewLeaveRequest(id: $id, input: $input) { id employeeId employeeName department type startDate endDate days status reason approverName } }", h = "mutation RemoveCrewJobPosting($id: ID!) { removeCrewJobPosting(id: $id) }", g = "mutation RemoveCrewCandidate($id: ID!) { removeCrewCandidate(id: $id) }", _ = "mutation UpdateCrewAnnouncement($id: ID!, $input: UpdateCrewAnnouncementInput!) { updateCrewAnnouncement(id: $id, input: $input) { id title content author authorRole category priority isPinned createdAt viewCount tags } }", v = "mutation RemoveCrewAnnouncement($id: ID!) { removeCrewAnnouncement(id: $id) }", y = "mutation CreateCrewInterview($input: CreateCrewInterviewInput!) { createCrewInterview(input: $input) { id candidateId candidateName position interviewerName date time type status feedback rating } }", b = "mutation UpdateCrewInterview($id: ID!, $input: UpdateCrewInterviewInput!) { updateCrewInterview(id: $id, input: $input) { id candidateId candidateName position interviewerName date time type status feedback rating } }", x = "mutation RemoveCrewInterview($id: ID!) { removeCrewInterview(id: $id) }", ee = "mutation CreateCrewVendor($input: CreateCrewVendorInput!) { createCrewVendor(input: $input) { id name category contactPerson email phone status contractValue rating } }", te = "mutation UpdateCrewVendor($id: ID!, $input: UpdateCrewVendorInput!) { updateCrewVendor(id: $id, input: $input) { id name category contactPerson email phone status contractValue rating } }", ne = "mutation RemoveCrewVendor($id: ID!) { removeCrewVendor(id: $id) }", re = "mutation CreateCrewClient($input: CreateCrewClientInput!) { createCrewClient(input: $input) { id name industry contactPerson email phone status revenue projects since } }", ie = "mutation UpdateCrewClient($id: ID!, $input: UpdateCrewClientInput!) { updateCrewClient(id: $id, input: $input) { id name industry contactPerson email phone status revenue projects since } }", ae = "mutation RemoveCrewClient($id: ID!) { removeCrewClient(id: $id) }", oe = "mutation CreateCrewTeam($input: CreateCrewTeamInput!) { createCrewTeam(input: $input) { id name description leadId leadName members memberCount department status projectCount createdAt } }", se = "mutation UpdateCrewTeam($id: ID!, $input: UpdateCrewTeamInput!) { updateCrewTeam(id: $id, input: $input) { id name description leadId leadName members memberCount department status projectCount createdAt } }", ce = "mutation RemoveCrewTeam($id: ID!) { removeCrewTeam(id: $id) }", le = "mutation CreateCrewProject($input: CreateCrewProjectInput!) { createCrewProject(input: $input) { id name description status priority startDate endDate progress budget spent teamId teamName managerId managerName tasks completedTasks } }", ue = "mutation UpdateCrewProject($id: ID!, $input: UpdateCrewProjectInput!) { updateCrewProject(id: $id, input: $input) { id name description status priority startDate endDate progress budget spent teamId teamName managerId managerName tasks completedTasks } }", de = "mutation RemoveCrewProject($id: ID!) { removeCrewProject(id: $id) }", fe = "mutation CreateCrewDepartment($input: CreateCrewDepartmentInput!) { createCrewDepartment(input: $input) { id name headId headName employeeCount budget location status } }", pe = "mutation UpdateCrewDepartment($id: ID!, $input: UpdateCrewDepartmentInput!) { updateCrewDepartment(id: $id, input: $input) { id name headId headName employeeCount budget location status } }", me = "mutation RemoveCrewDepartment($id: ID!) { removeCrewDepartment(id: $id) }", he = "mutation CreateCrewPayrollRecord($input: CreateCrewPayrollRecordInput!) { createCrewPayrollRecord(input: $input) { id employeeId employeeName department period grossPay deductions netPay status payDate paymentMethod } }", ge = "mutation UpdateCrewPayrollRecord($id: ID!, $input: UpdateCrewPayrollRecordInput!) { updateCrewPayrollRecord(id: $id, input: $input) { id employeeId employeeName department period grossPay deductions netPay status payDate paymentMethod } }", _e = "mutation RemoveCrewPayrollRecord($id: ID!) { removeCrewPayrollRecord(id: $id) }", S = "id country currency period payDate status employeeCount totalGrossPay totalNetPay calculatedAt approvedAt approvedBy notes", ve = `query CrewPayrollRuns { crewPayrollRuns { ${S} } }`, ye = `mutation CreateCrewPayrollRun($input: CreateCrewPayrollRunInput!) { createCrewPayrollRun(input: $input) { ${S} } }`, be = `mutation CalculateCrewPayrollRun($id: ID!) { calculateCrewPayrollRun(id: $id) { ${S} } }`, xe = `mutation ApproveCrewPayrollRun($id: ID!) { approveCrewPayrollRun(id: $id) { ${S} } }`, Se = "mutation RemoveCrewPayrollRun($id: ID!) { removeCrewPayrollRun(id: $id) }", Ce = "query CrewPayslips($filter: CrewPayslipFilterInput) { crewPayslips(filter: $filter) { id payrollRunId employeeId employeeName country currency period annualGrossSalary grossPay taxableIncome incomeTax employeeSocialContrib employerSocialContrib otherDeductions netPay incomeTaxBrackets { label rate bandFrom bandTo taxableInBand taxOnBand } employeeContributions { label rate base amount } employerContributions { label rate base amount } otherDeductionLines { label rate base amount } assumptions } }", we = "mutation CreateCrewTimeEntry($input: CreateCrewTimeEntryInput!) { createCrewTimeEntry(input: $input) { id employeeId employeeName date clockIn clockOut totalHours overtime project status billable } }", Te = "mutation UpdateCrewTimeEntry($id: ID!, $input: UpdateCrewTimeEntryInput!) { updateCrewTimeEntry(id: $id, input: $input) { id employeeId employeeName date clockIn clockOut totalHours overtime project status billable } }", Ee = "mutation RemoveCrewTimeEntry($id: ID!) { removeCrewTimeEntry(id: $id) }", De = "query CrewJobPostingMatches($jobPostingId: ID!, $filter: CrewCandidateMatchFilterInput, $limit: Int) { crewJobPostingMatches(jobPostingId: $jobPostingId, filter: $filter, limit: $limit) { candidateId jobPostingId score skillScore experienceScore matchedSkills missingSkills rationale candidate { id firstName lastName email phone position status appliedDate resumeUrl rating source experience skills currentCompany notes hiredDate } } }", C = "query CrewSkillsGap { crewSkillsGap { skill employeesWithSkill openJobsRequiringSkill shortage } }", w = "query EmployeeDocuments($employeeId: ID!) { employeeDocuments(employeeId: $employeeId) { id employeeId fileId title category uploadedBy uploadedAt } }", T = "mutation AttachEmployeeDocument($input: AttachCrewEmployeeDocumentInput!) { attachEmployeeDocument(input: $input) { id employeeId fileId title category uploadedBy uploadedAt } }", E = "mutation DetachEmployeeDocument($id: ID!) { detachEmployeeDocument(id: $id) }", Oe = "mutation EnsureFolderByPath($path: String!) { ensureFolderByPath(path: $path) { id } }", ke = "mutation InitiateUpload($input: InitiateUploadInput!) { initiateUpload(input: $input) { session { id } uploadUrl } }", Ae = "mutation CompleteUpload($input: CompleteUploadInput!) { completeUpload(input: $input) { file { id } } }", je = "query CrewOnboardings { crewOnboardings { id candidateId employeeId fullName position department startDate status currentStage createdAt totalTaskCount completedTaskCount progressPercent tasks { id onboardingId stage title assigneeActorId assigneeName dueDate completedAt sortOrder } } }", Me = "mutation CreateCrewOnboarding($input: CreateCrewOnboardingInput!) { createCrewOnboarding(input: $input) { id candidateId employeeId fullName position department startDate status currentStage createdAt totalTaskCount completedTaskCount progressPercent tasks { id onboardingId stage title assigneeActorId assigneeName dueDate completedAt sortOrder } } }", Ne = "mutation UpdateCrewOnboarding($id: ID!, $input: UpdateCrewOnboardingInput!) { updateCrewOnboarding(id: $id, input: $input) { id candidateId employeeId fullName position department startDate status currentStage createdAt totalTaskCount completedTaskCount progressPercent tasks { id onboardingId stage title assigneeActorId assigneeName dueDate completedAt sortOrder } } }", Pe = "mutation RemoveCrewOnboarding($id: ID!) { removeCrewOnboarding(id: $id) }", Fe = "mutation CreateCrewOnboardingTask($input: CreateCrewOnboardingTaskInput!) { createCrewOnboardingTask(input: $input) { id onboardingId stage title assigneeActorId assigneeName dueDate completedAt sortOrder } }", Ie = "mutation UpdateCrewOnboardingTask($id: ID!, $input: UpdateCrewOnboardingTaskInput!) { updateCrewOnboardingTask(id: $id, input: $input) { id onboardingId stage title assigneeActorId assigneeName dueDate completedAt sortOrder } }", Le = "mutation RemoveCrewOnboardingTask($id: ID!) { removeCrewOnboardingTask(id: $id) }", Re = "mutation ToggleCrewOnboardingTask($id: ID!, $completed: Boolean!) { toggleCrewOnboardingTask(id: $id, completed: $completed) { id onboardingId stage title assigneeActorId assigneeName dueDate completedAt sortOrder } }", D = "id title description contentUrl durationMinutes isActive requiredForRoles createdAt updatedAt", O = "id courseId courseTitle employeeId employeeName status startedAt completedAt createdAt updatedAt", ze = `query CrewLearning($coursePage: PaginationInput, $enrollmentPage: PaginationInput) { crewTrainingCourses(pagination: $coursePage) { ${D} } crewEnrollments(pagination: $enrollmentPage) { ${O} } crewTrainingCompletionDashboard { courseId courseTitle totalEnrolled notStartedCount inProgressCount completedCount completionRate } }`, Be = `query CrewTrainingCourses($pagination: PaginationInput) { crewTrainingCourses(pagination: $pagination) { ${D} } }`, Ve = `query CrewEnrollments($pagination: PaginationInput) { crewEnrollments(pagination: $pagination) { ${O} } }`, He = "query CrewTrainingCompletionDashboard { crewTrainingCompletionDashboard { courseId courseTitle totalEnrolled notStartedCount inProgressCount completedCount completionRate } }", Ue = `mutation CreateCrewTrainingCourse($input: CreateCrewTrainingCourseInput!) { createCrewTrainingCourse(input: $input) { ${D} } }`, We = `mutation UpdateCrewTrainingCourse($id: ID!, $input: UpdateCrewTrainingCourseInput!) { updateCrewTrainingCourse(id: $id, input: $input) { ${D} } }`, Ge = "mutation RemoveCrewTrainingCourse($id: ID!) { removeCrewTrainingCourse(id: $id) }", Ke = `mutation CreateCrewEnrollment($input: CreateCrewEnrollmentInput!) { createCrewEnrollment(input: $input) { ${O} } }`, qe = `mutation UpdateCrewEnrollmentStatus($id: ID!, $status: String!) { updateCrewEnrollmentStatus(id: $id, status: $status) { ${O} } }`, Je = "mutation RemoveCrewEnrollment($id: ID!) { removeCrewEnrollment(id: $id) }", k = "id title description category providerActorId providerName rate rateUnit currency status createdAt updatedAt", A = "id listingId listingTitle providerActorId providerName clientActorId clientName status rate rateUnit currency notes scheduledStart scheduledEnd cancelledReason createdAt updatedAt", j = "id bookingId amount currency releaseCondition status heldAt releasedAt releasedBy notes createdAt updatedAt", Ye = `query CrewServiceListings($pagination: PaginationInput) { crewServiceListings(pagination: $pagination) { ${k} } }`, Xe = `query CrewBookings($pagination: PaginationInput) { crewBookings(pagination: $pagination) { ${A} } }`, Ze = `query CrewEscrowRecords($pagination: PaginationInput) { crewEscrowRecords(pagination: $pagination) { ${j} } }`, Qe = `mutation CreateCrewServiceListing($input: CreateCrewServiceListingInput!) { createCrewServiceListing(input: $input) { ${k} } }`, $e = `mutation UpdateMyServiceListing($id: ID!, $input: UpdateCrewServiceListingInput!) { updateMyServiceListing(id: $id, input: $input) { ${k} } }`, et = "mutation RemoveMyServiceListing($id: ID!) { removeMyServiceListing(id: $id) }", M = `mutation CreateCrewBooking($input: CreateCrewBookingInput!) { createCrewBooking(input: $input) { ${A} } }`, tt = `mutation UpdateMyBookingStatus($id: ID!, $status: String!) { updateMyBookingStatus(id: $id, status: $status) { ${A} } }`, nt = `mutation ReleaseCrewEscrowRecord($id: ID!) { releaseCrewEscrowRecord(id: $id) { ${j} } }`, rt = `mutation CancelCrewEscrowRecord($id: ID!) { cancelCrewEscrowRecord(id: $id) { ${j} } }`, N = 100, it = 10, P = (e) => e.toUpperCase().replaceAll("-", "_"), F = {
4
+ var n = "\n query CrewfoundryBootstrap {\n crewfoundryBootstrap {\n employees { id firstName lastName email department position status type salary startDate avatar location managerId phone performanceScore skills terminationDate }\n departments { id name headId headName employeeCount budget location status }\n jobPostings { id title department location type experienceLevel salaryMin salaryMax status applicants postedDate deadline description requirements benefits }\n candidates { id firstName lastName email phone position status appliedDate resumeUrl rating source experience skills currentCompany notes hiredDate }\n interviews { id candidateId candidateName position interviewerName date time type status feedback rating }\n announcements { id title content author authorRole category priority isPinned createdAt viewCount tags }\n teams { id name description leadId leadName members memberCount department status projectCount createdAt }\n projects { id name description status priority startDate endDate progress budget spent teamId teamName managerId managerName tasks completedTasks }\n leaveRequests { id employeeId employeeName department type startDate endDate days status reason approverName }\n timeEntries { id employeeId employeeName date clockIn clockOut totalHours overtime project status billable }\n vendors { id name category contactPerson email phone status contractValue rating }\n clients { id name industry contactPerson email phone status revenue projects since }\n }\n }\n", r = "\n query CrewPayrollRecords {\n crewPayrollRecords { id employeeId employeeName department period grossPay deductions netPay status payDate paymentMethod }\n }\n", i = "\n query CrewfoundryWorkspaceBootstrapWithOverlap(\n $workspaceId: ID!\n $projectPagination: PaginationInput\n $groupFirst: Int\n $conversationFirst: Int\n ) {\n crewfoundryBootstrap {\n employees { id firstName lastName email department position status type salary startDate avatar location managerId phone performanceScore skills terminationDate }\n departments { id name headId headName employeeCount budget location status }\n jobPostings { id title department location type experienceLevel salaryMin salaryMax status applicants postedDate deadline description requirements benefits }\n candidates { id firstName lastName email phone position status appliedDate resumeUrl rating source experience skills currentCompany notes hiredDate }\n interviews { id candidateId candidateName position interviewerName date time type status feedback rating }\n announcements { id title content author authorRole category priority isPinned createdAt viewCount tags }\n teams { id name description leadId leadName members memberCount department status projectCount createdAt }\n projects { id name description status priority startDate endDate progress budget spent teamId teamName managerId managerName tasks completedTasks }\n leaveRequests { id employeeId employeeName department type startDate endDate days status reason approverName }\n timeEntries { id employeeId employeeName date clockIn clockOut totalHours overtime project status billable }\n vendors { id name category contactPerson email phone status contractValue rating }\n clients { id name industry contactPerson email phone status revenue projects since }\n }\n projects(filter: { workspaceId: $workspaceId }, pagination: $projectPagination) {\n items {\n id\n name\n key\n creatorId\n status\n config\n archived\n createdAt\n updatedAt\n }\n }\n groups(first: $groupFirst) {\n edges {\n node {\n id\n name\n description\n groupType\n status\n memberCount\n ownerId\n createdAt\n }\n }\n }\n conversations(first: $conversationFirst) {\n edges {\n node {\n id\n title\n description\n state\n unreadCount\n memberCount\n updatedAt\n }\n }\n }\n }\n", a = "mutation CreateCrewEmployee($input: CreateCrewEmployeeInput!) { createCrewEmployee(input: $input) { id firstName lastName email department position status type salary startDate avatar location managerId phone performanceScore skills terminationDate } }", o = "mutation UpdateCrewEmployee($id: ID!, $input: UpdateCrewEmployeeInput!) { updateCrewEmployee(id: $id, input: $input) { id firstName lastName email department position status type salary startDate avatar location managerId phone performanceScore skills terminationDate } }", s = "mutation RemoveCrewEmployee($id: ID!) { removeCrewEmployee(id: $id) }", c = "mutation CreateCrewJobPosting($input: CreateCrewJobPostingInput!) { createCrewJobPosting(input: $input) { id title department location type experienceLevel salaryMin salaryMax status applicants postedDate deadline description requirements benefits } }", l = "mutation UpdateCrewJobPosting($id: ID!, $input: UpdateCrewJobPostingInput!) { updateCrewJobPosting(id: $id, input: $input) { id title department location type experienceLevel salaryMin salaryMax status applicants postedDate deadline description requirements benefits } }", u = "mutation CreateCrewCandidate($input: CreateCrewCandidateInput!) { createCrewCandidate(input: $input) { id firstName lastName email phone position status appliedDate resumeUrl rating source experience skills currentCompany notes hiredDate } }", d = "mutation UpdateCrewCandidate($id: ID!, $input: UpdateCrewCandidateInput!) { updateCrewCandidate(id: $id, input: $input) { id firstName lastName email phone position status appliedDate resumeUrl rating source experience skills currentCompany notes hiredDate } }", f = "mutation CreateCrewAnnouncement($input: CreateCrewAnnouncementInput!) { createCrewAnnouncement(input: $input) { id title content author authorRole category priority isPinned createdAt viewCount tags } }", p = "mutation CreateCrewLeaveRequest($input: CreateCrewLeaveRequestInput!) { createCrewLeaveRequest(input: $input) { id employeeId employeeName department type startDate endDate days status reason approverName } }", m = "mutation UpdateCrewLeaveRequest($id: ID!, $input: UpdateCrewLeaveRequestInput!) { updateCrewLeaveRequest(id: $id, input: $input) { id employeeId employeeName department type startDate endDate days status reason approverName } }", h = "mutation RemoveCrewJobPosting($id: ID!) { removeCrewJobPosting(id: $id) }", g = "mutation RemoveCrewCandidate($id: ID!) { removeCrewCandidate(id: $id) }", _ = "mutation UpdateCrewAnnouncement($id: ID!, $input: UpdateCrewAnnouncementInput!) { updateCrewAnnouncement(id: $id, input: $input) { id title content author authorRole category priority isPinned createdAt viewCount tags } }", v = "mutation RemoveCrewAnnouncement($id: ID!) { removeCrewAnnouncement(id: $id) }", y = "mutation CreateCrewInterview($input: CreateCrewInterviewInput!) { createCrewInterview(input: $input) { id candidateId candidateName position interviewerName date time type status feedback rating } }", b = "mutation UpdateCrewInterview($id: ID!, $input: UpdateCrewInterviewInput!) { updateCrewInterview(id: $id, input: $input) { id candidateId candidateName position interviewerName date time type status feedback rating } }", x = "mutation RemoveCrewInterview($id: ID!) { removeCrewInterview(id: $id) }", ee = "mutation CreateCrewVendor($input: CreateCrewVendorInput!) { createCrewVendor(input: $input) { id name category contactPerson email phone status contractValue rating } }", te = "mutation UpdateCrewVendor($id: ID!, $input: UpdateCrewVendorInput!) { updateCrewVendor(id: $id, input: $input) { id name category contactPerson email phone status contractValue rating } }", ne = "mutation RemoveCrewVendor($id: ID!) { removeCrewVendor(id: $id) }", re = "mutation CreateCrewClient($input: CreateCrewClientInput!) { createCrewClient(input: $input) { id name industry contactPerson email phone status revenue projects since } }", ie = "mutation UpdateCrewClient($id: ID!, $input: UpdateCrewClientInput!) { updateCrewClient(id: $id, input: $input) { id name industry contactPerson email phone status revenue projects since } }", ae = "mutation RemoveCrewClient($id: ID!) { removeCrewClient(id: $id) }", oe = "mutation CreateCrewTeam($input: CreateCrewTeamInput!) { createCrewTeam(input: $input) { id name description leadId leadName members memberCount department status projectCount createdAt } }", se = "mutation UpdateCrewTeam($id: ID!, $input: UpdateCrewTeamInput!) { updateCrewTeam(id: $id, input: $input) { id name description leadId leadName members memberCount department status projectCount createdAt } }", ce = "mutation RemoveCrewTeam($id: ID!) { removeCrewTeam(id: $id) }", le = "mutation CreateCrewProject($input: CreateCrewProjectInput!) { createCrewProject(input: $input) { id name description status priority startDate endDate progress budget spent teamId teamName managerId managerName tasks completedTasks } }", ue = "mutation UpdateCrewProject($id: ID!, $input: UpdateCrewProjectInput!) { updateCrewProject(id: $id, input: $input) { id name description status priority startDate endDate progress budget spent teamId teamName managerId managerName tasks completedTasks } }", de = "mutation RemoveCrewProject($id: ID!) { removeCrewProject(id: $id) }", fe = "mutation CreateCrewDepartment($input: CreateCrewDepartmentInput!) { createCrewDepartment(input: $input) { id name headId headName employeeCount budget location status } }", pe = "mutation UpdateCrewDepartment($id: ID!, $input: UpdateCrewDepartmentInput!) { updateCrewDepartment(id: $id, input: $input) { id name headId headName employeeCount budget location status } }", me = "mutation RemoveCrewDepartment($id: ID!) { removeCrewDepartment(id: $id) }", he = "mutation CreateCrewPayrollRecord($input: CreateCrewPayrollRecordInput!) { createCrewPayrollRecord(input: $input) { id employeeId employeeName department period grossPay deductions netPay status payDate paymentMethod } }", ge = "mutation UpdateCrewPayrollRecord($id: ID!, $input: UpdateCrewPayrollRecordInput!) { updateCrewPayrollRecord(id: $id, input: $input) { id employeeId employeeName department period grossPay deductions netPay status payDate paymentMethod } }", _e = "mutation RemoveCrewPayrollRecord($id: ID!) { removeCrewPayrollRecord(id: $id) }", S = "id country currency period payDate status employeeCount totalGrossPay totalNetPay calculatedAt approvedAt approvedBy notes", ve = `query CrewPayrollRuns { crewPayrollRuns { ${S} } }`, ye = `mutation CreateCrewPayrollRun($input: CreateCrewPayrollRunInput!) { createCrewPayrollRun(input: $input) { ${S} } }`, be = `mutation CalculateCrewPayrollRun($id: ID!) { calculateCrewPayrollRun(id: $id) { ${S} } }`, xe = `mutation ApproveCrewPayrollRun($id: ID!) { approveCrewPayrollRun(id: $id) { ${S} } }`, Se = "mutation RemoveCrewPayrollRun($id: ID!) { removeCrewPayrollRun(id: $id) }", Ce = "query CrewPayslips($filter: CrewPayslipFilterInput) { crewPayslips(filter: $filter) { id payrollRunId employeeId employeeName country currency period annualGrossSalary grossPay taxableIncome incomeTax employeeSocialContrib employerSocialContrib otherDeductions netPay incomeTaxBrackets { label rate bandFrom bandTo taxableInBand taxOnBand } employeeContributions { label rate base amount } employerContributions { label rate base amount } otherDeductionLines { label rate base amount } assumptions } }", we = "mutation CreateCrewTimeEntry($input: CreateCrewTimeEntryInput!) { createCrewTimeEntry(input: $input) { id employeeId employeeName date clockIn clockOut totalHours overtime project status billable } }", Te = "mutation UpdateCrewTimeEntry($id: ID!, $input: UpdateCrewTimeEntryInput!) { updateCrewTimeEntry(id: $id, input: $input) { id employeeId employeeName date clockIn clockOut totalHours overtime project status billable } }", Ee = "mutation RemoveCrewTimeEntry($id: ID!) { removeCrewTimeEntry(id: $id) }", De = "query CrewJobPostingMatches($jobPostingId: ID!, $filter: CrewCandidateMatchFilterInput, $limit: Int) { crewJobPostingMatches(jobPostingId: $jobPostingId, filter: $filter, limit: $limit) { candidateId jobPostingId score skillScore experienceScore matchedSkills missingSkills rationale candidate { id firstName lastName email phone position status appliedDate resumeUrl rating source experience skills currentCompany notes hiredDate } } }", C = "query CrewSkillsGap { crewSkillsGap { skill employeesWithSkill openJobsRequiringSkill shortage } }", w = "query EmployeeDocuments($employeeId: ID!) { employeeDocuments(employeeId: $employeeId) { id employeeId fileId title category uploadedBy uploadedAt } }", T = "mutation AttachEmployeeDocument($input: AttachCrewEmployeeDocumentInput!) { attachEmployeeDocument(input: $input) { id employeeId fileId title category uploadedBy uploadedAt } }", E = "mutation DetachEmployeeDocument($id: ID!) { detachEmployeeDocument(id: $id) }", Oe = "query CrewEmployeeSkillProfile($id: ID!) { crewEmployee(id: $id) { id skills skillProfile { id skillId proficiency verifiedFrom lastUsedAt skill { id name category source } } } }", ke = "mutation AttachCrewSkill($input: AttachCrewSkillInput!) { attachCrewSkill(input: $input) { id } }", Ae = "mutation DetachCrewSkill($employeeId: ID!, $skillId: ID!) { detachCrewSkill(employeeId: $employeeId, skillId: $skillId) }", je = "mutation EnsureFolderByPath($path: String!) { ensureFolderByPath(path: $path) { id } }", Me = "mutation InitiateUpload($input: InitiateUploadInput!) { initiateUpload(input: $input) { session { id } uploadUrl } }", Ne = "mutation CompleteUpload($input: CompleteUploadInput!) { completeUpload(input: $input) { file { id } } }", Pe = "query CrewOnboardings { crewOnboardings { id candidateId employeeId fullName position department startDate status currentStage createdAt totalTaskCount completedTaskCount progressPercent tasks { id onboardingId stage title assigneeActorId assigneeName dueDate completedAt sortOrder } } }", Fe = "mutation CreateCrewOnboarding($input: CreateCrewOnboardingInput!) { createCrewOnboarding(input: $input) { id candidateId employeeId fullName position department startDate status currentStage createdAt totalTaskCount completedTaskCount progressPercent tasks { id onboardingId stage title assigneeActorId assigneeName dueDate completedAt sortOrder } } }", Ie = "mutation UpdateCrewOnboarding($id: ID!, $input: UpdateCrewOnboardingInput!) { updateCrewOnboarding(id: $id, input: $input) { id candidateId employeeId fullName position department startDate status currentStage createdAt totalTaskCount completedTaskCount progressPercent tasks { id onboardingId stage title assigneeActorId assigneeName dueDate completedAt sortOrder } } }", Le = "mutation RemoveCrewOnboarding($id: ID!) { removeCrewOnboarding(id: $id) }", Re = "mutation CreateCrewOnboardingTask($input: CreateCrewOnboardingTaskInput!) { createCrewOnboardingTask(input: $input) { id onboardingId stage title assigneeActorId assigneeName dueDate completedAt sortOrder } }", ze = "mutation UpdateCrewOnboardingTask($id: ID!, $input: UpdateCrewOnboardingTaskInput!) { updateCrewOnboardingTask(id: $id, input: $input) { id onboardingId stage title assigneeActorId assigneeName dueDate completedAt sortOrder } }", Be = "mutation RemoveCrewOnboardingTask($id: ID!) { removeCrewOnboardingTask(id: $id) }", Ve = "mutation ToggleCrewOnboardingTask($id: ID!, $completed: Boolean!) { toggleCrewOnboardingTask(id: $id, completed: $completed) { id onboardingId stage title assigneeActorId assigneeName dueDate completedAt sortOrder } }", D = "id title description contentUrl durationMinutes isActive requiredForRoles createdAt updatedAt", O = "id courseId courseTitle employeeId employeeName status startedAt completedAt createdAt updatedAt", He = `query CrewLearning($coursePage: PaginationInput, $enrollmentPage: PaginationInput) { crewTrainingCourses(pagination: $coursePage) { ${D} } crewEnrollments(pagination: $enrollmentPage) { ${O} } crewTrainingCompletionDashboard { courseId courseTitle totalEnrolled notStartedCount inProgressCount completedCount completionRate } }`, Ue = `query CrewTrainingCourses($pagination: PaginationInput) { crewTrainingCourses(pagination: $pagination) { ${D} } }`, We = `query CrewEnrollments($pagination: PaginationInput) { crewEnrollments(pagination: $pagination) { ${O} } }`, Ge = "query CrewTrainingCompletionDashboard { crewTrainingCompletionDashboard { courseId courseTitle totalEnrolled notStartedCount inProgressCount completedCount completionRate } }", Ke = `mutation CreateCrewTrainingCourse($input: CreateCrewTrainingCourseInput!) { createCrewTrainingCourse(input: $input) { ${D} } }`, qe = `mutation UpdateCrewTrainingCourse($id: ID!, $input: UpdateCrewTrainingCourseInput!) { updateCrewTrainingCourse(id: $id, input: $input) { ${D} } }`, Je = "mutation RemoveCrewTrainingCourse($id: ID!) { removeCrewTrainingCourse(id: $id) }", Ye = `mutation CreateCrewEnrollment($input: CreateCrewEnrollmentInput!) { createCrewEnrollment(input: $input) { ${O} } }`, Xe = `mutation UpdateCrewEnrollmentStatus($id: ID!, $status: String!) { updateCrewEnrollmentStatus(id: $id, status: $status) { ${O} } }`, Ze = "mutation RemoveCrewEnrollment($id: ID!) { removeCrewEnrollment(id: $id) }", k = "id title description category providerActorId providerName rate rateUnit currency status createdAt updatedAt", A = "id listingId listingTitle providerActorId providerName clientActorId clientName status rate rateUnit currency notes scheduledStart scheduledEnd cancelledReason createdAt updatedAt", j = "id bookingId amount currency releaseCondition status heldAt releasedAt releasedBy notes createdAt updatedAt", Qe = `query CrewServiceListings($pagination: PaginationInput) { crewServiceListings(pagination: $pagination) { ${k} } }`, $e = `query CrewBookings($pagination: PaginationInput) { crewBookings(pagination: $pagination) { ${A} } }`, et = `query CrewEscrowRecords($pagination: PaginationInput) { crewEscrowRecords(pagination: $pagination) { ${j} } }`, tt = `mutation CreateCrewServiceListing($input: CreateCrewServiceListingInput!) { createCrewServiceListing(input: $input) { ${k} } }`, nt = `mutation UpdateMyServiceListing($id: ID!, $input: UpdateCrewServiceListingInput!) { updateMyServiceListing(id: $id, input: $input) { ${k} } }`, rt = "mutation RemoveMyServiceListing($id: ID!) { removeMyServiceListing(id: $id) }", it = `mutation CreateCrewBooking($input: CreateCrewBookingInput!) { createCrewBooking(input: $input) { ${A} } }`, at = `mutation UpdateMyBookingStatus($id: ID!, $status: String!) { updateMyBookingStatus(id: $id, status: $status) { ${A} } }`, ot = `mutation ReleaseCrewEscrowRecord($id: ID!) { releaseCrewEscrowRecord(id: $id) { ${j} } }`, st = `mutation CancelCrewEscrowRecord($id: ID!) { cancelCrewEscrowRecord(id: $id) { ${j} } }`, M = 100, ct = 10, N = (e) => e.toUpperCase().replaceAll("-", "_"), P = {
5
5
  employee: ["status", "type"],
6
6
  department: ["status"],
7
7
  jobPosting: [
@@ -26,7 +26,7 @@ var n = "\n query CrewfoundryBootstrap {\n crewfoundryBootstrap {\n emp
26
26
  client: ["status"],
27
27
  onboarding: ["status", "currentStage"],
28
28
  onboardingTask: ["stage"]
29
- }, I = (e, t) => {
29
+ }, F = (e, t) => {
30
30
  if (!e || typeof e != "object") return e;
31
31
  let n = { ...e };
32
32
  for (let e of t) {
@@ -34,25 +34,25 @@ var n = "\n query CrewfoundryBootstrap {\n crewfoundryBootstrap {\n emp
34
34
  typeof t == "string" && (n[e] = t.toLowerCase());
35
35
  }
36
36
  return n;
37
- }, L = (e) => ({
38
- ...I(e, F.onboarding),
39
- tasks: (e.tasks ?? []).map((e) => I(e, F.onboardingTask))
40
- }), R = (e) => e ? e.slice(0, 10) : "TBD", at = (e) => !e || typeof e != "object" || Array.isArray(e) ? null : e, z = (e) => typeof e == "number" ? e : null, B = (e) => typeof e == "string" ? e : null, ot = (e) => {
37
+ }, I = (e) => ({
38
+ ...F(e, P.onboarding),
39
+ tasks: (e.tasks ?? []).map((e) => F(e, P.onboardingTask))
40
+ }), L = (e) => e ? e.slice(0, 10) : "TBD", lt = (e) => !e || typeof e != "object" || Array.isArray(e) ? null : e, R = (e) => typeof e == "number" ? e : null, z = (e) => typeof e == "string" ? e : null, ut = (e) => {
41
41
  let t = e.toLowerCase();
42
42
  return t === "active" ? "active" : t === "completed" ? "completed" : t === "cancelled" ? "cancelled" : t === "archived" ? "on_hold" : "planning";
43
- }, st = (e) => {
43
+ }, dt = (e) => {
44
44
  let t = e.toLowerCase();
45
45
  return t === "active" ? "active" : t === "inactive" || t === "archived" || t === "deleted" ? "disbanded" : "forming";
46
- }, ct = (e, t) => e.map((e, n) => {
47
- let r = at(e.config), i = z(r?.budget) ?? 25e3 + n * 2500, a = z(r?.spent) ?? Math.round(i * (e.status === "COMPLETED" ? 1 : .62)), o = z(r?.progress) ?? (e.status === "COMPLETED" ? 100 : 58), s = z(r?.tasks) ?? 20 + n % 9, c = z(r?.completedTasks) ?? Math.round(o / 100 * s), l = t[n % Math.max(t.length, 1)];
46
+ }, ft = (e, t) => e.map((e, n) => {
47
+ let r = lt(e.config), i = R(r?.budget) ?? 25e3 + n * 2500, a = R(r?.spent) ?? Math.round(i * (e.status === "COMPLETED" ? 1 : .62)), o = R(r?.progress) ?? (e.status === "COMPLETED" ? 100 : 58), s = R(r?.tasks) ?? 20 + n % 9, c = R(r?.completedTasks) ?? Math.round(o / 100 * s), l = t[n % Math.max(t.length, 1)];
48
48
  return {
49
49
  id: e.id,
50
50
  name: e.name,
51
- description: B(r?.description) || `${e.key} delivery plan`,
52
- status: ot(e.status),
53
- priority: B(r?.priority)?.toLowerCase() || "medium",
54
- startDate: R(e.createdAt),
55
- endDate: R(e.updatedAt),
51
+ description: z(r?.description) || `${e.key} delivery plan`,
52
+ status: ut(e.status),
53
+ priority: z(r?.priority)?.toLowerCase() || "medium",
54
+ startDate: L(e.createdAt),
55
+ endDate: L(e.updatedAt),
56
56
  progress: o,
57
57
  budget: i,
58
58
  spent: a,
@@ -63,7 +63,7 @@ var n = "\n query CrewfoundryBootstrap {\n crewfoundryBootstrap {\n emp
63
63
  tasks: s,
64
64
  completedTasks: c
65
65
  };
66
- }), lt = (e) => e.map(({ node: e }) => ({
66
+ }), pt = (e) => e.map(({ node: e }) => ({
67
67
  id: e.id,
68
68
  name: e.name,
69
69
  description: e.description || `${e.name} team workspace`,
@@ -72,10 +72,10 @@ var n = "\n query CrewfoundryBootstrap {\n crewfoundryBootstrap {\n emp
72
72
  members: [],
73
73
  memberCount: e.memberCount,
74
74
  department: e.groupType?.toLowerCase().replaceAll("_", " ") || "operations",
75
- status: st(e.status),
75
+ status: dt(e.status),
76
76
  projectCount: 0,
77
- createdAt: R(e.createdAt)
78
- })), V = "/conversations", ut = (e) => e.filter(({ node: e }) => e.unreadCount > 0).map(({ node: e }) => ({
77
+ createdAt: L(e.createdAt)
78
+ })), B = "/conversations", V = (e) => e.filter(({ node: e }) => e.unreadCount > 0).map(({ node: e }) => ({
79
79
  id: `conversation-${e.id}`,
80
80
  title: e.title || "Conversation update",
81
81
  message: `${e.unreadCount} unread in ${e.memberCount}-member channel`,
@@ -83,12 +83,12 @@ var n = "\n query CrewfoundryBootstrap {\n crewfoundryBootstrap {\n emp
83
83
  category: "communications",
84
84
  read: !1,
85
85
  createdAt: e.updatedAt,
86
- actionUrl: V
87
- })), dt = (e, t) => {
86
+ actionUrl: B
87
+ })), mt = (e, t) => {
88
88
  if (e.errors?.length) throw Error(e.errors[0]?.message || t);
89
89
  if (!e.data) throw Error(t);
90
90
  return e.data;
91
- }, ft = new Set([
91
+ }, ht = new Set([
92
92
  "id",
93
93
  "createdAt",
94
94
  "createdOn",
@@ -110,44 +110,44 @@ var n = "\n query CrewfoundryBootstrap {\n crewfoundryBootstrap {\n emp
110
110
  "viewCount",
111
111
  "revenue",
112
112
  "projects"
113
- ]), pt = (e) => {
113
+ ]), gt = (e) => {
114
114
  if (!e) return e;
115
115
  let t = e.input;
116
116
  if (!t || typeof t != "object" || Array.isArray(t)) return e;
117
117
  let n = {};
118
- for (let [e, r] of Object.entries(t)) ft.has(e) || (n[e] = r);
118
+ for (let [e, r] of Object.entries(t)) ht.has(e) || (n[e] = r);
119
119
  return {
120
120
  ...e,
121
121
  input: n
122
122
  };
123
- }, H = async (e, n, r, i, a = "workspace") => dt(await t({
123
+ }, H = async (e, n, r, i, a = "workspace") => mt(await t({
124
124
  gateway: a,
125
125
  query: e,
126
- variables: pt(n),
126
+ variables: gt(n),
127
127
  authToken: r.authToken,
128
128
  baseUrl: a === "workspace" ? r.apiGatewayUrl : void 0,
129
129
  extraHeaders: { ...a === "workspace" && r.workspaceId ? { "x-workspace-id": r.workspaceId } : {} }
130
- }), i), mt = () => !1, U = async (e, t, n, r, i = "workspace") => {
130
+ }), i), _t = () => !1, U = async (e, t, n, r, i = "workspace") => {
131
131
  try {
132
132
  return await H(e, t, n, r, i);
133
133
  } catch (e) {
134
- return mt() && console.warn(`[crewfoundry] overlap query skipped: ${r}`, e), null;
134
+ return _t() && console.warn(`[crewfoundry] overlap query skipped: ${r}`, e), null;
135
135
  }
136
136
  }, W = async (e, t, n, r, i) => {
137
137
  let a = i ? [...i] : [];
138
- if (i && i.length < N) return a;
139
- for (let o = +!!i; o < it; o += 1) {
138
+ if (i && i.length < M) return a;
139
+ for (let o = +!!i; o < ct; o += 1) {
140
140
  let i = (await H(e, { pagination: {
141
- limit: N,
142
- offset: o * N
141
+ limit: M,
142
+ offset: o * M
143
143
  } }, n, r))[t] ?? [];
144
- if (a.push(...i), i.length < N) break;
144
+ if (a.push(...i), i.length < M) break;
145
145
  }
146
146
  return a;
147
147
  }, G = {
148
148
  learning: 0,
149
149
  marketplace: 0
150
- }, K = 3, q = (e) => I(e, F.enrollment), J = (e) => I(e, F.serviceListing), Y = (e) => I(e, F.booking), X = (e) => I(e, F.escrow), Z = (e, t) => e.map((e) => e.id === t.id ? t : e), Q = async (e) => (await U(He, void 0, e, "Unable to load training completion"))?.crewTrainingCompletionDashboard ?? null, $ = e((e) => ({
150
+ }, K = 3, q = (e) => F(e, P.enrollment), J = (e) => F(e, P.serviceListing), Y = (e) => F(e, P.booking), X = (e) => F(e, P.escrow), Z = (e, t) => e.map((e) => e.id === t.id ? t : e), Q = async (e) => (await U(Ge, void 0, e, "Unable to load training completion"))?.crewTrainingCompletionDashboard ?? null, $ = e((e) => ({
151
151
  metrics: [
152
152
  {
153
153
  label: "Total Employees",
@@ -220,6 +220,7 @@ var n = "\n query CrewfoundryBootstrap {\n crewfoundryBootstrap {\n emp
220
220
  vendors: [],
221
221
  clients: [],
222
222
  employeeDocuments: [],
223
+ employeeSkillProfiles: {},
223
224
  onboardings: [],
224
225
  onboardingsLoaded: !1,
225
226
  jobPostingMatches: {},
@@ -257,7 +258,7 @@ var n = "\n query CrewfoundryBootstrap {\n crewfoundryBootstrap {\n emp
257
258
  },
258
259
  groupFirst: 30,
259
260
  conversationFirst: 30
260
- }, t, "Unable to load workspace bootstrap with overlap data"), U(r, void 0, t, "Unable to load payroll records")]), s = a ? a.crewfoundryBootstrap : (await H(n, void 0, t, "Unable to load CrewFoundry data")).crewfoundryBootstrap, c = a ? lt(a.groups.edges) : [], l = a ? ct(a.projects.items, c) : [], u = a ? ut(a.conversations.edges) : [], d = c.length > 0 ? c : s.teams, f = l.length > 0 ? l : s.projects, p = u, m = s.employees.map((e) => I(e, F.employee)), h = s.departments.map((e) => I(e, F.department)), g = s.jobPostings.map((e) => I(e, F.jobPosting)), _ = s.candidates.map((e) => I(e, F.candidate)), v = s.interviews.map((e) => I(e, F.interview)), y = s.announcements.map((e) => I(e, F.announcement)), b = d.map((e) => I(e, F.team)), x = f.map((e) => I(e, F.project));
261
+ }, t, "Unable to load workspace bootstrap with overlap data"), U(r, void 0, t, "Unable to load payroll records")]), s = a ? a.crewfoundryBootstrap : (await H(n, void 0, t, "Unable to load CrewFoundry data")).crewfoundryBootstrap, c = a ? pt(a.groups.edges) : [], l = a ? ft(a.projects.items, c) : [], u = a ? V(a.conversations.edges) : [], d = c.length > 0 ? c : s.teams, f = l.length > 0 ? l : s.projects, p = u, m = s.employees.map((e) => F(e, P.employee)), h = s.departments.map((e) => F(e, P.department)), g = s.jobPostings.map((e) => F(e, P.jobPosting)), _ = s.candidates.map((e) => F(e, P.candidate)), v = s.interviews.map((e) => F(e, P.interview)), y = s.announcements.map((e) => F(e, P.announcement)), b = d.map((e) => F(e, P.team)), x = f.map((e) => F(e, P.project));
261
262
  e({
262
263
  employees: m,
263
264
  departments: h,
@@ -267,12 +268,12 @@ var n = "\n query CrewfoundryBootstrap {\n crewfoundryBootstrap {\n emp
267
268
  announcements: y,
268
269
  teams: b,
269
270
  projects: x,
270
- payrollRecords: (o?.crewPayrollRecords ?? []).map((e) => I(e, F.payrollRecord)),
271
- leaveRequests: s.leaveRequests.map((e) => I(e, F.leaveRequest)),
272
- timeEntries: s.timeEntries.map((e) => I(e, F.timeEntry)),
273
- notifications: p.map((e) => I(e, F.notification)),
274
- vendors: s.vendors.map((e) => I(e, F.vendor)),
275
- clients: s.clients.map((e) => I(e, F.client)),
271
+ payrollRecords: (o?.crewPayrollRecords ?? []).map((e) => F(e, P.payrollRecord)),
272
+ leaveRequests: s.leaveRequests.map((e) => F(e, P.leaveRequest)),
273
+ timeEntries: s.timeEntries.map((e) => F(e, P.timeEntry)),
274
+ notifications: p.map((e) => F(e, P.notification)),
275
+ vendors: s.vendors.map((e) => F(e, P.vendor)),
276
+ clients: s.clients.map((e) => F(e, P.client)),
276
277
  metrics: [
277
278
  {
278
279
  label: "Total Employees",
@@ -311,21 +312,21 @@ var n = "\n query CrewfoundryBootstrap {\n crewfoundryBootstrap {\n emp
311
312
  addEmployee: async (t) => {
312
313
  let n = $.getState().initParams, r = await H(a, { input: {
313
314
  ...t,
314
- status: P(t.status),
315
- type: P(t.type)
315
+ status: N(t.status),
316
+ type: N(t.type)
316
317
  } }, n, "Unable to create employee");
317
- e((e) => ({ employees: [I(r.createCrewEmployee, F.employee), ...e.employees] }));
318
+ e((e) => ({ employees: [F(r.createCrewEmployee, P.employee), ...e.employees] }));
318
319
  },
319
320
  updateEmployee: async (t, n) => {
320
321
  let r = $.getState().initParams, i = await H(o, {
321
322
  id: t,
322
323
  input: {
323
324
  ...n,
324
- ...n.status ? { status: P(n.status) } : {},
325
- ...n.type ? { type: P(n.type) } : {}
325
+ ...n.status ? { status: N(n.status) } : {},
326
+ ...n.type ? { type: N(n.type) } : {}
326
327
  }
327
328
  }, r, "Unable to update employee");
328
- e((e) => ({ employees: e.employees.map((e) => e.id === t ? I(i.updateCrewEmployee, F.employee) : e) }));
329
+ e((e) => ({ employees: e.employees.map((e) => e.id === t ? F(i.updateCrewEmployee, P.employee) : e) }));
329
330
  },
330
331
  removeEmployee: async (t) => {
331
332
  let n = $.getState().initParams;
@@ -334,59 +335,59 @@ var n = "\n query CrewfoundryBootstrap {\n crewfoundryBootstrap {\n emp
334
335
  addJobPosting: async (t) => {
335
336
  let n = $.getState().initParams, r = await H(c, { input: {
336
337
  ...t,
337
- status: P(t.status)
338
+ status: N(t.status)
338
339
  } }, n, "Unable to create job posting");
339
- e((e) => ({ jobPostings: [I(r.createCrewJobPosting, F.jobPosting), ...e.jobPostings] }));
340
+ e((e) => ({ jobPostings: [F(r.createCrewJobPosting, P.jobPosting), ...e.jobPostings] }));
340
341
  },
341
342
  updateJobPosting: async (t, n) => {
342
343
  let r = $.getState().initParams, i = await H(l, {
343
344
  id: t,
344
345
  input: {
345
346
  ...n,
346
- ...n.status ? { status: P(n.status) } : {}
347
+ ...n.status ? { status: N(n.status) } : {}
347
348
  }
348
349
  }, r, "Unable to update job posting");
349
- e((e) => ({ jobPostings: e.jobPostings.map((e) => e.id === t ? I(i.updateCrewJobPosting, F.jobPosting) : e) }));
350
+ e((e) => ({ jobPostings: e.jobPostings.map((e) => e.id === t ? F(i.updateCrewJobPosting, P.jobPosting) : e) }));
350
351
  },
351
352
  addCandidate: async (t) => {
352
353
  let n = $.getState().initParams, r = await H(u, { input: {
353
354
  ...t,
354
- status: P(t.status)
355
+ status: N(t.status)
355
356
  } }, n, "Unable to create candidate");
356
- e((e) => ({ candidates: [I(r.createCrewCandidate, F.candidate), ...e.candidates] }));
357
+ e((e) => ({ candidates: [F(r.createCrewCandidate, P.candidate), ...e.candidates] }));
357
358
  },
358
359
  updateCandidate: async (t, n) => {
359
360
  let r = $.getState().initParams, i = await H(d, {
360
361
  id: t,
361
362
  input: {
362
363
  ...n,
363
- ...n.status ? { status: P(n.status) } : {}
364
+ ...n.status ? { status: N(n.status) } : {}
364
365
  }
365
366
  }, r, "Unable to update candidate");
366
- e((e) => ({ candidates: e.candidates.map((e) => e.id === t ? I(i.updateCrewCandidate, F.candidate) : e) }));
367
+ e((e) => ({ candidates: e.candidates.map((e) => e.id === t ? F(i.updateCrewCandidate, P.candidate) : e) }));
367
368
  },
368
369
  addAnnouncement: async (t) => {
369
370
  let n = $.getState().initParams, r = await H(f, { input: t }, n, "Unable to create announcement");
370
- e((e) => ({ announcements: [I(r.createCrewAnnouncement, F.announcement), ...e.announcements] }));
371
+ e((e) => ({ announcements: [F(r.createCrewAnnouncement, P.announcement), ...e.announcements] }));
371
372
  },
372
373
  addLeaveRequest: async (t) => {
373
374
  let n = $.getState().initParams, r = await H(p, { input: {
374
375
  ...t,
375
- type: P(t.type),
376
- status: P(t.status)
376
+ type: N(t.type),
377
+ status: N(t.status)
377
378
  } }, n, "Unable to create leave request");
378
- e((e) => ({ leaveRequests: [I(r.createCrewLeaveRequest, F.leaveRequest), ...e.leaveRequests] }));
379
+ e((e) => ({ leaveRequests: [F(r.createCrewLeaveRequest, P.leaveRequest), ...e.leaveRequests] }));
379
380
  },
380
381
  updateLeaveRequest: async (t, n) => {
381
382
  let r = $.getState().initParams, i = await H(m, {
382
383
  id: t,
383
384
  input: {
384
385
  ...n,
385
- ...n.type ? { type: P(n.type) } : {},
386
- ...n.status ? { status: P(n.status) } : {}
386
+ ...n.type ? { type: N(n.type) } : {},
387
+ ...n.status ? { status: N(n.status) } : {}
387
388
  }
388
389
  }, r, "Unable to update leave request");
389
- e((e) => ({ leaveRequests: e.leaveRequests.map((e) => e.id === t ? I(i.updateCrewLeaveRequest, F.leaveRequest) : e) }));
390
+ e((e) => ({ leaveRequests: e.leaveRequests.map((e) => e.id === t ? F(i.updateCrewLeaveRequest, P.leaveRequest) : e) }));
390
391
  },
391
392
  markNotificationRead: async (t) => {
392
393
  e((e) => ({ notifications: e.notifications.map((e) => e.id === t ? {
@@ -413,7 +414,7 @@ var n = "\n query CrewfoundryBootstrap {\n crewfoundryBootstrap {\n emp
413
414
  id: t,
414
415
  input: n
415
416
  }, r, "Unable to update announcement");
416
- e((e) => ({ announcements: e.announcements.map((e) => e.id === t ? I(i.updateCrewAnnouncement, F.announcement) : e) }));
417
+ e((e) => ({ announcements: e.announcements.map((e) => e.id === t ? F(i.updateCrewAnnouncement, P.announcement) : e) }));
417
418
  },
418
419
  removeAnnouncement: async (t) => {
419
420
  let n = $.getState().initParams;
@@ -422,21 +423,21 @@ var n = "\n query CrewfoundryBootstrap {\n crewfoundryBootstrap {\n emp
422
423
  addInterview: async (t) => {
423
424
  let n = $.getState().initParams, r = await H(y, { input: {
424
425
  ...t,
425
- type: P(t.type),
426
- status: P(t.status)
426
+ type: N(t.type),
427
+ status: N(t.status)
427
428
  } }, n, "Unable to schedule interview");
428
- e((e) => ({ interviews: [I(r.createCrewInterview, F.interview), ...e.interviews] }));
429
+ e((e) => ({ interviews: [F(r.createCrewInterview, P.interview), ...e.interviews] }));
429
430
  },
430
431
  updateInterview: async (t, n) => {
431
432
  let r = $.getState().initParams, i = await H(b, {
432
433
  id: t,
433
434
  input: {
434
435
  ...n,
435
- ...n.type ? { type: P(n.type) } : {},
436
- ...n.status ? { status: P(n.status) } : {}
436
+ ...n.type ? { type: N(n.type) } : {},
437
+ ...n.status ? { status: N(n.status) } : {}
437
438
  }
438
439
  }, r, "Unable to update interview");
439
- e((e) => ({ interviews: e.interviews.map((e) => e.id === t ? I(i.updateCrewInterview, F.interview) : e) }));
440
+ e((e) => ({ interviews: e.interviews.map((e) => e.id === t ? F(i.updateCrewInterview, P.interview) : e) }));
440
441
  },
441
442
  removeInterview: async (t) => {
442
443
  let n = $.getState().initParams;
@@ -445,19 +446,19 @@ var n = "\n query CrewfoundryBootstrap {\n crewfoundryBootstrap {\n emp
445
446
  addVendor: async (t) => {
446
447
  let n = $.getState().initParams, r = await H(ee, { input: {
447
448
  ...t,
448
- status: P(t.status)
449
+ status: N(t.status)
449
450
  } }, n, "Unable to create vendor");
450
- e((e) => ({ vendors: [I(r.createCrewVendor, F.vendor), ...e.vendors] }));
451
+ e((e) => ({ vendors: [F(r.createCrewVendor, P.vendor), ...e.vendors] }));
451
452
  },
452
453
  updateVendor: async (t, n) => {
453
454
  let r = $.getState().initParams, i = await H(te, {
454
455
  id: t,
455
456
  input: {
456
457
  ...n,
457
- ...n.status ? { status: P(n.status) } : {}
458
+ ...n.status ? { status: N(n.status) } : {}
458
459
  }
459
460
  }, r, "Unable to update vendor");
460
- e((e) => ({ vendors: e.vendors.map((e) => e.id === t ? I(i.updateCrewVendor, F.vendor) : e) }));
461
+ e((e) => ({ vendors: e.vendors.map((e) => e.id === t ? F(i.updateCrewVendor, P.vendor) : e) }));
461
462
  },
462
463
  removeVendor: async (t) => {
463
464
  let n = $.getState().initParams;
@@ -466,19 +467,19 @@ var n = "\n query CrewfoundryBootstrap {\n crewfoundryBootstrap {\n emp
466
467
  addClient: async (t) => {
467
468
  let n = $.getState().initParams, r = await H(re, { input: {
468
469
  ...t,
469
- status: P(t.status)
470
+ status: N(t.status)
470
471
  } }, n, "Unable to create client");
471
- e((e) => ({ clients: [I(r.createCrewClient, F.client), ...e.clients] }));
472
+ e((e) => ({ clients: [F(r.createCrewClient, P.client), ...e.clients] }));
472
473
  },
473
474
  updateClient: async (t, n) => {
474
475
  let r = $.getState().initParams, i = await H(ie, {
475
476
  id: t,
476
477
  input: {
477
478
  ...n,
478
- ...n.status ? { status: P(n.status) } : {}
479
+ ...n.status ? { status: N(n.status) } : {}
479
480
  }
480
481
  }, r, "Unable to update client");
481
- e((e) => ({ clients: e.clients.map((e) => e.id === t ? I(i.updateCrewClient, F.client) : e) }));
482
+ e((e) => ({ clients: e.clients.map((e) => e.id === t ? F(i.updateCrewClient, P.client) : e) }));
482
483
  },
483
484
  removeClient: async (t) => {
484
485
  let n = $.getState().initParams;
@@ -486,14 +487,14 @@ var n = "\n query CrewfoundryBootstrap {\n crewfoundryBootstrap {\n emp
486
487
  },
487
488
  addTeam: async (t) => {
488
489
  let n = $.getState().initParams, r = await H(oe, { input: t }, n, "Unable to create team");
489
- e((e) => ({ teams: [I(r.createCrewTeam, F.team), ...e.teams] }));
490
+ e((e) => ({ teams: [F(r.createCrewTeam, P.team), ...e.teams] }));
490
491
  },
491
492
  updateTeam: async (t, n) => {
492
493
  let r = $.getState().initParams, i = await H(se, {
493
494
  id: t,
494
495
  input: n
495
496
  }, r, "Unable to update team");
496
- e((e) => ({ teams: e.teams.map((e) => e.id === t ? I(i.updateCrewTeam, F.team) : e) }));
497
+ e((e) => ({ teams: e.teams.map((e) => e.id === t ? F(i.updateCrewTeam, P.team) : e) }));
497
498
  },
498
499
  removeTeam: async (t) => {
499
500
  let n = $.getState().initParams;
@@ -502,21 +503,21 @@ var n = "\n query CrewfoundryBootstrap {\n crewfoundryBootstrap {\n emp
502
503
  addProject: async (t) => {
503
504
  let n = $.getState().initParams, r = await H(le, { input: {
504
505
  ...t,
505
- status: P(t.status),
506
- priority: P(t.priority)
506
+ status: N(t.status),
507
+ priority: N(t.priority)
507
508
  } }, n, "Unable to create project");
508
- e((e) => ({ projects: [I(r.createCrewProject, F.project), ...e.projects] }));
509
+ e((e) => ({ projects: [F(r.createCrewProject, P.project), ...e.projects] }));
509
510
  },
510
511
  updateProject: async (t, n) => {
511
512
  let r = $.getState().initParams, i = await H(ue, {
512
513
  id: t,
513
514
  input: {
514
515
  ...n,
515
- ...n.status ? { status: P(n.status) } : {},
516
- ...n.priority ? { priority: P(n.priority) } : {}
516
+ ...n.status ? { status: N(n.status) } : {},
517
+ ...n.priority ? { priority: N(n.priority) } : {}
517
518
  }
518
519
  }, r, "Unable to update project");
519
- e((e) => ({ projects: e.projects.map((e) => e.id === t ? I(i.updateCrewProject, F.project) : e) }));
520
+ e((e) => ({ projects: e.projects.map((e) => e.id === t ? F(i.updateCrewProject, P.project) : e) }));
520
521
  },
521
522
  removeProject: async (t) => {
522
523
  let n = $.getState().initParams;
@@ -524,14 +525,14 @@ var n = "\n query CrewfoundryBootstrap {\n crewfoundryBootstrap {\n emp
524
525
  },
525
526
  addDepartment: async (t) => {
526
527
  let n = $.getState().initParams, r = await H(fe, { input: t }, n, "Unable to create department");
527
- e((e) => ({ departments: [I(r.createCrewDepartment, F.department), ...e.departments] }));
528
+ e((e) => ({ departments: [F(r.createCrewDepartment, P.department), ...e.departments] }));
528
529
  },
529
530
  updateDepartment: async (t, n) => {
530
531
  let r = $.getState().initParams, i = await H(pe, {
531
532
  id: t,
532
533
  input: n
533
534
  }, r, "Unable to update department");
534
- e((e) => ({ departments: e.departments.map((e) => e.id === t ? I(i.updateCrewDepartment, F.department) : e) }));
535
+ e((e) => ({ departments: e.departments.map((e) => e.id === t ? F(i.updateCrewDepartment, P.department) : e) }));
535
536
  },
536
537
  removeDepartment: async (t) => {
537
538
  let n = $.getState().initParams;
@@ -540,19 +541,19 @@ var n = "\n query CrewfoundryBootstrap {\n crewfoundryBootstrap {\n emp
540
541
  addPayrollRecord: async (t) => {
541
542
  let n = $.getState().initParams, r = await H(he, { input: {
542
543
  ...t,
543
- status: P(t.status)
544
+ status: N(t.status)
544
545
  } }, n, "Unable to create payroll record");
545
- e((e) => ({ payrollRecords: [I(r.createCrewPayrollRecord, F.payrollRecord), ...e.payrollRecords] }));
546
+ e((e) => ({ payrollRecords: [F(r.createCrewPayrollRecord, P.payrollRecord), ...e.payrollRecords] }));
546
547
  },
547
548
  updatePayrollRecord: async (t, n) => {
548
549
  let r = $.getState().initParams, i = await H(ge, {
549
550
  id: t,
550
551
  input: {
551
552
  ...n,
552
- ...n.status ? { status: P(n.status) } : {}
553
+ ...n.status ? { status: N(n.status) } : {}
553
554
  }
554
555
  }, r, "Unable to update payroll record");
555
- e((e) => ({ payrollRecords: e.payrollRecords.map((e) => e.id === t ? I(i.updateCrewPayrollRecord, F.payrollRecord) : e) }));
556
+ e((e) => ({ payrollRecords: e.payrollRecords.map((e) => e.id === t ? F(i.updateCrewPayrollRecord, P.payrollRecord) : e) }));
556
557
  },
557
558
  removePayrollRecord: async (t) => {
558
559
  let n = $.getState().initParams;
@@ -560,14 +561,14 @@ var n = "\n query CrewfoundryBootstrap {\n crewfoundryBootstrap {\n emp
560
561
  },
561
562
  addTimeEntry: async (t) => {
562
563
  let n = $.getState().initParams, r = await H(we, { input: t }, n, "Unable to create time entry");
563
- e((e) => ({ timeEntries: [I(r.createCrewTimeEntry, F.timeEntry), ...e.timeEntries] }));
564
+ e((e) => ({ timeEntries: [F(r.createCrewTimeEntry, P.timeEntry), ...e.timeEntries] }));
564
565
  },
565
566
  updateTimeEntry: async (t, n) => {
566
567
  let r = $.getState().initParams, i = await H(Te, {
567
568
  id: t,
568
569
  input: n
569
570
  }, r, "Unable to update time entry");
570
- e((e) => ({ timeEntries: e.timeEntries.map((e) => e.id === t ? I(i.updateCrewTimeEntry, F.timeEntry) : e) }));
571
+ e((e) => ({ timeEntries: e.timeEntries.map((e) => e.id === t ? F(i.updateCrewTimeEntry, P.timeEntry) : e) }));
571
572
  },
572
573
  removeTimeEntry: async (t) => {
573
574
  let n = $.getState().initParams;
@@ -579,7 +580,7 @@ var n = "\n query CrewfoundryBootstrap {\n crewfoundryBootstrap {\n emp
579
580
  try {
580
581
  let r = (await H(De, { jobPostingId: t }, n, "Unable to load candidate matches")).crewJobPostingMatches.map((e) => ({
581
582
  ...e,
582
- candidate: I(e.candidate, F.candidate)
583
+ candidate: F(e.candidate, P.candidate)
583
584
  }));
584
585
  e((e) => ({
585
586
  jobPostingMatches: {
@@ -648,7 +649,7 @@ var n = "\n query CrewfoundryBootstrap {\n crewfoundryBootstrap {\n emp
648
649
  e((e) => ({ employeeDocuments: [...e.employeeDocuments.filter((e) => e.employeeId !== t), ...r.employeeDocuments] }));
649
650
  },
650
651
  uploadEmployeeDocument: async ({ employeeId: t, file: n, title: r, category: i }) => {
651
- let a = $.getState().initParams, o = await H(Oe, { path: "/CrewFoundry/Employee Documents" }, a, "Unable to resolve the employee documents folder"), s = n.name.includes(".") ? n.name.substring(n.name.lastIndexOf(".") + 1) : "", c = await H(ke, { input: {
652
+ let a = $.getState().initParams, o = await H(je, { path: "/CrewFoundry/Employee Documents" }, a, "Unable to resolve the employee documents folder"), s = n.name.includes(".") ? n.name.substring(n.name.lastIndexOf(".") + 1) : "", c = await H(Me, { input: {
652
653
  fileName: n.name,
653
654
  fileSize: String(n.size),
654
655
  mimeType: n.type || "application/octet-stream",
@@ -665,7 +666,7 @@ var n = "\n query CrewfoundryBootstrap {\n crewfoundryBootstrap {\n emp
665
666
  }
666
667
  let l = await H(T, { input: {
667
668
  employeeId: t,
668
- fileId: (await H(Ae, { input: {
669
+ fileId: (await H(Ne, { input: {
669
670
  sessionId: c.initiateUpload.session.id,
670
671
  fileSize: String(n.size),
671
672
  folderId: o.ensureFolderByPath.id
@@ -679,30 +680,58 @@ var n = "\n query CrewfoundryBootstrap {\n crewfoundryBootstrap {\n emp
679
680
  let n = $.getState().initParams;
680
681
  await H(E, { id: t }, n, "Unable to remove this document"), e((e) => ({ employeeDocuments: e.employeeDocuments.filter((e) => e.id !== t) }));
681
682
  },
683
+ fetchEmployeeSkillProfile: async (t) => {
684
+ let n = $.getState().initParams, r = (await H(Oe, { id: t }, n, "Unable to load skills")).crewEmployee;
685
+ e((e) => ({
686
+ employeeSkillProfiles: {
687
+ ...e.employeeSkillProfiles,
688
+ [t]: r?.skillProfile ?? []
689
+ },
690
+ employees: r ? e.employees.map((e) => e.id === t ? {
691
+ ...e,
692
+ skills: r.skills
693
+ } : e) : e.employees
694
+ }));
695
+ },
696
+ attachEmployeeSkill: async ({ employeeId: e, skillName: t, proficiency: n }) => {
697
+ let r = $.getState().initParams;
698
+ await H(ke, { input: {
699
+ employeeId: e,
700
+ skillName: t,
701
+ proficiency: n
702
+ } }, r, "Unable to add this skill"), await $.getState().fetchEmployeeSkillProfile(e);
703
+ },
704
+ detachEmployeeSkill: async (e, t) => {
705
+ let n = $.getState().initParams;
706
+ await H(Ae, {
707
+ employeeId: e,
708
+ skillId: t
709
+ }, n, "Unable to remove this skill"), await $.getState().fetchEmployeeSkillProfile(e);
710
+ },
682
711
  fetchOnboardings: async () => {
683
712
  let t = $.getState().initParams;
684
713
  e({
685
- onboardings: (await H(je, {}, t, "Unable to load onboarding")).crewOnboardings.map(L),
714
+ onboardings: (await H(Pe, {}, t, "Unable to load onboarding")).crewOnboardings.map(I),
686
715
  onboardingsLoaded: !0
687
716
  });
688
717
  },
689
718
  createOnboarding: async (t) => {
690
- let n = $.getState().initParams, r = await H(Me, { input: t }, n, "Unable to start onboarding");
691
- e((e) => ({ onboardings: [L(r.createCrewOnboarding), ...e.onboardings] }));
719
+ let n = $.getState().initParams, r = await H(Fe, { input: t }, n, "Unable to start onboarding");
720
+ e((e) => ({ onboardings: [I(r.createCrewOnboarding), ...e.onboardings] }));
692
721
  },
693
722
  updateOnboarding: async (t, n) => {
694
- let r = $.getState().initParams, i = await H(Ne, {
723
+ let r = $.getState().initParams, i = await H(Ie, {
695
724
  id: t,
696
725
  input: n
697
726
  }, r, "Unable to update onboarding");
698
- e((e) => ({ onboardings: e.onboardings.map((e) => e.id === t ? L(i.updateCrewOnboarding) : e) }));
727
+ e((e) => ({ onboardings: e.onboardings.map((e) => e.id === t ? I(i.updateCrewOnboarding) : e) }));
699
728
  },
700
729
  removeOnboarding: async (t) => {
701
730
  let n = $.getState().initParams;
702
- await H(Pe, { id: t }, n, "Unable to remove onboarding"), e((e) => ({ onboardings: e.onboardings.filter((e) => e.id !== t) }));
731
+ await H(Le, { id: t }, n, "Unable to remove onboarding"), e((e) => ({ onboardings: e.onboardings.filter((e) => e.id !== t) }));
703
732
  },
704
733
  createOnboardingTask: async (t) => {
705
- let n = $.getState().initParams, r = I((await H(Fe, { input: t }, n, "Unable to create onboarding task")).createCrewOnboardingTask, F.onboardingTask);
734
+ let n = $.getState().initParams, r = F((await H(Re, { input: t }, n, "Unable to create onboarding task")).createCrewOnboardingTask, P.onboardingTask);
706
735
  e((e) => ({ onboardings: e.onboardings.map((e) => e.id === r.onboardingId ? {
707
736
  ...e,
708
737
  tasks: [...e.tasks, r],
@@ -710,10 +739,10 @@ var n = "\n query CrewfoundryBootstrap {\n crewfoundryBootstrap {\n emp
710
739
  } : e) }));
711
740
  },
712
741
  updateOnboardingTask: async (t, n) => {
713
- let r = $.getState().initParams, i = I((await H(Ie, {
742
+ let r = $.getState().initParams, i = F((await H(ze, {
714
743
  id: t,
715
744
  input: n
716
- }, r, "Unable to update onboarding task")).updateCrewOnboardingTask, F.onboardingTask);
745
+ }, r, "Unable to update onboarding task")).updateCrewOnboardingTask, P.onboardingTask);
717
746
  e((e) => ({ onboardings: e.onboardings.map((e) => e.id === i.onboardingId ? {
718
747
  ...e,
719
748
  tasks: e.tasks.map((e) => e.id === t ? i : e)
@@ -721,17 +750,17 @@ var n = "\n query CrewfoundryBootstrap {\n crewfoundryBootstrap {\n emp
721
750
  },
722
751
  removeOnboardingTask: async (t) => {
723
752
  let n = $.getState().initParams;
724
- await H(Le, { id: t }, n, "Unable to remove onboarding task"), e((e) => ({ onboardings: e.onboardings.map((e) => e.tasks.some((e) => e.id === t) ? {
753
+ await H(Be, { id: t }, n, "Unable to remove onboarding task"), e((e) => ({ onboardings: e.onboardings.map((e) => e.tasks.some((e) => e.id === t) ? {
725
754
  ...e,
726
755
  tasks: e.tasks.filter((e) => e.id !== t),
727
756
  totalTaskCount: Math.max(0, e.totalTaskCount - 1)
728
757
  } : e) }));
729
758
  },
730
759
  toggleOnboardingTask: async (t, n) => {
731
- let r = $.getState().initParams, i = I((await H(Re, {
760
+ let r = $.getState().initParams, i = F((await H(Ve, {
732
761
  id: t,
733
762
  completed: n
734
- }, r, "Unable to update onboarding task")).toggleCrewOnboardingTask, F.onboardingTask);
763
+ }, r, "Unable to update onboarding task")).toggleCrewOnboardingTask, P.onboardingTask);
735
764
  e((e) => ({ onboardings: e.onboardings.map((e) => {
736
765
  if (e.id !== i.onboardingId) return e;
737
766
  let n = e.tasks.map((e) => e.id === t ? i : e), r = n.filter((e) => e.completedAt).length;
@@ -752,14 +781,14 @@ var n = "\n query CrewfoundryBootstrap {\n crewfoundryBootstrap {\n emp
752
781
  },
753
782
  fetchLearning: async () => {
754
783
  let t = $.getState().initParams, n = {
755
- limit: N,
784
+ limit: M,
756
785
  offset: 0
757
786
  };
758
787
  for (let r = 1; r <= K; r += 1) {
759
- let i = G.learning, a = await H(ze, {
788
+ let i = G.learning, a = await H(He, {
760
789
  coursePage: n,
761
790
  enrollmentPage: n
762
- }, t, "Unable to load learning"), [o, s] = await Promise.all([W(Be, "crewTrainingCourses", t, "Unable to load courses", a.crewTrainingCourses), W(Ve, "crewEnrollments", t, "Unable to load enrollments", a.crewEnrollments)]);
791
+ }, t, "Unable to load learning"), [o, s] = await Promise.all([W(Ue, "crewTrainingCourses", t, "Unable to load courses", a.crewTrainingCourses), W(We, "crewEnrollments", t, "Unable to load enrollments", a.crewEnrollments)]);
763
792
  if (!(i !== G.learning && r < K)) {
764
793
  e({
765
794
  trainingCourses: o,
@@ -772,11 +801,11 @@ var n = "\n query CrewfoundryBootstrap {\n crewfoundryBootstrap {\n emp
772
801
  }
773
802
  },
774
803
  createTrainingCourse: async (t) => {
775
- let n = $.getState().initParams, r = (await H(Ue, { input: t }, n, "Unable to create course")).createCrewTrainingCourse;
804
+ let n = $.getState().initParams, r = (await H(Ke, { input: t }, n, "Unable to create course")).createCrewTrainingCourse;
776
805
  return G.learning += 1, e((e) => ({ trainingCourses: [r, ...e.trainingCourses] })), r;
777
806
  },
778
807
  updateTrainingCourse: async (t, n) => {
779
- let r = $.getState().initParams, i = await H(We, {
808
+ let r = $.getState().initParams, i = await H(qe, {
780
809
  id: t,
781
810
  input: n
782
811
  }, r, "Unable to update course");
@@ -784,13 +813,13 @@ var n = "\n query CrewfoundryBootstrap {\n crewfoundryBootstrap {\n emp
784
813
  },
785
814
  removeTrainingCourse: async (t) => {
786
815
  let n = $.getState().initParams;
787
- await H(Ge, { id: t }, n, "Unable to remove course"), G.learning += 1, e((e) => ({
816
+ await H(Je, { id: t }, n, "Unable to remove course"), G.learning += 1, e((e) => ({
788
817
  trainingCourses: e.trainingCourses.filter((e) => e.id !== t),
789
818
  trainingCompletion: e.trainingCompletion.filter((e) => e.courseId !== t)
790
819
  }));
791
820
  },
792
821
  enrollEmployee: async (t, n) => {
793
- let r = $.getState().initParams, i = q((await H(Ke, { input: {
822
+ let r = $.getState().initParams, i = q((await H(Ye, { input: {
794
823
  courseId: t,
795
824
  employeeId: n.id,
796
825
  employeeName: `${n.firstName} ${n.lastName}`.trim()
@@ -800,9 +829,9 @@ var n = "\n query CrewfoundryBootstrap {\n crewfoundryBootstrap {\n emp
800
829
  a && e({ trainingCompletion: a });
801
830
  },
802
831
  updateEnrollmentStatus: async (t, n) => {
803
- let r = $.getState().initParams, i = await H(qe, {
832
+ let r = $.getState().initParams, i = await H(Xe, {
804
833
  id: t,
805
- status: P(n)
834
+ status: N(n)
806
835
  }, r, "Unable to update enrollment");
807
836
  G.learning += 1, e((e) => ({ enrollments: Z(e.enrollments, q(i.updateCrewEnrollmentStatus)) }));
808
837
  let a = await Q(r);
@@ -810,14 +839,14 @@ var n = "\n query CrewfoundryBootstrap {\n crewfoundryBootstrap {\n emp
810
839
  },
811
840
  removeEnrollment: async (t) => {
812
841
  let n = $.getState().initParams;
813
- await H(Je, { id: t }, n, "Unable to remove enrollment"), G.learning += 1, e((e) => ({ enrollments: e.enrollments.filter((e) => e.id !== t) }));
842
+ await H(Ze, { id: t }, n, "Unable to remove enrollment"), G.learning += 1, e((e) => ({ enrollments: e.enrollments.filter((e) => e.id !== t) }));
814
843
  let r = await Q(n);
815
844
  r && e({ trainingCompletion: r });
816
845
  },
817
846
  fetchMarketplace: async () => {
818
847
  let t = $.getState().initParams;
819
848
  for (let n = 1; n <= K; n += 1) {
820
- let r = G.marketplace, [i, a] = await Promise.all([W(Ye, "crewServiceListings", t, "Unable to load marketplace services"), W(Xe, "crewBookings", t, "Unable to load bookings")]);
849
+ let r = G.marketplace, [i, a] = await Promise.all([W(Qe, "crewServiceListings", t, "Unable to load marketplace services"), W($e, "crewBookings", t, "Unable to load bookings")]);
821
850
  if (!(r !== G.marketplace && n < K)) {
822
851
  e({
823
852
  serviceListings: i.map(J),
@@ -829,34 +858,34 @@ var n = "\n query CrewfoundryBootstrap {\n crewfoundryBootstrap {\n emp
829
858
  }
830
859
  },
831
860
  createServiceListing: async (t) => {
832
- let n = $.getState().initParams, r = J((await H(Qe, { input: t }, n, "Unable to publish service")).createCrewServiceListing);
861
+ let n = $.getState().initParams, r = J((await H(tt, { input: t }, n, "Unable to publish service")).createCrewServiceListing);
833
862
  return G.marketplace += 1, e((e) => ({ serviceListings: [r, ...e.serviceListings] })), r;
834
863
  },
835
864
  updateServiceListing: async (t, n) => {
836
- let r = $.getState().initParams, i = await H($e, {
865
+ let r = $.getState().initParams, i = await H(nt, {
837
866
  id: t,
838
867
  input: n.status ? {
839
868
  ...n,
840
- status: P(n.status)
869
+ status: N(n.status)
841
870
  } : n
842
871
  }, r, "Unable to update service");
843
872
  G.marketplace += 1, e((e) => ({ serviceListings: Z(e.serviceListings, J(i.updateMyServiceListing)) }));
844
873
  },
845
874
  removeServiceListing: async (t) => {
846
875
  let n = $.getState().initParams;
847
- await H(et, { id: t }, n, "Unable to remove service"), G.marketplace += 1, e((e) => ({ serviceListings: e.serviceListings.filter((e) => e.id !== t) }));
876
+ await H(rt, { id: t }, n, "Unable to remove service"), G.marketplace += 1, e((e) => ({ serviceListings: e.serviceListings.filter((e) => e.id !== t) }));
848
877
  },
849
878
  bookServiceListing: async (t) => {
850
- let n = $.getState().initParams, r = Y((await H(M, { input: t }, n, "Unable to book service")).createCrewBooking);
879
+ let n = $.getState().initParams, r = Y((await H(it, { input: t }, n, "Unable to book service")).createCrewBooking);
851
880
  return G.marketplace += 1, e((e) => ({
852
881
  bookings: [r, ...e.bookings],
853
882
  escrowLoaded: !1
854
883
  })), r;
855
884
  },
856
885
  updateBookingStatus: async (t, n) => {
857
- let r = $.getState().initParams, i = await H(tt, {
886
+ let r = $.getState().initParams, i = await H(at, {
858
887
  id: t,
859
- status: P(n)
888
+ status: N(n)
860
889
  }, r, "Unable to update booking");
861
890
  G.marketplace += 1, e((e) => ({
862
891
  bookings: Z(e.bookings, Y(i.updateMyBookingStatus)),
@@ -867,7 +896,7 @@ var n = "\n query CrewfoundryBootstrap {\n crewfoundryBootstrap {\n emp
867
896
  let t = $.getState().initParams;
868
897
  try {
869
898
  e({
870
- escrowRecords: (await W(Ze, "crewEscrowRecords", t, "Unable to load escrow records")).map(X),
899
+ escrowRecords: (await W(et, "crewEscrowRecords", t, "Unable to load escrow records")).map(X),
871
900
  escrowLoaded: !0,
872
901
  escrowError: null
873
902
  });
@@ -880,15 +909,15 @@ var n = "\n query CrewfoundryBootstrap {\n crewfoundryBootstrap {\n emp
880
909
  }
881
910
  },
882
911
  releaseEscrowRecord: async (t) => {
883
- let n = $.getState().initParams, r = await H(nt, { id: t }, n, "Unable to release escrow");
912
+ let n = $.getState().initParams, r = await H(ot, { id: t }, n, "Unable to release escrow");
884
913
  e((e) => ({ escrowRecords: Z(e.escrowRecords, X(r.releaseCrewEscrowRecord)) }));
885
914
  },
886
915
  cancelEscrowRecord: async (t) => {
887
- let n = $.getState().initParams, r = await H(rt, { id: t }, n, "Unable to cancel escrow");
916
+ let n = $.getState().initParams, r = await H(st, { id: t }, n, "Unable to cancel escrow");
888
917
  e((e) => ({ escrowRecords: Z(e.escrowRecords, X(r.cancelCrewEscrowRecord)) }));
889
918
  }
890
919
  }));
891
920
  //#endregion
892
- export { V as CONVERSATIONS_ROUTE, $ as useCrewFoundryStore };
921
+ export { B as CONVERSATIONS_ROUTE, $ as useCrewFoundryStore };
893
922
 
894
923
  //# sourceMappingURL=crewfoundryStore.js.map