@hed-hog/operations 0.0.330 → 0.0.332

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 (320) hide show
  1. package/README.md +5 -5
  2. package/dist/controllers/operations-collaborators.controller.d.ts +58 -213
  3. package/dist/controllers/operations-collaborators.controller.d.ts.map +1 -1
  4. package/dist/controllers/operations-collaborators.controller.js +100 -0
  5. package/dist/controllers/operations-collaborators.controller.js.map +1 -1
  6. package/dist/controllers/operations-contracts.controller.d.ts +6 -6
  7. package/dist/controllers/operations-projects.controller.d.ts +25 -0
  8. package/dist/controllers/operations-projects.controller.d.ts.map +1 -1
  9. package/dist/controllers/operations-projects.controller.js +48 -0
  10. package/dist/controllers/operations-projects.controller.js.map +1 -1
  11. package/dist/controllers/operations-reports.controller.d.ts +1 -1
  12. package/dist/controllers/operations-tasks.controller.d.ts +34 -9
  13. package/dist/controllers/operations-tasks.controller.d.ts.map +1 -1
  14. package/dist/controllers/operations-tasks.controller.js +43 -32
  15. package/dist/controllers/operations-tasks.controller.js.map +1 -1
  16. package/dist/controllers/operations-timesheets.controller.d.ts +9 -9
  17. package/dist/dashboard/components/DashboardLayout.d.ts +30 -0
  18. package/dist/dashboard/components/DashboardLayout.d.ts.map +1 -0
  19. package/dist/dashboard/components/DashboardLayout.js +87 -0
  20. package/dist/dashboard/components/DashboardLayout.js.map +1 -0
  21. package/dist/dashboard/components/widget-registry.d.ts +23 -0
  22. package/dist/dashboard/components/widget-registry.d.ts.map +1 -0
  23. package/dist/dashboard/components/widget-registry.js +245 -0
  24. package/dist/dashboard/components/widget-registry.js.map +1 -0
  25. package/dist/dashboard/hooks/useDashboardData.d.ts +20 -0
  26. package/dist/dashboard/hooks/useDashboardData.d.ts.map +1 -0
  27. package/dist/dashboard/hooks/useDashboardData.js +24 -0
  28. package/dist/dashboard/hooks/useDashboardData.js.map +1 -0
  29. package/dist/dashboard/types/widgets.types.d.ts +233 -0
  30. package/dist/dashboard/types/widgets.types.d.ts.map +1 -0
  31. package/dist/dashboard/types/widgets.types.js +6 -0
  32. package/dist/dashboard/types/widgets.types.js.map +1 -0
  33. package/dist/dashboard/widgets/CapacityDistribution.d.ts +23 -0
  34. package/dist/dashboard/widgets/CapacityDistribution.d.ts.map +1 -0
  35. package/dist/dashboard/widgets/CapacityDistribution.js +11 -0
  36. package/dist/dashboard/widgets/CapacityDistribution.js.map +1 -0
  37. package/dist/dashboard/widgets/EffortByProject.d.ts +22 -0
  38. package/dist/dashboard/widgets/EffortByProject.d.ts.map +1 -0
  39. package/dist/dashboard/widgets/EffortByProject.js +11 -0
  40. package/dist/dashboard/widgets/EffortByProject.js.map +1 -0
  41. package/dist/dashboard/widgets/HeadcountByArea.d.ts +24 -0
  42. package/dist/dashboard/widgets/HeadcountByArea.d.ts.map +1 -0
  43. package/dist/dashboard/widgets/HeadcountByArea.js +11 -0
  44. package/dist/dashboard/widgets/HeadcountByArea.js.map +1 -0
  45. package/dist/dashboard/widgets/ManagedProjectsStatus.d.ts +18 -0
  46. package/dist/dashboard/widgets/ManagedProjectsStatus.d.ts.map +1 -0
  47. package/dist/dashboard/widgets/ManagedProjectsStatus.js +12 -0
  48. package/dist/dashboard/widgets/ManagedProjectsStatus.js.map +1 -0
  49. package/dist/dashboard/widgets/MyHoursPeriodKpi.d.ts +22 -0
  50. package/dist/dashboard/widgets/MyHoursPeriodKpi.d.ts.map +1 -0
  51. package/dist/dashboard/widgets/MyHoursPeriodKpi.js +12 -0
  52. package/dist/dashboard/widgets/MyHoursPeriodKpi.js.map +1 -0
  53. package/dist/dashboard/widgets/MyOpenRequestsKpi.d.ts +19 -0
  54. package/dist/dashboard/widgets/MyOpenRequestsKpi.d.ts.map +1 -0
  55. package/dist/dashboard/widgets/MyOpenRequestsKpi.js +17 -0
  56. package/dist/dashboard/widgets/MyOpenRequestsKpi.js.map +1 -0
  57. package/dist/dashboard/widgets/MyPendingRequestsList.d.ts +23 -0
  58. package/dist/dashboard/widgets/MyPendingRequestsList.d.ts.map +1 -0
  59. package/dist/dashboard/widgets/MyPendingRequestsList.js +14 -0
  60. package/dist/dashboard/widgets/MyPendingRequestsList.js.map +1 -0
  61. package/dist/dashboard/widgets/MyProjectAllocationsKpi.d.ts +22 -0
  62. package/dist/dashboard/widgets/MyProjectAllocationsKpi.d.ts.map +1 -0
  63. package/dist/dashboard/widgets/MyProjectAllocationsKpi.js +11 -0
  64. package/dist/dashboard/widgets/MyProjectAllocationsKpi.js.map +1 -0
  65. package/dist/dashboard/widgets/MyQuickActions.d.ts +23 -0
  66. package/dist/dashboard/widgets/MyQuickActions.d.ts.map +1 -0
  67. package/dist/dashboard/widgets/MyQuickActions.js +18 -0
  68. package/dist/dashboard/widgets/MyQuickActions.js.map +1 -0
  69. package/dist/dashboard/widgets/MyRelevantDeadlines.d.ts +23 -0
  70. package/dist/dashboard/widgets/MyRelevantDeadlines.d.ts.map +1 -0
  71. package/dist/dashboard/widgets/MyRelevantDeadlines.js +22 -0
  72. package/dist/dashboard/widgets/MyRelevantDeadlines.js.map +1 -0
  73. package/dist/dashboard/widgets/MyTimesheetStatusKpi.d.ts +17 -0
  74. package/dist/dashboard/widgets/MyTimesheetStatusKpi.d.ts.map +1 -0
  75. package/dist/dashboard/widgets/MyTimesheetStatusKpi.js +11 -0
  76. package/dist/dashboard/widgets/MyTimesheetStatusKpi.js.map +1 -0
  77. package/dist/dashboard/widgets/MyWeeklyJourney.d.ts +21 -0
  78. package/dist/dashboard/widgets/MyWeeklyJourney.d.ts.map +1 -0
  79. package/dist/dashboard/widgets/MyWeeklyJourney.js +19 -0
  80. package/dist/dashboard/widgets/MyWeeklyJourney.js.map +1 -0
  81. package/dist/dashboard/widgets/PortfolioCostsKpi.d.ts +19 -0
  82. package/dist/dashboard/widgets/PortfolioCostsKpi.d.ts.map +1 -0
  83. package/dist/dashboard/widgets/PortfolioCostsKpi.js +12 -0
  84. package/dist/dashboard/widgets/PortfolioCostsKpi.js.map +1 -0
  85. package/dist/dashboard/widgets/PortfolioEffortKpi.d.ts +18 -0
  86. package/dist/dashboard/widgets/PortfolioEffortKpi.d.ts.map +1 -0
  87. package/dist/dashboard/widgets/PortfolioEffortKpi.js +8 -0
  88. package/dist/dashboard/widgets/PortfolioEffortKpi.js.map +1 -0
  89. package/dist/dashboard/widgets/PortfolioProjectsKpi.d.ts +22 -0
  90. package/dist/dashboard/widgets/PortfolioProjectsKpi.d.ts.map +1 -0
  91. package/dist/dashboard/widgets/PortfolioProjectsKpi.js +56 -0
  92. package/dist/dashboard/widgets/PortfolioProjectsKpi.js.map +1 -0
  93. package/dist/dashboard/widgets/PortfolioRiskKpi.d.ts +19 -0
  94. package/dist/dashboard/widgets/PortfolioRiskKpi.d.ts.map +1 -0
  95. package/dist/dashboard/widgets/PortfolioRiskKpi.js +11 -0
  96. package/dist/dashboard/widgets/PortfolioRiskKpi.js.map +1 -0
  97. package/dist/dashboard/widgets/ProjectStatusOverview.d.ts +19 -0
  98. package/dist/dashboard/widgets/ProjectStatusOverview.d.ts.map +1 -0
  99. package/dist/dashboard/widgets/ProjectStatusOverview.js +18 -0
  100. package/dist/dashboard/widgets/ProjectStatusOverview.js.map +1 -0
  101. package/dist/dashboard/widgets/StrategicDeadlines.d.ts +24 -0
  102. package/dist/dashboard/widgets/StrategicDeadlines.d.ts.map +1 -0
  103. package/dist/dashboard/widgets/StrategicDeadlines.js +22 -0
  104. package/dist/dashboard/widgets/StrategicDeadlines.js.map +1 -0
  105. package/dist/dashboard/widgets/TeamApprovalQueue.d.ts +24 -0
  106. package/dist/dashboard/widgets/TeamApprovalQueue.d.ts.map +1 -0
  107. package/dist/dashboard/widgets/TeamApprovalQueue.js +12 -0
  108. package/dist/dashboard/widgets/TeamApprovalQueue.js.map +1 -0
  109. package/dist/dashboard/widgets/TeamCapacityKpi.d.ts +18 -0
  110. package/dist/dashboard/widgets/TeamCapacityKpi.d.ts.map +1 -0
  111. package/dist/dashboard/widgets/TeamCapacityKpi.js +19 -0
  112. package/dist/dashboard/widgets/TeamCapacityKpi.js.map +1 -0
  113. package/dist/dashboard/widgets/TeamHeadcountKpi.d.ts +22 -0
  114. package/dist/dashboard/widgets/TeamHeadcountKpi.d.ts.map +1 -0
  115. package/dist/dashboard/widgets/TeamHeadcountKpi.js +56 -0
  116. package/dist/dashboard/widgets/TeamHeadcountKpi.js.map +1 -0
  117. package/dist/dashboard/widgets/TeamHoursKpi.d.ts +19 -0
  118. package/dist/dashboard/widgets/TeamHoursKpi.d.ts.map +1 -0
  119. package/dist/dashboard/widgets/TeamHoursKpi.js +13 -0
  120. package/dist/dashboard/widgets/TeamHoursKpi.js.map +1 -0
  121. package/dist/dashboard/widgets/TeamPendingApprovalsKpi.d.ts +20 -0
  122. package/dist/dashboard/widgets/TeamPendingApprovalsKpi.d.ts.map +1 -0
  123. package/dist/dashboard/widgets/TeamPendingApprovalsKpi.js +11 -0
  124. package/dist/dashboard/widgets/TeamPendingApprovalsKpi.js.map +1 -0
  125. package/dist/dashboard/widgets/TeamUtilizationOverview.d.ts +18 -0
  126. package/dist/dashboard/widgets/TeamUtilizationOverview.d.ts.map +1 -0
  127. package/dist/dashboard/widgets/TeamUtilizationOverview.js +17 -0
  128. package/dist/dashboard/widgets/TeamUtilizationOverview.js.map +1 -0
  129. package/dist/dashboard/widgets/TeamWorkloadAlerts.d.ts +24 -0
  130. package/dist/dashboard/widgets/TeamWorkloadAlerts.d.ts.map +1 -0
  131. package/dist/dashboard/widgets/TeamWorkloadAlerts.js +19 -0
  132. package/dist/dashboard/widgets/TeamWorkloadAlerts.js.map +1 -0
  133. package/dist/dashboard/widgets/index.d.ts +24 -0
  134. package/dist/dashboard/widgets/index.d.ts.map +1 -0
  135. package/dist/dashboard/widgets/index.js +54 -0
  136. package/dist/dashboard/widgets/index.js.map +1 -0
  137. package/dist/dto/create-collaborator-invoice.dto.d.ts +11 -0
  138. package/dist/dto/create-collaborator-invoice.dto.d.ts.map +1 -0
  139. package/dist/dto/create-collaborator-invoice.dto.js +55 -0
  140. package/dist/dto/create-collaborator-invoice.dto.js.map +1 -0
  141. package/dist/dto/create-collaborator-payment.dto.d.ts +10 -0
  142. package/dist/dto/create-collaborator-payment.dto.d.ts.map +1 -0
  143. package/dist/dto/create-collaborator-payment.dto.js +50 -0
  144. package/dist/dto/create-collaborator-payment.dto.js.map +1 -0
  145. package/dist/dto/create-collaborator.dto.d.ts +0 -1
  146. package/dist/dto/create-collaborator.dto.d.ts.map +1 -1
  147. package/dist/dto/create-collaborator.dto.js +0 -6
  148. package/dist/dto/create-collaborator.dto.js.map +1 -1
  149. package/dist/dto/list-collaborator-invoice.dto.d.ts +4 -0
  150. package/dist/dto/list-collaborator-invoice.dto.d.ts.map +1 -0
  151. package/dist/dto/list-collaborator-invoice.dto.js +8 -0
  152. package/dist/dto/list-collaborator-invoice.dto.js.map +1 -0
  153. package/dist/dto/list-collaborator-payment.dto.d.ts +4 -0
  154. package/dist/dto/list-collaborator-payment.dto.d.ts.map +1 -0
  155. package/dist/dto/list-collaborator-payment.dto.js +8 -0
  156. package/dist/dto/list-collaborator-payment.dto.js.map +1 -0
  157. package/dist/dto/update-collaborator-invoice.dto.d.ts +6 -0
  158. package/dist/dto/update-collaborator-invoice.dto.d.ts.map +1 -0
  159. package/dist/dto/update-collaborator-invoice.dto.js +9 -0
  160. package/dist/dto/update-collaborator-invoice.dto.js.map +1 -0
  161. package/dist/dto/update-collaborator-payment.dto.d.ts +6 -0
  162. package/dist/dto/update-collaborator-payment.dto.d.ts.map +1 -0
  163. package/dist/dto/update-collaborator-payment.dto.js +9 -0
  164. package/dist/dto/update-collaborator-payment.dto.js.map +1 -0
  165. package/dist/index.d.ts +2 -0
  166. package/dist/index.d.ts.map +1 -1
  167. package/dist/index.js +2 -0
  168. package/dist/index.js.map +1 -1
  169. package/dist/operations.controller.d.ts +42 -0
  170. package/dist/operations.controller.d.ts.map +1 -1
  171. package/dist/operations.service.d.ts +258 -268
  172. package/dist/operations.service.d.ts.map +1 -1
  173. package/dist/operations.service.js +2381 -1341
  174. package/dist/operations.service.js.map +1 -1
  175. package/dist/operations.service.spec.js +345 -174
  176. package/dist/operations.service.spec.js.map +1 -1
  177. package/hedhog/data/dashboard_component.yaml +66 -0
  178. package/hedhog/data/dashboard_item.yaml +25 -25
  179. package/hedhog/data/menu.yaml +27 -8
  180. package/hedhog/data/route.yaml +133 -0
  181. package/hedhog/frontend/app/_components/collaborator-form-screen.tsx.ejs +78 -102
  182. package/hedhog/frontend/app/_components/collaborator-invoices-tab.tsx.ejs +443 -0
  183. package/hedhog/frontend/app/_components/collaborator-payment-history-tab.tsx.ejs +429 -0
  184. package/hedhog/frontend/app/_components/collaborator-picker.tsx.ejs +158 -0
  185. package/hedhog/frontend/app/_components/my-project-summary-screen.tsx.ejs +247 -50
  186. package/hedhog/frontend/app/_components/project-assignments-tab.tsx.ejs +643 -450
  187. package/hedhog/frontend/app/_components/project-details-screen.tsx.ejs +992 -431
  188. package/hedhog/frontend/app/_components/project-file-attachments.tsx.ejs +371 -0
  189. package/hedhog/frontend/app/_components/project-form-screen.tsx.ejs +558 -386
  190. package/hedhog/frontend/app/_components/task-detail-sheet.tsx.ejs +383 -157
  191. package/hedhog/frontend/app/_components/task-file-attachments.tsx.ejs +4 -1
  192. package/hedhog/frontend/app/_components/task-form-fields.tsx.ejs +406 -0
  193. package/hedhog/frontend/app/_components/task-form-sheet.tsx.ejs +629 -784
  194. package/hedhog/frontend/app/_components/task-info-display.tsx.ejs +137 -0
  195. package/hedhog/frontend/app/_components/timesheet-entry-create-sheet.tsx.ejs +306 -0
  196. package/hedhog/frontend/app/_lib/api.ts.ejs +155 -0
  197. package/hedhog/frontend/app/_lib/types.ts.ejs +62 -0
  198. package/hedhog/frontend/app/_lib/utils/format.ts.ejs +0 -2
  199. package/hedhog/frontend/app/_lib/utils/task-ui.ts.ejs +61 -0
  200. package/hedhog/frontend/app/approvals/page.tsx.ejs +6 -1
  201. package/hedhog/frontend/app/collaborator-types/page.tsx.ejs +6 -1
  202. package/hedhog/frontend/app/collaborators/page.tsx.ejs +59 -8
  203. package/hedhog/frontend/app/contracts/page.tsx.ejs +29 -8
  204. package/hedhog/frontend/app/dashboard/widgets/CapacityDistribution.tsx.ejs +84 -0
  205. package/hedhog/frontend/app/dashboard/widgets/EffortByProject.tsx.ejs +85 -0
  206. package/hedhog/frontend/app/dashboard/widgets/HeadcountByArea.tsx.ejs +101 -0
  207. package/hedhog/frontend/app/dashboard/widgets/ManagedProjectsStatus.tsx.ejs +113 -0
  208. package/hedhog/frontend/app/dashboard/widgets/MyHoursPeriodKpi.tsx.ejs +87 -0
  209. package/hedhog/frontend/app/dashboard/widgets/MyOpenRequestsKpi.tsx.ejs +97 -0
  210. package/hedhog/frontend/app/dashboard/widgets/MyPendingRequestsList.tsx.ejs +99 -0
  211. package/hedhog/frontend/app/dashboard/widgets/MyProjectAllocationsKpi.tsx.ejs +78 -0
  212. package/hedhog/frontend/app/dashboard/widgets/MyQuickActions.tsx.ejs +130 -0
  213. package/hedhog/frontend/app/dashboard/widgets/MyRelevantDeadlines.tsx.ejs +144 -0
  214. package/hedhog/frontend/app/dashboard/widgets/MyTimesheetStatusKpi.tsx.ejs +78 -0
  215. package/hedhog/frontend/app/dashboard/widgets/MyWeeklyJourney.tsx.ejs +99 -0
  216. package/hedhog/frontend/app/dashboard/widgets/PortfolioCostsKpi.tsx.ejs +112 -0
  217. package/hedhog/frontend/app/dashboard/widgets/PortfolioEffortKpi.tsx.ejs +93 -0
  218. package/hedhog/frontend/app/dashboard/widgets/PortfolioProjectsKpi.tsx.ejs +96 -0
  219. package/hedhog/frontend/app/dashboard/widgets/PortfolioRiskKpi.tsx.ejs +115 -0
  220. package/hedhog/frontend/app/dashboard/widgets/ProjectStatusOverview.tsx.ejs +120 -0
  221. package/hedhog/frontend/app/dashboard/widgets/StrategicDeadlines.tsx.ejs +146 -0
  222. package/hedhog/frontend/app/dashboard/widgets/TeamApprovalQueue.tsx.ejs +108 -0
  223. package/hedhog/frontend/app/dashboard/widgets/TeamCapacityKpi.tsx.ejs +97 -0
  224. package/hedhog/frontend/app/dashboard/widgets/TeamHeadcountKpi.tsx.ejs +100 -0
  225. package/hedhog/frontend/app/dashboard/widgets/TeamHoursKpi.tsx.ejs +104 -0
  226. package/hedhog/frontend/app/dashboard/widgets/TeamPendingApprovalsKpi.tsx.ejs +110 -0
  227. package/hedhog/frontend/app/dashboard/widgets/TeamUtilizationOverview.tsx.ejs +115 -0
  228. package/hedhog/frontend/app/dashboard/widgets/TeamWorkloadAlerts.tsx.ejs +117 -0
  229. package/hedhog/frontend/app/dashboard/widgets/index.ts.ejs +26 -0
  230. package/hedhog/frontend/app/departments/page.tsx.ejs +6 -1
  231. package/hedhog/frontend/app/my-projects/page.tsx.ejs +30 -12
  232. package/hedhog/frontend/app/my-tasks/page.tsx.ejs +286 -125
  233. package/hedhog/frontend/app/project-cost-categories/page.tsx.ejs +58 -52
  234. package/hedhog/frontend/app/project-cost-types/page.tsx.ejs +58 -51
  235. package/hedhog/frontend/app/projects/page.tsx.ejs +415 -33
  236. package/hedhog/frontend/app/schedule-adjustments/page.tsx.ejs +6 -1
  237. package/hedhog/frontend/app/tasks-gantt/page.tsx.ejs +953 -0
  238. package/hedhog/frontend/app/time-off/page.tsx.ejs +6 -1
  239. package/hedhog/frontend/app/timesheets/page.tsx.ejs +10 -4
  240. package/hedhog/frontend/messages/en.json +332 -46
  241. package/hedhog/frontend/messages/operations/en.json +61 -52
  242. package/hedhog/frontend/messages/operations/pt.json +59 -43
  243. package/hedhog/frontend/messages/pt.json +332 -46
  244. package/hedhog/frontend/widgets/capacity-distribution.tsx.ejs +17 -0
  245. package/hedhog/frontend/widgets/effort-by-project.tsx.ejs +17 -0
  246. package/hedhog/frontend/widgets/headcount-by-area.tsx.ejs +17 -0
  247. package/hedhog/frontend/widgets/index.ts.ejs +25 -0
  248. package/hedhog/frontend/widgets/managed-projects-status.tsx.ejs +17 -0
  249. package/hedhog/frontend/widgets/my-hours-period-kpi.tsx.ejs +17 -0
  250. package/hedhog/frontend/widgets/my-open-requests-kpi.tsx.ejs +17 -0
  251. package/hedhog/frontend/widgets/my-pending-requests-list.tsx.ejs +17 -0
  252. package/hedhog/frontend/widgets/my-project-allocations-kpi.tsx.ejs +17 -0
  253. package/hedhog/frontend/widgets/my-quick-actions.tsx.ejs +17 -0
  254. package/hedhog/frontend/widgets/my-relevant-deadlines.tsx.ejs +17 -0
  255. package/hedhog/frontend/widgets/my-timesheet-status-kpi.tsx.ejs +17 -0
  256. package/hedhog/frontend/widgets/my-weekly-journey.tsx.ejs +17 -0
  257. package/hedhog/frontend/widgets/portfolio-costs-kpi.tsx.ejs +17 -0
  258. package/hedhog/frontend/widgets/portfolio-effort-kpi.tsx.ejs +17 -0
  259. package/hedhog/frontend/widgets/portfolio-projects-kpi.tsx.ejs +17 -0
  260. package/hedhog/frontend/widgets/portfolio-risk-kpi.tsx.ejs +17 -0
  261. package/hedhog/frontend/widgets/project-status-overview.tsx.ejs +17 -0
  262. package/hedhog/frontend/widgets/shared-operations-widget.tsx.ejs +170 -0
  263. package/hedhog/frontend/widgets/strategic-deadlines.tsx.ejs +17 -0
  264. package/hedhog/frontend/widgets/team-approval-queue.tsx.ejs +17 -0
  265. package/hedhog/frontend/widgets/team-capacity-kpi.tsx.ejs +17 -0
  266. package/hedhog/frontend/widgets/team-headcount-kpi.tsx.ejs +17 -0
  267. package/hedhog/frontend/widgets/team-hours-kpi.tsx.ejs +17 -0
  268. package/hedhog/frontend/widgets/team-pending-approvals-kpi.tsx.ejs +17 -0
  269. package/hedhog/frontend/widgets/team-utilization-overview.tsx.ejs +17 -0
  270. package/hedhog/frontend/widgets/team-workload-alerts.tsx.ejs +17 -0
  271. package/hedhog/table/operations_collaborator.yaml +8 -13
  272. package/hedhog/table/operations_collaborator_invoice.yaml +35 -0
  273. package/hedhog/table/operations_collaborator_payment.yaml +32 -0
  274. package/hedhog/table/operations_project.yaml +1 -1
  275. package/hedhog/table/operations_project_file.yaml +23 -0
  276. package/hedhog/table/operations_task.yaml +76 -69
  277. package/hedhog/table/operations_task_activity.yaml +51 -0
  278. package/package.json +6 -5
  279. package/src/controllers/operations-collaborators.controller.ts +117 -8
  280. package/src/controllers/operations-projects.controller.ts +41 -8
  281. package/src/controllers/operations-tasks.controller.ts +156 -166
  282. package/src/dashboard/README.md +214 -0
  283. package/src/dashboard/components/DashboardLayout.tsx +131 -0
  284. package/src/dashboard/components/widget-registry.ts +255 -0
  285. package/src/dashboard/hooks/useDashboardData.ts +29 -0
  286. package/src/dashboard/types/widgets.types.ts +237 -0
  287. package/src/dashboard/widgets/CapacityDistribution.tsx +56 -0
  288. package/src/dashboard/widgets/EffortByProject.tsx +51 -0
  289. package/src/dashboard/widgets/HeadcountByArea.tsx +57 -0
  290. package/src/dashboard/widgets/ManagedProjectsStatus.tsx +53 -0
  291. package/src/dashboard/widgets/MyHoursPeriodKpi.tsx +87 -0
  292. package/src/dashboard/widgets/MyOpenRequestsKpi.tsx +51 -0
  293. package/src/dashboard/widgets/MyPendingRequestsList.tsx +63 -0
  294. package/src/dashboard/widgets/MyProjectAllocationsKpi.tsx +57 -0
  295. package/src/dashboard/widgets/MyQuickActions.tsx +62 -0
  296. package/src/dashboard/widgets/MyRelevantDeadlines.tsx +84 -0
  297. package/src/dashboard/widgets/MyTimesheetStatusKpi.tsx +65 -0
  298. package/src/dashboard/widgets/MyWeeklyJourney.tsx +57 -0
  299. package/src/dashboard/widgets/PortfolioCostsKpi.tsx +48 -0
  300. package/src/dashboard/widgets/PortfolioEffortKpi.tsx +41 -0
  301. package/src/dashboard/widgets/PortfolioRiskKpi.tsx +50 -0
  302. package/src/dashboard/widgets/ProjectStatusOverview.tsx +52 -0
  303. package/src/dashboard/widgets/StrategicDeadlines.tsx +93 -0
  304. package/src/dashboard/widgets/TeamApprovalQueue.tsx +70 -0
  305. package/src/dashboard/widgets/TeamCapacityKpi.tsx +50 -0
  306. package/src/dashboard/widgets/TeamHoursKpi.tsx +51 -0
  307. package/src/dashboard/widgets/TeamPendingApprovalsKpi.tsx +53 -0
  308. package/src/dashboard/widgets/TeamUtilizationOverview.tsx +62 -0
  309. package/src/dashboard/widgets/TeamWorkloadAlerts.tsx +81 -0
  310. package/src/dashboard/widgets/index.ts +26 -0
  311. package/src/dto/create-collaborator-invoice.dto.ts +39 -0
  312. package/src/dto/create-collaborator-payment.dto.ts +35 -0
  313. package/src/dto/create-collaborator.dto.ts +4 -11
  314. package/src/dto/list-collaborator-invoice.dto.ts +3 -0
  315. package/src/dto/list-collaborator-payment.dto.ts +3 -0
  316. package/src/dto/update-collaborator-invoice.dto.ts +6 -0
  317. package/src/dto/update-collaborator-payment.dto.ts +6 -0
  318. package/src/index.ts +3 -0
  319. package/src/operations.service.spec.ts +988 -764
  320. package/src/operations.service.ts +4689 -2624
package/README.md CHANGED
@@ -133,14 +133,14 @@ Todos os endpoints requerem autenticação via token JWT e controle de papéis c
133
133
  Não foram fornecidos arquivos YAML específicos para as tabelas do módulo `operations`. O acesso ao banco é realizado via Prisma, e as entidades envolvidas incluem:
134
134
 
135
135
  - **Colaboradores:** informações pessoais, cargos, departamentos, times.
136
- - **Departamentos:** nome, descrição, hierarquia.
137
- - **Cargos (Job Titles):** nome, descrição, nível.
138
- - **Projetos:** nome, descrição, datas, status.
139
- - **Tarefas:** associadas a projetos e alocações, status, descrição.
136
+ - **Departamentos:** nome, descricao, hierarquia.
137
+ - **Cargos (Job Titles):** nome, descricao, nível.
138
+ - **Projetos:** nome, descricao, datas, status.
139
+ - **Tarefas:** associadas a projetos e alocações, status, descricao.
140
140
  - **Modelos de Contratos:** templates para contratos.
141
141
  - **Contratos:** dados contratuais, status, datas, conteúdo gerado.
142
142
  - **Folhas de Ponto (Timesheets):** períodos, status, entradas.
143
- - **Entradas de Timesheet:** data, duração, tarefa, descrição.
143
+ - **Entradas de Timesheet:** data, duração, tarefa, descricao.
144
144
  - **Solicitações de Folga:** datas, tipo, status.
145
145
  - **Ajustes de Agenda:** datas, motivo, status.
146
146
  - **Processos de Aprovação:** tipo, status, histórico.
@@ -1,82 +1,27 @@
1
+ import { CreateCollaboratorInvoiceDto } from '../dto/create-collaborator-invoice.dto';
2
+ import { CreateCollaboratorPaymentDto } from '../dto/create-collaborator-payment.dto';
1
3
  import { CreateCollaboratorProjectAssignmentDto } from '../dto/create-collaborator-project-assignment.dto';
2
4
  import { CreateCollaboratorDto } from '../dto/create-collaborator.dto';
3
5
  import { ListCollaboratorsDto } from '../dto/list-collaborators.dto';
6
+ import { UpdateCollaboratorInvoiceDto } from '../dto/update-collaborator-invoice.dto';
7
+ import { UpdateCollaboratorPaymentDto } from '../dto/update-collaborator-payment.dto';
4
8
  import { UpdateCollaboratorProjectAssignmentDto } from '../dto/update-collaborator-project-assignment.dto';
5
9
  import { UpdateCollaboratorDto } from '../dto/update-collaborator.dto';
6
10
  import { OperationsService } from '../operations.service';
7
11
  export declare class OperationsCollaboratorsController {
8
12
  private readonly operationsService;
9
13
  constructor(operationsService: OperationsService);
10
- listCollaborators(user: any, filters: ListCollaboratorsDto): Promise<Record<string, unknown>[] | {
14
+ listCollaborators(user: any, filters: ListCollaboratorsDto): Promise<any[] | {
11
15
  total: number;
12
16
  lastPage: number;
13
17
  page: number;
14
18
  pageSize: number;
15
19
  prev: number;
16
20
  next: number;
17
- data: Record<string, unknown>[];
18
- }>;
19
- listCollaboratorStats(user: any, filters: ListCollaboratorsDto): Promise<{
20
- total: number;
21
- active: number;
22
- onLeave: number;
23
- withContracts: number;
24
- totalSalary: number;
25
- totalCosts: number;
26
- avgSalaryPlusCosts: number;
27
- avgSalaryPlusCostsPerCollaborator: number;
28
- }>;
29
- getMyCollaborator(user: any): Promise<{
30
- assignedProjects: Record<string, unknown>[];
31
- relatedContracts: Record<string, unknown>[];
32
- weeklySchedule: Record<string, unknown>[];
33
- equityParticipation: {
34
- participationType: string;
35
- percentage: number | null;
36
- votingPower: number | null;
37
- startDate: string | null;
38
- endDate: string | null;
39
- notes: string | null;
40
- };
41
- timesheetSummary: {
42
- totalTimesheets: number;
43
- pendingTimesheets: number;
44
- totalHours: number;
45
- };
46
- timeOffSummary: {
47
- totalRequests: number;
48
- pendingRequests: number;
49
- approvedRequests: number;
50
- };
51
- scheduleAdjustmentRequests: Record<string, unknown>[];
52
- id: number;
53
- userId: number | null;
54
- personId: number | null;
55
- personName: string | null;
56
- personAvatarId: number | null;
57
- code: string;
58
- collaboratorTypeId: number | null;
59
- collaboratorTypeSlug: string | null;
60
- collaboratorType: string | null;
61
- displayName: string;
62
- departmentId: number | null;
63
- department: string | null;
64
- jobTitleId: number | null;
65
- title: string | null;
66
- levelLabel: string | null;
67
- weeklyCapacityHours: number | null;
68
- hourlyRate: number | null;
69
- status: string;
70
- joinedAt: string | null;
71
- leftAt: string | null;
72
- notes: string | null;
73
- supervisorId: number | null;
74
- supervisorName: string | null;
75
- contractId: number | null;
76
- contractStatus: string | null;
77
- compensationAmount: number | null;
78
- activeAssignments: number;
21
+ data: any[];
79
22
  }>;
23
+ listCollaboratorStats(user: any, filters: ListCollaboratorsDto): Promise<any>;
24
+ getMyCollaborator(user: any): Promise<any>;
80
25
  getTeam(user: any): Promise<{
81
26
  teamMembers: Record<string, unknown>[];
82
27
  projectCount: number;
@@ -102,159 +47,59 @@ export declare class OperationsCollaboratorsController {
102
47
  amountType: string;
103
48
  createdAt: string;
104
49
  }[]>;
105
- getCollaborator(user: any, id: number): Promise<{
106
- assignedProjects: Record<string, unknown>[];
107
- relatedContracts: Record<string, unknown>[];
108
- weeklySchedule: Record<string, unknown>[];
109
- equityParticipation: {
110
- participationType: string;
111
- percentage: number | null;
112
- votingPower: number | null;
113
- startDate: string | null;
114
- endDate: string | null;
115
- notes: string | null;
116
- };
117
- timesheetSummary: {
118
- totalTimesheets: number;
119
- pendingTimesheets: number;
120
- totalHours: number;
121
- };
122
- timeOffSummary: {
123
- totalRequests: number;
124
- pendingRequests: number;
125
- approvedRequests: number;
126
- };
127
- scheduleAdjustmentRequests: Record<string, unknown>[];
128
- id: number;
129
- userId: number | null;
130
- personId: number | null;
131
- personName: string | null;
132
- personAvatarId: number | null;
133
- code: string;
134
- collaboratorTypeId: number | null;
135
- collaboratorTypeSlug: string | null;
136
- collaboratorType: string | null;
137
- displayName: string;
138
- departmentId: number | null;
139
- department: string | null;
140
- jobTitleId: number | null;
141
- title: string | null;
142
- levelLabel: string | null;
143
- weeklyCapacityHours: number | null;
144
- hourlyRate: number | null;
145
- status: string;
146
- joinedAt: string | null;
147
- leftAt: string | null;
148
- notes: string | null;
149
- supervisorId: number | null;
150
- supervisorName: string | null;
151
- contractId: number | null;
152
- contractStatus: string | null;
153
- compensationAmount: number | null;
154
- activeAssignments: number;
50
+ getCollaboratorPaymentHistory(user: any, id: number): Promise<any>;
51
+ getCollaboratorInvoices(user: any, id: number): Promise<any>;
52
+ createCollaboratorPayment(user: any, collaboratorId: number, data: CreateCollaboratorPaymentDto): Promise<{
53
+ id: any;
54
+ collaboratorId: any;
55
+ amount: any;
56
+ paymentDate: any;
57
+ referenceMonth: any;
58
+ paymentMethod: any;
59
+ notes: any;
60
+ createdAt: any;
155
61
  }>;
156
- createCollaborator(user: any, data: CreateCollaboratorDto): Promise<{
157
- assignedProjects: Record<string, unknown>[];
158
- relatedContracts: Record<string, unknown>[];
159
- weeklySchedule: Record<string, unknown>[];
160
- equityParticipation: {
161
- participationType: string;
162
- percentage: number | null;
163
- votingPower: number | null;
164
- startDate: string | null;
165
- endDate: string | null;
166
- notes: string | null;
167
- };
168
- timesheetSummary: {
169
- totalTimesheets: number;
170
- pendingTimesheets: number;
171
- totalHours: number;
172
- };
173
- timeOffSummary: {
174
- totalRequests: number;
175
- pendingRequests: number;
176
- approvedRequests: number;
177
- };
178
- scheduleAdjustmentRequests: Record<string, unknown>[];
179
- id: number;
180
- userId: number | null;
181
- personId: number | null;
182
- personName: string | null;
183
- personAvatarId: number | null;
184
- code: string;
185
- collaboratorTypeId: number | null;
186
- collaboratorTypeSlug: string | null;
187
- collaboratorType: string | null;
188
- displayName: string;
189
- departmentId: number | null;
190
- department: string | null;
191
- jobTitleId: number | null;
192
- title: string | null;
193
- levelLabel: string | null;
194
- weeklyCapacityHours: number | null;
195
- hourlyRate: number | null;
196
- status: string;
197
- joinedAt: string | null;
198
- leftAt: string | null;
199
- notes: string | null;
200
- supervisorId: number | null;
201
- supervisorName: string | null;
202
- contractId: number | null;
203
- contractStatus: string | null;
204
- compensationAmount: number | null;
205
- activeAssignments: number;
62
+ updateCollaboratorPayment(user: any, collaboratorId: number, paymentId: number, data: UpdateCollaboratorPaymentDto): Promise<{
63
+ id: any;
64
+ collaboratorId: any;
65
+ amount: any;
66
+ paymentDate: any;
67
+ referenceMonth: any;
68
+ paymentMethod: any;
69
+ notes: any;
70
+ createdAt: any;
206
71
  }>;
207
- updateCollaborator(user: any, id: number, data: UpdateCollaboratorDto): Promise<{
208
- assignedProjects: Record<string, unknown>[];
209
- relatedContracts: Record<string, unknown>[];
210
- weeklySchedule: Record<string, unknown>[];
211
- equityParticipation: {
212
- participationType: string;
213
- percentage: number | null;
214
- votingPower: number | null;
215
- startDate: string | null;
216
- endDate: string | null;
217
- notes: string | null;
218
- };
219
- timesheetSummary: {
220
- totalTimesheets: number;
221
- pendingTimesheets: number;
222
- totalHours: number;
223
- };
224
- timeOffSummary: {
225
- totalRequests: number;
226
- pendingRequests: number;
227
- approvedRequests: number;
228
- };
229
- scheduleAdjustmentRequests: Record<string, unknown>[];
230
- id: number;
231
- userId: number | null;
232
- personId: number | null;
233
- personName: string | null;
234
- personAvatarId: number | null;
235
- code: string;
236
- collaboratorTypeId: number | null;
237
- collaboratorTypeSlug: string | null;
238
- collaboratorType: string | null;
239
- displayName: string;
240
- departmentId: number | null;
241
- department: string | null;
242
- jobTitleId: number | null;
243
- title: string | null;
244
- levelLabel: string | null;
245
- weeklyCapacityHours: number | null;
246
- hourlyRate: number | null;
247
- status: string;
248
- joinedAt: string | null;
249
- leftAt: string | null;
250
- notes: string | null;
251
- supervisorId: number | null;
252
- supervisorName: string | null;
253
- contractId: number | null;
254
- contractStatus: string | null;
255
- compensationAmount: number | null;
256
- activeAssignments: number;
72
+ deleteCollaboratorPayment(user: any, collaboratorId: number, paymentId: number): Promise<{
73
+ success: boolean;
74
+ }>;
75
+ createCollaboratorInvoice(user: any, collaboratorId: number, data: CreateCollaboratorInvoiceDto): Promise<{
76
+ id: any;
77
+ collaboratorId: any;
78
+ invoiceNumber: any;
79
+ amount: any;
80
+ issueDate: any;
81
+ dueDate: any;
82
+ status: any;
83
+ description: any;
84
+ createdAt: any;
85
+ }>;
86
+ updateCollaboratorInvoice(user: any, collaboratorId: number, invoiceId: number, data: UpdateCollaboratorInvoiceDto): Promise<{
87
+ id: any;
88
+ collaboratorId: any;
89
+ invoiceNumber: any;
90
+ amount: any;
91
+ issueDate: any;
92
+ dueDate: any;
93
+ status: any;
94
+ description: any;
95
+ createdAt: any;
96
+ }>;
97
+ deleteCollaboratorInvoice(user: any, collaboratorId: number, invoiceId: number): Promise<{
98
+ success: boolean;
257
99
  }>;
100
+ getCollaborator(user: any, id: number): Promise<any>;
101
+ createCollaborator(user: any, data: CreateCollaboratorDto): Promise<any>;
102
+ updateCollaborator(user: any, id: number, data: UpdateCollaboratorDto): Promise<any>;
258
103
  addCollaboratorProjectAssignment(collaboratorId: number, data: CreateCollaboratorProjectAssignmentDto): Promise<{
259
104
  id: number;
260
105
  created: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"operations-collaborators.controller.d.ts","sourceRoot":"","sources":["../../src/controllers/operations-collaborators.controller.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,sCAAsC,EAAE,MAAM,mDAAmD,CAAC;AAC3G,OAAO,EAAE,qBAAqB,EAAE,MAAM,gCAAgC,CAAC;AACvE,OAAO,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AACrE,OAAO,EAAE,sCAAsC,EAAE,MAAM,mDAAmD,CAAC;AAC3G,OAAO,EAAE,qBAAqB,EAAE,MAAM,gCAAgC,CAAC;AACvE,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAE1D,qBAEa,iCAAiC;IAChC,OAAO,CAAC,QAAQ,CAAC,iBAAiB;gBAAjB,iBAAiB,EAAE,iBAAiB;IAGjE,iBAAiB,CAAS,IAAI,KAAA,EAAW,OAAO,EAAE,oBAAoB;;;;;;;;;IAQtE,qBAAqB,CAAS,IAAI,KAAA,EAAW,OAAO,EAAE,oBAAoB;;;;;;;;;;IAQ1E,iBAAiB,CAAS,IAAI,KAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAK9B,OAAO,CAAS,IAAI,KAAA;;;;;;;;;;;;;;IAKpB,kCAAkC,CACxB,IAAI,KAAA,EACe,EAAE,EAAE,MAAM;;;;;;;;;;;IASvC,eAAe,CAAS,IAAI,KAAA,EAA6B,EAAE,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAQnE,kBAAkB,CAAS,IAAI,KAAA,EAAU,IAAI,EAAE,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAKpE,kBAAkB,CACR,IAAI,KAAA,EACe,EAAE,EAAE,MAAM,EAC7B,IAAI,EAAE,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAUrC,gCAAgC,CACS,cAAc,EAAE,MAAM,EACrD,IAAI,EAAE,sCAAsC;;;;IAStD,mCAAmC,CACM,cAAc,EAAE,MAAM,EAC3B,SAAS,EAAE,MAAM,EAC3C,IAAI,EAAE,sCAAsC;;;CAQvD"}
1
+ {"version":3,"file":"operations-collaborators.controller.d.ts","sourceRoot":"","sources":["../../src/controllers/operations-collaborators.controller.ts"],"names":[],"mappings":"AAYA,OAAO,EAAE,4BAA4B,EAAE,MAAM,wCAAwC,CAAC;AACtF,OAAO,EAAE,4BAA4B,EAAE,MAAM,wCAAwC,CAAC;AACtF,OAAO,EA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,MAAM,EACzC,IAAI,EAAE,4BAA4B;;;;;;;;;;;IAU5C,yBAAyB,CACf,IAAI,KAAA,EACe,cAAc,EAAE,MAAM,EACf,SAAS,EAAE,MAAM,EAC3C,IAAI,EAAE,4BAA4B;;;;;;;;;;;IAW5C,yBAAyB,CACf,IAAI,KAAA,EACe,cAAc,EAAE,MAAM,EACf,SAAS,EAAE,MAAM;;;IAUrD,eAAe,CAAS,IAAI,KAAA,EAA6B,EAAE,EAAE,MAAM;IAQnE,kBAAkB,CAAS,IAAI,KAAA,EAAU,IAAI,EAAE,qBAAqB;IAKpE,kBAAkB,CACR,IAAI,KAAA,EACe,EAAE,EAAE,MAAM,EAC7B,IAAI,EAAE,qBAAqB;IAUrC,gCAAgC,CACS,cAAc,EAAE,MAAM,EACrD,IAAI,EAAE,sCAAsC;;;;IAStD,mCAAmC,CACM,cAAc,EAAE,MAAM,EAC3B,SAAS,EAAE,MAAM,EAC3C,IAAI,EAAE,sCAAsC;;;CAQvD"}
@@ -15,9 +15,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
15
15
  exports.OperationsCollaboratorsController = void 0;
16
16
  const api_1 = require("@hed-hog/api");
17
17
  const common_1 = require("@nestjs/common");
18
+ const create_collaborator_invoice_dto_1 = require("../dto/create-collaborator-invoice.dto");
19
+ const create_collaborator_payment_dto_1 = require("../dto/create-collaborator-payment.dto");
18
20
  const create_collaborator_project_assignment_dto_1 = require("../dto/create-collaborator-project-assignment.dto");
19
21
  const create_collaborator_dto_1 = require("../dto/create-collaborator.dto");
20
22
  const list_collaborators_dto_1 = require("../dto/list-collaborators.dto");
23
+ const update_collaborator_invoice_dto_1 = require("../dto/update-collaborator-invoice.dto");
24
+ const update_collaborator_payment_dto_1 = require("../dto/update-collaborator-payment.dto");
21
25
  const update_collaborator_project_assignment_dto_1 = require("../dto/update-collaborator-project-assignment.dto");
22
26
  const update_collaborator_dto_1 = require("../dto/update-collaborator.dto");
23
27
  const operations_service_1 = require("../operations.service");
@@ -40,6 +44,30 @@ let OperationsCollaboratorsController = class OperationsCollaboratorsController
40
44
  getCollaboratorCompensationHistory(user, id) {
41
45
  return this.operationsService.getCollaboratorCompensationHistory(Number((user === null || user === void 0 ? void 0 : user.id) || 0), id);
42
46
  }
47
+ getCollaboratorPaymentHistory(user, id) {
48
+ return this.operationsService.getCollaboratorPaymentHistory(Number((user === null || user === void 0 ? void 0 : user.id) || 0), id);
49
+ }
50
+ getCollaboratorInvoices(user, id) {
51
+ return this.operationsService.getCollaboratorInvoices(Number((user === null || user === void 0 ? void 0 : user.id) || 0), id);
52
+ }
53
+ createCollaboratorPayment(user, collaboratorId, data) {
54
+ return this.operationsService.createCollaboratorPayment(Number((user === null || user === void 0 ? void 0 : user.id) || 0), collaboratorId, data);
55
+ }
56
+ updateCollaboratorPayment(user, collaboratorId, paymentId, data) {
57
+ return this.operationsService.updateCollaboratorPayment(Number((user === null || user === void 0 ? void 0 : user.id) || 0), collaboratorId, paymentId, data);
58
+ }
59
+ deleteCollaboratorPayment(user, collaboratorId, paymentId) {
60
+ return this.operationsService.deleteCollaboratorPayment(Number((user === null || user === void 0 ? void 0 : user.id) || 0), collaboratorId, paymentId);
61
+ }
62
+ createCollaboratorInvoice(user, collaboratorId, data) {
63
+ return this.operationsService.createCollaboratorInvoice(Number((user === null || user === void 0 ? void 0 : user.id) || 0), collaboratorId, data);
64
+ }
65
+ updateCollaboratorInvoice(user, collaboratorId, invoiceId, data) {
66
+ return this.operationsService.updateCollaboratorInvoice(Number((user === null || user === void 0 ? void 0 : user.id) || 0), collaboratorId, invoiceId, data);
67
+ }
68
+ deleteCollaboratorInvoice(user, collaboratorId, invoiceId) {
69
+ return this.operationsService.deleteCollaboratorInvoice(Number((user === null || user === void 0 ? void 0 : user.id) || 0), collaboratorId, invoiceId);
70
+ }
43
71
  getCollaborator(user, id) {
44
72
  return this.operationsService.getCollaboratorByIdForUser(Number((user === null || user === void 0 ? void 0 : user.id) || 0), id);
45
73
  }
@@ -95,6 +123,78 @@ __decorate([
95
123
  __metadata("design:paramtypes", [Object, Number]),
96
124
  __metadata("design:returntype", void 0)
97
125
  ], OperationsCollaboratorsController.prototype, "getCollaboratorCompensationHistory", null);
126
+ __decorate([
127
+ (0, common_1.Get)('collaborators/:id/payment-history'),
128
+ __param(0, (0, api_1.User)()),
129
+ __param(1, (0, common_1.Param)('id', common_1.ParseIntPipe)),
130
+ __metadata("design:type", Function),
131
+ __metadata("design:paramtypes", [Object, Number]),
132
+ __metadata("design:returntype", void 0)
133
+ ], OperationsCollaboratorsController.prototype, "getCollaboratorPaymentHistory", null);
134
+ __decorate([
135
+ (0, common_1.Get)('collaborators/:id/invoices'),
136
+ __param(0, (0, api_1.User)()),
137
+ __param(1, (0, common_1.Param)('id', common_1.ParseIntPipe)),
138
+ __metadata("design:type", Function),
139
+ __metadata("design:paramtypes", [Object, Number]),
140
+ __metadata("design:returntype", void 0)
141
+ ], OperationsCollaboratorsController.prototype, "getCollaboratorInvoices", null);
142
+ __decorate([
143
+ (0, common_1.Post)('collaborators/:id/payment-history'),
144
+ __param(0, (0, api_1.User)()),
145
+ __param(1, (0, common_1.Param)('id', common_1.ParseIntPipe)),
146
+ __param(2, (0, common_1.Body)()),
147
+ __metadata("design:type", Function),
148
+ __metadata("design:paramtypes", [Object, Number, create_collaborator_payment_dto_1.CreateCollaboratorPaymentDto]),
149
+ __metadata("design:returntype", void 0)
150
+ ], OperationsCollaboratorsController.prototype, "createCollaboratorPayment", null);
151
+ __decorate([
152
+ (0, common_1.Patch)('collaborators/:id/payment-history/:paymentId'),
153
+ __param(0, (0, api_1.User)()),
154
+ __param(1, (0, common_1.Param)('id', common_1.ParseIntPipe)),
155
+ __param(2, (0, common_1.Param)('paymentId', common_1.ParseIntPipe)),
156
+ __param(3, (0, common_1.Body)()),
157
+ __metadata("design:type", Function),
158
+ __metadata("design:paramtypes", [Object, Number, Number, update_collaborator_payment_dto_1.UpdateCollaboratorPaymentDto]),
159
+ __metadata("design:returntype", void 0)
160
+ ], OperationsCollaboratorsController.prototype, "updateCollaboratorPayment", null);
161
+ __decorate([
162
+ (0, common_1.Delete)('collaborators/:id/payment-history/:paymentId'),
163
+ __param(0, (0, api_1.User)()),
164
+ __param(1, (0, common_1.Param)('id', common_1.ParseIntPipe)),
165
+ __param(2, (0, common_1.Param)('paymentId', common_1.ParseIntPipe)),
166
+ __metadata("design:type", Function),
167
+ __metadata("design:paramtypes", [Object, Number, Number]),
168
+ __metadata("design:returntype", void 0)
169
+ ], OperationsCollaboratorsController.prototype, "deleteCollaboratorPayment", null);
170
+ __decorate([
171
+ (0, common_1.Post)('collaborators/:id/invoices'),
172
+ __param(0, (0, api_1.User)()),
173
+ __param(1, (0, common_1.Param)('id', common_1.ParseIntPipe)),
174
+ __param(2, (0, common_1.Body)()),
175
+ __metadata("design:type", Function),
176
+ __metadata("design:paramtypes", [Object, Number, create_collaborator_invoice_dto_1.CreateCollaboratorInvoiceDto]),
177
+ __metadata("design:returntype", void 0)
178
+ ], OperationsCollaboratorsController.prototype, "createCollaboratorInvoice", null);
179
+ __decorate([
180
+ (0, common_1.Patch)('collaborators/:id/invoices/:invoiceId'),
181
+ __param(0, (0, api_1.User)()),
182
+ __param(1, (0, common_1.Param)('id', common_1.ParseIntPipe)),
183
+ __param(2, (0, common_1.Param)('invoiceId', common_1.ParseIntPipe)),
184
+ __param(3, (0, common_1.Body)()),
185
+ __metadata("design:type", Function),
186
+ __metadata("design:paramtypes", [Object, Number, Number, update_collaborator_invoice_dto_1.UpdateCollaboratorInvoiceDto]),
187
+ __metadata("design:returntype", void 0)
188
+ ], OperationsCollaboratorsController.prototype, "updateCollaboratorInvoice", null);
189
+ __decorate([
190
+ (0, common_1.Delete)('collaborators/:id/invoices/:invoiceId'),
191
+ __param(0, (0, api_1.User)()),
192
+ __param(1, (0, common_1.Param)('id', common_1.ParseIntPipe)),
193
+ __param(2, (0, common_1.Param)('invoiceId', common_1.ParseIntPipe)),
194
+ __metadata("design:type", Function),
195
+ __metadata("design:paramtypes", [Object, Number, Number]),
196
+ __metadata("design:returntype", void 0)
197
+ ], OperationsCollaboratorsController.prototype, "deleteCollaboratorInvoice", null);
98
198
  __decorate([
99
199
  (0, common_1.Get)('collaborators/:id'),
100
200
  __param(0, (0, api_1.User)()),
@@ -1 +1 @@
1
- {"version":3,"file":"operations-collaborators.controller.js","sourceRoot":"","sources":["../../src/controllers/operations-collaborators.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,sCAA0C;AAC1C,2CASwB;AACxB,kHAA2G;AAC3G,4EAAuE;AACvE,0EAAqE;AACrE,kHAA2G;AAC3G,4EAAuE;AACvE,8DAA0D;AAInD,IAAM,iCAAiC,GAAvC,MAAM,iCAAiC;IAC5C,YAA6B,iBAAoC;QAApC,sBAAiB,GAAjB,iBAAiB,CAAmB;IAAG,CAAC;IAGrE,iBAAiB,CAAS,IAAI,EAAW,OAA6B;QACpE,OAAO,IAAI,CAAC,iBAAiB,CAAC,iBAAiB,CAC7C,MAAM,CAAC,CAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,EAAE,KAAI,CAAC,CAAC,EACrB,OAAO,CACR,CAAC;IACJ,CAAC;IAGD,qBAAqB,CAAS,IAAI,EAAW,OAA6B;QACxE,OAAO,IAAI,CAAC,iBAAiB,CAAC,oBAAoB,CAChD,MAAM,CAAC,CAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,EAAE,KAAI,CAAC,CAAC,EACrB,OAAO,CACR,CAAC;IACJ,CAAC;IAGD,iBAAiB,CAAS,IAAI;QAC5B,OAAO,IAAI,CAAC,iBAAiB,CAAC,iBAAiB,CAAC,MAAM,CAAC,CAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,EAAE,KAAI,CAAC,CAAC,CAAC,CAAC;IACzE,CAAC;IAGD,OAAO,CAAS,IAAI;QAClB,OAAO,IAAI,CAAC,iBAAiB,CAAC,OAAO,CAAC,MAAM,CAAC,CAAA,IAAI,aAAJ,IAAI,uB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AA;IACrC,WAAA,IAAA,aAAI,GAAE,CAAA;;6CAAO,mFAAsC;;yFAMrD;AAGD;IADC,IAAA,cAAK,EAAC,mDAAmD,CAAC;IAExD,WAAA,IAAA,cAAK,EAAC,gBAAgB,EAAE,qBAAY,CAAC,CAAA;IACrC,WAAA,IAAA,cAAK,EAAC,WAAW,EAAE,qBAAY,CAAC,CAAA;IAChC,WAAA,IAAA,aAAI,GAAE,CAAA;;qDAAO,mFAAsC;;4FAOrD;4CAxFU,iCAAiC;IAF7C,IAAA,UAAI,GAAE;IACN,IAAA,mBAAU,EAAC,YAAY,CAAC;qCAEyB,sCAAiB;GADtD,iCAAiC,CAyF7C"}
1
+ {"version":3,"file":"operations-collaborators.controller.js","sourceRoot":"","sources":["../../src/controllers/operations-collaborators.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,sCAA0C;AAC1C,2CAUwB;AACxB,4FAAsF;AACtF,4FAAsF;AACtF,kHAA2G;AAC3G,4EAAuE;AACvE,0EAAqE;AACrE,4FAAsF;AACtF,4FAAsF;AACtF,kHAA2G;AAC3G,4EAAuE;AACvE,8DAA0D;AAInD,IAAM,iCAAiC,GAAvC,MAAM,iCAAiC;IAC5C,YAA6B,iBAAoC;QAApC,sBAAiB,GAAjB,iBAAiB,CAAmB;IAAG,CAAC;IAGrE,iBAAiB,CAAS,IAAI,EAAW,OAA6B;QACpE,OAAO,IAAI,CAAC,iBAAiB,CAAC,iBAAiB,CAC7C,MAAM,CAAC,CAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,EAAE,KAAI,CAAC,CAAC,EACrB,OAAO,CACR,CAAC;IACJ,CAAC;IAGD,qBAAqB,CAAS,IAAI,EAAW,OAA6B;QACxE,OAAO,IAAI,CAAC,iBAAiB,CAAC,oBAAoB,CAChD,MAAM,CAAC,CAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,EAAE,KAAI,CAAC,CAAC,EACrB,OAAO,CACR,CAAC;IACJ,CA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;;qDAAO,+CAAqB;;2EAOpC;AAGD;IADC,IAAA,aAAI,EAAC,wCAAwC,CAAC;IAE5C,WAAA,IAAA,cAAK,EAAC,gBAAgB,EAAE,qBAAY,CAAC,CAAA;IACrC,WAAA,IAAA,aAAI,GAAE,CAAA;;6CAAO,mFAAsC;;yFAMrD;AAGD;IADC,IAAA,cAAK,EAAC,mDAAmD,CAAC;IAExD,WAAA,IAAA,cAAK,EAAC,gBAAgB,EAAE,qBAAY,CAAC,CAAA;IACrC,WAAA,IAAA,cAAK,EAAC,WAAW,EAAE,qBAAY,CAAC,CAAA;IAChC,WAAA,IAAA,aAAI,GAAE,CAAA;;qDAAO,mFAAsC;;4FAOrD;4CAhMU,iCAAiC;IAF7C,IAAA,UAAI,GAAE;IACN,IAAA,mBAAU,EAAC,YAAY,CAAC;qCAEyB,sCAAiB;GADtD,iCAAiC,CAiM7C"}
@@ -38,8 +38,8 @@ export declare class OperationsContractsController {
38
38
  effectiveDate: string | null;
39
39
  budgetAmount: number | null;
40
40
  monthlyHourCap: number | null;
41
- status: "active" | "draft" | "expired" | "archived" | "closed" | "under_review" | "renewal";
42
- creationMode: ("blank" | "template" | "upload" | "duplicate") | null;
41
+ status: "active" | "closed" | "draft" | "expired" | "archived" | "under_review" | "renewal";
42
+ creationMode: ("template" | "blank" | "upload" | "duplicate") | null;
43
43
  wizardStep: number | null;
44
44
  description: string | null;
45
45
  contentHtml: string | null;
@@ -111,8 +111,8 @@ export declare class OperationsContractsController {
111
111
  effectiveDate: string | null;
112
112
  budgetAmount: number | null;
113
113
  monthlyHourCap: number | null;
114
- status: "active" | "draft" | "expired" | "archived" | "closed" | "under_review" | "renewal";
115
- creationMode: ("blank" | "template" | "upload" | "duplicate") | null;
114
+ status: "active" | "closed" | "draft" | "expired" | "archived" | "under_review" | "renewal";
115
+ creationMode: ("template" | "blank" | "upload" | "duplicate") | null;
116
116
  wizardStep: number | null;
117
117
  description: string | null;
118
118
  contentHtml: string | null;
@@ -184,8 +184,8 @@ export declare class OperationsContractsController {
184
184
  effectiveDate: string | null;
185
185
  budgetAmount: number | null;
186
186
  monthlyHourCap: number | null;
187
- status: "active" | "draft" | "expired" | "archived" | "closed" | "under_review" | "renewal";
188
- creationMode: ("blank" | "template" | "upload" | "duplicate") | null;
187
+ status: "active" | "closed" | "draft" | "expired" | "archived" | "under_review" | "renewal";
188
+ creationMode: ("template" | "blank" | "upload" | "duplicate") | null;
189
189
  wizardStep: number | null;
190
190
  description: string | null;
191
191
  contentHtml: string | null;
@@ -235,5 +235,30 @@ export declare class OperationsProjectsController {
235
235
  myRoleLabel: string | null;
236
236
  teamSize: number;
237
237
  }>;
238
+ deleteProject(user: any, id: number): Promise<{
239
+ success: boolean;
240
+ }>;
241
+ listProjectFiles(user: any, id: number): Promise<{
242
+ id: number;
243
+ file_id: number;
244
+ filename: string;
245
+ size: number;
246
+ mimetype: string;
247
+ created_at: Date;
248
+ }[]>;
249
+ addProjectFile(user: any, id: number, file: MulterFile): Promise<{
250
+ filename: string;
251
+ location: string;
252
+ id: number;
253
+ path: string;
254
+ size: number;
255
+ created_at: Date;
256
+ updated_at: Date;
257
+ provider_id: number;
258
+ mimetype_id: number;
259
+ }>;
260
+ removeProjectFile(user: any, id: number, fileRelationId: number): Promise<{
261
+ success: boolean;
262
+ }>;
238
263
  }
239
264
  //# sourceMappingURL=operations-projects.controller.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"operations-projects.controller.d.ts","sourceRoot":"","sources":["../../src/controllers/operations-projects.controller.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAChE,OAAO,EAAE,+BAA+B,EAAE,MAAM,iCAAiC,CAAC;AAClF,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAC3D,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAE1D,qBAEa,4BAA4B;IAC3B,OAAO,CAAC,QAAQ,CAAC,iBAAiB;gBAAjB,iBAAiB,EAAE,iBAAiB;IAGjE,kBAAkB,CACR,IAAI,KAAA,EACH,gBAAgB,EAAE,+BAA+B;;;;;;;;;;;;;;;;;;;;IAS5D,cAAc,CAAS,IAAI,KAAA,EAAW,OAAO,EAAE,iBAAiB;;;;;;;;;IAKhE,mBAAmB,CAAS,IAAI,KAAA,EAA6B,EAAE,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;IAKvE,YAAY,CAAS,IAAI,KAAA,EAAW,OAAO,EAAE,eAAe;;;;;;;;;IAK5D,eAAe,CAAS,IAAI,KAAA,EAA6B,EAAE,EAAE,MAAM;;;;;;;;;;;;;;;IAKnE,UAAU,CAAS,IAAI,KAAA,EAA6B,EAAE,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAK9D,aAAa,CAAS,IAAI,KAAA,EAAU,IAAI,KAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAKxC,aAAa,CAAS,IAAI,KAAA,EAA6B,EAAE,EAAE,MAAM,EAAU,IAAI,KAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGhF"}
1
+ {"version":3,"file":"operations-projects.controller.d.ts","sourceRoot":"","sources":["../../src/controllers/operations-projects.controller.ts"],"names":[],"mappings":"AAeA,OAAO,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAChE,OAAO,EAAE,+BAA+B,EAAE,MAAM,iCAAiC,CAAC;AAClF,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAC3D,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAE1D,qBAEa,4BAA4B;IAC3B,OAAO,CAAC,QAAQ,CAAC,iBAAiB;gBAAjB,iBAAiB,EAAE,iBAAiB;IAGjE,kBAAkB,CACR,IAAI,KAAA,EACH,gBAAgB,EAAE,+BAA+B;;;;;;;;;;;;;;;;;;;;IAS5D,cAAc,CAAS,IAAI,KAAA,EAAW,OAAO,EAAE,iBAAiB;;;;;;;;;IAKhE,mBAAmB,CAAS,IAAI,KAAA,EAA6B,EAAE,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;IAKvE,YAAY,CAAS,IAAI,KAAA,EAAW,OAAO,EAAE,eAAe;;;;;;;;;IAK5D,eAAe,CAAS,IAAI,KAAA,EAA6B,EAAE,EAAE,MAAM;;;;;;;;;;;;;;;IAKnE,UAAU,CAAS,IAAI,KAAA,EAA6B,EAAE,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAK9D,aAAa,CAAS,IAAI,KAAA,EAAU,IAAI,KAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAKxC,aAAa,CAAS,IAAI,KAAA,EAA6B,EAAE,EAAE,MAAM,EAAU,IAAI,KAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAK/E,aAAa,CAAS,IAAI,KAAA,EAA6B,EAAE,EAAE,MAAM;;;IAKjE,gBAAgB,CAAS,IAAI,KAAA,EAA6B,EAAE,EAAE,MAAM;;;;;;;;IAMpE,cAAc,CACJ,IAAI,KAAA,EACe,EAAE,EAAE,MAAM,EACrB,IAAI,EAAE,UAAU;;;;;;;;;;;IAMlC,iBAAiB,CACP,IAAI,KAAA,EACe,EAAE,EAAE,MAAM,EACE,cAAc,EAAE,MAAM;;;CAIhE"}
@@ -15,6 +15,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
15
15
  exports.OperationsProjectsController = void 0;
16
16
  const api_1 = require("@hed-hog/api");
17
17
  const common_1 = require("@nestjs/common");
18
+ const platform_express_1 = require("@nestjs/platform-express");
18
19
  const list_my_projects_dto_1 = require("../dto/list-my-projects.dto");
19
20
  const list_project_options_dto_1 = require("../dto/list-project-options.dto");
20
21
  const list_projects_dto_1 = require("../dto/list-projects.dto");
@@ -47,6 +48,18 @@ let OperationsProjectsController = class OperationsProjectsController {
47
48
  updateProject(user, id, data) {
48
49
  return this.operationsService.updateProject(Number((user === null || user === void 0 ? void 0 : user.id) || 0), id, data);
49
50
  }
51
+ deleteProject(user, id) {
52
+ return this.operationsService.deleteProject(Number((user === null || user === void 0 ? void 0 : user.id) || 0), id);
53
+ }
54
+ listProjectFiles(user, id) {
55
+ return this.operationsService.listProjectFiles(Number((user === null || user === void 0 ? void 0 : user.id) || 0), id);
56
+ }
57
+ addProjectFile(user, id, file) {
58
+ return this.operationsService.addProjectFile(Number((user === null || user === void 0 ? void 0 : user.id) || 0), id, file);
59
+ }
60
+ removeProjectFile(user, id, fileRelationId) {
61
+ return this.operationsService.removeProjectFile(Number((user === null || user === void 0 ? void 0 : user.id) || 0), id, fileRelationId);
62
+ }
50
63
  };
51
64
  exports.OperationsProjectsController = OperationsProjectsController;
52
65
  __decorate([
@@ -114,6 +127,41 @@ __decorate([
114
127
  __metadata("design:paramtypes", [Object, Number, Object]),
115
128
  __metadata("design:returntype", void 0)
116
129
  ], OperationsProjectsController.prototype, "updateProject", null);
130
+ __decorate([
131
+ (0, common_1.Delete)('projects/:id'),
132
+ __param(0, (0, api_1.User)()),
133
+ __param(1, (0, common_1.Param)('id', common_1.ParseIntPipe)),
134
+ __metadata("design:type", Function),
135
+ __metadata("design:paramtypes", [Object, Number]),
136
+ __metadata("design:returntype", void 0)
137
+ ], OperationsProjectsController.prototype, "deleteProject", null);
138
+ __decorate([
139
+ (0, common_1.Get)('projects/:id/files'),
140
+ __param(0, (0, api_1.User)()),
141
+ __param(1, (0, common_1.Param)('id', common_1.ParseIntPipe)),
142
+ __metadata("design:type", Function),
143
+ __metadata("design:paramtypes", [Object, Number]),
144
+ __metadata("design:returntype", void 0)
145
+ ], OperationsProjectsController.prototype, "listProjectFiles", null);
146
+ __decorate([
147
+ (0, common_1.Post)('projects/:id/files'),
148
+ (0, common_1.UseInterceptors)((0, platform_express_1.FileInterceptor)('file')),
149
+ __param(0, (0, api_1.User)()),
150
+ __param(1, (0, common_1.Param)('id', common_1.ParseIntPipe)),
151
+ __param(2, (0, common_1.UploadedFile)()),
152
+ __metadata("design:type", Function),
153
+ __metadata("design:paramtypes", [Object, Number, Object]),
154
+ __metadata("design:returntype", void 0)
155
+ ], OperationsProjectsController.prototype, "addProjectFile", null);
156
+ __decorate([
157
+ (0, common_1.Delete)('projects/:id/files/:fileRelationId'),
158
+ __param(0, (0, api_1.User)()),
159
+ __param(1, (0, common_1.Param)('id', common_1.ParseIntPipe)),
160
+ __param(2, (0, common_1.Param)('fileRelationId', common_1.ParseIntPipe)),
161
+ __metadata("design:type", Function),
162
+ __metadata("design:paramtypes", [Object, Number, Number]),
163
+ __metadata("design:returntype", void 0)
164
+ ], OperationsProjectsController.prototype, "removeProjectFile", null);
117
165
  exports.OperationsProjectsController = OperationsProjectsController = __decorate([
118
166
  (0, api_1.Role)(),
119
167
  (0, common_1.Controller)('operations'),
@@ -1 +1 @@
1
- {"version":3,"file":"operations-projects.controller.js","sourceRoot":"","sources":["../../src/controllers/operations-projects.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,sCAA0C;AAC1C,2CASwB;AACxB,sEAAgE;AAChE,8EAAkF;AAClF,gEAA2D;AAC3D,8DAA0D;AAInD,IAAM,4BAA4B,GAAlC,MAAM,4BAA4B;IACvC,YAA6B,iBAAoC;QAApC,sBAAiB,GAAjB,iBAAiB,CAAmB;IAAG,CAAC;IAGrE,kBAAkB,CACR,IAAI,EACH,gBAAiD;QAE1D,OAAO,IAAI,CAAC,iBAAiB,CAAC,kBAAkB,CAC9C,MAAM,CAAC,CAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,EAAE,KAAI,CAAC,CAAC,EACrB,gBAAgB,CACjB,CAAC;IACJ,CAAC;IAGD,cAAc,CAAS,IAAI,EAAW,OAA0B;QAC9D,OAAO,IAAI,CAAC,iBAAiB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C,cAAc,CAAC;IACP,WAAA,IAAA,UAAI,GAAE,CAAA;IAAQ,WAAA,IAAA,cAAK,EAAC,IAAI,EAAE,qBAAY,CAAC,CAAA;IAAc,WAAA,IAAA,aAAI,GAAE,CAAA;;;;iEAEzE;uCA/CU,4BAA4B;IAFxC,IAAA,UAAI,GAAE;IACN,IAAA,mBAAU,EAAC,YAAY,CAAC;qCAEyB,sCAAiB;GADtD,4BAA4B,CAgDxC"}
1
+ {"version":3,"file":"operations-projects.controller.js","sourceRoot":"","sources":["../../src/controllers/operations-projects.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,sCAA0C;AAC1C,2CAYwB;AACxB,+DAA2D;AAC3D,sEAAgE;AAChE,8EAAkF;AAClF,gEAA2D;AAC3D,8DAA0D;AAInD,IAAM,4BAA4B,GAAlC,MAAM,4BAA4B;IACvC,YAA6B,iBAAoC;QAApC,sBAAiB,GAAjB,iBAAiB,CAAmB;IAAG,CAAC;IAGrE,kBAAkB,CACR,IAAI,EACH,gBAAiD;QAE1D,OAAO,IAAI,CAAC,iBAAiB,CAAC,kBAAkB,CAC9C,MAAM,CAAC,CAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,EAAE,KAAI,CAAC,CAAC,EACrB,gBAAgB,CACjB,CAAC;IACJ,CAAC;IAGD,cAAc,CAAS,IAAI,EAAW,OAA0B;QAC9D,OAAO,IAAI,CAAC,iBAAiB,CAAC,cAAc,CAAC,MAAM,CAAC,CAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,EAAE,KAAI,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC;IAC/E,CAAC;IAGD,mBAAmB,CAAS,IAAI,EAA6B,EAAU;QACrE,OAAO,IAAI,CAAC,iBAAiB,CAAC,mBAAmB,CAAC,MAAM,CAAC,CAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,EAAE,KAAI,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;IAC/E,CAA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