@burdenoff/microfe-crewfoundry 2026.1030.4 → 2026.1102.1
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/pages/DashboardExecutiveDashboardPage.d.ts +8 -0
- package/dist/crewfoundry/pages/DashboardExecutiveDashboardPage.d.ts.map +1 -1
- package/dist/crewfoundry/pages/DashboardExecutiveDashboardPage.js +468 -212
- package/dist/crewfoundry/pages/DashboardExecutiveDashboardPage.js.map +1 -1
- package/dist/crewfoundry/store/crewfoundryStore.d.ts +44 -0
- package/dist/crewfoundry/store/crewfoundryStore.d.ts.map +1 -1
- package/dist/crewfoundry/store/crewfoundryStore.js +92 -65
- 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
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) }", 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 = {
|
|
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 CrewExecutiveDashboard { crewExecutiveDashboard { totalHeadcount activeHeadcount newHiresLast90Days exitsLast90Days averagePerformanceScore averageTenureMonths attritionRisk { highCount mediumCount lowCount totalAssessed topRisks { employeeId employeeName department riskLevel riskScore drivers } } headcountGap { department current openPostings projectedHeadcount } skillsGap { skill employeesWithSkill openJobsRequiringSkill shortage } costProjection { department monthly annual headcount } generatedAt } }", T = "query EmployeeDocuments($employeeId: ID!) { employeeDocuments(employeeId: $employeeId) { id employeeId fileId title category uploadedBy uploadedAt } }", ke = "mutation AttachEmployeeDocument($input: AttachCrewEmployeeDocumentInput!) { attachEmployeeDocument(input: $input) { id employeeId fileId title category uploadedBy uploadedAt } }", Ae = "mutation DetachEmployeeDocument($id: ID!) { detachEmployeeDocument(id: $id) }", je = "query CrewEmployeeSkillProfile($id: ID!) { crewEmployee(id: $id) { id skills skillProfile { id skillId proficiency verifiedFrom lastUsedAt skill { id name category source } } } }", Me = "mutation AttachCrewSkill($input: AttachCrewSkillInput!) { attachCrewSkill(input: $input) { id } }", Ne = "mutation DetachCrewSkill($employeeId: ID!, $skillId: ID!) { detachCrewSkill(employeeId: $employeeId, skillId: $skillId) }", E = 100, Pe = 50, Fe = "query CrewSkillsTaxonomy($pagination: PaginationInput) { crewSkills(pagination: $pagination) { id name slug category source description aliases employeeCount candidateCount relations { id type fromSkillId toSkillId } } }", Ie = "query CrewSkillCategories { crewSkillCategories }", Le = "mutation CreateCrewSkill($input: CreateCrewSkillInput!) { createCrewSkill(input: $input) { id } }", Re = "mutation UpdateCrewSkill($id: ID!, $input: UpdateCrewSkillInput!) { updateCrewSkill(id: $id, input: $input) { id } }", ze = "mutation MergeCrewSkills($sourceId: ID!, $targetId: ID!) { mergeCrewSkills(sourceId: $sourceId, targetId: $targetId) { target { id name } employeesMoved candidatesMoved jobPostingsMoved } }", Be = "mutation RemoveCrewSkill($id: ID!) { removeCrewSkill(id: $id) }", Ve = "mutation CreateCrewSkillRelation($input: CreateCrewSkillRelationInput!) { createCrewSkillRelation(input: $input) { id } }", He = "mutation RemoveCrewSkillRelation($id: ID!) { removeCrewSkillRelation(id: $id) }", Ue = "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 } }", We = "query CrewJobPostingSkillRequirements($id: ID!) { crewJobPosting(id: $id) { id skillRequirements { id skillId required minProficiency skill { id name category source } } } }", Ge = "query CrewCandidateSkillProfile($id: ID!) { crewCandidate(id: $id) { id skills skillProfile { id skillId proficiency source skill { id name category source } } } }", Ke = "mutation AttachCrewCandidateSkill($input: AttachCrewCandidateSkillInput!) { attachCrewCandidateSkill(input: $input) { id } }", qe = "mutation DetachCrewCandidateSkill($candidateId: ID!, $skillId: ID!) { detachCrewCandidateSkill(candidateId: $candidateId, skillId: $skillId) }", Je = "mutation EnsureFolderByPath($path: String!) { ensureFolderByPath(path: $path) { id } }", Ye = "mutation InitiateUpload($input: InitiateUploadInput!) { initiateUpload(input: $input) { session { id } uploadUrl } }", Xe = "mutation CompleteUpload($input: CompleteUploadInput!) { completeUpload(input: $input) { file { id } } }", Ze = "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 } } }", Qe = "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 } } }", $e = "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 } } }", et = "mutation RemoveCrewOnboarding($id: ID!) { removeCrewOnboarding(id: $id) }", tt = "mutation CreateCrewOnboardingTask($input: CreateCrewOnboardingTaskInput!) { createCrewOnboardingTask(input: $input) { id onboardingId stage title assigneeActorId assigneeName dueDate completedAt sortOrder } }", nt = "mutation UpdateCrewOnboardingTask($id: ID!, $input: UpdateCrewOnboardingTaskInput!) { updateCrewOnboardingTask(id: $id, input: $input) { id onboardingId stage title assigneeActorId assigneeName dueDate completedAt sortOrder } }", rt = "mutation RemoveCrewOnboardingTask($id: ID!) { removeCrewOnboardingTask(id: $id) }", D = "mutation ToggleCrewOnboardingTask($id: ID!, $completed: Boolean!) { toggleCrewOnboardingTask(id: $id, completed: $completed) { id onboardingId stage title assigneeActorId assigneeName dueDate completedAt sortOrder } }", O = "id title description contentUrl durationMinutes isActive requiredForRoles createdAt updatedAt", k = "id courseId courseTitle employeeId employeeName status startedAt completedAt createdAt updatedAt", it = `query CrewLearning($coursePage: PaginationInput, $enrollmentPage: PaginationInput) { crewTrainingCourses(pagination: $coursePage) { ${O} } crewEnrollments(pagination: $enrollmentPage) { ${k} } crewTrainingCompletionDashboard { courseId courseTitle totalEnrolled notStartedCount inProgressCount completedCount completionRate } }`, at = `query CrewTrainingCourses($pagination: PaginationInput) { crewTrainingCourses(pagination: $pagination) { ${O} } }`, ot = `query CrewEnrollments($pagination: PaginationInput) { crewEnrollments(pagination: $pagination) { ${k} } }`, st = "query CrewTrainingCompletionDashboard { crewTrainingCompletionDashboard { courseId courseTitle totalEnrolled notStartedCount inProgressCount completedCount completionRate } }", ct = `mutation CreateCrewTrainingCourse($input: CreateCrewTrainingCourseInput!) { createCrewTrainingCourse(input: $input) { ${O} } }`, lt = `mutation UpdateCrewTrainingCourse($id: ID!, $input: UpdateCrewTrainingCourseInput!) { updateCrewTrainingCourse(id: $id, input: $input) { ${O} } }`, ut = "mutation RemoveCrewTrainingCourse($id: ID!) { removeCrewTrainingCourse(id: $id) }", dt = `mutation CreateCrewEnrollment($input: CreateCrewEnrollmentInput!) { createCrewEnrollment(input: $input) { ${k} } }`, ft = `mutation UpdateCrewEnrollmentStatus($id: ID!, $status: String!) { updateCrewEnrollmentStatus(id: $id, status: $status) { ${k} } }`, pt = "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", mt = `query CrewServiceListings($pagination: PaginationInput) { crewServiceListings(pagination: $pagination) { ${A} } }`, ht = `query CrewBookings($pagination: PaginationInput) { crewBookings(pagination: $pagination) { ${j} } }`, gt = `query CrewEscrowRecords($pagination: PaginationInput) { crewEscrowRecords(pagination: $pagination) { ${M} } }`, _t = `mutation CreateCrewServiceListing($input: CreateCrewServiceListingInput!) { createCrewServiceListing(input: $input) { ${A} } }`, vt = `mutation UpdateMyServiceListing($id: ID!, $input: UpdateCrewServiceListingInput!) { updateMyServiceListing(id: $id, input: $input) { ${A} } }`, yt = "mutation RemoveMyServiceListing($id: ID!) { removeMyServiceListing(id: $id) }", bt = `mutation CreateCrewBooking($input: CreateCrewBookingInput!) { createCrewBooking(input: $input) { ${j} } }`, xt = `mutation UpdateMyBookingStatus($id: ID!, $status: String!) { updateMyBookingStatus(id: $id, status: $status) { ${j} } }`, St = `mutation ReleaseCrewEscrowRecord($id: ID!) { releaseCrewEscrowRecord(id: $id) { ${M} } }`, Ct = `mutation CancelCrewEscrowRecord($id: ID!) { cancelCrewEscrowRecord(id: $id) { ${M} } }`, N = 100, wt = 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",
|
|
40
|
+
}), R = (e) => e ? e.slice(0, 10) : "TBD", Tt = (e) => !e || typeof e != "object" || Array.isArray(e) ? null : e, z = (e) => typeof e == "number" ? e : null, B = (e) => typeof e == "string" ? e : null, Et = (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
|
+
}, Ot = (e, t) => e.map((e, n) => {
|
|
47
|
+
let r = Tt(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: Et(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
|
-
}),
|
|
66
|
+
}), kt = (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:
|
|
75
|
+
status: Dt(e.status),
|
|
76
76
|
projectCount: 0,
|
|
77
77
|
createdAt: R(e.createdAt)
|
|
78
|
-
})), V = "/conversations",
|
|
78
|
+
})), V = "/conversations", At = (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
|
-
})),
|
|
87
|
+
})), jt = (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
|
+
}, Mt = 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
|
-
]),
|
|
113
|
+
]), Nt = (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)) Mt.has(e) || (n[e] = r);
|
|
119
119
|
return {
|
|
120
120
|
...e,
|
|
121
121
|
input: n
|
|
122
122
|
};
|
|
123
|
-
},
|
|
124
|
-
let s =
|
|
123
|
+
}, Pt = (e) => /^\s*mutation\b/.test(e), H = async (e, r, i, a, o = "workspace") => {
|
|
124
|
+
let s = jt(await n({
|
|
125
125
|
gateway: o,
|
|
126
126
|
query: e,
|
|
127
|
-
variables:
|
|
127
|
+
variables: Nt(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
|
|
133
|
-
},
|
|
132
|
+
return Pt(e) && t(), s;
|
|
133
|
+
}, Ft = () => !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
|
|
137
|
+
return Ft() && 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 <
|
|
142
|
+
for (let o = +!!i; o < wt; o += 1) {
|
|
143
143
|
let i = (await H(e, { pagination: {
|
|
144
144
|
limit: N,
|
|
145
145
|
offset: o * N
|
|
@@ -239,6 +239,9 @@ var r = "\n query CrewfoundryBootstrap {\n crewfoundryBootstrap {\n emp
|
|
|
239
239
|
payslipsLoading: !1,
|
|
240
240
|
skillsGap: [],
|
|
241
241
|
skillsGapLoaded: !1,
|
|
242
|
+
executiveDashboard: null,
|
|
243
|
+
executiveDashboardLoading: !1,
|
|
244
|
+
executiveDashboardError: null,
|
|
242
245
|
trainingCourses: [],
|
|
243
246
|
enrollments: [],
|
|
244
247
|
trainingCompletion: [],
|
|
@@ -251,7 +254,10 @@ var r = "\n query CrewfoundryBootstrap {\n crewfoundryBootstrap {\n emp
|
|
|
251
254
|
escrowError: null,
|
|
252
255
|
initializeData: async (t) => {
|
|
253
256
|
if (t.workspaceId) {
|
|
254
|
-
e({
|
|
257
|
+
$.getState().initParams.workspaceId !== t.workspaceId && e({
|
|
258
|
+
executiveDashboard: null,
|
|
259
|
+
executiveDashboardError: null
|
|
260
|
+
}), e({
|
|
255
261
|
loading: !0,
|
|
256
262
|
error: null,
|
|
257
263
|
initParams: t
|
|
@@ -265,7 +271,7 @@ var r = "\n query CrewfoundryBootstrap {\n crewfoundryBootstrap {\n emp
|
|
|
265
271
|
},
|
|
266
272
|
groupFirst: 30,
|
|
267
273
|
conversationFirst: 30
|
|
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 ?
|
|
274
|
+
}, 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 ? kt(n.groups.edges) : [], l = n ? Ot(n.projects.items, c) : [], u = n ? At(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));
|
|
269
275
|
e({
|
|
270
276
|
employees: m,
|
|
271
277
|
departments: h,
|
|
@@ -652,11 +658,11 @@ var r = "\n query CrewfoundryBootstrap {\n crewfoundryBootstrap {\n emp
|
|
|
652
658
|
}
|
|
653
659
|
},
|
|
654
660
|
fetchEmployeeDocuments: async (t) => {
|
|
655
|
-
let n = $.getState().initParams, r = await H(
|
|
661
|
+
let n = $.getState().initParams, r = await H(T, { employeeId: t }, n, "Unable to load employee documents");
|
|
656
662
|
e((e) => ({ employeeDocuments: [...e.employeeDocuments.filter((e) => e.employeeId !== t), ...r.employeeDocuments] }));
|
|
657
663
|
},
|
|
658
664
|
uploadEmployeeDocument: async ({ employeeId: t, file: n, title: r, category: i }) => {
|
|
659
|
-
let a = $.getState().initParams, o = await H(
|
|
665
|
+
let a = $.getState().initParams, o = await H(Je, { path: "/CrewFoundry/Employee Documents" }, a, "Unable to resolve the employee documents folder"), s = n.name.includes(".") ? n.name.substring(n.name.lastIndexOf(".") + 1) : "", c = await H(Ye, { input: {
|
|
660
666
|
fileName: n.name,
|
|
661
667
|
fileSize: String(n.size),
|
|
662
668
|
mimeType: n.type || "application/octet-stream",
|
|
@@ -671,9 +677,9 @@ var r = "\n query CrewfoundryBootstrap {\n crewfoundryBootstrap {\n emp
|
|
|
671
677
|
});
|
|
672
678
|
if (!e.ok) throw Error(`Failed to upload file bytes (status ${e.status})`);
|
|
673
679
|
}
|
|
674
|
-
let l = await H(
|
|
680
|
+
let l = await H(ke, { input: {
|
|
675
681
|
employeeId: t,
|
|
676
|
-
fileId: (await H(
|
|
682
|
+
fileId: (await H(Xe, { input: {
|
|
677
683
|
sessionId: c.initiateUpload.session.id,
|
|
678
684
|
fileSize: String(n.size),
|
|
679
685
|
folderId: o.ensureFolderByPath.id
|
|
@@ -685,10 +691,10 @@ var r = "\n query CrewfoundryBootstrap {\n crewfoundryBootstrap {\n emp
|
|
|
685
691
|
},
|
|
686
692
|
detachEmployeeDocument: async (t) => {
|
|
687
693
|
let n = $.getState().initParams;
|
|
688
|
-
await H(
|
|
694
|
+
await H(Ae, { id: t }, n, "Unable to remove this document"), e((e) => ({ employeeDocuments: e.employeeDocuments.filter((e) => e.id !== t) }));
|
|
689
695
|
},
|
|
690
696
|
fetchEmployeeSkillProfile: async (t) => {
|
|
691
|
-
let n = $.getState().initParams, r = (await H(
|
|
697
|
+
let n = $.getState().initParams, r = (await H(je, { id: t }, n, "Unable to load skills")).crewEmployee;
|
|
692
698
|
e((e) => ({
|
|
693
699
|
employeeSkillProfiles: {
|
|
694
700
|
...e.employeeSkillProfiles,
|
|
@@ -702,7 +708,7 @@ var r = "\n query CrewfoundryBootstrap {\n crewfoundryBootstrap {\n emp
|
|
|
702
708
|
},
|
|
703
709
|
attachEmployeeSkill: async ({ employeeId: e, skillName: t, proficiency: n }) => {
|
|
704
710
|
let r = $.getState().initParams;
|
|
705
|
-
await H(
|
|
711
|
+
await H(Me, { input: {
|
|
706
712
|
employeeId: e,
|
|
707
713
|
skillName: t,
|
|
708
714
|
proficiency: n
|
|
@@ -710,7 +716,7 @@ var r = "\n query CrewfoundryBootstrap {\n crewfoundryBootstrap {\n emp
|
|
|
710
716
|
},
|
|
711
717
|
detachEmployeeSkill: async (e, t) => {
|
|
712
718
|
let n = $.getState().initParams;
|
|
713
|
-
await H(
|
|
719
|
+
await H(Ne, {
|
|
714
720
|
employeeId: e,
|
|
715
721
|
skillId: t
|
|
716
722
|
}, n, "Unable to remove this skill"), await $.getState().fetchEmployeeSkillProfile(e);
|
|
@@ -718,15 +724,15 @@ var r = "\n query CrewfoundryBootstrap {\n crewfoundryBootstrap {\n emp
|
|
|
718
724
|
fetchSkillsTaxonomy: async () => {
|
|
719
725
|
let t = $.getState().initParams, [n, r] = await Promise.all([(async () => {
|
|
720
726
|
let e = [];
|
|
721
|
-
for (let n = 0; n <
|
|
722
|
-
let r = await H(
|
|
727
|
+
for (let n = 0; n < Pe; n += 1) {
|
|
728
|
+
let r = await H(Fe, { pagination: {
|
|
723
729
|
limit: E,
|
|
724
730
|
offset: n * E
|
|
725
731
|
} }, t, "Unable to load the skills taxonomy");
|
|
726
732
|
if (e.push(...r.crewSkills), r.crewSkills.length < E) break;
|
|
727
733
|
}
|
|
728
734
|
return e;
|
|
729
|
-
})(), H(
|
|
735
|
+
})(), H(Ie, void 0, t, "Unable to load skill categories")]);
|
|
730
736
|
e({
|
|
731
737
|
skillsTaxonomy: n,
|
|
732
738
|
skillsTaxonomyLoaded: !0,
|
|
@@ -735,7 +741,7 @@ var r = "\n query CrewfoundryBootstrap {\n crewfoundryBootstrap {\n emp
|
|
|
735
741
|
},
|
|
736
742
|
createTaxonomySkill: async ({ name: e, category: t, aliases: n, description: r }) => {
|
|
737
743
|
let i = $.getState().initParams;
|
|
738
|
-
await H(
|
|
744
|
+
await H(Le, { input: {
|
|
739
745
|
name: e,
|
|
740
746
|
category: t,
|
|
741
747
|
aliases: n,
|
|
@@ -744,13 +750,13 @@ var r = "\n query CrewfoundryBootstrap {\n crewfoundryBootstrap {\n emp
|
|
|
744
750
|
},
|
|
745
751
|
updateTaxonomySkill: async (e, t) => {
|
|
746
752
|
let n = $.getState().initParams;
|
|
747
|
-
await H(
|
|
753
|
+
await H(Re, {
|
|
748
754
|
id: e,
|
|
749
755
|
input: t
|
|
750
756
|
}, n, "Unable to update this skill"), await $.getState().fetchSkillsTaxonomy();
|
|
751
757
|
},
|
|
752
758
|
mergeTaxonomySkills: async (e, t) => {
|
|
753
|
-
let n = $.getState().initParams, r = await H(
|
|
759
|
+
let n = $.getState().initParams, r = await H(ze, {
|
|
754
760
|
sourceId: e,
|
|
755
761
|
targetId: t
|
|
756
762
|
}, n, "Unable to merge these skills");
|
|
@@ -765,19 +771,19 @@ var r = "\n query CrewfoundryBootstrap {\n crewfoundryBootstrap {\n emp
|
|
|
765
771
|
},
|
|
766
772
|
removeTaxonomySkill: async (e) => {
|
|
767
773
|
let t = $.getState().initParams;
|
|
768
|
-
await H(
|
|
774
|
+
await H(Be, { id: e }, t, "Unable to remove this skill"), await $.getState().fetchSkillsTaxonomy();
|
|
769
775
|
},
|
|
770
776
|
createSkillRelation: async (e) => {
|
|
771
777
|
let t = $.getState().initParams;
|
|
772
|
-
await H(
|
|
778
|
+
await H(Ve, { input: e }, t, "Unable to add this relation"), await $.getState().fetchSkillsTaxonomy();
|
|
773
779
|
},
|
|
774
780
|
removeSkillRelation: async (e) => {
|
|
775
781
|
let t = $.getState().initParams;
|
|
776
|
-
await H(
|
|
782
|
+
await H(He, { id: e }, t, "Unable to remove this relation"), await $.getState().fetchSkillsTaxonomy();
|
|
777
783
|
},
|
|
778
784
|
fetchEmployeesBySkill: async (e, t) => {
|
|
779
785
|
let n = $.getState().initParams;
|
|
780
|
-
return (await H(
|
|
786
|
+
return (await H(Ue, {
|
|
781
787
|
skillId: e,
|
|
782
788
|
minProficiency: t?.minProficiency ?? null,
|
|
783
789
|
limit: t?.limit ?? 50
|
|
@@ -785,10 +791,10 @@ var r = "\n query CrewfoundryBootstrap {\n crewfoundryBootstrap {\n emp
|
|
|
785
791
|
},
|
|
786
792
|
fetchJobPostingSkillRequirements: async (e) => {
|
|
787
793
|
let t = $.getState().initParams;
|
|
788
|
-
return (await H(
|
|
794
|
+
return (await H(We, { id: e }, t, "Unable to load the skills this role needs")).crewJobPosting?.skillRequirements ?? [];
|
|
789
795
|
},
|
|
790
796
|
fetchCandidateSkillProfile: async (t) => {
|
|
791
|
-
let n = $.getState().initParams, r = (await H(
|
|
797
|
+
let n = $.getState().initParams, r = (await H(Ge, { id: t }, n, "Unable to load skills")).crewCandidate;
|
|
792
798
|
e((e) => ({
|
|
793
799
|
candidateSkillProfiles: {
|
|
794
800
|
...e.candidateSkillProfiles,
|
|
@@ -802,7 +808,7 @@ var r = "\n query CrewfoundryBootstrap {\n crewfoundryBootstrap {\n emp
|
|
|
802
808
|
},
|
|
803
809
|
attachCandidateSkill: async ({ candidateId: e, skillName: t, proficiency: n }) => {
|
|
804
810
|
let r = $.getState().initParams;
|
|
805
|
-
await H(
|
|
811
|
+
await H(Ke, { input: {
|
|
806
812
|
candidateId: e,
|
|
807
813
|
skillName: t,
|
|
808
814
|
proficiency: n
|
|
@@ -810,7 +816,7 @@ var r = "\n query CrewfoundryBootstrap {\n crewfoundryBootstrap {\n emp
|
|
|
810
816
|
},
|
|
811
817
|
detachCandidateSkill: async (e, t) => {
|
|
812
818
|
let n = $.getState().initParams;
|
|
813
|
-
await H(
|
|
819
|
+
await H(qe, {
|
|
814
820
|
candidateId: e,
|
|
815
821
|
skillId: t
|
|
816
822
|
}, n, "Unable to remove this skill"), await $.getState().fetchCandidateSkillProfile(e);
|
|
@@ -818,16 +824,16 @@ var r = "\n query CrewfoundryBootstrap {\n crewfoundryBootstrap {\n emp
|
|
|
818
824
|
fetchOnboardings: async () => {
|
|
819
825
|
let t = $.getState().initParams;
|
|
820
826
|
e({
|
|
821
|
-
onboardings: (await H(
|
|
827
|
+
onboardings: (await H(Ze, {}, t, "Unable to load onboarding")).crewOnboardings.map(L),
|
|
822
828
|
onboardingsLoaded: !0
|
|
823
829
|
});
|
|
824
830
|
},
|
|
825
831
|
createOnboarding: async (t) => {
|
|
826
|
-
let n = $.getState().initParams, r = await H(
|
|
832
|
+
let n = $.getState().initParams, r = await H(Qe, { input: t }, n, "Unable to start onboarding");
|
|
827
833
|
e((e) => ({ onboardings: [L(r.createCrewOnboarding), ...e.onboardings] }));
|
|
828
834
|
},
|
|
829
835
|
updateOnboarding: async (t, n) => {
|
|
830
|
-
let r = $.getState().initParams, i = await H(
|
|
836
|
+
let r = $.getState().initParams, i = await H($e, {
|
|
831
837
|
id: t,
|
|
832
838
|
input: n
|
|
833
839
|
}, r, "Unable to update onboarding");
|
|
@@ -835,10 +841,10 @@ var r = "\n query CrewfoundryBootstrap {\n crewfoundryBootstrap {\n emp
|
|
|
835
841
|
},
|
|
836
842
|
removeOnboarding: async (t) => {
|
|
837
843
|
let n = $.getState().initParams;
|
|
838
|
-
await H(
|
|
844
|
+
await H(et, { id: t }, n, "Unable to remove onboarding"), e((e) => ({ onboardings: e.onboardings.filter((e) => e.id !== t) }));
|
|
839
845
|
},
|
|
840
846
|
createOnboardingTask: async (t) => {
|
|
841
|
-
let n = $.getState().initParams, r = I((await H(
|
|
847
|
+
let n = $.getState().initParams, r = I((await H(tt, { input: t }, n, "Unable to create onboarding task")).createCrewOnboardingTask, F.onboardingTask);
|
|
842
848
|
e((e) => ({ onboardings: e.onboardings.map((e) => e.id === r.onboardingId ? {
|
|
843
849
|
...e,
|
|
844
850
|
tasks: [...e.tasks, r],
|
|
@@ -846,7 +852,7 @@ var r = "\n query CrewfoundryBootstrap {\n crewfoundryBootstrap {\n emp
|
|
|
846
852
|
} : e) }));
|
|
847
853
|
},
|
|
848
854
|
updateOnboardingTask: async (t, n) => {
|
|
849
|
-
let r = $.getState().initParams, i = I((await H(
|
|
855
|
+
let r = $.getState().initParams, i = I((await H(nt, {
|
|
850
856
|
id: t,
|
|
851
857
|
input: n
|
|
852
858
|
}, r, "Unable to update onboarding task")).updateCrewOnboardingTask, F.onboardingTask);
|
|
@@ -857,14 +863,14 @@ var r = "\n query CrewfoundryBootstrap {\n crewfoundryBootstrap {\n emp
|
|
|
857
863
|
},
|
|
858
864
|
removeOnboardingTask: async (t) => {
|
|
859
865
|
let n = $.getState().initParams;
|
|
860
|
-
await H(
|
|
866
|
+
await H(rt, { id: t }, n, "Unable to remove onboarding task"), e((e) => ({ onboardings: e.onboardings.map((e) => e.tasks.some((e) => e.id === t) ? {
|
|
861
867
|
...e,
|
|
862
868
|
tasks: e.tasks.filter((e) => e.id !== t),
|
|
863
869
|
totalTaskCount: Math.max(0, e.totalTaskCount - 1)
|
|
864
870
|
} : e) }));
|
|
865
871
|
},
|
|
866
872
|
toggleOnboardingTask: async (t, n) => {
|
|
867
|
-
let r = $.getState().initParams, i = I((await H(
|
|
873
|
+
let r = $.getState().initParams, i = I((await H(D, {
|
|
868
874
|
id: t,
|
|
869
875
|
completed: n
|
|
870
876
|
}, r, "Unable to update onboarding task")).toggleCrewOnboardingTask, F.onboardingTask);
|
|
@@ -886,6 +892,27 @@ var r = "\n query CrewfoundryBootstrap {\n crewfoundryBootstrap {\n emp
|
|
|
886
892
|
skillsGapLoaded: !0
|
|
887
893
|
});
|
|
888
894
|
},
|
|
895
|
+
fetchExecutiveDashboard: async () => {
|
|
896
|
+
let t = $.getState().initParams, n = () => $.getState().initParams.workspaceId !== t.workspaceId;
|
|
897
|
+
e({
|
|
898
|
+
executiveDashboardLoading: !0,
|
|
899
|
+
executiveDashboardError: null
|
|
900
|
+
});
|
|
901
|
+
try {
|
|
902
|
+
let r = await H(w, void 0, t, "Unable to load workforce analytics");
|
|
903
|
+
if (n()) return;
|
|
904
|
+
e({
|
|
905
|
+
executiveDashboard: r.crewExecutiveDashboard,
|
|
906
|
+
executiveDashboardLoading: !1
|
|
907
|
+
});
|
|
908
|
+
} catch (t) {
|
|
909
|
+
if (n()) return;
|
|
910
|
+
e({
|
|
911
|
+
executiveDashboardLoading: !1,
|
|
912
|
+
executiveDashboardError: t instanceof Error ? t.message : "Unable to load workforce analytics"
|
|
913
|
+
});
|
|
914
|
+
}
|
|
915
|
+
},
|
|
889
916
|
fetchLearning: async () => {
|
|
890
917
|
let t = $.getState().initParams, n = {
|
|
891
918
|
limit: N,
|
|
@@ -920,13 +947,13 @@ var r = "\n query CrewfoundryBootstrap {\n crewfoundryBootstrap {\n emp
|
|
|
920
947
|
},
|
|
921
948
|
removeTrainingCourse: async (t) => {
|
|
922
949
|
let n = $.getState().initParams;
|
|
923
|
-
await H(
|
|
950
|
+
await H(ut, { id: t }, n, "Unable to remove course"), G.learning += 1, e((e) => ({
|
|
924
951
|
trainingCourses: e.trainingCourses.filter((e) => e.id !== t),
|
|
925
952
|
trainingCompletion: e.trainingCompletion.filter((e) => e.courseId !== t)
|
|
926
953
|
}));
|
|
927
954
|
},
|
|
928
955
|
enrollEmployee: async (t, n) => {
|
|
929
|
-
let r = $.getState().initParams, i = q((await H(
|
|
956
|
+
let r = $.getState().initParams, i = q((await H(dt, { input: {
|
|
930
957
|
courseId: t,
|
|
931
958
|
employeeId: n.id,
|
|
932
959
|
employeeName: `${n.firstName} ${n.lastName}`.trim()
|
|
@@ -936,7 +963,7 @@ var r = "\n query CrewfoundryBootstrap {\n crewfoundryBootstrap {\n emp
|
|
|
936
963
|
a && e({ trainingCompletion: a });
|
|
937
964
|
},
|
|
938
965
|
updateEnrollmentStatus: async (t, n) => {
|
|
939
|
-
let r = $.getState().initParams, i = await H(
|
|
966
|
+
let r = $.getState().initParams, i = await H(ft, {
|
|
940
967
|
id: t,
|
|
941
968
|
status: P(n)
|
|
942
969
|
}, r, "Unable to update enrollment");
|
|
@@ -946,14 +973,14 @@ var r = "\n query CrewfoundryBootstrap {\n crewfoundryBootstrap {\n emp
|
|
|
946
973
|
},
|
|
947
974
|
removeEnrollment: async (t) => {
|
|
948
975
|
let n = $.getState().initParams;
|
|
949
|
-
await H(
|
|
976
|
+
await H(pt, { id: t }, n, "Unable to remove enrollment"), G.learning += 1, e((e) => ({ enrollments: e.enrollments.filter((e) => e.id !== t) }));
|
|
950
977
|
let r = await Q(n);
|
|
951
978
|
r && e({ trainingCompletion: r });
|
|
952
979
|
},
|
|
953
980
|
fetchMarketplace: async () => {
|
|
954
981
|
let t = $.getState().initParams;
|
|
955
982
|
for (let n = 1; n <= K; n += 1) {
|
|
956
|
-
let r = G.marketplace, [i, a] = await Promise.all([W(
|
|
983
|
+
let r = G.marketplace, [i, a] = await Promise.all([W(mt, "crewServiceListings", t, "Unable to load marketplace services"), W(ht, "crewBookings", t, "Unable to load bookings")]);
|
|
957
984
|
if (!(r !== G.marketplace && n < K)) {
|
|
958
985
|
e({
|
|
959
986
|
serviceListings: i.map(J),
|
|
@@ -965,11 +992,11 @@ var r = "\n query CrewfoundryBootstrap {\n crewfoundryBootstrap {\n emp
|
|
|
965
992
|
}
|
|
966
993
|
},
|
|
967
994
|
createServiceListing: async (t) => {
|
|
968
|
-
let n = $.getState().initParams, r = J((await H(
|
|
995
|
+
let n = $.getState().initParams, r = J((await H(_t, { input: t }, n, "Unable to publish service")).createCrewServiceListing);
|
|
969
996
|
return G.marketplace += 1, e((e) => ({ serviceListings: [r, ...e.serviceListings] })), r;
|
|
970
997
|
},
|
|
971
998
|
updateServiceListing: async (t, n) => {
|
|
972
|
-
let r = $.getState().initParams, i = await H(
|
|
999
|
+
let r = $.getState().initParams, i = await H(vt, {
|
|
973
1000
|
id: t,
|
|
974
1001
|
input: n.status ? {
|
|
975
1002
|
...n,
|
|
@@ -980,17 +1007,17 @@ var r = "\n query CrewfoundryBootstrap {\n crewfoundryBootstrap {\n emp
|
|
|
980
1007
|
},
|
|
981
1008
|
removeServiceListing: async (t) => {
|
|
982
1009
|
let n = $.getState().initParams;
|
|
983
|
-
await H(
|
|
1010
|
+
await H(yt, { id: t }, n, "Unable to remove service"), G.marketplace += 1, e((e) => ({ serviceListings: e.serviceListings.filter((e) => e.id !== t) }));
|
|
984
1011
|
},
|
|
985
1012
|
bookServiceListing: async (t) => {
|
|
986
|
-
let n = $.getState().initParams, r = Y((await H(
|
|
1013
|
+
let n = $.getState().initParams, r = Y((await H(bt, { input: t }, n, "Unable to book service")).createCrewBooking);
|
|
987
1014
|
return G.marketplace += 1, e((e) => ({
|
|
988
1015
|
bookings: [r, ...e.bookings],
|
|
989
1016
|
escrowLoaded: !1
|
|
990
1017
|
})), r;
|
|
991
1018
|
},
|
|
992
1019
|
updateBookingStatus: async (t, n) => {
|
|
993
|
-
let r = $.getState().initParams, i = await H(
|
|
1020
|
+
let r = $.getState().initParams, i = await H(xt, {
|
|
994
1021
|
id: t,
|
|
995
1022
|
status: P(n)
|
|
996
1023
|
}, r, "Unable to update booking");
|
|
@@ -1003,7 +1030,7 @@ var r = "\n query CrewfoundryBootstrap {\n crewfoundryBootstrap {\n emp
|
|
|
1003
1030
|
let t = $.getState().initParams;
|
|
1004
1031
|
try {
|
|
1005
1032
|
e({
|
|
1006
|
-
escrowRecords: (await W(
|
|
1033
|
+
escrowRecords: (await W(gt, "crewEscrowRecords", t, "Unable to load escrow records")).map(X),
|
|
1007
1034
|
escrowLoaded: !0,
|
|
1008
1035
|
escrowError: null
|
|
1009
1036
|
});
|
|
@@ -1016,11 +1043,11 @@ var r = "\n query CrewfoundryBootstrap {\n crewfoundryBootstrap {\n emp
|
|
|
1016
1043
|
}
|
|
1017
1044
|
},
|
|
1018
1045
|
releaseEscrowRecord: async (t) => {
|
|
1019
|
-
let n = $.getState().initParams, r = await H(
|
|
1046
|
+
let n = $.getState().initParams, r = await H(St, { id: t }, n, "Unable to release escrow");
|
|
1020
1047
|
e((e) => ({ escrowRecords: Z(e.escrowRecords, X(r.releaseCrewEscrowRecord)) }));
|
|
1021
1048
|
},
|
|
1022
1049
|
cancelEscrowRecord: async (t) => {
|
|
1023
|
-
let n = $.getState().initParams, r = await H(
|
|
1050
|
+
let n = $.getState().initParams, r = await H(Ct, { id: t }, n, "Unable to cancel escrow");
|
|
1024
1051
|
e((e) => ({ escrowRecords: Z(e.escrowRecords, X(r.cancelCrewEscrowRecord)) }));
|
|
1025
1052
|
}
|
|
1026
1053
|
}));
|