@burdenoff/microfe-crewfoundry 2026.719.2 → 2026.723.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/crewfoundry/pages/HelpApiDocumentationPagePage.d.ts.map +1 -1
- package/dist/crewfoundry/pages/HelpApiDocumentationPagePage.js +6 -1
- package/dist/crewfoundry/pages/HelpApiDocumentationPagePage.js.map +1 -1
- package/dist/crewfoundry/store/crewfoundryStore.d.ts.map +1 -1
- package/dist/crewfoundry/store/crewfoundryStore.js +103 -99
- package/dist/crewfoundry/store/crewfoundryStore.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { create as e } from "zustand";
|
|
2
2
|
import { graphqlFetch as t } from "@burdenoff/fe-libs/shared/graphql";
|
|
3
3
|
//#region src/crewfoundry/store/crewfoundryStore.ts
|
|
4
|
-
var n = "\n query CrewfoundryBootstrap {\n crewfoundryBootstrap {\n employees { id firstName lastName email department position status type salary startDate avatar location managerId phone performanceScore skills terminationDate }\n departments { id name headId headName employeeCount budget location status }\n jobPostings { id title department location type experienceLevel salaryMin salaryMax status applicants postedDate deadline description requirements benefits }\n candidates { id firstName lastName email phone position status appliedDate resumeUrl rating source experience skills currentCompany notes hiredDate }\n interviews { id candidateId candidateName position interviewerName date time type status feedback rating }\n announcements { id title content author authorRole category priority isPinned createdAt viewCount tags }\n teams { id name description leadId leadName members memberCount department status projectCount createdAt }\n projects { id name description status priority startDate endDate progress budget spent teamId teamName managerId managerName tasks completedTasks }\n payrollRecords { id employeeId employeeName department period grossPay deductions netPay status payDate paymentMethod }\n leaveRequests { id employeeId employeeName department type startDate endDate days status reason approverName }\n timeEntries { id employeeId employeeName date clockIn clockOut totalHours overtime project status billable }\n vendors { id name category contactPerson email phone status contractValue rating }\n clients { id name industry contactPerson email phone status revenue projects since }\n }\n }\n", r = "\n query CrewfoundryWorkspaceBootstrapWithOverlap(\n $workspaceId: ID!\n $projectPagination: PaginationInput\n $groupFirst: Int\n $conversationFirst: Int\n ) {\n crewfoundryBootstrap {\n employees { id firstName lastName email department position status type salary startDate avatar location managerId phone performanceScore skills terminationDate }\n departments { id name headId headName employeeCount budget location status }\n jobPostings { id title department location type experienceLevel salaryMin salaryMax status applicants postedDate deadline description requirements benefits }\n candidates { id firstName lastName email phone position status appliedDate resumeUrl rating source experience skills currentCompany notes hiredDate }\n interviews { id candidateId candidateName position interviewerName date time type status feedback rating }\n announcements { id title content author authorRole category priority isPinned createdAt viewCount tags }\n teams { id name description leadId leadName members memberCount department status projectCount createdAt }\n projects { id name description status priority startDate endDate progress budget spent teamId teamName managerId managerName tasks completedTasks }\n payrollRecords { id employeeId employeeName department period grossPay deductions netPay status payDate paymentMethod }\n leaveRequests { id employeeId employeeName department type startDate endDate days status reason approverName }\n timeEntries { id employeeId employeeName date clockIn clockOut totalHours overtime project status billable }\n vendors { id name category contactPerson email phone status contractValue rating }\n clients { id name industry contactPerson email phone status revenue projects since }\n }\n projects(filter: { workspaceId: $workspaceId }, pagination: $projectPagination) {\n items {\n id\n name\n key\n creatorId\n status\n config\n archived\n createdAt\n updatedAt\n }\n }\n groups(first: $groupFirst) {\n edges {\n node {\n id\n name\n description\n groupType\n status\n memberCount\n ownerId\n createdAt\n }\n }\n }\n conversations(first: $conversationFirst) {\n edges {\n node {\n id\n title\n description\n state\n unreadCount\n memberCount\n updatedAt\n }\n }\n }\n }\n", i = "\n query CrewfoundryOverlapBilling {\n getBillingAccountsByOrg {\n id\n name\n isDefault\n paymentMethods {\n id\n type\n brand\n last4\n isDefault\n expiryMonth\n expiryYear\n }\n }\n }\n", a = "mutation CreateCrewEmployee($input: CreateCrewEmployeeInput!) { createCrewEmployee(input: $input) { id firstName lastName email department position status type salary startDate avatar location managerId phone performanceScore skills terminationDate } }", o = "mutation UpdateCrewEmployee($id: ID!, $input: UpdateCrewEmployeeInput!) { updateCrewEmployee(id: $id, input: $input) { id firstName lastName email department position status type salary startDate avatar location managerId phone performanceScore skills terminationDate } }", s = "mutation RemoveCrewEmployee($id: ID!) { removeCrewEmployee(id: $id) }", c = "mutation CreateCrewJobPosting($input: CreateCrewJobPostingInput!) { createCrewJobPosting(input: $input) { id title department location type experienceLevel salaryMin salaryMax status applicants postedDate deadline description requirements benefits } }", l = "mutation UpdateCrewJobPosting($id: ID!, $input: UpdateCrewJobPostingInput!) { updateCrewJobPosting(id: $id, input: $input) { id title department location type experienceLevel salaryMin salaryMax status applicants postedDate deadline description requirements benefits } }", u = "mutation CreateCrewCandidate($input: CreateCrewCandidateInput!) { createCrewCandidate(input: $input) { id firstName lastName email phone position status appliedDate resumeUrl rating source experience skills currentCompany notes hiredDate } }", d = "mutation UpdateCrewCandidate($id: ID!, $input: UpdateCrewCandidateInput!) { updateCrewCandidate(id: $id, input: $input) { id firstName lastName email phone position status appliedDate resumeUrl rating source experience skills currentCompany notes hiredDate } }", f = "mutation CreateCrewAnnouncement($input: CreateCrewAnnouncementInput!) { createCrewAnnouncement(input: $input) { id title content author authorRole category priority isPinned createdAt viewCount tags } }", p = "mutation CreateCrewLeaveRequest($input: CreateCrewLeaveRequestInput!) { createCrewLeaveRequest(input: $input) { id employeeId employeeName department type startDate endDate days status reason approverName } }", m = "mutation UpdateCrewLeaveRequest($id: ID!, $input: UpdateCrewLeaveRequestInput!) { updateCrewLeaveRequest(id: $id, input: $input) { id employeeId employeeName department type startDate endDate days status reason approverName } }", h = "mutation RemoveCrewJobPosting($id: ID!) { removeCrewJobPosting(id: $id) }", g = "mutation RemoveCrewCandidate($id: ID!) { removeCrewCandidate(id: $id) }", _ = "mutation UpdateCrewAnnouncement($id: ID!, $input: UpdateCrewAnnouncementInput!) { updateCrewAnnouncement(id: $id, input: $input) { id title content author authorRole category priority isPinned createdAt viewCount tags } }", v = "mutation RemoveCrewAnnouncement($id: ID!) { removeCrewAnnouncement(id: $id) }", y = "mutation CreateCrewInterview($input: CreateCrewInterviewInput!) { createCrewInterview(input: $input) { id candidateId candidateName position interviewerName date time type status feedback rating } }", b = "mutation UpdateCrewInterview($id: ID!, $input: UpdateCrewInterviewInput!) { updateCrewInterview(id: $id, input: $input) { id candidateId candidateName position interviewerName date time type status feedback rating } }", x = "mutation RemoveCrewInterview($id: ID!) { removeCrewInterview(id: $id) }", S = "mutation CreateCrewVendor($input: CreateCrewVendorInput!) { createCrewVendor(input: $input) { id name category contactPerson email phone status contractValue rating } }", C = "mutation UpdateCrewVendor($id: ID!, $input: UpdateCrewVendorInput!) { updateCrewVendor(id: $id, input: $input) { id name category contactPerson email phone status contractValue rating } }", w = "mutation RemoveCrewVendor($id: ID!) { removeCrewVendor(id: $id) }", ee = "mutation CreateCrewClient($input: CreateCrewClientInput!) { createCrewClient(input: $input) { id name industry contactPerson email phone status revenue projects since } }", te = "mutation UpdateCrewClient($id: ID!, $input: UpdateCrewClientInput!) { updateCrewClient(id: $id, input: $input) { id name industry contactPerson email phone status revenue projects since } }", ne = "mutation RemoveCrewClient($id: ID!) { removeCrewClient(id: $id) }", re = "mutation CreateCrewTeam($input: CreateCrewTeamInput!) { createCrewTeam(input: $input) { id name description leadId leadName members memberCount department status projectCount createdAt } }", ie = "mutation UpdateCrewTeam($id: ID!, $input: UpdateCrewTeamInput!) { updateCrewTeam(id: $id, input: $input) { id name description leadId leadName members memberCount department status projectCount createdAt } }", ae = "mutation RemoveCrewTeam($id: ID!) { removeCrewTeam(id: $id) }", oe = "mutation CreateCrewProject($input: CreateCrewProjectInput!) { createCrewProject(input: $input) { id name description status priority startDate endDate progress budget spent teamId teamName managerId managerName tasks completedTasks } }", se = "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 } }", ce = "mutation RemoveCrewProject($id: ID!) { removeCrewProject(id: $id) }", le = "mutation CreateCrewDepartment($input: CreateCrewDepartmentInput!) { createCrewDepartment(input: $input) { id name headId headName employeeCount budget location status } }", ue = "mutation UpdateCrewDepartment($id: ID!, $input: UpdateCrewDepartmentInput!) { updateCrewDepartment(id: $id, input: $input) { id name headId headName employeeCount budget location status } }", de = "mutation RemoveCrewDepartment($id: ID!) { removeCrewDepartment(id: $id) }", fe = "mutation CreateCrewPayrollRecord($input: CreateCrewPayrollRecordInput!) { createCrewPayrollRecord(input: $input) { id employeeId employeeName department period grossPay deductions netPay status payDate paymentMethod } }", T = "mutation UpdateCrewPayrollRecord($id: ID!, $input: UpdateCrewPayrollRecordInput!) { updateCrewPayrollRecord(id: $id, input: $input) { id employeeId employeeName department period grossPay deductions netPay status payDate paymentMethod } }", E = "mutation RemoveCrewPayrollRecord($id: ID!) { removeCrewPayrollRecord(id: $id) }", D = "mutation CreateCrewTimeEntry($input: CreateCrewTimeEntryInput!) { createCrewTimeEntry(input: $input) { id employeeId employeeName date clockIn clockOut totalHours overtime project status billable } }", O = "mutation UpdateCrewTimeEntry($id: ID!, $input: UpdateCrewTimeEntryInput!) { updateCrewTimeEntry(id: $id, input: $input) { id employeeId employeeName date clockIn clockOut totalHours overtime project status billable } }", k = "mutation RemoveCrewTimeEntry($id: ID!) { removeCrewTimeEntry(id: $id) }", A = "query EmployeeDocuments($employeeId: ID!) { employeeDocuments(employeeId: $employeeId) { id employeeId fileId title category uploadedBy uploadedAt } }", j = "mutation AttachEmployeeDocument($input: AttachCrewEmployeeDocumentInput!) { attachEmployeeDocument(input: $input) { id employeeId fileId title category uploadedBy uploadedAt } }", M = "mutation DetachEmployeeDocument($id: ID!) { detachEmployeeDocument(id: $id) }", N = "mutation EnsureFolderByPath($path: String!) { ensureFolderByPath(path: $path) { id } }", P = "mutation InitiateUpload($input: InitiateUploadInput!) { initiateUpload(input: $input) { session { id } uploadUrl } }", F = "mutation CompleteUpload($input: CompleteUploadInput!) { completeUpload(input: $input) { file { id } } }", I = "query CrewOnboardings { crewOnboardings { id candidateId employeeId fullName position department startDate status currentStage createdAt totalTaskCount completedTaskCount progressPercent tasks { id onboardingId stage title assigneeActorId assigneeName dueDate completedAt sortOrder } } }", L = "mutation CreateCrewOnboarding($input: CreateCrewOnboardingInput!) { createCrewOnboarding(input: $input) { id candidateId employeeId fullName position department startDate status currentStage createdAt totalTaskCount completedTaskCount progressPercent tasks { id onboardingId stage title assigneeActorId assigneeName dueDate completedAt sortOrder } } }", R = "mutation UpdateCrewOnboarding($id: ID!, $input: UpdateCrewOnboardingInput!) { updateCrewOnboarding(id: $id, input: $input) { id candidateId employeeId fullName position department startDate status currentStage createdAt totalTaskCount completedTaskCount progressPercent tasks { id onboardingId stage title assigneeActorId assigneeName dueDate completedAt sortOrder } } }", z = "mutation RemoveCrewOnboarding($id: ID!) { removeCrewOnboarding(id: $id) }", B = "mutation CreateCrewOnboardingTask($input: CreateCrewOnboardingTaskInput!) { createCrewOnboardingTask(input: $input) { id onboardingId stage title assigneeActorId assigneeName dueDate completedAt sortOrder } }", V = "mutation UpdateCrewOnboardingTask($id: ID!, $input: UpdateCrewOnboardingTaskInput!) { updateCrewOnboardingTask(id: $id, input: $input) { id onboardingId stage title assigneeActorId assigneeName dueDate completedAt sortOrder } }", pe = "mutation RemoveCrewOnboardingTask($id: ID!) { removeCrewOnboardingTask(id: $id) }", me = "mutation ToggleCrewOnboardingTask($id: ID!, $completed: Boolean!) { toggleCrewOnboardingTask(id: $id, completed: $completed) { id onboardingId stage title assigneeActorId assigneeName dueDate completedAt sortOrder } }", H = (e) => e.toUpperCase().replaceAll("-", "_"), U = (e) => /* @__PURE__ */ Error(`${e} isn't available in CrewFoundry.`), W = {
|
|
4
|
+
var n = "\n query CrewfoundryBootstrap {\n crewfoundryBootstrap {\n employees { id firstName lastName email department position status type salary startDate avatar location managerId phone performanceScore skills terminationDate }\n departments { id name headId headName employeeCount budget location status }\n jobPostings { id title department location type experienceLevel salaryMin salaryMax status applicants postedDate deadline description requirements benefits }\n candidates { id firstName lastName email phone position status appliedDate resumeUrl rating source experience skills currentCompany notes hiredDate }\n interviews { id candidateId candidateName position interviewerName date time type status feedback rating }\n announcements { id title content author authorRole category priority isPinned createdAt viewCount tags }\n teams { id name description leadId leadName members memberCount department status projectCount createdAt }\n projects { id name description status priority startDate endDate progress budget spent teamId teamName managerId managerName tasks completedTasks }\n leaveRequests { id employeeId employeeName department type startDate endDate days status reason approverName }\n timeEntries { id employeeId employeeName date clockIn clockOut totalHours overtime project status billable }\n vendors { id name category contactPerson email phone status contractValue rating }\n clients { id name industry contactPerson email phone status revenue projects since }\n }\n }\n", r = "\n query CrewPayrollRecords {\n crewPayrollRecords { id employeeId employeeName department period grossPay deductions netPay status payDate paymentMethod }\n }\n", i = "\n query CrewfoundryWorkspaceBootstrapWithOverlap(\n $workspaceId: ID!\n $projectPagination: PaginationInput\n $groupFirst: Int\n $conversationFirst: Int\n ) {\n crewfoundryBootstrap {\n employees { id firstName lastName email department position status type salary startDate avatar location managerId phone performanceScore skills terminationDate }\n departments { id name headId headName employeeCount budget location status }\n jobPostings { id title department location type experienceLevel salaryMin salaryMax status applicants postedDate deadline description requirements benefits }\n candidates { id firstName lastName email phone position status appliedDate resumeUrl rating source experience skills currentCompany notes hiredDate }\n interviews { id candidateId candidateName position interviewerName date time type status feedback rating }\n announcements { id title content author authorRole category priority isPinned createdAt viewCount tags }\n teams { id name description leadId leadName members memberCount department status projectCount createdAt }\n projects { id name description status priority startDate endDate progress budget spent teamId teamName managerId managerName tasks completedTasks }\n leaveRequests { id employeeId employeeName department type startDate endDate days status reason approverName }\n timeEntries { id employeeId employeeName date clockIn clockOut totalHours overtime project status billable }\n vendors { id name category contactPerson email phone status contractValue rating }\n clients { id name industry contactPerson email phone status revenue projects since }\n }\n projects(filter: { workspaceId: $workspaceId }, pagination: $projectPagination) {\n items {\n id\n name\n key\n creatorId\n status\n config\n archived\n createdAt\n updatedAt\n }\n }\n groups(first: $groupFirst) {\n edges {\n node {\n id\n name\n description\n groupType\n status\n memberCount\n ownerId\n createdAt\n }\n }\n }\n conversations(first: $conversationFirst) {\n edges {\n node {\n id\n title\n description\n state\n unreadCount\n memberCount\n updatedAt\n }\n }\n }\n }\n", a = "\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", o = "mutation CreateCrewEmployee($input: CreateCrewEmployeeInput!) { createCrewEmployee(input: $input) { id firstName lastName email department position status type salary startDate avatar location managerId phone performanceScore skills terminationDate } }", s = "mutation UpdateCrewEmployee($id: ID!, $input: UpdateCrewEmployeeInput!) { updateCrewEmployee(id: $id, input: $input) { id firstName lastName email department position status type salary startDate avatar location managerId phone performanceScore skills terminationDate } }", c = "mutation RemoveCrewEmployee($id: ID!) { removeCrewEmployee(id: $id) }", l = "mutation CreateCrewJobPosting($input: CreateCrewJobPostingInput!) { createCrewJobPosting(input: $input) { id title department location type experienceLevel salaryMin salaryMax status applicants postedDate deadline description requirements benefits } }", u = "mutation UpdateCrewJobPosting($id: ID!, $input: UpdateCrewJobPostingInput!) { updateCrewJobPosting(id: $id, input: $input) { id title department location type experienceLevel salaryMin salaryMax status applicants postedDate deadline description requirements benefits } }", d = "mutation CreateCrewCandidate($input: CreateCrewCandidateInput!) { createCrewCandidate(input: $input) { id firstName lastName email phone position status appliedDate resumeUrl rating source experience skills currentCompany notes hiredDate } }", f = "mutation UpdateCrewCandidate($id: ID!, $input: UpdateCrewCandidateInput!) { updateCrewCandidate(id: $id, input: $input) { id firstName lastName email phone position status appliedDate resumeUrl rating source experience skills currentCompany notes hiredDate } }", p = "mutation CreateCrewAnnouncement($input: CreateCrewAnnouncementInput!) { createCrewAnnouncement(input: $input) { id title content author authorRole category priority isPinned createdAt viewCount tags } }", m = "mutation CreateCrewLeaveRequest($input: CreateCrewLeaveRequestInput!) { createCrewLeaveRequest(input: $input) { id employeeId employeeName department type startDate endDate days status reason approverName } }", h = "mutation UpdateCrewLeaveRequest($id: ID!, $input: UpdateCrewLeaveRequestInput!) { updateCrewLeaveRequest(id: $id, input: $input) { id employeeId employeeName department type startDate endDate days status reason approverName } }", g = "mutation RemoveCrewJobPosting($id: ID!) { removeCrewJobPosting(id: $id) }", _ = "mutation RemoveCrewCandidate($id: ID!) { removeCrewCandidate(id: $id) }", v = "mutation UpdateCrewAnnouncement($id: ID!, $input: UpdateCrewAnnouncementInput!) { updateCrewAnnouncement(id: $id, input: $input) { id title content author authorRole category priority isPinned createdAt viewCount tags } }", y = "mutation RemoveCrewAnnouncement($id: ID!) { removeCrewAnnouncement(id: $id) }", b = "mutation CreateCrewInterview($input: CreateCrewInterviewInput!) { createCrewInterview(input: $input) { id candidateId candidateName position interviewerName date time type status feedback rating } }", x = "mutation UpdateCrewInterview($id: ID!, $input: UpdateCrewInterviewInput!) { updateCrewInterview(id: $id, input: $input) { id candidateId candidateName position interviewerName date time type status feedback rating } }", S = "mutation RemoveCrewInterview($id: ID!) { removeCrewInterview(id: $id) }", C = "mutation CreateCrewVendor($input: CreateCrewVendorInput!) { createCrewVendor(input: $input) { id name category contactPerson email phone status contractValue rating } }", w = "mutation UpdateCrewVendor($id: ID!, $input: UpdateCrewVendorInput!) { updateCrewVendor(id: $id, input: $input) { id name category contactPerson email phone status contractValue rating } }", T = "mutation RemoveCrewVendor($id: ID!) { removeCrewVendor(id: $id) }", E = "mutation CreateCrewClient($input: CreateCrewClientInput!) { createCrewClient(input: $input) { id name industry contactPerson email phone status revenue projects since } }", ee = "mutation UpdateCrewClient($id: ID!, $input: UpdateCrewClientInput!) { updateCrewClient(id: $id, input: $input) { id name industry contactPerson email phone status revenue projects since } }", te = "mutation RemoveCrewClient($id: ID!) { removeCrewClient(id: $id) }", ne = "mutation CreateCrewTeam($input: CreateCrewTeamInput!) { createCrewTeam(input: $input) { id name description leadId leadName members memberCount department status projectCount createdAt } }", re = "mutation UpdateCrewTeam($id: ID!, $input: UpdateCrewTeamInput!) { updateCrewTeam(id: $id, input: $input) { id name description leadId leadName members memberCount department status projectCount createdAt } }", ie = "mutation RemoveCrewTeam($id: ID!) { removeCrewTeam(id: $id) }", ae = "mutation CreateCrewProject($input: CreateCrewProjectInput!) { createCrewProject(input: $input) { id name description status priority startDate endDate progress budget spent teamId teamName managerId managerName tasks completedTasks } }", oe = "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 } }", se = "mutation RemoveCrewProject($id: ID!) { removeCrewProject(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) }", de = "mutation CreateCrewPayrollRecord($input: CreateCrewPayrollRecordInput!) { createCrewPayrollRecord(input: $input) { id employeeId employeeName department period grossPay deductions netPay status payDate paymentMethod } }", fe = "mutation UpdateCrewPayrollRecord($id: ID!, $input: UpdateCrewPayrollRecordInput!) { updateCrewPayrollRecord(id: $id, input: $input) { id employeeId employeeName department period grossPay deductions netPay status payDate paymentMethod } }", D = "mutation RemoveCrewPayrollRecord($id: ID!) { removeCrewPayrollRecord(id: $id) }", O = "mutation CreateCrewTimeEntry($input: CreateCrewTimeEntryInput!) { createCrewTimeEntry(input: $input) { id employeeId employeeName date clockIn clockOut totalHours overtime project status billable } }", k = "mutation UpdateCrewTimeEntry($id: ID!, $input: UpdateCrewTimeEntryInput!) { updateCrewTimeEntry(id: $id, input: $input) { id employeeId employeeName date clockIn clockOut totalHours overtime project status billable } }", A = "mutation RemoveCrewTimeEntry($id: ID!) { removeCrewTimeEntry(id: $id) }", j = "query EmployeeDocuments($employeeId: ID!) { employeeDocuments(employeeId: $employeeId) { id employeeId fileId title category uploadedBy uploadedAt } }", M = "mutation AttachEmployeeDocument($input: AttachCrewEmployeeDocumentInput!) { attachEmployeeDocument(input: $input) { id employeeId fileId title category uploadedBy uploadedAt } }", N = "mutation DetachEmployeeDocument($id: ID!) { detachEmployeeDocument(id: $id) }", P = "mutation EnsureFolderByPath($path: String!) { ensureFolderByPath(path: $path) { id } }", F = "mutation InitiateUpload($input: InitiateUploadInput!) { initiateUpload(input: $input) { session { id } uploadUrl } }", I = "mutation CompleteUpload($input: CompleteUploadInput!) { completeUpload(input: $input) { file { id } } }", L = "query CrewOnboardings { crewOnboardings { id candidateId employeeId fullName position department startDate status currentStage createdAt totalTaskCount completedTaskCount progressPercent tasks { id onboardingId stage title assigneeActorId assigneeName dueDate completedAt sortOrder } } }", R = "mutation CreateCrewOnboarding($input: CreateCrewOnboardingInput!) { createCrewOnboarding(input: $input) { id candidateId employeeId fullName position department startDate status currentStage createdAt totalTaskCount completedTaskCount progressPercent tasks { id onboardingId stage title assigneeActorId assigneeName dueDate completedAt sortOrder } } }", z = "mutation UpdateCrewOnboarding($id: ID!, $input: UpdateCrewOnboardingInput!) { updateCrewOnboarding(id: $id, input: $input) { id candidateId employeeId fullName position department startDate status currentStage createdAt totalTaskCount completedTaskCount progressPercent tasks { id onboardingId stage title assigneeActorId assigneeName dueDate completedAt sortOrder } } }", B = "mutation RemoveCrewOnboarding($id: ID!) { removeCrewOnboarding(id: $id) }", V = "mutation CreateCrewOnboardingTask($input: CreateCrewOnboardingTaskInput!) { createCrewOnboardingTask(input: $input) { id onboardingId stage title assigneeActorId assigneeName dueDate completedAt sortOrder } }", pe = "mutation UpdateCrewOnboardingTask($id: ID!, $input: UpdateCrewOnboardingTaskInput!) { updateCrewOnboardingTask(id: $id, input: $input) { id onboardingId stage title assigneeActorId assigneeName dueDate completedAt sortOrder } }", me = "mutation RemoveCrewOnboardingTask($id: ID!) { removeCrewOnboardingTask(id: $id) }", he = "mutation ToggleCrewOnboardingTask($id: ID!, $completed: Boolean!) { toggleCrewOnboardingTask(id: $id, completed: $completed) { id onboardingId stage title assigneeActorId assigneeName dueDate completedAt sortOrder } }", H = (e) => e.toUpperCase().replaceAll("-", "_"), U = (e) => /* @__PURE__ */ Error(`${e} isn't available in CrewFoundry.`), W = {
|
|
5
5
|
employee: ["status", "type"],
|
|
6
6
|
department: ["status"],
|
|
7
7
|
jobPosting: [
|
|
@@ -37,19 +37,19 @@ var n = "\n query CrewfoundryBootstrap {\n crewfoundryBootstrap {\n emp
|
|
|
37
37
|
}, K = (e) => ({
|
|
38
38
|
...G(e, W.onboarding),
|
|
39
39
|
tasks: (e.tasks ?? []).map((e) => G(e, W.onboardingTask))
|
|
40
|
-
}), q = (e) => e ? e.slice(0, 10) : "TBD",
|
|
40
|
+
}), q = (e) => e ? e.slice(0, 10) : "TBD", ge = (e) => !e || typeof e != "object" || Array.isArray(e) ? null : e, J = (e) => typeof e == "number" ? e : null, Y = (e) => typeof e == "string" ? e : null, _e = (e) => {
|
|
41
41
|
let t = e.toLowerCase();
|
|
42
42
|
return t === "active" ? "active" : t === "completed" ? "completed" : t === "cancelled" ? "cancelled" : t === "archived" ? "on_hold" : "planning";
|
|
43
|
-
},
|
|
43
|
+
}, ve = (e) => {
|
|
44
44
|
let t = e.toLowerCase();
|
|
45
45
|
return t === "active" ? "active" : t === "inactive" || t === "archived" || t === "deleted" ? "disbanded" : "forming";
|
|
46
|
-
},
|
|
47
|
-
let r =
|
|
46
|
+
}, ye = (e, t) => e.map((e, n) => {
|
|
47
|
+
let r = ge(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)];
|
|
48
48
|
return {
|
|
49
49
|
id: e.id,
|
|
50
50
|
name: e.name,
|
|
51
51
|
description: Y(r?.description) || `${e.key} delivery plan`,
|
|
52
|
-
status:
|
|
52
|
+
status: _e(e.status),
|
|
53
53
|
priority: Y(r?.priority)?.toLowerCase() || "medium",
|
|
54
54
|
startDate: q(e.createdAt),
|
|
55
55
|
endDate: q(e.updatedAt),
|
|
@@ -63,7 +63,7 @@ var n = "\n query CrewfoundryBootstrap {\n crewfoundryBootstrap {\n emp
|
|
|
63
63
|
tasks: s,
|
|
64
64
|
completedTasks: c
|
|
65
65
|
};
|
|
66
|
-
}),
|
|
66
|
+
}), be = (e) => e.map(({ node: e }) => ({
|
|
67
67
|
id: e.id,
|
|
68
68
|
name: e.name,
|
|
69
69
|
description: e.description || `${e.name} team workspace`,
|
|
@@ -72,10 +72,10 @@ var n = "\n query CrewfoundryBootstrap {\n crewfoundryBootstrap {\n emp
|
|
|
72
72
|
members: [],
|
|
73
73
|
memberCount: e.memberCount,
|
|
74
74
|
department: e.groupType?.toLowerCase().replaceAll("_", " ") || "operations",
|
|
75
|
-
status:
|
|
75
|
+
status: ve(e.status),
|
|
76
76
|
projectCount: 0,
|
|
77
77
|
createdAt: q(e.createdAt)
|
|
78
|
-
})),
|
|
78
|
+
})), xe = (e) => e.filter(({ node: e }) => e.unreadCount > 0).map(({ node: e }) => ({
|
|
79
79
|
id: `conversation-${e.id}`,
|
|
80
80
|
title: e.title || "Conversation update",
|
|
81
81
|
message: `${e.unreadCount} unread in ${e.memberCount}-member channel`,
|
|
@@ -84,7 +84,7 @@ var n = "\n query CrewfoundryBootstrap {\n crewfoundryBootstrap {\n emp
|
|
|
84
84
|
read: !1,
|
|
85
85
|
createdAt: e.updatedAt,
|
|
86
86
|
actionUrl: "/crewfoundry/communications/messages-page"
|
|
87
|
-
})),
|
|
87
|
+
})), Se = (e) => {
|
|
88
88
|
let t = e.getBillingAccountsByOrg.find((e) => e?.isDefault && e?.id) || e.getBillingAccountsByOrg.find((e) => e?.id);
|
|
89
89
|
return t?.id ? (t.paymentMethods || []).filter((e) => !!e).map((e) => {
|
|
90
90
|
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";
|
|
@@ -98,11 +98,11 @@ var n = "\n query CrewfoundryBootstrap {\n crewfoundryBootstrap {\n emp
|
|
|
98
98
|
expiry: n && r ? `${n}/${r}` : void 0
|
|
99
99
|
};
|
|
100
100
|
}) : [];
|
|
101
|
-
},
|
|
101
|
+
}, Ce = (e, t) => {
|
|
102
102
|
if (e.errors?.length) throw Error(e.errors[0]?.message || t);
|
|
103
103
|
if (!e.data) throw Error(t);
|
|
104
104
|
return e.data;
|
|
105
|
-
},
|
|
105
|
+
}, X = new Set([
|
|
106
106
|
"id",
|
|
107
107
|
"createdAt",
|
|
108
108
|
"createdOn",
|
|
@@ -124,28 +124,28 @@ var n = "\n query CrewfoundryBootstrap {\n crewfoundryBootstrap {\n emp
|
|
|
124
124
|
"viewCount",
|
|
125
125
|
"revenue",
|
|
126
126
|
"projects"
|
|
127
|
-
]),
|
|
127
|
+
]), we = (e) => {
|
|
128
128
|
if (!e) return e;
|
|
129
129
|
let t = e.input;
|
|
130
130
|
if (!t || typeof t != "object" || Array.isArray(t)) return e;
|
|
131
131
|
let n = {};
|
|
132
|
-
for (let [e, r] of Object.entries(t))
|
|
132
|
+
for (let [e, r] of Object.entries(t)) X.has(e) || (n[e] = r);
|
|
133
133
|
return {
|
|
134
134
|
...e,
|
|
135
135
|
input: n
|
|
136
136
|
};
|
|
137
|
-
}, Z = async (e, n, r, i, a = "workspace") =>
|
|
137
|
+
}, Z = async (e, n, r, i, a = "workspace") => Ce(await t({
|
|
138
138
|
gateway: a,
|
|
139
139
|
query: e,
|
|
140
|
-
variables:
|
|
140
|
+
variables: we(n),
|
|
141
141
|
authToken: r.authToken,
|
|
142
142
|
baseUrl: a === "workspace" ? r.apiGatewayUrl : void 0,
|
|
143
143
|
extraHeaders: { ...a === "workspace" && r.workspaceId ? { "x-workspace-id": r.workspaceId } : {} }
|
|
144
|
-
}), i),
|
|
144
|
+
}), i), Te = () => !1, Q = async (e, t, n, r, i = "workspace") => {
|
|
145
145
|
try {
|
|
146
146
|
return await Z(e, t, n, r, i);
|
|
147
147
|
} catch (e) {
|
|
148
|
-
return
|
|
148
|
+
return Te() && console.warn(`[crewfoundry] overlap query skipped: ${r}`, e), null;
|
|
149
149
|
}
|
|
150
150
|
}, $ = e((e) => ({
|
|
151
151
|
metrics: [
|
|
@@ -235,54 +235,58 @@ var n = "\n query CrewfoundryBootstrap {\n crewfoundryBootstrap {\n emp
|
|
|
235
235
|
initParams: t
|
|
236
236
|
});
|
|
237
237
|
try {
|
|
238
|
-
let [
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
238
|
+
let [o, s, c] = await Promise.all([
|
|
239
|
+
Q(i, {
|
|
240
|
+
workspaceId: t.workspaceId,
|
|
241
|
+
projectPagination: {
|
|
242
|
+
limit: 50,
|
|
243
|
+
offset: 0
|
|
244
|
+
},
|
|
245
|
+
groupFirst: 30,
|
|
246
|
+
conversationFirst: 30
|
|
247
|
+
}, t, "Unable to load workspace bootstrap with overlap data"),
|
|
248
|
+
Q(a, void 0, t, "Unable to load overlap billing data", "global"),
|
|
249
|
+
Q(r, void 0, t, "Unable to load payroll records")
|
|
250
|
+
]), l = o ? o.crewfoundryBootstrap : (await Z(n, void 0, t, "Unable to load CrewFoundry data")).crewfoundryBootstrap, u = o ? be(o.groups.edges) : [], d = o ? ye(o.projects.items, u) : [], f = o ? xe(o.conversations.edges) : [], p = u.length > 0 ? u : l.teams, m = d.length > 0 ? d : l.projects, h = f, g = s ? Se(s) : [], _ = l.employees.map((e) => G(e, W.employee)), v = l.departments.map((e) => G(e, W.department)), y = l.jobPostings.map((e) => G(e, W.jobPosting)), b = l.candidates.map((e) => G(e, W.candidate)), x = l.interviews.map((e) => G(e, W.interview)), S = [], C = [], w = l.announcements.map((e) => G(e, W.announcement)), T = p.map((e) => G(e, W.team)), E = m.map((e) => G(e, W.project));
|
|
247
251
|
e({
|
|
248
|
-
employees:
|
|
249
|
-
departments:
|
|
250
|
-
jobPostings:
|
|
251
|
-
candidates:
|
|
252
|
-
interviews:
|
|
253
|
-
courses:
|
|
252
|
+
employees: _,
|
|
253
|
+
departments: v,
|
|
254
|
+
jobPostings: y,
|
|
255
|
+
candidates: b,
|
|
256
|
+
interviews: x,
|
|
257
|
+
courses: S,
|
|
254
258
|
learningPaths: [],
|
|
255
|
-
marketplaceServices:
|
|
256
|
-
announcements:
|
|
257
|
-
teams:
|
|
258
|
-
projects:
|
|
259
|
-
payrollRecords:
|
|
260
|
-
leaveRequests:
|
|
261
|
-
timeEntries:
|
|
262
|
-
notifications:
|
|
263
|
-
paymentMethods:
|
|
259
|
+
marketplaceServices: C,
|
|
260
|
+
announcements: w,
|
|
261
|
+
teams: T,
|
|
262
|
+
projects: E,
|
|
263
|
+
payrollRecords: (c?.crewPayrollRecords ?? []).map((e) => G(e, W.payrollRecord)),
|
|
264
|
+
leaveRequests: l.leaveRequests.map((e) => G(e, W.leaveRequest)),
|
|
265
|
+
timeEntries: l.timeEntries.map((e) => G(e, W.timeEntry)),
|
|
266
|
+
notifications: h.map((e) => G(e, W.notification)),
|
|
267
|
+
paymentMethods: g.map((e) => G(e, W.paymentMethod)),
|
|
264
268
|
invoices: [],
|
|
265
|
-
vendors:
|
|
266
|
-
clients:
|
|
269
|
+
vendors: l.vendors.map((e) => G(e, W.vendor)),
|
|
270
|
+
clients: l.clients.map((e) => G(e, W.client)),
|
|
267
271
|
metrics: [
|
|
268
272
|
{
|
|
269
273
|
label: "Total Employees",
|
|
270
|
-
value: String(
|
|
274
|
+
value: String(_.length),
|
|
271
275
|
trend: "Live"
|
|
272
276
|
},
|
|
273
277
|
{
|
|
274
278
|
label: "Open Positions",
|
|
275
|
-
value: String(
|
|
279
|
+
value: String(y.filter((e) => e.status === "active").length),
|
|
276
280
|
trend: "Live"
|
|
277
281
|
},
|
|
278
282
|
{
|
|
279
283
|
label: "Hiring Pipeline",
|
|
280
|
-
value: String(
|
|
284
|
+
value: String(b.length),
|
|
281
285
|
trend: "Live"
|
|
282
286
|
},
|
|
283
287
|
{
|
|
284
288
|
label: "Cross-Team Projects",
|
|
285
|
-
value: String(
|
|
289
|
+
value: String(E.filter((e) => e.status === "active").length),
|
|
286
290
|
trend: "Live"
|
|
287
291
|
}
|
|
288
292
|
],
|
|
@@ -300,7 +304,7 @@ var n = "\n query CrewfoundryBootstrap {\n crewfoundryBootstrap {\n emp
|
|
|
300
304
|
setSelectedView: (t) => e({ selectedView: t }),
|
|
301
305
|
setWorkItems: (t) => e({ workItems: t }),
|
|
302
306
|
addEmployee: async (t) => {
|
|
303
|
-
let n = $.getState().initParams, r = await Z(
|
|
307
|
+
let n = $.getState().initParams, r = await Z(o, { input: {
|
|
304
308
|
...t,
|
|
305
309
|
status: H(t.status),
|
|
306
310
|
type: H(t.type)
|
|
@@ -308,7 +312,7 @@ var n = "\n query CrewfoundryBootstrap {\n crewfoundryBootstrap {\n emp
|
|
|
308
312
|
e((e) => ({ employees: [G(r.createCrewEmployee, W.employee), ...e.employees] }));
|
|
309
313
|
},
|
|
310
314
|
updateEmployee: async (t, n) => {
|
|
311
|
-
let r = $.getState().initParams, i = await Z(
|
|
315
|
+
let r = $.getState().initParams, i = await Z(s, {
|
|
312
316
|
id: t,
|
|
313
317
|
input: {
|
|
314
318
|
...n,
|
|
@@ -320,17 +324,17 @@ var n = "\n query CrewfoundryBootstrap {\n crewfoundryBootstrap {\n emp
|
|
|
320
324
|
},
|
|
321
325
|
removeEmployee: async (t) => {
|
|
322
326
|
let n = $.getState().initParams;
|
|
323
|
-
await Z(
|
|
327
|
+
await Z(c, { id: t }, n, "Unable to remove employee"), e((e) => ({ employees: e.employees.filter((e) => e.id !== t) }));
|
|
324
328
|
},
|
|
325
329
|
addJobPosting: async (t) => {
|
|
326
|
-
let n = $.getState().initParams, r = await Z(
|
|
330
|
+
let n = $.getState().initParams, r = await Z(l, { input: {
|
|
327
331
|
...t,
|
|
328
332
|
status: H(t.status)
|
|
329
333
|
} }, n, "Unable to create job posting");
|
|
330
334
|
e((e) => ({ jobPostings: [G(r.createCrewJobPosting, W.jobPosting), ...e.jobPostings] }));
|
|
331
335
|
},
|
|
332
336
|
updateJobPosting: async (t, n) => {
|
|
333
|
-
let r = $.getState().initParams, i = await Z(
|
|
337
|
+
let r = $.getState().initParams, i = await Z(u, {
|
|
334
338
|
id: t,
|
|
335
339
|
input: {
|
|
336
340
|
...n,
|
|
@@ -340,14 +344,14 @@ var n = "\n query CrewfoundryBootstrap {\n crewfoundryBootstrap {\n emp
|
|
|
340
344
|
e((e) => ({ jobPostings: e.jobPostings.map((e) => e.id === t ? G(i.updateCrewJobPosting, W.jobPosting) : e) }));
|
|
341
345
|
},
|
|
342
346
|
addCandidate: async (t) => {
|
|
343
|
-
let n = $.getState().initParams, r = await Z(
|
|
347
|
+
let n = $.getState().initParams, r = await Z(d, { input: {
|
|
344
348
|
...t,
|
|
345
349
|
status: H(t.status)
|
|
346
350
|
} }, n, "Unable to create candidate");
|
|
347
351
|
e((e) => ({ candidates: [G(r.createCrewCandidate, W.candidate), ...e.candidates] }));
|
|
348
352
|
},
|
|
349
353
|
updateCandidate: async (t, n) => {
|
|
350
|
-
let r = $.getState().initParams, i = await Z(
|
|
354
|
+
let r = $.getState().initParams, i = await Z(f, {
|
|
351
355
|
id: t,
|
|
352
356
|
input: {
|
|
353
357
|
...n,
|
|
@@ -357,11 +361,11 @@ var n = "\n query CrewfoundryBootstrap {\n crewfoundryBootstrap {\n emp
|
|
|
357
361
|
e((e) => ({ candidates: e.candidates.map((e) => e.id === t ? G(i.updateCrewCandidate, W.candidate) : e) }));
|
|
358
362
|
},
|
|
359
363
|
addAnnouncement: async (t) => {
|
|
360
|
-
let n = $.getState().initParams, r = await Z(
|
|
364
|
+
let n = $.getState().initParams, r = await Z(p, { input: t }, n, "Unable to create announcement");
|
|
361
365
|
e((e) => ({ announcements: [G(r.createCrewAnnouncement, W.announcement), ...e.announcements] }));
|
|
362
366
|
},
|
|
363
367
|
addLeaveRequest: async (t) => {
|
|
364
|
-
let n = $.getState().initParams, r = await Z(
|
|
368
|
+
let n = $.getState().initParams, r = await Z(m, { input: {
|
|
365
369
|
...t,
|
|
366
370
|
type: H(t.type),
|
|
367
371
|
status: H(t.status)
|
|
@@ -369,7 +373,7 @@ var n = "\n query CrewfoundryBootstrap {\n crewfoundryBootstrap {\n emp
|
|
|
369
373
|
e((e) => ({ leaveRequests: [G(r.createCrewLeaveRequest, W.leaveRequest), ...e.leaveRequests] }));
|
|
370
374
|
},
|
|
371
375
|
updateLeaveRequest: async (t, n) => {
|
|
372
|
-
let r = $.getState().initParams, i = await Z(
|
|
376
|
+
let r = $.getState().initParams, i = await Z(h, {
|
|
373
377
|
id: t,
|
|
374
378
|
input: {
|
|
375
379
|
...n,
|
|
@@ -393,14 +397,14 @@ var n = "\n query CrewfoundryBootstrap {\n crewfoundryBootstrap {\n emp
|
|
|
393
397
|
},
|
|
394
398
|
removeJobPosting: async (t) => {
|
|
395
399
|
let n = $.getState().initParams;
|
|
396
|
-
await Z(
|
|
400
|
+
await Z(g, { id: t }, n, "Unable to remove job posting"), e((e) => ({ jobPostings: e.jobPostings.filter((e) => e.id !== t) }));
|
|
397
401
|
},
|
|
398
402
|
removeCandidate: async (t) => {
|
|
399
403
|
let n = $.getState().initParams;
|
|
400
|
-
await Z(
|
|
404
|
+
await Z(_, { id: t }, n, "Unable to remove candidate"), e((e) => ({ candidates: e.candidates.filter((e) => e.id !== t) }));
|
|
401
405
|
},
|
|
402
406
|
updateAnnouncement: async (t, n) => {
|
|
403
|
-
let r = $.getState().initParams, i = await Z(
|
|
407
|
+
let r = $.getState().initParams, i = await Z(v, {
|
|
404
408
|
id: t,
|
|
405
409
|
input: n
|
|
406
410
|
}, r, "Unable to update announcement");
|
|
@@ -408,10 +412,10 @@ var n = "\n query CrewfoundryBootstrap {\n crewfoundryBootstrap {\n emp
|
|
|
408
412
|
},
|
|
409
413
|
removeAnnouncement: async (t) => {
|
|
410
414
|
let n = $.getState().initParams;
|
|
411
|
-
await Z(
|
|
415
|
+
await Z(y, { id: t }, n, "Unable to remove announcement"), e((e) => ({ announcements: e.announcements.filter((e) => e.id !== t) }));
|
|
412
416
|
},
|
|
413
417
|
addInterview: async (t) => {
|
|
414
|
-
let n = $.getState().initParams, r = await Z(
|
|
418
|
+
let n = $.getState().initParams, r = await Z(b, { input: {
|
|
415
419
|
...t,
|
|
416
420
|
type: H(t.type),
|
|
417
421
|
status: H(t.status)
|
|
@@ -419,7 +423,7 @@ var n = "\n query CrewfoundryBootstrap {\n crewfoundryBootstrap {\n emp
|
|
|
419
423
|
e((e) => ({ interviews: [G(r.createCrewInterview, W.interview), ...e.interviews] }));
|
|
420
424
|
},
|
|
421
425
|
updateInterview: async (t, n) => {
|
|
422
|
-
let r = $.getState().initParams, i = await Z(
|
|
426
|
+
let r = $.getState().initParams, i = await Z(x, {
|
|
423
427
|
id: t,
|
|
424
428
|
input: {
|
|
425
429
|
...n,
|
|
@@ -431,7 +435,7 @@ var n = "\n query CrewfoundryBootstrap {\n crewfoundryBootstrap {\n emp
|
|
|
431
435
|
},
|
|
432
436
|
removeInterview: async (t) => {
|
|
433
437
|
let n = $.getState().initParams;
|
|
434
|
-
await Z(
|
|
438
|
+
await Z(S, { id: t }, n, "Unable to remove interview"), e((e) => ({ interviews: e.interviews.filter((e) => e.id !== t) }));
|
|
435
439
|
},
|
|
436
440
|
addInvoice: async () => {
|
|
437
441
|
throw U("Invoices");
|
|
@@ -443,14 +447,14 @@ var n = "\n query CrewfoundryBootstrap {\n crewfoundryBootstrap {\n emp
|
|
|
443
447
|
throw U("Invoices");
|
|
444
448
|
},
|
|
445
449
|
addVendor: async (t) => {
|
|
446
|
-
let n = $.getState().initParams, r = await Z(
|
|
450
|
+
let n = $.getState().initParams, r = await Z(C, { input: {
|
|
447
451
|
...t,
|
|
448
452
|
status: H(t.status)
|
|
449
453
|
} }, n, "Unable to create vendor");
|
|
450
454
|
e((e) => ({ vendors: [G(r.createCrewVendor, W.vendor), ...e.vendors] }));
|
|
451
455
|
},
|
|
452
456
|
updateVendor: async (t, n) => {
|
|
453
|
-
let r = $.getState().initParams, i = await Z(
|
|
457
|
+
let r = $.getState().initParams, i = await Z(w, {
|
|
454
458
|
id: t,
|
|
455
459
|
input: {
|
|
456
460
|
...n,
|
|
@@ -461,17 +465,17 @@ var n = "\n query CrewfoundryBootstrap {\n crewfoundryBootstrap {\n emp
|
|
|
461
465
|
},
|
|
462
466
|
removeVendor: async (t) => {
|
|
463
467
|
let n = $.getState().initParams;
|
|
464
|
-
await Z(
|
|
468
|
+
await Z(T, { id: t }, n, "Unable to remove vendor"), e((e) => ({ vendors: e.vendors.filter((e) => e.id !== t) }));
|
|
465
469
|
},
|
|
466
470
|
addClient: async (t) => {
|
|
467
|
-
let n = $.getState().initParams, r = await Z(
|
|
471
|
+
let n = $.getState().initParams, r = await Z(E, { input: {
|
|
468
472
|
...t,
|
|
469
473
|
status: H(t.status)
|
|
470
474
|
} }, n, "Unable to create client");
|
|
471
475
|
e((e) => ({ clients: [G(r.createCrewClient, W.client), ...e.clients] }));
|
|
472
476
|
},
|
|
473
477
|
updateClient: async (t, n) => {
|
|
474
|
-
let r = $.getState().initParams, i = await Z(
|
|
478
|
+
let r = $.getState().initParams, i = await Z(ee, {
|
|
475
479
|
id: t,
|
|
476
480
|
input: {
|
|
477
481
|
...n,
|
|
@@ -482,14 +486,14 @@ var n = "\n query CrewfoundryBootstrap {\n crewfoundryBootstrap {\n emp
|
|
|
482
486
|
},
|
|
483
487
|
removeClient: async (t) => {
|
|
484
488
|
let n = $.getState().initParams;
|
|
485
|
-
await Z(
|
|
489
|
+
await Z(te, { id: t }, n, "Unable to remove client"), e((e) => ({ clients: e.clients.filter((e) => e.id !== t) }));
|
|
486
490
|
},
|
|
487
491
|
addTeam: async (t) => {
|
|
488
|
-
let n = $.getState().initParams, r = await Z(
|
|
492
|
+
let n = $.getState().initParams, r = await Z(ne, { input: t }, n, "Unable to create team");
|
|
489
493
|
e((e) => ({ teams: [G(r.createCrewTeam, W.team), ...e.teams] }));
|
|
490
494
|
},
|
|
491
495
|
updateTeam: async (t, n) => {
|
|
492
|
-
let r = $.getState().initParams, i = await Z(
|
|
496
|
+
let r = $.getState().initParams, i = await Z(re, {
|
|
493
497
|
id: t,
|
|
494
498
|
input: n
|
|
495
499
|
}, r, "Unable to update team");
|
|
@@ -497,10 +501,10 @@ var n = "\n query CrewfoundryBootstrap {\n crewfoundryBootstrap {\n emp
|
|
|
497
501
|
},
|
|
498
502
|
removeTeam: async (t) => {
|
|
499
503
|
let n = $.getState().initParams;
|
|
500
|
-
await Z(
|
|
504
|
+
await Z(ie, { id: t }, n, "Unable to remove team"), e((e) => ({ teams: e.teams.filter((e) => e.id !== t) }));
|
|
501
505
|
},
|
|
502
506
|
addProject: async (t) => {
|
|
503
|
-
let n = $.getState().initParams, r = await Z(
|
|
507
|
+
let n = $.getState().initParams, r = await Z(ae, { input: {
|
|
504
508
|
...t,
|
|
505
509
|
status: H(t.status),
|
|
506
510
|
priority: H(t.priority)
|
|
@@ -508,7 +512,7 @@ var n = "\n query CrewfoundryBootstrap {\n crewfoundryBootstrap {\n emp
|
|
|
508
512
|
e((e) => ({ projects: [G(r.createCrewProject, W.project), ...e.projects] }));
|
|
509
513
|
},
|
|
510
514
|
updateProject: async (t, n) => {
|
|
511
|
-
let r = $.getState().initParams, i = await Z(
|
|
515
|
+
let r = $.getState().initParams, i = await Z(oe, {
|
|
512
516
|
id: t,
|
|
513
517
|
input: {
|
|
514
518
|
...n,
|
|
@@ -520,7 +524,7 @@ var n = "\n query CrewfoundryBootstrap {\n crewfoundryBootstrap {\n emp
|
|
|
520
524
|
},
|
|
521
525
|
removeProject: async (t) => {
|
|
522
526
|
let n = $.getState().initParams;
|
|
523
|
-
await Z(
|
|
527
|
+
await Z(se, { id: t }, n, "Unable to remove project"), e((e) => ({ projects: e.projects.filter((e) => e.id !== t) }));
|
|
524
528
|
},
|
|
525
529
|
addMarketplaceService: async () => {
|
|
526
530
|
throw U("Marketplace services");
|
|
@@ -532,11 +536,11 @@ var n = "\n query CrewfoundryBootstrap {\n crewfoundryBootstrap {\n emp
|
|
|
532
536
|
throw U("Marketplace services");
|
|
533
537
|
},
|
|
534
538
|
addDepartment: async (t) => {
|
|
535
|
-
let n = $.getState().initParams, r = await Z(
|
|
539
|
+
let n = $.getState().initParams, r = await Z(ce, { input: t }, n, "Unable to create department");
|
|
536
540
|
e((e) => ({ departments: [G(r.createCrewDepartment, W.department), ...e.departments] }));
|
|
537
541
|
},
|
|
538
542
|
updateDepartment: async (t, n) => {
|
|
539
|
-
let r = $.getState().initParams, i = await Z(
|
|
543
|
+
let r = $.getState().initParams, i = await Z(le, {
|
|
540
544
|
id: t,
|
|
541
545
|
input: n
|
|
542
546
|
}, r, "Unable to update department");
|
|
@@ -544,7 +548,7 @@ var n = "\n query CrewfoundryBootstrap {\n crewfoundryBootstrap {\n emp
|
|
|
544
548
|
},
|
|
545
549
|
removeDepartment: async (t) => {
|
|
546
550
|
let n = $.getState().initParams;
|
|
547
|
-
await Z(
|
|
551
|
+
await Z(ue, { id: t }, n, "Unable to remove department"), e((e) => ({ departments: e.departments.filter((e) => e.id !== t) }));
|
|
548
552
|
},
|
|
549
553
|
addCourse: async () => {
|
|
550
554
|
throw U("Courses");
|
|
@@ -568,14 +572,14 @@ var n = "\n query CrewfoundryBootstrap {\n crewfoundryBootstrap {\n emp
|
|
|
568
572
|
throw U("Learning paths");
|
|
569
573
|
},
|
|
570
574
|
addPayrollRecord: async (t) => {
|
|
571
|
-
let n = $.getState().initParams, r = await Z(
|
|
575
|
+
let n = $.getState().initParams, r = await Z(de, { input: {
|
|
572
576
|
...t,
|
|
573
577
|
status: H(t.status)
|
|
574
578
|
} }, n, "Unable to create payroll record");
|
|
575
579
|
e((e) => ({ payrollRecords: [G(r.createCrewPayrollRecord, W.payrollRecord), ...e.payrollRecords] }));
|
|
576
580
|
},
|
|
577
581
|
updatePayrollRecord: async (t, n) => {
|
|
578
|
-
let r = $.getState().initParams, i = await Z(
|
|
582
|
+
let r = $.getState().initParams, i = await Z(fe, {
|
|
579
583
|
id: t,
|
|
580
584
|
input: {
|
|
581
585
|
...n,
|
|
@@ -586,14 +590,14 @@ var n = "\n query CrewfoundryBootstrap {\n crewfoundryBootstrap {\n emp
|
|
|
586
590
|
},
|
|
587
591
|
removePayrollRecord: async (t) => {
|
|
588
592
|
let n = $.getState().initParams;
|
|
589
|
-
await Z(
|
|
593
|
+
await Z(D, { id: t }, n, "Unable to remove payroll record"), e((e) => ({ payrollRecords: e.payrollRecords.filter((e) => e.id !== t) }));
|
|
590
594
|
},
|
|
591
595
|
addTimeEntry: async (t) => {
|
|
592
|
-
let n = $.getState().initParams, r = await Z(
|
|
596
|
+
let n = $.getState().initParams, r = await Z(O, { input: t }, n, "Unable to create time entry");
|
|
593
597
|
e((e) => ({ timeEntries: [G(r.createCrewTimeEntry, W.timeEntry), ...e.timeEntries] }));
|
|
594
598
|
},
|
|
595
599
|
updateTimeEntry: async (t, n) => {
|
|
596
|
-
let r = $.getState().initParams, i = await Z(
|
|
600
|
+
let r = $.getState().initParams, i = await Z(k, {
|
|
597
601
|
id: t,
|
|
598
602
|
input: n
|
|
599
603
|
}, r, "Unable to update time entry");
|
|
@@ -601,14 +605,14 @@ var n = "\n query CrewfoundryBootstrap {\n crewfoundryBootstrap {\n emp
|
|
|
601
605
|
},
|
|
602
606
|
removeTimeEntry: async (t) => {
|
|
603
607
|
let n = $.getState().initParams;
|
|
604
|
-
await Z(
|
|
608
|
+
await Z(A, { id: t }, n, "Unable to remove time entry"), e((e) => ({ timeEntries: e.timeEntries.filter((e) => e.id !== t) }));
|
|
605
609
|
},
|
|
606
610
|
fetchEmployeeDocuments: async (t) => {
|
|
607
|
-
let n = $.getState().initParams, r = await Z(
|
|
611
|
+
let n = $.getState().initParams, r = await Z(j, { employeeId: t }, n, "Unable to load employee documents");
|
|
608
612
|
e((e) => ({ employeeDocuments: [...e.employeeDocuments.filter((e) => e.employeeId !== t), ...r.employeeDocuments] }));
|
|
609
613
|
},
|
|
610
614
|
uploadEmployeeDocument: async ({ employeeId: t, file: n, title: r, category: i }) => {
|
|
611
|
-
let a = $.getState().initParams, o = await Z(
|
|
615
|
+
let a = $.getState().initParams, o = await Z(P, { path: "/CrewFoundry/Employee Documents" }, a, "Unable to resolve the employee documents folder"), s = n.name.includes(".") ? n.name.substring(n.name.lastIndexOf(".") + 1) : "", c = await Z(F, { input: {
|
|
612
616
|
fileName: n.name,
|
|
613
617
|
fileSize: String(n.size),
|
|
614
618
|
mimeType: n.type || "application/octet-stream",
|
|
@@ -623,9 +627,9 @@ var n = "\n query CrewfoundryBootstrap {\n crewfoundryBootstrap {\n emp
|
|
|
623
627
|
});
|
|
624
628
|
if (!e.ok) throw Error(`Failed to upload file bytes (status ${e.status})`);
|
|
625
629
|
}
|
|
626
|
-
let l = await Z(
|
|
630
|
+
let l = await Z(M, { input: {
|
|
627
631
|
employeeId: t,
|
|
628
|
-
fileId: (await Z(
|
|
632
|
+
fileId: (await Z(I, { input: {
|
|
629
633
|
sessionId: c.initiateUpload.session.id,
|
|
630
634
|
fileSize: String(n.size),
|
|
631
635
|
folderId: o.ensureFolderByPath.id
|
|
@@ -637,21 +641,21 @@ var n = "\n query CrewfoundryBootstrap {\n crewfoundryBootstrap {\n emp
|
|
|
637
641
|
},
|
|
638
642
|
detachEmployeeDocument: async (t) => {
|
|
639
643
|
let n = $.getState().initParams;
|
|
640
|
-
await Z(
|
|
644
|
+
await Z(N, { id: t }, n, "Unable to remove this document"), e((e) => ({ employeeDocuments: e.employeeDocuments.filter((e) => e.id !== t) }));
|
|
641
645
|
},
|
|
642
646
|
fetchOnboardings: async () => {
|
|
643
647
|
let t = $.getState().initParams;
|
|
644
648
|
e({
|
|
645
|
-
onboardings: (await Z(
|
|
649
|
+
onboardings: (await Z(L, {}, t, "Unable to load onboarding")).crewOnboardings.map(K),
|
|
646
650
|
onboardingsLoaded: !0
|
|
647
651
|
});
|
|
648
652
|
},
|
|
649
653
|
createOnboarding: async (t) => {
|
|
650
|
-
let n = $.getState().initParams, r = await Z(
|
|
654
|
+
let n = $.getState().initParams, r = await Z(R, { input: t }, n, "Unable to start onboarding");
|
|
651
655
|
e((e) => ({ onboardings: [K(r.createCrewOnboarding), ...e.onboardings] }));
|
|
652
656
|
},
|
|
653
657
|
updateOnboarding: async (t, n) => {
|
|
654
|
-
let r = $.getState().initParams, i = await Z(
|
|
658
|
+
let r = $.getState().initParams, i = await Z(z, {
|
|
655
659
|
id: t,
|
|
656
660
|
input: n
|
|
657
661
|
}, r, "Unable to update onboarding");
|
|
@@ -659,10 +663,10 @@ var n = "\n query CrewfoundryBootstrap {\n crewfoundryBootstrap {\n emp
|
|
|
659
663
|
},
|
|
660
664
|
removeOnboarding: async (t) => {
|
|
661
665
|
let n = $.getState().initParams;
|
|
662
|
-
await Z(
|
|
666
|
+
await Z(B, { id: t }, n, "Unable to remove onboarding"), e((e) => ({ onboardings: e.onboardings.filter((e) => e.id !== t) }));
|
|
663
667
|
},
|
|
664
668
|
createOnboardingTask: async (t) => {
|
|
665
|
-
let n = $.getState().initParams, r = G((await Z(
|
|
669
|
+
let n = $.getState().initParams, r = G((await Z(V, { input: t }, n, "Unable to create onboarding task")).createCrewOnboardingTask, W.onboardingTask);
|
|
666
670
|
e((e) => ({ onboardings: e.onboardings.map((e) => e.id === r.onboardingId ? {
|
|
667
671
|
...e,
|
|
668
672
|
tasks: [...e.tasks, r],
|
|
@@ -670,7 +674,7 @@ var n = "\n query CrewfoundryBootstrap {\n crewfoundryBootstrap {\n emp
|
|
|
670
674
|
} : e) }));
|
|
671
675
|
},
|
|
672
676
|
updateOnboardingTask: async (t, n) => {
|
|
673
|
-
let r = $.getState().initParams, i = G((await Z(
|
|
677
|
+
let r = $.getState().initParams, i = G((await Z(pe, {
|
|
674
678
|
id: t,
|
|
675
679
|
input: n
|
|
676
680
|
}, r, "Unable to update onboarding task")).updateCrewOnboardingTask, W.onboardingTask);
|
|
@@ -681,14 +685,14 @@ var n = "\n query CrewfoundryBootstrap {\n crewfoundryBootstrap {\n emp
|
|
|
681
685
|
},
|
|
682
686
|
removeOnboardingTask: async (t) => {
|
|
683
687
|
let n = $.getState().initParams;
|
|
684
|
-
await Z(
|
|
688
|
+
await Z(me, { id: t }, n, "Unable to remove onboarding task"), e((e) => ({ onboardings: e.onboardings.map((e) => e.tasks.some((e) => e.id === t) ? {
|
|
685
689
|
...e,
|
|
686
690
|
tasks: e.tasks.filter((e) => e.id !== t),
|
|
687
691
|
totalTaskCount: Math.max(0, e.totalTaskCount - 1)
|
|
688
692
|
} : e) }));
|
|
689
693
|
},
|
|
690
694
|
toggleOnboardingTask: async (t, n) => {
|
|
691
|
-
let r = $.getState().initParams, i = G((await Z(
|
|
695
|
+
let r = $.getState().initParams, i = G((await Z(he, {
|
|
692
696
|
id: t,
|
|
693
697
|
completed: n
|
|
694
698
|
}, r, "Unable to update onboarding task")).toggleCrewOnboardingTask, W.onboardingTask);
|