@burdenoff/microfe-crewfoundry 2026.1013.1 → 2026.1029.1

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