@burdenoff/microfe-crewfoundry 2026.1013.2 → 2026.1029.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.
Files changed (198) hide show
  1. package/dist/crewfoundry/CrewFoundryRoot.d.ts.map +1 -1
  2. package/dist/crewfoundry/CrewFoundryRoot.js +160 -256
  3. package/dist/crewfoundry/CrewFoundryRoot.js.map +1 -1
  4. package/dist/crewfoundry/CrewFoundryRoutes.d.ts.map +1 -1
  5. package/dist/crewfoundry/CrewFoundryRoutes.js +152 -192
  6. package/dist/crewfoundry/CrewFoundryRoutes.js.map +1 -1
  7. package/dist/crewfoundry/components/InlineError.d.ts +5 -0
  8. package/dist/crewfoundry/components/InlineError.d.ts.map +1 -0
  9. package/dist/crewfoundry/components/InlineError.js +17 -0
  10. package/dist/crewfoundry/components/InlineError.js.map +1 -0
  11. package/dist/crewfoundry/components/marketplace/BookServiceModal.d.ts +14 -0
  12. package/dist/crewfoundry/components/marketplace/BookServiceModal.d.ts.map +1 -0
  13. package/dist/crewfoundry/components/marketplace/BookServiceModal.js +75 -0
  14. package/dist/crewfoundry/components/marketplace/BookServiceModal.js.map +1 -0
  15. package/dist/crewfoundry/components/marketplace/MarketplaceTabs.d.ts +24 -0
  16. package/dist/crewfoundry/components/marketplace/MarketplaceTabs.d.ts.map +1 -0
  17. package/dist/crewfoundry/components/marketplace/MarketplaceTabs.js +47 -0
  18. package/dist/crewfoundry/components/marketplace/MarketplaceTabs.js.map +1 -0
  19. package/dist/crewfoundry/components/marketplace/ServiceListingModal.d.ts +12 -0
  20. package/dist/crewfoundry/components/marketplace/ServiceListingModal.d.ts.map +1 -0
  21. package/dist/crewfoundry/components/marketplace/ServiceListingModal.js +123 -0
  22. package/dist/crewfoundry/components/marketplace/ServiceListingModal.js.map +1 -0
  23. package/dist/crewfoundry/components/viz/CertificateCard.js +4 -118
  24. package/dist/crewfoundry/components/viz/PathSteps.js +3 -68
  25. package/dist/crewfoundry/components/viz/lib/geometry.js +5 -13
  26. package/dist/crewfoundry/components/viz/lib/geometry.js.map +1 -1
  27. package/dist/crewfoundry/lib/analytics.d.ts +1 -6
  28. package/dist/crewfoundry/lib/analytics.d.ts.map +1 -1
  29. package/dist/crewfoundry/lib/analytics.js +3 -18
  30. package/dist/crewfoundry/lib/analytics.js.map +1 -1
  31. package/dist/crewfoundry/lib/companyFinance.d.ts +3 -7
  32. package/dist/crewfoundry/lib/companyFinance.d.ts.map +1 -1
  33. package/dist/crewfoundry/lib/companyFinance.js +3 -8
  34. package/dist/crewfoundry/lib/companyFinance.js.map +1 -1
  35. package/dist/crewfoundry/lib/learning.d.ts +12 -0
  36. package/dist/crewfoundry/lib/learning.d.ts.map +1 -0
  37. package/dist/crewfoundry/lib/learning.js +26 -0
  38. package/dist/crewfoundry/lib/learning.js.map +1 -0
  39. package/dist/crewfoundry/lib/marketplace.d.ts +30 -0
  40. package/dist/crewfoundry/lib/marketplace.d.ts.map +1 -0
  41. package/dist/crewfoundry/lib/marketplace.js +91 -0
  42. package/dist/crewfoundry/lib/marketplace.js.map +1 -0
  43. package/dist/crewfoundry/lib/useEnsureLoaded.d.ts +7 -0
  44. package/dist/crewfoundry/lib/useEnsureLoaded.d.ts.map +1 -0
  45. package/dist/crewfoundry/lib/useEnsureLoaded.js +25 -0
  46. package/dist/crewfoundry/lib/useEnsureLoaded.js.map +1 -0
  47. package/dist/crewfoundry/pages/AnalyticsFinancialAnalyticsPagePage.d.ts.map +1 -1
  48. package/dist/crewfoundry/pages/AnalyticsFinancialAnalyticsPagePage.js +12 -25
  49. package/dist/crewfoundry/pages/AnalyticsFinancialAnalyticsPagePage.js.map +1 -1
  50. package/dist/crewfoundry/pages/CommunicationsAnnouncementsPagePage.d.ts.map +1 -1
  51. package/dist/crewfoundry/pages/CommunicationsAnnouncementsPagePage.js +145 -157
  52. package/dist/crewfoundry/pages/CommunicationsAnnouncementsPagePage.js.map +1 -1
  53. package/dist/crewfoundry/pages/CompanyClientManagementPagePage.d.ts.map +1 -1
  54. package/dist/crewfoundry/pages/CompanyClientManagementPagePage.js +14 -14
  55. package/dist/crewfoundry/pages/CompanyClientManagementPagePage.js.map +1 -1
  56. package/dist/crewfoundry/pages/CompanyVendorManagementPagePage.d.ts.map +1 -1
  57. package/dist/crewfoundry/pages/CompanyVendorManagementPagePage.js +14 -14
  58. package/dist/crewfoundry/pages/CompanyVendorManagementPagePage.js.map +1 -1
  59. package/dist/crewfoundry/pages/HelpApiDocumentationPagePage.d.ts.map +1 -1
  60. package/dist/crewfoundry/pages/HelpApiDocumentationPagePage.js +71 -33
  61. package/dist/crewfoundry/pages/HelpApiDocumentationPagePage.js.map +1 -1
  62. package/dist/crewfoundry/pages/LearningCourseDetailsPagePage.d.ts.map +1 -1
  63. package/dist/crewfoundry/pages/LearningCourseDetailsPagePage.js +247 -173
  64. package/dist/crewfoundry/pages/LearningCourseDetailsPagePage.js.map +1 -1
  65. package/dist/crewfoundry/pages/LearningCoursesPagePage.d.ts +12 -0
  66. package/dist/crewfoundry/pages/LearningCoursesPagePage.d.ts.map +1 -1
  67. package/dist/crewfoundry/pages/LearningCoursesPagePage.js +307 -293
  68. package/dist/crewfoundry/pages/LearningCoursesPagePage.js.map +1 -1
  69. package/dist/crewfoundry/pages/LearningEnrollmentsPagePage.d.ts +2 -0
  70. package/dist/crewfoundry/pages/LearningEnrollmentsPagePage.d.ts.map +1 -0
  71. package/dist/crewfoundry/pages/LearningEnrollmentsPagePage.js +223 -0
  72. package/dist/crewfoundry/pages/LearningEnrollmentsPagePage.js.map +1 -0
  73. package/dist/crewfoundry/pages/LearningLearningAnalyticsPagePage.d.ts +4 -0
  74. package/dist/crewfoundry/pages/LearningLearningAnalyticsPagePage.d.ts.map +1 -1
  75. package/dist/crewfoundry/pages/LearningLearningAnalyticsPagePage.js +115 -160
  76. package/dist/crewfoundry/pages/LearningLearningAnalyticsPagePage.js.map +1 -1
  77. package/dist/crewfoundry/pages/MarketplaceBookingManagementPagePage.d.ts.map +1 -1
  78. package/dist/crewfoundry/pages/MarketplaceBookingManagementPagePage.js +165 -75
  79. package/dist/crewfoundry/pages/MarketplaceBookingManagementPagePage.js.map +1 -1
  80. package/dist/crewfoundry/pages/MarketplaceEscrowPagePage.d.ts +7 -0
  81. package/dist/crewfoundry/pages/MarketplaceEscrowPagePage.d.ts.map +1 -0
  82. package/dist/crewfoundry/pages/MarketplaceEscrowPagePage.js +175 -0
  83. package/dist/crewfoundry/pages/MarketplaceEscrowPagePage.js.map +1 -0
  84. package/dist/crewfoundry/pages/MarketplaceMarketplacePagePage.d.ts.map +1 -1
  85. package/dist/crewfoundry/pages/MarketplaceMarketplacePagePage.js +182 -223
  86. package/dist/crewfoundry/pages/MarketplaceMarketplacePagePage.js.map +1 -1
  87. package/dist/crewfoundry/pages/MarketplaceMyServicesPagePage.d.ts.map +1 -1
  88. package/dist/crewfoundry/pages/MarketplaceMyServicesPagePage.js +168 -227
  89. package/dist/crewfoundry/pages/MarketplaceMyServicesPagePage.js.map +1 -1
  90. package/dist/crewfoundry/pages/MarketplaceServiceDetailsPagePage.d.ts.map +1 -1
  91. package/dist/crewfoundry/pages/MarketplaceServiceDetailsPagePage.js +127 -290
  92. package/dist/crewfoundry/pages/MarketplaceServiceDetailsPagePage.js.map +1 -1
  93. package/dist/crewfoundry/store/crewfoundryStore.d.ts +138 -78
  94. package/dist/crewfoundry/store/crewfoundryStore.d.ts.map +1 -1
  95. package/dist/crewfoundry/store/crewfoundryStore.js +338 -244
  96. package/dist/crewfoundry/store/crewfoundryStore.js.map +1 -1
  97. package/dist/crewfoundry/utils/dateUtils.d.ts +5 -0
  98. package/dist/crewfoundry/utils/dateUtils.d.ts.map +1 -1
  99. package/dist/crewfoundry/utils/dateUtils.js +10 -1
  100. package/dist/crewfoundry/utils/dateUtils.js.map +1 -1
  101. package/dist/generated/global-types.d.ts +5145 -1627
  102. package/dist/generated/global-types.d.ts.map +1 -1
  103. package/dist/generated/wspace-types.d.ts +100373 -34602
  104. package/dist/generated/wspace-types.d.ts.map +1 -1
  105. package/dist/utils/pageContext.d.ts.map +1 -1
  106. package/dist/utils/pageContext.js +0 -1
  107. package/dist/utils/pageContext.js.map +1 -1
  108. package/package.json +1 -1
  109. package/dist/crewfoundry/components/viz/CertificateCard.js.map +0 -1
  110. package/dist/crewfoundry/components/viz/PathSteps.js.map +0 -1
  111. package/dist/crewfoundry/pages/CommunicationsCallsPagePage.d.ts +0 -2
  112. package/dist/crewfoundry/pages/CommunicationsCallsPagePage.d.ts.map +0 -1
  113. package/dist/crewfoundry/pages/CommunicationsCallsPagePage.js +0 -53
  114. package/dist/crewfoundry/pages/CommunicationsCallsPagePage.js.map +0 -1
  115. package/dist/crewfoundry/pages/CommunicationsMessagesPagePage.d.ts +0 -2
  116. package/dist/crewfoundry/pages/CommunicationsMessagesPagePage.d.ts.map +0 -1
  117. package/dist/crewfoundry/pages/CommunicationsMessagesPagePage.js +0 -107
  118. package/dist/crewfoundry/pages/CommunicationsMessagesPagePage.js.map +0 -1
  119. package/dist/crewfoundry/pages/CommunicationsVideoCallsPagePage.d.ts +0 -2
  120. package/dist/crewfoundry/pages/CommunicationsVideoCallsPagePage.d.ts.map +0 -1
  121. package/dist/crewfoundry/pages/CommunicationsVideoCallsPagePage.js +0 -62
  122. package/dist/crewfoundry/pages/CommunicationsVideoCallsPagePage.js.map +0 -1
  123. package/dist/crewfoundry/pages/LearningAssessmentsPagePage.d.ts +0 -2
  124. package/dist/crewfoundry/pages/LearningAssessmentsPagePage.d.ts.map +0 -1
  125. package/dist/crewfoundry/pages/LearningAssessmentsPagePage.js +0 -37
  126. package/dist/crewfoundry/pages/LearningAssessmentsPagePage.js.map +0 -1
  127. package/dist/crewfoundry/pages/LearningCertificatesPagePage.d.ts +0 -2
  128. package/dist/crewfoundry/pages/LearningCertificatesPagePage.d.ts.map +0 -1
  129. package/dist/crewfoundry/pages/LearningCertificatesPagePage.js +0 -111
  130. package/dist/crewfoundry/pages/LearningCertificatesPagePage.js.map +0 -1
  131. package/dist/crewfoundry/pages/LearningCourseLearningPagePage.d.ts +0 -2
  132. package/dist/crewfoundry/pages/LearningCourseLearningPagePage.d.ts.map +0 -1
  133. package/dist/crewfoundry/pages/LearningCourseLearningPagePage.js +0 -309
  134. package/dist/crewfoundry/pages/LearningCourseLearningPagePage.js.map +0 -1
  135. package/dist/crewfoundry/pages/LearningLearningPagePage.d.ts +0 -2
  136. package/dist/crewfoundry/pages/LearningLearningPagePage.d.ts.map +0 -1
  137. package/dist/crewfoundry/pages/LearningLearningPagePage.js +0 -200
  138. package/dist/crewfoundry/pages/LearningLearningPagePage.js.map +0 -1
  139. package/dist/crewfoundry/pages/LearningLearningPathDetailPagePage.d.ts +0 -2
  140. package/dist/crewfoundry/pages/LearningLearningPathDetailPagePage.d.ts.map +0 -1
  141. package/dist/crewfoundry/pages/LearningLearningPathDetailPagePage.js +0 -190
  142. package/dist/crewfoundry/pages/LearningLearningPathDetailPagePage.js.map +0 -1
  143. package/dist/crewfoundry/pages/LearningLearningPathsPagePage.d.ts +0 -2
  144. package/dist/crewfoundry/pages/LearningLearningPathsPagePage.d.ts.map +0 -1
  145. package/dist/crewfoundry/pages/LearningLearningPathsPagePage.js +0 -230
  146. package/dist/crewfoundry/pages/LearningLearningPathsPagePage.js.map +0 -1
  147. package/dist/crewfoundry/pages/LearningMyLearningPagePage.d.ts +0 -2
  148. package/dist/crewfoundry/pages/LearningMyLearningPagePage.d.ts.map +0 -1
  149. package/dist/crewfoundry/pages/LearningMyLearningPagePage.js +0 -293
  150. package/dist/crewfoundry/pages/LearningMyLearningPagePage.js.map +0 -1
  151. package/dist/crewfoundry/pages/MarketplaceEarningsPagePage.d.ts +0 -2
  152. package/dist/crewfoundry/pages/MarketplaceEarningsPagePage.d.ts.map +0 -1
  153. package/dist/crewfoundry/pages/MarketplaceEarningsPagePage.js +0 -163
  154. package/dist/crewfoundry/pages/MarketplaceEarningsPagePage.js.map +0 -1
  155. package/dist/crewfoundry/pages/MarketplaceFreelancerProfilePageEnhancedPage.d.ts +0 -2
  156. package/dist/crewfoundry/pages/MarketplaceFreelancerProfilePageEnhancedPage.d.ts.map +0 -1
  157. package/dist/crewfoundry/pages/MarketplaceFreelancerProfilePageEnhancedPage.js +0 -365
  158. package/dist/crewfoundry/pages/MarketplaceFreelancerProfilePageEnhancedPage.js.map +0 -1
  159. package/dist/crewfoundry/pages/MarketplaceFreelancerProfilePagePage.d.ts +0 -2
  160. package/dist/crewfoundry/pages/MarketplaceFreelancerProfilePagePage.d.ts.map +0 -1
  161. package/dist/crewfoundry/pages/MarketplaceFreelancerProfilePagePage.js +0 -224
  162. package/dist/crewfoundry/pages/MarketplaceFreelancerProfilePagePage.js.map +0 -1
  163. package/dist/crewfoundry/pages/MarketplaceMarketplaceServicesPagePage.d.ts +0 -2
  164. package/dist/crewfoundry/pages/MarketplaceMarketplaceServicesPagePage.d.ts.map +0 -1
  165. package/dist/crewfoundry/pages/MarketplaceMarketplaceServicesPagePage.js +0 -180
  166. package/dist/crewfoundry/pages/MarketplaceMarketplaceServicesPagePage.js.map +0 -1
  167. package/dist/crewfoundry/pages/MarketplaceMessagingPagePage.d.ts +0 -2
  168. package/dist/crewfoundry/pages/MarketplaceMessagingPagePage.d.ts.map +0 -1
  169. package/dist/crewfoundry/pages/MarketplaceMessagingPagePage.js +0 -38
  170. package/dist/crewfoundry/pages/MarketplaceMessagingPagePage.js.map +0 -1
  171. package/dist/crewfoundry/pages/MarketplaceProjectDetailsPagePage.d.ts +0 -2
  172. package/dist/crewfoundry/pages/MarketplaceProjectDetailsPagePage.d.ts.map +0 -1
  173. package/dist/crewfoundry/pages/MarketplaceProjectDetailsPagePage.js +0 -204
  174. package/dist/crewfoundry/pages/MarketplaceProjectDetailsPagePage.js.map +0 -1
  175. package/dist/crewfoundry/pages/PaymentsEscrowPagePage.d.ts +0 -2
  176. package/dist/crewfoundry/pages/PaymentsEscrowPagePage.d.ts.map +0 -1
  177. package/dist/crewfoundry/pages/PaymentsEscrowPagePage.js +0 -55
  178. package/dist/crewfoundry/pages/PaymentsEscrowPagePage.js.map +0 -1
  179. package/dist/crewfoundry/pages/PaymentsInvoicesPagePage.d.ts +0 -2
  180. package/dist/crewfoundry/pages/PaymentsInvoicesPagePage.d.ts.map +0 -1
  181. package/dist/crewfoundry/pages/PaymentsInvoicesPagePage.js +0 -335
  182. package/dist/crewfoundry/pages/PaymentsInvoicesPagePage.js.map +0 -1
  183. package/dist/crewfoundry/pages/PaymentsPaymentDashboardPagePage.d.ts +0 -2
  184. package/dist/crewfoundry/pages/PaymentsPaymentDashboardPagePage.d.ts.map +0 -1
  185. package/dist/crewfoundry/pages/PaymentsPaymentDashboardPagePage.js +0 -160
  186. package/dist/crewfoundry/pages/PaymentsPaymentDashboardPagePage.js.map +0 -1
  187. package/dist/crewfoundry/pages/PaymentsPaymentMethodsPagePage.d.ts +0 -2
  188. package/dist/crewfoundry/pages/PaymentsPaymentMethodsPagePage.d.ts.map +0 -1
  189. package/dist/crewfoundry/pages/PaymentsPaymentMethodsPagePage.js +0 -80
  190. package/dist/crewfoundry/pages/PaymentsPaymentMethodsPagePage.js.map +0 -1
  191. package/dist/crewfoundry/pages/PaymentsSecurityPagePage.d.ts +0 -2
  192. package/dist/crewfoundry/pages/PaymentsSecurityPagePage.d.ts.map +0 -1
  193. package/dist/crewfoundry/pages/PaymentsSecurityPagePage.js +0 -191
  194. package/dist/crewfoundry/pages/PaymentsSecurityPagePage.js.map +0 -1
  195. package/dist/crewfoundry/utils/courseProgress.d.ts +0 -33
  196. package/dist/crewfoundry/utils/courseProgress.d.ts.map +0 -1
  197. package/dist/crewfoundry/utils/courseProgress.js +0 -46
  198. package/dist/crewfoundry/utils/courseProgress.js.map +0 -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 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 } }", D = "mutation UpdateCrewClient($id: ID!, $input: UpdateCrewClientInput!) { updateCrewClient(id: $id, input: $input) { id name industry contactPerson email phone status revenue projects since } }", ee = "mutation RemoveCrewClient($id: ID!) { removeCrewClient(id: $id) }", te = "mutation CreateCrewTeam($input: CreateCrewTeamInput!) { createCrewTeam(input: $input) { id name description leadId leadName members memberCount department status projectCount createdAt } }", ne = "mutation UpdateCrewTeam($id: ID!, $input: UpdateCrewTeamInput!) { updateCrewTeam(id: $id, input: $input) { id name description leadId leadName members memberCount department status projectCount createdAt } }", re = "mutation RemoveCrewTeam($id: ID!) { removeCrewTeam(id: $id) }", ie = "mutation CreateCrewProject($input: CreateCrewProjectInput!) { createCrewProject(input: $input) { id name description status priority startDate endDate progress budget spent teamId teamName managerId managerName tasks completedTasks } }", ae = "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 } }", oe = "mutation RemoveCrewProject($id: ID!) { removeCrewProject(id: $id) }", se = "mutation CreateCrewDepartment($input: CreateCrewDepartmentInput!) { createCrewDepartment(input: $input) { id name headId headName employeeCount budget location status } }", ce = "mutation UpdateCrewDepartment($id: ID!, $input: UpdateCrewDepartmentInput!) { updateCrewDepartment(id: $id, input: $input) { id name headId headName employeeCount budget location status } }", le = "mutation RemoveCrewDepartment($id: ID!) { removeCrewDepartment(id: $id) }", ue = "mutation CreateCrewPayrollRecord($input: CreateCrewPayrollRecordInput!) { createCrewPayrollRecord(input: $input) { id employeeId employeeName department period grossPay deductions netPay status payDate paymentMethod } }", de = "mutation UpdateCrewPayrollRecord($id: ID!, $input: UpdateCrewPayrollRecordInput!) { updateCrewPayrollRecord(id: $id, input: $input) { id employeeId employeeName department period grossPay deductions netPay status payDate paymentMethod } }", fe = "mutation RemoveCrewPayrollRecord($id: ID!) { removeCrewPayrollRecord(id: $id) }", O = "id country currency period payDate status employeeCount totalGrossPay totalNetPay calculatedAt approvedAt approvedBy notes", k = `query CrewPayrollRuns { crewPayrollRuns { ${O} } }`, A = `mutation CreateCrewPayrollRun($input: CreateCrewPayrollRunInput!) { createCrewPayrollRun(input: $input) { ${O} } }`, j = `mutation CalculateCrewPayrollRun($id: ID!) { calculateCrewPayrollRun(id: $id) { ${O} } }`, M = `mutation ApproveCrewPayrollRun($id: ID!) { approveCrewPayrollRun(id: $id) { ${O} } }`, N = "mutation RemoveCrewPayrollRun($id: ID!) { removeCrewPayrollRun(id: $id) }", P = "query CrewPayslips($filter: CrewPayslipFilterInput) { crewPayslips(filter: $filter) { id payrollRunId employeeId employeeName country currency period annualGrossSalary grossPay taxableIncome incomeTax employeeSocialContrib employerSocialContrib otherDeductions netPay incomeTaxBrackets { label rate bandFrom bandTo taxableInBand taxOnBand } employeeContributions { label rate base amount } employerContributions { label rate base amount } otherDeductionLines { label rate base amount } assumptions } }", F = "mutation CreateCrewTimeEntry($input: CreateCrewTimeEntryInput!) { createCrewTimeEntry(input: $input) { id employeeId employeeName date clockIn clockOut totalHours overtime project status billable } }", I = "mutation UpdateCrewTimeEntry($id: ID!, $input: UpdateCrewTimeEntryInput!) { updateCrewTimeEntry(id: $id, input: $input) { id employeeId employeeName date clockIn clockOut totalHours overtime project status billable } }", L = "mutation RemoveCrewTimeEntry($id: ID!) { removeCrewTimeEntry(id: $id) }", R = "query CrewJobPostingMatches($jobPostingId: ID!, $filter: CrewCandidateMatchFilterInput, $limit: Int) { crewJobPostingMatches(jobPostingId: $jobPostingId, filter: $filter, limit: $limit) { candidateId jobPostingId score skillScore experienceScore matchedSkills missingSkills rationale candidate { id firstName lastName email phone position status appliedDate resumeUrl rating source experience skills currentCompany notes hiredDate } } }", z = "query CrewSkillsGap { crewSkillsGap { skill employeesWithSkill openJobsRequiringSkill shortage } }", B = "query EmployeeDocuments($employeeId: ID!) { employeeDocuments(employeeId: $employeeId) { id employeeId fileId title category uploadedBy uploadedAt } }", V = "mutation AttachEmployeeDocument($input: AttachCrewEmployeeDocumentInput!) { attachEmployeeDocument(input: $input) { id employeeId fileId title category uploadedBy uploadedAt } }", pe = "mutation DetachEmployeeDocument($id: ID!) { detachEmployeeDocument(id: $id) }", me = "mutation EnsureFolderByPath($path: String!) { ensureFolderByPath(path: $path) { id } }", he = "mutation InitiateUpload($input: InitiateUploadInput!) { initiateUpload(input: $input) { session { id } uploadUrl } }", ge = "mutation CompleteUpload($input: CompleteUploadInput!) { completeUpload(input: $input) { file { id } } }", _e = "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 } } }", ve = "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 } } }", ye = "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 } } }", be = "mutation RemoveCrewOnboarding($id: ID!) { removeCrewOnboarding(id: $id) }", xe = "mutation CreateCrewOnboardingTask($input: CreateCrewOnboardingTaskInput!) { createCrewOnboardingTask(input: $input) { id onboardingId stage title assigneeActorId assigneeName dueDate completedAt sortOrder } }", Se = "mutation UpdateCrewOnboardingTask($id: ID!, $input: UpdateCrewOnboardingTaskInput!) { updateCrewOnboardingTask(id: $id, input: $input) { id onboardingId stage title assigneeActorId assigneeName dueDate completedAt sortOrder } }", Ce = "mutation RemoveCrewOnboardingTask($id: ID!) { removeCrewOnboardingTask(id: $id) }", we = "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 = "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) }", ee = "mutation CreateCrewVendor($input: CreateCrewVendorInput!) { createCrewVendor(input: $input) { id name category contactPerson email phone status contractValue rating } }", te = "mutation UpdateCrewVendor($id: ID!, $input: UpdateCrewVendorInput!) { updateCrewVendor(id: $id, input: $input) { id name category contactPerson email phone status contractValue rating } }", ne = "mutation RemoveCrewVendor($id: ID!) { removeCrewVendor(id: $id) }", re = "mutation CreateCrewClient($input: CreateCrewClientInput!) { createCrewClient(input: $input) { id name industry contactPerson email phone status revenue projects since } }", ie = "mutation UpdateCrewClient($id: ID!, $input: UpdateCrewClientInput!) { updateCrewClient(id: $id, input: $input) { id name industry contactPerson email phone status revenue projects since } }", ae = "mutation RemoveCrewClient($id: ID!) { removeCrewClient(id: $id) }", oe = "mutation CreateCrewTeam($input: CreateCrewTeamInput!) { createCrewTeam(input: $input) { id name description leadId leadName members memberCount department status projectCount createdAt } }", se = "mutation UpdateCrewTeam($id: ID!, $input: UpdateCrewTeamInput!) { updateCrewTeam(id: $id, input: $input) { id name description leadId leadName members memberCount department status projectCount createdAt } }", ce = "mutation RemoveCrewTeam($id: ID!) { removeCrewTeam(id: $id) }", le = "mutation CreateCrewProject($input: CreateCrewProjectInput!) { createCrewProject(input: $input) { id name description status priority startDate endDate progress budget spent teamId teamName managerId managerName tasks completedTasks } }", ue = "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 } }", de = "mutation RemoveCrewProject($id: ID!) { removeCrewProject(id: $id) }", fe = "mutation CreateCrewDepartment($input: CreateCrewDepartmentInput!) { createCrewDepartment(input: $input) { id name headId headName employeeCount budget location status } }", pe = "mutation UpdateCrewDepartment($id: ID!, $input: UpdateCrewDepartmentInput!) { updateCrewDepartment(id: $id, input: $input) { id name headId headName employeeCount budget location status } }", me = "mutation RemoveCrewDepartment($id: ID!) { removeCrewDepartment(id: $id) }", he = "mutation CreateCrewPayrollRecord($input: CreateCrewPayrollRecordInput!) { createCrewPayrollRecord(input: $input) { id employeeId employeeName department period grossPay deductions netPay status payDate paymentMethod } }", ge = "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) }", S = "id country currency period payDate status employeeCount totalGrossPay totalNetPay calculatedAt approvedAt approvedBy notes", ve = `query CrewPayrollRuns { crewPayrollRuns { ${S} } }`, ye = `mutation CreateCrewPayrollRun($input: CreateCrewPayrollRunInput!) { createCrewPayrollRun(input: $input) { ${S} } }`, be = `mutation CalculateCrewPayrollRun($id: ID!) { calculateCrewPayrollRun(id: $id) { ${S} } }`, xe = `mutation ApproveCrewPayrollRun($id: ID!) { approveCrewPayrollRun(id: $id) { ${S} } }`, Se = "mutation RemoveCrewPayrollRun($id: ID!) { removeCrewPayrollRun(id: $id) }", Ce = "query CrewPayslips($filter: CrewPayslipFilterInput) { crewPayslips(filter: $filter) { id payrollRunId employeeId employeeName country currency period annualGrossSalary grossPay taxableIncome incomeTax employeeSocialContrib employerSocialContrib otherDeductions netPay incomeTaxBrackets { label rate bandFrom bandTo taxableInBand taxOnBand } employeeContributions { label rate base amount } employerContributions { label rate base amount } otherDeductionLines { label rate base amount } assumptions } }", we = "mutation CreateCrewTimeEntry($input: CreateCrewTimeEntryInput!) { createCrewTimeEntry(input: $input) { id employeeId employeeName date clockIn clockOut totalHours overtime project status billable } }", Te = "mutation UpdateCrewTimeEntry($id: ID!, $input: UpdateCrewTimeEntryInput!) { updateCrewTimeEntry(id: $id, input: $input) { id employeeId employeeName date clockIn clockOut totalHours overtime project status billable } }", Ee = "mutation RemoveCrewTimeEntry($id: ID!) { removeCrewTimeEntry(id: $id) }", De = "query CrewJobPostingMatches($jobPostingId: ID!, $filter: CrewCandidateMatchFilterInput, $limit: Int) { crewJobPostingMatches(jobPostingId: $jobPostingId, filter: $filter, limit: $limit) { candidateId jobPostingId score skillScore experienceScore matchedSkills missingSkills rationale candidate { id firstName lastName email phone position status appliedDate resumeUrl rating source experience skills currentCompany notes hiredDate } } }", C = "query CrewSkillsGap { crewSkillsGap { skill employeesWithSkill openJobsRequiringSkill shortage } }", w = "query EmployeeDocuments($employeeId: ID!) { employeeDocuments(employeeId: $employeeId) { id employeeId fileId title category uploadedBy uploadedAt } }", T = "mutation AttachEmployeeDocument($input: AttachCrewEmployeeDocumentInput!) { attachEmployeeDocument(input: $input) { id employeeId fileId title category uploadedBy uploadedAt } }", E = "mutation DetachEmployeeDocument($id: ID!) { detachEmployeeDocument(id: $id) }", Oe = "mutation EnsureFolderByPath($path: String!) { ensureFolderByPath(path: $path) { id } }", ke = "mutation InitiateUpload($input: InitiateUploadInput!) { initiateUpload(input: $input) { session { id } uploadUrl } }", Ae = "mutation CompleteUpload($input: CompleteUploadInput!) { completeUpload(input: $input) { file { id } } }", je = "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 } } }", Me = "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 } } }", Ne = "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 } } }", Pe = "mutation RemoveCrewOnboarding($id: ID!) { removeCrewOnboarding(id: $id) }", Fe = "mutation CreateCrewOnboardingTask($input: CreateCrewOnboardingTaskInput!) { createCrewOnboardingTask(input: $input) { id onboardingId stage title assigneeActorId assigneeName dueDate completedAt sortOrder } }", Ie = "mutation UpdateCrewOnboardingTask($id: ID!, $input: UpdateCrewOnboardingTaskInput!) { updateCrewOnboardingTask(id: $id, input: $input) { id onboardingId stage title assigneeActorId assigneeName dueDate completedAt sortOrder } }", Le = "mutation RemoveCrewOnboardingTask($id: ID!) { removeCrewOnboardingTask(id: $id) }", Re = "mutation ToggleCrewOnboardingTask($id: ID!, $completed: Boolean!) { toggleCrewOnboardingTask(id: $id, completed: $completed) { id onboardingId stage title assigneeActorId assigneeName dueDate completedAt sortOrder } }", D = "id title description contentUrl durationMinutes isActive requiredForRoles createdAt updatedAt", O = "id courseId courseTitle employeeId employeeName status startedAt completedAt createdAt updatedAt", ze = `query CrewLearning($coursePage: PaginationInput, $enrollmentPage: PaginationInput) { crewTrainingCourses(pagination: $coursePage) { ${D} } crewEnrollments(pagination: $enrollmentPage) { ${O} } crewTrainingCompletionDashboard { courseId courseTitle totalEnrolled notStartedCount inProgressCount completedCount completionRate } }`, Be = `query CrewTrainingCourses($pagination: PaginationInput) { crewTrainingCourses(pagination: $pagination) { ${D} } }`, Ve = `query CrewEnrollments($pagination: PaginationInput) { crewEnrollments(pagination: $pagination) { ${O} } }`, He = "query CrewTrainingCompletionDashboard { crewTrainingCompletionDashboard { courseId courseTitle totalEnrolled notStartedCount inProgressCount completedCount completionRate } }", Ue = `mutation CreateCrewTrainingCourse($input: CreateCrewTrainingCourseInput!) { createCrewTrainingCourse(input: $input) { ${D} } }`, We = `mutation UpdateCrewTrainingCourse($id: ID!, $input: UpdateCrewTrainingCourseInput!) { updateCrewTrainingCourse(id: $id, input: $input) { ${D} } }`, Ge = "mutation RemoveCrewTrainingCourse($id: ID!) { removeCrewTrainingCourse(id: $id) }", Ke = `mutation CreateCrewEnrollment($input: CreateCrewEnrollmentInput!) { createCrewEnrollment(input: $input) { ${O} } }`, qe = `mutation UpdateCrewEnrollmentStatus($id: ID!, $status: String!) { updateCrewEnrollmentStatus(id: $id, status: $status) { ${O} } }`, Je = "mutation RemoveCrewEnrollment($id: ID!) { removeCrewEnrollment(id: $id) }", k = "id title description category providerActorId providerName rate rateUnit currency status createdAt updatedAt", A = "id listingId listingTitle providerActorId providerName clientActorId clientName status rate rateUnit currency notes scheduledStart scheduledEnd cancelledReason createdAt updatedAt", j = "id bookingId amount currency releaseCondition status heldAt releasedAt releasedBy notes createdAt updatedAt", Ye = `query CrewServiceListings($pagination: PaginationInput) { crewServiceListings(pagination: $pagination) { ${k} } }`, Xe = `query CrewBookings($pagination: PaginationInput) { crewBookings(pagination: $pagination) { ${A} } }`, Ze = `query CrewEscrowRecords($pagination: PaginationInput) { crewEscrowRecords(pagination: $pagination) { ${j} } }`, Qe = `mutation CreateCrewServiceListing($input: CreateCrewServiceListingInput!) { createCrewServiceListing(input: $input) { ${k} } }`, $e = `mutation UpdateMyServiceListing($id: ID!, $input: UpdateCrewServiceListingInput!) { updateMyServiceListing(id: $id, input: $input) { ${k} } }`, et = "mutation RemoveMyServiceListing($id: ID!) { removeMyServiceListing(id: $id) }", M = `mutation CreateCrewBooking($input: CreateCrewBookingInput!) { createCrewBooking(input: $input) { ${A} } }`, tt = `mutation UpdateMyBookingStatus($id: ID!, $status: String!) { updateMyBookingStatus(id: $id, status: $status) { ${A} } }`, nt = `mutation ReleaseCrewEscrowRecord($id: ID!) { releaseCrewEscrowRecord(id: $id) { ${j} } }`, rt = `mutation CancelCrewEscrowRecord($id: ID!) { cancelCrewEscrowRecord(id: $id) { ${j} } }`, N = 100, it = 10, P = (e) => e.toUpperCase().replaceAll("-", "_"), F = {
5
5
  employee: ["status", "type"],
6
6
  department: ["status"],
7
7
  jobPosting: [
@@ -11,8 +11,10 @@ var n = "\n query CrewfoundryBootstrap {\n crewfoundryBootstrap {\n emp
11
11
  ],
12
12
  candidate: ["status"],
13
13
  interview: ["type", "status"],
14
- course: ["level", "status"],
15
- marketplaceService: ["priceType", "status"],
14
+ enrollment: ["status"],
15
+ serviceListing: ["status"],
16
+ booking: ["status"],
17
+ escrow: ["status"],
16
18
  announcement: ["category", "priority"],
17
19
  team: ["status"],
18
20
  project: ["status", "priority"],
@@ -20,13 +22,11 @@ var n = "\n query CrewfoundryBootstrap {\n crewfoundryBootstrap {\n emp
20
22
  leaveRequest: ["type", "status"],
21
23
  timeEntry: ["status"],
22
24
  notification: ["type"],
23
- paymentMethod: ["type", "status"],
24
- invoice: ["status"],
25
25
  vendor: ["status"],
26
26
  client: ["status"],
27
27
  onboarding: ["status", "currentStage"],
28
28
  onboardingTask: ["stage"]
29
- }, G = (e, t) => {
29
+ }, I = (e, t) => {
30
30
  if (!e || typeof e != "object") return e;
31
31
  let n = { ...e };
32
32
  for (let e of t) {
@@ -34,25 +34,25 @@ var n = "\n query CrewfoundryBootstrap {\n crewfoundryBootstrap {\n emp
34
34
  typeof t == "string" && (n[e] = t.toLowerCase());
35
35
  }
36
36
  return n;
37
- }, K = (e) => ({
38
- ...G(e, W.onboarding),
39
- tasks: (e.tasks ?? []).map((e) => G(e, W.onboardingTask))
40
- }), q = (e) => e ? e.slice(0, 10) : "TBD", Te = (e) => !e || typeof e != "object" || Array.isArray(e) ? null : e, J = (e) => typeof e == "number" ? e : null, Y = (e) => typeof e == "string" ? e : null, Ee = (e) => {
37
+ }, L = (e) => ({
38
+ ...I(e, F.onboarding),
39
+ tasks: (e.tasks ?? []).map((e) => I(e, F.onboardingTask))
40
+ }), R = (e) => e ? e.slice(0, 10) : "TBD", at = (e) => !e || typeof e != "object" || Array.isArray(e) ? null : e, z = (e) => typeof e == "number" ? e : null, B = (e) => typeof e == "string" ? e : null, ot = (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
- }, De = (e) => {
43
+ }, st = (e) => {
44
44
  let t = e.toLowerCase();
45
45
  return t === "active" ? "active" : t === "inactive" || t === "archived" || t === "deleted" ? "disbanded" : "forming";
46
- }, Oe = (e, t) => e.map((e, n) => {
47
- let r = Te(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)];
46
+ }, ct = (e, t) => e.map((e, n) => {
47
+ let r = at(e.config), i = z(r?.budget) ?? 25e3 + n * 2500, a = z(r?.spent) ?? Math.round(i * (e.status === "COMPLETED" ? 1 : .62)), o = z(r?.progress) ?? (e.status === "COMPLETED" ? 100 : 58), s = z(r?.tasks) ?? 20 + n % 9, c = z(r?.completedTasks) ?? Math.round(o / 100 * s), l = t[n % Math.max(t.length, 1)];
48
48
  return {
49
49
  id: e.id,
50
50
  name: e.name,
51
- description: Y(r?.description) || `${e.key} delivery plan`,
52
- status: Ee(e.status),
53
- priority: Y(r?.priority)?.toLowerCase() || "medium",
54
- startDate: q(e.createdAt),
55
- endDate: q(e.updatedAt),
51
+ description: B(r?.description) || `${e.key} delivery plan`,
52
+ status: ot(e.status),
53
+ priority: B(r?.priority)?.toLowerCase() || "medium",
54
+ startDate: R(e.createdAt),
55
+ endDate: R(e.updatedAt),
56
56
  progress: o,
57
57
  budget: i,
58
58
  spent: a,
@@ -63,7 +63,7 @@ var n = "\n query CrewfoundryBootstrap {\n crewfoundryBootstrap {\n emp
63
63
  tasks: s,
64
64
  completedTasks: c
65
65
  };
66
- }), ke = (e) => e.map(({ node: e }) => ({
66
+ }), lt = (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: De(e.status),
75
+ status: st(e.status),
76
76
  projectCount: 0,
77
- createdAt: q(e.createdAt)
78
- })), Ae = (e) => e.filter(({ node: e }) => e.unreadCount > 0).map(({ node: e }) => ({
77
+ createdAt: R(e.createdAt)
78
+ })), V = "/conversations", ut = (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`,
@@ -83,26 +83,12 @@ var n = "\n query CrewfoundryBootstrap {\n crewfoundryBootstrap {\n emp
83
83
  category: "communications",
84
84
  read: !1,
85
85
  createdAt: e.updatedAt,
86
- actionUrl: "/crewfoundry/communications/messages-page"
87
- })), X = (e) => {
88
- let t = e.getBillingAccountsByOrg.find((e) => e?.isDefault && e?.id) || e.getBillingAccountsByOrg.find((e) => e?.id);
89
- return t?.id ? (t.paymentMethods || []).filter((e) => !!e).map((e) => {
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";
91
- return {
92
- id: e.id,
93
- type: i ? "bank" : "card",
94
- name: `${t.name || "Billing"} ${i ? "Bank Account" : "Card"}`,
95
- bank: e.brand || t.name || "Billing Account",
96
- last4: e.last4 || "0000",
97
- status: e.isDefault ? "primary" : "active",
98
- expiry: n && r ? `${n}/${r}` : void 0
99
- };
100
- }) : [];
101
- }, je = (e, t) => {
86
+ actionUrl: V
87
+ })), dt = (e, t) => {
102
88
  if (e.errors?.length) throw Error(e.errors[0]?.message || t);
103
89
  if (!e.data) throw Error(t);
104
90
  return e.data;
105
- }, Me = new Set([
91
+ }, ft = new Set([
106
92
  "id",
107
93
  "createdAt",
108
94
  "createdOn",
@@ -124,30 +110,44 @@ var n = "\n query CrewfoundryBootstrap {\n crewfoundryBootstrap {\n emp
124
110
  "viewCount",
125
111
  "revenue",
126
112
  "projects"
127
- ]), Ne = (e) => {
113
+ ]), pt = (e) => {
128
114
  if (!e) return e;
129
115
  let t = e.input;
130
116
  if (!t || typeof t != "object" || Array.isArray(t)) return e;
131
117
  let n = {};
132
- for (let [e, r] of Object.entries(t)) Me.has(e) || (n[e] = r);
118
+ for (let [e, r] of Object.entries(t)) ft.has(e) || (n[e] = r);
133
119
  return {
134
120
  ...e,
135
121
  input: n
136
122
  };
137
- }, Z = async (e, n, r, i, a = "workspace") => je(await t({
123
+ }, H = async (e, n, r, i, a = "workspace") => dt(await t({
138
124
  gateway: a,
139
125
  query: e,
140
- variables: Ne(n),
126
+ variables: pt(n),
141
127
  authToken: r.authToken,
142
128
  baseUrl: a === "workspace" ? r.apiGatewayUrl : void 0,
143
129
  extraHeaders: { ...a === "workspace" && r.workspaceId ? { "x-workspace-id": r.workspaceId } : {} }
144
- }), i), Pe = () => !1, Q = async (e, t, n, r, i = "workspace") => {
130
+ }), i), mt = () => !1, U = async (e, t, n, r, i = "workspace") => {
145
131
  try {
146
- return await Z(e, t, n, r, i);
132
+ return await H(e, t, n, r, i);
147
133
  } catch (e) {
148
- return Pe() && console.warn(`[crewfoundry] overlap query skipped: ${r}`, e), null;
134
+ return mt() && console.warn(`[crewfoundry] overlap query skipped: ${r}`, e), null;
135
+ }
136
+ }, W = async (e, t, n, r, i) => {
137
+ let a = i ? [...i] : [];
138
+ if (i && i.length < N) return a;
139
+ for (let o = +!!i; o < it; o += 1) {
140
+ let i = (await H(e, { pagination: {
141
+ limit: N,
142
+ offset: o * N
143
+ } }, n, r))[t] ?? [];
144
+ if (a.push(...i), i.length < N) break;
149
145
  }
150
- }, $ = e((e) => ({
146
+ return a;
147
+ }, G = {
148
+ learning: 0,
149
+ marketplace: 0
150
+ }, K = 3, q = (e) => I(e, F.enrollment), J = (e) => I(e, F.serviceListing), Y = (e) => I(e, F.booking), X = (e) => I(e, F.escrow), Z = (e, t) => e.map((e) => e.id === t.id ? t : e), Q = async (e) => (await U(He, void 0, e, "Unable to load training completion"))?.crewTrainingCompletionDashboard ?? null, $ = e((e) => ({
151
151
  metrics: [
152
152
  {
153
153
  label: "Total Employees",
@@ -210,9 +210,6 @@ var n = "\n query CrewfoundryBootstrap {\n crewfoundryBootstrap {\n emp
210
210
  jobPostings: [],
211
211
  candidates: [],
212
212
  interviews: [],
213
- courses: [],
214
- learningPaths: [],
215
- marketplaceServices: [],
216
213
  announcements: [],
217
214
  teams: [],
218
215
  projects: [],
@@ -220,8 +217,6 @@ var n = "\n query CrewfoundryBootstrap {\n crewfoundryBootstrap {\n emp
220
217
  leaveRequests: [],
221
218
  timeEntries: [],
222
219
  notifications: [],
223
- paymentMethods: [],
224
- invoices: [],
225
220
  vendors: [],
226
221
  clients: [],
227
222
  employeeDocuments: [],
@@ -236,6 +231,16 @@ var n = "\n query CrewfoundryBootstrap {\n crewfoundryBootstrap {\n emp
236
231
  payslipsLoading: !1,
237
232
  skillsGap: [],
238
233
  skillsGapLoaded: !1,
234
+ trainingCourses: [],
235
+ enrollments: [],
236
+ trainingCompletion: [],
237
+ learningLoaded: !1,
238
+ serviceListings: [],
239
+ bookings: [],
240
+ marketplaceLoaded: !1,
241
+ escrowRecords: [],
242
+ escrowLoaded: !1,
243
+ escrowError: null,
239
244
  initializeData: async (t) => {
240
245
  if (t.workspaceId) {
241
246
  e({
@@ -244,58 +249,49 @@ var n = "\n query CrewfoundryBootstrap {\n crewfoundryBootstrap {\n emp
244
249
  initParams: t
245
250
  });
246
251
  try {
247
- let [o, s, c] = await Promise.all([
248
- Q(i, {
249
- workspaceId: t.workspaceId,
250
- projectPagination: {
251
- limit: 50,
252
- offset: 0
253
- },
254
- groupFirst: 30,
255
- conversationFirst: 30
256
- }, t, "Unable to load workspace bootstrap with overlap data"),
257
- Q(a, void 0, t, "Unable to load overlap billing data", "global"),
258
- Q(r, void 0, t, "Unable to load payroll records")
259
- ]), l = o ? o.crewfoundryBootstrap : (await Z(n, void 0, t, "Unable to load CrewFoundry data")).crewfoundryBootstrap, u = o ? ke(o.groups.edges) : [], d = o ? Oe(o.projects.items, u) : [], f = o ? Ae(o.conversations.edges) : [], p = u.length > 0 ? u : l.teams, m = d.length > 0 ? d : l.projects, h = f, g = s ? X(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));
252
+ let [a, o] = await Promise.all([U(i, {
253
+ workspaceId: t.workspaceId,
254
+ projectPagination: {
255
+ limit: 50,
256
+ offset: 0
257
+ },
258
+ groupFirst: 30,
259
+ conversationFirst: 30
260
+ }, t, "Unable to load workspace bootstrap with overlap data"), U(r, void 0, t, "Unable to load payroll records")]), s = a ? a.crewfoundryBootstrap : (await H(n, void 0, t, "Unable to load CrewFoundry data")).crewfoundryBootstrap, c = a ? lt(a.groups.edges) : [], l = a ? ct(a.projects.items, c) : [], u = a ? ut(a.conversations.edges) : [], d = c.length > 0 ? c : s.teams, f = l.length > 0 ? l : s.projects, p = u, m = s.employees.map((e) => I(e, F.employee)), h = s.departments.map((e) => I(e, F.department)), g = s.jobPostings.map((e) => I(e, F.jobPosting)), _ = s.candidates.map((e) => I(e, F.candidate)), v = s.interviews.map((e) => I(e, F.interview)), y = s.announcements.map((e) => I(e, F.announcement)), b = d.map((e) => I(e, F.team)), x = f.map((e) => I(e, F.project));
260
261
  e({
261
- employees: _,
262
- departments: v,
263
- jobPostings: y,
264
- candidates: b,
265
- interviews: x,
266
- courses: S,
267
- learningPaths: [],
268
- marketplaceServices: C,
269
- announcements: w,
270
- teams: T,
271
- projects: E,
272
- payrollRecords: (c?.crewPayrollRecords ?? []).map((e) => G(e, W.payrollRecord)),
273
- leaveRequests: l.leaveRequests.map((e) => G(e, W.leaveRequest)),
274
- timeEntries: l.timeEntries.map((e) => G(e, W.timeEntry)),
275
- notifications: h.map((e) => G(e, W.notification)),
276
- paymentMethods: g.map((e) => G(e, W.paymentMethod)),
277
- invoices: [],
278
- vendors: l.vendors.map((e) => G(e, W.vendor)),
279
- clients: l.clients.map((e) => G(e, W.client)),
262
+ employees: m,
263
+ departments: h,
264
+ jobPostings: g,
265
+ candidates: _,
266
+ interviews: v,
267
+ announcements: y,
268
+ teams: b,
269
+ projects: x,
270
+ payrollRecords: (o?.crewPayrollRecords ?? []).map((e) => I(e, F.payrollRecord)),
271
+ leaveRequests: s.leaveRequests.map((e) => I(e, F.leaveRequest)),
272
+ timeEntries: s.timeEntries.map((e) => I(e, F.timeEntry)),
273
+ notifications: p.map((e) => I(e, F.notification)),
274
+ vendors: s.vendors.map((e) => I(e, F.vendor)),
275
+ clients: s.clients.map((e) => I(e, F.client)),
280
276
  metrics: [
281
277
  {
282
278
  label: "Total Employees",
283
- value: String(_.length),
279
+ value: String(m.length),
284
280
  trend: "Live"
285
281
  },
286
282
  {
287
283
  label: "Open Positions",
288
- value: String(y.filter((e) => e.status === "active").length),
284
+ value: String(g.filter((e) => e.status === "active").length),
289
285
  trend: "Live"
290
286
  },
291
287
  {
292
288
  label: "Hiring Pipeline",
293
- value: String(b.length),
289
+ value: String(_.length),
294
290
  trend: "Live"
295
291
  },
296
292
  {
297
293
  label: "Cross-Team Projects",
298
- value: String(E.filter((e) => e.status === "active").length),
294
+ value: String(x.filter((e) => e.status === "active").length),
299
295
  trend: "Live"
300
296
  }
301
297
  ],
@@ -313,84 +309,84 @@ var n = "\n query CrewfoundryBootstrap {\n crewfoundryBootstrap {\n emp
313
309
  setSelectedView: (t) => e({ selectedView: t }),
314
310
  setWorkItems: (t) => e({ workItems: t }),
315
311
  addEmployee: async (t) => {
316
- let n = $.getState().initParams, r = await Z(o, { input: {
312
+ let n = $.getState().initParams, r = await H(a, { input: {
317
313
  ...t,
318
- status: H(t.status),
319
- type: H(t.type)
314
+ status: P(t.status),
315
+ type: P(t.type)
320
316
  } }, n, "Unable to create employee");
321
- e((e) => ({ employees: [G(r.createCrewEmployee, W.employee), ...e.employees] }));
317
+ e((e) => ({ employees: [I(r.createCrewEmployee, F.employee), ...e.employees] }));
322
318
  },
323
319
  updateEmployee: async (t, n) => {
324
- let r = $.getState().initParams, i = await Z(s, {
320
+ let r = $.getState().initParams, i = await H(o, {
325
321
  id: t,
326
322
  input: {
327
323
  ...n,
328
- ...n.status ? { status: H(n.status) } : {},
329
- ...n.type ? { type: H(n.type) } : {}
324
+ ...n.status ? { status: P(n.status) } : {},
325
+ ...n.type ? { type: P(n.type) } : {}
330
326
  }
331
327
  }, r, "Unable to update employee");
332
- e((e) => ({ employees: e.employees.map((e) => e.id === t ? G(i.updateCrewEmployee, W.employee) : e) }));
328
+ e((e) => ({ employees: e.employees.map((e) => e.id === t ? I(i.updateCrewEmployee, F.employee) : e) }));
333
329
  },
334
330
  removeEmployee: async (t) => {
335
331
  let n = $.getState().initParams;
336
- await Z(c, { id: t }, n, "Unable to remove employee"), e((e) => ({ employees: e.employees.filter((e) => e.id !== t) }));
332
+ await H(s, { id: t }, n, "Unable to remove employee"), e((e) => ({ employees: e.employees.filter((e) => e.id !== t) }));
337
333
  },
338
334
  addJobPosting: async (t) => {
339
- let n = $.getState().initParams, r = await Z(l, { input: {
335
+ let n = $.getState().initParams, r = await H(c, { input: {
340
336
  ...t,
341
- status: H(t.status)
337
+ status: P(t.status)
342
338
  } }, n, "Unable to create job posting");
343
- e((e) => ({ jobPostings: [G(r.createCrewJobPosting, W.jobPosting), ...e.jobPostings] }));
339
+ e((e) => ({ jobPostings: [I(r.createCrewJobPosting, F.jobPosting), ...e.jobPostings] }));
344
340
  },
345
341
  updateJobPosting: async (t, n) => {
346
- let r = $.getState().initParams, i = await Z(u, {
342
+ let r = $.getState().initParams, i = await H(l, {
347
343
  id: t,
348
344
  input: {
349
345
  ...n,
350
- ...n.status ? { status: H(n.status) } : {}
346
+ ...n.status ? { status: P(n.status) } : {}
351
347
  }
352
348
  }, r, "Unable to update job posting");
353
- e((e) => ({ jobPostings: e.jobPostings.map((e) => e.id === t ? G(i.updateCrewJobPosting, W.jobPosting) : e) }));
349
+ e((e) => ({ jobPostings: e.jobPostings.map((e) => e.id === t ? I(i.updateCrewJobPosting, F.jobPosting) : e) }));
354
350
  },
355
351
  addCandidate: async (t) => {
356
- let n = $.getState().initParams, r = await Z(d, { input: {
352
+ let n = $.getState().initParams, r = await H(u, { input: {
357
353
  ...t,
358
- status: H(t.status)
354
+ status: P(t.status)
359
355
  } }, n, "Unable to create candidate");
360
- e((e) => ({ candidates: [G(r.createCrewCandidate, W.candidate), ...e.candidates] }));
356
+ e((e) => ({ candidates: [I(r.createCrewCandidate, F.candidate), ...e.candidates] }));
361
357
  },
362
358
  updateCandidate: async (t, n) => {
363
- let r = $.getState().initParams, i = await Z(f, {
359
+ let r = $.getState().initParams, i = await H(d, {
364
360
  id: t,
365
361
  input: {
366
362
  ...n,
367
- ...n.status ? { status: H(n.status) } : {}
363
+ ...n.status ? { status: P(n.status) } : {}
368
364
  }
369
365
  }, r, "Unable to update candidate");
370
- e((e) => ({ candidates: e.candidates.map((e) => e.id === t ? G(i.updateCrewCandidate, W.candidate) : e) }));
366
+ e((e) => ({ candidates: e.candidates.map((e) => e.id === t ? I(i.updateCrewCandidate, F.candidate) : e) }));
371
367
  },
372
368
  addAnnouncement: async (t) => {
373
- let n = $.getState().initParams, r = await Z(p, { input: t }, n, "Unable to create announcement");
374
- e((e) => ({ announcements: [G(r.createCrewAnnouncement, W.announcement), ...e.announcements] }));
369
+ let n = $.getState().initParams, r = await H(f, { input: t }, n, "Unable to create announcement");
370
+ e((e) => ({ announcements: [I(r.createCrewAnnouncement, F.announcement), ...e.announcements] }));
375
371
  },
376
372
  addLeaveRequest: async (t) => {
377
- let n = $.getState().initParams, r = await Z(m, { input: {
373
+ let n = $.getState().initParams, r = await H(p, { input: {
378
374
  ...t,
379
- type: H(t.type),
380
- status: H(t.status)
375
+ type: P(t.type),
376
+ status: P(t.status)
381
377
  } }, n, "Unable to create leave request");
382
- e((e) => ({ leaveRequests: [G(r.createCrewLeaveRequest, W.leaveRequest), ...e.leaveRequests] }));
378
+ e((e) => ({ leaveRequests: [I(r.createCrewLeaveRequest, F.leaveRequest), ...e.leaveRequests] }));
383
379
  },
384
380
  updateLeaveRequest: async (t, n) => {
385
- let r = $.getState().initParams, i = await Z(h, {
381
+ let r = $.getState().initParams, i = await H(m, {
386
382
  id: t,
387
383
  input: {
388
384
  ...n,
389
- ...n.type ? { type: H(n.type) } : {},
390
- ...n.status ? { status: H(n.status) } : {}
385
+ ...n.type ? { type: P(n.type) } : {},
386
+ ...n.status ? { status: P(n.status) } : {}
391
387
  }
392
388
  }, r, "Unable to update leave request");
393
- e((e) => ({ leaveRequests: e.leaveRequests.map((e) => e.id === t ? G(i.updateCrewLeaveRequest, W.leaveRequest) : e) }));
389
+ e((e) => ({ leaveRequests: e.leaveRequests.map((e) => e.id === t ? I(i.updateCrewLeaveRequest, F.leaveRequest) : e) }));
394
390
  },
395
391
  markNotificationRead: async (t) => {
396
392
  e((e) => ({ notifications: e.notifications.map((e) => e.id === t ? {
@@ -406,223 +402,184 @@ var n = "\n query CrewfoundryBootstrap {\n crewfoundryBootstrap {\n emp
406
402
  },
407
403
  removeJobPosting: async (t) => {
408
404
  let n = $.getState().initParams;
409
- await Z(g, { id: t }, n, "Unable to remove job posting"), e((e) => ({ jobPostings: e.jobPostings.filter((e) => e.id !== t) }));
405
+ await H(h, { id: t }, n, "Unable to remove job posting"), e((e) => ({ jobPostings: e.jobPostings.filter((e) => e.id !== t) }));
410
406
  },
411
407
  removeCandidate: async (t) => {
412
408
  let n = $.getState().initParams;
413
- await Z(_, { id: t }, n, "Unable to remove candidate"), e((e) => ({ candidates: e.candidates.filter((e) => e.id !== t) }));
409
+ await H(g, { id: t }, n, "Unable to remove candidate"), e((e) => ({ candidates: e.candidates.filter((e) => e.id !== t) }));
414
410
  },
415
411
  updateAnnouncement: async (t, n) => {
416
- let r = $.getState().initParams, i = await Z(v, {
412
+ let r = $.getState().initParams, i = await H(_, {
417
413
  id: t,
418
414
  input: n
419
415
  }, r, "Unable to update announcement");
420
- e((e) => ({ announcements: e.announcements.map((e) => e.id === t ? G(i.updateCrewAnnouncement, W.announcement) : e) }));
416
+ e((e) => ({ announcements: e.announcements.map((e) => e.id === t ? I(i.updateCrewAnnouncement, F.announcement) : e) }));
421
417
  },
422
418
  removeAnnouncement: async (t) => {
423
419
  let n = $.getState().initParams;
424
- await Z(y, { id: t }, n, "Unable to remove announcement"), e((e) => ({ announcements: e.announcements.filter((e) => e.id !== t) }));
420
+ await H(v, { id: t }, n, "Unable to remove announcement"), e((e) => ({ announcements: e.announcements.filter((e) => e.id !== t) }));
425
421
  },
426
422
  addInterview: async (t) => {
427
- let n = $.getState().initParams, r = await Z(b, { input: {
423
+ let n = $.getState().initParams, r = await H(y, { input: {
428
424
  ...t,
429
- type: H(t.type),
430
- status: H(t.status)
425
+ type: P(t.type),
426
+ status: P(t.status)
431
427
  } }, n, "Unable to schedule interview");
432
- e((e) => ({ interviews: [G(r.createCrewInterview, W.interview), ...e.interviews] }));
428
+ e((e) => ({ interviews: [I(r.createCrewInterview, F.interview), ...e.interviews] }));
433
429
  },
434
430
  updateInterview: async (t, n) => {
435
- let r = $.getState().initParams, i = await Z(x, {
431
+ let r = $.getState().initParams, i = await H(b, {
436
432
  id: t,
437
433
  input: {
438
434
  ...n,
439
- ...n.type ? { type: H(n.type) } : {},
440
- ...n.status ? { status: H(n.status) } : {}
435
+ ...n.type ? { type: P(n.type) } : {},
436
+ ...n.status ? { status: P(n.status) } : {}
441
437
  }
442
438
  }, r, "Unable to update interview");
443
- e((e) => ({ interviews: e.interviews.map((e) => e.id === t ? G(i.updateCrewInterview, W.interview) : e) }));
439
+ e((e) => ({ interviews: e.interviews.map((e) => e.id === t ? I(i.updateCrewInterview, F.interview) : e) }));
444
440
  },
445
441
  removeInterview: async (t) => {
446
442
  let n = $.getState().initParams;
447
- await Z(S, { id: t }, n, "Unable to remove interview"), e((e) => ({ interviews: e.interviews.filter((e) => e.id !== t) }));
448
- },
449
- addInvoice: async () => {
450
- throw U("Invoices");
451
- },
452
- updateInvoice: async () => {
453
- throw U("Invoices");
454
- },
455
- removeInvoice: async () => {
456
- throw U("Invoices");
443
+ await H(x, { id: t }, n, "Unable to remove interview"), e((e) => ({ interviews: e.interviews.filter((e) => e.id !== t) }));
457
444
  },
458
445
  addVendor: async (t) => {
459
- let n = $.getState().initParams, r = await Z(C, { input: {
446
+ let n = $.getState().initParams, r = await H(ee, { input: {
460
447
  ...t,
461
- status: H(t.status)
448
+ status: P(t.status)
462
449
  } }, n, "Unable to create vendor");
463
- e((e) => ({ vendors: [G(r.createCrewVendor, W.vendor), ...e.vendors] }));
450
+ e((e) => ({ vendors: [I(r.createCrewVendor, F.vendor), ...e.vendors] }));
464
451
  },
465
452
  updateVendor: async (t, n) => {
466
- let r = $.getState().initParams, i = await Z(w, {
453
+ let r = $.getState().initParams, i = await H(te, {
467
454
  id: t,
468
455
  input: {
469
456
  ...n,
470
- ...n.status ? { status: H(n.status) } : {}
457
+ ...n.status ? { status: P(n.status) } : {}
471
458
  }
472
459
  }, r, "Unable to update vendor");
473
- e((e) => ({ vendors: e.vendors.map((e) => e.id === t ? G(i.updateCrewVendor, W.vendor) : e) }));
460
+ e((e) => ({ vendors: e.vendors.map((e) => e.id === t ? I(i.updateCrewVendor, F.vendor) : e) }));
474
461
  },
475
462
  removeVendor: async (t) => {
476
463
  let n = $.getState().initParams;
477
- await Z(T, { id: t }, n, "Unable to remove vendor"), e((e) => ({ vendors: e.vendors.filter((e) => e.id !== t) }));
464
+ await H(ne, { id: t }, n, "Unable to remove vendor"), e((e) => ({ vendors: e.vendors.filter((e) => e.id !== t) }));
478
465
  },
479
466
  addClient: async (t) => {
480
- let n = $.getState().initParams, r = await Z(E, { input: {
467
+ let n = $.getState().initParams, r = await H(re, { input: {
481
468
  ...t,
482
- status: H(t.status)
469
+ status: P(t.status)
483
470
  } }, n, "Unable to create client");
484
- e((e) => ({ clients: [G(r.createCrewClient, W.client), ...e.clients] }));
471
+ e((e) => ({ clients: [I(r.createCrewClient, F.client), ...e.clients] }));
485
472
  },
486
473
  updateClient: async (t, n) => {
487
- let r = $.getState().initParams, i = await Z(D, {
474
+ let r = $.getState().initParams, i = await H(ie, {
488
475
  id: t,
489
476
  input: {
490
477
  ...n,
491
- ...n.status ? { status: H(n.status) } : {}
478
+ ...n.status ? { status: P(n.status) } : {}
492
479
  }
493
480
  }, r, "Unable to update client");
494
- e((e) => ({ clients: e.clients.map((e) => e.id === t ? G(i.updateCrewClient, W.client) : e) }));
481
+ e((e) => ({ clients: e.clients.map((e) => e.id === t ? I(i.updateCrewClient, F.client) : e) }));
495
482
  },
496
483
  removeClient: async (t) => {
497
484
  let n = $.getState().initParams;
498
- await Z(ee, { id: t }, n, "Unable to remove client"), e((e) => ({ clients: e.clients.filter((e) => e.id !== t) }));
485
+ await H(ae, { id: t }, n, "Unable to remove client"), e((e) => ({ clients: e.clients.filter((e) => e.id !== t) }));
499
486
  },
500
487
  addTeam: async (t) => {
501
- let n = $.getState().initParams, r = await Z(te, { input: t }, n, "Unable to create team");
502
- e((e) => ({ teams: [G(r.createCrewTeam, W.team), ...e.teams] }));
488
+ let n = $.getState().initParams, r = await H(oe, { input: t }, n, "Unable to create team");
489
+ e((e) => ({ teams: [I(r.createCrewTeam, F.team), ...e.teams] }));
503
490
  },
504
491
  updateTeam: async (t, n) => {
505
- let r = $.getState().initParams, i = await Z(ne, {
492
+ let r = $.getState().initParams, i = await H(se, {
506
493
  id: t,
507
494
  input: n
508
495
  }, r, "Unable to update team");
509
- e((e) => ({ teams: e.teams.map((e) => e.id === t ? G(i.updateCrewTeam, W.team) : e) }));
496
+ e((e) => ({ teams: e.teams.map((e) => e.id === t ? I(i.updateCrewTeam, F.team) : e) }));
510
497
  },
511
498
  removeTeam: async (t) => {
512
499
  let n = $.getState().initParams;
513
- await Z(re, { id: t }, n, "Unable to remove team"), e((e) => ({ teams: e.teams.filter((e) => e.id !== t) }));
500
+ await H(ce, { id: t }, n, "Unable to remove team"), e((e) => ({ teams: e.teams.filter((e) => e.id !== t) }));
514
501
  },
515
502
  addProject: async (t) => {
516
- let n = $.getState().initParams, r = await Z(ie, { input: {
503
+ let n = $.getState().initParams, r = await H(le, { input: {
517
504
  ...t,
518
- status: H(t.status),
519
- priority: H(t.priority)
505
+ status: P(t.status),
506
+ priority: P(t.priority)
520
507
  } }, n, "Unable to create project");
521
- e((e) => ({ projects: [G(r.createCrewProject, W.project), ...e.projects] }));
508
+ e((e) => ({ projects: [I(r.createCrewProject, F.project), ...e.projects] }));
522
509
  },
523
510
  updateProject: async (t, n) => {
524
- let r = $.getState().initParams, i = await Z(ae, {
511
+ let r = $.getState().initParams, i = await H(ue, {
525
512
  id: t,
526
513
  input: {
527
514
  ...n,
528
- ...n.status ? { status: H(n.status) } : {},
529
- ...n.priority ? { priority: H(n.priority) } : {}
515
+ ...n.status ? { status: P(n.status) } : {},
516
+ ...n.priority ? { priority: P(n.priority) } : {}
530
517
  }
531
518
  }, r, "Unable to update project");
532
- e((e) => ({ projects: e.projects.map((e) => e.id === t ? G(i.updateCrewProject, W.project) : e) }));
519
+ e((e) => ({ projects: e.projects.map((e) => e.id === t ? I(i.updateCrewProject, F.project) : e) }));
533
520
  },
534
521
  removeProject: async (t) => {
535
522
  let n = $.getState().initParams;
536
- await Z(oe, { id: t }, n, "Unable to remove project"), e((e) => ({ projects: e.projects.filter((e) => e.id !== t) }));
537
- },
538
- addMarketplaceService: async () => {
539
- throw U("Marketplace services");
540
- },
541
- updateMarketplaceService: async () => {
542
- throw U("Marketplace services");
543
- },
544
- removeMarketplaceService: async () => {
545
- throw U("Marketplace services");
523
+ await H(de, { id: t }, n, "Unable to remove project"), e((e) => ({ projects: e.projects.filter((e) => e.id !== t) }));
546
524
  },
547
525
  addDepartment: async (t) => {
548
- let n = $.getState().initParams, r = await Z(se, { input: t }, n, "Unable to create department");
549
- e((e) => ({ departments: [G(r.createCrewDepartment, W.department), ...e.departments] }));
526
+ let n = $.getState().initParams, r = await H(fe, { input: t }, n, "Unable to create department");
527
+ e((e) => ({ departments: [I(r.createCrewDepartment, F.department), ...e.departments] }));
550
528
  },
551
529
  updateDepartment: async (t, n) => {
552
- let r = $.getState().initParams, i = await Z(ce, {
530
+ let r = $.getState().initParams, i = await H(pe, {
553
531
  id: t,
554
532
  input: n
555
533
  }, r, "Unable to update department");
556
- e((e) => ({ departments: e.departments.map((e) => e.id === t ? G(i.updateCrewDepartment, W.department) : e) }));
534
+ e((e) => ({ departments: e.departments.map((e) => e.id === t ? I(i.updateCrewDepartment, F.department) : e) }));
557
535
  },
558
536
  removeDepartment: async (t) => {
559
537
  let n = $.getState().initParams;
560
- await Z(le, { id: t }, n, "Unable to remove department"), e((e) => ({ departments: e.departments.filter((e) => e.id !== t) }));
561
- },
562
- addCourse: async () => {
563
- throw U("Courses");
564
- },
565
- updateCourse: async () => {
566
- throw U("Courses");
567
- },
568
- removeCourse: async () => {
569
- throw U("Courses");
570
- },
571
- enrollCourse: async () => {
572
- throw U("Course enrollment");
573
- },
574
- addLearningPath: async () => {
575
- throw U("Learning paths");
576
- },
577
- updateLearningPath: async () => {
578
- throw U("Learning paths");
579
- },
580
- removeLearningPath: async () => {
581
- throw U("Learning paths");
538
+ await H(me, { id: t }, n, "Unable to remove department"), e((e) => ({ departments: e.departments.filter((e) => e.id !== t) }));
582
539
  },
583
540
  addPayrollRecord: async (t) => {
584
- let n = $.getState().initParams, r = await Z(ue, { input: {
541
+ let n = $.getState().initParams, r = await H(he, { input: {
585
542
  ...t,
586
- status: H(t.status)
543
+ status: P(t.status)
587
544
  } }, n, "Unable to create payroll record");
588
- e((e) => ({ payrollRecords: [G(r.createCrewPayrollRecord, W.payrollRecord), ...e.payrollRecords] }));
545
+ e((e) => ({ payrollRecords: [I(r.createCrewPayrollRecord, F.payrollRecord), ...e.payrollRecords] }));
589
546
  },
590
547
  updatePayrollRecord: async (t, n) => {
591
- let r = $.getState().initParams, i = await Z(de, {
548
+ let r = $.getState().initParams, i = await H(ge, {
592
549
  id: t,
593
550
  input: {
594
551
  ...n,
595
- ...n.status ? { status: H(n.status) } : {}
552
+ ...n.status ? { status: P(n.status) } : {}
596
553
  }
597
554
  }, r, "Unable to update payroll record");
598
- e((e) => ({ payrollRecords: e.payrollRecords.map((e) => e.id === t ? G(i.updateCrewPayrollRecord, W.payrollRecord) : e) }));
555
+ e((e) => ({ payrollRecords: e.payrollRecords.map((e) => e.id === t ? I(i.updateCrewPayrollRecord, F.payrollRecord) : e) }));
599
556
  },
600
557
  removePayrollRecord: async (t) => {
601
558
  let n = $.getState().initParams;
602
- await Z(fe, { id: t }, n, "Unable to remove payroll record"), e((e) => ({ payrollRecords: e.payrollRecords.filter((e) => e.id !== t) }));
559
+ await H(_e, { id: t }, n, "Unable to remove payroll record"), e((e) => ({ payrollRecords: e.payrollRecords.filter((e) => e.id !== t) }));
603
560
  },
604
561
  addTimeEntry: async (t) => {
605
- let n = $.getState().initParams, r = await Z(F, { input: t }, n, "Unable to create time entry");
606
- e((e) => ({ timeEntries: [G(r.createCrewTimeEntry, W.timeEntry), ...e.timeEntries] }));
562
+ let n = $.getState().initParams, r = await H(we, { input: t }, n, "Unable to create time entry");
563
+ e((e) => ({ timeEntries: [I(r.createCrewTimeEntry, F.timeEntry), ...e.timeEntries] }));
607
564
  },
608
565
  updateTimeEntry: async (t, n) => {
609
- let r = $.getState().initParams, i = await Z(I, {
566
+ let r = $.getState().initParams, i = await H(Te, {
610
567
  id: t,
611
568
  input: n
612
569
  }, r, "Unable to update time entry");
613
- e((e) => ({ timeEntries: e.timeEntries.map((e) => e.id === t ? G(i.updateCrewTimeEntry, W.timeEntry) : e) }));
570
+ e((e) => ({ timeEntries: e.timeEntries.map((e) => e.id === t ? I(i.updateCrewTimeEntry, F.timeEntry) : e) }));
614
571
  },
615
572
  removeTimeEntry: async (t) => {
616
573
  let n = $.getState().initParams;
617
- await Z(L, { id: t }, n, "Unable to remove time entry"), e((e) => ({ timeEntries: e.timeEntries.filter((e) => e.id !== t) }));
574
+ await H(Ee, { id: t }, n, "Unable to remove time entry"), e((e) => ({ timeEntries: e.timeEntries.filter((e) => e.id !== t) }));
618
575
  },
619
576
  fetchJobPostingMatches: async (t) => {
620
577
  let n = $.getState().initParams;
621
578
  e({ jobPostingMatchesLoading: !0 });
622
579
  try {
623
- let r = (await Z(R, { jobPostingId: t }, n, "Unable to load candidate matches")).crewJobPostingMatches.map((e) => ({
580
+ let r = (await H(De, { jobPostingId: t }, n, "Unable to load candidate matches")).crewJobPostingMatches.map((e) => ({
624
581
  ...e,
625
- candidate: G(e.candidate, W.candidate)
582
+ candidate: I(e.candidate, F.candidate)
626
583
  }));
627
584
  e((e) => ({
628
585
  jobPostingMatches: {
@@ -640,7 +597,7 @@ var n = "\n query CrewfoundryBootstrap {\n crewfoundryBootstrap {\n emp
640
597
  e({ payrollRunsLoading: !0 });
641
598
  try {
642
599
  e({
643
- payrollRuns: (await Z(k, void 0, t, "Unable to load payroll runs")).crewPayrollRuns,
600
+ payrollRuns: (await H(ve, void 0, t, "Unable to load payroll runs")).crewPayrollRuns,
644
601
  payrollRunsLoaded: !0,
645
602
  payrollRunsLoading: !1
646
603
  });
@@ -649,23 +606,23 @@ var n = "\n query CrewfoundryBootstrap {\n crewfoundryBootstrap {\n emp
649
606
  }
650
607
  },
651
608
  createPayrollRun: async (t) => {
652
- let n = $.getState().initParams, r = await Z(A, { input: t }, n, "Unable to create payroll run");
609
+ let n = $.getState().initParams, r = await H(ye, { input: t }, n, "Unable to create payroll run");
653
610
  e((e) => ({ payrollRuns: [r.createCrewPayrollRun, ...e.payrollRuns] }));
654
611
  },
655
612
  calculatePayrollRun: async (t) => {
656
- let n = $.getState().initParams, r = await Z(j, { id: t }, n, "Unable to calculate payroll run");
613
+ let n = $.getState().initParams, r = await H(be, { id: t }, n, "Unable to calculate payroll run");
657
614
  e((e) => ({
658
615
  payrollRuns: e.payrollRuns.map((e) => e.id === t ? r.calculateCrewPayrollRun : e),
659
616
  payslipsByRun: Object.fromEntries(Object.entries(e.payslipsByRun).filter(([e]) => e !== t))
660
617
  }));
661
618
  },
662
619
  approvePayrollRun: async (t) => {
663
- let n = $.getState().initParams, r = await Z(M, { id: t }, n, "Unable to approve payroll run");
620
+ let n = $.getState().initParams, r = await H(xe, { id: t }, n, "Unable to approve payroll run");
664
621
  e((e) => ({ payrollRuns: e.payrollRuns.map((e) => e.id === t ? r.approveCrewPayrollRun : e) }));
665
622
  },
666
623
  removePayrollRun: async (t) => {
667
624
  let n = $.getState().initParams;
668
- await Z(N, { id: t }, n, "Unable to remove payroll run"), e((e) => ({
625
+ await H(Se, { id: t }, n, "Unable to remove payroll run"), e((e) => ({
669
626
  payrollRuns: e.payrollRuns.filter((e) => e.id !== t),
670
627
  payslipsByRun: Object.fromEntries(Object.entries(e.payslipsByRun).filter(([e]) => e !== t))
671
628
  }));
@@ -674,7 +631,7 @@ var n = "\n query CrewfoundryBootstrap {\n crewfoundryBootstrap {\n emp
674
631
  let n = $.getState().initParams;
675
632
  e({ payslipsLoading: !0 });
676
633
  try {
677
- let r = await Z(P, { filter: { payrollRunId: t } }, n, "Unable to load payslips");
634
+ let r = await H(Ce, { filter: { payrollRunId: t } }, n, "Unable to load payslips");
678
635
  e((e) => ({
679
636
  payslipsByRun: {
680
637
  ...e.payslipsByRun,
@@ -687,11 +644,11 @@ var n = "\n query CrewfoundryBootstrap {\n crewfoundryBootstrap {\n emp
687
644
  }
688
645
  },
689
646
  fetchEmployeeDocuments: async (t) => {
690
- let n = $.getState().initParams, r = await Z(B, { employeeId: t }, n, "Unable to load employee documents");
647
+ let n = $.getState().initParams, r = await H(w, { employeeId: t }, n, "Unable to load employee documents");
691
648
  e((e) => ({ employeeDocuments: [...e.employeeDocuments.filter((e) => e.employeeId !== t), ...r.employeeDocuments] }));
692
649
  },
693
650
  uploadEmployeeDocument: async ({ employeeId: t, file: n, title: r, category: i }) => {
694
- let a = $.getState().initParams, o = await Z(me, { 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(he, { input: {
651
+ let a = $.getState().initParams, o = await H(Oe, { path: "/CrewFoundry/Employee Documents" }, a, "Unable to resolve the employee documents folder"), s = n.name.includes(".") ? n.name.substring(n.name.lastIndexOf(".") + 1) : "", c = await H(ke, { input: {
695
652
  fileName: n.name,
696
653
  fileSize: String(n.size),
697
654
  mimeType: n.type || "application/octet-stream",
@@ -706,9 +663,9 @@ var n = "\n query CrewfoundryBootstrap {\n crewfoundryBootstrap {\n emp
706
663
  });
707
664
  if (!e.ok) throw Error(`Failed to upload file bytes (status ${e.status})`);
708
665
  }
709
- let l = await Z(V, { input: {
666
+ let l = await H(T, { input: {
710
667
  employeeId: t,
711
- fileId: (await Z(ge, { input: {
668
+ fileId: (await H(Ae, { input: {
712
669
  sessionId: c.initiateUpload.session.id,
713
670
  fileSize: String(n.size),
714
671
  folderId: o.ensureFolderByPath.id
@@ -720,32 +677,32 @@ var n = "\n query CrewfoundryBootstrap {\n crewfoundryBootstrap {\n emp
720
677
  },
721
678
  detachEmployeeDocument: async (t) => {
722
679
  let n = $.getState().initParams;
723
- await Z(pe, { id: t }, n, "Unable to remove this document"), e((e) => ({ employeeDocuments: e.employeeDocuments.filter((e) => e.id !== t) }));
680
+ await H(E, { id: t }, n, "Unable to remove this document"), e((e) => ({ employeeDocuments: e.employeeDocuments.filter((e) => e.id !== t) }));
724
681
  },
725
682
  fetchOnboardings: async () => {
726
683
  let t = $.getState().initParams;
727
684
  e({
728
- onboardings: (await Z(_e, {}, t, "Unable to load onboarding")).crewOnboardings.map(K),
685
+ onboardings: (await H(je, {}, t, "Unable to load onboarding")).crewOnboardings.map(L),
729
686
  onboardingsLoaded: !0
730
687
  });
731
688
  },
732
689
  createOnboarding: async (t) => {
733
- let n = $.getState().initParams, r = await Z(ve, { input: t }, n, "Unable to start onboarding");
734
- e((e) => ({ onboardings: [K(r.createCrewOnboarding), ...e.onboardings] }));
690
+ let n = $.getState().initParams, r = await H(Me, { input: t }, n, "Unable to start onboarding");
691
+ e((e) => ({ onboardings: [L(r.createCrewOnboarding), ...e.onboardings] }));
735
692
  },
736
693
  updateOnboarding: async (t, n) => {
737
- let r = $.getState().initParams, i = await Z(ye, {
694
+ let r = $.getState().initParams, i = await H(Ne, {
738
695
  id: t,
739
696
  input: n
740
697
  }, r, "Unable to update onboarding");
741
- e((e) => ({ onboardings: e.onboardings.map((e) => e.id === t ? K(i.updateCrewOnboarding) : e) }));
698
+ e((e) => ({ onboardings: e.onboardings.map((e) => e.id === t ? L(i.updateCrewOnboarding) : e) }));
742
699
  },
743
700
  removeOnboarding: async (t) => {
744
701
  let n = $.getState().initParams;
745
- await Z(be, { id: t }, n, "Unable to remove onboarding"), e((e) => ({ onboardings: e.onboardings.filter((e) => e.id !== t) }));
702
+ await H(Pe, { id: t }, n, "Unable to remove onboarding"), e((e) => ({ onboardings: e.onboardings.filter((e) => e.id !== t) }));
746
703
  },
747
704
  createOnboardingTask: async (t) => {
748
- let n = $.getState().initParams, r = G((await Z(xe, { input: t }, n, "Unable to create onboarding task")).createCrewOnboardingTask, W.onboardingTask);
705
+ let n = $.getState().initParams, r = I((await H(Fe, { input: t }, n, "Unable to create onboarding task")).createCrewOnboardingTask, F.onboardingTask);
749
706
  e((e) => ({ onboardings: e.onboardings.map((e) => e.id === r.onboardingId ? {
750
707
  ...e,
751
708
  tasks: [...e.tasks, r],
@@ -753,10 +710,10 @@ var n = "\n query CrewfoundryBootstrap {\n crewfoundryBootstrap {\n emp
753
710
  } : e) }));
754
711
  },
755
712
  updateOnboardingTask: async (t, n) => {
756
- let r = $.getState().initParams, i = G((await Z(Se, {
713
+ let r = $.getState().initParams, i = I((await H(Ie, {
757
714
  id: t,
758
715
  input: n
759
- }, r, "Unable to update onboarding task")).updateCrewOnboardingTask, W.onboardingTask);
716
+ }, r, "Unable to update onboarding task")).updateCrewOnboardingTask, F.onboardingTask);
760
717
  e((e) => ({ onboardings: e.onboardings.map((e) => e.id === i.onboardingId ? {
761
718
  ...e,
762
719
  tasks: e.tasks.map((e) => e.id === t ? i : e)
@@ -764,17 +721,17 @@ var n = "\n query CrewfoundryBootstrap {\n crewfoundryBootstrap {\n emp
764
721
  },
765
722
  removeOnboardingTask: async (t) => {
766
723
  let n = $.getState().initParams;
767
- await Z(Ce, { id: t }, n, "Unable to remove onboarding task"), e((e) => ({ onboardings: e.onboardings.map((e) => e.tasks.some((e) => e.id === t) ? {
724
+ await H(Le, { id: t }, n, "Unable to remove onboarding task"), e((e) => ({ onboardings: e.onboardings.map((e) => e.tasks.some((e) => e.id === t) ? {
768
725
  ...e,
769
726
  tasks: e.tasks.filter((e) => e.id !== t),
770
727
  totalTaskCount: Math.max(0, e.totalTaskCount - 1)
771
728
  } : e) }));
772
729
  },
773
730
  toggleOnboardingTask: async (t, n) => {
774
- let r = $.getState().initParams, i = G((await Z(we, {
731
+ let r = $.getState().initParams, i = I((await H(Re, {
775
732
  id: t,
776
733
  completed: n
777
- }, r, "Unable to update onboarding task")).toggleCrewOnboardingTask, W.onboardingTask);
734
+ }, r, "Unable to update onboarding task")).toggleCrewOnboardingTask, F.onboardingTask);
778
735
  e((e) => ({ onboardings: e.onboardings.map((e) => {
779
736
  if (e.id !== i.onboardingId) return e;
780
737
  let n = e.tasks.map((e) => e.id === t ? i : e), r = n.filter((e) => e.completedAt).length;
@@ -789,12 +746,149 @@ var n = "\n query CrewfoundryBootstrap {\n crewfoundryBootstrap {\n emp
789
746
  fetchSkillsGap: async () => {
790
747
  let t = $.getState().initParams;
791
748
  e({
792
- skillsGap: (await Z(z, void 0, t, "Unable to load skills coverage")).crewSkillsGap,
749
+ skillsGap: (await H(C, void 0, t, "Unable to load skills coverage")).crewSkillsGap,
793
750
  skillsGapLoaded: !0
794
751
  });
752
+ },
753
+ fetchLearning: async () => {
754
+ let t = $.getState().initParams, n = {
755
+ limit: N,
756
+ offset: 0
757
+ };
758
+ for (let r = 1; r <= K; r += 1) {
759
+ let i = G.learning, a = await H(ze, {
760
+ coursePage: n,
761
+ enrollmentPage: n
762
+ }, t, "Unable to load learning"), [o, s] = await Promise.all([W(Be, "crewTrainingCourses", t, "Unable to load courses", a.crewTrainingCourses), W(Ve, "crewEnrollments", t, "Unable to load enrollments", a.crewEnrollments)]);
763
+ if (!(i !== G.learning && r < K)) {
764
+ e({
765
+ trainingCourses: o,
766
+ enrollments: s.map(q),
767
+ trainingCompletion: a.crewTrainingCompletionDashboard,
768
+ learningLoaded: !0
769
+ });
770
+ return;
771
+ }
772
+ }
773
+ },
774
+ createTrainingCourse: async (t) => {
775
+ let n = $.getState().initParams, r = (await H(Ue, { input: t }, n, "Unable to create course")).createCrewTrainingCourse;
776
+ return G.learning += 1, e((e) => ({ trainingCourses: [r, ...e.trainingCourses] })), r;
777
+ },
778
+ updateTrainingCourse: async (t, n) => {
779
+ let r = $.getState().initParams, i = await H(We, {
780
+ id: t,
781
+ input: n
782
+ }, r, "Unable to update course");
783
+ G.learning += 1, e((e) => ({ trainingCourses: Z(e.trainingCourses, i.updateCrewTrainingCourse) }));
784
+ },
785
+ removeTrainingCourse: async (t) => {
786
+ let n = $.getState().initParams;
787
+ await H(Ge, { id: t }, n, "Unable to remove course"), G.learning += 1, e((e) => ({
788
+ trainingCourses: e.trainingCourses.filter((e) => e.id !== t),
789
+ trainingCompletion: e.trainingCompletion.filter((e) => e.courseId !== t)
790
+ }));
791
+ },
792
+ enrollEmployee: async (t, n) => {
793
+ let r = $.getState().initParams, i = q((await H(Ke, { input: {
794
+ courseId: t,
795
+ employeeId: n.id,
796
+ employeeName: `${n.firstName} ${n.lastName}`.trim()
797
+ } }, r, "Unable to enroll employee")).createCrewEnrollment);
798
+ G.learning += 1, e((e) => ({ enrollments: e.enrollments.some((e) => e.id === i.id) ? Z(e.enrollments, i) : [i, ...e.enrollments] }));
799
+ let a = await Q(r);
800
+ a && e({ trainingCompletion: a });
801
+ },
802
+ updateEnrollmentStatus: async (t, n) => {
803
+ let r = $.getState().initParams, i = await H(qe, {
804
+ id: t,
805
+ status: P(n)
806
+ }, r, "Unable to update enrollment");
807
+ G.learning += 1, e((e) => ({ enrollments: Z(e.enrollments, q(i.updateCrewEnrollmentStatus)) }));
808
+ let a = await Q(r);
809
+ a && e({ trainingCompletion: a });
810
+ },
811
+ removeEnrollment: async (t) => {
812
+ let n = $.getState().initParams;
813
+ await H(Je, { id: t }, n, "Unable to remove enrollment"), G.learning += 1, e((e) => ({ enrollments: e.enrollments.filter((e) => e.id !== t) }));
814
+ let r = await Q(n);
815
+ r && e({ trainingCompletion: r });
816
+ },
817
+ fetchMarketplace: async () => {
818
+ let t = $.getState().initParams;
819
+ for (let n = 1; n <= K; n += 1) {
820
+ let r = G.marketplace, [i, a] = await Promise.all([W(Ye, "crewServiceListings", t, "Unable to load marketplace services"), W(Xe, "crewBookings", t, "Unable to load bookings")]);
821
+ if (!(r !== G.marketplace && n < K)) {
822
+ e({
823
+ serviceListings: i.map(J),
824
+ bookings: a.map(Y),
825
+ marketplaceLoaded: !0
826
+ });
827
+ return;
828
+ }
829
+ }
830
+ },
831
+ createServiceListing: async (t) => {
832
+ let n = $.getState().initParams, r = J((await H(Qe, { input: t }, n, "Unable to publish service")).createCrewServiceListing);
833
+ return G.marketplace += 1, e((e) => ({ serviceListings: [r, ...e.serviceListings] })), r;
834
+ },
835
+ updateServiceListing: async (t, n) => {
836
+ let r = $.getState().initParams, i = await H($e, {
837
+ id: t,
838
+ input: n.status ? {
839
+ ...n,
840
+ status: P(n.status)
841
+ } : n
842
+ }, r, "Unable to update service");
843
+ G.marketplace += 1, e((e) => ({ serviceListings: Z(e.serviceListings, J(i.updateMyServiceListing)) }));
844
+ },
845
+ removeServiceListing: async (t) => {
846
+ let n = $.getState().initParams;
847
+ await H(et, { id: t }, n, "Unable to remove service"), G.marketplace += 1, e((e) => ({ serviceListings: e.serviceListings.filter((e) => e.id !== t) }));
848
+ },
849
+ bookServiceListing: async (t) => {
850
+ let n = $.getState().initParams, r = Y((await H(M, { input: t }, n, "Unable to book service")).createCrewBooking);
851
+ return G.marketplace += 1, e((e) => ({
852
+ bookings: [r, ...e.bookings],
853
+ escrowLoaded: !1
854
+ })), r;
855
+ },
856
+ updateBookingStatus: async (t, n) => {
857
+ let r = $.getState().initParams, i = await H(tt, {
858
+ id: t,
859
+ status: P(n)
860
+ }, r, "Unable to update booking");
861
+ G.marketplace += 1, e((e) => ({
862
+ bookings: Z(e.bookings, Y(i.updateMyBookingStatus)),
863
+ escrowLoaded: !1
864
+ }));
865
+ },
866
+ fetchEscrowRecords: async () => {
867
+ let t = $.getState().initParams;
868
+ try {
869
+ e({
870
+ escrowRecords: (await W(Ze, "crewEscrowRecords", t, "Unable to load escrow records")).map(X),
871
+ escrowLoaded: !0,
872
+ escrowError: null
873
+ });
874
+ } catch (t) {
875
+ e({
876
+ escrowRecords: [],
877
+ escrowLoaded: !0,
878
+ escrowError: t instanceof Error ? t.message : "Unable to load escrow records"
879
+ });
880
+ }
881
+ },
882
+ releaseEscrowRecord: async (t) => {
883
+ let n = $.getState().initParams, r = await H(nt, { id: t }, n, "Unable to release escrow");
884
+ e((e) => ({ escrowRecords: Z(e.escrowRecords, X(r.releaseCrewEscrowRecord)) }));
885
+ },
886
+ cancelEscrowRecord: async (t) => {
887
+ let n = $.getState().initParams, r = await H(rt, { id: t }, n, "Unable to cancel escrow");
888
+ e((e) => ({ escrowRecords: Z(e.escrowRecords, X(r.cancelCrewEscrowRecord)) }));
795
889
  }
796
890
  }));
797
891
  //#endregion
798
- export { $ as useCrewFoundryStore };
892
+ export { V as CONVERSATIONS_ROUTE, $ as useCrewFoundryStore };
799
893
 
800
894
  //# sourceMappingURL=crewfoundryStore.js.map