@burdenoff/microfe-crewfoundry 2026.704.7 → 2026.707.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/crewfoundry/components/viz/BarChart.js.map +1 -1
- package/dist/crewfoundry/components/viz/CertificateCard.js.map +1 -1
- package/dist/crewfoundry/components/viz/DonutChart.js.map +1 -1
- package/dist/crewfoundry/components/viz/Heatmap.js.map +1 -1
- package/dist/crewfoundry/components/viz/LineChart.js.map +1 -1
- package/dist/crewfoundry/components/viz/PathSteps.js.map +1 -1
- package/dist/crewfoundry/components/viz/RatingStars.js.map +1 -1
- package/dist/crewfoundry/components/viz/SegmentedTabs.js.map +1 -1
- package/dist/crewfoundry/components/viz/StatCard.js.map +1 -1
- package/dist/crewfoundry/components/viz/lib/Avatar.js.map +1 -1
- package/dist/crewfoundry/components/viz/lib/CartesianFrame.js.map +1 -1
- package/dist/crewfoundry/components/viz/lib/geometry.js.map +1 -1
- package/dist/crewfoundry/lib/analytics.js.map +1 -1
- package/dist/crewfoundry/pages/AnalyticsAnalyticsPagePage.js.map +1 -1
- package/dist/crewfoundry/pages/AnalyticsEmployeeAnalyticsPagePage.js.map +1 -1
- package/dist/crewfoundry/pages/AnalyticsFinancialAnalyticsPagePage.js.map +1 -1
- package/dist/crewfoundry/pages/AnalyticsHiringAnalyticsPagePage.js.map +1 -1
- package/dist/crewfoundry/pages/CommunicationsMessagesPagePage.js +2 -1
- package/dist/crewfoundry/pages/CommunicationsMessagesPagePage.js.map +1 -1
- package/dist/crewfoundry/pages/CompanyClientManagementPagePage.js.map +1 -1
- package/dist/crewfoundry/pages/DashboardDashboardPagePage.js.map +1 -1
- package/dist/crewfoundry/pages/HelpApiDocumentationPagePage.js +0 -41
- package/dist/crewfoundry/pages/HelpApiDocumentationPagePage.js.map +1 -1
- package/dist/crewfoundry/pages/HiringApplicationsPagePage.js.map +1 -1
- package/dist/crewfoundry/pages/HiringCandidatesPagePage.js.map +1 -1
- package/dist/crewfoundry/pages/HiringCreateJobPagePage.js.map +1 -1
- package/dist/crewfoundry/pages/HiringJobDetailsPagePage.js.map +1 -1
- package/dist/crewfoundry/pages/HiringJobsPagePage.js.map +1 -1
- package/dist/crewfoundry/pages/HrDepartmentsPagePage.js +8 -4
- package/dist/crewfoundry/pages/HrDepartmentsPagePage.js.map +1 -1
- package/dist/crewfoundry/pages/HrLeaveManagementPagePage.js.map +1 -1
- package/dist/crewfoundry/pages/HrPayrollPagePage.js.map +1 -1
- package/dist/crewfoundry/pages/HrTimeTrackingPagePage.js.map +1 -1
- package/dist/crewfoundry/pages/LearningCertificatesPagePage.js.map +1 -1
- package/dist/crewfoundry/pages/LearningCourseLearningPagePage.js.map +1 -1
- package/dist/crewfoundry/pages/LearningCoursesPagePage.js.map +1 -1
- package/dist/crewfoundry/pages/LearningLearningPathsPagePage.js.map +1 -1
- package/dist/crewfoundry/pages/LearningMyLearningPagePage.js.map +1 -1
- package/dist/crewfoundry/pages/MarketplaceMarketplacePagePage.js.map +1 -1
- package/dist/crewfoundry/pages/MarketplaceServiceDetailsPagePage.js.map +1 -1
- package/dist/crewfoundry/pages/PaymentsInvoicesPagePage.js.map +1 -1
- package/dist/crewfoundry/pages/ProjectsProjectsPagePage.js.map +1 -1
- package/dist/crewfoundry/pages/ProjectsResourcingPagePage.js.map +1 -1
- package/dist/crewfoundry/pages/TeamsTeamDetailPagePage.js.map +1 -1
- package/dist/crewfoundry/pages/TeamsTeamsPagePage.js.map +1 -1
- package/dist/crewfoundry/store/crewfoundryStore.js +142 -184
- package/dist/crewfoundry/store/crewfoundryStore.js.map +1 -1
- package/dist/crewfoundry/utils/courseProgress.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { create as e } from "zustand";
|
|
2
2
|
import { graphqlFetch as t } from "@burdenoff/fe-libs/shared/graphql";
|
|
3
3
|
//#region src/crewfoundry/store/crewfoundryStore.ts
|
|
4
|
-
var n = "\n query CrewfoundryBootstrap {\n crewfoundryBootstrap {\n employees { id firstName lastName email department position status type salary startDate avatar location managerId phone performanceScore skills terminationDate }\n departments { id name headId headName employeeCount budget location status }\n jobPostings { id title department location type experienceLevel salaryMin salaryMax status applicants postedDate deadline description requirements benefits }\n candidates { id firstName lastName email phone position status appliedDate resumeUrl rating source experience skills currentCompany notes hiredDate }\n interviews { id candidateId candidateName position interviewerName date time type status feedback rating }\n courses { id title category instructor duration level enrolled completed rating status thumbnail description modules skills }\n learningPaths { id title description courses duration level enrolled completionRate }\n marketplaceServices { id title provider category price priceType rating reviews description deliveryTime status skills }\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 payrollRecords { id employeeId employeeName department period grossPay deductions netPay status payDate paymentMethod }\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 notifications { id title message type category read createdAt actionUrl }\n invoices { id number clientName amount status issueDate dueDate items }\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 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 courses { id title category instructor duration level enrolled completed rating status thumbnail description modules skills }\n learningPaths { id title description courses duration level enrolled completionRate }\n marketplaceServices { id title provider category price priceType rating reviews description deliveryTime status skills }\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 payrollRecords { id employeeId employeeName department period grossPay deductions netPay status payDate paymentMethod }\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 notifications { id title message type category read createdAt actionUrl }\n invoices { id number clientName amount status issueDate dueDate items }\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", i = "\n query CrewfoundryOverlapBilling {\n getBillingAccountsByOrg {\n id\n name\n isDefault\n paymentMethods {\n id\n type\n brand\n last4\n isDefault\n expiryMonth\n expiryYear\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 MarkCrewNotificationRead($id: ID!) { markCrewNotificationRead(id: $id) }", g = "mutation MarkAllCrewNotificationsRead { markAllCrewNotificationsRead }", _ = "mutation RemoveCrewJobPosting($id: ID!) { removeCrewJobPosting(id: $id) }", v = "mutation RemoveCrewCandidate($id: ID!) { removeCrewCandidate(id: $id) }", y = "mutation UpdateCrewAnnouncement($id: ID!, $input: UpdateCrewAnnouncementInput!) { updateCrewAnnouncement(id: $id, input: $input) { id title content author authorRole category priority isPinned createdAt viewCount tags } }", b = "mutation RemoveCrewAnnouncement($id: ID!) { removeCrewAnnouncement(id: $id) }", x = "mutation CreateCrewInterview($input: CreateCrewInterviewInput!) { createCrewInterview(input: $input) { id candidateId candidateName position interviewerName date time type status feedback rating } }", S = "mutation UpdateCrewInterview($id: ID!, $input: UpdateCrewInterviewInput!) { updateCrewInterview(id: $id, input: $input) { id candidateId candidateName position interviewerName date time type status feedback rating } }", C = "mutation RemoveCrewInterview($id: ID!) { removeCrewInterview(id: $id) }", w = "mutation CreateCrewInvoice($input: CreateCrewInvoiceInput!) { createCrewInvoice(input: $input) { id number clientName amount status issueDate dueDate items } }", T = "mutation UpdateCrewInvoice($id: ID!, $input: UpdateCrewInvoiceInput!) { updateCrewInvoice(id: $id, input: $input) { id number clientName amount status issueDate dueDate items } }", E = "mutation RemoveCrewInvoice($id: ID!) { removeCrewInvoice(id: $id) }", D = "mutation CreateCrewVendor($input: CreateCrewVendorInput!) { createCrewVendor(input: $input) { id name category contactPerson email phone status contractValue rating } }", O = "mutation UpdateCrewVendor($id: ID!, $input: UpdateCrewVendorInput!) { updateCrewVendor(id: $id, input: $input) { id name category contactPerson email phone status contractValue rating } }", k = "mutation RemoveCrewVendor($id: ID!) { removeCrewVendor(id: $id) }", A = "mutation CreateCrewClient($input: CreateCrewClientInput!) { createCrewClient(input: $input) { id name industry contactPerson email phone status revenue projects since } }", j = "mutation UpdateCrewClient($id: ID!, $input: UpdateCrewClientInput!) { updateCrewClient(id: $id, input: $input) { id name industry contactPerson email phone status revenue projects since } }", M = "mutation RemoveCrewClient($id: ID!) { removeCrewClient(id: $id) }", N = "mutation CreateCrewTeam($input: CreateCrewTeamInput!) { createCrewTeam(input: $input) { id name description leadId leadName members memberCount department status projectCount createdAt } }", ee = "mutation UpdateCrewTeam($id: ID!, $input: UpdateCrewTeamInput!) { updateCrewTeam(id: $id, input: $input) { id name description leadId leadName members memberCount department status projectCount createdAt } }", te = "mutation RemoveCrewTeam($id: ID!) { removeCrewTeam(id: $id) }", ne = "mutation CreateCrewProject($input: CreateCrewProjectInput!) { createCrewProject(input: $input) { id name description status priority startDate endDate progress budget spent teamId teamName managerId managerName tasks completedTasks } }", re = "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 } }", ie = "mutation RemoveCrewProject($id: ID!) { removeCrewProject(id: $id) }", ae = "mutation CreateCrewMarketplaceService($input: CreateCrewMarketplaceServiceInput!) { createCrewMarketplaceService(input: $input) { id title provider category price priceType rating reviews description deliveryTime status skills } }", oe = "mutation UpdateCrewMarketplaceService($id: ID!, $input: UpdateCrewMarketplaceServiceInput!) { updateCrewMarketplaceService(id: $id, input: $input) { id title provider category price priceType rating reviews description deliveryTime status skills } }", se = "mutation RemoveCrewMarketplaceService($id: ID!) { removeCrewMarketplaceService(id: $id) }", ce = "mutation CreateCrewDepartment($input: CreateCrewDepartmentInput!) { createCrewDepartment(input: $input) { id name headId headName employeeCount budget location status } }", le = "mutation UpdateCrewDepartment($id: ID!, $input: UpdateCrewDepartmentInput!) { updateCrewDepartment(id: $id, input: $input) { id name headId headName employeeCount budget location status } }", ue = "mutation RemoveCrewDepartment($id: ID!) { removeCrewDepartment(id: $id) }", P = "id title category instructor duration level enrolled completed rating status thumbnail description modules skills", F = `mutation CreateCrewCourse($input: CreateCrewCourseInput!) { createCrewCourse(input: $input) { ${P} } }`, I = `mutation UpdateCrewCourse($id: ID!, $input: UpdateCrewCourseInput!) { updateCrewCourse(id: $id, input: $input) { ${P} } }`, L = "mutation RemoveCrewCourse($id: ID!) { removeCrewCourse(id: $id) }", R = `mutation EnrollCrewCourse($id: ID!) { enrollCrewCourse(id: $id) { ${P} } }`, z = "mutation CreateCrewLearningPath($input: CreateCrewLearningPathInput!) { createCrewLearningPath(input: $input) { id title description courses duration level enrolled completionRate } }", B = "mutation UpdateCrewLearningPath($id: ID!, $input: UpdateCrewLearningPathInput!) { updateCrewLearningPath(id: $id, input: $input) { id title description courses duration level enrolled completionRate } }", V = "mutation RemoveCrewLearningPath($id: ID!) { removeCrewLearningPath(id: $id) }", H = "mutation CreateCrewPayrollRecord($input: CreateCrewPayrollRecordInput!) { createCrewPayrollRecord(input: $input) { id employeeId employeeName department period grossPay deductions netPay status payDate paymentMethod } }", U = "mutation UpdateCrewPayrollRecord($id: ID!, $input: UpdateCrewPayrollRecordInput!) { updateCrewPayrollRecord(id: $id, input: $input) { id employeeId employeeName department period grossPay deductions netPay status payDate paymentMethod } }", de = "mutation RemoveCrewPayrollRecord($id: ID!) { removeCrewPayrollRecord(id: $id) }", fe = "mutation CreateCrewTimeEntry($input: CreateCrewTimeEntryInput!) { createCrewTimeEntry(input: $input) { id employeeId employeeName date clockIn clockOut totalHours overtime project status billable } }", pe = "mutation UpdateCrewTimeEntry($id: ID!, $input: UpdateCrewTimeEntryInput!) { updateCrewTimeEntry(id: $id, input: $input) { id employeeId employeeName date clockIn clockOut totalHours overtime project status billable } }", me = "mutation RemoveCrewTimeEntry($id: ID!) { removeCrewTimeEntry(id: $id) }", W = (e) => e.toUpperCase().replaceAll("-", "_"), G = {
|
|
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 payrollRecords { id employeeId employeeName department period grossPay deductions netPay status payDate paymentMethod }\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 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 payrollRecords { id employeeId employeeName department period grossPay deductions netPay status payDate paymentMethod }\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", i = "\n query CrewfoundryOverlapBilling {\n getBillingAccountsByOrg {\n id\n name\n isDefault\n paymentMethods {\n id\n type\n brand\n last4\n isDefault\n expiryMonth\n expiryYear\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) }", S = "mutation CreateCrewVendor($input: CreateCrewVendorInput!) { createCrewVendor(input: $input) { id name category contactPerson email phone status contractValue rating } }", C = "mutation UpdateCrewVendor($id: ID!, $input: UpdateCrewVendorInput!) { updateCrewVendor(id: $id, input: $input) { id name category contactPerson email phone status contractValue rating } }", w = "mutation RemoveCrewVendor($id: ID!) { removeCrewVendor(id: $id) }", T = "mutation CreateCrewClient($input: CreateCrewClientInput!) { createCrewClient(input: $input) { id name industry contactPerson email phone status revenue projects since } }", E = "mutation UpdateCrewClient($id: ID!, $input: UpdateCrewClientInput!) { updateCrewClient(id: $id, input: $input) { id name industry contactPerson email phone status revenue projects since } }", D = "mutation RemoveCrewClient($id: ID!) { removeCrewClient(id: $id) }", O = "mutation CreateCrewTeam($input: CreateCrewTeamInput!) { createCrewTeam(input: $input) { id name description leadId leadName members memberCount department status projectCount createdAt } }", k = "mutation UpdateCrewTeam($id: ID!, $input: UpdateCrewTeamInput!) { updateCrewTeam(id: $id, input: $input) { id name description leadId leadName members memberCount department status projectCount createdAt } }", A = "mutation RemoveCrewTeam($id: ID!) { removeCrewTeam(id: $id) }", j = "mutation CreateCrewProject($input: CreateCrewProjectInput!) { createCrewProject(input: $input) { id name description status priority startDate endDate progress budget spent teamId teamName managerId managerName tasks completedTasks } }", M = "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 } }", ee = "mutation RemoveCrewProject($id: ID!) { removeCrewProject(id: $id) }", te = "mutation CreateCrewDepartment($input: CreateCrewDepartmentInput!) { createCrewDepartment(input: $input) { id name headId headName employeeCount budget location status } }", ne = "mutation UpdateCrewDepartment($id: ID!, $input: UpdateCrewDepartmentInput!) { updateCrewDepartment(id: $id, input: $input) { id name headId headName employeeCount budget location status } }", N = "mutation RemoveCrewDepartment($id: ID!) { removeCrewDepartment(id: $id) }", P = "mutation CreateCrewPayrollRecord($input: CreateCrewPayrollRecordInput!) { createCrewPayrollRecord(input: $input) { id employeeId employeeName department period grossPay deductions netPay status payDate paymentMethod } }", F = "mutation UpdateCrewPayrollRecord($id: ID!, $input: UpdateCrewPayrollRecordInput!) { updateCrewPayrollRecord(id: $id, input: $input) { id employeeId employeeName department period grossPay deductions netPay status payDate paymentMethod } }", I = "mutation RemoveCrewPayrollRecord($id: ID!) { removeCrewPayrollRecord(id: $id) }", L = "mutation CreateCrewTimeEntry($input: CreateCrewTimeEntryInput!) { createCrewTimeEntry(input: $input) { id employeeId employeeName date clockIn clockOut totalHours overtime project status billable } }", R = "mutation UpdateCrewTimeEntry($id: ID!, $input: UpdateCrewTimeEntryInput!) { updateCrewTimeEntry(id: $id, input: $input) { id employeeId employeeName date clockIn clockOut totalHours overtime project status billable } }", z = "mutation RemoveCrewTimeEntry($id: ID!) { removeCrewTimeEntry(id: $id) }", B = (e) => e.toUpperCase().replaceAll("-", "_"), V = (e, t) => /* @__PURE__ */ Error(`${e} is served by ${t}; CrewFoundry no longer owns this backend surface.`), H = {
|
|
5
5
|
employee: ["status", "type"],
|
|
6
6
|
department: ["status"],
|
|
7
7
|
jobPosting: [
|
|
@@ -24,7 +24,7 @@ var n = "\n query CrewfoundryBootstrap {\n crewfoundryBootstrap {\n emp
|
|
|
24
24
|
invoice: ["status"],
|
|
25
25
|
vendor: ["status"],
|
|
26
26
|
client: ["status"]
|
|
27
|
-
},
|
|
27
|
+
}, U = (e, t) => {
|
|
28
28
|
if (!e || typeof e != "object") return e;
|
|
29
29
|
let n = { ...e };
|
|
30
30
|
for (let e of t) {
|
|
@@ -32,22 +32,22 @@ var n = "\n query CrewfoundryBootstrap {\n crewfoundryBootstrap {\n emp
|
|
|
32
32
|
typeof t == "string" && (n[e] = t.toLowerCase());
|
|
33
33
|
}
|
|
34
34
|
return n;
|
|
35
|
-
},
|
|
35
|
+
}, W = (e) => e ? e.slice(0, 10) : "TBD", G = (e) => !e || typeof e != "object" || Array.isArray(e) ? null : e, K = (e) => typeof e == "number" ? e : null, q = (e) => typeof e == "string" ? e : null, J = (e) => {
|
|
36
36
|
let t = e.toLowerCase();
|
|
37
37
|
return t === "active" ? "active" : t === "completed" ? "completed" : t === "cancelled" ? "cancelled" : t === "archived" ? "on_hold" : "planning";
|
|
38
|
-
},
|
|
38
|
+
}, Y = (e) => {
|
|
39
39
|
let t = e.toLowerCase();
|
|
40
40
|
return t === "active" ? "active" : t === "inactive" || t === "archived" || t === "deleted" ? "disbanded" : "forming";
|
|
41
|
-
},
|
|
42
|
-
let r =
|
|
41
|
+
}, X = (e, t) => e.map((e, n) => {
|
|
42
|
+
let r = G(e.config), i = K(r?.budget) ?? 25e3 + n * 2500, a = K(r?.spent) ?? Math.round(i * (e.status === "COMPLETED" ? 1 : .62)), o = K(r?.progress) ?? (e.status === "COMPLETED" ? 100 : 58), s = K(r?.tasks) ?? 20 + n % 9, c = K(r?.completedTasks) ?? Math.round(o / 100 * s), l = t[n % Math.max(t.length, 1)];
|
|
43
43
|
return {
|
|
44
44
|
id: e.id,
|
|
45
45
|
name: e.name,
|
|
46
|
-
description:
|
|
47
|
-
status:
|
|
48
|
-
priority:
|
|
49
|
-
startDate:
|
|
50
|
-
endDate:
|
|
46
|
+
description: q(r?.description) || `${e.key} delivery plan`,
|
|
47
|
+
status: J(e.status),
|
|
48
|
+
priority: q(r?.priority)?.toLowerCase() || "medium",
|
|
49
|
+
startDate: W(e.createdAt),
|
|
50
|
+
endDate: W(e.updatedAt),
|
|
51
51
|
progress: o,
|
|
52
52
|
budget: i,
|
|
53
53
|
spent: a,
|
|
@@ -58,7 +58,7 @@ var n = "\n query CrewfoundryBootstrap {\n crewfoundryBootstrap {\n emp
|
|
|
58
58
|
tasks: s,
|
|
59
59
|
completedTasks: c
|
|
60
60
|
};
|
|
61
|
-
}),
|
|
61
|
+
}), re = (e) => e.map(({ node: e }) => ({
|
|
62
62
|
id: e.id,
|
|
63
63
|
name: e.name,
|
|
64
64
|
description: e.description || `${e.name} team workspace`,
|
|
@@ -67,10 +67,10 @@ var n = "\n query CrewfoundryBootstrap {\n crewfoundryBootstrap {\n emp
|
|
|
67
67
|
members: [],
|
|
68
68
|
memberCount: e.memberCount,
|
|
69
69
|
department: e.groupType?.toLowerCase().replaceAll("_", " ") || "operations",
|
|
70
|
-
status:
|
|
70
|
+
status: Y(e.status),
|
|
71
71
|
projectCount: 0,
|
|
72
|
-
createdAt:
|
|
73
|
-
})),
|
|
72
|
+
createdAt: W(e.createdAt)
|
|
73
|
+
})), ie = (e) => e.filter(({ node: e }) => e.unreadCount > 0).map(({ node: e }) => ({
|
|
74
74
|
id: `conversation-${e.id}`,
|
|
75
75
|
title: e.title || "Conversation update",
|
|
76
76
|
message: `${e.unreadCount} unread in ${e.memberCount}-member channel`,
|
|
@@ -79,10 +79,7 @@ var n = "\n query CrewfoundryBootstrap {\n crewfoundryBootstrap {\n emp
|
|
|
79
79
|
read: !1,
|
|
80
80
|
createdAt: e.updatedAt,
|
|
81
81
|
actionUrl: "/crewfoundry/communications/messages-page"
|
|
82
|
-
})),
|
|
83
|
-
let n = new Set(e.map((e) => e.id));
|
|
84
|
-
return [...t.filter((e) => !n.has(e.id)), ...e];
|
|
85
|
-
}, Se = (e) => {
|
|
82
|
+
})), ae = (e) => {
|
|
86
83
|
let t = e.getBillingAccountsByOrg.find((e) => e?.isDefault && e?.id) || e.getBillingAccountsByOrg.find((e) => e?.id);
|
|
87
84
|
return t?.id ? (t.paymentMethods || []).filter((e) => !!e).map((e) => {
|
|
88
85
|
let n = e.expiryMonth ? String(e.expiryMonth).padStart(2, "0") : void 0, r = e.expiryYear ? String(e.expiryYear) : void 0, i = e.type === "BANK_TRANSFER" || e.type === "NETBANKING";
|
|
@@ -96,11 +93,11 @@ var n = "\n query CrewfoundryBootstrap {\n crewfoundryBootstrap {\n emp
|
|
|
96
93
|
expiry: n && r ? `${n}/${r}` : void 0
|
|
97
94
|
};
|
|
98
95
|
}) : [];
|
|
99
|
-
},
|
|
96
|
+
}, oe = (e, t) => {
|
|
100
97
|
if (e.errors?.length) throw Error(e.errors[0]?.message || t);
|
|
101
98
|
if (!e.data) throw Error(t);
|
|
102
99
|
return e.data;
|
|
103
|
-
},
|
|
100
|
+
}, se = new Set([
|
|
104
101
|
"id",
|
|
105
102
|
"createdAt",
|
|
106
103
|
"createdOn",
|
|
@@ -122,28 +119,28 @@ var n = "\n query CrewfoundryBootstrap {\n crewfoundryBootstrap {\n emp
|
|
|
122
119
|
"viewCount",
|
|
123
120
|
"revenue",
|
|
124
121
|
"projects"
|
|
125
|
-
]),
|
|
122
|
+
]), ce = (e) => {
|
|
126
123
|
if (!e) return e;
|
|
127
124
|
let t = e.input;
|
|
128
125
|
if (!t || typeof t != "object" || Array.isArray(t)) return e;
|
|
129
126
|
let n = {};
|
|
130
|
-
for (let [e, r] of Object.entries(t))
|
|
127
|
+
for (let [e, r] of Object.entries(t)) se.has(e) || (n[e] = r);
|
|
131
128
|
return {
|
|
132
129
|
...e,
|
|
133
130
|
input: n
|
|
134
131
|
};
|
|
135
|
-
}, Z = async (e, n, r, i, a = "workspace") =>
|
|
132
|
+
}, Z = async (e, n, r, i, a = "workspace") => oe(await t({
|
|
136
133
|
gateway: a,
|
|
137
134
|
query: e,
|
|
138
|
-
variables:
|
|
135
|
+
variables: ce(n),
|
|
139
136
|
authToken: r.authToken,
|
|
140
137
|
baseUrl: a === "workspace" ? r.apiGatewayUrl : void 0,
|
|
141
138
|
extraHeaders: { ...a === "workspace" && r.workspaceId ? { "x-workspace-id": r.workspaceId } : {} }
|
|
142
|
-
}), i),
|
|
139
|
+
}), i), le = () => !1, Q = async (e, t, n, r, i = "workspace") => {
|
|
143
140
|
try {
|
|
144
141
|
return await Z(e, t, n, r, i);
|
|
145
142
|
} catch (e) {
|
|
146
|
-
return
|
|
143
|
+
return le() && console.warn(`[crewfoundry] overlap query skipped: ${r}`, e), null;
|
|
147
144
|
}
|
|
148
145
|
}, $ = e((e) => ({
|
|
149
146
|
metrics: [
|
|
@@ -238,7 +235,7 @@ var n = "\n query CrewfoundryBootstrap {\n crewfoundryBootstrap {\n emp
|
|
|
238
235
|
},
|
|
239
236
|
groupFirst: 30,
|
|
240
237
|
conversationFirst: 30
|
|
241
|
-
}, t, "Unable to load workspace bootstrap with overlap data"), Q(i, void 0, t, "Unable to load overlap billing data", "global")]), s = a ? a.crewfoundryBootstrap : (await Z(n, void 0, t, "Unable to load CrewFoundry data")).crewfoundryBootstrap, c = a ?
|
|
238
|
+
}, t, "Unable to load workspace bootstrap with overlap data"), Q(i, void 0, t, "Unable to load overlap billing data", "global")]), s = a ? a.crewfoundryBootstrap : (await Z(n, void 0, t, "Unable to load CrewFoundry data")).crewfoundryBootstrap, c = a ? re(a.groups.edges) : [], l = a ? X(a.projects.items, c) : [], u = a ? ie(a.conversations.edges) : [], d = c.length > 0 ? c : s.teams, f = l.length > 0 ? l : s.projects, p = u, m = o ? ae(o) : [], h = s.employees.map((e) => U(e, H.employee)), g = s.departments.map((e) => U(e, H.department)), _ = s.jobPostings.map((e) => U(e, H.jobPosting)), v = s.candidates.map((e) => U(e, H.candidate)), y = s.interviews.map((e) => U(e, H.interview)), b = [], x = [], S = s.announcements.map((e) => U(e, H.announcement)), C = d.map((e) => U(e, H.team)), w = f.map((e) => U(e, H.project));
|
|
242
239
|
e({
|
|
243
240
|
employees: h,
|
|
244
241
|
departments: g,
|
|
@@ -246,19 +243,19 @@ var n = "\n query CrewfoundryBootstrap {\n crewfoundryBootstrap {\n emp
|
|
|
246
243
|
candidates: v,
|
|
247
244
|
interviews: y,
|
|
248
245
|
courses: b,
|
|
249
|
-
learningPaths:
|
|
246
|
+
learningPaths: [],
|
|
250
247
|
marketplaceServices: x,
|
|
251
248
|
announcements: S,
|
|
252
249
|
teams: C,
|
|
253
250
|
projects: w,
|
|
254
|
-
payrollRecords:
|
|
255
|
-
leaveRequests:
|
|
256
|
-
timeEntries:
|
|
257
|
-
notifications:
|
|
258
|
-
paymentMethods:
|
|
259
|
-
invoices:
|
|
260
|
-
vendors:
|
|
261
|
-
clients:
|
|
251
|
+
payrollRecords: s.payrollRecords.map((e) => U(e, H.payrollRecord)),
|
|
252
|
+
leaveRequests: s.leaveRequests.map((e) => U(e, H.leaveRequest)),
|
|
253
|
+
timeEntries: s.timeEntries.map((e) => U(e, H.timeEntry)),
|
|
254
|
+
notifications: p.map((e) => U(e, H.notification)),
|
|
255
|
+
paymentMethods: m.map((e) => U(e, H.paymentMethod)),
|
|
256
|
+
invoices: [],
|
|
257
|
+
vendors: s.vendors.map((e) => U(e, H.vendor)),
|
|
258
|
+
clients: s.clients.map((e) => U(e, H.client)),
|
|
262
259
|
metrics: [
|
|
263
260
|
{
|
|
264
261
|
label: "Total Employees",
|
|
@@ -297,21 +294,21 @@ var n = "\n query CrewfoundryBootstrap {\n crewfoundryBootstrap {\n emp
|
|
|
297
294
|
addEmployee: async (t) => {
|
|
298
295
|
let n = $.getState().initParams, r = await Z(a, { input: {
|
|
299
296
|
...t,
|
|
300
|
-
status:
|
|
301
|
-
type:
|
|
297
|
+
status: B(t.status),
|
|
298
|
+
type: B(t.type)
|
|
302
299
|
} }, n, "Unable to create employee");
|
|
303
|
-
e((e) => ({ employees: [
|
|
300
|
+
e((e) => ({ employees: [U(r.createCrewEmployee, H.employee), ...e.employees] }));
|
|
304
301
|
},
|
|
305
302
|
updateEmployee: async (t, n) => {
|
|
306
303
|
let r = $.getState().initParams, i = await Z(o, {
|
|
307
304
|
id: t,
|
|
308
305
|
input: {
|
|
309
306
|
...n,
|
|
310
|
-
...n.status ? { status:
|
|
311
|
-
...n.type ? { type:
|
|
307
|
+
...n.status ? { status: B(n.status) } : {},
|
|
308
|
+
...n.type ? { type: B(n.type) } : {}
|
|
312
309
|
}
|
|
313
310
|
}, r, "Unable to update employee");
|
|
314
|
-
e((e) => ({ employees: e.employees.map((e) => e.id === t ?
|
|
311
|
+
e((e) => ({ employees: e.employees.map((e) => e.id === t ? U(i.updateCrewEmployee, H.employee) : e) }));
|
|
315
312
|
},
|
|
316
313
|
removeEmployee: async (t) => {
|
|
317
314
|
let n = $.getState().initParams;
|
|
@@ -320,322 +317,283 @@ var n = "\n query CrewfoundryBootstrap {\n crewfoundryBootstrap {\n emp
|
|
|
320
317
|
addJobPosting: async (t) => {
|
|
321
318
|
let n = $.getState().initParams, r = await Z(c, { input: {
|
|
322
319
|
...t,
|
|
323
|
-
status:
|
|
320
|
+
status: B(t.status)
|
|
324
321
|
} }, n, "Unable to create job posting");
|
|
325
|
-
e((e) => ({ jobPostings: [
|
|
322
|
+
e((e) => ({ jobPostings: [U(r.createCrewJobPosting, H.jobPosting), ...e.jobPostings] }));
|
|
326
323
|
},
|
|
327
324
|
updateJobPosting: async (t, n) => {
|
|
328
325
|
let r = $.getState().initParams, i = await Z(l, {
|
|
329
326
|
id: t,
|
|
330
327
|
input: {
|
|
331
328
|
...n,
|
|
332
|
-
...n.status ? { status:
|
|
329
|
+
...n.status ? { status: B(n.status) } : {}
|
|
333
330
|
}
|
|
334
331
|
}, r, "Unable to update job posting");
|
|
335
|
-
e((e) => ({ jobPostings: e.jobPostings.map((e) => e.id === t ?
|
|
332
|
+
e((e) => ({ jobPostings: e.jobPostings.map((e) => e.id === t ? U(i.updateCrewJobPosting, H.jobPosting) : e) }));
|
|
336
333
|
},
|
|
337
334
|
addCandidate: async (t) => {
|
|
338
335
|
let n = $.getState().initParams, r = await Z(u, { input: {
|
|
339
336
|
...t,
|
|
340
|
-
status:
|
|
337
|
+
status: B(t.status)
|
|
341
338
|
} }, n, "Unable to create candidate");
|
|
342
|
-
e((e) => ({ candidates: [
|
|
339
|
+
e((e) => ({ candidates: [U(r.createCrewCandidate, H.candidate), ...e.candidates] }));
|
|
343
340
|
},
|
|
344
341
|
updateCandidate: async (t, n) => {
|
|
345
342
|
let r = $.getState().initParams, i = await Z(d, {
|
|
346
343
|
id: t,
|
|
347
344
|
input: {
|
|
348
345
|
...n,
|
|
349
|
-
...n.status ? { status:
|
|
346
|
+
...n.status ? { status: B(n.status) } : {}
|
|
350
347
|
}
|
|
351
348
|
}, r, "Unable to update candidate");
|
|
352
|
-
e((e) => ({ candidates: e.candidates.map((e) => e.id === t ?
|
|
349
|
+
e((e) => ({ candidates: e.candidates.map((e) => e.id === t ? U(i.updateCrewCandidate, H.candidate) : e) }));
|
|
353
350
|
},
|
|
354
351
|
addAnnouncement: async (t) => {
|
|
355
352
|
let n = $.getState().initParams, r = await Z(f, { input: t }, n, "Unable to create announcement");
|
|
356
|
-
e((e) => ({ announcements: [
|
|
353
|
+
e((e) => ({ announcements: [U(r.createCrewAnnouncement, H.announcement), ...e.announcements] }));
|
|
357
354
|
},
|
|
358
355
|
addLeaveRequest: async (t) => {
|
|
359
356
|
let n = $.getState().initParams, r = await Z(p, { input: {
|
|
360
357
|
...t,
|
|
361
|
-
type:
|
|
362
|
-
status:
|
|
358
|
+
type: B(t.type),
|
|
359
|
+
status: B(t.status)
|
|
363
360
|
} }, n, "Unable to create leave request");
|
|
364
|
-
e((e) => ({ leaveRequests: [
|
|
361
|
+
e((e) => ({ leaveRequests: [U(r.createCrewLeaveRequest, H.leaveRequest), ...e.leaveRequests] }));
|
|
365
362
|
},
|
|
366
363
|
updateLeaveRequest: async (t, n) => {
|
|
367
364
|
let r = $.getState().initParams, i = await Z(m, {
|
|
368
365
|
id: t,
|
|
369
366
|
input: {
|
|
370
367
|
...n,
|
|
371
|
-
...n.type ? { type:
|
|
372
|
-
...n.status ? { status:
|
|
368
|
+
...n.type ? { type: B(n.type) } : {},
|
|
369
|
+
...n.status ? { status: B(n.status) } : {}
|
|
373
370
|
}
|
|
374
371
|
}, r, "Unable to update leave request");
|
|
375
|
-
e((e) => ({ leaveRequests: e.leaveRequests.map((e) => e.id === t ?
|
|
372
|
+
e((e) => ({ leaveRequests: e.leaveRequests.map((e) => e.id === t ? U(i.updateCrewLeaveRequest, H.leaveRequest) : e) }));
|
|
376
373
|
},
|
|
377
374
|
markNotificationRead: async (t) => {
|
|
378
|
-
|
|
379
|
-
await Z(h, { id: t }, n, "Unable to update notification"), e((e) => ({ notifications: e.notifications.map((e) => e.id === t ? {
|
|
375
|
+
e((e) => ({ notifications: e.notifications.map((e) => e.id === t ? {
|
|
380
376
|
...e,
|
|
381
377
|
read: !0
|
|
382
378
|
} : e) }));
|
|
383
379
|
},
|
|
384
380
|
markAllNotificationsRead: async () => {
|
|
385
|
-
|
|
386
|
-
await Z(g, void 0, t, "Unable to update notifications"), e((e) => ({ notifications: e.notifications.map((e) => ({
|
|
381
|
+
e((e) => ({ notifications: e.notifications.map((e) => ({
|
|
387
382
|
...e,
|
|
388
383
|
read: !0
|
|
389
384
|
})) }));
|
|
390
385
|
},
|
|
391
386
|
removeJobPosting: async (t) => {
|
|
392
387
|
let n = $.getState().initParams;
|
|
393
|
-
await Z(
|
|
388
|
+
await Z(h, { id: t }, n, "Unable to remove job posting"), e((e) => ({ jobPostings: e.jobPostings.filter((e) => e.id !== t) }));
|
|
394
389
|
},
|
|
395
390
|
removeCandidate: async (t) => {
|
|
396
391
|
let n = $.getState().initParams;
|
|
397
|
-
await Z(
|
|
392
|
+
await Z(g, { id: t }, n, "Unable to remove candidate"), e((e) => ({ candidates: e.candidates.filter((e) => e.id !== t) }));
|
|
398
393
|
},
|
|
399
394
|
updateAnnouncement: async (t, n) => {
|
|
400
|
-
let r = $.getState().initParams, i = await Z(
|
|
395
|
+
let r = $.getState().initParams, i = await Z(_, {
|
|
401
396
|
id: t,
|
|
402
397
|
input: n
|
|
403
398
|
}, r, "Unable to update announcement");
|
|
404
|
-
e((e) => ({ announcements: e.announcements.map((e) => e.id === t ?
|
|
399
|
+
e((e) => ({ announcements: e.announcements.map((e) => e.id === t ? U(i.updateCrewAnnouncement, H.announcement) : e) }));
|
|
405
400
|
},
|
|
406
401
|
removeAnnouncement: async (t) => {
|
|
407
402
|
let n = $.getState().initParams;
|
|
408
|
-
await Z(
|
|
403
|
+
await Z(v, { id: t }, n, "Unable to remove announcement"), e((e) => ({ announcements: e.announcements.filter((e) => e.id !== t) }));
|
|
409
404
|
},
|
|
410
405
|
addInterview: async (t) => {
|
|
411
|
-
let n = $.getState().initParams, r = await Z(
|
|
406
|
+
let n = $.getState().initParams, r = await Z(y, { input: {
|
|
412
407
|
...t,
|
|
413
|
-
type:
|
|
414
|
-
status:
|
|
408
|
+
type: B(t.type),
|
|
409
|
+
status: B(t.status)
|
|
415
410
|
} }, n, "Unable to schedule interview");
|
|
416
|
-
e((e) => ({ interviews: [
|
|
411
|
+
e((e) => ({ interviews: [U(r.createCrewInterview, H.interview), ...e.interviews] }));
|
|
417
412
|
},
|
|
418
413
|
updateInterview: async (t, n) => {
|
|
419
|
-
let r = $.getState().initParams, i = await Z(
|
|
414
|
+
let r = $.getState().initParams, i = await Z(b, {
|
|
420
415
|
id: t,
|
|
421
416
|
input: {
|
|
422
417
|
...n,
|
|
423
|
-
...n.type ? { type:
|
|
424
|
-
...n.status ? { status:
|
|
418
|
+
...n.type ? { type: B(n.type) } : {},
|
|
419
|
+
...n.status ? { status: B(n.status) } : {}
|
|
425
420
|
}
|
|
426
421
|
}, r, "Unable to update interview");
|
|
427
|
-
e((e) => ({ interviews: e.interviews.map((e) => e.id === t ?
|
|
422
|
+
e((e) => ({ interviews: e.interviews.map((e) => e.id === t ? U(i.updateCrewInterview, H.interview) : e) }));
|
|
428
423
|
},
|
|
429
424
|
removeInterview: async (t) => {
|
|
430
425
|
let n = $.getState().initParams;
|
|
431
|
-
await Z(
|
|
426
|
+
await Z(x, { id: t }, n, "Unable to remove interview"), e((e) => ({ interviews: e.interviews.filter((e) => e.id !== t) }));
|
|
432
427
|
},
|
|
433
|
-
addInvoice: async (
|
|
434
|
-
|
|
435
|
-
...t,
|
|
436
|
-
status: W(t.status)
|
|
437
|
-
} }, n, "Unable to create invoice");
|
|
438
|
-
e((e) => ({ invoices: [K(r.createCrewInvoice, G.invoice), ...e.invoices] }));
|
|
428
|
+
addInvoice: async () => {
|
|
429
|
+
throw V("Invoices", "global-billing-svc");
|
|
439
430
|
},
|
|
440
|
-
updateInvoice: async (
|
|
441
|
-
|
|
442
|
-
id: t,
|
|
443
|
-
input: {
|
|
444
|
-
...n,
|
|
445
|
-
...n.status ? { status: W(n.status) } : {}
|
|
446
|
-
}
|
|
447
|
-
}, r, "Unable to update invoice");
|
|
448
|
-
e((e) => ({ invoices: e.invoices.map((e) => e.id === t ? K(i.updateCrewInvoice, G.invoice) : e) }));
|
|
431
|
+
updateInvoice: async () => {
|
|
432
|
+
throw V("Invoices", "global-billing-svc");
|
|
449
433
|
},
|
|
450
|
-
removeInvoice: async (
|
|
451
|
-
|
|
452
|
-
await Z(E, { id: t }, n, "Unable to remove invoice"), e((e) => ({ invoices: e.invoices.filter((e) => e.id !== t) }));
|
|
434
|
+
removeInvoice: async () => {
|
|
435
|
+
throw V("Invoices", "global-billing-svc");
|
|
453
436
|
},
|
|
454
437
|
addVendor: async (t) => {
|
|
455
|
-
let n = $.getState().initParams, r = await Z(
|
|
438
|
+
let n = $.getState().initParams, r = await Z(S, { input: {
|
|
456
439
|
...t,
|
|
457
|
-
status:
|
|
440
|
+
status: B(t.status)
|
|
458
441
|
} }, n, "Unable to create vendor");
|
|
459
|
-
e((e) => ({ vendors: [
|
|
442
|
+
e((e) => ({ vendors: [U(r.createCrewVendor, H.vendor), ...e.vendors] }));
|
|
460
443
|
},
|
|
461
444
|
updateVendor: async (t, n) => {
|
|
462
|
-
let r = $.getState().initParams, i = await Z(
|
|
445
|
+
let r = $.getState().initParams, i = await Z(C, {
|
|
463
446
|
id: t,
|
|
464
447
|
input: {
|
|
465
448
|
...n,
|
|
466
|
-
...n.status ? { status:
|
|
449
|
+
...n.status ? { status: B(n.status) } : {}
|
|
467
450
|
}
|
|
468
451
|
}, r, "Unable to update vendor");
|
|
469
|
-
e((e) => ({ vendors: e.vendors.map((e) => e.id === t ?
|
|
452
|
+
e((e) => ({ vendors: e.vendors.map((e) => e.id === t ? U(i.updateCrewVendor, H.vendor) : e) }));
|
|
470
453
|
},
|
|
471
454
|
removeVendor: async (t) => {
|
|
472
455
|
let n = $.getState().initParams;
|
|
473
|
-
await Z(
|
|
456
|
+
await Z(w, { id: t }, n, "Unable to remove vendor"), e((e) => ({ vendors: e.vendors.filter((e) => e.id !== t) }));
|
|
474
457
|
},
|
|
475
458
|
addClient: async (t) => {
|
|
476
|
-
let n = $.getState().initParams, r = await Z(
|
|
459
|
+
let n = $.getState().initParams, r = await Z(T, { input: {
|
|
477
460
|
...t,
|
|
478
|
-
status:
|
|
461
|
+
status: B(t.status)
|
|
479
462
|
} }, n, "Unable to create client");
|
|
480
|
-
e((e) => ({ clients: [
|
|
463
|
+
e((e) => ({ clients: [U(r.createCrewClient, H.client), ...e.clients] }));
|
|
481
464
|
},
|
|
482
465
|
updateClient: async (t, n) => {
|
|
483
|
-
let r = $.getState().initParams, i = await Z(
|
|
466
|
+
let r = $.getState().initParams, i = await Z(E, {
|
|
484
467
|
id: t,
|
|
485
468
|
input: {
|
|
486
469
|
...n,
|
|
487
|
-
...n.status ? { status:
|
|
470
|
+
...n.status ? { status: B(n.status) } : {}
|
|
488
471
|
}
|
|
489
472
|
}, r, "Unable to update client");
|
|
490
|
-
e((e) => ({ clients: e.clients.map((e) => e.id === t ?
|
|
473
|
+
e((e) => ({ clients: e.clients.map((e) => e.id === t ? U(i.updateCrewClient, H.client) : e) }));
|
|
491
474
|
},
|
|
492
475
|
removeClient: async (t) => {
|
|
493
476
|
let n = $.getState().initParams;
|
|
494
|
-
await Z(
|
|
477
|
+
await Z(D, { id: t }, n, "Unable to remove client"), e((e) => ({ clients: e.clients.filter((e) => e.id !== t) }));
|
|
495
478
|
},
|
|
496
479
|
addTeam: async (t) => {
|
|
497
|
-
let n = $.getState().initParams, r = await Z(
|
|
498
|
-
e((e) => ({ teams: [
|
|
480
|
+
let n = $.getState().initParams, r = await Z(O, { input: t }, n, "Unable to create team");
|
|
481
|
+
e((e) => ({ teams: [U(r.createCrewTeam, H.team), ...e.teams] }));
|
|
499
482
|
},
|
|
500
483
|
updateTeam: async (t, n) => {
|
|
501
|
-
let r = $.getState().initParams, i = await Z(
|
|
484
|
+
let r = $.getState().initParams, i = await Z(k, {
|
|
502
485
|
id: t,
|
|
503
486
|
input: n
|
|
504
487
|
}, r, "Unable to update team");
|
|
505
|
-
e((e) => ({ teams: e.teams.map((e) => e.id === t ?
|
|
488
|
+
e((e) => ({ teams: e.teams.map((e) => e.id === t ? U(i.updateCrewTeam, H.team) : e) }));
|
|
506
489
|
},
|
|
507
490
|
removeTeam: async (t) => {
|
|
508
491
|
let n = $.getState().initParams;
|
|
509
|
-
await Z(
|
|
492
|
+
await Z(A, { id: t }, n, "Unable to remove team"), e((e) => ({ teams: e.teams.filter((e) => e.id !== t) }));
|
|
510
493
|
},
|
|
511
494
|
addProject: async (t) => {
|
|
512
|
-
let n = $.getState().initParams, r = await Z(
|
|
495
|
+
let n = $.getState().initParams, r = await Z(j, { input: {
|
|
513
496
|
...t,
|
|
514
|
-
status:
|
|
515
|
-
priority:
|
|
497
|
+
status: B(t.status),
|
|
498
|
+
priority: B(t.priority)
|
|
516
499
|
} }, n, "Unable to create project");
|
|
517
|
-
e((e) => ({ projects: [
|
|
500
|
+
e((e) => ({ projects: [U(r.createCrewProject, H.project), ...e.projects] }));
|
|
518
501
|
},
|
|
519
502
|
updateProject: async (t, n) => {
|
|
520
|
-
let r = $.getState().initParams, i = await Z(
|
|
503
|
+
let r = $.getState().initParams, i = await Z(M, {
|
|
521
504
|
id: t,
|
|
522
505
|
input: {
|
|
523
506
|
...n,
|
|
524
|
-
...n.status ? { status:
|
|
525
|
-
...n.priority ? { priority:
|
|
507
|
+
...n.status ? { status: B(n.status) } : {},
|
|
508
|
+
...n.priority ? { priority: B(n.priority) } : {}
|
|
526
509
|
}
|
|
527
510
|
}, r, "Unable to update project");
|
|
528
|
-
e((e) => ({ projects: e.projects.map((e) => e.id === t ?
|
|
511
|
+
e((e) => ({ projects: e.projects.map((e) => e.id === t ? U(i.updateCrewProject, H.project) : e) }));
|
|
529
512
|
},
|
|
530
513
|
removeProject: async (t) => {
|
|
531
514
|
let n = $.getState().initParams;
|
|
532
|
-
await Z(
|
|
515
|
+
await Z(ee, { id: t }, n, "Unable to remove project"), e((e) => ({ projects: e.projects.filter((e) => e.id !== t) }));
|
|
533
516
|
},
|
|
534
|
-
addMarketplaceService: async (
|
|
535
|
-
|
|
536
|
-
...t,
|
|
537
|
-
status: W(t.status)
|
|
538
|
-
} }, n, "Unable to create service");
|
|
539
|
-
e((e) => ({ marketplaceServices: [K(r.createCrewMarketplaceService, G.marketplaceService), ...e.marketplaceServices] }));
|
|
517
|
+
addMarketplaceService: async () => {
|
|
518
|
+
throw V("Marketplace services", "global-store-svc");
|
|
540
519
|
},
|
|
541
|
-
updateMarketplaceService: async (
|
|
542
|
-
|
|
543
|
-
id: t,
|
|
544
|
-
input: {
|
|
545
|
-
...n,
|
|
546
|
-
...n.status ? { status: W(n.status) } : {}
|
|
547
|
-
}
|
|
548
|
-
}, r, "Unable to update service");
|
|
549
|
-
e((e) => ({ marketplaceServices: e.marketplaceServices.map((e) => e.id === t ? K(i.updateCrewMarketplaceService, G.marketplaceService) : e) }));
|
|
520
|
+
updateMarketplaceService: async () => {
|
|
521
|
+
throw V("Marketplace services", "global-store-svc");
|
|
550
522
|
},
|
|
551
|
-
removeMarketplaceService: async (
|
|
552
|
-
|
|
553
|
-
await Z(se, { id: t }, n, "Unable to remove service"), e((e) => ({ marketplaceServices: e.marketplaceServices.filter((e) => e.id !== t) }));
|
|
523
|
+
removeMarketplaceService: async () => {
|
|
524
|
+
throw V("Marketplace services", "global-store-svc");
|
|
554
525
|
},
|
|
555
526
|
addDepartment: async (t) => {
|
|
556
|
-
let n = $.getState().initParams, r = await Z(
|
|
557
|
-
e((e) => ({ departments: [
|
|
527
|
+
let n = $.getState().initParams, r = await Z(te, { input: t }, n, "Unable to create department");
|
|
528
|
+
e((e) => ({ departments: [U(r.createCrewDepartment, H.department), ...e.departments] }));
|
|
558
529
|
},
|
|
559
530
|
updateDepartment: async (t, n) => {
|
|
560
|
-
let r = $.getState().initParams, i = await Z(
|
|
531
|
+
let r = $.getState().initParams, i = await Z(ne, {
|
|
561
532
|
id: t,
|
|
562
533
|
input: n
|
|
563
534
|
}, r, "Unable to update department");
|
|
564
|
-
e((e) => ({ departments: e.departments.map((e) => e.id === t ?
|
|
535
|
+
e((e) => ({ departments: e.departments.map((e) => e.id === t ? U(i.updateCrewDepartment, H.department) : e) }));
|
|
565
536
|
},
|
|
566
537
|
removeDepartment: async (t) => {
|
|
567
538
|
let n = $.getState().initParams;
|
|
568
|
-
await Z(
|
|
539
|
+
await Z(N, { id: t }, n, "Unable to remove department"), e((e) => ({ departments: e.departments.filter((e) => e.id !== t) }));
|
|
569
540
|
},
|
|
570
|
-
addCourse: async (
|
|
571
|
-
|
|
572
|
-
e((e) => ({ courses: [K(r.createCrewCourse, G.course), ...e.courses] }));
|
|
541
|
+
addCourse: async () => {
|
|
542
|
+
throw V("Courses", "wspace-learning-svc");
|
|
573
543
|
},
|
|
574
|
-
updateCourse: async (
|
|
575
|
-
|
|
576
|
-
id: t,
|
|
577
|
-
input: n
|
|
578
|
-
}, r, "Unable to update course");
|
|
579
|
-
e((e) => ({ courses: e.courses.map((e) => e.id === t ? K(i.updateCrewCourse, G.course) : e) }));
|
|
544
|
+
updateCourse: async () => {
|
|
545
|
+
throw V("Courses", "wspace-learning-svc");
|
|
580
546
|
},
|
|
581
|
-
removeCourse: async (
|
|
582
|
-
|
|
583
|
-
await Z(L, { id: t }, n, "Unable to remove course"), e((e) => ({ courses: e.courses.filter((e) => e.id !== t) }));
|
|
547
|
+
removeCourse: async () => {
|
|
548
|
+
throw V("Courses", "wspace-learning-svc");
|
|
584
549
|
},
|
|
585
|
-
enrollCourse: async (
|
|
586
|
-
|
|
587
|
-
e((e) => ({ courses: e.courses.map((e) => e.id === t ? K(r.enrollCrewCourse, G.course) : e) }));
|
|
550
|
+
enrollCourse: async () => {
|
|
551
|
+
throw V("Course enrollment", "wspace-learning-svc");
|
|
588
552
|
},
|
|
589
|
-
addLearningPath: async (
|
|
590
|
-
|
|
591
|
-
e((e) => ({ learningPaths: [r.createCrewLearningPath, ...e.learningPaths] }));
|
|
553
|
+
addLearningPath: async () => {
|
|
554
|
+
throw V("Learning paths", "wspace-learning-svc");
|
|
592
555
|
},
|
|
593
|
-
updateLearningPath: async (
|
|
594
|
-
|
|
595
|
-
id: t,
|
|
596
|
-
input: n
|
|
597
|
-
}, r, "Unable to update learning path");
|
|
598
|
-
e((e) => ({ learningPaths: e.learningPaths.map((e) => e.id === t ? i.updateCrewLearningPath : e) }));
|
|
556
|
+
updateLearningPath: async () => {
|
|
557
|
+
throw V("Learning paths", "wspace-learning-svc");
|
|
599
558
|
},
|
|
600
|
-
removeLearningPath: async (
|
|
601
|
-
|
|
602
|
-
await Z(V, { id: t }, n, "Unable to remove learning path"), e((e) => ({ learningPaths: e.learningPaths.filter((e) => e.id !== t) }));
|
|
559
|
+
removeLearningPath: async () => {
|
|
560
|
+
throw V("Learning paths", "wspace-learning-svc");
|
|
603
561
|
},
|
|
604
562
|
addPayrollRecord: async (t) => {
|
|
605
|
-
let n = $.getState().initParams, r = await Z(
|
|
563
|
+
let n = $.getState().initParams, r = await Z(P, { input: {
|
|
606
564
|
...t,
|
|
607
|
-
status:
|
|
565
|
+
status: B(t.status)
|
|
608
566
|
} }, n, "Unable to create payroll record");
|
|
609
|
-
e((e) => ({ payrollRecords: [
|
|
567
|
+
e((e) => ({ payrollRecords: [U(r.createCrewPayrollRecord, H.payrollRecord), ...e.payrollRecords] }));
|
|
610
568
|
},
|
|
611
569
|
updatePayrollRecord: async (t, n) => {
|
|
612
|
-
let r = $.getState().initParams, i = await Z(
|
|
570
|
+
let r = $.getState().initParams, i = await Z(F, {
|
|
613
571
|
id: t,
|
|
614
572
|
input: {
|
|
615
573
|
...n,
|
|
616
|
-
...n.status ? { status:
|
|
574
|
+
...n.status ? { status: B(n.status) } : {}
|
|
617
575
|
}
|
|
618
576
|
}, r, "Unable to update payroll record");
|
|
619
|
-
e((e) => ({ payrollRecords: e.payrollRecords.map((e) => e.id === t ?
|
|
577
|
+
e((e) => ({ payrollRecords: e.payrollRecords.map((e) => e.id === t ? U(i.updateCrewPayrollRecord, H.payrollRecord) : e) }));
|
|
620
578
|
},
|
|
621
579
|
removePayrollRecord: async (t) => {
|
|
622
580
|
let n = $.getState().initParams;
|
|
623
|
-
await Z(
|
|
581
|
+
await Z(I, { id: t }, n, "Unable to remove payroll record"), e((e) => ({ payrollRecords: e.payrollRecords.filter((e) => e.id !== t) }));
|
|
624
582
|
},
|
|
625
583
|
addTimeEntry: async (t) => {
|
|
626
|
-
let n = $.getState().initParams, r = await Z(
|
|
627
|
-
e((e) => ({ timeEntries: [
|
|
584
|
+
let n = $.getState().initParams, r = await Z(L, { input: t }, n, "Unable to create time entry");
|
|
585
|
+
e((e) => ({ timeEntries: [U(r.createCrewTimeEntry, H.timeEntry), ...e.timeEntries] }));
|
|
628
586
|
},
|
|
629
587
|
updateTimeEntry: async (t, n) => {
|
|
630
|
-
let r = $.getState().initParams, i = await Z(
|
|
588
|
+
let r = $.getState().initParams, i = await Z(R, {
|
|
631
589
|
id: t,
|
|
632
590
|
input: n
|
|
633
591
|
}, r, "Unable to update time entry");
|
|
634
|
-
e((e) => ({ timeEntries: e.timeEntries.map((e) => e.id === t ?
|
|
592
|
+
e((e) => ({ timeEntries: e.timeEntries.map((e) => e.id === t ? U(i.updateCrewTimeEntry, H.timeEntry) : e) }));
|
|
635
593
|
},
|
|
636
594
|
removeTimeEntry: async (t) => {
|
|
637
595
|
let n = $.getState().initParams;
|
|
638
|
-
await Z(
|
|
596
|
+
await Z(z, { id: t }, n, "Unable to remove time entry"), e((e) => ({ timeEntries: e.timeEntries.filter((e) => e.id !== t) }));
|
|
639
597
|
}
|
|
640
598
|
}));
|
|
641
599
|
//#endregion
|