@hed-hog/operations 0.0.295 → 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 +8 -7
- 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,49 +1,53 @@
|
|
|
1
|
-
columns:
|
|
2
|
-
- type: pk
|
|
3
|
-
- name: contract_id
|
|
4
|
-
type: fk
|
|
5
|
-
isNullable: true
|
|
6
|
-
references:
|
|
7
|
-
table: operations_contract
|
|
8
|
-
column: id
|
|
9
|
-
onDelete: SET NULL
|
|
10
|
-
onUpdate: CASCADE
|
|
11
|
-
- name: owner_employee_id
|
|
12
|
-
type: fk
|
|
13
|
-
isNullable: true
|
|
1
|
+
columns:
|
|
2
|
+
- type: pk
|
|
3
|
+
- name: contract_id
|
|
4
|
+
type: fk
|
|
5
|
+
isNullable: true
|
|
14
6
|
references:
|
|
15
|
-
table:
|
|
16
|
-
column: id
|
|
17
|
-
onDelete: SET NULL
|
|
18
|
-
onUpdate: CASCADE
|
|
19
|
-
- name:
|
|
20
|
-
type:
|
|
7
|
+
table: operations_contract
|
|
8
|
+
column: id
|
|
9
|
+
onDelete: SET NULL
|
|
10
|
+
onUpdate: CASCADE
|
|
11
|
+
- name: manager_collaborator_id
|
|
12
|
+
type: fk
|
|
13
|
+
isNullable: true
|
|
14
|
+
references:
|
|
15
|
+
table: operations_collaborator
|
|
16
|
+
column: id
|
|
17
|
+
onDelete: SET NULL
|
|
18
|
+
onUpdate: CASCADE
|
|
19
|
+
- name: code
|
|
20
|
+
type: varchar
|
|
21
21
|
length: 40
|
|
22
22
|
- name: name
|
|
23
23
|
type: varchar
|
|
24
24
|
length: 180
|
|
25
|
-
- name: client_name
|
|
26
|
-
type: varchar
|
|
27
|
-
length: 180
|
|
28
|
-
isNullable: true
|
|
29
|
-
- name:
|
|
30
|
-
type: text
|
|
31
|
-
isNullable: true
|
|
32
|
-
- name: status
|
|
33
|
-
type: enum
|
|
34
|
-
values: [planning, active, at_risk, paused, completed, archived]
|
|
25
|
+
- name: client_name
|
|
26
|
+
type: varchar
|
|
27
|
+
length: 180
|
|
28
|
+
isNullable: true
|
|
29
|
+
- name: summary
|
|
30
|
+
type: text
|
|
31
|
+
isNullable: true
|
|
32
|
+
- name: status
|
|
33
|
+
type: enum
|
|
34
|
+
values: [planning, active, at_risk, paused, completed, archived]
|
|
35
35
|
default: planning
|
|
36
|
-
- name: progress_percent
|
|
37
|
-
type: decimal
|
|
38
|
-
precision: 5
|
|
39
|
-
scale: 2
|
|
40
|
-
isNullable: true
|
|
41
|
-
- name:
|
|
42
|
-
type:
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
36
|
+
- name: progress_percent
|
|
37
|
+
type: decimal
|
|
38
|
+
precision: 5
|
|
39
|
+
scale: 2
|
|
40
|
+
isNullable: true
|
|
41
|
+
- name: delivery_model
|
|
42
|
+
type: enum
|
|
43
|
+
values: [dedicated_team, shared_team, project_delivery, support]
|
|
44
|
+
default: project_delivery
|
|
45
|
+
- name: budget_amount
|
|
46
|
+
type: decimal
|
|
47
|
+
precision: 12
|
|
48
|
+
scale: 2
|
|
49
|
+
isNullable: true
|
|
50
|
+
- name: start_date
|
|
47
51
|
type: date
|
|
48
52
|
isNullable: true
|
|
49
53
|
- name: end_date
|
|
@@ -54,13 +58,13 @@ columns:
|
|
|
54
58
|
isNullable: true
|
|
55
59
|
- type: created_at
|
|
56
60
|
- type: updated_at
|
|
57
|
-
|
|
58
|
-
indices:
|
|
59
|
-
- columns: [code]
|
|
60
|
-
isUnique: true
|
|
61
|
-
- columns: [contract_id]
|
|
62
|
-
- columns: [
|
|
63
|
-
- columns: [status]
|
|
64
|
-
- columns: [start_date]
|
|
65
|
-
- columns: [end_date]
|
|
66
|
-
- columns: [deleted_at]
|
|
61
|
+
|
|
62
|
+
indices:
|
|
63
|
+
- columns: [code]
|
|
64
|
+
isUnique: true
|
|
65
|
+
- columns: [contract_id]
|
|
66
|
+
- columns: [manager_collaborator_id]
|
|
67
|
+
- columns: [status]
|
|
68
|
+
- columns: [start_date]
|
|
69
|
+
- columns: [end_date]
|
|
70
|
+
- columns: [deleted_at]
|
|
@@ -1,52 +1,55 @@
|
|
|
1
|
-
columns:
|
|
2
|
-
- type: pk
|
|
3
|
-
- name:
|
|
4
|
-
type: fk
|
|
5
|
-
references:
|
|
6
|
-
table:
|
|
7
|
-
column: id
|
|
8
|
-
onDelete: CASCADE
|
|
9
|
-
onUpdate: CASCADE
|
|
10
|
-
- name:
|
|
11
|
-
type: fk
|
|
12
|
-
references:
|
|
13
|
-
table:
|
|
14
|
-
column: id
|
|
15
|
-
onDelete: CASCADE
|
|
16
|
-
onUpdate: CASCADE
|
|
17
|
-
- name:
|
|
18
|
-
type: varchar
|
|
19
|
-
length: 120
|
|
20
|
-
- name:
|
|
21
|
-
type: decimal
|
|
22
|
-
precision:
|
|
23
|
-
scale: 2
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
- name:
|
|
31
|
-
type:
|
|
32
|
-
|
|
33
|
-
- name:
|
|
34
|
-
type:
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
- columns: [
|
|
51
|
-
- columns: [
|
|
52
|
-
- columns: [
|
|
1
|
+
columns:
|
|
2
|
+
- type: pk
|
|
3
|
+
- name: project_id
|
|
4
|
+
type: fk
|
|
5
|
+
references:
|
|
6
|
+
table: operations_project
|
|
7
|
+
column: id
|
|
8
|
+
onDelete: CASCADE
|
|
9
|
+
onUpdate: CASCADE
|
|
10
|
+
- name: collaborator_id
|
|
11
|
+
type: fk
|
|
12
|
+
references:
|
|
13
|
+
table: operations_collaborator
|
|
14
|
+
column: id
|
|
15
|
+
onDelete: CASCADE
|
|
16
|
+
onUpdate: CASCADE
|
|
17
|
+
- name: role_label
|
|
18
|
+
type: varchar
|
|
19
|
+
length: 120
|
|
20
|
+
- name: allocation_percent
|
|
21
|
+
type: decimal
|
|
22
|
+
precision: 5
|
|
23
|
+
scale: 2
|
|
24
|
+
isNullable: true
|
|
25
|
+
- name: weekly_hours
|
|
26
|
+
type: decimal
|
|
27
|
+
precision: 6
|
|
28
|
+
scale: 2
|
|
29
|
+
isNullable: true
|
|
30
|
+
- name: is_billable
|
|
31
|
+
type: boolean
|
|
32
|
+
default: true
|
|
33
|
+
- name: start_date
|
|
34
|
+
type: date
|
|
35
|
+
isNullable: true
|
|
36
|
+
- name: end_date
|
|
37
|
+
type: date
|
|
38
|
+
isNullable: true
|
|
39
|
+
- name: status
|
|
40
|
+
type: enum
|
|
41
|
+
values: [planned, active, completed, cancelled]
|
|
42
|
+
default: active
|
|
43
|
+
- name: deleted_at
|
|
44
|
+
type: datetime
|
|
45
|
+
isNullable: true
|
|
46
|
+
- type: created_at
|
|
47
|
+
- type: updated_at
|
|
48
|
+
|
|
49
|
+
indices:
|
|
50
|
+
- columns: [project_id]
|
|
51
|
+
- columns: [collaborator_id]
|
|
52
|
+
- columns: [status]
|
|
53
|
+
- columns: [start_date]
|
|
54
|
+
- columns: [end_date]
|
|
55
|
+
- columns: [deleted_at]
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
columns:
|
|
2
|
+
- type: pk
|
|
3
|
+
- name: schedule_adjustment_request_id
|
|
4
|
+
type: fk
|
|
5
|
+
references:
|
|
6
|
+
table: operations_schedule_adjustment_request
|
|
7
|
+
column: id
|
|
8
|
+
onDelete: CASCADE
|
|
9
|
+
onUpdate: CASCADE
|
|
10
|
+
- name: weekday
|
|
11
|
+
type: enum
|
|
12
|
+
values: [monday, tuesday, wednesday, thursday, friday, saturday, sunday]
|
|
13
|
+
- name: is_working_day
|
|
14
|
+
type: boolean
|
|
15
|
+
default: true
|
|
16
|
+
- name: start_time
|
|
17
|
+
type: varchar
|
|
18
|
+
length: 5
|
|
19
|
+
isNullable: true
|
|
20
|
+
- name: end_time
|
|
21
|
+
type: varchar
|
|
22
|
+
length: 5
|
|
23
|
+
isNullable: true
|
|
24
|
+
- name: break_minutes
|
|
25
|
+
type: int
|
|
26
|
+
isNullable: true
|
|
27
|
+
- type: created_at
|
|
28
|
+
- type: updated_at
|
|
29
|
+
|
|
30
|
+
indices:
|
|
31
|
+
- columns: [schedule_adjustment_request_id]
|
|
32
|
+
- columns: [weekday]
|
|
33
|
+
- columns: [schedule_adjustment_request_id, weekday]
|
|
34
|
+
isUnique: true
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
columns:
|
|
2
|
+
- type: pk
|
|
3
|
+
- name: collaborator_id
|
|
4
|
+
type: fk
|
|
5
|
+
references:
|
|
6
|
+
table: operations_collaborator
|
|
7
|
+
column: id
|
|
8
|
+
onDelete: CASCADE
|
|
9
|
+
onUpdate: CASCADE
|
|
10
|
+
- name: approver_collaborator_id
|
|
11
|
+
type: fk
|
|
12
|
+
isNullable: true
|
|
13
|
+
references:
|
|
14
|
+
table: operations_collaborator
|
|
15
|
+
column: id
|
|
16
|
+
onDelete: SET NULL
|
|
17
|
+
onUpdate: CASCADE
|
|
18
|
+
- name: request_scope
|
|
19
|
+
type: enum
|
|
20
|
+
values: [temporary, permanent]
|
|
21
|
+
default: temporary
|
|
22
|
+
- name: effective_start_date
|
|
23
|
+
type: date
|
|
24
|
+
- name: effective_end_date
|
|
25
|
+
type: date
|
|
26
|
+
isNullable: true
|
|
27
|
+
- name: status
|
|
28
|
+
type: enum
|
|
29
|
+
values: [draft, submitted, approved, rejected, cancelled]
|
|
30
|
+
default: draft
|
|
31
|
+
- name: reason
|
|
32
|
+
type: text
|
|
33
|
+
isNullable: true
|
|
34
|
+
- name: submitted_at
|
|
35
|
+
type: datetime
|
|
36
|
+
isNullable: true
|
|
37
|
+
- name: reviewed_at
|
|
38
|
+
type: datetime
|
|
39
|
+
isNullable: true
|
|
40
|
+
- name: deleted_at
|
|
41
|
+
type: datetime
|
|
42
|
+
isNullable: true
|
|
43
|
+
- type: created_at
|
|
44
|
+
- type: updated_at
|
|
45
|
+
|
|
46
|
+
indices:
|
|
47
|
+
- columns: [collaborator_id]
|
|
48
|
+
- columns: [approver_collaborator_id]
|
|
49
|
+
- columns: [request_scope]
|
|
50
|
+
- columns: [status]
|
|
51
|
+
- columns: [effective_start_date]
|
|
52
|
+
- columns: [effective_end_date]
|
|
53
|
+
- columns: [deleted_at]
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
columns:
|
|
2
|
+
- type: pk
|
|
3
|
+
- name: collaborator_id
|
|
4
|
+
type: fk
|
|
5
|
+
references:
|
|
6
|
+
table: operations_collaborator
|
|
7
|
+
column: id
|
|
8
|
+
onDelete: CASCADE
|
|
9
|
+
onUpdate: CASCADE
|
|
10
|
+
- name: approver_collaborator_id
|
|
11
|
+
type: fk
|
|
12
|
+
isNullable: true
|
|
13
|
+
references:
|
|
14
|
+
table: operations_collaborator
|
|
15
|
+
column: id
|
|
16
|
+
onDelete: SET NULL
|
|
17
|
+
onUpdate: CASCADE
|
|
18
|
+
- name: request_type
|
|
19
|
+
type: enum
|
|
20
|
+
values: [vacation, personal_time, sick_leave, unpaid_leave, other]
|
|
21
|
+
default: vacation
|
|
22
|
+
- name: start_date
|
|
23
|
+
type: date
|
|
24
|
+
- name: end_date
|
|
25
|
+
type: date
|
|
26
|
+
- name: total_days
|
|
27
|
+
type: decimal
|
|
28
|
+
precision: 6
|
|
29
|
+
scale: 2
|
|
30
|
+
isNullable: true
|
|
31
|
+
- name: status
|
|
32
|
+
type: enum
|
|
33
|
+
values: [draft, submitted, approved, rejected, cancelled]
|
|
34
|
+
default: draft
|
|
35
|
+
- name: reason
|
|
36
|
+
type: text
|
|
37
|
+
isNullable: true
|
|
38
|
+
- name: submitted_at
|
|
39
|
+
type: datetime
|
|
40
|
+
isNullable: true
|
|
41
|
+
- name: reviewed_at
|
|
42
|
+
type: datetime
|
|
43
|
+
isNullable: true
|
|
44
|
+
- name: deleted_at
|
|
45
|
+
type: datetime
|
|
46
|
+
isNullable: true
|
|
47
|
+
- type: created_at
|
|
48
|
+
- type: updated_at
|
|
49
|
+
|
|
50
|
+
indices:
|
|
51
|
+
- columns: [collaborator_id]
|
|
52
|
+
- columns: [approver_collaborator_id]
|
|
53
|
+
- columns: [request_type]
|
|
54
|
+
- columns: [status]
|
|
55
|
+
- columns: [start_date]
|
|
56
|
+
- columns: [end_date]
|
|
57
|
+
- columns: [deleted_at]
|
|
@@ -1,28 +1,33 @@
|
|
|
1
|
-
columns:
|
|
2
|
-
- type: pk
|
|
3
|
-
- name:
|
|
4
|
-
type: fk
|
|
5
|
-
references:
|
|
6
|
-
table:
|
|
7
|
-
column: id
|
|
8
|
-
onDelete: CASCADE
|
|
9
|
-
onUpdate: CASCADE
|
|
10
|
-
- name:
|
|
11
|
-
type: fk
|
|
12
|
-
isNullable: true
|
|
13
|
-
references:
|
|
14
|
-
table:
|
|
15
|
-
column: id
|
|
16
|
-
onDelete: SET NULL
|
|
17
|
-
onUpdate: CASCADE
|
|
18
|
-
- name:
|
|
19
|
-
type: date
|
|
20
|
-
- name:
|
|
21
|
-
type: date
|
|
22
|
-
- name:
|
|
23
|
-
type:
|
|
24
|
-
|
|
25
|
-
|
|
1
|
+
columns:
|
|
2
|
+
- type: pk
|
|
3
|
+
- name: collaborator_id
|
|
4
|
+
type: fk
|
|
5
|
+
references:
|
|
6
|
+
table: operations_collaborator
|
|
7
|
+
column: id
|
|
8
|
+
onDelete: CASCADE
|
|
9
|
+
onUpdate: CASCADE
|
|
10
|
+
- name: approver_collaborator_id
|
|
11
|
+
type: fk
|
|
12
|
+
isNullable: true
|
|
13
|
+
references:
|
|
14
|
+
table: operations_collaborator
|
|
15
|
+
column: id
|
|
16
|
+
onDelete: SET NULL
|
|
17
|
+
onUpdate: CASCADE
|
|
18
|
+
- name: week_start_date
|
|
19
|
+
type: date
|
|
20
|
+
- name: week_end_date
|
|
21
|
+
type: date
|
|
22
|
+
- name: total_hours
|
|
23
|
+
type: decimal
|
|
24
|
+
precision: 6
|
|
25
|
+
scale: 2
|
|
26
|
+
isNullable: true
|
|
27
|
+
- name: status
|
|
28
|
+
type: enum
|
|
29
|
+
values: [draft, submitted, approved, rejected]
|
|
30
|
+
default: draft
|
|
26
31
|
- name: submitted_at
|
|
27
32
|
type: datetime
|
|
28
33
|
isNullable: true
|
|
@@ -36,14 +41,14 @@ columns:
|
|
|
36
41
|
type: datetime
|
|
37
42
|
isNullable: true
|
|
38
43
|
- type: created_at
|
|
39
|
-
- type: updated_at
|
|
40
|
-
|
|
41
|
-
indices:
|
|
42
|
-
- columns: [
|
|
43
|
-
- columns: [
|
|
44
|
-
- columns: [status]
|
|
45
|
-
- columns: [
|
|
46
|
-
- columns: [
|
|
47
|
-
- columns: [
|
|
48
|
-
isUnique: true
|
|
49
|
-
- columns: [deleted_at]
|
|
44
|
+
- type: updated_at
|
|
45
|
+
|
|
46
|
+
indices:
|
|
47
|
+
- columns: [collaborator_id]
|
|
48
|
+
- columns: [approver_collaborator_id]
|
|
49
|
+
- columns: [status]
|
|
50
|
+
- columns: [week_start_date]
|
|
51
|
+
- columns: [week_end_date]
|
|
52
|
+
- columns: [collaborator_id, week_start_date, week_end_date]
|
|
53
|
+
isUnique: true
|
|
54
|
+
- columns: [deleted_at]
|
|
@@ -1,51 +1,41 @@
|
|
|
1
|
-
columns:
|
|
2
|
-
- type: pk
|
|
3
|
-
- name: timesheet_id
|
|
4
|
-
type: fk
|
|
5
|
-
references:
|
|
6
|
-
table: operations_timesheet
|
|
7
|
-
column: id
|
|
8
|
-
onDelete: CASCADE
|
|
9
|
-
onUpdate: CASCADE
|
|
10
|
-
- name:
|
|
11
|
-
type: fk
|
|
12
|
-
isNullable: true
|
|
13
|
-
references:
|
|
14
|
-
table:
|
|
15
|
-
column: id
|
|
16
|
-
onDelete: SET NULL
|
|
17
|
-
onUpdate: CASCADE
|
|
18
|
-
- name:
|
|
19
|
-
type:
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
type: date
|
|
28
|
-
- name: hours
|
|
29
|
-
type: decimal
|
|
30
|
-
precision: 6
|
|
1
|
+
columns:
|
|
2
|
+
- type: pk
|
|
3
|
+
- name: timesheet_id
|
|
4
|
+
type: fk
|
|
5
|
+
references:
|
|
6
|
+
table: operations_timesheet
|
|
7
|
+
column: id
|
|
8
|
+
onDelete: CASCADE
|
|
9
|
+
onUpdate: CASCADE
|
|
10
|
+
- name: project_assignment_id
|
|
11
|
+
type: fk
|
|
12
|
+
isNullable: true
|
|
13
|
+
references:
|
|
14
|
+
table: operations_project_assignment
|
|
15
|
+
column: id
|
|
16
|
+
onDelete: SET NULL
|
|
17
|
+
onUpdate: CASCADE
|
|
18
|
+
- name: work_date
|
|
19
|
+
type: date
|
|
20
|
+
- name: activity_label
|
|
21
|
+
type: varchar
|
|
22
|
+
length: 255
|
|
23
|
+
isNullable: true
|
|
24
|
+
- name: hours
|
|
25
|
+
type: decimal
|
|
26
|
+
precision: 6
|
|
31
27
|
scale: 2
|
|
32
|
-
- name: description
|
|
33
|
-
type: text
|
|
34
|
-
isNullable: true
|
|
35
|
-
- name:
|
|
36
|
-
type:
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
-
|
|
43
|
-
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
- columns: [timesheet_id]
|
|
47
|
-
- columns: [project_id]
|
|
48
|
-
- columns: [task_id]
|
|
49
|
-
- columns: [work_date]
|
|
50
|
-
- columns: [approval_status]
|
|
51
|
-
- columns: [deleted_at]
|
|
28
|
+
- name: description
|
|
29
|
+
type: text
|
|
30
|
+
isNullable: true
|
|
31
|
+
- name: deleted_at
|
|
32
|
+
type: datetime
|
|
33
|
+
isNullable: true
|
|
34
|
+
- type: created_at
|
|
35
|
+
- type: updated_at
|
|
36
|
+
|
|
37
|
+
indices:
|
|
38
|
+
- columns: [timesheet_id]
|
|
39
|
+
- columns: [project_assignment_id]
|
|
40
|
+
- columns: [work_date]
|
|
41
|
+
- columns: [deleted_at]
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hed-hog/operations",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.296",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"dependencies": {
|
|
@@ -9,11 +9,12 @@
|
|
|
9
9
|
"@nestjs/core": "^11",
|
|
10
10
|
"@nestjs/jwt": "^11",
|
|
11
11
|
"@nestjs/mapped-types": "*",
|
|
12
|
-
"@hed-hog/api
|
|
13
|
-
"@hed-hog/api-
|
|
14
|
-
"@hed-hog/api-
|
|
15
|
-
"@hed-hog/api-
|
|
16
|
-
"@hed-hog/
|
|
12
|
+
"@hed-hog/api": "0.0.6",
|
|
13
|
+
"@hed-hog/api-pagination": "0.0.7",
|
|
14
|
+
"@hed-hog/api-prisma": "0.0.6",
|
|
15
|
+
"@hed-hog/api-locale": "0.0.14",
|
|
16
|
+
"@hed-hog/core": "0.0.296",
|
|
17
|
+
"@hed-hog/api-types": "0.0.1"
|
|
17
18
|
},
|
|
18
19
|
"exports": {
|
|
19
20
|
".": {
|
|
@@ -29,7 +30,7 @@
|
|
|
29
30
|
],
|
|
30
31
|
"scripts": {
|
|
31
32
|
"lint": "eslint \"{src,apps,libs,test}/**/*.ts\"",
|
|
32
|
-
"prebuild": "pnpm exec ts-node
|
|
33
|
+
"prebuild": "pnpm --dir ../.. exec ts-node ./scripts/build-dependencies.ts libraries/operations",
|
|
33
34
|
"build": "tsc --project tsconfig.production.json",
|
|
34
35
|
"patch": "pnpm exec ts-node ../../scripts/patch.ts libraries/operations",
|
|
35
36
|
"prod": "pnpm run patch && pnpm run build && pnpm publish --access public --no-git-checks"
|