@hed-hog/operations 0.0.294 → 0.0.296
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/dist/operations.controller.d.ts +415 -0
- package/dist/operations.controller.d.ts.map +1 -0
- package/dist/operations.controller.js +333 -0
- package/dist/operations.controller.js.map +1 -0
- package/dist/operations.module.d.ts.map +1 -1
- package/dist/operations.module.js +4 -3
- package/dist/operations.module.js.map +1 -1
- package/dist/operations.service.d.ts +589 -153
- package/dist/operations.service.d.ts.map +1 -1
- package/dist/operations.service.js +2229 -100
- package/dist/operations.service.js.map +1 -1
- package/hedhog/data/menu.yaml +198 -251
- package/hedhog/data/role.yaml +23 -14
- package/hedhog/data/route.yaml +317 -143
- package/hedhog/frontend/app/_components/collaborator-details-screen.tsx.ejs +310 -0
- package/hedhog/frontend/app/_components/collaborator-form-screen.tsx.ejs +631 -0
- package/hedhog/frontend/app/_components/contract-details-screen.tsx.ejs +132 -0
- package/hedhog/frontend/app/_components/contract-form-screen.tsx.ejs +558 -0
- package/hedhog/frontend/app/_components/project-details-screen.tsx.ejs +291 -0
- package/hedhog/frontend/app/_components/project-form-screen.tsx.ejs +689 -0
- package/hedhog/frontend/app/_lib/api.ts.ejs +32 -0
- package/hedhog/frontend/app/_lib/hooks/use-operations-access.ts.ejs +44 -0
- package/hedhog/frontend/app/_lib/types.ts.ejs +360 -0
- package/hedhog/frontend/app/_lib/utils/format.ts.ejs +129 -25
- package/hedhog/frontend/app/_lib/utils/forms.ts.ejs +14 -0
- package/hedhog/frontend/app/approvals/page.tsx.ejs +386 -147
- package/hedhog/frontend/app/collaborators/[id]/edit/page.tsx.ejs +11 -0
- package/hedhog/frontend/app/collaborators/[id]/page.tsx.ejs +11 -0
- package/hedhog/frontend/app/collaborators/new/page.tsx.ejs +5 -0
- package/hedhog/frontend/app/collaborators/page.tsx.ejs +261 -0
- package/hedhog/frontend/app/contracts/[id]/edit/page.tsx.ejs +11 -0
- package/hedhog/frontend/app/contracts/[id]/page.tsx.ejs +11 -108
- package/hedhog/frontend/app/contracts/new/page.tsx.ejs +17 -0
- package/hedhog/frontend/app/contracts/page.tsx.ejs +262 -181
- package/hedhog/frontend/app/page.tsx.ejs +319 -177
- package/hedhog/frontend/app/projects/[id]/edit/page.tsx.ejs +11 -0
- package/hedhog/frontend/app/projects/[id]/page.tsx.ejs +11 -936
- package/hedhog/frontend/app/projects/new/page.tsx.ejs +5 -0
- package/hedhog/frontend/app/projects/page.tsx.ejs +236 -1074
- package/hedhog/frontend/app/schedule-adjustments/page.tsx.ejs +418 -0
- package/hedhog/frontend/app/team/page.tsx.ejs +339 -0
- package/hedhog/frontend/app/time-off/page.tsx.ejs +328 -0
- package/hedhog/frontend/app/timesheets/page.tsx.ejs +636 -126
- package/hedhog/frontend/messages/en.json +648 -454
- package/hedhog/frontend/messages/pt.json +647 -454
- package/hedhog/table/operations_approval.yaml +49 -0
- package/hedhog/table/operations_approval_history.yaml +29 -0
- package/hedhog/table/{operations_employee.yaml → operations_collaborator.yaml} +67 -64
- package/hedhog/table/operations_collaborator_schedule_day.yaml +34 -0
- package/hedhog/table/operations_contract.yaml +100 -48
- package/hedhog/table/operations_contract_document.yaml +39 -0
- package/hedhog/table/operations_contract_financial_term.yaml +40 -0
- package/hedhog/table/operations_contract_history.yaml +27 -0
- package/hedhog/table/operations_contract_party.yaml +46 -0
- package/hedhog/table/operations_contract_revision.yaml +38 -0
- package/hedhog/table/operations_contract_signature.yaml +38 -0
- package/hedhog/table/operations_project.yaml +54 -50
- package/hedhog/table/{operations_allocation.yaml → operations_project_assignment.yaml} +55 -52
- package/hedhog/table/operations_schedule_adjustment_day.yaml +34 -0
- package/hedhog/table/operations_schedule_adjustment_request.yaml +53 -0
- package/hedhog/table/operations_time_off_request.yaml +57 -0
- package/hedhog/table/operations_timesheet.yaml +41 -36
- package/hedhog/table/operations_timesheet_entry.yaml +40 -50
- package/package.json +7 -6
- package/src/operations.controller.ts +182 -0
- package/src/operations.module.ts +22 -21
- package/src/operations.service.ts +3595 -137
- package/hedhog/data/operations_career_level.yaml +0 -102
- package/hedhog/data/operations_career_track.yaml +0 -8
- package/hedhog/data/operations_certification.yaml +0 -38
- package/hedhog/data/operations_evaluation_cycle.yaml +0 -18
- package/hedhog/data/operations_performance_criterion.yaml +0 -48
- package/hedhog/frontend/app/_components/allocation-calendar.tsx.ejs +0 -56
- package/hedhog/frontend/app/_components/kanban-board.tsx.ejs +0 -626
- package/hedhog/frontend/app/_components/timesheet-entry-dialog.tsx.ejs +0 -142
- package/hedhog/frontend/app/_lib/hooks/use-operations-data.ts.ejs +0 -41
- package/hedhog/frontend/app/_lib/hooks/use-operations-growth-data.ts.ejs +0 -63
- package/hedhog/frontend/app/_lib/mocks/allocations.mock.ts.ejs +0 -74
- package/hedhog/frontend/app/_lib/mocks/contracts.mock.ts.ejs +0 -74
- package/hedhog/frontend/app/_lib/mocks/operations-growth.mock.ts.ejs +0 -824
- package/hedhog/frontend/app/_lib/mocks/projects.mock.ts.ejs +0 -455
- package/hedhog/frontend/app/_lib/mocks/tasks.mock.ts.ejs +0 -117
- package/hedhog/frontend/app/_lib/mocks/timesheets.mock.ts.ejs +0 -84
- package/hedhog/frontend/app/_lib/mocks/users.mock.ts.ejs +0 -67
- package/hedhog/frontend/app/_lib/services/contracts.service.ts.ejs +0 -10
- package/hedhog/frontend/app/_lib/services/operations-growth.service.ts.ejs +0 -31
- package/hedhog/frontend/app/_lib/services/projects.service.ts.ejs +0 -10
- package/hedhog/frontend/app/_lib/services/tasks.service.ts.ejs +0 -10
- package/hedhog/frontend/app/_lib/services/timesheets.service.ts.ejs +0 -10
- package/hedhog/frontend/app/_lib/types/operations-growth.ts.ejs +0 -209
- package/hedhog/frontend/app/_lib/types/operations.ts.ejs +0 -156
- package/hedhog/frontend/app/_lib/utils/growth.ts.ejs +0 -62
- package/hedhog/frontend/app/_lib/utils/metrics.ts.ejs +0 -103
- package/hedhog/frontend/app/_lib/utils/status.ts.ejs +0 -80
- package/hedhog/frontend/app/allocations/page.tsx.ejs +0 -155
- package/hedhog/frontend/app/career/page.tsx.ejs +0 -143
- package/hedhog/frontend/app/certifications/page.tsx.ejs +0 -202
- package/hedhog/frontend/app/evaluations/page.tsx.ejs +0 -278
- package/hedhog/frontend/app/goals/page.tsx.ejs +0 -171
- package/hedhog/frontend/app/growth/page.tsx.ejs +0 -288
- package/hedhog/frontend/app/manager/page.tsx.ejs +0 -175
- package/hedhog/frontend/app/rewards/page.tsx.ejs +0 -196
- package/hedhog/frontend/app/tasks/page.tsx.ejs +0 -999
- package/hedhog/table/operations_calibration_item.yaml +0 -61
- package/hedhog/table/operations_calibration_session.yaml +0 -25
- package/hedhog/table/operations_career_level.yaml +0 -75
- package/hedhog/table/operations_career_track.yaml +0 -21
- package/hedhog/table/operations_certification.yaml +0 -48
- package/hedhog/table/operations_employee_certification.yaml +0 -43
- package/hedhog/table/operations_employee_connect.yaml +0 -61
- package/hedhog/table/operations_employee_evaluation.yaml +0 -113
- package/hedhog/table/operations_employee_evaluation_item.yaml +0 -39
- package/hedhog/table/operations_employee_profile.yaml +0 -80
- package/hedhog/table/operations_employee_skill_matrix.yaml +0 -30
- package/hedhog/table/operations_evaluation_cycle.yaml +0 -31
- package/hedhog/table/operations_goal.yaml +0 -67
- package/hedhog/table/operations_goal_progress.yaml +0 -31
- package/hedhog/table/operations_performance_criterion.yaml +0 -29
- package/hedhog/table/operations_promotion_readiness.yaml +0 -49
- package/hedhog/table/operations_promotion_recommendation.yaml +0 -63
- package/hedhog/table/operations_public_recognition.yaml +0 -46
- package/hedhog/table/operations_reward.yaml +0 -100
- package/hedhog/table/operations_score_event.yaml +0 -81
- package/hedhog/table/operations_task.yaml +0 -60
- package/src/operations-data.controller.ts +0 -54
- package/src/operations-growth.controller.ts +0 -44
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
columns:
|
|
2
|
-
- type: pk
|
|
3
|
-
- name: goal_id
|
|
4
|
-
type: fk
|
|
5
|
-
references:
|
|
6
|
-
table: operations_goal
|
|
7
|
-
column: id
|
|
8
|
-
onDelete: CASCADE
|
|
9
|
-
onUpdate: CASCADE
|
|
10
|
-
- name: reference_date
|
|
11
|
-
type: date
|
|
12
|
-
- name: progress_percent
|
|
13
|
-
type: decimal
|
|
14
|
-
precision: 5
|
|
15
|
-
scale: 2
|
|
16
|
-
- name: accumulated_score
|
|
17
|
-
type: decimal
|
|
18
|
-
precision: 10
|
|
19
|
-
scale: 2
|
|
20
|
-
isNullable: true
|
|
21
|
-
- name: notes
|
|
22
|
-
type: text
|
|
23
|
-
isNullable: true
|
|
24
|
-
- type: created_at
|
|
25
|
-
- type: updated_at
|
|
26
|
-
|
|
27
|
-
indices:
|
|
28
|
-
- columns: [goal_id]
|
|
29
|
-
- columns: [reference_date]
|
|
30
|
-
- columns: [goal_id, reference_date]
|
|
31
|
-
isUnique: true
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
columns:
|
|
2
|
-
- type: pk
|
|
3
|
-
- name: slug
|
|
4
|
-
type: varchar
|
|
5
|
-
length: 60
|
|
6
|
-
- name: name
|
|
7
|
-
type: varchar
|
|
8
|
-
length: 180
|
|
9
|
-
- name: description
|
|
10
|
-
type: text
|
|
11
|
-
isNullable: true
|
|
12
|
-
- name: weight
|
|
13
|
-
type: decimal
|
|
14
|
-
precision: 5
|
|
15
|
-
scale: 2
|
|
16
|
-
- name: score_type
|
|
17
|
-
type: enum
|
|
18
|
-
values: [points, percentage, rating]
|
|
19
|
-
default: points
|
|
20
|
-
- name: is_active
|
|
21
|
-
type: boolean
|
|
22
|
-
default: true
|
|
23
|
-
- type: created_at
|
|
24
|
-
- type: updated_at
|
|
25
|
-
|
|
26
|
-
indices:
|
|
27
|
-
- columns: [slug]
|
|
28
|
-
isUnique: true
|
|
29
|
-
- columns: [is_active]
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
columns:
|
|
2
|
-
- type: pk
|
|
3
|
-
- name: employee_id
|
|
4
|
-
type: fk
|
|
5
|
-
references:
|
|
6
|
-
table: operations_employee
|
|
7
|
-
column: id
|
|
8
|
-
onDelete: CASCADE
|
|
9
|
-
onUpdate: CASCADE
|
|
10
|
-
- name: current_level_id
|
|
11
|
-
type: fk
|
|
12
|
-
isNullable: true
|
|
13
|
-
references:
|
|
14
|
-
table: operations_career_level
|
|
15
|
-
column: id
|
|
16
|
-
onDelete: SET NULL
|
|
17
|
-
onUpdate: CASCADE
|
|
18
|
-
- name: target_level_id
|
|
19
|
-
type: fk
|
|
20
|
-
isNullable: true
|
|
21
|
-
references:
|
|
22
|
-
table: operations_career_level
|
|
23
|
-
column: id
|
|
24
|
-
onDelete: SET NULL
|
|
25
|
-
onUpdate: CASCADE
|
|
26
|
-
- name: readiness_status
|
|
27
|
-
type: enum
|
|
28
|
-
values: [not_ready, progressing, ready, exceeding]
|
|
29
|
-
default: progressing
|
|
30
|
-
- name: operating_since
|
|
31
|
-
type: date
|
|
32
|
-
isNullable: true
|
|
33
|
-
- name: evidence_summary
|
|
34
|
-
type: text
|
|
35
|
-
isNullable: true
|
|
36
|
-
- name: manager_recommendation
|
|
37
|
-
type: text
|
|
38
|
-
isNullable: true
|
|
39
|
-
- name: calibration_result
|
|
40
|
-
type: text
|
|
41
|
-
isNullable: true
|
|
42
|
-
- type: created_at
|
|
43
|
-
- type: updated_at
|
|
44
|
-
|
|
45
|
-
indices:
|
|
46
|
-
- columns: [employee_id]
|
|
47
|
-
- columns: [current_level_id]
|
|
48
|
-
- columns: [target_level_id]
|
|
49
|
-
- columns: [readiness_status]
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
columns:
|
|
2
|
-
- type: pk
|
|
3
|
-
- name: employee_id
|
|
4
|
-
type: fk
|
|
5
|
-
references:
|
|
6
|
-
table: operations_employee
|
|
7
|
-
column: id
|
|
8
|
-
onDelete: CASCADE
|
|
9
|
-
onUpdate: CASCADE
|
|
10
|
-
- name: current_level_id
|
|
11
|
-
type: fk
|
|
12
|
-
isNullable: true
|
|
13
|
-
references:
|
|
14
|
-
table: operations_career_level
|
|
15
|
-
column: id
|
|
16
|
-
onDelete: SET NULL
|
|
17
|
-
onUpdate: CASCADE
|
|
18
|
-
- name: suggested_level_id
|
|
19
|
-
type: fk
|
|
20
|
-
isNullable: true
|
|
21
|
-
references:
|
|
22
|
-
table: operations_career_level
|
|
23
|
-
column: id
|
|
24
|
-
onDelete: SET NULL
|
|
25
|
-
onUpdate: CASCADE
|
|
26
|
-
- name: evaluation_cycle_id
|
|
27
|
-
type: fk
|
|
28
|
-
isNullable: true
|
|
29
|
-
references:
|
|
30
|
-
table: operations_evaluation_cycle
|
|
31
|
-
column: id
|
|
32
|
-
onDelete: SET NULL
|
|
33
|
-
onUpdate: CASCADE
|
|
34
|
-
- name: current_score
|
|
35
|
-
type: decimal
|
|
36
|
-
precision: 10
|
|
37
|
-
scale: 2
|
|
38
|
-
isNullable: true
|
|
39
|
-
- name: required_score
|
|
40
|
-
type: decimal
|
|
41
|
-
precision: 10
|
|
42
|
-
scale: 2
|
|
43
|
-
isNullable: true
|
|
44
|
-
- name: is_eligible
|
|
45
|
-
type: boolean
|
|
46
|
-
default: false
|
|
47
|
-
- name: justification
|
|
48
|
-
type: text
|
|
49
|
-
isNullable: true
|
|
50
|
-
- name: status
|
|
51
|
-
type: enum
|
|
52
|
-
values: [draft, under_review, approved, rejected, promoted]
|
|
53
|
-
default: draft
|
|
54
|
-
- type: created_at
|
|
55
|
-
- type: updated_at
|
|
56
|
-
|
|
57
|
-
indices:
|
|
58
|
-
- columns: [employee_id]
|
|
59
|
-
- columns: [current_level_id]
|
|
60
|
-
- columns: [suggested_level_id]
|
|
61
|
-
- columns: [evaluation_cycle_id]
|
|
62
|
-
- columns: [is_eligible]
|
|
63
|
-
- columns: [status]
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
columns:
|
|
2
|
-
- type: pk
|
|
3
|
-
- name: employee_id
|
|
4
|
-
type: fk
|
|
5
|
-
references:
|
|
6
|
-
table: operations_employee
|
|
7
|
-
column: id
|
|
8
|
-
onDelete: CASCADE
|
|
9
|
-
onUpdate: CASCADE
|
|
10
|
-
- name: author_employee_id
|
|
11
|
-
type: fk
|
|
12
|
-
isNullable: true
|
|
13
|
-
references:
|
|
14
|
-
table: operations_employee
|
|
15
|
-
column: id
|
|
16
|
-
onDelete: SET NULL
|
|
17
|
-
onUpdate: CASCADE
|
|
18
|
-
- name: project_id
|
|
19
|
-
type: fk
|
|
20
|
-
isNullable: true
|
|
21
|
-
references:
|
|
22
|
-
table: operations_project
|
|
23
|
-
column: id
|
|
24
|
-
onDelete: SET NULL
|
|
25
|
-
onUpdate: CASCADE
|
|
26
|
-
- name: message
|
|
27
|
-
type: text
|
|
28
|
-
- name: related_score
|
|
29
|
-
type: decimal
|
|
30
|
-
precision: 10
|
|
31
|
-
scale: 2
|
|
32
|
-
isNullable: true
|
|
33
|
-
- name: recognition_date
|
|
34
|
-
type: date
|
|
35
|
-
- name: is_visible
|
|
36
|
-
type: boolean
|
|
37
|
-
default: true
|
|
38
|
-
- type: created_at
|
|
39
|
-
- type: updated_at
|
|
40
|
-
|
|
41
|
-
indices:
|
|
42
|
-
- columns: [employee_id]
|
|
43
|
-
- columns: [author_employee_id]
|
|
44
|
-
- columns: [project_id]
|
|
45
|
-
- columns: [recognition_date]
|
|
46
|
-
- columns: [is_visible]
|
|
@@ -1,100 +0,0 @@
|
|
|
1
|
-
columns:
|
|
2
|
-
- type: pk
|
|
3
|
-
- name: employee_id
|
|
4
|
-
type: fk
|
|
5
|
-
references:
|
|
6
|
-
table: operations_employee
|
|
7
|
-
column: id
|
|
8
|
-
onDelete: CASCADE
|
|
9
|
-
onUpdate: CASCADE
|
|
10
|
-
- name: project_id
|
|
11
|
-
type: fk
|
|
12
|
-
isNullable: true
|
|
13
|
-
references:
|
|
14
|
-
table: operations_project
|
|
15
|
-
column: id
|
|
16
|
-
onDelete: SET NULL
|
|
17
|
-
onUpdate: CASCADE
|
|
18
|
-
- name: evaluation_id
|
|
19
|
-
type: fk
|
|
20
|
-
isNullable: true
|
|
21
|
-
references:
|
|
22
|
-
table: operations_employee_evaluation
|
|
23
|
-
column: id
|
|
24
|
-
onDelete: SET NULL
|
|
25
|
-
onUpdate: CASCADE
|
|
26
|
-
- name: goal_id
|
|
27
|
-
type: fk
|
|
28
|
-
isNullable: true
|
|
29
|
-
references:
|
|
30
|
-
table: operations_goal
|
|
31
|
-
column: id
|
|
32
|
-
onDelete: SET NULL
|
|
33
|
-
onUpdate: CASCADE
|
|
34
|
-
- name: certification_id
|
|
35
|
-
type: fk
|
|
36
|
-
isNullable: true
|
|
37
|
-
references:
|
|
38
|
-
table: operations_certification
|
|
39
|
-
column: id
|
|
40
|
-
onDelete: SET NULL
|
|
41
|
-
onUpdate: CASCADE
|
|
42
|
-
- name: cycle_id
|
|
43
|
-
type: fk
|
|
44
|
-
isNullable: true
|
|
45
|
-
references:
|
|
46
|
-
table: operations_evaluation_cycle
|
|
47
|
-
column: id
|
|
48
|
-
onDelete: SET NULL
|
|
49
|
-
onUpdate: CASCADE
|
|
50
|
-
- name: reward_type
|
|
51
|
-
type: enum
|
|
52
|
-
values: [financial, bonus, recognition, badge, gift, other, merit_increase, equity]
|
|
53
|
-
default: recognition
|
|
54
|
-
- name: origin_type
|
|
55
|
-
type: enum
|
|
56
|
-
values: [goal, evaluation, certification, spot, manual, project]
|
|
57
|
-
default: manual
|
|
58
|
-
- name: impact_reference_id
|
|
59
|
-
type: int
|
|
60
|
-
isNullable: true
|
|
61
|
-
- name: amount
|
|
62
|
-
type: decimal
|
|
63
|
-
precision: 12
|
|
64
|
-
scale: 2
|
|
65
|
-
isNullable: true
|
|
66
|
-
- name: currency
|
|
67
|
-
type: varchar
|
|
68
|
-
length: 3
|
|
69
|
-
isNullable: true
|
|
70
|
-
- name: related_score
|
|
71
|
-
type: decimal
|
|
72
|
-
precision: 10
|
|
73
|
-
scale: 2
|
|
74
|
-
isNullable: true
|
|
75
|
-
- name: description
|
|
76
|
-
type: text
|
|
77
|
-
- name: justification
|
|
78
|
-
type: text
|
|
79
|
-
isNullable: true
|
|
80
|
-
- name: reward_date
|
|
81
|
-
type: date
|
|
82
|
-
- name: status
|
|
83
|
-
type: enum
|
|
84
|
-
values: [planned, granted, canceled]
|
|
85
|
-
default: planned
|
|
86
|
-
- type: created_at
|
|
87
|
-
- type: updated_at
|
|
88
|
-
|
|
89
|
-
indices:
|
|
90
|
-
- columns: [employee_id]
|
|
91
|
-
- columns: [project_id]
|
|
92
|
-
- columns: [evaluation_id]
|
|
93
|
-
- columns: [goal_id]
|
|
94
|
-
- columns: [certification_id]
|
|
95
|
-
- columns: [cycle_id]
|
|
96
|
-
- columns: [reward_type]
|
|
97
|
-
- columns: [origin_type]
|
|
98
|
-
- columns: [impact_reference_id]
|
|
99
|
-
- columns: [status]
|
|
100
|
-
- columns: [reward_date]
|
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
columns:
|
|
2
|
-
- type: pk
|
|
3
|
-
- name: employee_id
|
|
4
|
-
type: fk
|
|
5
|
-
references:
|
|
6
|
-
table: operations_employee
|
|
7
|
-
column: id
|
|
8
|
-
onDelete: CASCADE
|
|
9
|
-
onUpdate: CASCADE
|
|
10
|
-
- name: project_id
|
|
11
|
-
type: fk
|
|
12
|
-
isNullable: true
|
|
13
|
-
references:
|
|
14
|
-
table: operations_project
|
|
15
|
-
column: id
|
|
16
|
-
onDelete: SET NULL
|
|
17
|
-
onUpdate: CASCADE
|
|
18
|
-
- name: evaluation_id
|
|
19
|
-
type: fk
|
|
20
|
-
isNullable: true
|
|
21
|
-
references:
|
|
22
|
-
table: operations_employee_evaluation
|
|
23
|
-
column: id
|
|
24
|
-
onDelete: SET NULL
|
|
25
|
-
onUpdate: CASCADE
|
|
26
|
-
- name: goal_id
|
|
27
|
-
type: fk
|
|
28
|
-
isNullable: true
|
|
29
|
-
references:
|
|
30
|
-
table: operations_goal
|
|
31
|
-
column: id
|
|
32
|
-
onDelete: SET NULL
|
|
33
|
-
onUpdate: CASCADE
|
|
34
|
-
- name: certification_id
|
|
35
|
-
type: fk
|
|
36
|
-
isNullable: true
|
|
37
|
-
references:
|
|
38
|
-
table: operations_certification
|
|
39
|
-
column: id
|
|
40
|
-
onDelete: SET NULL
|
|
41
|
-
onUpdate: CASCADE
|
|
42
|
-
- name: recognition_id
|
|
43
|
-
type: fk
|
|
44
|
-
isNullable: true
|
|
45
|
-
references:
|
|
46
|
-
table: operations_public_recognition
|
|
47
|
-
column: id
|
|
48
|
-
onDelete: SET NULL
|
|
49
|
-
onUpdate: CASCADE
|
|
50
|
-
- name: source_type
|
|
51
|
-
type: enum
|
|
52
|
-
values: [evaluation, certification, goal, recognition, manual_adjustment, project]
|
|
53
|
-
default: manual_adjustment
|
|
54
|
-
- name: impact_reference_type
|
|
55
|
-
type: enum
|
|
56
|
-
values: [evaluation, certification, goal, recognition, manual]
|
|
57
|
-
isNullable: true
|
|
58
|
-
- name: source_id
|
|
59
|
-
type: int
|
|
60
|
-
isNullable: true
|
|
61
|
-
- name: score_delta
|
|
62
|
-
type: decimal
|
|
63
|
-
precision: 10
|
|
64
|
-
scale: 2
|
|
65
|
-
- name: description
|
|
66
|
-
type: text
|
|
67
|
-
- name: reference_date
|
|
68
|
-
type: date
|
|
69
|
-
- type: created_at
|
|
70
|
-
- type: updated_at
|
|
71
|
-
|
|
72
|
-
indices:
|
|
73
|
-
- columns: [employee_id]
|
|
74
|
-
- columns: [project_id]
|
|
75
|
-
- columns: [evaluation_id]
|
|
76
|
-
- columns: [goal_id]
|
|
77
|
-
- columns: [certification_id]
|
|
78
|
-
- columns: [recognition_id]
|
|
79
|
-
- columns: [source_type]
|
|
80
|
-
- columns: [impact_reference_type]
|
|
81
|
-
- columns: [reference_date]
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
columns:
|
|
2
|
-
- type: pk
|
|
3
|
-
- name: project_id
|
|
4
|
-
type: fk
|
|
5
|
-
isNullable: true
|
|
6
|
-
references:
|
|
7
|
-
table: operations_project
|
|
8
|
-
column: id
|
|
9
|
-
onDelete: SET NULL
|
|
10
|
-
onUpdate: CASCADE
|
|
11
|
-
- name: assignee_employee_id
|
|
12
|
-
type: fk
|
|
13
|
-
isNullable: true
|
|
14
|
-
references:
|
|
15
|
-
table: operations_employee
|
|
16
|
-
column: id
|
|
17
|
-
onDelete: SET NULL
|
|
18
|
-
onUpdate: CASCADE
|
|
19
|
-
- name: external_reference
|
|
20
|
-
type: varchar
|
|
21
|
-
length: 80
|
|
22
|
-
isNullable: true
|
|
23
|
-
- name: title
|
|
24
|
-
type: varchar
|
|
25
|
-
length: 180
|
|
26
|
-
- name: description
|
|
27
|
-
type: text
|
|
28
|
-
isNullable: true
|
|
29
|
-
- name: status
|
|
30
|
-
type: enum
|
|
31
|
-
values: [backlog, todo, in_progress, review, done, canceled]
|
|
32
|
-
default: backlog
|
|
33
|
-
- name: priority
|
|
34
|
-
type: enum
|
|
35
|
-
values: [low, medium, high, urgent]
|
|
36
|
-
default: medium
|
|
37
|
-
- name: estimated_hours
|
|
38
|
-
type: decimal
|
|
39
|
-
precision: 6
|
|
40
|
-
scale: 2
|
|
41
|
-
isNullable: true
|
|
42
|
-
- name: due_date
|
|
43
|
-
type: date
|
|
44
|
-
isNullable: true
|
|
45
|
-
- name: completed_at
|
|
46
|
-
type: datetime
|
|
47
|
-
isNullable: true
|
|
48
|
-
- name: deleted_at
|
|
49
|
-
type: datetime
|
|
50
|
-
isNullable: true
|
|
51
|
-
- type: created_at
|
|
52
|
-
- type: updated_at
|
|
53
|
-
|
|
54
|
-
indices:
|
|
55
|
-
- columns: [project_id]
|
|
56
|
-
- columns: [assignee_employee_id]
|
|
57
|
-
- columns: [status]
|
|
58
|
-
- columns: [priority]
|
|
59
|
-
- columns: [due_date]
|
|
60
|
-
- columns: [deleted_at]
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import { Role } from '@hed-hog/api';
|
|
2
|
-
import { Controller, Get, Param, ParseIntPipe } from '@nestjs/common';
|
|
3
|
-
import { OperationsService } from './operations.service';
|
|
4
|
-
|
|
5
|
-
@Role()
|
|
6
|
-
@Controller('operations')
|
|
7
|
-
export class OperationsDataController {
|
|
8
|
-
constructor(private readonly operationsService: OperationsService) {}
|
|
9
|
-
|
|
10
|
-
@Get()
|
|
11
|
-
getDashboard() {
|
|
12
|
-
return this.operationsService.getDashboard();
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
@Get('contracts')
|
|
16
|
-
listContracts() {
|
|
17
|
-
return this.operationsService.listContracts();
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
@Get('contracts/:id')
|
|
21
|
-
getContract(@Param('id', ParseIntPipe) id: number) {
|
|
22
|
-
return this.operationsService.getContractById(id);
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
@Get('projects')
|
|
26
|
-
listProjects() {
|
|
27
|
-
return this.operationsService.listProjects();
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
@Get('projects/:id')
|
|
31
|
-
getProject(@Param('id', ParseIntPipe) id: number) {
|
|
32
|
-
return this.operationsService.getProjectById(id);
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
@Get('allocations')
|
|
36
|
-
listAllocations() {
|
|
37
|
-
return this.operationsService.listAllocations();
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
@Get('tasks')
|
|
41
|
-
listTasks() {
|
|
42
|
-
return this.operationsService.listTasks();
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
@Get('timesheets')
|
|
46
|
-
listTimesheets() {
|
|
47
|
-
return this.operationsService.listTimesheets();
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
@Get('approvals')
|
|
51
|
-
listApprovals() {
|
|
52
|
-
return this.operationsService.listApprovals();
|
|
53
|
-
}
|
|
54
|
-
}
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import { Role } from '@hed-hog/api';
|
|
2
|
-
import { Controller, Get } from '@nestjs/common';
|
|
3
|
-
import { OperationsService } from './operations.service';
|
|
4
|
-
|
|
5
|
-
@Role()
|
|
6
|
-
@Controller('operations')
|
|
7
|
-
export class OperationsGrowthController {
|
|
8
|
-
constructor(private readonly operationsService: OperationsService) {}
|
|
9
|
-
|
|
10
|
-
@Get('growth')
|
|
11
|
-
getGrowthDashboard() {
|
|
12
|
-
return this.operationsService.getGrowthDashboard();
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
@Get('evaluations')
|
|
16
|
-
listEvaluations() {
|
|
17
|
-
return this.operationsService.listEvaluations();
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
@Get('goals')
|
|
21
|
-
listGoals() {
|
|
22
|
-
return this.operationsService.listGoals();
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
@Get('certifications')
|
|
26
|
-
listCertifications() {
|
|
27
|
-
return this.operationsService.listCertifications();
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
@Get('rewards')
|
|
31
|
-
listRewards() {
|
|
32
|
-
return this.operationsService.listRewards();
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
@Get('career')
|
|
36
|
-
listCareerPaths() {
|
|
37
|
-
return this.operationsService.listCareerPaths();
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
@Get('manager')
|
|
41
|
-
getManagerOverview() {
|
|
42
|
-
return this.operationsService.getManagerOverview();
|
|
43
|
-
}
|
|
44
|
-
}
|