@hed-hog/operations 0.0.319 → 0.0.322

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 (38) hide show
  1. package/dist/controllers/operations-tasks.controller.d.ts +22 -0
  2. package/dist/controllers/operations-tasks.controller.d.ts.map +1 -1
  3. package/dist/controllers/operations-tasks.controller.js +37 -0
  4. package/dist/controllers/operations-tasks.controller.js.map +1 -1
  5. package/dist/dto/create-task.dto.d.ts.map +1 -1
  6. package/dist/dto/create-task.dto.js +0 -1
  7. package/dist/dto/create-task.dto.js.map +1 -1
  8. package/dist/dto/update-task.dto.d.ts.map +1 -1
  9. package/dist/dto/update-task.dto.js +0 -1
  10. package/dist/dto/update-task.dto.js.map +1 -1
  11. package/dist/operations.service.d.ts +22 -0
  12. package/dist/operations.service.d.ts.map +1 -1
  13. package/dist/operations.service.js +187 -132
  14. package/dist/operations.service.js.map +1 -1
  15. package/hedhog/data/operations_cost_type.yaml +95 -95
  16. package/hedhog/data/route.yaml +39 -0
  17. package/hedhog/frontend/app/_components/collaborator-costs-section.tsx.ejs +884 -884
  18. package/hedhog/frontend/app/_components/collaborator-details-screen.tsx.ejs +23 -23
  19. package/hedhog/frontend/app/_components/person-select-with-create.tsx.ejs +49 -22
  20. package/hedhog/frontend/app/_components/project-details-screen.tsx.ejs +2968 -624
  21. package/hedhog/frontend/app/_components/project-form-screen.tsx.ejs +62 -68
  22. package/hedhog/frontend/app/_components/task-file-attachments.tsx.ejs +388 -0
  23. package/hedhog/frontend/app/_lib/types.ts.ejs +179 -178
  24. package/hedhog/frontend/app/my-tasks/page.tsx.ejs +121 -11
  25. package/hedhog/frontend/app/projects/page.tsx.ejs +105 -22
  26. package/hedhog/frontend/app/reports/collaborators/page.tsx.ejs +771 -771
  27. package/hedhog/frontend/app/reports/projects/page.tsx.ejs +809 -809
  28. package/hedhog/frontend/messages/en.json +143 -2
  29. package/hedhog/frontend/messages/pt.json +143 -2
  30. package/hedhog/table/operations_task_file.yaml +23 -0
  31. package/package.json +5 -5
  32. package/src/controllers/operations-reports.controller.ts +32 -32
  33. package/src/controllers/operations-tasks.controller.ts +43 -9
  34. package/src/dto/create-task.dto.ts +0 -1
  35. package/src/dto/list-reports.dto.ts +51 -51
  36. package/src/dto/update-task.dto.ts +0 -1
  37. package/src/operations.module.ts +5 -5
  38. package/src/operations.service.ts +754 -632
@@ -30,101 +30,101 @@
30
30
  is_depreciable: false
31
31
  is_active: true
32
32
 
33
- - slug: vale-refeicao
34
- name: Vale-Refeição
35
- description: Benefício mensal destinado a refeições do colaborador.
36
- default_recurrence: monthly
37
- is_allocatable: true
38
- is_depreciable: false
39
- is_active: true
40
-
41
- - slug: vale-alimentacao
42
- name: Vale-Alimentação
43
- description: Benefício mensal destinado à compra de alimentos.
44
- default_recurrence: monthly
45
- is_allocatable: true
46
- is_depreciable: false
47
- is_active: true
48
-
49
- - slug: vale-transporte
50
- name: Vale-Transporte
51
- description: Benefício mensal para deslocamento entre residência e trabalho.
52
- default_recurrence: monthly
53
- is_allocatable: true
54
- is_depreciable: false
55
- is_active: true
56
-
57
- - slug: plano-saude
58
- name: Plano de Saúde
59
- description: Assistência médica oferecida ao colaborador.
60
- default_recurrence: monthly
61
- is_allocatable: true
62
- is_depreciable: false
63
- is_active: true
64
-
65
- - slug: plano-odontologico
66
- name: Plano Odontológico
67
- description: Assistência odontológica oferecida ao colaborador.
68
- default_recurrence: monthly
69
- is_allocatable: true
70
- is_depreciable: false
71
- is_active: true
72
-
73
- - slug: seguro-vida
74
- name: Seguro de Vida
75
- description: Seguro de vida contratado para o colaborador.
76
- default_recurrence: monthly
77
- is_allocatable: true
78
- is_depreciable: false
79
- is_active: true
80
-
81
- - slug: inss-patronal
82
- name: INSS Patronal
83
- description: Contribuição previdenciária patronal incidente sobre a folha.
84
- default_recurrence: monthly
85
- is_allocatable: true
86
- is_depreciable: false
87
- is_active: true
88
-
89
- - slug: fgts
90
- name: FGTS
91
- description: Depósito mensal do Fundo de Garantia do Tempo de Serviço.
92
- default_recurrence: monthly
93
- is_allocatable: true
94
- is_depreciable: false
95
- is_active: true
96
-
97
- - slug: rat-fap
98
- name: RAT/FAP
99
- description: Encargo previdenciário de risco ambiental ajustado pelo fator acidentário.
100
- default_recurrence: monthly
101
- is_allocatable: true
102
- is_depreciable: false
103
- is_active: true
104
-
105
- - slug: terceiros-sistema-s
106
- name: Terceiros / Sistema S
107
- description: Contribuições destinadas a terceiros e entidades do Sistema S.
108
- default_recurrence: monthly
109
- is_allocatable: true
110
- is_depreciable: false
111
- is_active: true
112
-
113
- - slug: provisao-decimo-terceiro
114
- name: Provisão de 13º Salário
115
- description: Provisão mensal para pagamento do 13º salário.
116
- default_recurrence: monthly
117
- is_allocatable: true
118
- is_depreciable: false
119
- is_active: true
120
-
121
- - slug: provisao-ferias
122
- name: Provisão de Férias
123
- description: Provisão mensal para férias e adicional constitucional.
124
- default_recurrence: monthly
125
- is_allocatable: true
126
- is_depreciable: false
127
- is_active: true
33
+ - slug: vale-refeicao
34
+ name: Vale-Refeição
35
+ description: Benefício mensal destinado a refeições do colaborador.
36
+ default_recurrence: monthly
37
+ is_allocatable: true
38
+ is_depreciable: false
39
+ is_active: true
40
+
41
+ - slug: vale-alimentacao
42
+ name: Vale-Alimentação
43
+ description: Benefício mensal destinado à compra de alimentos.
44
+ default_recurrence: monthly
45
+ is_allocatable: true
46
+ is_depreciable: false
47
+ is_active: true
48
+
49
+ - slug: vale-transporte
50
+ name: Vale-Transporte
51
+ description: Benefício mensal para deslocamento entre residência e trabalho.
52
+ default_recurrence: monthly
53
+ is_allocatable: true
54
+ is_depreciable: false
55
+ is_active: true
56
+
57
+ - slug: plano-saude
58
+ name: Plano de Saúde
59
+ description: Assistência médica oferecida ao colaborador.
60
+ default_recurrence: monthly
61
+ is_allocatable: true
62
+ is_depreciable: false
63
+ is_active: true
64
+
65
+ - slug: plano-odontologico
66
+ name: Plano Odontológico
67
+ description: Assistência odontológica oferecida ao colaborador.
68
+ default_recurrence: monthly
69
+ is_allocatable: true
70
+ is_depreciable: false
71
+ is_active: true
72
+
73
+ - slug: seguro-vida
74
+ name: Seguro de Vida
75
+ description: Seguro de vida contratado para o colaborador.
76
+ default_recurrence: monthly
77
+ is_allocatable: true
78
+ is_depreciable: false
79
+ is_active: true
80
+
81
+ - slug: inss-patronal
82
+ name: INSS Patronal
83
+ description: Contribuição previdenciária patronal incidente sobre a folha.
84
+ default_recurrence: monthly
85
+ is_allocatable: true
86
+ is_depreciable: false
87
+ is_active: true
88
+
89
+ - slug: fgts
90
+ name: FGTS
91
+ description: Depósito mensal do Fundo de Garantia do Tempo de Serviço.
92
+ default_recurrence: monthly
93
+ is_allocatable: true
94
+ is_depreciable: false
95
+ is_active: true
96
+
97
+ - slug: rat-fap
98
+ name: RAT/FAP
99
+ description: Encargo previdenciário de risco ambiental ajustado pelo fator acidentário.
100
+ default_recurrence: monthly
101
+ is_allocatable: true
102
+ is_depreciable: false
103
+ is_active: true
104
+
105
+ - slug: terceiros-sistema-s
106
+ name: Terceiros / Sistema S
107
+ description: Contribuições destinadas a terceiros e entidades do Sistema S.
108
+ default_recurrence: monthly
109
+ is_allocatable: true
110
+ is_depreciable: false
111
+ is_active: true
112
+
113
+ - slug: provisao-decimo-terceiro
114
+ name: Provisão de 13º Salário
115
+ description: Provisão mensal para pagamento do 13º salário.
116
+ default_recurrence: monthly
117
+ is_allocatable: true
118
+ is_depreciable: false
119
+ is_active: true
120
+
121
+ - slug: provisao-ferias
122
+ name: Provisão de Férias
123
+ description: Provisão mensal para férias e adicional constitucional.
124
+ default_recurrence: monthly
125
+ is_allocatable: true
126
+ is_depreciable: false
127
+ is_active: true
128
128
 
129
129
  - slug: equipamento
130
130
  name: Equipamento
@@ -315,6 +315,45 @@
315
315
  - where:
316
316
  slug: admin-operations-director
317
317
 
318
+ - url: /operations/tasks/:id/files
319
+ method: GET
320
+ relations:
321
+ role:
322
+ - where:
323
+ slug: admin
324
+ - where:
325
+ slug: admin-operations-collaborator
326
+ - where:
327
+ slug: admin-operations-supervisor
328
+ - where:
329
+ slug: admin-operations-director
330
+
331
+ - url: /operations/tasks/:id/files
332
+ method: POST
333
+ relations:
334
+ role:
335
+ - where:
336
+ slug: admin
337
+ - where:
338
+ slug: admin-operations-collaborator
339
+ - where:
340
+ slug: admin-operations-supervisor
341
+ - where:
342
+ slug: admin-operations-director
343
+
344
+ - url: /operations/tasks/:id/files/:fileRelationId
345
+ method: DELETE
346
+ relations:
347
+ role:
348
+ - where:
349
+ slug: admin
350
+ - where:
351
+ slug: admin-operations-collaborator
352
+ - where:
353
+ slug: admin-operations-supervisor
354
+ - where:
355
+ slug: admin-operations-director
356
+
318
357
  - url: /operations/projects/:id/tasks
319
358
  method: GET
320
359
  relations: