@adaptware/eagles-db 0.1.41 → 0.1.43
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 +6 -26
- package/client/index-browser.js +0 -20
- package/client/index.d.ts +267 -3403
- package/client/index.js +8 -28
- package/client/{libquery_engine-darwin-arm64.dylib.node → libquery_engine-darwin.dylib.node} +0 -0
- package/client/package.json +1 -1
- package/client/schema.prisma +30 -47
- package/client/wasm.js +0 -20
- package/package.json +1 -1
- package/prisma/schema/applications.prisma +1 -0
- package/prisma/schema/assessment.prisma +24 -24
- package/prisma/schema/assignment.prisma +40 -0
- package/prisma/schema/assignmentLibrary.prisma +1 -0
- package/prisma/schema/interview.prisma +0 -1
- package/prisma/schema/jobDescription.prisma +1 -0
- package/prisma/schema/ongoingEvaluation.prisma +2 -0
- package/prisma/schema/organisation.prisma +1 -0
- package/prisma/schema/user.prisma +2 -0
- package/prisma/.DS_Store +0 -0
package/client/{libquery_engine-darwin-arm64.dylib.node → libquery_engine-darwin.dylib.node}
RENAMED
|
Binary file
|
package/client/package.json
CHANGED
package/client/schema.prisma
CHANGED
|
@@ -77,29 +77,6 @@ model Action {
|
|
|
77
77
|
@@index([due_date])
|
|
78
78
|
}
|
|
79
79
|
|
|
80
|
-
enum ActivityActorType {
|
|
81
|
-
USER
|
|
82
|
-
AI
|
|
83
|
-
SYSTEM
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
model ActivityLog {
|
|
87
|
-
id String @id @default(uuid())
|
|
88
|
-
application_id String
|
|
89
|
-
actor_id String?
|
|
90
|
-
actor_type ActivityActorType @default(USER)
|
|
91
|
-
message String
|
|
92
|
-
timestamp DateTime @default(now())
|
|
93
|
-
metadata Json?
|
|
94
|
-
created_at DateTime @default(now())
|
|
95
|
-
is_active Boolean @default(true)
|
|
96
|
-
// Relations
|
|
97
|
-
actor User? @relation("ActorActivityLogs", fields: [actor_id], references: [id], onDelete: SetNull, onUpdate: Cascade)
|
|
98
|
-
application Application @relation(fields: [application_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
|
|
99
|
-
|
|
100
|
-
@@index([application_id])
|
|
101
|
-
}
|
|
102
|
-
|
|
103
80
|
// PENDING could be understood as unscreened
|
|
104
81
|
enum ApplicationStatus {
|
|
105
82
|
PENDING
|
|
@@ -109,19 +86,20 @@ enum ApplicationStatus {
|
|
|
109
86
|
}
|
|
110
87
|
|
|
111
88
|
model Application {
|
|
112
|
-
id
|
|
113
|
-
candidate_id
|
|
114
|
-
resume_id
|
|
115
|
-
organisation_id
|
|
116
|
-
job_description_id
|
|
117
|
-
status
|
|
118
|
-
fit_check_score
|
|
119
|
-
fit_check_status
|
|
120
|
-
applied_at
|
|
121
|
-
evaluation_plan_id
|
|
122
|
-
evaluation_plan
|
|
123
|
-
fit_check_id
|
|
124
|
-
round_no
|
|
89
|
+
id String @id @default(uuid())
|
|
90
|
+
candidate_id String
|
|
91
|
+
resume_id String
|
|
92
|
+
organisation_id String
|
|
93
|
+
job_description_id String
|
|
94
|
+
status ApplicationStatus @default(PENDING)
|
|
95
|
+
fit_check_score Float?
|
|
96
|
+
fit_check_status FitCheckStatus?
|
|
97
|
+
applied_at DateTime @default(now())
|
|
98
|
+
evaluation_plan_id String?
|
|
99
|
+
evaluation_plan EvaluationPlan? @relation(fields: [evaluation_plan_id], references: [id])
|
|
100
|
+
fit_check_id String? @unique
|
|
101
|
+
round_no Int @default(0)
|
|
102
|
+
|
|
125
103
|
// Relations
|
|
126
104
|
candidate User @relation(fields: [candidate_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
|
|
127
105
|
organisation Organisation @relation(fields: [organisation_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
|
|
@@ -130,17 +108,18 @@ model Application {
|
|
|
130
108
|
fit_check FitCheck? @relation(fields: [fit_check_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
|
|
131
109
|
interviews Interview[]
|
|
132
110
|
ongoing_evaluations OngoingEvaluation[]
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
is_active Boolean @default(true)
|
|
111
|
+
|
|
112
|
+
created_at DateTime @default(now())
|
|
113
|
+
updated_at DateTime @updatedAt
|
|
114
|
+
created_by String
|
|
115
|
+
updated_by String
|
|
116
|
+
is_active Boolean @default(true)
|
|
140
117
|
|
|
141
118
|
@@unique([candidate_id, job_description_id]) // Ensures candidate applies only once per job
|
|
142
119
|
@@index([candidate_id])
|
|
143
120
|
@@index([job_description_id])
|
|
121
|
+
@@index([organisation_id])
|
|
122
|
+
@@index([resume_id])
|
|
144
123
|
}
|
|
145
124
|
|
|
146
125
|
model Approval {
|
|
@@ -230,6 +209,7 @@ model AssessmentLibrary {
|
|
|
230
209
|
evaluation_Plans EvaluationPlan[]
|
|
231
210
|
|
|
232
211
|
@@index([organisation_id])
|
|
212
|
+
@@index([created_at])
|
|
233
213
|
}
|
|
234
214
|
|
|
235
215
|
/**
|
|
@@ -268,6 +248,7 @@ model AssignmentLibrary {
|
|
|
268
248
|
evaluationPlan EvaluationPlan[]
|
|
269
249
|
|
|
270
250
|
@@index([job_description_id])
|
|
251
|
+
@@index([created_at])
|
|
271
252
|
}
|
|
272
253
|
|
|
273
254
|
enum JobType {
|
|
@@ -484,7 +465,6 @@ model FitCheck {
|
|
|
484
465
|
id String @id @default(uuid())
|
|
485
466
|
/// FK to organisations table
|
|
486
467
|
organisation_id String?
|
|
487
|
-
candidate_id String?
|
|
488
468
|
resume_id String
|
|
489
469
|
job_description_id String
|
|
490
470
|
|
|
@@ -522,7 +502,6 @@ model FitCheck {
|
|
|
522
502
|
updated_at DateTime @updatedAt
|
|
523
503
|
/// Relations
|
|
524
504
|
organisation Organisation? @relation(fields: [organisation_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
|
|
525
|
-
candidate User? @relation(fields: [candidate_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
|
|
526
505
|
resume Resume @relation(fields: [resume_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
|
|
527
506
|
job_description JobDescription @relation(fields: [job_description_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
|
|
528
507
|
application Application?
|
|
@@ -628,6 +607,7 @@ model Interview {
|
|
|
628
607
|
interviewNotes InterviewNotes[]
|
|
629
608
|
|
|
630
609
|
@@unique([interviewer_id, candidate_id, evaluation_plan_id])
|
|
610
|
+
@@index([application_id])
|
|
631
611
|
@@index([candidate_id])
|
|
632
612
|
@@index([interviewer_id])
|
|
633
613
|
@@index([job_description_id])
|
|
@@ -663,6 +643,8 @@ model InterviewLibrary {
|
|
|
663
643
|
organisation Organisation @relation(fields: [organisation_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
|
|
664
644
|
|
|
665
645
|
@@index([organisation_id])
|
|
646
|
+
@@index([category])
|
|
647
|
+
@@index([created_at])
|
|
666
648
|
}
|
|
667
649
|
|
|
668
650
|
model InterviewNotes {
|
|
@@ -743,6 +725,7 @@ model JobDescriptionData {
|
|
|
743
725
|
jobDescription JobDescription @relation(fields: [job_description_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
|
|
744
726
|
|
|
745
727
|
@@unique([job_description_id, key])
|
|
728
|
+
@@index([created_at])
|
|
746
729
|
}
|
|
747
730
|
|
|
748
731
|
model Message {
|
|
@@ -911,6 +894,7 @@ model OverallFeedback {
|
|
|
911
894
|
|
|
912
895
|
@@unique([interview_id, interviewer_id]) // 👈 updated uniqueness logic
|
|
913
896
|
@@index([interview_id])
|
|
897
|
+
@@index([interviewer_id])
|
|
914
898
|
}
|
|
915
899
|
|
|
916
900
|
model Panelist {
|
|
@@ -1109,6 +1093,7 @@ model Suggestion {
|
|
|
1109
1093
|
organisation Organisation @relation(fields: [organisation_id], references: [id], onDelete: Cascade)
|
|
1110
1094
|
|
|
1111
1095
|
@@index([interview_id])
|
|
1096
|
+
@@index([transcript_id])
|
|
1112
1097
|
}
|
|
1113
1098
|
|
|
1114
1099
|
model Transcript {
|
|
@@ -1183,11 +1168,9 @@ model User {
|
|
|
1183
1168
|
candidateResponses CandidateQuestionResponse[]
|
|
1184
1169
|
questions Question[]
|
|
1185
1170
|
ongoing_evaluations OngoingEvaluation[] // optional one-to-many
|
|
1186
|
-
actor_activity_logs ActivityLog[] @relation("ActorActivityLogs")
|
|
1187
1171
|
actions Action[]
|
|
1188
1172
|
calendly Calendly?
|
|
1189
1173
|
google Google?
|
|
1190
|
-
fitChecks FitCheck[]
|
|
1191
1174
|
|
|
1192
1175
|
name String?
|
|
1193
1176
|
phone String?
|
package/client/wasm.js
CHANGED
|
@@ -163,18 +163,6 @@ exports.Prisma.ActionScalarFieldEnum = {
|
|
|
163
163
|
is_active: 'is_active'
|
|
164
164
|
};
|
|
165
165
|
|
|
166
|
-
exports.Prisma.ActivityLogScalarFieldEnum = {
|
|
167
|
-
id: 'id',
|
|
168
|
-
application_id: 'application_id',
|
|
169
|
-
actor_id: 'actor_id',
|
|
170
|
-
actor_type: 'actor_type',
|
|
171
|
-
message: 'message',
|
|
172
|
-
timestamp: 'timestamp',
|
|
173
|
-
metadata: 'metadata',
|
|
174
|
-
created_at: 'created_at',
|
|
175
|
-
is_active: 'is_active'
|
|
176
|
-
};
|
|
177
|
-
|
|
178
166
|
exports.Prisma.ApplicationScalarFieldEnum = {
|
|
179
167
|
id: 'id',
|
|
180
168
|
candidate_id: 'candidate_id',
|
|
@@ -376,7 +364,6 @@ exports.Prisma.FeedbackScalarFieldEnum = {
|
|
|
376
364
|
exports.Prisma.FitCheckScalarFieldEnum = {
|
|
377
365
|
id: 'id',
|
|
378
366
|
organisation_id: 'organisation_id',
|
|
379
|
-
candidate_id: 'candidate_id',
|
|
380
367
|
resume_id: 'resume_id',
|
|
381
368
|
job_description_id: 'job_description_id',
|
|
382
369
|
skills_match: 'skills_match',
|
|
@@ -816,12 +803,6 @@ exports.ActionStatus = exports.$Enums.ActionStatus = {
|
|
|
816
803
|
CANCELLED: 'CANCELLED'
|
|
817
804
|
};
|
|
818
805
|
|
|
819
|
-
exports.ActivityActorType = exports.$Enums.ActivityActorType = {
|
|
820
|
-
USER: 'USER',
|
|
821
|
-
AI: 'AI',
|
|
822
|
-
SYSTEM: 'SYSTEM'
|
|
823
|
-
};
|
|
824
|
-
|
|
825
806
|
exports.ApplicationStatus = exports.$Enums.ApplicationStatus = {
|
|
826
807
|
PENDING: 'PENDING',
|
|
827
808
|
IN_PROGRESS: 'IN_PROGRESS',
|
|
@@ -1016,7 +997,6 @@ exports.Prisma.ModelName = {
|
|
|
1016
997
|
CandidateQuestionResponse: 'CandidateQuestionResponse',
|
|
1017
998
|
UserRole: 'UserRole',
|
|
1018
999
|
Action: 'Action',
|
|
1019
|
-
ActivityLog: 'ActivityLog',
|
|
1020
1000
|
Application: 'Application',
|
|
1021
1001
|
Approval: 'Approval',
|
|
1022
1002
|
Assessment: 'Assessment',
|
package/package.json
CHANGED
|
@@ -27,6 +27,7 @@ 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[]
|
|
30
31
|
ongoing_evaluations OngoingEvaluation[]
|
|
31
32
|
activity_logs ActivityLog[]
|
|
32
33
|
// Audit fields
|
|
@@ -10,31 +10,31 @@ 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_library_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
|
-
Panelist
|
|
33
|
-
panelistId
|
|
34
|
-
User
|
|
35
|
-
userId
|
|
27
|
+
assessment_libarary AssessmentLibrary @relation(fields: [assessment_library_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
|
+
Panelist Panelist? @relation(fields: [panelistId], references: [id])
|
|
33
|
+
panelistId String?
|
|
34
|
+
User User? @relation(fields: [userId], references: [id])
|
|
35
|
+
userId String?
|
|
36
36
|
|
|
37
|
-
@@unique([
|
|
38
|
-
@@index([
|
|
37
|
+
@@unique([assessment_library_id, candidate_id])
|
|
38
|
+
@@index([assessment_library_id])
|
|
39
39
|
@@index([candidate_id])
|
|
40
40
|
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
enum AssignmentStatus {
|
|
2
|
+
AVAILABLE
|
|
3
|
+
SCHEDULED
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
model Assignment {
|
|
7
|
+
id String @id @default(uuid())
|
|
8
|
+
candidate_id String
|
|
9
|
+
assignment_library_id String
|
|
10
|
+
reviewer_id String?
|
|
11
|
+
application_id String?
|
|
12
|
+
job_description_id String
|
|
13
|
+
organisation_id String
|
|
14
|
+
ongoing_evaluation_id String?
|
|
15
|
+
score Int?
|
|
16
|
+
ai_result String?
|
|
17
|
+
ai_reasoning String?
|
|
18
|
+
status AssignmentStatus @default(AVAILABLE)
|
|
19
|
+
solution_url String?
|
|
20
|
+
scheduled_start_time DateTime?
|
|
21
|
+
scheduled_end_time DateTime?
|
|
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
|
+
candidate User? @relation("CandidateAssignments", fields: [candidate_id], references: [id], onDelete: Cascade)
|
|
29
|
+
assignment_library AssignmentLibrary @relation(fields: [assignment_library_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
|
|
30
|
+
reviewer User? @relation("AssignmentReviewer", fields: [reviewer_id], references: [id], onDelete: SetNull)
|
|
31
|
+
organisation Organisation @relation(fields: [organisation_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
|
|
32
|
+
job_description JobDescription @relation(fields: [job_description_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
|
|
33
|
+
application Application? @relation(fields: [application_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
|
|
34
|
+
ongoing_evaluation OngoingEvaluation? @relation(fields: [ongoing_evaluation_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
|
|
35
|
+
|
|
36
|
+
@@unique([candidate_id, ongoing_evaluation_id])
|
|
37
|
+
@@index([candidate_id])
|
|
38
|
+
@@index([reviewer_id])
|
|
39
|
+
@@index([job_description_id])
|
|
40
|
+
}
|
|
@@ -14,6 +14,7 @@ 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[]
|
|
17
18
|
|
|
18
19
|
@@index([job_description_id])
|
|
19
20
|
}
|
|
@@ -28,7 +28,6 @@ model Interview {
|
|
|
28
28
|
interview_summary String[]
|
|
29
29
|
ai_interview_feedback InterviewFeedback?
|
|
30
30
|
interview_feedback InterviewFeedback?
|
|
31
|
-
overall_feedback String?
|
|
32
31
|
interview_rating Float? // Overall rating out of 100 based on evaluation
|
|
33
32
|
scheduled_start_time DateTime?
|
|
34
33
|
scheduled_end_time DateTime?
|
|
@@ -28,6 +28,7 @@ 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[]
|
|
31
32
|
fit_check FitCheck[] // one-to-many link
|
|
32
33
|
job_description_data JobDescriptionData[] // one-to-many link
|
|
33
34
|
evaluationPlan EvaluationPlan[] // relation to evaluation methods
|
|
@@ -34,6 +34,7 @@ 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
|
|
37
38
|
status OngoingEvaluationStatus?
|
|
38
39
|
state OngoingEvaluationState? @default(NOT_STARTED)
|
|
39
40
|
round_status OngoingEvaluationRoundStatus? @default(NOT_SCHEDULED)
|
|
@@ -46,6 +47,7 @@ model OngoingEvaluation {
|
|
|
46
47
|
organisation Organisation? @relation(fields: [organisation_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
|
|
47
48
|
evaluation_plan EvaluationPlan @relation(fields: [evaluation_plan_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
|
|
48
49
|
interview Interview? @relation(fields: [interview_id], references: [id], onDelete: SetNull, onUpdate: Cascade)
|
|
50
|
+
assignment Assignment? @relation(fields: [assignment_id], references: [id], onDelete: SetNull, onUpdate: Cascade)
|
|
49
51
|
created_at DateTime @default(now())
|
|
50
52
|
updated_at DateTime @updatedAt
|
|
51
53
|
created_by String
|
|
@@ -32,6 +32,7 @@ model Organisation {
|
|
|
32
32
|
assignment_library AssignmentLibrary[]
|
|
33
33
|
interview_library InterviewLibrary[]
|
|
34
34
|
interviews Interview[]
|
|
35
|
+
assignments Assignment[]
|
|
35
36
|
fit_check FitCheck[] // one-to-many link
|
|
36
37
|
resumes Resume[] // one-to-many link
|
|
37
38
|
panelists Panelist[] // one-to-many link
|
|
@@ -40,6 +40,8 @@ model User {
|
|
|
40
40
|
assessment_results Assessment[]
|
|
41
41
|
candidate_assessments Assessment[] @relation("CandidateAssessments")
|
|
42
42
|
reviewer_assessments Assessment[] @relation("ReviewerAssessments")
|
|
43
|
+
candidate_assignments Assignment[] @relation("CandidateAssignments")
|
|
44
|
+
reviewer_assignments Assignment[] @relation("AssignmentReviewer")
|
|
43
45
|
candidateResponses CandidateQuestionResponse[]
|
|
44
46
|
questions Question[]
|
|
45
47
|
ongoing_evaluations OngoingEvaluation[] // optional one-to-many
|
package/prisma/.DS_Store
DELETED
|
Binary file
|