@hed-hog/operations 0.0.330 → 0.0.331

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 (281) hide show
  1. package/README.md +5 -5
  2. package/dist/controllers/operations-collaborators.controller.d.ts +7 -216
  3. package/dist/controllers/operations-collaborators.controller.d.ts.map +1 -1
  4. package/dist/controllers/operations-contracts.controller.d.ts +6 -6
  5. package/dist/controllers/operations-projects.controller.d.ts +25 -0
  6. package/dist/controllers/operations-projects.controller.d.ts.map +1 -1
  7. package/dist/controllers/operations-projects.controller.js +48 -0
  8. package/dist/controllers/operations-projects.controller.js.map +1 -1
  9. package/dist/controllers/operations-reports.controller.d.ts +1 -1
  10. package/dist/controllers/operations-tasks.controller.d.ts +34 -9
  11. package/dist/controllers/operations-tasks.controller.d.ts.map +1 -1
  12. package/dist/controllers/operations-tasks.controller.js +43 -32
  13. package/dist/controllers/operations-tasks.controller.js.map +1 -1
  14. package/dist/controllers/operations-timesheets.controller.d.ts +9 -9
  15. package/dist/dashboard/components/DashboardLayout.d.ts +30 -0
  16. package/dist/dashboard/components/DashboardLayout.d.ts.map +1 -0
  17. package/dist/dashboard/components/DashboardLayout.js +87 -0
  18. package/dist/dashboard/components/DashboardLayout.js.map +1 -0
  19. package/dist/dashboard/components/widget-registry.d.ts +23 -0
  20. package/dist/dashboard/components/widget-registry.d.ts.map +1 -0
  21. package/dist/dashboard/components/widget-registry.js +245 -0
  22. package/dist/dashboard/components/widget-registry.js.map +1 -0
  23. package/dist/dashboard/hooks/useDashboardData.d.ts +20 -0
  24. package/dist/dashboard/hooks/useDashboardData.d.ts.map +1 -0
  25. package/dist/dashboard/hooks/useDashboardData.js +24 -0
  26. package/dist/dashboard/hooks/useDashboardData.js.map +1 -0
  27. package/dist/dashboard/types/widgets.types.d.ts +233 -0
  28. package/dist/dashboard/types/widgets.types.d.ts.map +1 -0
  29. package/dist/dashboard/types/widgets.types.js +6 -0
  30. package/dist/dashboard/types/widgets.types.js.map +1 -0
  31. package/dist/dashboard/widgets/CapacityDistribution.d.ts +23 -0
  32. package/dist/dashboard/widgets/CapacityDistribution.d.ts.map +1 -0
  33. package/dist/dashboard/widgets/CapacityDistribution.js +11 -0
  34. package/dist/dashboard/widgets/CapacityDistribution.js.map +1 -0
  35. package/dist/dashboard/widgets/EffortByProject.d.ts +22 -0
  36. package/dist/dashboard/widgets/EffortByProject.d.ts.map +1 -0
  37. package/dist/dashboard/widgets/EffortByProject.js +11 -0
  38. package/dist/dashboard/widgets/EffortByProject.js.map +1 -0
  39. package/dist/dashboard/widgets/HeadcountByArea.d.ts +24 -0
  40. package/dist/dashboard/widgets/HeadcountByArea.d.ts.map +1 -0
  41. package/dist/dashboard/widgets/HeadcountByArea.js +11 -0
  42. package/dist/dashboard/widgets/HeadcountByArea.js.map +1 -0
  43. package/dist/dashboard/widgets/ManagedProjectsStatus.d.ts +18 -0
  44. package/dist/dashboard/widgets/ManagedProjectsStatus.d.ts.map +1 -0
  45. package/dist/dashboard/widgets/ManagedProjectsStatus.js +12 -0
  46. package/dist/dashboard/widgets/ManagedProjectsStatus.js.map +1 -0
  47. package/dist/dashboard/widgets/MyHoursPeriodKpi.d.ts +22 -0
  48. package/dist/dashboard/widgets/MyHoursPeriodKpi.d.ts.map +1 -0
  49. package/dist/dashboard/widgets/MyHoursPeriodKpi.js +12 -0
  50. package/dist/dashboard/widgets/MyHoursPeriodKpi.js.map +1 -0
  51. package/dist/dashboard/widgets/MyOpenRequestsKpi.d.ts +19 -0
  52. package/dist/dashboard/widgets/MyOpenRequestsKpi.d.ts.map +1 -0
  53. package/dist/dashboard/widgets/MyOpenRequestsKpi.js +17 -0
  54. package/dist/dashboard/widgets/MyOpenRequestsKpi.js.map +1 -0
  55. package/dist/dashboard/widgets/MyPendingRequestsList.d.ts +23 -0
  56. package/dist/dashboard/widgets/MyPendingRequestsList.d.ts.map +1 -0
  57. package/dist/dashboard/widgets/MyPendingRequestsList.js +14 -0
  58. package/dist/dashboard/widgets/MyPendingRequestsList.js.map +1 -0
  59. package/dist/dashboard/widgets/MyProjectAllocationsKpi.d.ts +22 -0
  60. package/dist/dashboard/widgets/MyProjectAllocationsKpi.d.ts.map +1 -0
  61. package/dist/dashboard/widgets/MyProjectAllocationsKpi.js +11 -0
  62. package/dist/dashboard/widgets/MyProjectAllocationsKpi.js.map +1 -0
  63. package/dist/dashboard/widgets/MyQuickActions.d.ts +23 -0
  64. package/dist/dashboard/widgets/MyQuickActions.d.ts.map +1 -0
  65. package/dist/dashboard/widgets/MyQuickActions.js +18 -0
  66. package/dist/dashboard/widgets/MyQuickActions.js.map +1 -0
  67. package/dist/dashboard/widgets/MyRelevantDeadlines.d.ts +23 -0
  68. package/dist/dashboard/widgets/MyRelevantDeadlines.d.ts.map +1 -0
  69. package/dist/dashboard/widgets/MyRelevantDeadlines.js +22 -0
  70. package/dist/dashboard/widgets/MyRelevantDeadlines.js.map +1 -0
  71. package/dist/dashboard/widgets/MyTimesheetStatusKpi.d.ts +17 -0
  72. package/dist/dashboard/widgets/MyTimesheetStatusKpi.d.ts.map +1 -0
  73. package/dist/dashboard/widgets/MyTimesheetStatusKpi.js +11 -0
  74. package/dist/dashboard/widgets/MyTimesheetStatusKpi.js.map +1 -0
  75. package/dist/dashboard/widgets/MyWeeklyJourney.d.ts +21 -0
  76. package/dist/dashboard/widgets/MyWeeklyJourney.d.ts.map +1 -0
  77. package/dist/dashboard/widgets/MyWeeklyJourney.js +19 -0
  78. package/dist/dashboard/widgets/MyWeeklyJourney.js.map +1 -0
  79. package/dist/dashboard/widgets/PortfolioCostsKpi.d.ts +19 -0
  80. package/dist/dashboard/widgets/PortfolioCostsKpi.d.ts.map +1 -0
  81. package/dist/dashboard/widgets/PortfolioCostsKpi.js +12 -0
  82. package/dist/dashboard/widgets/PortfolioCostsKpi.js.map +1 -0
  83. package/dist/dashboard/widgets/PortfolioEffortKpi.d.ts +18 -0
  84. package/dist/dashboard/widgets/PortfolioEffortKpi.d.ts.map +1 -0
  85. package/dist/dashboard/widgets/PortfolioEffortKpi.js +8 -0
  86. package/dist/dashboard/widgets/PortfolioEffortKpi.js.map +1 -0
  87. package/dist/dashboard/widgets/PortfolioProjectsKpi.d.ts +22 -0
  88. package/dist/dashboard/widgets/PortfolioProjectsKpi.d.ts.map +1 -0
  89. package/dist/dashboard/widgets/PortfolioProjectsKpi.js +56 -0
  90. package/dist/dashboard/widgets/PortfolioProjectsKpi.js.map +1 -0
  91. package/dist/dashboard/widgets/PortfolioRiskKpi.d.ts +19 -0
  92. package/dist/dashboard/widgets/PortfolioRiskKpi.d.ts.map +1 -0
  93. package/dist/dashboard/widgets/PortfolioRiskKpi.js +11 -0
  94. package/dist/dashboard/widgets/PortfolioRiskKpi.js.map +1 -0
  95. package/dist/dashboard/widgets/ProjectStatusOverview.d.ts +19 -0
  96. package/dist/dashboard/widgets/ProjectStatusOverview.d.ts.map +1 -0
  97. package/dist/dashboard/widgets/ProjectStatusOverview.js +18 -0
  98. package/dist/dashboard/widgets/ProjectStatusOverview.js.map +1 -0
  99. package/dist/dashboard/widgets/StrategicDeadlines.d.ts +24 -0
  100. package/dist/dashboard/widgets/StrategicDeadlines.d.ts.map +1 -0
  101. package/dist/dashboard/widgets/StrategicDeadlines.js +22 -0
  102. package/dist/dashboard/widgets/StrategicDeadlines.js.map +1 -0
  103. package/dist/dashboard/widgets/TeamApprovalQueue.d.ts +24 -0
  104. package/dist/dashboard/widgets/TeamApprovalQueue.d.ts.map +1 -0
  105. package/dist/dashboard/widgets/TeamApprovalQueue.js +12 -0
  106. package/dist/dashboard/widgets/TeamApprovalQueue.js.map +1 -0
  107. package/dist/dashboard/widgets/TeamCapacityKpi.d.ts +18 -0
  108. package/dist/dashboard/widgets/TeamCapacityKpi.d.ts.map +1 -0
  109. package/dist/dashboard/widgets/TeamCapacityKpi.js +19 -0
  110. package/dist/dashboard/widgets/TeamCapacityKpi.js.map +1 -0
  111. package/dist/dashboard/widgets/TeamHeadcountKpi.d.ts +22 -0
  112. package/dist/dashboard/widgets/TeamHeadcountKpi.d.ts.map +1 -0
  113. package/dist/dashboard/widgets/TeamHeadcountKpi.js +56 -0
  114. package/dist/dashboard/widgets/TeamHeadcountKpi.js.map +1 -0
  115. package/dist/dashboard/widgets/TeamHoursKpi.d.ts +19 -0
  116. package/dist/dashboard/widgets/TeamHoursKpi.d.ts.map +1 -0
  117. package/dist/dashboard/widgets/TeamHoursKpi.js +13 -0
  118. package/dist/dashboard/widgets/TeamHoursKpi.js.map +1 -0
  119. package/dist/dashboard/widgets/TeamPendingApprovalsKpi.d.ts +20 -0
  120. package/dist/dashboard/widgets/TeamPendingApprovalsKpi.d.ts.map +1 -0
  121. package/dist/dashboard/widgets/TeamPendingApprovalsKpi.js +11 -0
  122. package/dist/dashboard/widgets/TeamPendingApprovalsKpi.js.map +1 -0
  123. package/dist/dashboard/widgets/TeamUtilizationOverview.d.ts +18 -0
  124. package/dist/dashboard/widgets/TeamUtilizationOverview.d.ts.map +1 -0
  125. package/dist/dashboard/widgets/TeamUtilizationOverview.js +17 -0
  126. package/dist/dashboard/widgets/TeamUtilizationOverview.js.map +1 -0
  127. package/dist/dashboard/widgets/TeamWorkloadAlerts.d.ts +24 -0
  128. package/dist/dashboard/widgets/TeamWorkloadAlerts.d.ts.map +1 -0
  129. package/dist/dashboard/widgets/TeamWorkloadAlerts.js +19 -0
  130. package/dist/dashboard/widgets/TeamWorkloadAlerts.js.map +1 -0
  131. package/dist/dashboard/widgets/index.d.ts +24 -0
  132. package/dist/dashboard/widgets/index.d.ts.map +1 -0
  133. package/dist/dashboard/widgets/index.js +54 -0
  134. package/dist/dashboard/widgets/index.js.map +1 -0
  135. package/dist/dto/create-collaborator.dto.d.ts +0 -1
  136. package/dist/dto/create-collaborator.dto.d.ts.map +1 -1
  137. package/dist/dto/create-collaborator.dto.js +0 -6
  138. package/dist/dto/create-collaborator.dto.js.map +1 -1
  139. package/dist/index.d.ts +2 -0
  140. package/dist/index.d.ts.map +1 -1
  141. package/dist/index.js +2 -0
  142. package/dist/index.js.map +1 -1
  143. package/dist/operations.controller.d.ts +42 -0
  144. package/dist/operations.controller.d.ts.map +1 -1
  145. package/dist/operations.service.d.ts +182 -268
  146. package/dist/operations.service.d.ts.map +1 -1
  147. package/dist/operations.service.js +2147 -1337
  148. package/dist/operations.service.js.map +1 -1
  149. package/dist/operations.service.spec.js +345 -174
  150. package/dist/operations.service.spec.js.map +1 -1
  151. package/hedhog/data/dashboard_component.yaml +66 -0
  152. package/hedhog/data/dashboard_item.yaml +25 -25
  153. package/hedhog/data/route.yaml +61 -0
  154. package/hedhog/frontend/app/_components/collaborator-form-screen.tsx.ejs +39 -99
  155. package/hedhog/frontend/app/_components/collaborator-picker.tsx.ejs +158 -0
  156. package/hedhog/frontend/app/_components/my-project-summary-screen.tsx.ejs +314 -116
  157. package/hedhog/frontend/app/_components/project-assignments-tab.tsx.ejs +434 -449
  158. package/hedhog/frontend/app/_components/project-details-screen.tsx.ejs +289 -412
  159. package/hedhog/frontend/app/_components/project-file-attachments.tsx.ejs +371 -0
  160. package/hedhog/frontend/app/_components/project-form-screen.tsx.ejs +426 -374
  161. package/hedhog/frontend/app/_components/task-detail-sheet.tsx.ejs +803 -581
  162. package/hedhog/frontend/app/_components/task-file-attachments.tsx.ejs +4 -1
  163. package/hedhog/frontend/app/_components/task-form-fields.tsx.ejs +406 -0
  164. package/hedhog/frontend/app/_components/task-form-sheet.tsx.ejs +629 -784
  165. package/hedhog/frontend/app/_components/task-info-display.tsx.ejs +137 -0
  166. package/hedhog/frontend/app/_components/timesheet-entry-create-sheet.tsx.ejs +306 -0
  167. package/hedhog/frontend/app/_lib/api.ts.ejs +480 -476
  168. package/hedhog/frontend/app/_lib/types.ts.ejs +66 -5
  169. package/hedhog/frontend/app/_lib/utils/format.ts.ejs +0 -2
  170. package/hedhog/frontend/app/_lib/utils/task-ui.ts.ejs +43 -0
  171. package/hedhog/frontend/app/approvals/page.tsx.ejs +6 -1
  172. package/hedhog/frontend/app/collaborator-types/page.tsx.ejs +6 -1
  173. package/hedhog/frontend/app/collaborators/page.tsx.ejs +59 -8
  174. package/hedhog/frontend/app/contracts/page.tsx.ejs +29 -8
  175. package/hedhog/frontend/app/dashboard/widgets/CapacityDistribution.tsx.ejs +84 -0
  176. package/hedhog/frontend/app/dashboard/widgets/EffortByProject.tsx.ejs +85 -0
  177. package/hedhog/frontend/app/dashboard/widgets/HeadcountByArea.tsx.ejs +101 -0
  178. package/hedhog/frontend/app/dashboard/widgets/ManagedProjectsStatus.tsx.ejs +113 -0
  179. package/hedhog/frontend/app/dashboard/widgets/MyHoursPeriodKpi.tsx.ejs +87 -0
  180. package/hedhog/frontend/app/dashboard/widgets/MyOpenRequestsKpi.tsx.ejs +97 -0
  181. package/hedhog/frontend/app/dashboard/widgets/MyPendingRequestsList.tsx.ejs +99 -0
  182. package/hedhog/frontend/app/dashboard/widgets/MyProjectAllocationsKpi.tsx.ejs +78 -0
  183. package/hedhog/frontend/app/dashboard/widgets/MyQuickActions.tsx.ejs +130 -0
  184. package/hedhog/frontend/app/dashboard/widgets/MyRelevantDeadlines.tsx.ejs +144 -0
  185. package/hedhog/frontend/app/dashboard/widgets/MyTimesheetStatusKpi.tsx.ejs +78 -0
  186. package/hedhog/frontend/app/dashboard/widgets/MyWeeklyJourney.tsx.ejs +99 -0
  187. package/hedhog/frontend/app/dashboard/widgets/PortfolioCostsKpi.tsx.ejs +112 -0
  188. package/hedhog/frontend/app/dashboard/widgets/PortfolioEffortKpi.tsx.ejs +93 -0
  189. package/hedhog/frontend/app/dashboard/widgets/PortfolioProjectsKpi.tsx.ejs +96 -0
  190. package/hedhog/frontend/app/dashboard/widgets/PortfolioRiskKpi.tsx.ejs +115 -0
  191. package/hedhog/frontend/app/dashboard/widgets/ProjectStatusOverview.tsx.ejs +120 -0
  192. package/hedhog/frontend/app/dashboard/widgets/StrategicDeadlines.tsx.ejs +146 -0
  193. package/hedhog/frontend/app/dashboard/widgets/TeamApprovalQueue.tsx.ejs +108 -0
  194. package/hedhog/frontend/app/dashboard/widgets/TeamCapacityKpi.tsx.ejs +97 -0
  195. package/hedhog/frontend/app/dashboard/widgets/TeamHeadcountKpi.tsx.ejs +100 -0
  196. package/hedhog/frontend/app/dashboard/widgets/TeamHoursKpi.tsx.ejs +104 -0
  197. package/hedhog/frontend/app/dashboard/widgets/TeamPendingApprovalsKpi.tsx.ejs +110 -0
  198. package/hedhog/frontend/app/dashboard/widgets/TeamUtilizationOverview.tsx.ejs +115 -0
  199. package/hedhog/frontend/app/dashboard/widgets/TeamWorkloadAlerts.tsx.ejs +117 -0
  200. package/hedhog/frontend/app/dashboard/widgets/index.ts.ejs +26 -0
  201. package/hedhog/frontend/app/departments/page.tsx.ejs +6 -1
  202. package/hedhog/frontend/app/my-projects/page.tsx.ejs +14 -10
  203. package/hedhog/frontend/app/my-tasks/page.tsx.ejs +328 -105
  204. package/hedhog/frontend/app/project-cost-categories/page.tsx.ejs +58 -52
  205. package/hedhog/frontend/app/project-cost-types/page.tsx.ejs +58 -51
  206. package/hedhog/frontend/app/projects/page.tsx.ejs +376 -30
  207. package/hedhog/frontend/app/schedule-adjustments/page.tsx.ejs +6 -1
  208. package/hedhog/frontend/app/time-off/page.tsx.ejs +6 -1
  209. package/hedhog/frontend/app/timesheets/page.tsx.ejs +10 -4
  210. package/hedhog/frontend/messages/en.json +238 -46
  211. package/hedhog/frontend/messages/operations/en.json +61 -52
  212. package/hedhog/frontend/messages/operations/pt.json +59 -43
  213. package/hedhog/frontend/messages/pt.json +238 -46
  214. package/hedhog/frontend/widgets/capacity-distribution.tsx.ejs +17 -0
  215. package/hedhog/frontend/widgets/effort-by-project.tsx.ejs +17 -0
  216. package/hedhog/frontend/widgets/headcount-by-area.tsx.ejs +17 -0
  217. package/hedhog/frontend/widgets/index.ts.ejs +25 -0
  218. package/hedhog/frontend/widgets/managed-projects-status.tsx.ejs +17 -0
  219. package/hedhog/frontend/widgets/my-hours-period-kpi.tsx.ejs +17 -0
  220. package/hedhog/frontend/widgets/my-open-requests-kpi.tsx.ejs +17 -0
  221. package/hedhog/frontend/widgets/my-pending-requests-list.tsx.ejs +17 -0
  222. package/hedhog/frontend/widgets/my-project-allocations-kpi.tsx.ejs +17 -0
  223. package/hedhog/frontend/widgets/my-quick-actions.tsx.ejs +17 -0
  224. package/hedhog/frontend/widgets/my-relevant-deadlines.tsx.ejs +17 -0
  225. package/hedhog/frontend/widgets/my-timesheet-status-kpi.tsx.ejs +17 -0
  226. package/hedhog/frontend/widgets/my-weekly-journey.tsx.ejs +17 -0
  227. package/hedhog/frontend/widgets/portfolio-costs-kpi.tsx.ejs +17 -0
  228. package/hedhog/frontend/widgets/portfolio-effort-kpi.tsx.ejs +17 -0
  229. package/hedhog/frontend/widgets/portfolio-projects-kpi.tsx.ejs +17 -0
  230. package/hedhog/frontend/widgets/portfolio-risk-kpi.tsx.ejs +17 -0
  231. package/hedhog/frontend/widgets/project-status-overview.tsx.ejs +17 -0
  232. package/hedhog/frontend/widgets/shared-operations-widget.tsx.ejs +170 -0
  233. package/hedhog/frontend/widgets/strategic-deadlines.tsx.ejs +17 -0
  234. package/hedhog/frontend/widgets/team-approval-queue.tsx.ejs +17 -0
  235. package/hedhog/frontend/widgets/team-capacity-kpi.tsx.ejs +17 -0
  236. package/hedhog/frontend/widgets/team-headcount-kpi.tsx.ejs +17 -0
  237. package/hedhog/frontend/widgets/team-hours-kpi.tsx.ejs +17 -0
  238. package/hedhog/frontend/widgets/team-pending-approvals-kpi.tsx.ejs +17 -0
  239. package/hedhog/frontend/widgets/team-utilization-overview.tsx.ejs +17 -0
  240. package/hedhog/frontend/widgets/team-workload-alerts.tsx.ejs +17 -0
  241. package/hedhog/table/operations_collaborator.yaml +8 -13
  242. package/hedhog/table/operations_project.yaml +1 -1
  243. package/hedhog/table/operations_project_file.yaml +23 -0
  244. package/hedhog/table/operations_task.yaml +76 -69
  245. package/hedhog/table/operations_task_activity.yaml +51 -0
  246. package/package.json +6 -5
  247. package/src/controllers/operations-projects.controller.ts +41 -8
  248. package/src/controllers/operations-tasks.controller.ts +156 -166
  249. package/src/dashboard/README.md +214 -0
  250. package/src/dashboard/components/DashboardLayout.tsx +131 -0
  251. package/src/dashboard/components/widget-registry.ts +255 -0
  252. package/src/dashboard/hooks/useDashboardData.ts +29 -0
  253. package/src/dashboard/types/widgets.types.ts +237 -0
  254. package/src/dashboard/widgets/CapacityDistribution.tsx +56 -0
  255. package/src/dashboard/widgets/EffortByProject.tsx +51 -0
  256. package/src/dashboard/widgets/HeadcountByArea.tsx +57 -0
  257. package/src/dashboard/widgets/ManagedProjectsStatus.tsx +53 -0
  258. package/src/dashboard/widgets/MyHoursPeriodKpi.tsx +87 -0
  259. package/src/dashboard/widgets/MyOpenRequestsKpi.tsx +51 -0
  260. package/src/dashboard/widgets/MyPendingRequestsList.tsx +63 -0
  261. package/src/dashboard/widgets/MyProjectAllocationsKpi.tsx +57 -0
  262. package/src/dashboard/widgets/MyQuickActions.tsx +62 -0
  263. package/src/dashboard/widgets/MyRelevantDeadlines.tsx +84 -0
  264. package/src/dashboard/widgets/MyTimesheetStatusKpi.tsx +65 -0
  265. package/src/dashboard/widgets/MyWeeklyJourney.tsx +57 -0
  266. package/src/dashboard/widgets/PortfolioCostsKpi.tsx +48 -0
  267. package/src/dashboard/widgets/PortfolioEffortKpi.tsx +41 -0
  268. package/src/dashboard/widgets/PortfolioRiskKpi.tsx +50 -0
  269. package/src/dashboard/widgets/ProjectStatusOverview.tsx +52 -0
  270. package/src/dashboard/widgets/StrategicDeadlines.tsx +93 -0
  271. package/src/dashboard/widgets/TeamApprovalQueue.tsx +70 -0
  272. package/src/dashboard/widgets/TeamCapacityKpi.tsx +50 -0
  273. package/src/dashboard/widgets/TeamHoursKpi.tsx +51 -0
  274. package/src/dashboard/widgets/TeamPendingApprovalsKpi.tsx +53 -0
  275. package/src/dashboard/widgets/TeamUtilizationOverview.tsx +62 -0
  276. package/src/dashboard/widgets/TeamWorkloadAlerts.tsx +81 -0
  277. package/src/dashboard/widgets/index.ts +26 -0
  278. package/src/dto/create-collaborator.dto.ts +4 -11
  279. package/src/index.ts +3 -0
  280. package/src/operations.service.spec.ts +988 -764
  281. package/src/operations.service.ts +4277 -2535
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.
@@ -7,76 +7,17 @@ import { OperationsService } from '../operations.service';
7
7
  export declare class OperationsCollaboratorsController {
8
8
  private readonly operationsService;
9
9
  constructor(operationsService: OperationsService);
10
- listCollaborators(user: any, filters: ListCollaboratorsDto): Promise<Record<string, unknown>[] | {
10
+ listCollaborators(user: any, filters: ListCollaboratorsDto): Promise<any[] | {
11
11
  total: number;
12
12
  lastPage: number;
13
13
  page: number;
14
14
  pageSize: number;
15
15
  prev: number;
16
16
  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;
17
+ data: any[];
79
18
  }>;
19
+ listCollaboratorStats(user: any, filters: ListCollaboratorsDto): Promise<any>;
20
+ getMyCollaborator(user: any): Promise<any>;
80
21
  getTeam(user: any): Promise<{
81
22
  teamMembers: Record<string, unknown>[];
82
23
  projectCount: number;
@@ -102,159 +43,9 @@ export declare class OperationsCollaboratorsController {
102
43
  amountType: string;
103
44
  createdAt: string;
104
45
  }[]>;
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;
155
- }>;
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;
206
- }>;
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;
257
- }>;
46
+ getCollaborator(user: any, id: number): Promise<any>;
47
+ createCollaborator(user: any, data: CreateCollaboratorDto): Promise<any>;
48
+ updateCollaborator(user: any, id: number, data: UpdateCollaboratorDto): Promise<any>;
258
49
  addCollaboratorProjectAssignment(collaboratorId: number, data: CreateCollaboratorProjectAssignmentDto): Promise<{
259
50
  id: number;
260
51
  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":"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"}
@@ -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,CA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AA,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,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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,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,CAAC;IAGD,YAAY,CAAS,IAAI,EAAW,OAAwB;QAC1D,OAAO,IAAI,CAAC,iBAAiB,CAAC,YAAY,CAAC,MAAM,CAAC,CAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,EAAE,KAAI,CAAC,CAAC,EAAE,OAAO,CAAC,CAA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EAAE,qBAAY,CAAC,CAAA;;;;qEAGvC;uCA5EU,4BAA4B;IAFxC,IAAA,UAAI,GAAE;IACN,IAAA,mBAAU,EAAC,YAAY,CAAC;qCAEyB,sCAAiB;GADtD,4BAA4B,CA6ExC"}
@@ -110,7 +110,7 @@ export declare class OperationsReportsController {
110
110
  consumedHoursCost: number;
111
111
  idlenessRate: number;
112
112
  idlenessCost: number;
113
- risk: string;
113
+ risk: "alto" | "médio" | "baixo";
114
114
  recommendation: string;
115
115
  }[];
116
116
  }>;
@@ -1,8 +1,8 @@
1
- import { CreateOperationsTaskDto } from '../dto/create-task.dto';
2
- import { ListMyTasksDto } from '../dto/list-my-tasks.dto';
3
- import { ListOperationsTasksDto } from '../dto/list-tasks.dto';
4
- import { UpdateOperationsTaskDto } from '../dto/update-task.dto';
5
- import { OperationsService } from '../operations.service';
1
+ import { CreateOperationsTaskDto } from "../dto/create-task.dto";
2
+ import { ListMyTasksDto } from "../dto/list-my-tasks.dto";
3
+ import { ListOperationsTasksDto } from "../dto/list-tasks.dto";
4
+ import { UpdateOperationsTaskDto } from "../dto/update-task.dto";
5
+ import { OperationsService } from "../operations.service";
6
6
  export declare class OperationsTasksController {
7
7
  private readonly operationsService;
8
8
  constructor(operationsService: OperationsService);
@@ -32,6 +32,8 @@ export declare class OperationsTasksController {
32
32
  assigneePersonAvatarId: number | null;
33
33
  commentCount: number;
34
34
  fileCount: number;
35
+ doingStartedAt: string | null;
36
+ totalDoingMinutes: number;
35
37
  createdAt: string;
36
38
  deletedAt: string | null;
37
39
  }[];
@@ -61,6 +63,8 @@ export declare class OperationsTasksController {
61
63
  assigneeUserPhotoId: number | null;
62
64
  assigneePersonAvatarId: number | null;
63
65
  commentCount: number;
66
+ doingStartedAt: string | null;
67
+ totalDoingMinutes: number;
64
68
  createdAt: string;
65
69
  deletedAt: string | null;
66
70
  }[];
@@ -81,6 +85,9 @@ export declare class OperationsTasksController {
81
85
  assigneePersonAvatarId: number | null;
82
86
  projectAssignmentId: number | null;
83
87
  commentCount: number;
88
+ fileCount: number;
89
+ doingStartedAt: string | null;
90
+ totalDoingMinutes: number;
84
91
  createdAt: string;
85
92
  }[]>;
86
93
  createTask(user: any, data: CreateOperationsTaskDto): Promise<{
@@ -100,6 +107,9 @@ export declare class OperationsTasksController {
100
107
  projectAssignmentId: number | null;
101
108
  projectId: number | null;
102
109
  commentCount: number;
110
+ fileCount: number;
111
+ doingStartedAt: string | null;
112
+ totalDoingMinutes: number;
103
113
  createdAt: string;
104
114
  deletedAt: string | null;
105
115
  }>;
@@ -120,6 +130,9 @@ export declare class OperationsTasksController {
120
130
  projectAssignmentId: number | null;
121
131
  projectId: number | null;
122
132
  commentCount: number;
133
+ fileCount: number;
134
+ doingStartedAt: string | null;
135
+ totalDoingMinutes: number;
123
136
  createdAt: string;
124
137
  deletedAt: string | null;
125
138
  }>;
@@ -135,13 +148,13 @@ export declare class OperationsTasksController {
135
148
  created_at: Date;
136
149
  }[]>;
137
150
  addTaskFile(user: any, id: number, file: MulterFile): Promise<{
138
- created_at: Date;
139
- id: number;
140
- updated_at: Date;
141
151
  filename: string;
142
- path: string;
143
152
  location: string;
153
+ id: number;
154
+ path: string;
144
155
  size: number;
156
+ created_at: Date;
157
+ updated_at: Date;
145
158
  provider_id: number;
146
159
  mimetype_id: number;
147
160
  }>;
@@ -159,6 +172,18 @@ export declare class OperationsTasksController {
159
172
  createdAt: string;
160
173
  updatedAt: string | null;
161
174
  }[]>;
175
+ listTaskActivities(user: any, id: number): Promise<{
176
+ id: number;
177
+ taskId: number;
178
+ actorCollaboratorId: number | null;
179
+ actorName: string | null;
180
+ actorUserPhotoId: number | null;
181
+ actorPersonAvatarId: number | null;
182
+ action: "status_changed" | "task_created" | "task_deleted" | "task_restored" | "assignee_changed" | "priority_changed" | "due_date_changed" | "name_changed" | "description_changed" | "comment_added" | "comment_updated" | "comment_removed" | "file_added" | "file_removed";
183
+ fromStatus: ("done" | "todo" | "doing" | "review") | null;
184
+ toStatus: ("done" | "todo" | "doing" | "review") | null;
185
+ createdAt: string;
186
+ }[]>;
162
187
  addTaskComment(user: any, id: number, content: string): Promise<{
163
188
  id: number;
164
189
  taskId: number;
@@ -1 +1 @@
1
- {"version":3,"file":"operations-tasks.controller.d.ts","sourceRoot":"","sources":["../../src/controllers/operations-tasks.controller.ts"],"names":[],"mappings":"AAeA,OAAO,EAAE,uBAAuB,EAAE,MAAM,wBAAwB,CAAC;AACjE,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC1D,OAAO,EAAE,sBAAsB,EAAE,MAAM,uBAAuB,CAAC;AAC/D,OAAO,EAAE,uBAAuB,EAAE,MAAM,wBAAwB,CAAC;AACjE,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAE1D,qBAEa,yBAAyB;IACxB,OAAO,CAAC,QAAQ,CAAC,iBAAiB;gBAAjB,iBAAiB,EAAE,iBAAiB;IAGjE,SAAS,CACC,IAAI,KAAA,EACH,gBAAgB,EAAE,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IASnD,WAAW,CACD,IAAI,KAAA,EACH,gBAAgB,EAAE,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAS3C,qBAAqB,CACX,IAAI,KAAA,EACe,EAAE,EAAE,MAAM;;;;;;;;;;;;;;;;;;IASvC,UAAU,CAAS,IAAI,KAAA,EAAU,IAAI,EAAE,uBAAuB;;;;;;;;;;;;;;;;;;;;IAK9D,UAAU,CACA,IAAI,KAAA,EACe,EAAE,EAAE,MAAM,EAC7B,IAAI,EAAE,uBAAuB;;;;;;;;;;;;;;;;;;;;IAMvC,UAAU,CACA,IAAI,KAAA,EACe,EAAE,EAAE,MAAM,EACjB,SAAS,CAAC,EAAE,MAAM;;;IAUxC,aAAa,CACH,IAAI,KAAA,EACe,EAAE,EAAE,MAAM;;;;;;;;IAOvC,WAAW,CACD,IAAI,KAAA,EACe,EAAE,EAAE,MAAM,EACrB,IAAI,EAAE,UAAU;;;;;;;;;;;IAMlC,cAAc,CACJ,IAAI,KAAA,EACe,EAAE,EAAE,MAAM,EACE,cAAc,EAAE,MAAM;;;IAU/D,gBAAgB,CACN,IAAI,KAAA,EACe,EAAE,EAAE,MAAM;;;;;;;;;;;IAMvC,cAAc,CACJ,IAAI,KAAA,EACe,EAAE,EAAE,MAAM,EACpB,OAAO,EAAE,MAAM;;;;;;;;;;;IAUlC,iBAAiB,CACP,IAAI,KAAA,EACmB,MAAM,EAAE,MAAM,EACX,SAAS,EAAE,MAAM,EAClC,OAAO,EAAE,MAAM;;;;;;;;;;;IAWlC,iBAAiB,CACP,IAAI,KAAA,EACmB,MAAM,EAAE,MAAM,EACX,SAAS,EAAE,MAAM;;;CAQtD"}
1
+ {"version":3,"file":"operations-tasks.controller.d.ts","sourceRoot":"","sources":["../../src/controllers/operations-tasks.controller.ts"],"names":[],"mappings":"AAeA,OAAO,EAAE,uBAAuB,EAAE,MAAM,wBAAwB,CAAC;AACjE,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC1D,OAAO,EAAE,sBAAsB,EAAE,MAAM,uBAAuB,CAAC;AAC/D,OAAO,EAAE,uBAAuB,EAAE,MAAM,wBAAwB,CAAC;AACjE,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAE1D,qBAEa,yBAAyB;IACxB,OAAO,CAAC,QAAQ,CAAC,iBAAiB;gBAAjB,iBAAiB,EAAE,iBAAiB;IAGjE,SAAS,CAAS,IAAI,KAAA,EAAW,gBAAgB,EAAE,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAQzE,WAAW,CAAS,IAAI,KAAA,EAAW,gBAAgB,EAAE,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAQnE,qBAAqB,CAAS,IAAI,KAAA,EAA6B,EAAE,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;IAQzE,UAAU,CAAS,IAAI,KAAA,EAAU,IAAI,EAAE,uB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