@adaptware/eagles-db 0.1.53 → 0.1.54
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 +35 -105
- package/client/index-browser.js +34 -104
- package/client/index.d.ts +26687 -33818
- package/client/index.js +37 -107
- package/client/{libquery_engine-darwin.dylib.node → libquery_engine-darwin-arm64.dylib.node} +0 -0
- package/client/package.json +1 -1
- package/client/schema.prisma +81 -174
- package/client/wasm.js +34 -104
- package/package.json +1 -1
- package/prisma/.DS_Store +0 -0
- package/prisma/schema/applications.prisma +0 -1
- package/prisma/schema/assessment.prisma +22 -24
- package/prisma/schema/assignmentLibrary.prisma +0 -1
- package/prisma/schema/evaluationPlan.prisma +0 -1
- package/prisma/schema/interview.prisma +26 -18
- package/prisma/schema/jobDescription.prisma +0 -1
- package/prisma/schema/ongoingEvaluation.prisma +0 -2
- package/prisma/schema/organisation.prisma +0 -3
- package/prisma/schema/transcript.prisma +8 -9
- package/prisma/schema/user.prisma +0 -3
- package/prisma/schema/assignment.prisma +0 -42
- package/prisma/schema/intermediateFeedback.prisma +0 -18
- package/prisma/schema/interviewLibrary.prisma +0 -31
- package/prisma/schema/overallFeedback.prisma +0 -34
- package/prisma/schema/panelist.prisma +0 -24
package/prisma/.DS_Store
ADDED
|
Binary file
|
|
@@ -27,7 +27,6 @@ model Application {
|
|
|
27
27
|
job_description JobDescription @relation(fields: [job_description_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
|
|
28
28
|
fit_check FitCheck? @relation(fields: [fit_check_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
|
|
29
29
|
interviews Interview[]
|
|
30
|
-
assignments Assignment[]
|
|
31
30
|
ongoing_evaluations OngoingEvaluation[]
|
|
32
31
|
activity_logs ActivityLog[]
|
|
33
32
|
// Audit fields
|
|
@@ -10,31 +10,29 @@ enum AssessmentStatus {
|
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
model Assessment {
|
|
13
|
-
id
|
|
14
|
-
|
|
15
|
-
candidate_id
|
|
16
|
-
reviewer_id
|
|
17
|
-
score
|
|
18
|
-
feedback
|
|
19
|
-
scheduled_start_time
|
|
20
|
-
assessment_status
|
|
21
|
-
created_at
|
|
22
|
-
updated_at
|
|
23
|
-
created_by
|
|
24
|
-
updated_by
|
|
25
|
-
is_active
|
|
13
|
+
id String @id @default(uuid())
|
|
14
|
+
assessment_id String
|
|
15
|
+
candidate_id String
|
|
16
|
+
reviewer_id String?
|
|
17
|
+
score Float?
|
|
18
|
+
feedback String?
|
|
19
|
+
scheduled_start_time DateTime? @default(now()) // Start Time to start the assessment
|
|
20
|
+
assessment_status AssessmentStatus @default(SCHEDULED)
|
|
21
|
+
created_at DateTime @default(now())
|
|
22
|
+
updated_at DateTime @updatedAt
|
|
23
|
+
created_by String
|
|
24
|
+
updated_by String
|
|
25
|
+
is_active Boolean @default(true)
|
|
26
26
|
// Relations
|
|
27
|
-
assessment_libarary
|
|
28
|
-
candidate
|
|
29
|
-
reviewer
|
|
30
|
-
questions
|
|
31
|
-
candidateResponse
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
User User? @relation(fields: [userId], references: [id])
|
|
35
|
-
userId String?
|
|
27
|
+
assessment_libarary AssessmentLibrary @relation(fields: [assessment_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
|
|
28
|
+
candidate User @relation("CandidateAssessments", fields: [candidate_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
|
|
29
|
+
reviewer User? @relation("ReviewerAssessments", fields: [reviewer_id], references: [id], onDelete: SetNull, onUpdate: Cascade)
|
|
30
|
+
questions AssessmentQuestion[] @relation("AssessmentToAssessmentQuestion")
|
|
31
|
+
candidateResponse CandidateQuestionResponse[]
|
|
32
|
+
User User? @relation(fields: [userId], references: [id])
|
|
33
|
+
userId String?
|
|
36
34
|
|
|
37
|
-
@@unique([
|
|
38
|
-
@@index([
|
|
35
|
+
@@unique([assessment_id, candidate_id])
|
|
36
|
+
@@index([assessment_id])
|
|
39
37
|
@@index([candidate_id])
|
|
40
38
|
}
|
|
@@ -14,7 +14,6 @@ model AssignmentLibrary {
|
|
|
14
14
|
jobDescription JobDescription @relation(fields: [job_description_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
|
|
15
15
|
/// Back-relation: one-to-one from EvaluationPlan (FK lives on EvaluationPlan.assignment_library_id)
|
|
16
16
|
evaluationPlan EvaluationPlan[]
|
|
17
|
-
assignments Assignment[]
|
|
18
17
|
|
|
19
18
|
@@index([job_description_id])
|
|
20
19
|
}
|
|
@@ -72,7 +72,6 @@ model EvaluationPlan {
|
|
|
72
72
|
// Relations
|
|
73
73
|
jobDescription JobDescription @relation(fields: [job_description_id], references: [id], onDelete: Cascade)
|
|
74
74
|
questions Question[] // One evaluation plan → many questions
|
|
75
|
-
panelists Panelist[]
|
|
76
75
|
interviews Interview[]
|
|
77
76
|
applications Application[]
|
|
78
77
|
// New optional one-to-one relation with AssessmentLibrary
|
|
@@ -16,44 +16,52 @@ enum InterviewFeedback {
|
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
model Interview {
|
|
19
|
-
id String
|
|
19
|
+
id String @id @default(uuid())
|
|
20
|
+
/// Foreign keys
|
|
21
|
+
organisation_id String
|
|
20
22
|
candidate_id String
|
|
21
23
|
interviewer_id String?
|
|
22
24
|
evaluation_plan_id String
|
|
23
25
|
application_id String?
|
|
24
26
|
resume_id String
|
|
25
27
|
job_description_id String
|
|
26
|
-
|
|
28
|
+
/// Data
|
|
27
29
|
room_name String?
|
|
28
30
|
interview_summary String[]
|
|
29
|
-
ai_interview_feedback InterviewFeedback?
|
|
30
|
-
interview_feedback InterviewFeedback?
|
|
31
|
-
interview_rating Float? // Overall rating out of 100 based on evaluation
|
|
32
31
|
scheduled_start_time DateTime?
|
|
33
32
|
scheduled_end_time DateTime?
|
|
34
33
|
actual_start_time DateTime?
|
|
35
34
|
actual_end_time DateTime?
|
|
36
35
|
recording_url String?
|
|
37
|
-
interview_status InterviewStatus
|
|
36
|
+
interview_status InterviewStatus @default(SCHEDULED)
|
|
38
37
|
google_event_id String?
|
|
39
|
-
|
|
40
|
-
|
|
38
|
+
/// Old Feedback fields will be deprecated soon
|
|
39
|
+
ai_interview_feedback InterviewFeedback?
|
|
40
|
+
interview_feedback InterviewFeedback?
|
|
41
|
+
overall_feedback String?
|
|
42
|
+
interview_rating Float? // Overall rating out of 100 based on evaluation
|
|
43
|
+
/// New Feedback fields
|
|
44
|
+
ai_feedback Json?
|
|
45
|
+
human_feedback Json?
|
|
46
|
+
interviewer_feedback Json?
|
|
47
|
+
section_feedback Json[]
|
|
48
|
+
/// Audit fields
|
|
49
|
+
created_at DateTime @default(now())
|
|
50
|
+
updated_at DateTime @updatedAt
|
|
41
51
|
created_by String
|
|
42
52
|
updated_by String
|
|
43
|
-
is_active Boolean
|
|
53
|
+
is_active Boolean @default(true)
|
|
44
54
|
// Relations
|
|
45
|
-
candidate User?
|
|
46
|
-
interviewer User?
|
|
47
|
-
organisation Organisation
|
|
48
|
-
job_description JobDescription
|
|
49
|
-
resume Resume
|
|
50
|
-
evaluation_plan EvaluationPlan?
|
|
51
|
-
application Application?
|
|
55
|
+
candidate User? @relation("CandidateInterviews", fields: [candidate_id], references: [id], onDelete: SetNull)
|
|
56
|
+
interviewer User? @relation("InterviewerInterviews", fields: [interviewer_id], references: [id], onDelete: SetNull)
|
|
57
|
+
organisation Organisation @relation(fields: [organisation_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
|
|
58
|
+
job_description JobDescription @relation(fields: [job_description_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
|
|
59
|
+
resume Resume @relation(fields: [resume_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
|
|
60
|
+
evaluation_plan EvaluationPlan? @relation(fields: [evaluation_plan_id], references: [id], onDelete: SetNull, onUpdate: Cascade)
|
|
61
|
+
application Application? @relation(fields: [application_id], references: [id], onDelete: SetNull, onUpdate: Cascade)
|
|
52
62
|
ongoing_evaluation OngoingEvaluation?
|
|
53
|
-
intermediateFeedbacks IntermediateFeedback[]
|
|
54
63
|
transcripts Transcript[]
|
|
55
64
|
suggestions Suggestion[]
|
|
56
|
-
overallFeedback OverallFeedback[]
|
|
57
65
|
feedback Feedback[]
|
|
58
66
|
interviewNotes InterviewNotes[]
|
|
59
67
|
|
|
@@ -28,7 +28,6 @@ model JobDescription {
|
|
|
28
28
|
organisation Organisation @relation(fields: [organisation_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
|
|
29
29
|
applications Application[]
|
|
30
30
|
interviews Interview[]
|
|
31
|
-
assignments Assignment[]
|
|
32
31
|
fit_check FitCheck[] // one-to-many link
|
|
33
32
|
job_description_data JobDescriptionData[] // one-to-many link
|
|
34
33
|
evaluationPlan EvaluationPlan[] // relation to evaluation methods
|
|
@@ -34,7 +34,6 @@ model OngoingEvaluation {
|
|
|
34
34
|
job_description_id String
|
|
35
35
|
evaluation_plan_id String
|
|
36
36
|
interview_id String? @unique
|
|
37
|
-
assignment_id String? @unique
|
|
38
37
|
status OngoingEvaluationStatus?
|
|
39
38
|
state OngoingEvaluationState? @default(NOT_STARTED)
|
|
40
39
|
round_status OngoingEvaluationRoundStatus? @default(NOT_SCHEDULED)
|
|
@@ -47,7 +46,6 @@ model OngoingEvaluation {
|
|
|
47
46
|
organisation Organisation? @relation(fields: [organisation_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
|
|
48
47
|
evaluation_plan EvaluationPlan @relation(fields: [evaluation_plan_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
|
|
49
48
|
interview Interview? @relation(fields: [interview_id], references: [id], onDelete: SetNull, onUpdate: Cascade)
|
|
50
|
-
assignment Assignment?
|
|
51
49
|
created_at DateTime @default(now())
|
|
52
50
|
updated_at DateTime @updatedAt
|
|
53
51
|
created_by String
|
|
@@ -30,12 +30,9 @@ model Organisation {
|
|
|
30
30
|
job_descriptions JobDescription[]
|
|
31
31
|
assessment_library AssessmentLibrary[]
|
|
32
32
|
assignment_library AssignmentLibrary[]
|
|
33
|
-
interview_library InterviewLibrary[]
|
|
34
33
|
interviews Interview[]
|
|
35
|
-
assignments Assignment[]
|
|
36
34
|
fit_check FitCheck[] // one-to-many link
|
|
37
35
|
resumes Resume[] // one-to-many link
|
|
38
|
-
panelists Panelist[] // one-to-many link
|
|
39
36
|
approvals Approval[] // one-to-many link
|
|
40
37
|
suggestions Suggestion[]
|
|
41
38
|
ongoing_evaluations OngoingEvaluation[] // optional one-to-many
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
model Transcript {
|
|
2
|
-
id String
|
|
2
|
+
id String @id @default(uuid())
|
|
3
3
|
interview_id String?
|
|
4
4
|
suggestion_id String?
|
|
5
5
|
intermediate_feedback_id String?
|
|
@@ -8,17 +8,16 @@ model Transcript {
|
|
|
8
8
|
candidate_timestamp DateTime?
|
|
9
9
|
interviewer String
|
|
10
10
|
candidate String
|
|
11
|
-
order_no Int
|
|
12
|
-
created_at DateTime
|
|
13
|
-
updated_at DateTime
|
|
11
|
+
order_no Int @default(autoincrement())
|
|
12
|
+
created_at DateTime @default(now())
|
|
13
|
+
updated_at DateTime @updatedAt
|
|
14
14
|
created_by String
|
|
15
15
|
updated_by String
|
|
16
|
-
is_active Boolean
|
|
16
|
+
is_active Boolean @default(true)
|
|
17
17
|
// Relations
|
|
18
|
-
interview Interview?
|
|
19
|
-
suggestion Suggestion?
|
|
20
|
-
|
|
21
|
-
job_description JobDescription? @relation(fields: [job_description_id], references: [id], onDelete: SetNull, onUpdate: Cascade)
|
|
18
|
+
interview Interview? @relation(fields: [interview_id], references: [id], onDelete: SetNull, onUpdate: SetNull)
|
|
19
|
+
suggestion Suggestion? @relation(fields: [suggestion_id], references: [id], onDelete: SetNull)
|
|
20
|
+
job_description JobDescription? @relation(fields: [job_description_id], references: [id], onDelete: SetNull, onUpdate: Cascade)
|
|
22
21
|
|
|
23
22
|
@@unique([interview_id, order_no])
|
|
24
23
|
@@index([interview_id])
|
|
@@ -29,7 +29,6 @@ model User {
|
|
|
29
29
|
job_description JobDescription[]
|
|
30
30
|
hiring_manager_job_descriptions JobDescription[] @relation("HiringManager")
|
|
31
31
|
approvals Approval[]
|
|
32
|
-
panelist Panelist?
|
|
33
32
|
sent_messages Message[] @relation("Sent Messages")
|
|
34
33
|
received_messages Message[] @relation("Received Messages")
|
|
35
34
|
profile_created Boolean
|
|
@@ -40,8 +39,6 @@ model User {
|
|
|
40
39
|
assessment_results Assessment[]
|
|
41
40
|
candidate_assessments Assessment[] @relation("CandidateAssessments")
|
|
42
41
|
reviewer_assessments Assessment[] @relation("ReviewerAssessments")
|
|
43
|
-
candidate_assignments Assignment[] @relation("CandidateAssignments")
|
|
44
|
-
reviewer_assignments Assignment[] @relation("AssignmentReviewer")
|
|
45
42
|
candidateResponses CandidateQuestionResponse[]
|
|
46
43
|
questions Question[]
|
|
47
44
|
ongoing_evaluations OngoingEvaluation[] // optional one-to-many
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
enum AssignmentStatus {
|
|
2
|
-
AVAILABLE
|
|
3
|
-
SCHEDULED
|
|
4
|
-
CANCELLED
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
model Assignment {
|
|
8
|
-
id String @id @default(uuid())
|
|
9
|
-
candidate_id String
|
|
10
|
-
assignment_library_id String
|
|
11
|
-
reviewer_id String?
|
|
12
|
-
application_id String?
|
|
13
|
-
job_description_id String
|
|
14
|
-
organisation_id String
|
|
15
|
-
ongoing_evaluation_id String? @unique
|
|
16
|
-
score Int?
|
|
17
|
-
ai_result String?
|
|
18
|
-
ai_reasoning String?
|
|
19
|
-
status AssignmentStatus @default(AVAILABLE)
|
|
20
|
-
cancel_reason String?
|
|
21
|
-
solution_url String?
|
|
22
|
-
scheduled_start_time DateTime?
|
|
23
|
-
scheduled_end_time DateTime?
|
|
24
|
-
created_at DateTime @default(now())
|
|
25
|
-
updated_at DateTime @updatedAt
|
|
26
|
-
created_by String
|
|
27
|
-
updated_by String
|
|
28
|
-
is_active Boolean @default(true)
|
|
29
|
-
// Relations
|
|
30
|
-
candidate User? @relation("CandidateAssignments", fields: [candidate_id], references: [id], onDelete: Cascade)
|
|
31
|
-
assignment_library AssignmentLibrary @relation(fields: [assignment_library_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
|
|
32
|
-
reviewer User? @relation("AssignmentReviewer", fields: [reviewer_id], references: [id], onDelete: SetNull)
|
|
33
|
-
organisation Organisation @relation(fields: [organisation_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
|
|
34
|
-
job_description JobDescription @relation(fields: [job_description_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
|
|
35
|
-
application Application? @relation(fields: [application_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
|
|
36
|
-
ongoing_evaluation OngoingEvaluation? @relation(fields: [ongoing_evaluation_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
|
|
37
|
-
|
|
38
|
-
@@unique([candidate_id, ongoing_evaluation_id])
|
|
39
|
-
@@index([candidate_id])
|
|
40
|
-
@@index([reviewer_id])
|
|
41
|
-
@@index([job_description_id])
|
|
42
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
model IntermediateFeedback {
|
|
2
|
-
id String @id @default(uuid())
|
|
3
|
-
interview_id String
|
|
4
|
-
overall_feedback_id String?
|
|
5
|
-
intermediate_feedback Json
|
|
6
|
-
order_no Int @default(autoincrement())
|
|
7
|
-
created_at DateTime @default(now())
|
|
8
|
-
updated_at DateTime @updatedAt
|
|
9
|
-
created_by String
|
|
10
|
-
updated_by String
|
|
11
|
-
is_active Boolean @default(true)
|
|
12
|
-
// Relations
|
|
13
|
-
interview Interview @relation(fields: [interview_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
|
|
14
|
-
OverallFeedback OverallFeedback? @relation(fields: [overall_feedback_id], references: [id], onDelete: SetNull, onUpdate: Cascade)
|
|
15
|
-
transcripts Transcript[]
|
|
16
|
-
|
|
17
|
-
@@index([interview_id])
|
|
18
|
-
}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
/// Defines the category or purpose of the interview, suitable for any job role.
|
|
2
|
-
enum InterviewCategory {
|
|
3
|
-
SCREENING // Initial screening interview
|
|
4
|
-
TECHNICAL // Skill or role-specific interview
|
|
5
|
-
BEHAVIORAL // Behavioral or situational round
|
|
6
|
-
CASE_STUDY // Case-based or analytical round
|
|
7
|
-
MANAGERIAL // Leadership or management-focused
|
|
8
|
-
CULTURAL_FIT // Checks alignment with company culture
|
|
9
|
-
FINAL_DISCUSSION // Final HR or offer discussion
|
|
10
|
-
GENERAL // Generic or flexible-purpose interview
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
/// Represents a reusable interview template applicable to any job type.
|
|
14
|
-
model InterviewLibrary {
|
|
15
|
-
id String @id @default(uuid())
|
|
16
|
-
title String
|
|
17
|
-
description String
|
|
18
|
-
organisation_id String
|
|
19
|
-
category InterviewCategory
|
|
20
|
-
evaluation_type EvaluationType
|
|
21
|
-
duration Float
|
|
22
|
-
passing_marks Float
|
|
23
|
-
is_active Boolean @default(true)
|
|
24
|
-
created_by String
|
|
25
|
-
updated_by String
|
|
26
|
-
created_at DateTime @default(now())
|
|
27
|
-
updated_at DateTime @updatedAt
|
|
28
|
-
organisation Organisation @relation(fields: [organisation_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
|
|
29
|
-
|
|
30
|
-
@@index([organisation_id])
|
|
31
|
-
}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
enum FeedbackType {
|
|
2
|
-
HUMAN
|
|
3
|
-
AI
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
enum OverallRecommendation {
|
|
7
|
-
StrongHire
|
|
8
|
-
Hire
|
|
9
|
-
LeaningHire
|
|
10
|
-
NoHire
|
|
11
|
-
StrongNoHire
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
model OverallFeedback {
|
|
15
|
-
id String @id @default(uuid())
|
|
16
|
-
interview_id String
|
|
17
|
-
interviewer_id String? // 👈 optional field
|
|
18
|
-
feedback_type FeedbackType
|
|
19
|
-
overall_score Float
|
|
20
|
-
overall_recommendation OverallRecommendation
|
|
21
|
-
overall_feedback Json
|
|
22
|
-
created_at DateTime @default(now())
|
|
23
|
-
updated_at DateTime @updatedAt
|
|
24
|
-
created_by String
|
|
25
|
-
updated_by String
|
|
26
|
-
is_active Boolean @default(true)
|
|
27
|
-
// Relations
|
|
28
|
-
interview Interview @relation(fields: [interview_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
|
|
29
|
-
interviewer Panelist? @relation(fields: [interviewer_id], references: [id], onDelete: SetNull, onUpdate: Cascade)
|
|
30
|
-
intermediateFeedbacks IntermediateFeedback[] // 👈 one-to-many relation added here
|
|
31
|
-
|
|
32
|
-
@@unique([interview_id, interviewer_id]) // 👈 updated uniqueness logic
|
|
33
|
-
@@index([interview_id])
|
|
34
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
model Panelist {
|
|
2
|
-
id String @id @default(uuid())
|
|
3
|
-
name String
|
|
4
|
-
designation String
|
|
5
|
-
experience String // e.g. "10+", keeping as String for flexibility
|
|
6
|
-
expertise String // e.g. "Product Strategy, Figma..."
|
|
7
|
-
suited_interview String // e.g. "Consulting, Customer understanding..."
|
|
8
|
-
industry String // e.g. "Healthcare, Fintech"
|
|
9
|
-
special_areas String? // Optional field
|
|
10
|
-
organisation_id String
|
|
11
|
-
user_id String @unique
|
|
12
|
-
|
|
13
|
-
user User @relation(fields: [user_id], references: [id])
|
|
14
|
-
organisation Organisation @relation(fields: [organisation_id], references: [id])
|
|
15
|
-
evaluationPlans EvaluationPlan[]
|
|
16
|
-
overallFeedbacks OverallFeedback[]
|
|
17
|
-
created_at DateTime @default(now())
|
|
18
|
-
updated_at DateTime @updatedAt
|
|
19
|
-
created_by String
|
|
20
|
-
updated_by String
|
|
21
|
-
is_active Boolean @default(true)
|
|
22
|
-
|
|
23
|
-
assessments Assessment[]
|
|
24
|
-
}
|