@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.
- package/README.md +5 -5
- package/dist/controllers/operations-collaborators.controller.d.ts +58 -213
- package/dist/controllers/operations-collaborators.controller.d.ts.map +1 -1
- package/dist/controllers/operations-collaborators.controller.js +100 -0
- package/dist/controllers/operations-collaborators.controller.js.map +1 -1
- package/dist/controllers/operations-contracts.controller.d.ts +6 -6
- package/dist/controllers/operations-projects.controller.d.ts +25 -0
- package/dist/controllers/operations-projects.controller.d.ts.map +1 -1
- package/dist/controllers/operations-projects.controller.js +48 -0
- package/dist/controllers/operations-projects.controller.js.map +1 -1
- package/dist/controllers/operations-reports.controller.d.ts +1 -1
- package/dist/controllers/operations-tasks.controller.d.ts +34 -9
- package/dist/controllers/operations-tasks.controller.d.ts.map +1 -1
- package/dist/controllers/operations-tasks.controller.js +43 -32
- package/dist/controllers/operations-tasks.controller.js.map +1 -1
- package/dist/controllers/operations-timesheets.controller.d.ts +9 -9
- package/dist/dashboard/components/DashboardLayout.d.ts +30 -0
- package/dist/dashboard/components/DashboardLayout.d.ts.map +1 -0
- package/dist/dashboard/components/DashboardLayout.js +87 -0
- package/dist/dashboard/components/DashboardLayout.js.map +1 -0
- package/dist/dashboard/components/widget-registry.d.ts +23 -0
- package/dist/dashboard/components/widget-registry.d.ts.map +1 -0
- package/dist/dashboard/components/widget-registry.js +245 -0
- package/dist/dashboard/components/widget-registry.js.map +1 -0
- package/dist/dashboard/hooks/useDashboardData.d.ts +20 -0
- package/dist/dashboard/hooks/useDashboardData.d.ts.map +1 -0
- package/dist/dashboard/hooks/useDashboardData.js +24 -0
- package/dist/dashboard/hooks/useDashboardData.js.map +1 -0
- package/dist/dashboard/types/widgets.types.d.ts +233 -0
- package/dist/dashboard/types/widgets.types.d.ts.map +1 -0
- package/dist/dashboard/types/widgets.types.js +6 -0
- package/dist/dashboard/types/widgets.types.js.map +1 -0
- package/dist/dashboard/widgets/CapacityDistribution.d.ts +23 -0
- package/dist/dashboard/widgets/CapacityDistribution.d.ts.map +1 -0
- package/dist/dashboard/widgets/CapacityDistribution.js +11 -0
- package/dist/dashboard/widgets/CapacityDistribution.js.map +1 -0
- package/dist/dashboard/widgets/EffortByProject.d.ts +22 -0
- package/dist/dashboard/widgets/EffortByProject.d.ts.map +1 -0
- package/dist/dashboard/widgets/EffortByProject.js +11 -0
- package/dist/dashboard/widgets/EffortByProject.js.map +1 -0
- package/dist/dashboard/widgets/HeadcountByArea.d.ts +24 -0
- package/dist/dashboard/widgets/HeadcountByArea.d.ts.map +1 -0
- package/dist/dashboard/widgets/HeadcountByArea.js +11 -0
- package/dist/dashboard/widgets/HeadcountByArea.js.map +1 -0
- package/dist/dashboard/widgets/ManagedProjectsStatus.d.ts +18 -0
- package/dist/dashboard/widgets/ManagedProjectsStatus.d.ts.map +1 -0
- package/dist/dashboard/widgets/ManagedProjectsStatus.js +12 -0
- package/dist/dashboard/widgets/ManagedProjectsStatus.js.map +1 -0
- package/dist/dashboard/widgets/MyHoursPeriodKpi.d.ts +22 -0
- package/dist/dashboard/widgets/MyHoursPeriodKpi.d.ts.map +1 -0
- package/dist/dashboard/widgets/MyHoursPeriodKpi.js +12 -0
- package/dist/dashboard/widgets/MyHoursPeriodKpi.js.map +1 -0
- package/dist/dashboard/widgets/MyOpenRequestsKpi.d.ts +19 -0
- package/dist/dashboard/widgets/MyOpenRequestsKpi.d.ts.map +1 -0
- package/dist/dashboard/widgets/MyOpenRequestsKpi.js +17 -0
- package/dist/dashboard/widgets/MyOpenRequestsKpi.js.map +1 -0
- package/dist/dashboard/widgets/MyPendingRequestsList.d.ts +23 -0
- package/dist/dashboard/widgets/MyPendingRequestsList.d.ts.map +1 -0
- package/dist/dashboard/widgets/MyPendingRequestsList.js +14 -0
- package/dist/dashboard/widgets/MyPendingRequestsList.js.map +1 -0
- package/dist/dashboard/widgets/MyProjectAllocationsKpi.d.ts +22 -0
- package/dist/dashboard/widgets/MyProjectAllocationsKpi.d.ts.map +1 -0
- package/dist/dashboard/widgets/MyProjectAllocationsKpi.js +11 -0
- package/dist/dashboard/widgets/MyProjectAllocationsKpi.js.map +1 -0
- package/dist/dashboard/widgets/MyQuickActions.d.ts +23 -0
- package/dist/dashboard/widgets/MyQuickActions.d.ts.map +1 -0
- package/dist/dashboard/widgets/MyQuickActions.js +18 -0
- package/dist/dashboard/widgets/MyQuickActions.js.map +1 -0
- package/dist/dashboard/widgets/MyRelevantDeadlines.d.ts +23 -0
- package/dist/dashboard/widgets/MyRelevantDeadlines.d.ts.map +1 -0
- package/dist/dashboard/widgets/MyRelevantDeadlines.js +22 -0
- package/dist/dashboard/widgets/MyRelevantDeadlines.js.map +1 -0
- package/dist/dashboard/widgets/MyTimesheetStatusKpi.d.ts +17 -0
- package/dist/dashboard/widgets/MyTimesheetStatusKpi.d.ts.map +1 -0
- package/dist/dashboard/widgets/MyTimesheetStatusKpi.js +11 -0
- package/dist/dashboard/widgets/MyTimesheetStatusKpi.js.map +1 -0
- package/dist/dashboard/widgets/MyWeeklyJourney.d.ts +21 -0
- package/dist/dashboard/widgets/MyWeeklyJourney.d.ts.map +1 -0
- package/dist/dashboard/widgets/MyWeeklyJourney.js +19 -0
- package/dist/dashboard/widgets/MyWeeklyJourney.js.map +1 -0
- package/dist/dashboard/widgets/PortfolioCostsKpi.d.ts +19 -0
- package/dist/dashboard/widgets/PortfolioCostsKpi.d.ts.map +1 -0
- package/dist/dashboard/widgets/PortfolioCostsKpi.js +12 -0
- package/dist/dashboard/widgets/PortfolioCostsKpi.js.map +1 -0
- package/dist/dashboard/widgets/PortfolioEffortKpi.d.ts +18 -0
- package/dist/dashboard/widgets/PortfolioEffortKpi.d.ts.map +1 -0
- package/dist/dashboard/widgets/PortfolioEffortKpi.js +8 -0
- package/dist/dashboard/widgets/PortfolioEffortKpi.js.map +1 -0
- package/dist/dashboard/widgets/PortfolioProjectsKpi.d.ts +22 -0
- package/dist/dashboard/widgets/PortfolioProjectsKpi.d.ts.map +1 -0
- package/dist/dashboard/widgets/PortfolioProjectsKpi.js +56 -0
- package/dist/dashboard/widgets/PortfolioProjectsKpi.js.map +1 -0
- package/dist/dashboard/widgets/PortfolioRiskKpi.d.ts +19 -0
- package/dist/dashboard/widgets/PortfolioRiskKpi.d.ts.map +1 -0
- package/dist/dashboard/widgets/PortfolioRiskKpi.js +11 -0
- package/dist/dashboard/widgets/PortfolioRiskKpi.js.map +1 -0
- package/dist/dashboard/widgets/ProjectStatusOverview.d.ts +19 -0
- package/dist/dashboard/widgets/ProjectStatusOverview.d.ts.map +1 -0
- package/dist/dashboard/widgets/ProjectStatusOverview.js +18 -0
- package/dist/dashboard/widgets/ProjectStatusOverview.js.map +1 -0
- package/dist/dashboard/widgets/StrategicDeadlines.d.ts +24 -0
- package/dist/dashboard/widgets/StrategicDeadlines.d.ts.map +1 -0
- package/dist/dashboard/widgets/StrategicDeadlines.js +22 -0
- package/dist/dashboard/widgets/StrategicDeadlines.js.map +1 -0
- package/dist/dashboard/widgets/TeamApprovalQueue.d.ts +24 -0
- package/dist/dashboard/widgets/TeamApprovalQueue.d.ts.map +1 -0
- package/dist/dashboard/widgets/TeamApprovalQueue.js +12 -0
- package/dist/dashboard/widgets/TeamApprovalQueue.js.map +1 -0
- package/dist/dashboard/widgets/TeamCapacityKpi.d.ts +18 -0
- package/dist/dashboard/widgets/TeamCapacityKpi.d.ts.map +1 -0
- package/dist/dashboard/widgets/TeamCapacityKpi.js +19 -0
- package/dist/dashboard/widgets/TeamCapacityKpi.js.map +1 -0
- package/dist/dashboard/widgets/TeamHeadcountKpi.d.ts +22 -0
- package/dist/dashboard/widgets/TeamHeadcountKpi.d.ts.map +1 -0
- package/dist/dashboard/widgets/TeamHeadcountKpi.js +56 -0
- package/dist/dashboard/widgets/TeamHeadcountKpi.js.map +1 -0
- package/dist/dashboard/widgets/TeamHoursKpi.d.ts +19 -0
- package/dist/dashboard/widgets/TeamHoursKpi.d.ts.map +1 -0
- package/dist/dashboard/widgets/TeamHoursKpi.js +13 -0
- package/dist/dashboard/widgets/TeamHoursKpi.js.map +1 -0
- package/dist/dashboard/widgets/TeamPendingApprovalsKpi.d.ts +20 -0
- package/dist/dashboard/widgets/TeamPendingApprovalsKpi.d.ts.map +1 -0
- package/dist/dashboard/widgets/TeamPendingApprovalsKpi.js +11 -0
- package/dist/dashboard/widgets/TeamPendingApprovalsKpi.js.map +1 -0
- package/dist/dashboard/widgets/TeamUtilizationOverview.d.ts +18 -0
- package/dist/dashboard/widgets/TeamUtilizationOverview.d.ts.map +1 -0
- package/dist/dashboard/widgets/TeamUtilizationOverview.js +17 -0
- package/dist/dashboard/widgets/TeamUtilizationOverview.js.map +1 -0
- package/dist/dashboard/widgets/TeamWorkloadAlerts.d.ts +24 -0
- package/dist/dashboard/widgets/TeamWorkloadAlerts.d.ts.map +1 -0
- package/dist/dashboard/widgets/TeamWorkloadAlerts.js +19 -0
- package/dist/dashboard/widgets/TeamWorkloadAlerts.js.map +1 -0
- package/dist/dashboard/widgets/index.d.ts +24 -0
- package/dist/dashboard/widgets/index.d.ts.map +1 -0
- package/dist/dashboard/widgets/index.js +54 -0
- package/dist/dashboard/widgets/index.js.map +1 -0
- package/dist/dto/create-collaborator-invoice.dto.d.ts +11 -0
- package/dist/dto/create-collaborator-invoice.dto.d.ts.map +1 -0
- package/dist/dto/create-collaborator-invoice.dto.js +55 -0
- package/dist/dto/create-collaborator-invoice.dto.js.map +1 -0
- package/dist/dto/create-collaborator-payment.dto.d.ts +10 -0
- package/dist/dto/create-collaborator-payment.dto.d.ts.map +1 -0
- package/dist/dto/create-collaborator-payment.dto.js +50 -0
- package/dist/dto/create-collaborator-payment.dto.js.map +1 -0
- package/dist/dto/create-collaborator.dto.d.ts +0 -1
- package/dist/dto/create-collaborator.dto.d.ts.map +1 -1
- package/dist/dto/create-collaborator.dto.js +0 -6
- package/dist/dto/create-collaborator.dto.js.map +1 -1
- package/dist/dto/list-collaborator-invoice.dto.d.ts +4 -0
- package/dist/dto/list-collaborator-invoice.dto.d.ts.map +1 -0
- package/dist/dto/list-collaborator-invoice.dto.js +8 -0
- package/dist/dto/list-collaborator-invoice.dto.js.map +1 -0
- package/dist/dto/list-collaborator-payment.dto.d.ts +4 -0
- package/dist/dto/list-collaborator-payment.dto.d.ts.map +1 -0
- package/dist/dto/list-collaborator-payment.dto.js +8 -0
- package/dist/dto/list-collaborator-payment.dto.js.map +1 -0
- package/dist/dto/update-collaborator-invoice.dto.d.ts +6 -0
- package/dist/dto/update-collaborator-invoice.dto.d.ts.map +1 -0
- package/dist/dto/update-collaborator-invoice.dto.js +9 -0
- package/dist/dto/update-collaborator-invoice.dto.js.map +1 -0
- package/dist/dto/update-collaborator-payment.dto.d.ts +6 -0
- package/dist/dto/update-collaborator-payment.dto.d.ts.map +1 -0
- package/dist/dto/update-collaborator-payment.dto.js +9 -0
- package/dist/dto/update-collaborator-payment.dto.js.map +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/operations.controller.d.ts +42 -0
- package/dist/operations.controller.d.ts.map +1 -1
- package/dist/operations.service.d.ts +258 -268
- package/dist/operations.service.d.ts.map +1 -1
- package/dist/operations.service.js +2381 -1341
- package/dist/operations.service.js.map +1 -1
- package/dist/operations.service.spec.js +345 -174
- package/dist/operations.service.spec.js.map +1 -1
- package/hedhog/data/dashboard_component.yaml +66 -0
- package/hedhog/data/dashboard_item.yaml +25 -25
- package/hedhog/data/menu.yaml +27 -8
- package/hedhog/data/route.yaml +133 -0
- package/hedhog/frontend/app/_components/collaborator-form-screen.tsx.ejs +78 -102
- package/hedhog/frontend/app/_components/collaborator-invoices-tab.tsx.ejs +443 -0
- package/hedhog/frontend/app/_components/collaborator-payment-history-tab.tsx.ejs +429 -0
- package/hedhog/frontend/app/_components/collaborator-picker.tsx.ejs +158 -0
- package/hedhog/frontend/app/_components/my-project-summary-screen.tsx.ejs +247 -50
- package/hedhog/frontend/app/_components/project-assignments-tab.tsx.ejs +643 -450
- package/hedhog/frontend/app/_components/project-details-screen.tsx.ejs +992 -431
- package/hedhog/frontend/app/_components/project-file-attachments.tsx.ejs +371 -0
- package/hedhog/frontend/app/_components/project-form-screen.tsx.ejs +558 -386
- package/hedhog/frontend/app/_components/task-detail-sheet.tsx.ejs +383 -157
- package/hedhog/frontend/app/_components/task-file-attachments.tsx.ejs +4 -1
- package/hedhog/frontend/app/_components/task-form-fields.tsx.ejs +406 -0
- package/hedhog/frontend/app/_components/task-form-sheet.tsx.ejs +629 -784
- package/hedhog/frontend/app/_components/task-info-display.tsx.ejs +137 -0
- package/hedhog/frontend/app/_components/timesheet-entry-create-sheet.tsx.ejs +306 -0
- package/hedhog/frontend/app/_lib/api.ts.ejs +155 -0
- package/hedhog/frontend/app/_lib/types.ts.ejs +62 -0
- package/hedhog/frontend/app/_lib/utils/format.ts.ejs +0 -2
- package/hedhog/frontend/app/_lib/utils/task-ui.ts.ejs +61 -0
- package/hedhog/frontend/app/approvals/page.tsx.ejs +6 -1
- package/hedhog/frontend/app/collaborator-types/page.tsx.ejs +6 -1
- package/hedhog/frontend/app/collaborators/page.tsx.ejs +59 -8
- package/hedhog/frontend/app/contracts/page.tsx.ejs +29 -8
- package/hedhog/frontend/app/dashboard/widgets/CapacityDistribution.tsx.ejs +84 -0
- package/hedhog/frontend/app/dashboard/widgets/EffortByProject.tsx.ejs +85 -0
- package/hedhog/frontend/app/dashboard/widgets/HeadcountByArea.tsx.ejs +101 -0
- package/hedhog/frontend/app/dashboard/widgets/ManagedProjectsStatus.tsx.ejs +113 -0
- package/hedhog/frontend/app/dashboard/widgets/MyHoursPeriodKpi.tsx.ejs +87 -0
- package/hedhog/frontend/app/dashboard/widgets/MyOpenRequestsKpi.tsx.ejs +97 -0
- package/hedhog/frontend/app/dashboard/widgets/MyPendingRequestsList.tsx.ejs +99 -0
- package/hedhog/frontend/app/dashboard/widgets/MyProjectAllocationsKpi.tsx.ejs +78 -0
- package/hedhog/frontend/app/dashboard/widgets/MyQuickActions.tsx.ejs +130 -0
- package/hedhog/frontend/app/dashboard/widgets/MyRelevantDeadlines.tsx.ejs +144 -0
- package/hedhog/frontend/app/dashboard/widgets/MyTimesheetStatusKpi.tsx.ejs +78 -0
- package/hedhog/frontend/app/dashboard/widgets/MyWeeklyJourney.tsx.ejs +99 -0
- package/hedhog/frontend/app/dashboard/widgets/PortfolioCostsKpi.tsx.ejs +112 -0
- package/hedhog/frontend/app/dashboard/widgets/PortfolioEffortKpi.tsx.ejs +93 -0
- package/hedhog/frontend/app/dashboard/widgets/PortfolioProjectsKpi.tsx.ejs +96 -0
- package/hedhog/frontend/app/dashboard/widgets/PortfolioRiskKpi.tsx.ejs +115 -0
- package/hedhog/frontend/app/dashboard/widgets/ProjectStatusOverview.tsx.ejs +120 -0
- package/hedhog/frontend/app/dashboard/widgets/StrategicDeadlines.tsx.ejs +146 -0
- package/hedhog/frontend/app/dashboard/widgets/TeamApprovalQueue.tsx.ejs +108 -0
- package/hedhog/frontend/app/dashboard/widgets/TeamCapacityKpi.tsx.ejs +97 -0
- package/hedhog/frontend/app/dashboard/widgets/TeamHeadcountKpi.tsx.ejs +100 -0
- package/hedhog/frontend/app/dashboard/widgets/TeamHoursKpi.tsx.ejs +104 -0
- package/hedhog/frontend/app/dashboard/widgets/TeamPendingApprovalsKpi.tsx.ejs +110 -0
- package/hedhog/frontend/app/dashboard/widgets/TeamUtilizationOverview.tsx.ejs +115 -0
- package/hedhog/frontend/app/dashboard/widgets/TeamWorkloadAlerts.tsx.ejs +117 -0
- package/hedhog/frontend/app/dashboard/widgets/index.ts.ejs +26 -0
- package/hedhog/frontend/app/departments/page.tsx.ejs +6 -1
- package/hedhog/frontend/app/my-projects/page.tsx.ejs +30 -12
- package/hedhog/frontend/app/my-tasks/page.tsx.ejs +286 -125
- package/hedhog/frontend/app/project-cost-categories/page.tsx.ejs +58 -52
- package/hedhog/frontend/app/project-cost-types/page.tsx.ejs +58 -51
- package/hedhog/frontend/app/projects/page.tsx.ejs +415 -33
- package/hedhog/frontend/app/schedule-adjustments/page.tsx.ejs +6 -1
- package/hedhog/frontend/app/tasks-gantt/page.tsx.ejs +953 -0
- package/hedhog/frontend/app/time-off/page.tsx.ejs +6 -1
- package/hedhog/frontend/app/timesheets/page.tsx.ejs +10 -4
- package/hedhog/frontend/messages/en.json +332 -46
- package/hedhog/frontend/messages/operations/en.json +61 -52
- package/hedhog/frontend/messages/operations/pt.json +59 -43
- package/hedhog/frontend/messages/pt.json +332 -46
- package/hedhog/frontend/widgets/capacity-distribution.tsx.ejs +17 -0
- package/hedhog/frontend/widgets/effort-by-project.tsx.ejs +17 -0
- package/hedhog/frontend/widgets/headcount-by-area.tsx.ejs +17 -0
- package/hedhog/frontend/widgets/index.ts.ejs +25 -0
- package/hedhog/frontend/widgets/managed-projects-status.tsx.ejs +17 -0
- package/hedhog/frontend/widgets/my-hours-period-kpi.tsx.ejs +17 -0
- package/hedhog/frontend/widgets/my-open-requests-kpi.tsx.ejs +17 -0
- package/hedhog/frontend/widgets/my-pending-requests-list.tsx.ejs +17 -0
- package/hedhog/frontend/widgets/my-project-allocations-kpi.tsx.ejs +17 -0
- package/hedhog/frontend/widgets/my-quick-actions.tsx.ejs +17 -0
- package/hedhog/frontend/widgets/my-relevant-deadlines.tsx.ejs +17 -0
- package/hedhog/frontend/widgets/my-timesheet-status-kpi.tsx.ejs +17 -0
- package/hedhog/frontend/widgets/my-weekly-journey.tsx.ejs +17 -0
- package/hedhog/frontend/widgets/portfolio-costs-kpi.tsx.ejs +17 -0
- package/hedhog/frontend/widgets/portfolio-effort-kpi.tsx.ejs +17 -0
- package/hedhog/frontend/widgets/portfolio-projects-kpi.tsx.ejs +17 -0
- package/hedhog/frontend/widgets/portfolio-risk-kpi.tsx.ejs +17 -0
- package/hedhog/frontend/widgets/project-status-overview.tsx.ejs +17 -0
- package/hedhog/frontend/widgets/shared-operations-widget.tsx.ejs +170 -0
- package/hedhog/frontend/widgets/strategic-deadlines.tsx.ejs +17 -0
- package/hedhog/frontend/widgets/team-approval-queue.tsx.ejs +17 -0
- package/hedhog/frontend/widgets/team-capacity-kpi.tsx.ejs +17 -0
- package/hedhog/frontend/widgets/team-headcount-kpi.tsx.ejs +17 -0
- package/hedhog/frontend/widgets/team-hours-kpi.tsx.ejs +17 -0
- package/hedhog/frontend/widgets/team-pending-approvals-kpi.tsx.ejs +17 -0
- package/hedhog/frontend/widgets/team-utilization-overview.tsx.ejs +17 -0
- package/hedhog/frontend/widgets/team-workload-alerts.tsx.ejs +17 -0
- package/hedhog/table/operations_collaborator.yaml +8 -13
- package/hedhog/table/operations_collaborator_invoice.yaml +35 -0
- package/hedhog/table/operations_collaborator_payment.yaml +32 -0
- package/hedhog/table/operations_project.yaml +1 -1
- package/hedhog/table/operations_project_file.yaml +23 -0
- package/hedhog/table/operations_task.yaml +76 -69
- package/hedhog/table/operations_task_activity.yaml +51 -0
- package/package.json +6 -5
- package/src/controllers/operations-collaborators.controller.ts +117 -8
- package/src/controllers/operations-projects.controller.ts +41 -8
- package/src/controllers/operations-tasks.controller.ts +156 -166
- package/src/dashboard/README.md +214 -0
- package/src/dashboard/components/DashboardLayout.tsx +131 -0
- package/src/dashboard/components/widget-registry.ts +255 -0
- package/src/dashboard/hooks/useDashboardData.ts +29 -0
- package/src/dashboard/types/widgets.types.ts +237 -0
- package/src/dashboard/widgets/CapacityDistribution.tsx +56 -0
- package/src/dashboard/widgets/EffortByProject.tsx +51 -0
- package/src/dashboard/widgets/HeadcountByArea.tsx +57 -0
- package/src/dashboard/widgets/ManagedProjectsStatus.tsx +53 -0
- package/src/dashboard/widgets/MyHoursPeriodKpi.tsx +87 -0
- package/src/dashboard/widgets/MyOpenRequestsKpi.tsx +51 -0
- package/src/dashboard/widgets/MyPendingRequestsList.tsx +63 -0
- package/src/dashboard/widgets/MyProjectAllocationsKpi.tsx +57 -0
- package/src/dashboard/widgets/MyQuickActions.tsx +62 -0
- package/src/dashboard/widgets/MyRelevantDeadlines.tsx +84 -0
- package/src/dashboard/widgets/MyTimesheetStatusKpi.tsx +65 -0
- package/src/dashboard/widgets/MyWeeklyJourney.tsx +57 -0
- package/src/dashboard/widgets/PortfolioCostsKpi.tsx +48 -0
- package/src/dashboard/widgets/PortfolioEffortKpi.tsx +41 -0
- package/src/dashboard/widgets/PortfolioRiskKpi.tsx +50 -0
- package/src/dashboard/widgets/ProjectStatusOverview.tsx +52 -0
- package/src/dashboard/widgets/StrategicDeadlines.tsx +93 -0
- package/src/dashboard/widgets/TeamApprovalQueue.tsx +70 -0
- package/src/dashboard/widgets/TeamCapacityKpi.tsx +50 -0
- package/src/dashboard/widgets/TeamHoursKpi.tsx +51 -0
- package/src/dashboard/widgets/TeamPendingApprovalsKpi.tsx +53 -0
- package/src/dashboard/widgets/TeamUtilizationOverview.tsx +62 -0
- package/src/dashboard/widgets/TeamWorkloadAlerts.tsx +81 -0
- package/src/dashboard/widgets/index.ts +26 -0
- package/src/dto/create-collaborator-invoice.dto.ts +39 -0
- package/src/dto/create-collaborator-payment.dto.ts +35 -0
- package/src/dto/create-collaborator.dto.ts +4 -11
- package/src/dto/list-collaborator-invoice.dto.ts +3 -0
- package/src/dto/list-collaborator-payment.dto.ts +3 -0
- package/src/dto/update-collaborator-invoice.dto.ts +6 -0
- package/src/dto/update-collaborator-payment.dto.ts +6 -0
- package/src/index.ts +3 -0
- package/src/operations.service.spec.ts +988 -764
- 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,
|
|
137
|
-
- **Cargos (Job Titles):** nome,
|
|
138
|
-
- **Projetos:** nome,
|
|
139
|
-
- **Tarefas:** associadas a projetos e alocações, status,
|
|
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,
|
|
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<
|
|
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:
|
|
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
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
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
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
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
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
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":"
|
|
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,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,4BAA4B,EAAE,MAAM,wCAAwC,CAAC;AACtF,OAAO,EAAE,4BAA4B,EAAE,MAAM,wCAAwC,CAAC;AACtF,OAAO,EAAE,sCAAsC,EAAE,MAAM,mDAAmD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AM;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,
|
|
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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;AAGD;IADC,IAAA,YAAG,EAAC,mBAAmB,CAAC;IACR,WAAA,IAAA,UAAI,GAAE,CAAA;IAAQ,WAAA,IAAA,cAAK,EAAC,IAAI,EAAE,qBAAY,CAAC,CAAA;;;;wEAKvD;AAGD;IADC,IAAA,aAAI,EAAC,eAAe,CAAC;IACF,WAAA,IAAA,UAAI,GAAE,CAAA;IAAQ,WAAA,IAAA,aAAI,GAAE,CAAA;;6CAAO,+CAAqB;;2EAEnE;AAGD;IADC,IAAA,cAAK,EAAC,mBAAmB,CAAC;IAExB,WAAA,IAAA,UAAI,GAAE,CAAA;IACN,WAAA,IAAA,cAAK,EAAC,IAAI,EAAE,qBAAY,CAAC,CAAA;IACzB,WAAA,IAAA,aAAI,GAAE,CAAA;;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" | "
|
|
42
|
-
creationMode: ("
|
|
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" | "
|
|
115
|
-
creationMode: ("
|
|
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" | "
|
|
188
|
-
creationMode: ("
|
|
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":"
|
|
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,
|
|
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,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