@hed-hog/operations 0.0.299 → 0.0.301

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 (97) hide show
  1. package/dist/operations.controller.d.ts +713 -31
  2. package/dist/operations.controller.d.ts.map +1 -1
  3. package/dist/operations.controller.js +157 -0
  4. package/dist/operations.controller.js.map +1 -1
  5. package/dist/operations.module.d.ts.map +1 -1
  6. package/dist/operations.module.js +5 -1
  7. package/dist/operations.module.js.map +1 -1
  8. package/dist/operations.proposal.subscriber.d.ts +11 -0
  9. package/dist/operations.proposal.subscriber.d.ts.map +1 -0
  10. package/dist/operations.proposal.subscriber.js +80 -0
  11. package/dist/operations.proposal.subscriber.js.map +1 -0
  12. package/dist/operations.proposal.subscriber.spec.d.ts +2 -0
  13. package/dist/operations.proposal.subscriber.spec.d.ts.map +1 -0
  14. package/dist/operations.proposal.subscriber.spec.js +88 -0
  15. package/dist/operations.proposal.subscriber.spec.js.map +1 -0
  16. package/dist/operations.service.d.ts +490 -46
  17. package/dist/operations.service.d.ts.map +1 -1
  18. package/dist/operations.service.js +3590 -1267
  19. package/dist/operations.service.js.map +1 -1
  20. package/dist/operations.service.spec.d.ts +2 -0
  21. package/dist/operations.service.spec.d.ts.map +1 -0
  22. package/dist/operations.service.spec.js +159 -0
  23. package/dist/operations.service.spec.js.map +1 -0
  24. package/hedhog/data/menu.yaml +232 -198
  25. package/hedhog/data/role.yaml +23 -23
  26. package/hedhog/data/role_route.yaml +39 -0
  27. package/hedhog/data/route.yaml +447 -317
  28. package/hedhog/frontend/app/_components/collaborator-details-screen.tsx.ejs +8 -6
  29. package/hedhog/frontend/app/_components/collaborator-form-screen.tsx.ejs +1163 -327
  30. package/hedhog/frontend/app/_components/collaborator-select-with-create.tsx.ejs +256 -0
  31. package/hedhog/frontend/app/_components/contract-content-editor.tsx.ejs +258 -0
  32. package/hedhog/frontend/app/_components/contract-creation-wizard.tsx.ejs +631 -0
  33. package/hedhog/frontend/app/_components/contract-details-screen.tsx.ejs +353 -27
  34. package/hedhog/frontend/app/_components/contract-form-screen.tsx.ejs +1926 -87
  35. package/hedhog/frontend/app/_components/contract-template-form-screen.tsx.ejs +526 -0
  36. package/hedhog/frontend/app/_components/contract-template-select-with-create.tsx.ejs +247 -0
  37. package/hedhog/frontend/app/_components/contract-wizard-sheet.tsx.ejs +3520 -0
  38. package/hedhog/frontend/app/_components/department-select-with-create.tsx.ejs +370 -0
  39. package/hedhog/frontend/app/_components/person-select-with-create.tsx.ejs +826 -0
  40. package/hedhog/frontend/app/_components/project-form-screen.tsx.ejs +1251 -364
  41. package/hedhog/frontend/app/_components/section-card.tsx.ejs +48 -13
  42. package/hedhog/frontend/app/_lib/api.ts.ejs +2 -5
  43. package/hedhog/frontend/app/_lib/types.ts.ejs +76 -33
  44. package/hedhog/frontend/app/_lib/utils/format.ts.ejs +85 -8
  45. package/hedhog/frontend/app/approvals/page.tsx.ejs +90 -54
  46. package/hedhog/frontend/app/collaborators/[id]/edit/page.tsx.ejs +2 -2
  47. package/hedhog/frontend/app/collaborators/[id]/page.tsx.ejs +2 -2
  48. package/hedhog/frontend/app/collaborators/page.tsx.ejs +597 -140
  49. package/hedhog/frontend/app/contracts/[id]/edit/page.tsx.ejs +2 -2
  50. package/hedhog/frontend/app/contracts/[id]/page.tsx.ejs +2 -2
  51. package/hedhog/frontend/app/contracts/page.tsx.ejs +941 -262
  52. package/hedhog/frontend/app/contracts/templates/page.tsx.ejs +384 -0
  53. package/hedhog/frontend/app/departments/page.tsx.ejs +442 -0
  54. package/hedhog/frontend/app/page.tsx.ejs +36 -12
  55. package/hedhog/frontend/app/projects/[id]/edit/page.tsx.ejs +2 -2
  56. package/hedhog/frontend/app/projects/new/page.tsx.ejs +2 -2
  57. package/hedhog/frontend/app/projects/page.tsx.ejs +264 -102
  58. package/hedhog/frontend/app/schedule-adjustments/page.tsx.ejs +50 -28
  59. package/hedhog/frontend/app/time-off/page.tsx.ejs +57 -31
  60. package/hedhog/frontend/app/timesheets/page.tsx.ejs +85 -42
  61. package/hedhog/frontend/messages/en.json +473 -12
  62. package/hedhog/frontend/messages/pt.json +528 -66
  63. package/hedhog/table/operations_approval.yaml +49 -49
  64. package/hedhog/table/operations_approval_history.yaml +29 -29
  65. package/hedhog/table/operations_collaborator.yaml +87 -67
  66. package/hedhog/table/operations_collaborator_schedule_day.yaml +34 -34
  67. package/hedhog/table/operations_contract.yaml +121 -100
  68. package/hedhog/table/operations_contract_document.yaml +40 -23
  69. package/hedhog/table/operations_contract_financial_term.yaml +40 -40
  70. package/hedhog/table/operations_contract_history.yaml +27 -27
  71. package/hedhog/table/operations_contract_party.yaml +46 -46
  72. package/hedhog/table/operations_contract_revision.yaml +38 -38
  73. package/hedhog/table/operations_contract_signature.yaml +38 -38
  74. package/hedhog/table/operations_contract_template.yaml +58 -0
  75. package/hedhog/table/operations_department.yaml +24 -0
  76. package/hedhog/table/operations_project.yaml +54 -54
  77. package/hedhog/table/operations_project_assignment.yaml +55 -55
  78. package/hedhog/table/operations_schedule_adjustment_day.yaml +34 -34
  79. package/hedhog/table/operations_schedule_adjustment_request.yaml +53 -53
  80. package/hedhog/table/operations_time_off_request.yaml +57 -57
  81. package/hedhog/table/operations_timesheet.yaml +41 -41
  82. package/hedhog/table/operations_timesheet_entry.yaml +40 -40
  83. package/package.json +5 -3
  84. package/src/operations.controller.ts +304 -182
  85. package/src/operations.module.ts +26 -22
  86. package/src/operations.proposal.subscriber.spec.ts +121 -0
  87. package/src/operations.proposal.subscriber.ts +86 -0
  88. package/src/operations.service.spec.ts +210 -0
  89. package/src/operations.service.ts +7317 -3595
  90. package/dist/operations-data.controller.d.ts +0 -139
  91. package/dist/operations-data.controller.d.ts.map +0 -1
  92. package/dist/operations-data.controller.js +0 -113
  93. package/dist/operations-data.controller.js.map +0 -1
  94. package/dist/operations-growth.controller.d.ts +0 -48
  95. package/dist/operations-growth.controller.d.ts.map +0 -1
  96. package/dist/operations-growth.controller.js +0 -90
  97. package/dist/operations-growth.controller.js.map +0 -1
@@ -1,198 +1,232 @@
1
- - icon: briefcase-business
2
- name:
3
- en: Operations
4
- pt: Operacoes
5
- slug: /operations
6
- url: /operations
7
- order: 110
8
- relations:
9
- role:
10
- - where:
11
- slug: admin
12
- - where:
13
- slug: admin-operations-collaborator
14
- - where:
15
- slug: admin-operations-supervisor
16
- - where:
17
- slug: admin-operations-director
18
-
19
- - menu_id:
20
- where:
21
- slug: /operations
22
- icon: layout-dashboard
23
- url: /operations
24
- name:
25
- en: Dashboard
26
- pt: Dashboard
27
- slug: /operations/dashboard
28
- order: 111
29
- relations:
30
- role:
31
- - where:
32
- slug: admin
33
- - where:
34
- slug: admin-operations-collaborator
35
- - where:
36
- slug: admin-operations-supervisor
37
- - where:
38
- slug: admin-operations-director
39
-
40
- - menu_id:
41
- where:
42
- slug: /operations
43
- icon: users-round
44
- url: /operations/collaborators
45
- name:
46
- en: Collaborators
47
- pt: Colaboradores
48
- slug: /operations/collaborators
49
- order: 112
50
- relations:
51
- role:
52
- - where:
53
- slug: admin
54
- - where:
55
- slug: admin-operations-director
56
-
57
- - menu_id:
58
- where:
59
- slug: /operations
60
- icon: folders
61
- url: /operations/projects
62
- name:
63
- en: Projects
64
- pt: Projetos
65
- slug: /operations/projects
66
- order: 113
67
- relations:
68
- role:
69
- - where:
70
- slug: admin
71
- - where:
72
- slug: admin-operations-collaborator
73
- - where:
74
- slug: admin-operations-supervisor
75
- - where:
76
- slug: admin-operations-director
77
-
78
- - menu_id:
79
- where:
80
- slug: /operations
81
- icon: file-text
82
- url: /operations/contracts
83
- name:
84
- en: Contracts
85
- pt: Contratos
86
- slug: /operations/contracts
87
- order: 114
88
- relations:
89
- role:
90
- - where:
91
- slug: admin
92
- - where:
93
- slug: admin-operations-collaborator
94
- - where:
95
- slug: admin-operations-supervisor
96
- - where:
97
- slug: admin-operations-director
98
-
99
- - menu_id:
100
- where:
101
- slug: /operations
102
- icon: clock-3
103
- url: /operations/timesheets
104
- name:
105
- en: Timesheets
106
- pt: Timesheets
107
- slug: /operations/timesheets
108
- order: 115
109
- relations:
110
- role:
111
- - where:
112
- slug: admin
113
- - where:
114
- slug: admin-operations-collaborator
115
- - where:
116
- slug: admin-operations-supervisor
117
- - where:
118
- slug: admin-operations-director
119
-
120
- - menu_id:
121
- where:
122
- slug: /operations
123
- icon: file-check-2
124
- url: /operations/approvals
125
- name:
126
- en: Approvals
127
- pt: Aprovacoes
128
- slug: /operations/approvals
129
- order: 116
130
- relations:
131
- role:
132
- - where:
133
- slug: admin
134
- - where:
135
- slug: admin-operations-supervisor
136
- - where:
137
- slug: admin-operations-director
138
-
139
- - menu_id:
140
- where:
141
- slug: /operations
142
- icon: palm-tree
143
- url: /operations/time-off
144
- name:
145
- en: Time Off
146
- pt: Time Off
147
- slug: /operations/time-off
148
- order: 117
149
- relations:
150
- role:
151
- - where:
152
- slug: admin
153
- - where:
154
- slug: admin-operations-collaborator
155
- - where:
156
- slug: admin-operations-supervisor
157
- - where:
158
- slug: admin-operations-director
159
-
160
- - menu_id:
161
- where:
162
- slug: /operations
163
- icon: calendar-range
164
- url: /operations/schedule-adjustments
165
- name:
166
- en: Schedule Adjustments
167
- pt: Ajustes de Jornada
168
- slug: /operations/schedule-adjustments
169
- order: 118
170
- relations:
171
- role:
172
- - where:
173
- slug: admin
174
- - where:
175
- slug: admin-operations-collaborator
176
- - where:
177
- slug: admin-operations-supervisor
178
- - where:
179
- slug: admin-operations-director
180
-
181
- - menu_id:
182
- where:
183
- slug: /operations
184
- icon: users
185
- url: /operations/team
186
- name:
187
- en: Team
188
- pt: Equipe
189
- slug: /operations/team
190
- order: 119
191
- relations:
192
- role:
193
- - where:
194
- slug: admin
195
- - where:
196
- slug: admin-operations-supervisor
197
- - where:
198
- slug: admin-operations-director
1
+ - icon: briefcase-business
2
+ name:
3
+ en: Operations
4
+ pt: Operacoes
5
+ slug: /operations
6
+ url: /operations
7
+ order: 110
8
+ relations:
9
+ role:
10
+ - where:
11
+ slug: admin
12
+ - where:
13
+ slug: admin-operations-collaborator
14
+ - where:
15
+ slug: admin-operations-supervisor
16
+ - where:
17
+ slug: admin-operations-director
18
+
19
+ - menu_id:
20
+ where:
21
+ slug: /operations
22
+ icon: layout-dashboard
23
+ url: /operations
24
+ name:
25
+ en: Dashboard
26
+ pt: Dashboard
27
+ slug: /operations/dashboard
28
+ order: 111
29
+ relations:
30
+ role:
31
+ - where:
32
+ slug: admin
33
+ - where:
34
+ slug: admin-operations-collaborator
35
+ - where:
36
+ slug: admin-operations-supervisor
37
+ - where:
38
+ slug: admin-operations-director
39
+
40
+ - menu_id:
41
+ where:
42
+ slug: /operations
43
+ icon: users-round
44
+ url: /operations/collaborators
45
+ name:
46
+ en: Collaborators
47
+ pt: Colaboradores
48
+ slug: /operations/collaborators
49
+ order: 112
50
+ relations:
51
+ role:
52
+ - where:
53
+ slug: admin
54
+ - where:
55
+ slug: admin-operations-director
56
+
57
+ - menu_id:
58
+ where:
59
+ slug: /operations
60
+ icon: folders
61
+ url: /operations/projects
62
+ name:
63
+ en: Projects
64
+ pt: Projetos
65
+ slug: /operations/projects
66
+ order: 113
67
+ relations:
68
+ role:
69
+ - where:
70
+ slug: admin
71
+ - where:
72
+ slug: admin-operations-collaborator
73
+ - where:
74
+ slug: admin-operations-supervisor
75
+ - where:
76
+ slug: admin-operations-director
77
+
78
+ - menu_id:
79
+ where:
80
+ slug: /operations
81
+ icon: file-text
82
+ url: /operations/contracts
83
+ name:
84
+ en: Contracts
85
+ pt: Contratos
86
+ slug: /operations/contracts
87
+ order: 114
88
+ relations:
89
+ role:
90
+ - where:
91
+ slug: admin
92
+ - where:
93
+ slug: admin-operations-collaborator
94
+ - where:
95
+ slug: admin-operations-supervisor
96
+ - where:
97
+ slug: admin-operations-director
98
+
99
+ - menu_id:
100
+ where:
101
+ slug: /operations
102
+ icon: file-stack
103
+ url: /operations/contracts/templates
104
+ name:
105
+ en: Contract Templates
106
+ pt: Templates de Contrato
107
+ slug: /operations/contracts/templates
108
+ order: 1141
109
+ relations:
110
+ role:
111
+ - where:
112
+ slug: admin
113
+ - where:
114
+ slug: admin-operations-director
115
+
116
+ - menu_id:
117
+ where:
118
+ slug: /operations
119
+ icon: clock-3
120
+ url: /operations/timesheets
121
+ name:
122
+ en: Timesheets
123
+ pt: Timesheets
124
+ slug: /operations/timesheets
125
+ order: 115
126
+ relations:
127
+ role:
128
+ - where:
129
+ slug: admin
130
+ - where:
131
+ slug: admin-operations-collaborator
132
+ - where:
133
+ slug: admin-operations-supervisor
134
+ - where:
135
+ slug: admin-operations-director
136
+
137
+ - menu_id:
138
+ where:
139
+ slug: /operations
140
+ icon: file-check-2
141
+ url: /operations/approvals
142
+ name:
143
+ en: Approvals
144
+ pt: Aprovacoes
145
+ slug: /operations/approvals
146
+ order: 116
147
+ relations:
148
+ role:
149
+ - where:
150
+ slug: admin
151
+ - where:
152
+ slug: admin-operations-supervisor
153
+ - where:
154
+ slug: admin-operations-director
155
+
156
+ - menu_id:
157
+ where:
158
+ slug: /operations
159
+ icon: palm-tree
160
+ url: /operations/time-off
161
+ name:
162
+ en: Time Off
163
+ pt: Time Off
164
+ slug: /operations/time-off
165
+ order: 117
166
+ relations:
167
+ role:
168
+ - where:
169
+ slug: admin
170
+ - where:
171
+ slug: admin-operations-collaborator
172
+ - where:
173
+ slug: admin-operations-supervisor
174
+ - where:
175
+ slug: admin-operations-director
176
+
177
+ - menu_id:
178
+ where:
179
+ slug: /operations
180
+ icon: calendar-range
181
+ url: /operations/schedule-adjustments
182
+ name:
183
+ en: Schedule Adjustments
184
+ pt: Ajustes de Jornada
185
+ slug: /operations/schedule-adjustments
186
+ order: 118
187
+ relations:
188
+ role:
189
+ - where:
190
+ slug: admin
191
+ - where:
192
+ slug: admin-operations-collaborator
193
+ - where:
194
+ slug: admin-operations-supervisor
195
+ - where:
196
+ slug: admin-operations-director
197
+
198
+ - menu_id:
199
+ where:
200
+ slug: /operations
201
+ icon: users
202
+ url: /operations/team
203
+ name:
204
+ en: Team
205
+ pt: Equipe
206
+ slug: /operations/team
207
+ order: 119
208
+ relations:
209
+ role:
210
+ - where:
211
+ slug: admin
212
+ - where:
213
+ slug: admin-operations-supervisor
214
+ - where:
215
+ slug: admin-operations-director
216
+
217
+ - menu_id:
218
+ where:
219
+ slug: /operations
220
+ icon: building-2
221
+ url: /operations/departments
222
+ name:
223
+ en: Departments
224
+ pt: Departamentos
225
+ slug: /operations/departments
226
+ order: 120
227
+ relations:
228
+ role:
229
+ - where:
230
+ slug: admin
231
+ - where:
232
+ slug: admin-operations-director
@@ -1,23 +1,23 @@
1
- - slug: admin-operations-collaborator
2
- name:
3
- en: Operations Collaborator
4
- pt: Colaborador de Operacoes
5
- description:
6
- en: Self-service access to assigned projects, contracts, timesheets, and requests.
7
- pt: Acesso de autoatendimento a projetos atribuidos, contratos, timesheets e solicitacoes.
8
-
9
- - slug: admin-operations-supervisor
10
- name:
11
- en: Operations Supervisor
12
- pt: Supervisor de Operacoes
13
- description:
14
- en: Team oversight with approval access for subordinate operational requests.
15
- pt: Visao de equipe com acesso de aprovacao para solicitacoes operacionais dos subordinados.
16
-
17
- - slug: admin-operations-director
18
- name:
19
- en: Operations Director
20
- pt: Diretor de Operacoes
21
- description:
22
- en: Full operational access to manage collaborators, projects, contracts, and approvals.
23
- pt: Acesso operacional completo para gerenciar colaboradores, projetos, contratos e aprovacoes.
1
+ - slug: admin-operations-collaborator
2
+ name:
3
+ en: Operations Collaborator
4
+ pt: Colaborador de Operacoes
5
+ description:
6
+ en: Self-service access to assigned projects, contracts, timesheets, and requests.
7
+ pt: Acesso de autoatendimento a projetos atribuidos, contratos, timesheets e solicitacoes.
8
+
9
+ - slug: admin-operations-supervisor
10
+ name:
11
+ en: Operations Supervisor
12
+ pt: Supervisor de Operacoes
13
+ description:
14
+ en: Team oversight with approval access for subordinate operational requests.
15
+ pt: Visao de equipe com acesso de aprovacao para solicitacoes operacionais dos subordinados.
16
+
17
+ - slug: admin-operations-director
18
+ name:
19
+ en: Operations Director
20
+ pt: Diretor de Operacoes
21
+ description:
22
+ en: Full operational access to manage collaborators, projects, contracts, and approvals.
23
+ pt: Acesso operacional completo para gerenciar colaboradores, projetos, contratos e aprovacoes.
@@ -0,0 +1,39 @@
1
+ - role_id:
2
+ where:
3
+ slug: admin-operations-director
4
+ route_id:
5
+ where:
6
+ url: /person
7
+ method: GET
8
+
9
+ - role_id:
10
+ where:
11
+ slug: admin-operations-director
12
+ route_id:
13
+ where:
14
+ url: /person
15
+ method: POST
16
+
17
+ - role_id:
18
+ where:
19
+ slug: admin-operations-director
20
+ route_id:
21
+ where:
22
+ url: /person/:id
23
+ method: PATCH
24
+
25
+ - role_id:
26
+ where:
27
+ slug: admin-operations-director
28
+ route_id:
29
+ where:
30
+ url: /person-contact-type
31
+ method: GET
32
+
33
+ - role_id:
34
+ where:
35
+ slug: admin-operations-director
36
+ route_id:
37
+ where:
38
+ url: /person-document-type
39
+ method: GET