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