@adaptware/eagles-db 0.5.59 → 0.5.62
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 +18 -3
- package/client/index-browser.js +15 -0
- package/client/index.d.ts +705 -2
- package/client/index.js +18 -3
- package/client/package.json +1 -1
- package/client/schema.prisma +32 -10
- package/client/wasm.js +18 -3
- package/package.json +1 -1
- package/prisma/schema/fitCheck.prisma +39 -24
- package/prisma/schema/interview.prisma +7 -0
- package/prisma/schema/migrations/20260921120000_add_fitcheck_current_evaluation/migration.sql +3 -0
- package/prisma/schema/migrations/20260921140000_fitcheck_current_evaluation_enum/migration.sql +16 -0
- package/prisma/schema/migrations/20260924120000_add_fitcheck_competencies_verdict/migration.sql +2 -0
package/client/package.json
CHANGED
package/client/schema.prisma
CHANGED
|
@@ -1556,16 +1556,28 @@ enum FitCheckStatus {
|
|
|
1556
1556
|
@@schema("public")
|
|
1557
1557
|
}
|
|
1558
1558
|
|
|
1559
|
+
/// 5-level current evaluation. LEVEL_1 is weakest, LEVEL_5 is strongest.
|
|
1560
|
+
/// Display copy and numeric rank live in backend `CurrentEvaluationMapper`.
|
|
1561
|
+
enum CurrentEvaluation {
|
|
1562
|
+
LEVEL_1
|
|
1563
|
+
LEVEL_2
|
|
1564
|
+
LEVEL_3
|
|
1565
|
+
LEVEL_4
|
|
1566
|
+
LEVEL_5
|
|
1567
|
+
|
|
1568
|
+
@@schema("public")
|
|
1569
|
+
}
|
|
1570
|
+
|
|
1559
1571
|
model FitCheck {
|
|
1560
1572
|
/// Primary key (UUID)
|
|
1561
|
-
id String
|
|
1573
|
+
id String @id @default(uuid())
|
|
1562
1574
|
/// FK to organisations table
|
|
1563
1575
|
organisation_id String?
|
|
1564
1576
|
candidate_id String?
|
|
1565
1577
|
resume_id String
|
|
1566
1578
|
job_description_id String
|
|
1567
1579
|
/// Owning application (inverted from Application.fit_check_id)
|
|
1568
|
-
application_id String?
|
|
1580
|
+
application_id String? @unique
|
|
1569
1581
|
skills_analysis Json?
|
|
1570
1582
|
overall_analysis Json?
|
|
1571
1583
|
overall_score Float
|
|
@@ -1573,22 +1585,25 @@ model FitCheck {
|
|
|
1573
1585
|
overall_recommendation String?
|
|
1574
1586
|
/// Why `overall_score` is this value. Distinct from `overall_recommendation`.
|
|
1575
1587
|
score_reasoning String?
|
|
1588
|
+
/// 5-level current evaluation (`CurrentEvaluation`). Independent of overall_score.
|
|
1589
|
+
current_evaluation CurrentEvaluation?
|
|
1576
1590
|
short_match_analysis Json[]
|
|
1577
1591
|
fit_comparison Json?
|
|
1578
1592
|
recommendation Json?
|
|
1579
1593
|
competencies_analysis Json?
|
|
1594
|
+
competencies_verdict Json?
|
|
1580
1595
|
/// Audit fields
|
|
1581
1596
|
created_by String
|
|
1582
1597
|
updated_by String
|
|
1583
|
-
is_active Boolean
|
|
1584
|
-
created_at DateTime
|
|
1585
|
-
updated_at DateTime
|
|
1598
|
+
is_active Boolean @default(true)
|
|
1599
|
+
created_at DateTime @default(now())
|
|
1600
|
+
updated_at DateTime @updatedAt
|
|
1586
1601
|
/// Relations
|
|
1587
|
-
organisation Organisation?
|
|
1588
|
-
candidate User?
|
|
1589
|
-
resume Resume
|
|
1590
|
-
job_description JobDescription
|
|
1591
|
-
application Application?
|
|
1602
|
+
organisation Organisation? @relation(fields: [organisation_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
|
|
1603
|
+
candidate User? @relation(fields: [candidate_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
|
|
1604
|
+
resume Resume @relation(fields: [resume_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
|
|
1605
|
+
job_description JobDescription @relation(fields: [job_description_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
|
|
1606
|
+
application Application? @relation(fields: [application_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
|
|
1592
1607
|
|
|
1593
1608
|
/// Ensure one FitCheck per (resume_id, job_description_id) pair
|
|
1594
1609
|
@@unique([resume_id, job_description_id])
|
|
@@ -2017,6 +2032,13 @@ model Interview {
|
|
|
2017
2032
|
/// When final human feedback was submitted.
|
|
2018
2033
|
evaluated_at DateTime?
|
|
2019
2034
|
|
|
2035
|
+
/// Candidate Acceptance & DPDP Consent
|
|
2036
|
+
candidate_status String? @default("INVITED")
|
|
2037
|
+
dpdp_consent_given Boolean @default(false)
|
|
2038
|
+
dpdp_consent_given_at DateTime?
|
|
2039
|
+
candidate_responded_at DateTime?
|
|
2040
|
+
decline_reason String?
|
|
2041
|
+
|
|
2020
2042
|
/// Self-scheduling
|
|
2021
2043
|
reschedule_count Int @default(0)
|
|
2022
2044
|
last_rescheduled_at DateTime?
|