@burdenoff/microfe-crewfoundry 2026.625.2 → 2026.703.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/crewfoundry/components/forms/ConfirmDialog.js +43 -0
- package/dist/crewfoundry/components/forms/ConfirmDialog.js.map +1 -0
- package/dist/crewfoundry/components/forms/FormModal.js +220 -0
- package/dist/crewfoundry/components/forms/FormModal.js.map +1 -0
- package/dist/crewfoundry/components/forms/formValues.js +20 -0
- package/dist/crewfoundry/components/forms/formValues.js.map +1 -0
- package/dist/crewfoundry/pages/CommunicationsAnnouncementsPagePage.js +255 -65
- package/dist/crewfoundry/pages/CommunicationsAnnouncementsPagePage.js.map +1 -1
- package/dist/crewfoundry/pages/CommunicationsCallsPagePage.js +28 -17
- package/dist/crewfoundry/pages/CommunicationsCallsPagePage.js.map +1 -1
- package/dist/crewfoundry/pages/CommunicationsFilesPagePage.js +57 -53
- package/dist/crewfoundry/pages/CommunicationsFilesPagePage.js.map +1 -1
- package/dist/crewfoundry/pages/CommunicationsMessagesPagePage.js +32 -23
- package/dist/crewfoundry/pages/CommunicationsMessagesPagePage.js.map +1 -1
- package/dist/crewfoundry/pages/CommunicationsVideoCallsPagePage.js +44 -29
- package/dist/crewfoundry/pages/CommunicationsVideoCallsPagePage.js.map +1 -1
- package/dist/crewfoundry/pages/CompanyClientManagementPagePage.js +183 -57
- package/dist/crewfoundry/pages/CompanyClientManagementPagePage.js.map +1 -1
- package/dist/crewfoundry/pages/CompanyCompanyDashboardPagePage.js.map +1 -1
- package/dist/crewfoundry/pages/CompanyVendorManagementPagePage.js +214 -92
- package/dist/crewfoundry/pages/CompanyVendorManagementPagePage.js.map +1 -1
- package/dist/crewfoundry/pages/DashboardDashboardPagePage.js +165 -131
- package/dist/crewfoundry/pages/DashboardDashboardPagePage.js.map +1 -1
- package/dist/crewfoundry/pages/DashboardEnhancedDashboardPagePage.js +163 -133
- package/dist/crewfoundry/pages/DashboardEnhancedDashboardPagePage.js.map +1 -1
- package/dist/crewfoundry/pages/HiringCandidatesPagePage.js +269 -54
- package/dist/crewfoundry/pages/HiringCandidatesPagePage.js.map +1 -1
- package/dist/crewfoundry/pages/HiringCreateJobPagePage.js +225 -78
- package/dist/crewfoundry/pages/HiringCreateJobPagePage.js.map +1 -1
- package/dist/crewfoundry/pages/HiringInterviewsPagePage.js +213 -59
- package/dist/crewfoundry/pages/HiringInterviewsPagePage.js.map +1 -1
- package/dist/crewfoundry/pages/HiringJobDetailsPagePage.js +287 -90
- package/dist/crewfoundry/pages/HiringJobDetailsPagePage.js.map +1 -1
- package/dist/crewfoundry/pages/HiringJobsPagePage.js +49 -47
- package/dist/crewfoundry/pages/HiringJobsPagePage.js.map +1 -1
- package/dist/crewfoundry/pages/HrDepartmentsPagePage.js +166 -59
- package/dist/crewfoundry/pages/HrDepartmentsPagePage.js.map +1 -1
- package/dist/crewfoundry/pages/HrEmployeesPagePage.js +274 -83
- package/dist/crewfoundry/pages/HrEmployeesPagePage.js.map +1 -1
- package/dist/crewfoundry/pages/HrLeaveManagementPagePage.js +198 -88
- package/dist/crewfoundry/pages/HrLeaveManagementPagePage.js.map +1 -1
- package/dist/crewfoundry/pages/HrPayrollPagePage.js +216 -88
- package/dist/crewfoundry/pages/HrPayrollPagePage.js.map +1 -1
- package/dist/crewfoundry/pages/HrTimeTrackingPagePage.js +216 -66
- package/dist/crewfoundry/pages/HrTimeTrackingPagePage.js.map +1 -1
- package/dist/crewfoundry/pages/LearningAssessmentsPagePage.js +6 -7
- package/dist/crewfoundry/pages/LearningAssessmentsPagePage.js.map +1 -1
- package/dist/crewfoundry/pages/LearningCourseDetailsPagePage.js +83 -68
- package/dist/crewfoundry/pages/LearningCourseDetailsPagePage.js.map +1 -1
- package/dist/crewfoundry/pages/LearningCoursesPagePage.js +167 -46
- package/dist/crewfoundry/pages/LearningCoursesPagePage.js.map +1 -1
- package/dist/crewfoundry/pages/LearningLearningPagePage.js.map +1 -1
- package/dist/crewfoundry/pages/LearningLearningPathDetailPagePage.js +75 -55
- package/dist/crewfoundry/pages/LearningLearningPathDetailPagePage.js.map +1 -1
- package/dist/crewfoundry/pages/LearningLearningPathsPagePage.js +152 -79
- package/dist/crewfoundry/pages/LearningLearningPathsPagePage.js.map +1 -1
- package/dist/crewfoundry/pages/LearningMyLearningPagePage.js +75 -63
- package/dist/crewfoundry/pages/LearningMyLearningPagePage.js.map +1 -1
- package/dist/crewfoundry/pages/MarketplaceBookingManagementPagePage.js +3 -1
- package/dist/crewfoundry/pages/MarketplaceBookingManagementPagePage.js.map +1 -1
- package/dist/crewfoundry/pages/MarketplaceMarketplacePagePage.js.map +1 -1
- package/dist/crewfoundry/pages/MarketplaceMyServicesPagePage.js +235 -87
- package/dist/crewfoundry/pages/MarketplaceMyServicesPagePage.js.map +1 -1
- package/dist/crewfoundry/pages/PaymentsInvoicesPagePage.js +199 -86
- package/dist/crewfoundry/pages/PaymentsInvoicesPagePage.js.map +1 -1
- package/dist/crewfoundry/pages/PaymentsPaymentDashboardPagePage.js.map +1 -1
- package/dist/crewfoundry/pages/PaymentsPaymentMethodsPagePage.js +21 -40
- package/dist/crewfoundry/pages/PaymentsPaymentMethodsPagePage.js.map +1 -1
- package/dist/crewfoundry/pages/ProjectsCreateProjectPagePage.js +117 -45
- package/dist/crewfoundry/pages/ProjectsCreateProjectPagePage.js.map +1 -1
- package/dist/crewfoundry/pages/ProjectsProjectDetailsPagePage.js +249 -90
- package/dist/crewfoundry/pages/ProjectsProjectDetailsPagePage.js.map +1 -1
- package/dist/crewfoundry/pages/ProjectsProjectsPagePage.js +47 -45
- package/dist/crewfoundry/pages/ProjectsProjectsPagePage.js.map +1 -1
- package/dist/crewfoundry/pages/TeamsTeamAnalyticsPagePage.js.map +1 -1
- package/dist/crewfoundry/pages/TeamsTeamSettingsPagePage.js +262 -133
- package/dist/crewfoundry/pages/TeamsTeamSettingsPagePage.js.map +1 -1
- package/dist/crewfoundry/pages/TeamsTeamsPagePage.js +144 -77
- package/dist/crewfoundry/pages/TeamsTeamsPagePage.js.map +1 -1
- package/dist/crewfoundry/store/crewfoundryStore.js +306 -51
- package/dist/crewfoundry/store/crewfoundryStore.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,22 +1,22 @@
|
|
|
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) }", g = "mutation MarkAllCrewNotificationsRead { markAllCrewNotificationsRead }", _ = (e) => e.toUpperCase().replaceAll("-", "_"), v = (e) => e ? e.slice(0, 10) : "TBD", y = (e) => !e || typeof e != "object" || Array.isArray(e) ? null : e, b = (e) => typeof e == "number" ? e : null, x = (e) => typeof e == "string" ? e : null, S = (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) }", 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) => {
|
|
5
5
|
let t = e.toLowerCase();
|
|
6
6
|
return t === "active" ? "active" : t === "completed" ? "completed" : t === "cancelled" ? "cancelled" : t === "archived" ? "on_hold" : "planning";
|
|
7
|
-
},
|
|
7
|
+
}, he = (e) => {
|
|
8
8
|
let t = e.toLowerCase();
|
|
9
9
|
return t === "active" ? "active" : t === "inactive" || t === "archived" || t === "deleted" ? "disbanded" : "forming";
|
|
10
|
-
},
|
|
11
|
-
let r =
|
|
10
|
+
}, ge = (e, t) => e.map((e, n) => {
|
|
11
|
+
let r = pe(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
12
|
return {
|
|
13
13
|
id: e.id,
|
|
14
14
|
name: e.name,
|
|
15
|
-
description:
|
|
16
|
-
status:
|
|
17
|
-
priority:
|
|
18
|
-
startDate:
|
|
19
|
-
endDate:
|
|
15
|
+
description: Y(r?.description) || `${e.key} delivery plan`,
|
|
16
|
+
status: me(e.status),
|
|
17
|
+
priority: Y(r?.priority)?.toLowerCase() || "medium",
|
|
18
|
+
startDate: q(e.createdAt),
|
|
19
|
+
endDate: q(e.updatedAt),
|
|
20
20
|
progress: o,
|
|
21
21
|
budget: i,
|
|
22
22
|
spent: a,
|
|
@@ -27,7 +27,7 @@ var n = "\n query CrewfoundryBootstrap {\n crewfoundryBootstrap {\n emp
|
|
|
27
27
|
tasks: s,
|
|
28
28
|
completedTasks: c
|
|
29
29
|
};
|
|
30
|
-
}),
|
|
30
|
+
}), _e = (e) => e.map(({ node: e }) => ({
|
|
31
31
|
id: e.id,
|
|
32
32
|
name: e.name,
|
|
33
33
|
description: e.description || `${e.name} team workspace`,
|
|
@@ -36,10 +36,10 @@ var n = "\n query CrewfoundryBootstrap {\n crewfoundryBootstrap {\n emp
|
|
|
36
36
|
members: [],
|
|
37
37
|
memberCount: e.memberCount,
|
|
38
38
|
department: e.groupType?.toLowerCase().replaceAll("_", " ") || "operations",
|
|
39
|
-
status:
|
|
39
|
+
status: he(e.status),
|
|
40
40
|
projectCount: 0,
|
|
41
|
-
createdAt:
|
|
42
|
-
})),
|
|
41
|
+
createdAt: q(e.createdAt)
|
|
42
|
+
})), ve = (e) => e.filter(({ node: e }) => e.unreadCount > 0).map(({ node: e }) => ({
|
|
43
43
|
id: `conversation-${e.id}`,
|
|
44
44
|
title: e.title || "Conversation update",
|
|
45
45
|
message: `${e.unreadCount} unread in ${e.memberCount}-member channel`,
|
|
@@ -48,10 +48,10 @@ var n = "\n query CrewfoundryBootstrap {\n crewfoundryBootstrap {\n emp
|
|
|
48
48
|
read: !1,
|
|
49
49
|
createdAt: e.updatedAt,
|
|
50
50
|
actionUrl: "/crewfoundry/communications/messages-page"
|
|
51
|
-
})),
|
|
51
|
+
})), ye = (e, t) => {
|
|
52
52
|
let n = new Set(e.map((e) => e.id));
|
|
53
53
|
return [...t.filter((e) => !n.has(e.id)), ...e];
|
|
54
|
-
},
|
|
54
|
+
}, X = (e) => {
|
|
55
55
|
let t = e.getBillingAccountsByOrg.find((e) => e?.isDefault && e?.id) || e.getBillingAccountsByOrg.find((e) => e?.id);
|
|
56
56
|
return t?.id ? (t.paymentMethods || []).filter((e) => !!e).map((e) => {
|
|
57
57
|
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,18 +65,24 @@ var n = "\n query CrewfoundryBootstrap {\n crewfoundryBootstrap {\n emp
|
|
|
65
65
|
expiry: n && r ? `${n}/${r}` : void 0
|
|
66
66
|
};
|
|
67
67
|
}) : [];
|
|
68
|
-
},
|
|
68
|
+
}, be = (e, t) => {
|
|
69
69
|
if (e.errors?.length) throw Error(e.errors[0]?.message || t);
|
|
70
70
|
if (!e.data) throw Error(t);
|
|
71
71
|
return e.data;
|
|
72
|
-
},
|
|
73
|
-
gateway:
|
|
72
|
+
}, Z = async (e, n, r, i, a = "workspace") => be(await t({
|
|
73
|
+
gateway: a,
|
|
74
74
|
query: e,
|
|
75
75
|
variables: n,
|
|
76
76
|
authToken: r.authToken,
|
|
77
|
-
baseUrl: r.apiGatewayUrl,
|
|
78
|
-
extraHeaders: { ...r.workspaceId ? { "x-workspace-id": r.workspaceId } : {} }
|
|
79
|
-
}), i),
|
|
77
|
+
baseUrl: a === "workspace" ? r.apiGatewayUrl : void 0,
|
|
78
|
+
extraHeaders: { ...a === "workspace" && r.workspaceId ? { "x-workspace-id": r.workspaceId } : {} }
|
|
79
|
+
}), i), xe = () => !1, Q = async (e, t, n, r, i = "workspace") => {
|
|
80
|
+
try {
|
|
81
|
+
return await Z(e, t, n, r, i);
|
|
82
|
+
} catch (e) {
|
|
83
|
+
return xe() && console.warn(`[crewfoundry] overlap query skipped: ${r}`, e), null;
|
|
84
|
+
}
|
|
85
|
+
}, $ = e((e) => ({
|
|
80
86
|
metrics: [
|
|
81
87
|
{
|
|
82
88
|
label: "Total Employees",
|
|
@@ -161,7 +167,7 @@ var n = "\n query CrewfoundryBootstrap {\n crewfoundryBootstrap {\n emp
|
|
|
161
167
|
initParams: t
|
|
162
168
|
});
|
|
163
169
|
try {
|
|
164
|
-
let [a, o] = await Promise.all([
|
|
170
|
+
let [a, o] = await Promise.all([Q(r, {
|
|
165
171
|
workspaceId: t.workspaceId,
|
|
166
172
|
projectPagination: {
|
|
167
173
|
limit: 50,
|
|
@@ -169,7 +175,7 @@ var n = "\n query CrewfoundryBootstrap {\n crewfoundryBootstrap {\n emp
|
|
|
169
175
|
},
|
|
170
176
|
groupFirst: 30,
|
|
171
177
|
conversationFirst: 30
|
|
172
|
-
}, t, "Unable to load workspace bootstrap with overlap data")
|
|
178
|
+
}, 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 ? _e(a.groups.edges) : [], l = a ? ge(a.projects.items, c) : [], u = a ? ve(a.conversations.edges) : [], d = c.length > 0 ? c : s.teams, f = l.length > 0 ? l : s.projects, p = u.length > 0 ? ye(s.notifications, u) : s.notifications, m = o ? X(o) : [];
|
|
173
179
|
e({
|
|
174
180
|
employees: s.employees,
|
|
175
181
|
departments: s.departments,
|
|
@@ -226,101 +232,350 @@ var n = "\n query CrewfoundryBootstrap {\n crewfoundryBootstrap {\n emp
|
|
|
226
232
|
setSelectedView: (t) => e({ selectedView: t }),
|
|
227
233
|
setWorkItems: (t) => e({ workItems: t }),
|
|
228
234
|
addEmployee: async (t) => {
|
|
229
|
-
let n =
|
|
235
|
+
let n = $.getState().initParams, r = await Z(a, { input: {
|
|
230
236
|
...t,
|
|
231
|
-
status:
|
|
232
|
-
type:
|
|
237
|
+
status: K(t.status),
|
|
238
|
+
type: K(t.type)
|
|
233
239
|
} }, n, "Unable to create employee");
|
|
234
240
|
e((e) => ({ employees: [r.createCrewEmployee, ...e.employees] }));
|
|
235
241
|
},
|
|
236
242
|
updateEmployee: async (t, n) => {
|
|
237
|
-
let r =
|
|
243
|
+
let r = $.getState().initParams, i = await Z(o, {
|
|
238
244
|
id: t,
|
|
239
245
|
input: {
|
|
240
246
|
...n,
|
|
241
|
-
...n.status ? { status:
|
|
242
|
-
...n.type ? { type:
|
|
247
|
+
...n.status ? { status: K(n.status) } : {},
|
|
248
|
+
...n.type ? { type: K(n.type) } : {}
|
|
243
249
|
}
|
|
244
250
|
}, r, "Unable to update employee");
|
|
245
251
|
e((e) => ({ employees: e.employees.map((e) => e.id === t ? i.updateCrewEmployee : e) }));
|
|
246
252
|
},
|
|
247
253
|
removeEmployee: async (t) => {
|
|
248
|
-
let n =
|
|
249
|
-
await
|
|
254
|
+
let n = $.getState().initParams;
|
|
255
|
+
await Z(s, { id: t }, n, "Unable to remove employee"), e((e) => ({ employees: e.employees.filter((e) => e.id !== t) }));
|
|
250
256
|
},
|
|
251
257
|
addJobPosting: async (t) => {
|
|
252
|
-
let n =
|
|
258
|
+
let n = $.getState().initParams, r = await Z(c, { input: {
|
|
253
259
|
...t,
|
|
254
|
-
status:
|
|
260
|
+
status: K(t.status)
|
|
255
261
|
} }, n, "Unable to create job posting");
|
|
256
262
|
e((e) => ({ jobPostings: [r.createCrewJobPosting, ...e.jobPostings] }));
|
|
257
263
|
},
|
|
258
264
|
updateJobPosting: async (t, n) => {
|
|
259
|
-
let r =
|
|
265
|
+
let r = $.getState().initParams, i = await Z(l, {
|
|
260
266
|
id: t,
|
|
261
267
|
input: {
|
|
262
268
|
...n,
|
|
263
|
-
...n.status ? { status:
|
|
269
|
+
...n.status ? { status: K(n.status) } : {}
|
|
264
270
|
}
|
|
265
271
|
}, r, "Unable to update job posting");
|
|
266
272
|
e((e) => ({ jobPostings: e.jobPostings.map((e) => e.id === t ? i.updateCrewJobPosting : e) }));
|
|
267
273
|
},
|
|
268
274
|
addCandidate: async (t) => {
|
|
269
|
-
let n =
|
|
275
|
+
let n = $.getState().initParams, r = await Z(u, { input: {
|
|
270
276
|
...t,
|
|
271
|
-
status:
|
|
277
|
+
status: K(t.status)
|
|
272
278
|
} }, n, "Unable to create candidate");
|
|
273
279
|
e((e) => ({ candidates: [r.createCrewCandidate, ...e.candidates] }));
|
|
274
280
|
},
|
|
275
281
|
updateCandidate: async (t, n) => {
|
|
276
|
-
let r =
|
|
282
|
+
let r = $.getState().initParams, i = await Z(d, {
|
|
277
283
|
id: t,
|
|
278
284
|
input: {
|
|
279
285
|
...n,
|
|
280
|
-
...n.status ? { status:
|
|
286
|
+
...n.status ? { status: K(n.status) } : {}
|
|
281
287
|
}
|
|
282
288
|
}, r, "Unable to update candidate");
|
|
283
289
|
e((e) => ({ candidates: e.candidates.map((e) => e.id === t ? i.updateCrewCandidate : e) }));
|
|
284
290
|
},
|
|
285
291
|
addAnnouncement: async (t) => {
|
|
286
|
-
let n =
|
|
292
|
+
let n = $.getState().initParams, r = await Z(f, { input: t }, n, "Unable to create announcement");
|
|
287
293
|
e((e) => ({ announcements: [r.createCrewAnnouncement, ...e.announcements] }));
|
|
288
294
|
},
|
|
289
295
|
addLeaveRequest: async (t) => {
|
|
290
|
-
let n =
|
|
296
|
+
let n = $.getState().initParams, r = await Z(p, { input: {
|
|
291
297
|
...t,
|
|
292
|
-
type:
|
|
293
|
-
status:
|
|
298
|
+
type: K(t.type),
|
|
299
|
+
status: K(t.status)
|
|
294
300
|
} }, n, "Unable to create leave request");
|
|
295
301
|
e((e) => ({ leaveRequests: [r.createCrewLeaveRequest, ...e.leaveRequests] }));
|
|
296
302
|
},
|
|
297
303
|
updateLeaveRequest: async (t, n) => {
|
|
298
|
-
let r =
|
|
304
|
+
let r = $.getState().initParams, i = await Z(m, {
|
|
299
305
|
id: t,
|
|
300
306
|
input: {
|
|
301
307
|
...n,
|
|
302
|
-
...n.type ? { type:
|
|
303
|
-
...n.status ? { status:
|
|
308
|
+
...n.type ? { type: K(n.type) } : {},
|
|
309
|
+
...n.status ? { status: K(n.status) } : {}
|
|
304
310
|
}
|
|
305
311
|
}, r, "Unable to update leave request");
|
|
306
312
|
e((e) => ({ leaveRequests: e.leaveRequests.map((e) => e.id === t ? i.updateCrewLeaveRequest : e) }));
|
|
307
313
|
},
|
|
308
314
|
markNotificationRead: async (t) => {
|
|
309
|
-
let n =
|
|
310
|
-
await
|
|
315
|
+
let n = $.getState().initParams;
|
|
316
|
+
await Z(h, { id: t }, n, "Unable to update notification"), e((e) => ({ notifications: e.notifications.map((e) => e.id === t ? {
|
|
311
317
|
...e,
|
|
312
318
|
read: !0
|
|
313
319
|
} : e) }));
|
|
314
320
|
},
|
|
315
321
|
markAllNotificationsRead: async () => {
|
|
316
|
-
let t =
|
|
317
|
-
await
|
|
322
|
+
let t = $.getState().initParams;
|
|
323
|
+
await Z(ee, void 0, t, "Unable to update notifications"), e((e) => ({ notifications: e.notifications.map((e) => ({
|
|
318
324
|
...e,
|
|
319
325
|
read: !0
|
|
320
326
|
})) }));
|
|
327
|
+
},
|
|
328
|
+
removeJobPosting: async (t) => {
|
|
329
|
+
let n = $.getState().initParams;
|
|
330
|
+
await Z(te, { id: t }, n, "Unable to remove job posting"), e((e) => ({ jobPostings: e.jobPostings.filter((e) => e.id !== t) }));
|
|
331
|
+
},
|
|
332
|
+
removeCandidate: async (t) => {
|
|
333
|
+
let n = $.getState().initParams;
|
|
334
|
+
await Z(ne, { id: t }, n, "Unable to remove candidate"), e((e) => ({ candidates: e.candidates.filter((e) => e.id !== t) }));
|
|
335
|
+
},
|
|
336
|
+
updateAnnouncement: async (t, n) => {
|
|
337
|
+
let r = $.getState().initParams, i = await Z(re, {
|
|
338
|
+
id: t,
|
|
339
|
+
input: n
|
|
340
|
+
}, r, "Unable to update announcement");
|
|
341
|
+
e((e) => ({ announcements: e.announcements.map((e) => e.id === t ? i.updateCrewAnnouncement : e) }));
|
|
342
|
+
},
|
|
343
|
+
removeAnnouncement: async (t) => {
|
|
344
|
+
let n = $.getState().initParams;
|
|
345
|
+
await Z(ie, { id: t }, n, "Unable to remove announcement"), e((e) => ({ announcements: e.announcements.filter((e) => e.id !== t) }));
|
|
346
|
+
},
|
|
347
|
+
addInterview: async (t) => {
|
|
348
|
+
let n = $.getState().initParams, r = await Z(ae, { input: {
|
|
349
|
+
...t,
|
|
350
|
+
type: K(t.type),
|
|
351
|
+
status: K(t.status)
|
|
352
|
+
} }, n, "Unable to schedule interview");
|
|
353
|
+
e((e) => ({ interviews: [r.createCrewInterview, ...e.interviews] }));
|
|
354
|
+
},
|
|
355
|
+
updateInterview: async (t, n) => {
|
|
356
|
+
let r = $.getState().initParams, i = await Z(oe, {
|
|
357
|
+
id: t,
|
|
358
|
+
input: {
|
|
359
|
+
...n,
|
|
360
|
+
...n.type ? { type: K(n.type) } : {},
|
|
361
|
+
...n.status ? { status: K(n.status) } : {}
|
|
362
|
+
}
|
|
363
|
+
}, r, "Unable to update interview");
|
|
364
|
+
e((e) => ({ interviews: e.interviews.map((e) => e.id === t ? i.updateCrewInterview : e) }));
|
|
365
|
+
},
|
|
366
|
+
removeInterview: async (t) => {
|
|
367
|
+
let n = $.getState().initParams;
|
|
368
|
+
await Z(se, { id: t }, n, "Unable to remove interview"), e((e) => ({ interviews: e.interviews.filter((e) => e.id !== t) }));
|
|
369
|
+
},
|
|
370
|
+
addInvoice: async (t) => {
|
|
371
|
+
let n = $.getState().initParams, r = await Z(g, { input: {
|
|
372
|
+
...t,
|
|
373
|
+
status: K(t.status)
|
|
374
|
+
} }, n, "Unable to create invoice");
|
|
375
|
+
e((e) => ({ invoices: [r.createCrewInvoice, ...e.invoices] }));
|
|
376
|
+
},
|
|
377
|
+
updateInvoice: async (t, n) => {
|
|
378
|
+
let r = $.getState().initParams, i = await Z(_, {
|
|
379
|
+
id: t,
|
|
380
|
+
input: {
|
|
381
|
+
...n,
|
|
382
|
+
...n.status ? { status: K(n.status) } : {}
|
|
383
|
+
}
|
|
384
|
+
}, r, "Unable to update invoice");
|
|
385
|
+
e((e) => ({ invoices: e.invoices.map((e) => e.id === t ? i.updateCrewInvoice : e) }));
|
|
386
|
+
},
|
|
387
|
+
removeInvoice: async (t) => {
|
|
388
|
+
let n = $.getState().initParams;
|
|
389
|
+
await Z(v, { id: t }, n, "Unable to remove invoice"), e((e) => ({ invoices: e.invoices.filter((e) => e.id !== t) }));
|
|
390
|
+
},
|
|
391
|
+
addVendor: async (t) => {
|
|
392
|
+
let n = $.getState().initParams, r = await Z(y, { input: {
|
|
393
|
+
...t,
|
|
394
|
+
status: K(t.status)
|
|
395
|
+
} }, n, "Unable to create vendor");
|
|
396
|
+
e((e) => ({ vendors: [r.createCrewVendor, ...e.vendors] }));
|
|
397
|
+
},
|
|
398
|
+
updateVendor: async (t, n) => {
|
|
399
|
+
let r = $.getState().initParams, i = await Z(b, {
|
|
400
|
+
id: t,
|
|
401
|
+
input: {
|
|
402
|
+
...n,
|
|
403
|
+
...n.status ? { status: K(n.status) } : {}
|
|
404
|
+
}
|
|
405
|
+
}, r, "Unable to update vendor");
|
|
406
|
+
e((e) => ({ vendors: e.vendors.map((e) => e.id === t ? i.updateCrewVendor : e) }));
|
|
407
|
+
},
|
|
408
|
+
removeVendor: async (t) => {
|
|
409
|
+
let n = $.getState().initParams;
|
|
410
|
+
await Z(x, { id: t }, n, "Unable to remove vendor"), e((e) => ({ vendors: e.vendors.filter((e) => e.id !== t) }));
|
|
411
|
+
},
|
|
412
|
+
addClient: async (t) => {
|
|
413
|
+
let n = $.getState().initParams, r = await Z(S, { input: {
|
|
414
|
+
...t,
|
|
415
|
+
status: K(t.status)
|
|
416
|
+
} }, n, "Unable to create client");
|
|
417
|
+
e((e) => ({ clients: [r.createCrewClient, ...e.clients] }));
|
|
418
|
+
},
|
|
419
|
+
updateClient: async (t, n) => {
|
|
420
|
+
let r = $.getState().initParams, i = await Z(C, {
|
|
421
|
+
id: t,
|
|
422
|
+
input: {
|
|
423
|
+
...n,
|
|
424
|
+
...n.status ? { status: K(n.status) } : {}
|
|
425
|
+
}
|
|
426
|
+
}, r, "Unable to update client");
|
|
427
|
+
e((e) => ({ clients: e.clients.map((e) => e.id === t ? i.updateCrewClient : e) }));
|
|
428
|
+
},
|
|
429
|
+
removeClient: async (t) => {
|
|
430
|
+
let n = $.getState().initParams;
|
|
431
|
+
await Z(w, { id: t }, n, "Unable to remove client"), e((e) => ({ clients: e.clients.filter((e) => e.id !== t) }));
|
|
432
|
+
},
|
|
433
|
+
addTeam: async (t) => {
|
|
434
|
+
let n = $.getState().initParams, r = await Z(T, { input: t }, n, "Unable to create team");
|
|
435
|
+
e((e) => ({ teams: [r.createCrewTeam, ...e.teams] }));
|
|
436
|
+
},
|
|
437
|
+
updateTeam: async (t, n) => {
|
|
438
|
+
let r = $.getState().initParams, i = await Z(E, {
|
|
439
|
+
id: t,
|
|
440
|
+
input: n
|
|
441
|
+
}, r, "Unable to update team");
|
|
442
|
+
e((e) => ({ teams: e.teams.map((e) => e.id === t ? i.updateCrewTeam : e) }));
|
|
443
|
+
},
|
|
444
|
+
removeTeam: async (t) => {
|
|
445
|
+
let n = $.getState().initParams;
|
|
446
|
+
await Z(D, { id: t }, n, "Unable to remove team"), e((e) => ({ teams: e.teams.filter((e) => e.id !== t) }));
|
|
447
|
+
},
|
|
448
|
+
addProject: async (t) => {
|
|
449
|
+
let n = $.getState().initParams, r = await Z(O, { input: {
|
|
450
|
+
...t,
|
|
451
|
+
status: K(t.status),
|
|
452
|
+
priority: K(t.priority)
|
|
453
|
+
} }, n, "Unable to create project");
|
|
454
|
+
e((e) => ({ projects: [r.createCrewProject, ...e.projects] }));
|
|
455
|
+
},
|
|
456
|
+
updateProject: async (t, n) => {
|
|
457
|
+
let r = $.getState().initParams, i = await Z(k, {
|
|
458
|
+
id: t,
|
|
459
|
+
input: {
|
|
460
|
+
...n,
|
|
461
|
+
...n.status ? { status: K(n.status) } : {},
|
|
462
|
+
...n.priority ? { priority: K(n.priority) } : {}
|
|
463
|
+
}
|
|
464
|
+
}, r, "Unable to update project");
|
|
465
|
+
e((e) => ({ projects: e.projects.map((e) => e.id === t ? i.updateCrewProject : e) }));
|
|
466
|
+
},
|
|
467
|
+
removeProject: async (t) => {
|
|
468
|
+
let n = $.getState().initParams;
|
|
469
|
+
await Z(A, { id: t }, n, "Unable to remove project"), e((e) => ({ projects: e.projects.filter((e) => e.id !== t) }));
|
|
470
|
+
},
|
|
471
|
+
addMarketplaceService: async (t) => {
|
|
472
|
+
let n = $.getState().initParams, r = await Z(j, { input: {
|
|
473
|
+
...t,
|
|
474
|
+
status: K(t.status)
|
|
475
|
+
} }, n, "Unable to create service");
|
|
476
|
+
e((e) => ({ marketplaceServices: [r.createCrewMarketplaceService, ...e.marketplaceServices] }));
|
|
477
|
+
},
|
|
478
|
+
updateMarketplaceService: async (t, n) => {
|
|
479
|
+
let r = $.getState().initParams, i = await Z(M, {
|
|
480
|
+
id: t,
|
|
481
|
+
input: {
|
|
482
|
+
...n,
|
|
483
|
+
...n.status ? { status: K(n.status) } : {}
|
|
484
|
+
}
|
|
485
|
+
}, r, "Unable to update service");
|
|
486
|
+
e((e) => ({ marketplaceServices: e.marketplaceServices.map((e) => e.id === t ? i.updateCrewMarketplaceService : e) }));
|
|
487
|
+
},
|
|
488
|
+
removeMarketplaceService: async (t) => {
|
|
489
|
+
let n = $.getState().initParams;
|
|
490
|
+
await Z(N, { id: t }, n, "Unable to remove service"), e((e) => ({ marketplaceServices: e.marketplaceServices.filter((e) => e.id !== t) }));
|
|
491
|
+
},
|
|
492
|
+
addDepartment: async (t) => {
|
|
493
|
+
let n = $.getState().initParams, r = await Z(P, { input: t }, n, "Unable to create department");
|
|
494
|
+
e((e) => ({ departments: [r.createCrewDepartment, ...e.departments] }));
|
|
495
|
+
},
|
|
496
|
+
updateDepartment: async (t, n) => {
|
|
497
|
+
let r = $.getState().initParams, i = await Z(F, {
|
|
498
|
+
id: t,
|
|
499
|
+
input: n
|
|
500
|
+
}, r, "Unable to update department");
|
|
501
|
+
e((e) => ({ departments: e.departments.map((e) => e.id === t ? i.updateCrewDepartment : e) }));
|
|
502
|
+
},
|
|
503
|
+
removeDepartment: async (t) => {
|
|
504
|
+
let n = $.getState().initParams;
|
|
505
|
+
await Z(I, { id: t }, n, "Unable to remove department"), e((e) => ({ departments: e.departments.filter((e) => e.id !== t) }));
|
|
506
|
+
},
|
|
507
|
+
addCourse: async (t) => {
|
|
508
|
+
let n = $.getState().initParams, r = await Z(R, { input: t }, n, "Unable to create course");
|
|
509
|
+
e((e) => ({ courses: [r.createCrewCourse, ...e.courses] }));
|
|
510
|
+
},
|
|
511
|
+
updateCourse: async (t, n) => {
|
|
512
|
+
let r = $.getState().initParams, i = await Z(z, {
|
|
513
|
+
id: t,
|
|
514
|
+
input: n
|
|
515
|
+
}, r, "Unable to update course");
|
|
516
|
+
e((e) => ({ courses: e.courses.map((e) => e.id === t ? i.updateCrewCourse : e) }));
|
|
517
|
+
},
|
|
518
|
+
removeCourse: async (t) => {
|
|
519
|
+
let n = $.getState().initParams;
|
|
520
|
+
await Z(ce, { id: t }, n, "Unable to remove course"), e((e) => ({ courses: e.courses.filter((e) => e.id !== t) }));
|
|
521
|
+
},
|
|
522
|
+
enrollCourse: async (t) => {
|
|
523
|
+
let n = $.getState().initParams, r = await Z(B, { id: t }, n, "Unable to enroll in course");
|
|
524
|
+
e((e) => ({ courses: e.courses.map((e) => e.id === t ? r.enrollCrewCourse : e) }));
|
|
525
|
+
},
|
|
526
|
+
addLearningPath: async (t) => {
|
|
527
|
+
let n = $.getState().initParams, r = await Z(V, { input: t }, n, "Unable to create learning path");
|
|
528
|
+
e((e) => ({ learningPaths: [r.createCrewLearningPath, ...e.learningPaths] }));
|
|
529
|
+
},
|
|
530
|
+
updateLearningPath: async (t, n) => {
|
|
531
|
+
let r = $.getState().initParams, i = await Z(H, {
|
|
532
|
+
id: t,
|
|
533
|
+
input: n
|
|
534
|
+
}, r, "Unable to update learning path");
|
|
535
|
+
e((e) => ({ learningPaths: e.learningPaths.map((e) => e.id === t ? i.updateCrewLearningPath : e) }));
|
|
536
|
+
},
|
|
537
|
+
removeLearningPath: async (t) => {
|
|
538
|
+
let n = $.getState().initParams;
|
|
539
|
+
await Z(U, { id: t }, n, "Unable to remove learning path"), e((e) => ({ learningPaths: e.learningPaths.filter((e) => e.id !== t) }));
|
|
540
|
+
},
|
|
541
|
+
addPayrollRecord: async (t) => {
|
|
542
|
+
let n = $.getState().initParams, r = await Z(W, { input: {
|
|
543
|
+
...t,
|
|
544
|
+
status: K(t.status)
|
|
545
|
+
} }, n, "Unable to create payroll record");
|
|
546
|
+
e((e) => ({ payrollRecords: [r.createCrewPayrollRecord, ...e.payrollRecords] }));
|
|
547
|
+
},
|
|
548
|
+
updatePayrollRecord: async (t, n) => {
|
|
549
|
+
let r = $.getState().initParams, i = await Z(G, {
|
|
550
|
+
id: t,
|
|
551
|
+
input: {
|
|
552
|
+
...n,
|
|
553
|
+
...n.status ? { status: K(n.status) } : {}
|
|
554
|
+
}
|
|
555
|
+
}, r, "Unable to update payroll record");
|
|
556
|
+
e((e) => ({ payrollRecords: e.payrollRecords.map((e) => e.id === t ? i.updateCrewPayrollRecord : e) }));
|
|
557
|
+
},
|
|
558
|
+
removePayrollRecord: async (t) => {
|
|
559
|
+
let n = $.getState().initParams;
|
|
560
|
+
await Z(le, { id: t }, n, "Unable to remove payroll record"), e((e) => ({ payrollRecords: e.payrollRecords.filter((e) => e.id !== t) }));
|
|
561
|
+
},
|
|
562
|
+
addTimeEntry: async (t) => {
|
|
563
|
+
let n = $.getState().initParams, r = await Z(ue, { input: t }, n, "Unable to create time entry");
|
|
564
|
+
e((e) => ({ timeEntries: [r.createCrewTimeEntry, ...e.timeEntries] }));
|
|
565
|
+
},
|
|
566
|
+
updateTimeEntry: async (t, n) => {
|
|
567
|
+
let r = $.getState().initParams, i = await Z(de, {
|
|
568
|
+
id: t,
|
|
569
|
+
input: n
|
|
570
|
+
}, r, "Unable to update time entry");
|
|
571
|
+
e((e) => ({ timeEntries: e.timeEntries.map((e) => e.id === t ? i.updateCrewTimeEntry : e) }));
|
|
572
|
+
},
|
|
573
|
+
removeTimeEntry: async (t) => {
|
|
574
|
+
let n = $.getState().initParams;
|
|
575
|
+
await Z(fe, { id: t }, n, "Unable to remove time entry"), e((e) => ({ timeEntries: e.timeEntries.filter((e) => e.id !== t) }));
|
|
321
576
|
}
|
|
322
577
|
}));
|
|
323
578
|
//#endregion
|
|
324
|
-
export {
|
|
579
|
+
export { $ as useCrewFoundryStore };
|
|
325
580
|
|
|
326
581
|
//# sourceMappingURL=crewfoundryStore.js.map
|