@adaptware/eagles-db 0.5.3 → 0.5.4
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/client/edge.js +17 -6
- package/client/index-browser.js +14 -2
- package/client/index.d.ts +330 -38
- package/client/index.js +17 -6
- package/client/package.json +1 -1
- package/client/schema.prisma +33 -5
- package/client/wasm.js +17 -6
- package/package.json +1 -1
- package/prisma/schema/action.prisma +6 -0
- package/prisma/schema/department.prisma +20 -4
- package/prisma/schema/hiringPlan.prisma +7 -1
package/package.json
CHANGED
|
@@ -2,6 +2,12 @@ enum ActionType {
|
|
|
2
2
|
TAKE_INTERVIEW
|
|
3
3
|
PROVIDE_FEEDBACK
|
|
4
4
|
SCHEDULE_INTERVIEW
|
|
5
|
+
/// Dept head is asked to submit their department's hiring requirements.
|
|
6
|
+
SUBMIT_DEPARTMENT_HIRING_REQUIREMENTS
|
|
7
|
+
/// CHRO must review a department's submitted hiring requirements.
|
|
8
|
+
REVIEW_DEPARTMENT_HIRING_REQUIREMENTS
|
|
9
|
+
/// Dept head must update requirements after CHRO requested changes.
|
|
10
|
+
UPDATE_DEPARTMENT_HIRING_REQUIREMENTS
|
|
5
11
|
|
|
6
12
|
@@schema("public")
|
|
7
13
|
}
|
|
@@ -1,11 +1,19 @@
|
|
|
1
1
|
/// Section-level status for a department's slice of the hiring plan.
|
|
2
|
-
/// DRAFT
|
|
3
|
-
///
|
|
4
|
-
///
|
|
2
|
+
/// DRAFT — legacy pre-request state (heads had free edit); still used
|
|
3
|
+
/// when a section row exists before CHRO has "requested input".
|
|
4
|
+
/// REQUESTED — CHRO has requested input; head may edit.
|
|
5
|
+
/// SUBMITTED — head submitted; awaiting CHRO review; head is frozen.
|
|
6
|
+
/// CHANGES_REQUESTED — CHRO sent back with a note; head may edit again.
|
|
7
|
+
/// APPROVED — CHRO approved; heads frozen. CHRO may still edit
|
|
8
|
+
/// (product default). Reopen returns to CHANGES_REQUESTED.
|
|
9
|
+
/// SKIPPED — CHRO opted out of collecting input for this dept.
|
|
5
10
|
enum HiringPlanSectionStatus {
|
|
6
11
|
DRAFT
|
|
12
|
+
REQUESTED
|
|
7
13
|
SUBMITTED
|
|
14
|
+
CHANGES_REQUESTED
|
|
8
15
|
APPROVED
|
|
16
|
+
SKIPPED
|
|
9
17
|
|
|
10
18
|
@@schema("public")
|
|
11
19
|
}
|
|
@@ -62,16 +70,24 @@ model DepartmentMember {
|
|
|
62
70
|
@@schema("public")
|
|
63
71
|
}
|
|
64
72
|
|
|
65
|
-
/// Per-department status for a specific hiring plan (submit → approve/lock).
|
|
73
|
+
/// Per-department status for a specific hiring plan (request → submit → approve/lock).
|
|
66
74
|
model HiringPlanSection {
|
|
67
75
|
id String @id @default(uuid())
|
|
68
76
|
hiring_plan_id String
|
|
69
77
|
department_id String
|
|
70
78
|
status HiringPlanSectionStatus @default(DRAFT)
|
|
79
|
+
/// CHRO/Exec who invoked "Request input" for this dept.
|
|
80
|
+
requested_by String?
|
|
81
|
+
requested_at DateTime?
|
|
71
82
|
submitted_by String?
|
|
72
83
|
submitted_at DateTime?
|
|
73
84
|
approved_by String?
|
|
74
85
|
approved_at DateTime?
|
|
86
|
+
/// CHRO/Exec who opted to skip this dept (or the dept-head request lifecycle).
|
|
87
|
+
skipped_by String?
|
|
88
|
+
skipped_at DateTime?
|
|
89
|
+
/// Latest CHRO note attached to Request Changes / Reopen.
|
|
90
|
+
review_note String?
|
|
75
91
|
created_at DateTime @default(now())
|
|
76
92
|
updated_at DateTime @updatedAt
|
|
77
93
|
created_by String
|
|
@@ -95,6 +95,10 @@ model HiringPlanLine {
|
|
|
95
95
|
start_month Int @default(1)
|
|
96
96
|
/// Optional staggered starts: { "1": 2, "4": 2 } (fiscal-month → count).
|
|
97
97
|
hire_schedule Json?
|
|
98
|
+
/// Free-form requirement details captured by dept heads: priority, skills,
|
|
99
|
+
/// justification, salary_range, etc. Kept as JSON to avoid wide migrations
|
|
100
|
+
/// while the workflow settles.
|
|
101
|
+
details Json?
|
|
98
102
|
/// Display order within a business unit (lower first).
|
|
99
103
|
sort_order Int @default(0)
|
|
100
104
|
/// Reference/template JD for this role (definition).
|
|
@@ -141,7 +145,9 @@ model Employee {
|
|
|
141
145
|
starting_salary Decimal? @db.Decimal(18, 2)
|
|
142
146
|
/// Comp immediately before the latest raise (or prior cycle). Optional.
|
|
143
147
|
previous_salary Decimal? @db.Decimal(18, 2)
|
|
144
|
-
|
|
148
|
+
/// Current fully-loaded comp. Optional — workforce roster may be captured
|
|
149
|
+
/// before salary details are collected.
|
|
150
|
+
current_comp Decimal? @db.Decimal(18, 2)
|
|
145
151
|
currency String @default("INR")
|
|
146
152
|
last_increment_date DateTime?
|
|
147
153
|
last_increment_amount Decimal? @db.Decimal(18, 2)
|