@burdenoff/microfe-crewfoundry 2026.1030.1 → 2026.1030.3
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.
- package/dist/crewfoundry/components/EmployeeSkillsPanel.d.ts +12 -0
- package/dist/crewfoundry/components/EmployeeSkillsPanel.d.ts.map +1 -0
- package/dist/crewfoundry/components/EmployeeSkillsPanel.js +168 -0
- package/dist/crewfoundry/components/EmployeeSkillsPanel.js.map +1 -0
- package/dist/crewfoundry/pages/HrEmployeeProfilePagePage.d.ts.map +1 -1
- package/dist/crewfoundry/pages/HrEmployeeProfilePagePage.js +124 -134
- package/dist/crewfoundry/pages/HrEmployeeProfilePagePage.js.map +1 -1
- package/dist/crewfoundry/store/crewfoundryStore.d.ts +22 -0
- package/dist/crewfoundry/store/crewfoundryStore.d.ts.map +1 -1
- package/dist/crewfoundry/store/crewfoundryStore.js +135 -103
- package/dist/crewfoundry/store/crewfoundryStore.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { create as e } from "zustand";
|
|
2
|
-
import {
|
|
2
|
+
import { clearGraphqlFetchResponseCache as t, graphqlFetch as n } 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 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 = {
|
|
5
5
|
employee: ["status", "type"],
|
|
6
6
|
department: ["status"],
|
|
7
7
|
jobPosting: [
|
|
@@ -37,19 +37,19 @@ var n = "\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",
|
|
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) => {
|
|
41
41
|
let t = e.toLowerCase();
|
|
42
42
|
return t === "active" ? "active" : t === "completed" ? "completed" : t === "cancelled" ? "cancelled" : t === "archived" ? "on_hold" : "planning";
|
|
43
|
-
},
|
|
43
|
+
}, dt = (e) => {
|
|
44
44
|
let t = e.toLowerCase();
|
|
45
45
|
return t === "active" ? "active" : t === "inactive" || t === "archived" || t === "deleted" ? "disbanded" : "forming";
|
|
46
|
-
},
|
|
47
|
-
let r =
|
|
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)];
|
|
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:
|
|
52
|
+
status: ut(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 n = "\n query CrewfoundryBootstrap {\n crewfoundryBootstrap {\n emp
|
|
|
63
63
|
tasks: s,
|
|
64
64
|
completedTasks: c
|
|
65
65
|
};
|
|
66
|
-
}),
|
|
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:
|
|
75
|
+
status: dt(e.status),
|
|
76
76
|
projectCount: 0,
|
|
77
77
|
createdAt: R(e.createdAt)
|
|
78
|
-
})), V = "/conversations",
|
|
78
|
+
})), V = "/conversations", mt = (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 n = "\n query CrewfoundryBootstrap {\n crewfoundryBootstrap {\n emp
|
|
|
84
84
|
read: !1,
|
|
85
85
|
createdAt: e.updatedAt,
|
|
86
86
|
actionUrl: V
|
|
87
|
-
})),
|
|
87
|
+
})), ht = (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
|
-
},
|
|
91
|
+
}, gt = new Set([
|
|
92
92
|
"id",
|
|
93
93
|
"createdAt",
|
|
94
94
|
"createdOn",
|
|
@@ -110,33 +110,36 @@ var n = "\n query CrewfoundryBootstrap {\n crewfoundryBootstrap {\n emp
|
|
|
110
110
|
"viewCount",
|
|
111
111
|
"revenue",
|
|
112
112
|
"projects"
|
|
113
|
-
]),
|
|
113
|
+
]), _t = (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))
|
|
118
|
+
for (let [e, r] of Object.entries(t)) gt.has(e) || (n[e] = r);
|
|
119
119
|
return {
|
|
120
120
|
...e,
|
|
121
121
|
input: n
|
|
122
122
|
};
|
|
123
|
-
}, H = async (e,
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
123
|
+
}, vt = (e) => /^\s*mutation\b/.test(e), H = async (e, r, i, a, o = "workspace") => {
|
|
124
|
+
let s = ht(await n({
|
|
125
|
+
gateway: o,
|
|
126
|
+
query: e,
|
|
127
|
+
variables: _t(r),
|
|
128
|
+
authToken: i.authToken,
|
|
129
|
+
baseUrl: o === "workspace" ? i.apiGatewayUrl : void 0,
|
|
130
|
+
extraHeaders: { ...o === "workspace" && i.workspaceId ? { "x-workspace-id": i.workspaceId } : {} }
|
|
131
|
+
}), a);
|
|
132
|
+
return vt(e) && t(), s;
|
|
133
|
+
}, yt = () => !1, U = async (e, t, n, r, i = "workspace") => {
|
|
131
134
|
try {
|
|
132
135
|
return await H(e, t, n, r, i);
|
|
133
136
|
} catch (e) {
|
|
134
|
-
return
|
|
137
|
+
return yt() && console.warn(`[crewfoundry] overlap query skipped: ${r}`, e), null;
|
|
135
138
|
}
|
|
136
139
|
}, W = async (e, t, n, r, i) => {
|
|
137
140
|
let a = i ? [...i] : [];
|
|
138
141
|
if (i && i.length < N) return a;
|
|
139
|
-
for (let o = +!!i; o <
|
|
142
|
+
for (let o = +!!i; o < ct; o += 1) {
|
|
140
143
|
let i = (await H(e, { pagination: {
|
|
141
144
|
limit: N,
|
|
142
145
|
offset: o * N
|
|
@@ -147,7 +150,7 @@ var n = "\n query CrewfoundryBootstrap {\n crewfoundryBootstrap {\n emp
|
|
|
147
150
|
}, G = {
|
|
148
151
|
learning: 0,
|
|
149
152
|
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(
|
|
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) => ({
|
|
151
154
|
metrics: [
|
|
152
155
|
{
|
|
153
156
|
label: "Total Employees",
|
|
@@ -220,6 +223,7 @@ var n = "\n query CrewfoundryBootstrap {\n crewfoundryBootstrap {\n emp
|
|
|
220
223
|
vendors: [],
|
|
221
224
|
clients: [],
|
|
222
225
|
employeeDocuments: [],
|
|
226
|
+
employeeSkillProfiles: {},
|
|
223
227
|
onboardings: [],
|
|
224
228
|
onboardingsLoaded: !1,
|
|
225
229
|
jobPostingMatches: {},
|
|
@@ -249,7 +253,7 @@ var n = "\n query CrewfoundryBootstrap {\n crewfoundryBootstrap {\n emp
|
|
|
249
253
|
initParams: t
|
|
250
254
|
});
|
|
251
255
|
try {
|
|
252
|
-
let [
|
|
256
|
+
let [n, o] = await Promise.all([U(a, {
|
|
253
257
|
workspaceId: t.workspaceId,
|
|
254
258
|
projectPagination: {
|
|
255
259
|
limit: 50,
|
|
@@ -257,7 +261,7 @@ var n = "\n query CrewfoundryBootstrap {\n crewfoundryBootstrap {\n emp
|
|
|
257
261
|
},
|
|
258
262
|
groupFirst: 30,
|
|
259
263
|
conversationFirst: 30
|
|
260
|
-
}, t, "Unable to load workspace bootstrap with overlap data"), U(
|
|
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));
|
|
261
265
|
e({
|
|
262
266
|
employees: m,
|
|
263
267
|
departments: h,
|
|
@@ -309,7 +313,7 @@ var n = "\n query CrewfoundryBootstrap {\n crewfoundryBootstrap {\n emp
|
|
|
309
313
|
setSelectedView: (t) => e({ selectedView: t }),
|
|
310
314
|
setWorkItems: (t) => e({ workItems: t }),
|
|
311
315
|
addEmployee: async (t) => {
|
|
312
|
-
let n = $.getState().initParams, r = await H(
|
|
316
|
+
let n = $.getState().initParams, r = await H(o, { input: {
|
|
313
317
|
...t,
|
|
314
318
|
status: P(t.status),
|
|
315
319
|
type: P(t.type)
|
|
@@ -317,7 +321,7 @@ var n = "\n query CrewfoundryBootstrap {\n crewfoundryBootstrap {\n emp
|
|
|
317
321
|
e((e) => ({ employees: [I(r.createCrewEmployee, F.employee), ...e.employees] }));
|
|
318
322
|
},
|
|
319
323
|
updateEmployee: async (t, n) => {
|
|
320
|
-
let r = $.getState().initParams, i = await H(
|
|
324
|
+
let r = $.getState().initParams, i = await H(s, {
|
|
321
325
|
id: t,
|
|
322
326
|
input: {
|
|
323
327
|
...n,
|
|
@@ -329,17 +333,17 @@ var n = "\n query CrewfoundryBootstrap {\n crewfoundryBootstrap {\n emp
|
|
|
329
333
|
},
|
|
330
334
|
removeEmployee: async (t) => {
|
|
331
335
|
let n = $.getState().initParams;
|
|
332
|
-
await H(
|
|
336
|
+
await H(c, { id: t }, n, "Unable to remove employee"), e((e) => ({ employees: e.employees.filter((e) => e.id !== t) }));
|
|
333
337
|
},
|
|
334
338
|
addJobPosting: async (t) => {
|
|
335
|
-
let n = $.getState().initParams, r = await H(
|
|
339
|
+
let n = $.getState().initParams, r = await H(l, { input: {
|
|
336
340
|
...t,
|
|
337
341
|
status: P(t.status)
|
|
338
342
|
} }, n, "Unable to create job posting");
|
|
339
343
|
e((e) => ({ jobPostings: [I(r.createCrewJobPosting, F.jobPosting), ...e.jobPostings] }));
|
|
340
344
|
},
|
|
341
345
|
updateJobPosting: async (t, n) => {
|
|
342
|
-
let r = $.getState().initParams, i = await H(
|
|
346
|
+
let r = $.getState().initParams, i = await H(u, {
|
|
343
347
|
id: t,
|
|
344
348
|
input: {
|
|
345
349
|
...n,
|
|
@@ -349,14 +353,14 @@ var n = "\n query CrewfoundryBootstrap {\n crewfoundryBootstrap {\n emp
|
|
|
349
353
|
e((e) => ({ jobPostings: e.jobPostings.map((e) => e.id === t ? I(i.updateCrewJobPosting, F.jobPosting) : e) }));
|
|
350
354
|
},
|
|
351
355
|
addCandidate: async (t) => {
|
|
352
|
-
let n = $.getState().initParams, r = await H(
|
|
356
|
+
let n = $.getState().initParams, r = await H(d, { input: {
|
|
353
357
|
...t,
|
|
354
358
|
status: P(t.status)
|
|
355
359
|
} }, n, "Unable to create candidate");
|
|
356
360
|
e((e) => ({ candidates: [I(r.createCrewCandidate, F.candidate), ...e.candidates] }));
|
|
357
361
|
},
|
|
358
362
|
updateCandidate: async (t, n) => {
|
|
359
|
-
let r = $.getState().initParams, i = await H(
|
|
363
|
+
let r = $.getState().initParams, i = await H(f, {
|
|
360
364
|
id: t,
|
|
361
365
|
input: {
|
|
362
366
|
...n,
|
|
@@ -366,11 +370,11 @@ var n = "\n query CrewfoundryBootstrap {\n crewfoundryBootstrap {\n emp
|
|
|
366
370
|
e((e) => ({ candidates: e.candidates.map((e) => e.id === t ? I(i.updateCrewCandidate, F.candidate) : e) }));
|
|
367
371
|
},
|
|
368
372
|
addAnnouncement: async (t) => {
|
|
369
|
-
let n = $.getState().initParams, r = await H(
|
|
373
|
+
let n = $.getState().initParams, r = await H(p, { input: t }, n, "Unable to create announcement");
|
|
370
374
|
e((e) => ({ announcements: [I(r.createCrewAnnouncement, F.announcement), ...e.announcements] }));
|
|
371
375
|
},
|
|
372
376
|
addLeaveRequest: async (t) => {
|
|
373
|
-
let n = $.getState().initParams, r = await H(
|
|
377
|
+
let n = $.getState().initParams, r = await H(m, { input: {
|
|
374
378
|
...t,
|
|
375
379
|
type: P(t.type),
|
|
376
380
|
status: P(t.status)
|
|
@@ -378,7 +382,7 @@ var n = "\n query CrewfoundryBootstrap {\n crewfoundryBootstrap {\n emp
|
|
|
378
382
|
e((e) => ({ leaveRequests: [I(r.createCrewLeaveRequest, F.leaveRequest), ...e.leaveRequests] }));
|
|
379
383
|
},
|
|
380
384
|
updateLeaveRequest: async (t, n) => {
|
|
381
|
-
let r = $.getState().initParams, i = await H(
|
|
385
|
+
let r = $.getState().initParams, i = await H(h, {
|
|
382
386
|
id: t,
|
|
383
387
|
input: {
|
|
384
388
|
...n,
|
|
@@ -402,14 +406,14 @@ var n = "\n query CrewfoundryBootstrap {\n crewfoundryBootstrap {\n emp
|
|
|
402
406
|
},
|
|
403
407
|
removeJobPosting: async (t) => {
|
|
404
408
|
let n = $.getState().initParams;
|
|
405
|
-
await H(
|
|
409
|
+
await H(g, { id: t }, n, "Unable to remove job posting"), e((e) => ({ jobPostings: e.jobPostings.filter((e) => e.id !== t) }));
|
|
406
410
|
},
|
|
407
411
|
removeCandidate: async (t) => {
|
|
408
412
|
let n = $.getState().initParams;
|
|
409
|
-
await H(
|
|
413
|
+
await H(_, { id: t }, n, "Unable to remove candidate"), e((e) => ({ candidates: e.candidates.filter((e) => e.id !== t) }));
|
|
410
414
|
},
|
|
411
415
|
updateAnnouncement: async (t, n) => {
|
|
412
|
-
let r = $.getState().initParams, i = await H(
|
|
416
|
+
let r = $.getState().initParams, i = await H(v, {
|
|
413
417
|
id: t,
|
|
414
418
|
input: n
|
|
415
419
|
}, r, "Unable to update announcement");
|
|
@@ -417,10 +421,10 @@ var n = "\n query CrewfoundryBootstrap {\n crewfoundryBootstrap {\n emp
|
|
|
417
421
|
},
|
|
418
422
|
removeAnnouncement: async (t) => {
|
|
419
423
|
let n = $.getState().initParams;
|
|
420
|
-
await H(
|
|
424
|
+
await H(y, { id: t }, n, "Unable to remove announcement"), e((e) => ({ announcements: e.announcements.filter((e) => e.id !== t) }));
|
|
421
425
|
},
|
|
422
426
|
addInterview: async (t) => {
|
|
423
|
-
let n = $.getState().initParams, r = await H(
|
|
427
|
+
let n = $.getState().initParams, r = await H(b, { input: {
|
|
424
428
|
...t,
|
|
425
429
|
type: P(t.type),
|
|
426
430
|
status: P(t.status)
|
|
@@ -428,7 +432,7 @@ var n = "\n query CrewfoundryBootstrap {\n crewfoundryBootstrap {\n emp
|
|
|
428
432
|
e((e) => ({ interviews: [I(r.createCrewInterview, F.interview), ...e.interviews] }));
|
|
429
433
|
},
|
|
430
434
|
updateInterview: async (t, n) => {
|
|
431
|
-
let r = $.getState().initParams, i = await H(
|
|
435
|
+
let r = $.getState().initParams, i = await H(x, {
|
|
432
436
|
id: t,
|
|
433
437
|
input: {
|
|
434
438
|
...n,
|
|
@@ -440,17 +444,17 @@ var n = "\n query CrewfoundryBootstrap {\n crewfoundryBootstrap {\n emp
|
|
|
440
444
|
},
|
|
441
445
|
removeInterview: async (t) => {
|
|
442
446
|
let n = $.getState().initParams;
|
|
443
|
-
await H(
|
|
447
|
+
await H(ee, { id: t }, n, "Unable to remove interview"), e((e) => ({ interviews: e.interviews.filter((e) => e.id !== t) }));
|
|
444
448
|
},
|
|
445
449
|
addVendor: async (t) => {
|
|
446
|
-
let n = $.getState().initParams, r = await H(
|
|
450
|
+
let n = $.getState().initParams, r = await H(te, { input: {
|
|
447
451
|
...t,
|
|
448
452
|
status: P(t.status)
|
|
449
453
|
} }, n, "Unable to create vendor");
|
|
450
454
|
e((e) => ({ vendors: [I(r.createCrewVendor, F.vendor), ...e.vendors] }));
|
|
451
455
|
},
|
|
452
456
|
updateVendor: async (t, n) => {
|
|
453
|
-
let r = $.getState().initParams, i = await H(
|
|
457
|
+
let r = $.getState().initParams, i = await H(ne, {
|
|
454
458
|
id: t,
|
|
455
459
|
input: {
|
|
456
460
|
...n,
|
|
@@ -461,17 +465,17 @@ var n = "\n query CrewfoundryBootstrap {\n crewfoundryBootstrap {\n emp
|
|
|
461
465
|
},
|
|
462
466
|
removeVendor: async (t) => {
|
|
463
467
|
let n = $.getState().initParams;
|
|
464
|
-
await H(
|
|
468
|
+
await H(re, { id: t }, n, "Unable to remove vendor"), e((e) => ({ vendors: e.vendors.filter((e) => e.id !== t) }));
|
|
465
469
|
},
|
|
466
470
|
addClient: async (t) => {
|
|
467
|
-
let n = $.getState().initParams, r = await H(
|
|
471
|
+
let n = $.getState().initParams, r = await H(ie, { input: {
|
|
468
472
|
...t,
|
|
469
473
|
status: P(t.status)
|
|
470
474
|
} }, n, "Unable to create client");
|
|
471
475
|
e((e) => ({ clients: [I(r.createCrewClient, F.client), ...e.clients] }));
|
|
472
476
|
},
|
|
473
477
|
updateClient: async (t, n) => {
|
|
474
|
-
let r = $.getState().initParams, i = await H(
|
|
478
|
+
let r = $.getState().initParams, i = await H(ae, {
|
|
475
479
|
id: t,
|
|
476
480
|
input: {
|
|
477
481
|
...n,
|
|
@@ -482,14 +486,14 @@ var n = "\n query CrewfoundryBootstrap {\n crewfoundryBootstrap {\n emp
|
|
|
482
486
|
},
|
|
483
487
|
removeClient: async (t) => {
|
|
484
488
|
let n = $.getState().initParams;
|
|
485
|
-
await H(
|
|
489
|
+
await H(oe, { id: t }, n, "Unable to remove client"), e((e) => ({ clients: e.clients.filter((e) => e.id !== t) }));
|
|
486
490
|
},
|
|
487
491
|
addTeam: async (t) => {
|
|
488
|
-
let n = $.getState().initParams, r = await H(
|
|
492
|
+
let n = $.getState().initParams, r = await H(se, { input: t }, n, "Unable to create team");
|
|
489
493
|
e((e) => ({ teams: [I(r.createCrewTeam, F.team), ...e.teams] }));
|
|
490
494
|
},
|
|
491
495
|
updateTeam: async (t, n) => {
|
|
492
|
-
let r = $.getState().initParams, i = await H(
|
|
496
|
+
let r = $.getState().initParams, i = await H(ce, {
|
|
493
497
|
id: t,
|
|
494
498
|
input: n
|
|
495
499
|
}, r, "Unable to update team");
|
|
@@ -497,10 +501,10 @@ var n = "\n query CrewfoundryBootstrap {\n crewfoundryBootstrap {\n emp
|
|
|
497
501
|
},
|
|
498
502
|
removeTeam: async (t) => {
|
|
499
503
|
let n = $.getState().initParams;
|
|
500
|
-
await H(
|
|
504
|
+
await H(le, { id: t }, n, "Unable to remove team"), e((e) => ({ teams: e.teams.filter((e) => e.id !== t) }));
|
|
501
505
|
},
|
|
502
506
|
addProject: async (t) => {
|
|
503
|
-
let n = $.getState().initParams, r = await H(
|
|
507
|
+
let n = $.getState().initParams, r = await H(ue, { input: {
|
|
504
508
|
...t,
|
|
505
509
|
status: P(t.status),
|
|
506
510
|
priority: P(t.priority)
|
|
@@ -508,7 +512,7 @@ var n = "\n query CrewfoundryBootstrap {\n crewfoundryBootstrap {\n emp
|
|
|
508
512
|
e((e) => ({ projects: [I(r.createCrewProject, F.project), ...e.projects] }));
|
|
509
513
|
},
|
|
510
514
|
updateProject: async (t, n) => {
|
|
511
|
-
let r = $.getState().initParams, i = await H(
|
|
515
|
+
let r = $.getState().initParams, i = await H(de, {
|
|
512
516
|
id: t,
|
|
513
517
|
input: {
|
|
514
518
|
...n,
|
|
@@ -520,14 +524,14 @@ var n = "\n query CrewfoundryBootstrap {\n crewfoundryBootstrap {\n emp
|
|
|
520
524
|
},
|
|
521
525
|
removeProject: async (t) => {
|
|
522
526
|
let n = $.getState().initParams;
|
|
523
|
-
await H(
|
|
527
|
+
await H(fe, { id: t }, n, "Unable to remove project"), e((e) => ({ projects: e.projects.filter((e) => e.id !== t) }));
|
|
524
528
|
},
|
|
525
529
|
addDepartment: async (t) => {
|
|
526
|
-
let n = $.getState().initParams, r = await H(
|
|
530
|
+
let n = $.getState().initParams, r = await H(pe, { input: t }, n, "Unable to create department");
|
|
527
531
|
e((e) => ({ departments: [I(r.createCrewDepartment, F.department), ...e.departments] }));
|
|
528
532
|
},
|
|
529
533
|
updateDepartment: async (t, n) => {
|
|
530
|
-
let r = $.getState().initParams, i = await H(
|
|
534
|
+
let r = $.getState().initParams, i = await H(me, {
|
|
531
535
|
id: t,
|
|
532
536
|
input: n
|
|
533
537
|
}, r, "Unable to update department");
|
|
@@ -535,17 +539,17 @@ var n = "\n query CrewfoundryBootstrap {\n crewfoundryBootstrap {\n emp
|
|
|
535
539
|
},
|
|
536
540
|
removeDepartment: async (t) => {
|
|
537
541
|
let n = $.getState().initParams;
|
|
538
|
-
await H(
|
|
542
|
+
await H(he, { id: t }, n, "Unable to remove department"), e((e) => ({ departments: e.departments.filter((e) => e.id !== t) }));
|
|
539
543
|
},
|
|
540
544
|
addPayrollRecord: async (t) => {
|
|
541
|
-
let n = $.getState().initParams, r = await H(
|
|
545
|
+
let n = $.getState().initParams, r = await H(ge, { input: {
|
|
542
546
|
...t,
|
|
543
547
|
status: P(t.status)
|
|
544
548
|
} }, n, "Unable to create payroll record");
|
|
545
549
|
e((e) => ({ payrollRecords: [I(r.createCrewPayrollRecord, F.payrollRecord), ...e.payrollRecords] }));
|
|
546
550
|
},
|
|
547
551
|
updatePayrollRecord: async (t, n) => {
|
|
548
|
-
let r = $.getState().initParams, i = await H(
|
|
552
|
+
let r = $.getState().initParams, i = await H(_e, {
|
|
549
553
|
id: t,
|
|
550
554
|
input: {
|
|
551
555
|
...n,
|
|
@@ -556,14 +560,14 @@ var n = "\n query CrewfoundryBootstrap {\n crewfoundryBootstrap {\n emp
|
|
|
556
560
|
},
|
|
557
561
|
removePayrollRecord: async (t) => {
|
|
558
562
|
let n = $.getState().initParams;
|
|
559
|
-
await H(
|
|
563
|
+
await H(ve, { id: t }, n, "Unable to remove payroll record"), e((e) => ({ payrollRecords: e.payrollRecords.filter((e) => e.id !== t) }));
|
|
560
564
|
},
|
|
561
565
|
addTimeEntry: async (t) => {
|
|
562
|
-
let n = $.getState().initParams, r = await H(
|
|
566
|
+
let n = $.getState().initParams, r = await H(Te, { input: t }, n, "Unable to create time entry");
|
|
563
567
|
e((e) => ({ timeEntries: [I(r.createCrewTimeEntry, F.timeEntry), ...e.timeEntries] }));
|
|
564
568
|
},
|
|
565
569
|
updateTimeEntry: async (t, n) => {
|
|
566
|
-
let r = $.getState().initParams, i = await H(
|
|
570
|
+
let r = $.getState().initParams, i = await H(Ee, {
|
|
567
571
|
id: t,
|
|
568
572
|
input: n
|
|
569
573
|
}, r, "Unable to update time entry");
|
|
@@ -571,13 +575,13 @@ var n = "\n query CrewfoundryBootstrap {\n crewfoundryBootstrap {\n emp
|
|
|
571
575
|
},
|
|
572
576
|
removeTimeEntry: async (t) => {
|
|
573
577
|
let n = $.getState().initParams;
|
|
574
|
-
await H(
|
|
578
|
+
await H(De, { id: t }, n, "Unable to remove time entry"), e((e) => ({ timeEntries: e.timeEntries.filter((e) => e.id !== t) }));
|
|
575
579
|
},
|
|
576
580
|
fetchJobPostingMatches: async (t) => {
|
|
577
581
|
let n = $.getState().initParams;
|
|
578
582
|
e({ jobPostingMatchesLoading: !0 });
|
|
579
583
|
try {
|
|
580
|
-
let r = (await H(
|
|
584
|
+
let r = (await H(C, { jobPostingId: t }, n, "Unable to load candidate matches")).crewJobPostingMatches.map((e) => ({
|
|
581
585
|
...e,
|
|
582
586
|
candidate: I(e.candidate, F.candidate)
|
|
583
587
|
}));
|
|
@@ -597,7 +601,7 @@ var n = "\n query CrewfoundryBootstrap {\n crewfoundryBootstrap {\n emp
|
|
|
597
601
|
e({ payrollRunsLoading: !0 });
|
|
598
602
|
try {
|
|
599
603
|
e({
|
|
600
|
-
payrollRuns: (await H(
|
|
604
|
+
payrollRuns: (await H(ye, void 0, t, "Unable to load payroll runs")).crewPayrollRuns,
|
|
601
605
|
payrollRunsLoaded: !0,
|
|
602
606
|
payrollRunsLoading: !1
|
|
603
607
|
});
|
|
@@ -606,23 +610,23 @@ var n = "\n query CrewfoundryBootstrap {\n crewfoundryBootstrap {\n emp
|
|
|
606
610
|
}
|
|
607
611
|
},
|
|
608
612
|
createPayrollRun: async (t) => {
|
|
609
|
-
let n = $.getState().initParams, r = await H(
|
|
613
|
+
let n = $.getState().initParams, r = await H(be, { input: t }, n, "Unable to create payroll run");
|
|
610
614
|
e((e) => ({ payrollRuns: [r.createCrewPayrollRun, ...e.payrollRuns] }));
|
|
611
615
|
},
|
|
612
616
|
calculatePayrollRun: async (t) => {
|
|
613
|
-
let n = $.getState().initParams, r = await H(
|
|
617
|
+
let n = $.getState().initParams, r = await H(xe, { id: t }, n, "Unable to calculate payroll run");
|
|
614
618
|
e((e) => ({
|
|
615
619
|
payrollRuns: e.payrollRuns.map((e) => e.id === t ? r.calculateCrewPayrollRun : e),
|
|
616
620
|
payslipsByRun: Object.fromEntries(Object.entries(e.payslipsByRun).filter(([e]) => e !== t))
|
|
617
621
|
}));
|
|
618
622
|
},
|
|
619
623
|
approvePayrollRun: async (t) => {
|
|
620
|
-
let n = $.getState().initParams, r = await H(
|
|
624
|
+
let n = $.getState().initParams, r = await H(Se, { id: t }, n, "Unable to approve payroll run");
|
|
621
625
|
e((e) => ({ payrollRuns: e.payrollRuns.map((e) => e.id === t ? r.approveCrewPayrollRun : e) }));
|
|
622
626
|
},
|
|
623
627
|
removePayrollRun: async (t) => {
|
|
624
628
|
let n = $.getState().initParams;
|
|
625
|
-
await H(
|
|
629
|
+
await H(Ce, { id: t }, n, "Unable to remove payroll run"), e((e) => ({
|
|
626
630
|
payrollRuns: e.payrollRuns.filter((e) => e.id !== t),
|
|
627
631
|
payslipsByRun: Object.fromEntries(Object.entries(e.payslipsByRun).filter(([e]) => e !== t))
|
|
628
632
|
}));
|
|
@@ -631,7 +635,7 @@ var n = "\n query CrewfoundryBootstrap {\n crewfoundryBootstrap {\n emp
|
|
|
631
635
|
let n = $.getState().initParams;
|
|
632
636
|
e({ payslipsLoading: !0 });
|
|
633
637
|
try {
|
|
634
|
-
let r = await H(
|
|
638
|
+
let r = await H(we, { filter: { payrollRunId: t } }, n, "Unable to load payslips");
|
|
635
639
|
e((e) => ({
|
|
636
640
|
payslipsByRun: {
|
|
637
641
|
...e.payslipsByRun,
|
|
@@ -644,11 +648,11 @@ var n = "\n query CrewfoundryBootstrap {\n crewfoundryBootstrap {\n emp
|
|
|
644
648
|
}
|
|
645
649
|
},
|
|
646
650
|
fetchEmployeeDocuments: async (t) => {
|
|
647
|
-
let n = $.getState().initParams, r = await H(
|
|
651
|
+
let n = $.getState().initParams, r = await H(T, { employeeId: t }, n, "Unable to load employee documents");
|
|
648
652
|
e((e) => ({ employeeDocuments: [...e.employeeDocuments.filter((e) => e.employeeId !== t), ...r.employeeDocuments] }));
|
|
649
653
|
},
|
|
650
654
|
uploadEmployeeDocument: async ({ employeeId: t, file: n, title: r, category: i }) => {
|
|
651
|
-
let a = $.getState().initParams, o = await H(
|
|
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: {
|
|
652
656
|
fileName: n.name,
|
|
653
657
|
fileSize: String(n.size),
|
|
654
658
|
mimeType: n.type || "application/octet-stream",
|
|
@@ -663,9 +667,9 @@ var n = "\n query CrewfoundryBootstrap {\n crewfoundryBootstrap {\n emp
|
|
|
663
667
|
});
|
|
664
668
|
if (!e.ok) throw Error(`Failed to upload file bytes (status ${e.status})`);
|
|
665
669
|
}
|
|
666
|
-
let l = await H(
|
|
670
|
+
let l = await H(E, { input: {
|
|
667
671
|
employeeId: t,
|
|
668
|
-
fileId: (await H(
|
|
672
|
+
fileId: (await H(Pe, { input: {
|
|
669
673
|
sessionId: c.initiateUpload.session.id,
|
|
670
674
|
fileSize: String(n.size),
|
|
671
675
|
folderId: o.ensureFolderByPath.id
|
|
@@ -677,21 +681,49 @@ var n = "\n query CrewfoundryBootstrap {\n crewfoundryBootstrap {\n emp
|
|
|
677
681
|
},
|
|
678
682
|
detachEmployeeDocument: async (t) => {
|
|
679
683
|
let n = $.getState().initParams;
|
|
680
|
-
await H(
|
|
684
|
+
await H(Oe, { id: t }, n, "Unable to remove this document"), e((e) => ({ employeeDocuments: e.employeeDocuments.filter((e) => e.id !== t) }));
|
|
685
|
+
},
|
|
686
|
+
fetchEmployeeSkillProfile: async (t) => {
|
|
687
|
+
let n = $.getState().initParams, r = (await H(ke, { id: t }, n, "Unable to load skills")).crewEmployee;
|
|
688
|
+
e((e) => ({
|
|
689
|
+
employeeSkillProfiles: {
|
|
690
|
+
...e.employeeSkillProfiles,
|
|
691
|
+
[t]: r?.skillProfile ?? []
|
|
692
|
+
},
|
|
693
|
+
employees: r ? e.employees.map((e) => e.id === t ? {
|
|
694
|
+
...e,
|
|
695
|
+
skills: r.skills
|
|
696
|
+
} : e) : e.employees
|
|
697
|
+
}));
|
|
698
|
+
},
|
|
699
|
+
attachEmployeeSkill: async ({ employeeId: e, skillName: t, proficiency: n }) => {
|
|
700
|
+
let r = $.getState().initParams;
|
|
701
|
+
await H(Ae, { input: {
|
|
702
|
+
employeeId: e,
|
|
703
|
+
skillName: t,
|
|
704
|
+
proficiency: n
|
|
705
|
+
} }, r, "Unable to add this skill"), await $.getState().fetchEmployeeSkillProfile(e);
|
|
706
|
+
},
|
|
707
|
+
detachEmployeeSkill: async (e, t) => {
|
|
708
|
+
let n = $.getState().initParams;
|
|
709
|
+
await H(je, {
|
|
710
|
+
employeeId: e,
|
|
711
|
+
skillId: t
|
|
712
|
+
}, n, "Unable to remove this skill"), await $.getState().fetchEmployeeSkillProfile(e);
|
|
681
713
|
},
|
|
682
714
|
fetchOnboardings: async () => {
|
|
683
715
|
let t = $.getState().initParams;
|
|
684
716
|
e({
|
|
685
|
-
onboardings: (await H(
|
|
717
|
+
onboardings: (await H(Fe, {}, t, "Unable to load onboarding")).crewOnboardings.map(L),
|
|
686
718
|
onboardingsLoaded: !0
|
|
687
719
|
});
|
|
688
720
|
},
|
|
689
721
|
createOnboarding: async (t) => {
|
|
690
|
-
let n = $.getState().initParams, r = await H(
|
|
722
|
+
let n = $.getState().initParams, r = await H(Ie, { input: t }, n, "Unable to start onboarding");
|
|
691
723
|
e((e) => ({ onboardings: [L(r.createCrewOnboarding), ...e.onboardings] }));
|
|
692
724
|
},
|
|
693
725
|
updateOnboarding: async (t, n) => {
|
|
694
|
-
let r = $.getState().initParams, i = await H(
|
|
726
|
+
let r = $.getState().initParams, i = await H(Le, {
|
|
695
727
|
id: t,
|
|
696
728
|
input: n
|
|
697
729
|
}, r, "Unable to update onboarding");
|
|
@@ -699,10 +731,10 @@ var n = "\n query CrewfoundryBootstrap {\n crewfoundryBootstrap {\n emp
|
|
|
699
731
|
},
|
|
700
732
|
removeOnboarding: async (t) => {
|
|
701
733
|
let n = $.getState().initParams;
|
|
702
|
-
await H(
|
|
734
|
+
await H(Re, { id: t }, n, "Unable to remove onboarding"), e((e) => ({ onboardings: e.onboardings.filter((e) => e.id !== t) }));
|
|
703
735
|
},
|
|
704
736
|
createOnboardingTask: async (t) => {
|
|
705
|
-
let n = $.getState().initParams, r = I((await H(
|
|
737
|
+
let n = $.getState().initParams, r = I((await H(ze, { input: t }, n, "Unable to create onboarding task")).createCrewOnboardingTask, F.onboardingTask);
|
|
706
738
|
e((e) => ({ onboardings: e.onboardings.map((e) => e.id === r.onboardingId ? {
|
|
707
739
|
...e,
|
|
708
740
|
tasks: [...e.tasks, r],
|
|
@@ -710,7 +742,7 @@ var n = "\n query CrewfoundryBootstrap {\n crewfoundryBootstrap {\n emp
|
|
|
710
742
|
} : e) }));
|
|
711
743
|
},
|
|
712
744
|
updateOnboardingTask: async (t, n) => {
|
|
713
|
-
let r = $.getState().initParams, i = I((await H(
|
|
745
|
+
let r = $.getState().initParams, i = I((await H(Be, {
|
|
714
746
|
id: t,
|
|
715
747
|
input: n
|
|
716
748
|
}, r, "Unable to update onboarding task")).updateCrewOnboardingTask, F.onboardingTask);
|
|
@@ -721,14 +753,14 @@ var n = "\n query CrewfoundryBootstrap {\n crewfoundryBootstrap {\n emp
|
|
|
721
753
|
},
|
|
722
754
|
removeOnboardingTask: async (t) => {
|
|
723
755
|
let n = $.getState().initParams;
|
|
724
|
-
await H(
|
|
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) ? {
|
|
725
757
|
...e,
|
|
726
758
|
tasks: e.tasks.filter((e) => e.id !== t),
|
|
727
759
|
totalTaskCount: Math.max(0, e.totalTaskCount - 1)
|
|
728
760
|
} : e) }));
|
|
729
761
|
},
|
|
730
762
|
toggleOnboardingTask: async (t, n) => {
|
|
731
|
-
let r = $.getState().initParams, i = I((await H(
|
|
763
|
+
let r = $.getState().initParams, i = I((await H(He, {
|
|
732
764
|
id: t,
|
|
733
765
|
completed: n
|
|
734
766
|
}, r, "Unable to update onboarding task")).toggleCrewOnboardingTask, F.onboardingTask);
|
|
@@ -746,7 +778,7 @@ var n = "\n query CrewfoundryBootstrap {\n crewfoundryBootstrap {\n emp
|
|
|
746
778
|
fetchSkillsGap: async () => {
|
|
747
779
|
let t = $.getState().initParams;
|
|
748
780
|
e({
|
|
749
|
-
skillsGap: (await H(
|
|
781
|
+
skillsGap: (await H(w, void 0, t, "Unable to load skills coverage")).crewSkillsGap,
|
|
750
782
|
skillsGapLoaded: !0
|
|
751
783
|
});
|
|
752
784
|
},
|
|
@@ -756,10 +788,10 @@ var n = "\n query CrewfoundryBootstrap {\n crewfoundryBootstrap {\n emp
|
|
|
756
788
|
offset: 0
|
|
757
789
|
};
|
|
758
790
|
for (let r = 1; r <= K; r += 1) {
|
|
759
|
-
let i = G.learning, a = await H(
|
|
791
|
+
let i = G.learning, a = await H(Ue, {
|
|
760
792
|
coursePage: n,
|
|
761
793
|
enrollmentPage: n
|
|
762
|
-
}, t, "Unable to load learning"), [o, s] = await Promise.all([W(
|
|
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)]);
|
|
763
795
|
if (!(i !== G.learning && r < K)) {
|
|
764
796
|
e({
|
|
765
797
|
trainingCourses: o,
|
|
@@ -772,11 +804,11 @@ var n = "\n query CrewfoundryBootstrap {\n crewfoundryBootstrap {\n emp
|
|
|
772
804
|
}
|
|
773
805
|
},
|
|
774
806
|
createTrainingCourse: async (t) => {
|
|
775
|
-
let n = $.getState().initParams, r = (await H(
|
|
807
|
+
let n = $.getState().initParams, r = (await H(qe, { input: t }, n, "Unable to create course")).createCrewTrainingCourse;
|
|
776
808
|
return G.learning += 1, e((e) => ({ trainingCourses: [r, ...e.trainingCourses] })), r;
|
|
777
809
|
},
|
|
778
810
|
updateTrainingCourse: async (t, n) => {
|
|
779
|
-
let r = $.getState().initParams, i = await H(
|
|
811
|
+
let r = $.getState().initParams, i = await H(k, {
|
|
780
812
|
id: t,
|
|
781
813
|
input: n
|
|
782
814
|
}, r, "Unable to update course");
|
|
@@ -784,13 +816,13 @@ var n = "\n query CrewfoundryBootstrap {\n crewfoundryBootstrap {\n emp
|
|
|
784
816
|
},
|
|
785
817
|
removeTrainingCourse: async (t) => {
|
|
786
818
|
let n = $.getState().initParams;
|
|
787
|
-
await H(
|
|
819
|
+
await H(Je, { id: t }, n, "Unable to remove course"), G.learning += 1, e((e) => ({
|
|
788
820
|
trainingCourses: e.trainingCourses.filter((e) => e.id !== t),
|
|
789
821
|
trainingCompletion: e.trainingCompletion.filter((e) => e.courseId !== t)
|
|
790
822
|
}));
|
|
791
823
|
},
|
|
792
824
|
enrollEmployee: async (t, n) => {
|
|
793
|
-
let r = $.getState().initParams, i = q((await H(
|
|
825
|
+
let r = $.getState().initParams, i = q((await H(Ye, { input: {
|
|
794
826
|
courseId: t,
|
|
795
827
|
employeeId: n.id,
|
|
796
828
|
employeeName: `${n.firstName} ${n.lastName}`.trim()
|
|
@@ -800,7 +832,7 @@ var n = "\n query CrewfoundryBootstrap {\n crewfoundryBootstrap {\n emp
|
|
|
800
832
|
a && e({ trainingCompletion: a });
|
|
801
833
|
},
|
|
802
834
|
updateEnrollmentStatus: async (t, n) => {
|
|
803
|
-
let r = $.getState().initParams, i = await H(
|
|
835
|
+
let r = $.getState().initParams, i = await H(Xe, {
|
|
804
836
|
id: t,
|
|
805
837
|
status: P(n)
|
|
806
838
|
}, r, "Unable to update enrollment");
|
|
@@ -810,14 +842,14 @@ var n = "\n query CrewfoundryBootstrap {\n crewfoundryBootstrap {\n emp
|
|
|
810
842
|
},
|
|
811
843
|
removeEnrollment: async (t) => {
|
|
812
844
|
let n = $.getState().initParams;
|
|
813
|
-
await H(
|
|
845
|
+
await H(Ze, { id: t }, n, "Unable to remove enrollment"), G.learning += 1, e((e) => ({ enrollments: e.enrollments.filter((e) => e.id !== t) }));
|
|
814
846
|
let r = await Q(n);
|
|
815
847
|
r && e({ trainingCompletion: r });
|
|
816
848
|
},
|
|
817
849
|
fetchMarketplace: async () => {
|
|
818
850
|
let t = $.getState().initParams;
|
|
819
851
|
for (let n = 1; n <= K; n += 1) {
|
|
820
|
-
let r = G.marketplace, [i, a] = await Promise.all([W(
|
|
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")]);
|
|
821
853
|
if (!(r !== G.marketplace && n < K)) {
|
|
822
854
|
e({
|
|
823
855
|
serviceListings: i.map(J),
|
|
@@ -829,11 +861,11 @@ var n = "\n query CrewfoundryBootstrap {\n crewfoundryBootstrap {\n emp
|
|
|
829
861
|
}
|
|
830
862
|
},
|
|
831
863
|
createServiceListing: async (t) => {
|
|
832
|
-
let n = $.getState().initParams, r = J((await H(
|
|
864
|
+
let n = $.getState().initParams, r = J((await H(tt, { input: t }, n, "Unable to publish service")).createCrewServiceListing);
|
|
833
865
|
return G.marketplace += 1, e((e) => ({ serviceListings: [r, ...e.serviceListings] })), r;
|
|
834
866
|
},
|
|
835
867
|
updateServiceListing: async (t, n) => {
|
|
836
|
-
let r = $.getState().initParams, i = await H(
|
|
868
|
+
let r = $.getState().initParams, i = await H(nt, {
|
|
837
869
|
id: t,
|
|
838
870
|
input: n.status ? {
|
|
839
871
|
...n,
|
|
@@ -844,17 +876,17 @@ var n = "\n query CrewfoundryBootstrap {\n crewfoundryBootstrap {\n emp
|
|
|
844
876
|
},
|
|
845
877
|
removeServiceListing: async (t) => {
|
|
846
878
|
let n = $.getState().initParams;
|
|
847
|
-
await H(
|
|
879
|
+
await H(rt, { id: t }, n, "Unable to remove service"), G.marketplace += 1, e((e) => ({ serviceListings: e.serviceListings.filter((e) => e.id !== t) }));
|
|
848
880
|
},
|
|
849
881
|
bookServiceListing: async (t) => {
|
|
850
|
-
let n = $.getState().initParams, r = Y((await H(
|
|
882
|
+
let n = $.getState().initParams, r = Y((await H(it, { input: t }, n, "Unable to book service")).createCrewBooking);
|
|
851
883
|
return G.marketplace += 1, e((e) => ({
|
|
852
884
|
bookings: [r, ...e.bookings],
|
|
853
885
|
escrowLoaded: !1
|
|
854
886
|
})), r;
|
|
855
887
|
},
|
|
856
888
|
updateBookingStatus: async (t, n) => {
|
|
857
|
-
let r = $.getState().initParams, i = await H(
|
|
889
|
+
let r = $.getState().initParams, i = await H(at, {
|
|
858
890
|
id: t,
|
|
859
891
|
status: P(n)
|
|
860
892
|
}, r, "Unable to update booking");
|
|
@@ -867,7 +899,7 @@ var n = "\n query CrewfoundryBootstrap {\n crewfoundryBootstrap {\n emp
|
|
|
867
899
|
let t = $.getState().initParams;
|
|
868
900
|
try {
|
|
869
901
|
e({
|
|
870
|
-
escrowRecords: (await W(
|
|
902
|
+
escrowRecords: (await W(et, "crewEscrowRecords", t, "Unable to load escrow records")).map(X),
|
|
871
903
|
escrowLoaded: !0,
|
|
872
904
|
escrowError: null
|
|
873
905
|
});
|
|
@@ -880,11 +912,11 @@ var n = "\n query CrewfoundryBootstrap {\n crewfoundryBootstrap {\n emp
|
|
|
880
912
|
}
|
|
881
913
|
},
|
|
882
914
|
releaseEscrowRecord: async (t) => {
|
|
883
|
-
let n = $.getState().initParams, r = await H(
|
|
915
|
+
let n = $.getState().initParams, r = await H(ot, { id: t }, n, "Unable to release escrow");
|
|
884
916
|
e((e) => ({ escrowRecords: Z(e.escrowRecords, X(r.releaseCrewEscrowRecord)) }));
|
|
885
917
|
},
|
|
886
918
|
cancelEscrowRecord: async (t) => {
|
|
887
|
-
let n = $.getState().initParams, r = await H(
|
|
919
|
+
let n = $.getState().initParams, r = await H(st, { id: t }, n, "Unable to cancel escrow");
|
|
888
920
|
e((e) => ({ escrowRecords: Z(e.escrowRecords, X(r.cancelCrewEscrowRecord)) }));
|
|
889
921
|
}
|
|
890
922
|
}));
|