@burdenoff/microfe-crewfoundry 2026.1030.3 → 2026.1030.4

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 (51) hide show
  1. package/dist/crewfoundry/CrewFoundryRoutes.d.ts.map +1 -1
  2. package/dist/crewfoundry/CrewFoundryRoutes.js +18 -14
  3. package/dist/crewfoundry/CrewFoundryRoutes.js.map +1 -1
  4. package/dist/crewfoundry/components/EmployeeSkillsPanel.d.ts +9 -0
  5. package/dist/crewfoundry/components/EmployeeSkillsPanel.d.ts.map +1 -1
  6. package/dist/crewfoundry/components/EmployeeSkillsPanel.js +111 -77
  7. package/dist/crewfoundry/components/EmployeeSkillsPanel.js.map +1 -1
  8. package/dist/crewfoundry/components/skills/FindPeopleBySkillCard.d.ts +13 -0
  9. package/dist/crewfoundry/components/skills/FindPeopleBySkillCard.d.ts.map +1 -0
  10. package/dist/crewfoundry/components/skills/FindPeopleBySkillCard.js +128 -0
  11. package/dist/crewfoundry/components/skills/FindPeopleBySkillCard.js.map +1 -0
  12. package/dist/crewfoundry/components/skills/MergeSkillDialog.d.ts +15 -0
  13. package/dist/crewfoundry/components/skills/MergeSkillDialog.d.ts.map +1 -0
  14. package/dist/crewfoundry/components/skills/MergeSkillDialog.js +58 -0
  15. package/dist/crewfoundry/components/skills/MergeSkillDialog.js.map +1 -0
  16. package/dist/crewfoundry/components/skills/RoleSkillMatchPanel.d.ts +15 -0
  17. package/dist/crewfoundry/components/skills/RoleSkillMatchPanel.d.ts.map +1 -0
  18. package/dist/crewfoundry/components/skills/RoleSkillMatchPanel.js +163 -0
  19. package/dist/crewfoundry/components/skills/RoleSkillMatchPanel.js.map +1 -0
  20. package/dist/crewfoundry/components/skills/SkillPicker.d.ts +20 -0
  21. package/dist/crewfoundry/components/skills/SkillPicker.d.ts.map +1 -0
  22. package/dist/crewfoundry/components/skills/SkillPicker.js +73 -0
  23. package/dist/crewfoundry/components/skills/SkillPicker.js.map +1 -0
  24. package/dist/crewfoundry/components/skills/SkillRelationsDialog.d.ts +13 -0
  25. package/dist/crewfoundry/components/skills/SkillRelationsDialog.d.ts.map +1 -0
  26. package/dist/crewfoundry/components/skills/SkillRelationsDialog.js +156 -0
  27. package/dist/crewfoundry/components/skills/SkillRelationsDialog.js.map +1 -0
  28. package/dist/crewfoundry/lib/analytics.d.ts +1 -29
  29. package/dist/crewfoundry/lib/analytics.d.ts.map +1 -1
  30. package/dist/crewfoundry/lib/analytics.js +3 -48
  31. package/dist/crewfoundry/lib/analytics.js.map +1 -1
  32. package/dist/crewfoundry/lib/skillMatching.d.ts +70 -0
  33. package/dist/crewfoundry/lib/skillMatching.d.ts.map +1 -0
  34. package/dist/crewfoundry/lib/skillMatching.js +73 -0
  35. package/dist/crewfoundry/lib/skillMatching.js.map +1 -0
  36. package/dist/crewfoundry/pages/HiringCandidatesPagePage.d.ts.map +1 -1
  37. package/dist/crewfoundry/pages/HiringCandidatesPagePage.js +210 -177
  38. package/dist/crewfoundry/pages/HiringCandidatesPagePage.js.map +1 -1
  39. package/dist/crewfoundry/pages/HrEmployeeProfilePagePage.js +6 -6
  40. package/dist/crewfoundry/pages/HrSkillsTaxonomyPagePage.d.ts +9 -0
  41. package/dist/crewfoundry/pages/HrSkillsTaxonomyPagePage.d.ts.map +1 -0
  42. package/dist/crewfoundry/pages/HrSkillsTaxonomyPagePage.js +456 -0
  43. package/dist/crewfoundry/pages/HrSkillsTaxonomyPagePage.js.map +1 -0
  44. package/dist/crewfoundry/pages/ProjectsResourcingPagePage.d.ts.map +1 -1
  45. package/dist/crewfoundry/pages/ProjectsResourcingPagePage.js +50 -102
  46. package/dist/crewfoundry/pages/ProjectsResourcingPagePage.js.map +1 -1
  47. package/dist/crewfoundry/store/crewfoundryStore.d.ts +101 -0
  48. package/dist/crewfoundry/store/crewfoundryStore.d.ts.map +1 -1
  49. package/dist/crewfoundry/store/crewfoundryStore.js +161 -57
  50. package/dist/crewfoundry/store/crewfoundryStore.js.map +1 -1
  51. package/package.json +1 -1
@@ -1,7 +1,7 @@
1
1
  import { create as e } from "zustand";
2
2
  import { clearGraphqlFetchResponseCache as t, graphqlFetch as n } from "@burdenoff/fe-libs/shared/graphql";
3
3
  //#region src/crewfoundry/store/crewfoundryStore.ts
4
- var r = "\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", i = "\n query CrewPayrollRecords {\n crewPayrollRecords { id employeeId employeeName department period grossPay deductions netPay status payDate paymentMethod }\n }\n", a = "\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", o = "mutation CreateCrewEmployee($input: CreateCrewEmployeeInput!) { createCrewEmployee(input: $input) { id firstName lastName email department position status type salary startDate avatar location managerId phone performanceScore skills terminationDate } }", s = "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 } }", c = "mutation RemoveCrewEmployee($id: ID!) { removeCrewEmployee(id: $id) }", l = "mutation CreateCrewJobPosting($input: CreateCrewJobPostingInput!) { createCrewJobPosting(input: $input) { id title department location type experienceLevel salaryMin salaryMax status applicants postedDate deadline description requirements benefits } }", u = "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 } }", d = "mutation CreateCrewCandidate($input: CreateCrewCandidateInput!) { createCrewCandidate(input: $input) { id firstName lastName email phone position status appliedDate resumeUrl rating source experience skills currentCompany notes hiredDate } }", f = "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 } }", p = "mutation CreateCrewAnnouncement($input: CreateCrewAnnouncementInput!) { createCrewAnnouncement(input: $input) { id title content author authorRole category priority isPinned createdAt viewCount tags } }", m = "mutation CreateCrewLeaveRequest($input: CreateCrewLeaveRequestInput!) { createCrewLeaveRequest(input: $input) { id employeeId employeeName department type startDate endDate days status reason approverName } }", h = "mutation UpdateCrewLeaveRequest($id: ID!, $input: UpdateCrewLeaveRequestInput!) { updateCrewLeaveRequest(id: $id, input: $input) { id employeeId employeeName department type startDate endDate days status reason approverName } }", g = "mutation RemoveCrewJobPosting($id: ID!) { removeCrewJobPosting(id: $id) }", _ = "mutation RemoveCrewCandidate($id: ID!) { removeCrewCandidate(id: $id) }", v = "mutation UpdateCrewAnnouncement($id: ID!, $input: UpdateCrewAnnouncementInput!) { updateCrewAnnouncement(id: $id, input: $input) { id title content author authorRole category priority isPinned createdAt viewCount tags } }", y = "mutation RemoveCrewAnnouncement($id: ID!) { removeCrewAnnouncement(id: $id) }", b = "mutation CreateCrewInterview($input: CreateCrewInterviewInput!) { createCrewInterview(input: $input) { id candidateId candidateName position interviewerName date time type status feedback rating } }", x = "mutation UpdateCrewInterview($id: ID!, $input: UpdateCrewInterviewInput!) { updateCrewInterview(id: $id, input: $input) { id candidateId candidateName position interviewerName date time type status feedback rating } }", ee = "mutation RemoveCrewInterview($id: ID!) { removeCrewInterview(id: $id) }", te = "mutation CreateCrewVendor($input: CreateCrewVendorInput!) { createCrewVendor(input: $input) { id name category contactPerson email phone status contractValue rating } }", ne = "mutation UpdateCrewVendor($id: ID!, $input: UpdateCrewVendorInput!) { updateCrewVendor(id: $id, input: $input) { id name category contactPerson email phone status contractValue rating } }", re = "mutation RemoveCrewVendor($id: ID!) { removeCrewVendor(id: $id) }", ie = "mutation CreateCrewClient($input: CreateCrewClientInput!) { createCrewClient(input: $input) { id name industry contactPerson email phone status revenue projects since } }", ae = "mutation UpdateCrewClient($id: ID!, $input: UpdateCrewClientInput!) { updateCrewClient(id: $id, input: $input) { id name industry contactPerson email phone status revenue projects since } }", oe = "mutation RemoveCrewClient($id: ID!) { removeCrewClient(id: $id) }", se = "mutation CreateCrewTeam($input: CreateCrewTeamInput!) { createCrewTeam(input: $input) { id name description leadId leadName members memberCount department status projectCount createdAt } }", ce = "mutation UpdateCrewTeam($id: ID!, $input: UpdateCrewTeamInput!) { updateCrewTeam(id: $id, input: $input) { id name description leadId leadName members memberCount department status projectCount createdAt } }", le = "mutation RemoveCrewTeam($id: ID!) { removeCrewTeam(id: $id) }", ue = "mutation CreateCrewProject($input: CreateCrewProjectInput!) { createCrewProject(input: $input) { id name description status priority startDate endDate progress budget spent teamId teamName managerId managerName tasks completedTasks } }", de = "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 } }", fe = "mutation RemoveCrewProject($id: ID!) { removeCrewProject(id: $id) }", pe = "mutation CreateCrewDepartment($input: CreateCrewDepartmentInput!) { createCrewDepartment(input: $input) { id name headId headName employeeCount budget location status } }", me = "mutation UpdateCrewDepartment($id: ID!, $input: UpdateCrewDepartmentInput!) { updateCrewDepartment(id: $id, input: $input) { id name headId headName employeeCount budget location status } }", he = "mutation RemoveCrewDepartment($id: ID!) { removeCrewDepartment(id: $id) }", ge = "mutation CreateCrewPayrollRecord($input: CreateCrewPayrollRecordInput!) { createCrewPayrollRecord(input: $input) { id employeeId employeeName department period grossPay deductions netPay status payDate paymentMethod } }", _e = "mutation UpdateCrewPayrollRecord($id: ID!, $input: UpdateCrewPayrollRecordInput!) { updateCrewPayrollRecord(id: $id, input: $input) { id employeeId employeeName department period grossPay deductions netPay status payDate paymentMethod } }", ve = "mutation RemoveCrewPayrollRecord($id: ID!) { removeCrewPayrollRecord(id: $id) }", S = "id country currency period payDate status employeeCount totalGrossPay totalNetPay calculatedAt approvedAt approvedBy notes", ye = `query CrewPayrollRuns { crewPayrollRuns { ${S} } }`, be = `mutation CreateCrewPayrollRun($input: CreateCrewPayrollRunInput!) { createCrewPayrollRun(input: $input) { ${S} } }`, xe = `mutation CalculateCrewPayrollRun($id: ID!) { calculateCrewPayrollRun(id: $id) { ${S} } }`, Se = `mutation ApproveCrewPayrollRun($id: ID!) { approveCrewPayrollRun(id: $id) { ${S} } }`, Ce = "mutation RemoveCrewPayrollRun($id: ID!) { removeCrewPayrollRun(id: $id) }", we = "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 } }", Te = "mutation CreateCrewTimeEntry($input: CreateCrewTimeEntryInput!) { createCrewTimeEntry(input: $input) { id employeeId employeeName date clockIn clockOut totalHours overtime project status billable } }", Ee = "mutation UpdateCrewTimeEntry($id: ID!, $input: UpdateCrewTimeEntryInput!) { updateCrewTimeEntry(id: $id, input: $input) { id employeeId employeeName date clockIn clockOut totalHours overtime project status billable } }", De = "mutation RemoveCrewTimeEntry($id: ID!) { removeCrewTimeEntry(id: $id) }", C = "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 } } }", w = "query CrewSkillsGap { crewSkillsGap { skill employeesWithSkill openJobsRequiringSkill shortage } }", T = "query EmployeeDocuments($employeeId: ID!) { employeeDocuments(employeeId: $employeeId) { id employeeId fileId title category uploadedBy uploadedAt } }", E = "mutation AttachEmployeeDocument($input: AttachCrewEmployeeDocumentInput!) { attachEmployeeDocument(input: $input) { id employeeId fileId title category uploadedBy uploadedAt } }", Oe = "mutation DetachEmployeeDocument($id: ID!) { detachEmployeeDocument(id: $id) }", ke = "query CrewEmployeeSkillProfile($id: ID!) { crewEmployee(id: $id) { id skills skillProfile { id skillId proficiency verifiedFrom lastUsedAt skill { id name category source } } } }", Ae = "mutation AttachCrewSkill($input: AttachCrewSkillInput!) { attachCrewSkill(input: $input) { id } }", je = "mutation DetachCrewSkill($employeeId: ID!, $skillId: ID!) { detachCrewSkill(employeeId: $employeeId, skillId: $skillId) }", Me = "mutation EnsureFolderByPath($path: String!) { ensureFolderByPath(path: $path) { id } }", Ne = "mutation InitiateUpload($input: InitiateUploadInput!) { initiateUpload(input: $input) { session { id } uploadUrl } }", Pe = "mutation CompleteUpload($input: CompleteUploadInput!) { completeUpload(input: $input) { file { id } } }", Fe = "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 } } }", Ie = "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 } } }", Le = "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 } } }", Re = "mutation RemoveCrewOnboarding($id: ID!) { removeCrewOnboarding(id: $id) }", ze = "mutation CreateCrewOnboardingTask($input: CreateCrewOnboardingTaskInput!) { createCrewOnboardingTask(input: $input) { id onboardingId stage title assigneeActorId assigneeName dueDate completedAt sortOrder } }", Be = "mutation UpdateCrewOnboardingTask($id: ID!, $input: UpdateCrewOnboardingTaskInput!) { updateCrewOnboardingTask(id: $id, input: $input) { id onboardingId stage title assigneeActorId assigneeName dueDate completedAt sortOrder } }", Ve = "mutation RemoveCrewOnboardingTask($id: ID!) { removeCrewOnboardingTask(id: $id) }", He = "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", Ue = `query CrewLearning($coursePage: PaginationInput, $enrollmentPage: PaginationInput) { crewTrainingCourses(pagination: $coursePage) { ${D} } crewEnrollments(pagination: $enrollmentPage) { ${O} } crewTrainingCompletionDashboard { courseId courseTitle totalEnrolled notStartedCount inProgressCount completedCount completionRate } }`, We = `query CrewTrainingCourses($pagination: PaginationInput) { crewTrainingCourses(pagination: $pagination) { ${D} } }`, Ge = `query CrewEnrollments($pagination: PaginationInput) { crewEnrollments(pagination: $pagination) { ${O} } }`, Ke = "query CrewTrainingCompletionDashboard { crewTrainingCompletionDashboard { courseId courseTitle totalEnrolled notStartedCount inProgressCount completedCount completionRate } }", qe = `mutation CreateCrewTrainingCourse($input: CreateCrewTrainingCourseInput!) { createCrewTrainingCourse(input: $input) { ${D} } }`, k = `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) }", A = "id title description category providerActorId providerName rate rateUnit currency status createdAt updatedAt", j = "id listingId listingTitle providerActorId providerName clientActorId clientName status rate rateUnit currency notes scheduledStart scheduledEnd cancelledReason createdAt updatedAt", M = "id bookingId amount currency releaseCondition status heldAt releasedAt releasedBy notes createdAt updatedAt", Qe = `query CrewServiceListings($pagination: PaginationInput) { crewServiceListings(pagination: $pagination) { ${A} } }`, $e = `query CrewBookings($pagination: PaginationInput) { crewBookings(pagination: $pagination) { ${j} } }`, et = `query CrewEscrowRecords($pagination: PaginationInput) { crewEscrowRecords(pagination: $pagination) { ${M} } }`, tt = `mutation CreateCrewServiceListing($input: CreateCrewServiceListingInput!) { createCrewServiceListing(input: $input) { ${A} } }`, nt = `mutation UpdateMyServiceListing($id: ID!, $input: UpdateCrewServiceListingInput!) { updateMyServiceListing(id: $id, input: $input) { ${A} } }`, rt = "mutation RemoveMyServiceListing($id: ID!) { removeMyServiceListing(id: $id) }", it = `mutation CreateCrewBooking($input: CreateCrewBookingInput!) { createCrewBooking(input: $input) { ${j} } }`, at = `mutation UpdateMyBookingStatus($id: ID!, $status: String!) { updateMyBookingStatus(id: $id, status: $status) { ${j} } }`, ot = `mutation ReleaseCrewEscrowRecord($id: ID!) { releaseCrewEscrowRecord(id: $id) { ${M} } }`, st = `mutation CancelCrewEscrowRecord($id: ID!) { cancelCrewEscrowRecord(id: $id) { ${M} } }`, N = 100, ct = 10, P = (e) => e.toUpperCase().replaceAll("-", "_"), F = {
4
+ var r = "\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", i = "\n query CrewPayrollRecords {\n crewPayrollRecords { id employeeId employeeName department period grossPay deductions netPay status payDate paymentMethod }\n }\n", a = "\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", o = "mutation CreateCrewEmployee($input: CreateCrewEmployeeInput!) { createCrewEmployee(input: $input) { id firstName lastName email department position status type salary startDate avatar location managerId phone performanceScore skills terminationDate } }", s = "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 } }", c = "mutation RemoveCrewEmployee($id: ID!) { removeCrewEmployee(id: $id) }", l = "mutation CreateCrewJobPosting($input: CreateCrewJobPostingInput!) { createCrewJobPosting(input: $input) { id title department location type experienceLevel salaryMin salaryMax status applicants postedDate deadline description requirements benefits } }", u = "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 } }", d = "mutation CreateCrewCandidate($input: CreateCrewCandidateInput!) { createCrewCandidate(input: $input) { id firstName lastName email phone position status appliedDate resumeUrl rating source experience skills currentCompany notes hiredDate } }", f = "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 } }", p = "mutation CreateCrewAnnouncement($input: CreateCrewAnnouncementInput!) { createCrewAnnouncement(input: $input) { id title content author authorRole category priority isPinned createdAt viewCount tags } }", m = "mutation CreateCrewLeaveRequest($input: CreateCrewLeaveRequestInput!) { createCrewLeaveRequest(input: $input) { id employeeId employeeName department type startDate endDate days status reason approverName } }", h = "mutation UpdateCrewLeaveRequest($id: ID!, $input: UpdateCrewLeaveRequestInput!) { updateCrewLeaveRequest(id: $id, input: $input) { id employeeId employeeName department type startDate endDate days status reason approverName } }", g = "mutation RemoveCrewJobPosting($id: ID!) { removeCrewJobPosting(id: $id) }", _ = "mutation RemoveCrewCandidate($id: ID!) { removeCrewCandidate(id: $id) }", v = "mutation UpdateCrewAnnouncement($id: ID!, $input: UpdateCrewAnnouncementInput!) { updateCrewAnnouncement(id: $id, input: $input) { id title content author authorRole category priority isPinned createdAt viewCount tags } }", y = "mutation RemoveCrewAnnouncement($id: ID!) { removeCrewAnnouncement(id: $id) }", b = "mutation CreateCrewInterview($input: CreateCrewInterviewInput!) { createCrewInterview(input: $input) { id candidateId candidateName position interviewerName date time type status feedback rating } }", x = "mutation UpdateCrewInterview($id: ID!, $input: UpdateCrewInterviewInput!) { updateCrewInterview(id: $id, input: $input) { id candidateId candidateName position interviewerName date time type status feedback rating } }", ee = "mutation RemoveCrewInterview($id: ID!) { removeCrewInterview(id: $id) }", te = "mutation CreateCrewVendor($input: CreateCrewVendorInput!) { createCrewVendor(input: $input) { id name category contactPerson email phone status contractValue rating } }", ne = "mutation UpdateCrewVendor($id: ID!, $input: UpdateCrewVendorInput!) { updateCrewVendor(id: $id, input: $input) { id name category contactPerson email phone status contractValue rating } }", re = "mutation RemoveCrewVendor($id: ID!) { removeCrewVendor(id: $id) }", ie = "mutation CreateCrewClient($input: CreateCrewClientInput!) { createCrewClient(input: $input) { id name industry contactPerson email phone status revenue projects since } }", ae = "mutation UpdateCrewClient($id: ID!, $input: UpdateCrewClientInput!) { updateCrewClient(id: $id, input: $input) { id name industry contactPerson email phone status revenue projects since } }", oe = "mutation RemoveCrewClient($id: ID!) { removeCrewClient(id: $id) }", se = "mutation CreateCrewTeam($input: CreateCrewTeamInput!) { createCrewTeam(input: $input) { id name description leadId leadName members memberCount department status projectCount createdAt } }", ce = "mutation UpdateCrewTeam($id: ID!, $input: UpdateCrewTeamInput!) { updateCrewTeam(id: $id, input: $input) { id name description leadId leadName members memberCount department status projectCount createdAt } }", le = "mutation RemoveCrewTeam($id: ID!) { removeCrewTeam(id: $id) }", ue = "mutation CreateCrewProject($input: CreateCrewProjectInput!) { createCrewProject(input: $input) { id name description status priority startDate endDate progress budget spent teamId teamName managerId managerName tasks completedTasks } }", de = "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 } }", fe = "mutation RemoveCrewProject($id: ID!) { removeCrewProject(id: $id) }", pe = "mutation CreateCrewDepartment($input: CreateCrewDepartmentInput!) { createCrewDepartment(input: $input) { id name headId headName employeeCount budget location status } }", me = "mutation UpdateCrewDepartment($id: ID!, $input: UpdateCrewDepartmentInput!) { updateCrewDepartment(id: $id, input: $input) { id name headId headName employeeCount budget location status } }", he = "mutation RemoveCrewDepartment($id: ID!) { removeCrewDepartment(id: $id) }", ge = "mutation CreateCrewPayrollRecord($input: CreateCrewPayrollRecordInput!) { createCrewPayrollRecord(input: $input) { id employeeId employeeName department period grossPay deductions netPay status payDate paymentMethod } }", _e = "mutation UpdateCrewPayrollRecord($id: ID!, $input: UpdateCrewPayrollRecordInput!) { updateCrewPayrollRecord(id: $id, input: $input) { id employeeId employeeName department period grossPay deductions netPay status payDate paymentMethod } }", ve = "mutation RemoveCrewPayrollRecord($id: ID!) { removeCrewPayrollRecord(id: $id) }", S = "id country currency period payDate status employeeCount totalGrossPay totalNetPay calculatedAt approvedAt approvedBy notes", ye = `query CrewPayrollRuns { crewPayrollRuns { ${S} } }`, be = `mutation CreateCrewPayrollRun($input: CreateCrewPayrollRunInput!) { createCrewPayrollRun(input: $input) { ${S} } }`, xe = `mutation CalculateCrewPayrollRun($id: ID!) { calculateCrewPayrollRun(id: $id) { ${S} } }`, Se = `mutation ApproveCrewPayrollRun($id: ID!) { approveCrewPayrollRun(id: $id) { ${S} } }`, Ce = "mutation RemoveCrewPayrollRun($id: ID!) { removeCrewPayrollRun(id: $id) }", we = "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 } }", Te = "mutation CreateCrewTimeEntry($input: CreateCrewTimeEntryInput!) { createCrewTimeEntry(input: $input) { id employeeId employeeName date clockIn clockOut totalHours overtime project status billable } }", Ee = "mutation UpdateCrewTimeEntry($id: ID!, $input: UpdateCrewTimeEntryInput!) { updateCrewTimeEntry(id: $id, input: $input) { id employeeId employeeName date clockIn clockOut totalHours overtime project status billable } }", De = "mutation RemoveCrewTimeEntry($id: ID!) { removeCrewTimeEntry(id: $id) }", Oe = "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 } }", ke = "mutation DetachEmployeeDocument($id: ID!) { detachEmployeeDocument(id: $id) }", Ae = "query CrewEmployeeSkillProfile($id: ID!) { crewEmployee(id: $id) { id skills skillProfile { id skillId proficiency verifiedFrom lastUsedAt skill { id name category source } } } }", je = "mutation AttachCrewSkill($input: AttachCrewSkillInput!) { attachCrewSkill(input: $input) { id } }", Me = "mutation DetachCrewSkill($employeeId: ID!, $skillId: ID!) { detachCrewSkill(employeeId: $employeeId, skillId: $skillId) }", E = 100, Ne = 50, Pe = "query CrewSkillsTaxonomy($pagination: PaginationInput) { crewSkills(pagination: $pagination) { id name slug category source description aliases employeeCount candidateCount relations { id type fromSkillId toSkillId } } }", Fe = "query CrewSkillCategories { crewSkillCategories }", Ie = "mutation CreateCrewSkill($input: CreateCrewSkillInput!) { createCrewSkill(input: $input) { id } }", Le = "mutation UpdateCrewSkill($id: ID!, $input: UpdateCrewSkillInput!) { updateCrewSkill(id: $id, input: $input) { id } }", Re = "mutation MergeCrewSkills($sourceId: ID!, $targetId: ID!) { mergeCrewSkills(sourceId: $sourceId, targetId: $targetId) { target { id name } employeesMoved candidatesMoved jobPostingsMoved } }", ze = "mutation RemoveCrewSkill($id: ID!) { removeCrewSkill(id: $id) }", Be = "mutation CreateCrewSkillRelation($input: CreateCrewSkillRelationInput!) { createCrewSkillRelation(input: $input) { id } }", Ve = "mutation RemoveCrewSkillRelation($id: ID!) { removeCrewSkillRelation(id: $id) }", He = "query CrewEmployeesBySkill($skillId: ID!, $minProficiency: Int, $limit: Int) { crewEmployeesBySkill(skillId: $skillId, minProficiency: $minProficiency, limit: $limit) { employee { id firstName lastName position department } matchType matchedSkill { id name } proficiency verifiedFrom explanation } }", Ue = "query CrewJobPostingSkillRequirements($id: ID!) { crewJobPosting(id: $id) { id skillRequirements { id skillId required minProficiency skill { id name category source } } } }", We = "query CrewCandidateSkillProfile($id: ID!) { crewCandidate(id: $id) { id skills skillProfile { id skillId proficiency source skill { id name category source } } } }", Ge = "mutation AttachCrewCandidateSkill($input: AttachCrewCandidateSkillInput!) { attachCrewCandidateSkill(input: $input) { id } }", Ke = "mutation DetachCrewCandidateSkill($candidateId: ID!, $skillId: ID!) { detachCrewCandidateSkill(candidateId: $candidateId, skillId: $skillId) }", qe = "mutation EnsureFolderByPath($path: String!) { ensureFolderByPath(path: $path) { id } }", Je = "mutation InitiateUpload($input: InitiateUploadInput!) { initiateUpload(input: $input) { session { id } uploadUrl } }", Ye = "mutation CompleteUpload($input: CompleteUploadInput!) { completeUpload(input: $input) { file { id } } }", Xe = "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 } } }", Ze = "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 } } }", Qe = "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 } } }", $e = "mutation RemoveCrewOnboarding($id: ID!) { removeCrewOnboarding(id: $id) }", et = "mutation CreateCrewOnboardingTask($input: CreateCrewOnboardingTaskInput!) { createCrewOnboardingTask(input: $input) { id onboardingId stage title assigneeActorId assigneeName dueDate completedAt sortOrder } }", tt = "mutation UpdateCrewOnboardingTask($id: ID!, $input: UpdateCrewOnboardingTaskInput!) { updateCrewOnboardingTask(id: $id, input: $input) { id onboardingId stage title assigneeActorId assigneeName dueDate completedAt sortOrder } }", nt = "mutation RemoveCrewOnboardingTask($id: ID!) { removeCrewOnboardingTask(id: $id) }", rt = "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", it = `query CrewLearning($coursePage: PaginationInput, $enrollmentPage: PaginationInput) { crewTrainingCourses(pagination: $coursePage) { ${D} } crewEnrollments(pagination: $enrollmentPage) { ${O} } crewTrainingCompletionDashboard { courseId courseTitle totalEnrolled notStartedCount inProgressCount completedCount completionRate } }`, at = `query CrewTrainingCourses($pagination: PaginationInput) { crewTrainingCourses(pagination: $pagination) { ${D} } }`, ot = `query CrewEnrollments($pagination: PaginationInput) { crewEnrollments(pagination: $pagination) { ${O} } }`, st = "query CrewTrainingCompletionDashboard { crewTrainingCompletionDashboard { courseId courseTitle totalEnrolled notStartedCount inProgressCount completedCount completionRate } }", ct = `mutation CreateCrewTrainingCourse($input: CreateCrewTrainingCourseInput!) { createCrewTrainingCourse(input: $input) { ${D} } }`, lt = `mutation UpdateCrewTrainingCourse($id: ID!, $input: UpdateCrewTrainingCourseInput!) { updateCrewTrainingCourse(id: $id, input: $input) { ${D} } }`, k = "mutation RemoveCrewTrainingCourse($id: ID!) { removeCrewTrainingCourse(id: $id) }", ut = `mutation CreateCrewEnrollment($input: CreateCrewEnrollmentInput!) { createCrewEnrollment(input: $input) { ${O} } }`, dt = `mutation UpdateCrewEnrollmentStatus($id: ID!, $status: String!) { updateCrewEnrollmentStatus(id: $id, status: $status) { ${O} } }`, ft = "mutation RemoveCrewEnrollment($id: ID!) { removeCrewEnrollment(id: $id) }", A = "id title description category providerActorId providerName rate rateUnit currency status createdAt updatedAt", j = "id listingId listingTitle providerActorId providerName clientActorId clientName status rate rateUnit currency notes scheduledStart scheduledEnd cancelledReason createdAt updatedAt", M = "id bookingId amount currency releaseCondition status heldAt releasedAt releasedBy notes createdAt updatedAt", pt = `query CrewServiceListings($pagination: PaginationInput) { crewServiceListings(pagination: $pagination) { ${A} } }`, mt = `query CrewBookings($pagination: PaginationInput) { crewBookings(pagination: $pagination) { ${j} } }`, ht = `query CrewEscrowRecords($pagination: PaginationInput) { crewEscrowRecords(pagination: $pagination) { ${M} } }`, gt = `mutation CreateCrewServiceListing($input: CreateCrewServiceListingInput!) { createCrewServiceListing(input: $input) { ${A} } }`, _t = `mutation UpdateMyServiceListing($id: ID!, $input: UpdateCrewServiceListingInput!) { updateMyServiceListing(id: $id, input: $input) { ${A} } }`, vt = "mutation RemoveMyServiceListing($id: ID!) { removeMyServiceListing(id: $id) }", yt = `mutation CreateCrewBooking($input: CreateCrewBookingInput!) { createCrewBooking(input: $input) { ${j} } }`, bt = `mutation UpdateMyBookingStatus($id: ID!, $status: String!) { updateMyBookingStatus(id: $id, status: $status) { ${j} } }`, xt = `mutation ReleaseCrewEscrowRecord($id: ID!) { releaseCrewEscrowRecord(id: $id) { ${M} } }`, St = `mutation CancelCrewEscrowRecord($id: ID!) { cancelCrewEscrowRecord(id: $id) { ${M} } }`, N = 100, Ct = 10, P = (e) => e.toUpperCase().replaceAll("-", "_"), F = {
5
5
  employee: ["status", "type"],
6
6
  department: ["status"],
7
7
  jobPosting: [
@@ -37,19 +37,19 @@ var r = "\n query CrewfoundryBootstrap {\n crewfoundryBootstrap {\n emp
37
37
  }, L = (e) => ({
38
38
  ...I(e, F.onboarding),
39
39
  tasks: (e.tasks ?? []).map((e) => I(e, F.onboardingTask))
40
- }), R = (e) => e ? e.slice(0, 10) : "TBD", lt = (e) => !e || typeof e != "object" || Array.isArray(e) ? null : e, z = (e) => typeof e == "number" ? e : null, B = (e) => typeof e == "string" ? e : null, ut = (e) => {
40
+ }), R = (e) => e ? e.slice(0, 10) : "TBD", wt = (e) => !e || typeof e != "object" || Array.isArray(e) ? null : e, z = (e) => typeof e == "number" ? e : null, B = (e) => typeof e == "string" ? e : null, Tt = (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
- }, dt = (e) => {
43
+ }, Et = (e) => {
44
44
  let t = e.toLowerCase();
45
45
  return t === "active" ? "active" : t === "inactive" || t === "archived" || t === "deleted" ? "disbanded" : "forming";
46
- }, ft = (e, t) => e.map((e, n) => {
47
- let r = lt(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
+ }, Dt = (e, t) => e.map((e, n) => {
47
+ let r = wt(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)];
48
48
  return {
49
49
  id: e.id,
50
50
  name: e.name,
51
51
  description: B(r?.description) || `${e.key} delivery plan`,
52
- status: ut(e.status),
52
+ status: Tt(e.status),
53
53
  priority: B(r?.priority)?.toLowerCase() || "medium",
54
54
  startDate: R(e.createdAt),
55
55
  endDate: R(e.updatedAt),
@@ -63,7 +63,7 @@ var r = "\n query CrewfoundryBootstrap {\n crewfoundryBootstrap {\n emp
63
63
  tasks: s,
64
64
  completedTasks: c
65
65
  };
66
- }), pt = (e) => e.map(({ node: e }) => ({
66
+ }), Ot = (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 r = "\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: dt(e.status),
75
+ status: Et(e.status),
76
76
  projectCount: 0,
77
77
  createdAt: R(e.createdAt)
78
- })), V = "/conversations", mt = (e) => e.filter(({ node: e }) => e.unreadCount > 0).map(({ node: e }) => ({
78
+ })), V = "/conversations", kt = (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`,
@@ -84,11 +84,11 @@ var r = "\n query CrewfoundryBootstrap {\n crewfoundryBootstrap {\n emp
84
84
  read: !1,
85
85
  createdAt: e.updatedAt,
86
86
  actionUrl: V
87
- })), ht = (e, t) => {
87
+ })), At = (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
- }, gt = new Set([
91
+ }, jt = new Set([
92
92
  "id",
93
93
  "createdAt",
94
94
  "createdOn",
@@ -110,36 +110,36 @@ var r = "\n query CrewfoundryBootstrap {\n crewfoundryBootstrap {\n emp
110
110
  "viewCount",
111
111
  "revenue",
112
112
  "projects"
113
- ]), _t = (e) => {
113
+ ]), Mt = (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)) gt.has(e) || (n[e] = r);
118
+ for (let [e, r] of Object.entries(t)) jt.has(e) || (n[e] = r);
119
119
  return {
120
120
  ...e,
121
121
  input: n
122
122
  };
123
- }, vt = (e) => /^\s*mutation\b/.test(e), H = async (e, r, i, a, o = "workspace") => {
124
- let s = ht(await n({
123
+ }, Nt = (e) => /^\s*mutation\b/.test(e), H = async (e, r, i, a, o = "workspace") => {
124
+ let s = At(await n({
125
125
  gateway: o,
126
126
  query: e,
127
- variables: _t(r),
127
+ variables: Mt(r),
128
128
  authToken: i.authToken,
129
129
  baseUrl: o === "workspace" ? i.apiGatewayUrl : void 0,
130
130
  extraHeaders: { ...o === "workspace" && i.workspaceId ? { "x-workspace-id": i.workspaceId } : {} }
131
131
  }), a);
132
- return vt(e) && t(), s;
133
- }, yt = () => !1, U = async (e, t, n, r, i = "workspace") => {
132
+ return Nt(e) && t(), s;
133
+ }, Pt = () => !1, U = async (e, t, n, r, i = "workspace") => {
134
134
  try {
135
135
  return await H(e, t, n, r, i);
136
136
  } catch (e) {
137
- return yt() && console.warn(`[crewfoundry] overlap query skipped: ${r}`, e), null;
137
+ return Pt() && console.warn(`[crewfoundry] overlap query skipped: ${r}`, e), null;
138
138
  }
139
139
  }, W = async (e, t, n, r, i) => {
140
140
  let a = i ? [...i] : [];
141
141
  if (i && i.length < N) return a;
142
- for (let o = +!!i; o < ct; o += 1) {
142
+ for (let o = +!!i; o < Ct; o += 1) {
143
143
  let i = (await H(e, { pagination: {
144
144
  limit: N,
145
145
  offset: o * N
@@ -150,7 +150,7 @@ var r = "\n query CrewfoundryBootstrap {\n crewfoundryBootstrap {\n emp
150
150
  }, G = {
151
151
  learning: 0,
152
152
  marketplace: 0
153
- }, 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(Ke, void 0, e, "Unable to load training completion"))?.crewTrainingCompletionDashboard ?? null, $ = e((e) => ({
153
+ }, 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(st, void 0, e, "Unable to load training completion"))?.crewTrainingCompletionDashboard ?? null, $ = e((e) => ({
154
154
  metrics: [
155
155
  {
156
156
  label: "Total Employees",
@@ -224,6 +224,10 @@ var r = "\n query CrewfoundryBootstrap {\n crewfoundryBootstrap {\n emp
224
224
  clients: [],
225
225
  employeeDocuments: [],
226
226
  employeeSkillProfiles: {},
227
+ skillsTaxonomy: [],
228
+ skillsTaxonomyLoaded: !1,
229
+ skillCategories: [],
230
+ candidateSkillProfiles: {},
227
231
  onboardings: [],
228
232
  onboardingsLoaded: !1,
229
233
  jobPostingMatches: {},
@@ -261,7 +265,7 @@ var r = "\n query CrewfoundryBootstrap {\n crewfoundryBootstrap {\n emp
261
265
  },
262
266
  groupFirst: 30,
263
267
  conversationFirst: 30
264
- }, t, "Unable to load workspace bootstrap with overlap data"), U(i, void 0, t, "Unable to load payroll records")]), s = n ? n.crewfoundryBootstrap : (await H(r, void 0, t, "Unable to load CrewFoundry data")).crewfoundryBootstrap, c = n ? pt(n.groups.edges) : [], l = n ? ft(n.projects.items, c) : [], u = n ? mt(n.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));
268
+ }, t, "Unable to load workspace bootstrap with overlap data"), U(i, void 0, t, "Unable to load payroll records")]), s = n ? n.crewfoundryBootstrap : (await H(r, void 0, t, "Unable to load CrewFoundry data")).crewfoundryBootstrap, c = n ? Ot(n.groups.edges) : [], l = n ? Dt(n.projects.items, c) : [], u = n ? kt(n.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));
265
269
  e({
266
270
  employees: m,
267
271
  departments: h,
@@ -581,7 +585,7 @@ var r = "\n query CrewfoundryBootstrap {\n crewfoundryBootstrap {\n emp
581
585
  let n = $.getState().initParams;
582
586
  e({ jobPostingMatchesLoading: !0 });
583
587
  try {
584
- let r = (await H(C, { jobPostingId: t }, n, "Unable to load candidate matches")).crewJobPostingMatches.map((e) => ({
588
+ let r = (await H(Oe, { jobPostingId: t }, n, "Unable to load candidate matches")).crewJobPostingMatches.map((e) => ({
585
589
  ...e,
586
590
  candidate: I(e.candidate, F.candidate)
587
591
  }));
@@ -648,11 +652,11 @@ var r = "\n query CrewfoundryBootstrap {\n crewfoundryBootstrap {\n emp
648
652
  }
649
653
  },
650
654
  fetchEmployeeDocuments: async (t) => {
651
- let n = $.getState().initParams, r = await H(T, { employeeId: t }, n, "Unable to load employee documents");
655
+ let n = $.getState().initParams, r = await H(w, { employeeId: t }, n, "Unable to load employee documents");
652
656
  e((e) => ({ employeeDocuments: [...e.employeeDocuments.filter((e) => e.employeeId !== t), ...r.employeeDocuments] }));
653
657
  },
654
658
  uploadEmployeeDocument: async ({ employeeId: t, file: n, title: r, category: i }) => {
655
- let a = $.getState().initParams, o = await H(Me, { 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(Ne, { input: {
659
+ let a = $.getState().initParams, o = await H(qe, { 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(Je, { input: {
656
660
  fileName: n.name,
657
661
  fileSize: String(n.size),
658
662
  mimeType: n.type || "application/octet-stream",
@@ -667,9 +671,9 @@ var r = "\n query CrewfoundryBootstrap {\n crewfoundryBootstrap {\n emp
667
671
  });
668
672
  if (!e.ok) throw Error(`Failed to upload file bytes (status ${e.status})`);
669
673
  }
670
- let l = await H(E, { input: {
674
+ let l = await H(T, { input: {
671
675
  employeeId: t,
672
- fileId: (await H(Pe, { input: {
676
+ fileId: (await H(Ye, { input: {
673
677
  sessionId: c.initiateUpload.session.id,
674
678
  fileSize: String(n.size),
675
679
  folderId: o.ensureFolderByPath.id
@@ -681,10 +685,10 @@ var r = "\n query CrewfoundryBootstrap {\n crewfoundryBootstrap {\n emp
681
685
  },
682
686
  detachEmployeeDocument: async (t) => {
683
687
  let n = $.getState().initParams;
684
- await H(Oe, { id: t }, n, "Unable to remove this document"), e((e) => ({ employeeDocuments: e.employeeDocuments.filter((e) => e.id !== t) }));
688
+ await H(ke, { id: t }, n, "Unable to remove this document"), e((e) => ({ employeeDocuments: e.employeeDocuments.filter((e) => e.id !== t) }));
685
689
  },
686
690
  fetchEmployeeSkillProfile: async (t) => {
687
- let n = $.getState().initParams, r = (await H(ke, { id: t }, n, "Unable to load skills")).crewEmployee;
691
+ let n = $.getState().initParams, r = (await H(Ae, { id: t }, n, "Unable to load skills")).crewEmployee;
688
692
  e((e) => ({
689
693
  employeeSkillProfiles: {
690
694
  ...e.employeeSkillProfiles,
@@ -698,7 +702,7 @@ var r = "\n query CrewfoundryBootstrap {\n crewfoundryBootstrap {\n emp
698
702
  },
699
703
  attachEmployeeSkill: async ({ employeeId: e, skillName: t, proficiency: n }) => {
700
704
  let r = $.getState().initParams;
701
- await H(Ae, { input: {
705
+ await H(je, { input: {
702
706
  employeeId: e,
703
707
  skillName: t,
704
708
  proficiency: n
@@ -706,24 +710,124 @@ var r = "\n query CrewfoundryBootstrap {\n crewfoundryBootstrap {\n emp
706
710
  },
707
711
  detachEmployeeSkill: async (e, t) => {
708
712
  let n = $.getState().initParams;
709
- await H(je, {
713
+ await H(Me, {
710
714
  employeeId: e,
711
715
  skillId: t
712
716
  }, n, "Unable to remove this skill"), await $.getState().fetchEmployeeSkillProfile(e);
713
717
  },
718
+ fetchSkillsTaxonomy: async () => {
719
+ let t = $.getState().initParams, [n, r] = await Promise.all([(async () => {
720
+ let e = [];
721
+ for (let n = 0; n < Ne; n += 1) {
722
+ let r = await H(Pe, { pagination: {
723
+ limit: E,
724
+ offset: n * E
725
+ } }, t, "Unable to load the skills taxonomy");
726
+ if (e.push(...r.crewSkills), r.crewSkills.length < E) break;
727
+ }
728
+ return e;
729
+ })(), H(Fe, void 0, t, "Unable to load skill categories")]);
730
+ e({
731
+ skillsTaxonomy: n,
732
+ skillsTaxonomyLoaded: !0,
733
+ skillCategories: r.crewSkillCategories
734
+ });
735
+ },
736
+ createTaxonomySkill: async ({ name: e, category: t, aliases: n, description: r }) => {
737
+ let i = $.getState().initParams;
738
+ await H(Ie, { input: {
739
+ name: e,
740
+ category: t,
741
+ aliases: n,
742
+ ...r ? { description: r } : {}
743
+ } }, i, "Unable to create this skill"), await $.getState().fetchSkillsTaxonomy();
744
+ },
745
+ updateTaxonomySkill: async (e, t) => {
746
+ let n = $.getState().initParams;
747
+ await H(Le, {
748
+ id: e,
749
+ input: t
750
+ }, n, "Unable to update this skill"), await $.getState().fetchSkillsTaxonomy();
751
+ },
752
+ mergeTaxonomySkills: async (e, t) => {
753
+ let n = $.getState().initParams, r = await H(Re, {
754
+ sourceId: e,
755
+ targetId: t
756
+ }, n, "Unable to merge these skills");
757
+ await $.getState().fetchSkillsTaxonomy();
758
+ let i = r.mergeCrewSkills;
759
+ return {
760
+ targetName: i.target.name,
761
+ employeesMoved: i.employeesMoved,
762
+ candidatesMoved: i.candidatesMoved,
763
+ jobPostingsMoved: i.jobPostingsMoved
764
+ };
765
+ },
766
+ removeTaxonomySkill: async (e) => {
767
+ let t = $.getState().initParams;
768
+ await H(ze, { id: e }, t, "Unable to remove this skill"), await $.getState().fetchSkillsTaxonomy();
769
+ },
770
+ createSkillRelation: async (e) => {
771
+ let t = $.getState().initParams;
772
+ await H(Be, { input: e }, t, "Unable to add this relation"), await $.getState().fetchSkillsTaxonomy();
773
+ },
774
+ removeSkillRelation: async (e) => {
775
+ let t = $.getState().initParams;
776
+ await H(Ve, { id: e }, t, "Unable to remove this relation"), await $.getState().fetchSkillsTaxonomy();
777
+ },
778
+ fetchEmployeesBySkill: async (e, t) => {
779
+ let n = $.getState().initParams;
780
+ return (await H(He, {
781
+ skillId: e,
782
+ minProficiency: t?.minProficiency ?? null,
783
+ limit: t?.limit ?? 50
784
+ }, n, "Unable to find people with this skill")).crewEmployeesBySkill;
785
+ },
786
+ fetchJobPostingSkillRequirements: async (e) => {
787
+ let t = $.getState().initParams;
788
+ return (await H(Ue, { id: e }, t, "Unable to load the skills this role needs")).crewJobPosting?.skillRequirements ?? [];
789
+ },
790
+ fetchCandidateSkillProfile: async (t) => {
791
+ let n = $.getState().initParams, r = (await H(We, { id: t }, n, "Unable to load skills")).crewCandidate;
792
+ e((e) => ({
793
+ candidateSkillProfiles: {
794
+ ...e.candidateSkillProfiles,
795
+ [t]: r?.skillProfile ?? []
796
+ },
797
+ candidates: r ? e.candidates.map((e) => e.id === t ? {
798
+ ...e,
799
+ skills: r.skills
800
+ } : e) : e.candidates
801
+ }));
802
+ },
803
+ attachCandidateSkill: async ({ candidateId: e, skillName: t, proficiency: n }) => {
804
+ let r = $.getState().initParams;
805
+ await H(Ge, { input: {
806
+ candidateId: e,
807
+ skillName: t,
808
+ proficiency: n
809
+ } }, r, "Unable to add this skill"), await $.getState().fetchCandidateSkillProfile(e);
810
+ },
811
+ detachCandidateSkill: async (e, t) => {
812
+ let n = $.getState().initParams;
813
+ await H(Ke, {
814
+ candidateId: e,
815
+ skillId: t
816
+ }, n, "Unable to remove this skill"), await $.getState().fetchCandidateSkillProfile(e);
817
+ },
714
818
  fetchOnboardings: async () => {
715
819
  let t = $.getState().initParams;
716
820
  e({
717
- onboardings: (await H(Fe, {}, t, "Unable to load onboarding")).crewOnboardings.map(L),
821
+ onboardings: (await H(Xe, {}, t, "Unable to load onboarding")).crewOnboardings.map(L),
718
822
  onboardingsLoaded: !0
719
823
  });
720
824
  },
721
825
  createOnboarding: async (t) => {
722
- let n = $.getState().initParams, r = await H(Ie, { input: t }, n, "Unable to start onboarding");
826
+ let n = $.getState().initParams, r = await H(Ze, { input: t }, n, "Unable to start onboarding");
723
827
  e((e) => ({ onboardings: [L(r.createCrewOnboarding), ...e.onboardings] }));
724
828
  },
725
829
  updateOnboarding: async (t, n) => {
726
- let r = $.getState().initParams, i = await H(Le, {
830
+ let r = $.getState().initParams, i = await H(Qe, {
727
831
  id: t,
728
832
  input: n
729
833
  }, r, "Unable to update onboarding");
@@ -731,10 +835,10 @@ var r = "\n query CrewfoundryBootstrap {\n crewfoundryBootstrap {\n emp
731
835
  },
732
836
  removeOnboarding: async (t) => {
733
837
  let n = $.getState().initParams;
734
- await H(Re, { id: t }, n, "Unable to remove onboarding"), e((e) => ({ onboardings: e.onboardings.filter((e) => e.id !== t) }));
838
+ await H($e, { id: t }, n, "Unable to remove onboarding"), e((e) => ({ onboardings: e.onboardings.filter((e) => e.id !== t) }));
735
839
  },
736
840
  createOnboardingTask: async (t) => {
737
- let n = $.getState().initParams, r = I((await H(ze, { input: t }, n, "Unable to create onboarding task")).createCrewOnboardingTask, F.onboardingTask);
841
+ let n = $.getState().initParams, r = I((await H(et, { input: t }, n, "Unable to create onboarding task")).createCrewOnboardingTask, F.onboardingTask);
738
842
  e((e) => ({ onboardings: e.onboardings.map((e) => e.id === r.onboardingId ? {
739
843
  ...e,
740
844
  tasks: [...e.tasks, r],
@@ -742,7 +846,7 @@ var r = "\n query CrewfoundryBootstrap {\n crewfoundryBootstrap {\n emp
742
846
  } : e) }));
743
847
  },
744
848
  updateOnboardingTask: async (t, n) => {
745
- let r = $.getState().initParams, i = I((await H(Be, {
849
+ let r = $.getState().initParams, i = I((await H(tt, {
746
850
  id: t,
747
851
  input: n
748
852
  }, r, "Unable to update onboarding task")).updateCrewOnboardingTask, F.onboardingTask);
@@ -753,14 +857,14 @@ var r = "\n query CrewfoundryBootstrap {\n crewfoundryBootstrap {\n emp
753
857
  },
754
858
  removeOnboardingTask: async (t) => {
755
859
  let n = $.getState().initParams;
756
- await H(Ve, { id: t }, n, "Unable to remove onboarding task"), e((e) => ({ onboardings: e.onboardings.map((e) => e.tasks.some((e) => e.id === t) ? {
860
+ await H(nt, { id: t }, n, "Unable to remove onboarding task"), e((e) => ({ onboardings: e.onboardings.map((e) => e.tasks.some((e) => e.id === t) ? {
757
861
  ...e,
758
862
  tasks: e.tasks.filter((e) => e.id !== t),
759
863
  totalTaskCount: Math.max(0, e.totalTaskCount - 1)
760
864
  } : e) }));
761
865
  },
762
866
  toggleOnboardingTask: async (t, n) => {
763
- let r = $.getState().initParams, i = I((await H(He, {
867
+ let r = $.getState().initParams, i = I((await H(rt, {
764
868
  id: t,
765
869
  completed: n
766
870
  }, r, "Unable to update onboarding task")).toggleCrewOnboardingTask, F.onboardingTask);
@@ -778,7 +882,7 @@ var r = "\n query CrewfoundryBootstrap {\n crewfoundryBootstrap {\n emp
778
882
  fetchSkillsGap: async () => {
779
883
  let t = $.getState().initParams;
780
884
  e({
781
- skillsGap: (await H(w, void 0, t, "Unable to load skills coverage")).crewSkillsGap,
885
+ skillsGap: (await H(C, void 0, t, "Unable to load skills coverage")).crewSkillsGap,
782
886
  skillsGapLoaded: !0
783
887
  });
784
888
  },
@@ -788,10 +892,10 @@ var r = "\n query CrewfoundryBootstrap {\n crewfoundryBootstrap {\n emp
788
892
  offset: 0
789
893
  };
790
894
  for (let r = 1; r <= K; r += 1) {
791
- let i = G.learning, a = await H(Ue, {
895
+ let i = G.learning, a = await H(it, {
792
896
  coursePage: n,
793
897
  enrollmentPage: n
794
- }, t, "Unable to load learning"), [o, s] = await Promise.all([W(We, "crewTrainingCourses", t, "Unable to load courses", a.crewTrainingCourses), W(Ge, "crewEnrollments", t, "Unable to load enrollments", a.crewEnrollments)]);
898
+ }, t, "Unable to load learning"), [o, s] = await Promise.all([W(at, "crewTrainingCourses", t, "Unable to load courses", a.crewTrainingCourses), W(ot, "crewEnrollments", t, "Unable to load enrollments", a.crewEnrollments)]);
795
899
  if (!(i !== G.learning && r < K)) {
796
900
  e({
797
901
  trainingCourses: o,
@@ -804,11 +908,11 @@ var r = "\n query CrewfoundryBootstrap {\n crewfoundryBootstrap {\n emp
804
908
  }
805
909
  },
806
910
  createTrainingCourse: async (t) => {
807
- let n = $.getState().initParams, r = (await H(qe, { input: t }, n, "Unable to create course")).createCrewTrainingCourse;
911
+ let n = $.getState().initParams, r = (await H(ct, { input: t }, n, "Unable to create course")).createCrewTrainingCourse;
808
912
  return G.learning += 1, e((e) => ({ trainingCourses: [r, ...e.trainingCourses] })), r;
809
913
  },
810
914
  updateTrainingCourse: async (t, n) => {
811
- let r = $.getState().initParams, i = await H(k, {
915
+ let r = $.getState().initParams, i = await H(lt, {
812
916
  id: t,
813
917
  input: n
814
918
  }, r, "Unable to update course");
@@ -816,13 +920,13 @@ var r = "\n query CrewfoundryBootstrap {\n crewfoundryBootstrap {\n emp
816
920
  },
817
921
  removeTrainingCourse: async (t) => {
818
922
  let n = $.getState().initParams;
819
- await H(Je, { id: t }, n, "Unable to remove course"), G.learning += 1, e((e) => ({
923
+ await H(k, { id: t }, n, "Unable to remove course"), G.learning += 1, e((e) => ({
820
924
  trainingCourses: e.trainingCourses.filter((e) => e.id !== t),
821
925
  trainingCompletion: e.trainingCompletion.filter((e) => e.courseId !== t)
822
926
  }));
823
927
  },
824
928
  enrollEmployee: async (t, n) => {
825
- let r = $.getState().initParams, i = q((await H(Ye, { input: {
929
+ let r = $.getState().initParams, i = q((await H(ut, { input: {
826
930
  courseId: t,
827
931
  employeeId: n.id,
828
932
  employeeName: `${n.firstName} ${n.lastName}`.trim()
@@ -832,7 +936,7 @@ var r = "\n query CrewfoundryBootstrap {\n crewfoundryBootstrap {\n emp
832
936
  a && e({ trainingCompletion: a });
833
937
  },
834
938
  updateEnrollmentStatus: async (t, n) => {
835
- let r = $.getState().initParams, i = await H(Xe, {
939
+ let r = $.getState().initParams, i = await H(dt, {
836
940
  id: t,
837
941
  status: P(n)
838
942
  }, r, "Unable to update enrollment");
@@ -842,14 +946,14 @@ var r = "\n query CrewfoundryBootstrap {\n crewfoundryBootstrap {\n emp
842
946
  },
843
947
  removeEnrollment: async (t) => {
844
948
  let n = $.getState().initParams;
845
- await H(Ze, { id: t }, n, "Unable to remove enrollment"), G.learning += 1, e((e) => ({ enrollments: e.enrollments.filter((e) => e.id !== t) }));
949
+ await H(ft, { id: t }, n, "Unable to remove enrollment"), G.learning += 1, e((e) => ({ enrollments: e.enrollments.filter((e) => e.id !== t) }));
846
950
  let r = await Q(n);
847
951
  r && e({ trainingCompletion: r });
848
952
  },
849
953
  fetchMarketplace: async () => {
850
954
  let t = $.getState().initParams;
851
955
  for (let n = 1; n <= K; n += 1) {
852
- 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")]);
956
+ let r = G.marketplace, [i, a] = await Promise.all([W(pt, "crewServiceListings", t, "Unable to load marketplace services"), W(mt, "crewBookings", t, "Unable to load bookings")]);
853
957
  if (!(r !== G.marketplace && n < K)) {
854
958
  e({
855
959
  serviceListings: i.map(J),
@@ -861,11 +965,11 @@ var r = "\n query CrewfoundryBootstrap {\n crewfoundryBootstrap {\n emp
861
965
  }
862
966
  },
863
967
  createServiceListing: async (t) => {
864
- let n = $.getState().initParams, r = J((await H(tt, { input: t }, n, "Unable to publish service")).createCrewServiceListing);
968
+ let n = $.getState().initParams, r = J((await H(gt, { input: t }, n, "Unable to publish service")).createCrewServiceListing);
865
969
  return G.marketplace += 1, e((e) => ({ serviceListings: [r, ...e.serviceListings] })), r;
866
970
  },
867
971
  updateServiceListing: async (t, n) => {
868
- let r = $.getState().initParams, i = await H(nt, {
972
+ let r = $.getState().initParams, i = await H(_t, {
869
973
  id: t,
870
974
  input: n.status ? {
871
975
  ...n,
@@ -876,17 +980,17 @@ var r = "\n query CrewfoundryBootstrap {\n crewfoundryBootstrap {\n emp
876
980
  },
877
981
  removeServiceListing: async (t) => {
878
982
  let n = $.getState().initParams;
879
- await H(rt, { id: t }, n, "Unable to remove service"), G.marketplace += 1, e((e) => ({ serviceListings: e.serviceListings.filter((e) => e.id !== t) }));
983
+ await H(vt, { id: t }, n, "Unable to remove service"), G.marketplace += 1, e((e) => ({ serviceListings: e.serviceListings.filter((e) => e.id !== t) }));
880
984
  },
881
985
  bookServiceListing: async (t) => {
882
- let n = $.getState().initParams, r = Y((await H(it, { input: t }, n, "Unable to book service")).createCrewBooking);
986
+ let n = $.getState().initParams, r = Y((await H(yt, { input: t }, n, "Unable to book service")).createCrewBooking);
883
987
  return G.marketplace += 1, e((e) => ({
884
988
  bookings: [r, ...e.bookings],
885
989
  escrowLoaded: !1
886
990
  })), r;
887
991
  },
888
992
  updateBookingStatus: async (t, n) => {
889
- let r = $.getState().initParams, i = await H(at, {
993
+ let r = $.getState().initParams, i = await H(bt, {
890
994
  id: t,
891
995
  status: P(n)
892
996
  }, r, "Unable to update booking");
@@ -899,7 +1003,7 @@ var r = "\n query CrewfoundryBootstrap {\n crewfoundryBootstrap {\n emp
899
1003
  let t = $.getState().initParams;
900
1004
  try {
901
1005
  e({
902
- escrowRecords: (await W(et, "crewEscrowRecords", t, "Unable to load escrow records")).map(X),
1006
+ escrowRecords: (await W(ht, "crewEscrowRecords", t, "Unable to load escrow records")).map(X),
903
1007
  escrowLoaded: !0,
904
1008
  escrowError: null
905
1009
  });
@@ -912,11 +1016,11 @@ var r = "\n query CrewfoundryBootstrap {\n crewfoundryBootstrap {\n emp
912
1016
  }
913
1017
  },
914
1018
  releaseEscrowRecord: async (t) => {
915
- let n = $.getState().initParams, r = await H(ot, { id: t }, n, "Unable to release escrow");
1019
+ let n = $.getState().initParams, r = await H(xt, { id: t }, n, "Unable to release escrow");
916
1020
  e((e) => ({ escrowRecords: Z(e.escrowRecords, X(r.releaseCrewEscrowRecord)) }));
917
1021
  },
918
1022
  cancelEscrowRecord: async (t) => {
919
- let n = $.getState().initParams, r = await H(st, { id: t }, n, "Unable to cancel escrow");
1023
+ let n = $.getState().initParams, r = await H(St, { id: t }, n, "Unable to cancel escrow");
920
1024
  e((e) => ({ escrowRecords: Z(e.escrowRecords, X(r.cancelCrewEscrowRecord)) }));
921
1025
  }
922
1026
  }));