@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/client/{libquery_engine-darwin.dylib.node → libquery_engine-darwin-arm64.dylib.node}
RENAMED
|
Binary file
|
package/client/package.json
CHANGED
package/client/schema.prisma
CHANGED
|
@@ -77,6 +77,29 @@ 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
|
+
|
|
80
103
|
// PENDING could be understood as unscreened
|
|
81
104
|
enum ApplicationStatus {
|
|
82
105
|
PENDING
|
|
@@ -86,20 +109,19 @@ enum ApplicationStatus {
|
|
|
86
109
|
}
|
|
87
110
|
|
|
88
111
|
model Application {
|
|
89
|
-
id
|
|
90
|
-
candidate_id
|
|
91
|
-
resume_id
|
|
92
|
-
organisation_id
|
|
93
|
-
job_description_id
|
|
94
|
-
status
|
|
95
|
-
fit_check_score
|
|
96
|
-
fit_check_status
|
|
97
|
-
applied_at
|
|
98
|
-
evaluation_plan_id
|
|
99
|
-
evaluation_plan
|
|
100
|
-
fit_check_id
|
|
101
|
-
round_no
|
|
102
|
-
|
|
112
|
+
id String @id @default(uuid())
|
|
113
|
+
candidate_id String
|
|
114
|
+
resume_id String
|
|
115
|
+
organisation_id String
|
|
116
|
+
job_description_id String
|
|
117
|
+
status ApplicationStatus @default(PENDING)
|
|
118
|
+
fit_check_score Float?
|
|
119
|
+
fit_check_status FitCheckStatus?
|
|
120
|
+
applied_at DateTime @default(now())
|
|
121
|
+
evaluation_plan_id String?
|
|
122
|
+
evaluation_plan EvaluationPlan? @relation(fields: [evaluation_plan_id], references: [id])
|
|
123
|
+
fit_check_id String? @unique
|
|
124
|
+
round_no Int @default(0)
|
|
103
125
|
// Relations
|
|
104
126
|
candidate User @relation(fields: [candidate_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
|
|
105
127
|
organisation Organisation @relation(fields: [organisation_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
|
|
@@ -108,18 +130,17 @@ model Application {
|
|
|
108
130
|
fit_check FitCheck? @relation(fields: [fit_check_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
|
|
109
131
|
interviews Interview[]
|
|
110
132
|
ongoing_evaluations OngoingEvaluation[]
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
133
|
+
activity_logs ActivityLog[]
|
|
134
|
+
// Audit fields
|
|
135
|
+
created_at DateTime @default(now())
|
|
136
|
+
updated_at DateTime @updatedAt
|
|
137
|
+
created_by String
|
|
138
|
+
updated_by String
|
|
139
|
+
is_active Boolean @default(true)
|
|
117
140
|
|
|
118
141
|
@@unique([candidate_id, job_description_id]) // Ensures candidate applies only once per job
|
|
119
142
|
@@index([candidate_id])
|
|
120
143
|
@@index([job_description_id])
|
|
121
|
-
@@index([organisation_id])
|
|
122
|
-
@@index([resume_id])
|
|
123
144
|
}
|
|
124
145
|
|
|
125
146
|
model Approval {
|
|
@@ -168,8 +189,6 @@ model Assessment {
|
|
|
168
189
|
reviewer User? @relation("ReviewerAssessments", fields: [reviewer_id], references: [id], onDelete: SetNull, onUpdate: Cascade)
|
|
169
190
|
questions AssessmentQuestion[] @relation("AssessmentToAssessmentQuestion")
|
|
170
191
|
candidateResponse CandidateQuestionResponse[]
|
|
171
|
-
Panelist Panelist? @relation(fields: [panelistId], references: [id])
|
|
172
|
-
panelistId String?
|
|
173
192
|
User User? @relation(fields: [userId], references: [id])
|
|
174
193
|
userId String?
|
|
175
194
|
|
|
@@ -209,7 +228,6 @@ model AssessmentLibrary {
|
|
|
209
228
|
evaluation_Plans EvaluationPlan[]
|
|
210
229
|
|
|
211
230
|
@@index([organisation_id])
|
|
212
|
-
@@index([created_at])
|
|
213
231
|
}
|
|
214
232
|
|
|
215
233
|
/**
|
|
@@ -248,7 +266,6 @@ model AssignmentLibrary {
|
|
|
248
266
|
evaluationPlan EvaluationPlan[]
|
|
249
267
|
|
|
250
268
|
@@index([job_description_id])
|
|
251
|
-
@@index([created_at])
|
|
252
269
|
}
|
|
253
270
|
|
|
254
271
|
enum JobType {
|
|
@@ -423,7 +440,6 @@ model EvaluationPlan {
|
|
|
423
440
|
// Relations
|
|
424
441
|
jobDescription JobDescription @relation(fields: [job_description_id], references: [id], onDelete: Cascade)
|
|
425
442
|
questions Question[] // One evaluation plan → many questions
|
|
426
|
-
panelists Panelist[]
|
|
427
443
|
interviews Interview[]
|
|
428
444
|
applications Application[]
|
|
429
445
|
// New optional one-to-one relation with AssessmentLibrary
|
|
@@ -465,6 +481,7 @@ model FitCheck {
|
|
|
465
481
|
id String @id @default(uuid())
|
|
466
482
|
/// FK to organisations table
|
|
467
483
|
organisation_id String?
|
|
484
|
+
candidate_id String?
|
|
468
485
|
resume_id String
|
|
469
486
|
job_description_id String
|
|
470
487
|
|
|
@@ -502,6 +519,7 @@ model FitCheck {
|
|
|
502
519
|
updated_at DateTime @updatedAt
|
|
503
520
|
/// Relations
|
|
504
521
|
organisation Organisation? @relation(fields: [organisation_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
|
|
522
|
+
candidate User? @relation(fields: [candidate_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
|
|
505
523
|
resume Resume @relation(fields: [resume_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
|
|
506
524
|
job_description JobDescription @relation(fields: [job_description_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
|
|
507
525
|
application Application?
|
|
@@ -528,25 +546,6 @@ model Google {
|
|
|
528
546
|
is_active Boolean @default(true)
|
|
529
547
|
}
|
|
530
548
|
|
|
531
|
-
model IntermediateFeedback {
|
|
532
|
-
id String @id @default(uuid())
|
|
533
|
-
interview_id String
|
|
534
|
-
overall_feedback_id String?
|
|
535
|
-
intermediate_feedback Json
|
|
536
|
-
order_no Int @default(autoincrement())
|
|
537
|
-
created_at DateTime @default(now())
|
|
538
|
-
updated_at DateTime @updatedAt
|
|
539
|
-
created_by String
|
|
540
|
-
updated_by String
|
|
541
|
-
is_active Boolean @default(true)
|
|
542
|
-
// Relations
|
|
543
|
-
interview Interview @relation(fields: [interview_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
|
|
544
|
-
OverallFeedback OverallFeedback? @relation(fields: [overall_feedback_id], references: [id], onDelete: SetNull, onUpdate: Cascade)
|
|
545
|
-
transcripts Transcript[]
|
|
546
|
-
|
|
547
|
-
@@index([interview_id])
|
|
548
|
-
}
|
|
549
|
-
|
|
550
549
|
enum InterviewStatus {
|
|
551
550
|
INTERVIEW_REQUESTED
|
|
552
551
|
SCHEDULED
|
|
@@ -565,88 +564,61 @@ enum InterviewFeedback {
|
|
|
565
564
|
}
|
|
566
565
|
|
|
567
566
|
model Interview {
|
|
568
|
-
id String
|
|
567
|
+
id String @id @default(uuid())
|
|
568
|
+
/// Foreign keys
|
|
569
|
+
organisation_id String
|
|
569
570
|
candidate_id String
|
|
570
571
|
interviewer_id String?
|
|
571
572
|
evaluation_plan_id String
|
|
572
573
|
application_id String?
|
|
573
574
|
resume_id String
|
|
574
575
|
job_description_id String
|
|
575
|
-
|
|
576
|
+
/// Data
|
|
576
577
|
room_name String?
|
|
577
578
|
interview_summary String[]
|
|
578
|
-
ai_interview_feedback InterviewFeedback?
|
|
579
|
-
interview_feedback InterviewFeedback?
|
|
580
|
-
interview_rating Float? // Overall rating out of 100 based on evaluation
|
|
581
579
|
scheduled_start_time DateTime?
|
|
582
580
|
scheduled_end_time DateTime?
|
|
583
581
|
actual_start_time DateTime?
|
|
584
582
|
actual_end_time DateTime?
|
|
585
583
|
recording_url String?
|
|
586
|
-
interview_status InterviewStatus
|
|
584
|
+
interview_status InterviewStatus @default(SCHEDULED)
|
|
587
585
|
google_event_id String?
|
|
588
|
-
|
|
589
|
-
|
|
586
|
+
/// Old Feedback fields will be deprecated soon
|
|
587
|
+
ai_interview_feedback InterviewFeedback?
|
|
588
|
+
interview_feedback InterviewFeedback?
|
|
589
|
+
overall_feedback String?
|
|
590
|
+
interview_rating Float? // Overall rating out of 100 based on evaluation
|
|
591
|
+
/// New Feedback fields
|
|
592
|
+
ai_feedback Json?
|
|
593
|
+
human_feedback Json?
|
|
594
|
+
interviewer_feedback Json?
|
|
595
|
+
section_feedback Json[]
|
|
596
|
+
/// Audit fields
|
|
597
|
+
created_at DateTime @default(now())
|
|
598
|
+
updated_at DateTime @updatedAt
|
|
590
599
|
created_by String
|
|
591
600
|
updated_by String
|
|
592
|
-
is_active Boolean
|
|
601
|
+
is_active Boolean @default(true)
|
|
593
602
|
// Relations
|
|
594
|
-
candidate User?
|
|
595
|
-
interviewer User?
|
|
596
|
-
organisation Organisation
|
|
597
|
-
job_description JobDescription
|
|
598
|
-
resume Resume
|
|
599
|
-
evaluation_plan EvaluationPlan?
|
|
600
|
-
application Application?
|
|
603
|
+
candidate User? @relation("CandidateInterviews", fields: [candidate_id], references: [id], onDelete: SetNull)
|
|
604
|
+
interviewer User? @relation("InterviewerInterviews", fields: [interviewer_id], references: [id], onDelete: SetNull)
|
|
605
|
+
organisation Organisation @relation(fields: [organisation_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
|
|
606
|
+
job_description JobDescription @relation(fields: [job_description_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
|
|
607
|
+
resume Resume @relation(fields: [resume_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
|
|
608
|
+
evaluation_plan EvaluationPlan? @relation(fields: [evaluation_plan_id], references: [id], onDelete: SetNull, onUpdate: Cascade)
|
|
609
|
+
application Application? @relation(fields: [application_id], references: [id], onDelete: SetNull, onUpdate: Cascade)
|
|
601
610
|
ongoing_evaluation OngoingEvaluation?
|
|
602
|
-
intermediateFeedbacks IntermediateFeedback[]
|
|
603
611
|
transcripts Transcript[]
|
|
604
612
|
suggestions Suggestion[]
|
|
605
|
-
overallFeedback OverallFeedback[]
|
|
606
613
|
feedback Feedback[]
|
|
607
614
|
interviewNotes InterviewNotes[]
|
|
608
615
|
|
|
609
616
|
@@unique([interviewer_id, candidate_id, evaluation_plan_id])
|
|
610
|
-
@@index([application_id])
|
|
611
617
|
@@index([candidate_id])
|
|
612
618
|
@@index([interviewer_id])
|
|
613
619
|
@@index([job_description_id])
|
|
614
620
|
}
|
|
615
621
|
|
|
616
|
-
/// Defines the category or purpose of the interview, suitable for any job role.
|
|
617
|
-
enum InterviewCategory {
|
|
618
|
-
SCREENING // Initial screening interview
|
|
619
|
-
TECHNICAL // Skill or role-specific interview
|
|
620
|
-
BEHAVIORAL // Behavioral or situational round
|
|
621
|
-
CASE_STUDY // Case-based or analytical round
|
|
622
|
-
MANAGERIAL // Leadership or management-focused
|
|
623
|
-
CULTURAL_FIT // Checks alignment with company culture
|
|
624
|
-
FINAL_DISCUSSION // Final HR or offer discussion
|
|
625
|
-
GENERAL // Generic or flexible-purpose interview
|
|
626
|
-
}
|
|
627
|
-
|
|
628
|
-
/// Represents a reusable interview template applicable to any job type.
|
|
629
|
-
model InterviewLibrary {
|
|
630
|
-
id String @id @default(uuid())
|
|
631
|
-
title String
|
|
632
|
-
description String
|
|
633
|
-
organisation_id String
|
|
634
|
-
category InterviewCategory
|
|
635
|
-
evaluation_type EvaluationType
|
|
636
|
-
duration Float
|
|
637
|
-
passing_marks Float
|
|
638
|
-
is_active Boolean @default(true)
|
|
639
|
-
created_by String
|
|
640
|
-
updated_by String
|
|
641
|
-
created_at DateTime @default(now())
|
|
642
|
-
updated_at DateTime @updatedAt
|
|
643
|
-
organisation Organisation @relation(fields: [organisation_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
|
|
644
|
-
|
|
645
|
-
@@index([organisation_id])
|
|
646
|
-
@@index([category])
|
|
647
|
-
@@index([created_at])
|
|
648
|
-
}
|
|
649
|
-
|
|
650
622
|
model InterviewNotes {
|
|
651
623
|
id String @id @default(uuid())
|
|
652
624
|
interview_id String
|
|
@@ -725,7 +697,6 @@ model JobDescriptionData {
|
|
|
725
697
|
jobDescription JobDescription @relation(fields: [job_description_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
|
|
726
698
|
|
|
727
699
|
@@unique([job_description_id, key])
|
|
728
|
-
@@index([created_at])
|
|
729
700
|
}
|
|
730
701
|
|
|
731
702
|
model Message {
|
|
@@ -848,11 +819,9 @@ model Organisation {
|
|
|
848
819
|
job_descriptions JobDescription[]
|
|
849
820
|
assessment_library AssessmentLibrary[]
|
|
850
821
|
assignment_library AssignmentLibrary[]
|
|
851
|
-
interview_library InterviewLibrary[]
|
|
852
822
|
interviews Interview[]
|
|
853
823
|
fit_check FitCheck[] // one-to-many link
|
|
854
824
|
resumes Resume[] // one-to-many link
|
|
855
|
-
panelists Panelist[] // one-to-many link
|
|
856
825
|
approvals Approval[] // one-to-many link
|
|
857
826
|
suggestions Suggestion[]
|
|
858
827
|
ongoing_evaluations OngoingEvaluation[] // optional one-to-many
|
|
@@ -861,67 +830,6 @@ model Organisation {
|
|
|
861
830
|
@@index([name])
|
|
862
831
|
}
|
|
863
832
|
|
|
864
|
-
enum FeedbackType {
|
|
865
|
-
HUMAN
|
|
866
|
-
AI
|
|
867
|
-
}
|
|
868
|
-
|
|
869
|
-
enum OverallRecommendation {
|
|
870
|
-
StrongHire
|
|
871
|
-
Hire
|
|
872
|
-
LeaningHire
|
|
873
|
-
NoHire
|
|
874
|
-
StrongNoHire
|
|
875
|
-
}
|
|
876
|
-
|
|
877
|
-
model OverallFeedback {
|
|
878
|
-
id String @id @default(uuid())
|
|
879
|
-
interview_id String
|
|
880
|
-
interviewer_id String? // 👈 optional field
|
|
881
|
-
feedback_type FeedbackType
|
|
882
|
-
overall_score Float
|
|
883
|
-
overall_recommendation OverallRecommendation
|
|
884
|
-
overall_feedback Json
|
|
885
|
-
created_at DateTime @default(now())
|
|
886
|
-
updated_at DateTime @updatedAt
|
|
887
|
-
created_by String
|
|
888
|
-
updated_by String
|
|
889
|
-
is_active Boolean @default(true)
|
|
890
|
-
// Relations
|
|
891
|
-
interview Interview @relation(fields: [interview_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
|
|
892
|
-
interviewer Panelist? @relation(fields: [interviewer_id], references: [id], onDelete: SetNull, onUpdate: Cascade)
|
|
893
|
-
intermediateFeedbacks IntermediateFeedback[] // 👈 one-to-many relation added here
|
|
894
|
-
|
|
895
|
-
@@unique([interview_id, interviewer_id]) // 👈 updated uniqueness logic
|
|
896
|
-
@@index([interview_id])
|
|
897
|
-
@@index([interviewer_id])
|
|
898
|
-
}
|
|
899
|
-
|
|
900
|
-
model Panelist {
|
|
901
|
-
id String @id @default(uuid())
|
|
902
|
-
name String
|
|
903
|
-
designation String
|
|
904
|
-
experience String // e.g. "10+", keeping as String for flexibility
|
|
905
|
-
expertise String // e.g. "Product Strategy, Figma..."
|
|
906
|
-
suited_interview String // e.g. "Consulting, Customer understanding..."
|
|
907
|
-
industry String // e.g. "Healthcare, Fintech"
|
|
908
|
-
special_areas String? // Optional field
|
|
909
|
-
organisation_id String
|
|
910
|
-
user_id String @unique
|
|
911
|
-
|
|
912
|
-
user User @relation(fields: [user_id], references: [id])
|
|
913
|
-
organisation Organisation @relation(fields: [organisation_id], references: [id])
|
|
914
|
-
evaluationPlans EvaluationPlan[]
|
|
915
|
-
overallFeedbacks OverallFeedback[]
|
|
916
|
-
created_at DateTime @default(now())
|
|
917
|
-
updated_at DateTime @updatedAt
|
|
918
|
-
created_by String
|
|
919
|
-
updated_by String
|
|
920
|
-
is_active Boolean @default(true)
|
|
921
|
-
|
|
922
|
-
assessments Assessment[]
|
|
923
|
-
}
|
|
924
|
-
|
|
925
833
|
model Permission {
|
|
926
834
|
id String @id @default(uuid())
|
|
927
835
|
permissions String[] @default([])
|
|
@@ -1093,11 +1001,10 @@ model Suggestion {
|
|
|
1093
1001
|
organisation Organisation @relation(fields: [organisation_id], references: [id], onDelete: Cascade)
|
|
1094
1002
|
|
|
1095
1003
|
@@index([interview_id])
|
|
1096
|
-
@@index([transcript_id])
|
|
1097
1004
|
}
|
|
1098
1005
|
|
|
1099
1006
|
model Transcript {
|
|
1100
|
-
id String
|
|
1007
|
+
id String @id @default(uuid())
|
|
1101
1008
|
interview_id String?
|
|
1102
1009
|
suggestion_id String?
|
|
1103
1010
|
intermediate_feedback_id String?
|
|
@@ -1106,17 +1013,16 @@ model Transcript {
|
|
|
1106
1013
|
candidate_timestamp DateTime?
|
|
1107
1014
|
interviewer String
|
|
1108
1015
|
candidate String
|
|
1109
|
-
order_no Int
|
|
1110
|
-
created_at DateTime
|
|
1111
|
-
updated_at DateTime
|
|
1016
|
+
order_no Int @default(autoincrement())
|
|
1017
|
+
created_at DateTime @default(now())
|
|
1018
|
+
updated_at DateTime @updatedAt
|
|
1112
1019
|
created_by String
|
|
1113
1020
|
updated_by String
|
|
1114
|
-
is_active Boolean
|
|
1021
|
+
is_active Boolean @default(true)
|
|
1115
1022
|
// Relations
|
|
1116
|
-
interview Interview?
|
|
1117
|
-
suggestion Suggestion?
|
|
1118
|
-
|
|
1119
|
-
job_description JobDescription? @relation(fields: [job_description_id], references: [id], onDelete: SetNull, onUpdate: Cascade)
|
|
1023
|
+
interview Interview? @relation(fields: [interview_id], references: [id], onDelete: SetNull, onUpdate: SetNull)
|
|
1024
|
+
suggestion Suggestion? @relation(fields: [suggestion_id], references: [id], onDelete: SetNull)
|
|
1025
|
+
job_description JobDescription? @relation(fields: [job_description_id], references: [id], onDelete: SetNull, onUpdate: Cascade)
|
|
1120
1026
|
|
|
1121
1027
|
@@unique([interview_id, order_no])
|
|
1122
1028
|
@@index([interview_id])
|
|
@@ -1154,7 +1060,6 @@ model User {
|
|
|
1154
1060
|
job_description JobDescription[]
|
|
1155
1061
|
hiring_manager_job_descriptions JobDescription[] @relation("HiringManager")
|
|
1156
1062
|
approvals Approval[]
|
|
1157
|
-
panelist Panelist?
|
|
1158
1063
|
sent_messages Message[] @relation("Sent Messages")
|
|
1159
1064
|
received_messages Message[] @relation("Received Messages")
|
|
1160
1065
|
profile_created Boolean
|
|
@@ -1168,9 +1073,11 @@ model User {
|
|
|
1168
1073
|
candidateResponses CandidateQuestionResponse[]
|
|
1169
1074
|
questions Question[]
|
|
1170
1075
|
ongoing_evaluations OngoingEvaluation[] // optional one-to-many
|
|
1076
|
+
actor_activity_logs ActivityLog[] @relation("ActorActivityLogs")
|
|
1171
1077
|
actions Action[]
|
|
1172
1078
|
calendly Calendly?
|
|
1173
1079
|
google Google?
|
|
1080
|
+
fitChecks FitCheck[]
|
|
1174
1081
|
|
|
1175
1082
|
name String?
|
|
1176
1083
|
phone String?
|
package/client/wasm.js
CHANGED
|
@@ -163,6 +163,18 @@ 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
|
+
|
|
166
178
|
exports.Prisma.ApplicationScalarFieldEnum = {
|
|
167
179
|
id: 'id',
|
|
168
180
|
candidate_id: 'candidate_id',
|
|
@@ -209,7 +221,6 @@ exports.Prisma.AssessmentScalarFieldEnum = {
|
|
|
209
221
|
created_by: 'created_by',
|
|
210
222
|
updated_by: 'updated_by',
|
|
211
223
|
is_active: 'is_active',
|
|
212
|
-
panelistId: 'panelistId',
|
|
213
224
|
userId: 'userId'
|
|
214
225
|
};
|
|
215
226
|
|
|
@@ -364,6 +375,7 @@ exports.Prisma.FeedbackScalarFieldEnum = {
|
|
|
364
375
|
exports.Prisma.FitCheckScalarFieldEnum = {
|
|
365
376
|
id: 'id',
|
|
366
377
|
organisation_id: 'organisation_id',
|
|
378
|
+
candidate_id: 'candidate_id',
|
|
367
379
|
resume_id: 'resume_id',
|
|
368
380
|
job_description_id: 'job_description_id',
|
|
369
381
|
skills_match: 'skills_match',
|
|
@@ -407,33 +419,17 @@ exports.Prisma.GoogleScalarFieldEnum = {
|
|
|
407
419
|
is_active: 'is_active'
|
|
408
420
|
};
|
|
409
421
|
|
|
410
|
-
exports.Prisma.IntermediateFeedbackScalarFieldEnum = {
|
|
411
|
-
id: 'id',
|
|
412
|
-
interview_id: 'interview_id',
|
|
413
|
-
overall_feedback_id: 'overall_feedback_id',
|
|
414
|
-
intermediate_feedback: 'intermediate_feedback',
|
|
415
|
-
order_no: 'order_no',
|
|
416
|
-
created_at: 'created_at',
|
|
417
|
-
updated_at: 'updated_at',
|
|
418
|
-
created_by: 'created_by',
|
|
419
|
-
updated_by: 'updated_by',
|
|
420
|
-
is_active: 'is_active'
|
|
421
|
-
};
|
|
422
|
-
|
|
423
422
|
exports.Prisma.InterviewScalarFieldEnum = {
|
|
424
423
|
id: 'id',
|
|
424
|
+
organisation_id: 'organisation_id',
|
|
425
425
|
candidate_id: 'candidate_id',
|
|
426
426
|
interviewer_id: 'interviewer_id',
|
|
427
427
|
evaluation_plan_id: 'evaluation_plan_id',
|
|
428
428
|
application_id: 'application_id',
|
|
429
429
|
resume_id: 'resume_id',
|
|
430
430
|
job_description_id: 'job_description_id',
|
|
431
|
-
organisation_id: 'organisation_id',
|
|
432
431
|
room_name: 'room_name',
|
|
433
432
|
interview_summary: 'interview_summary',
|
|
434
|
-
ai_interview_feedback: 'ai_interview_feedback',
|
|
435
|
-
interview_feedback: 'interview_feedback',
|
|
436
|
-
interview_rating: 'interview_rating',
|
|
437
433
|
scheduled_start_time: 'scheduled_start_time',
|
|
438
434
|
scheduled_end_time: 'scheduled_end_time',
|
|
439
435
|
actual_start_time: 'actual_start_time',
|
|
@@ -441,6 +437,14 @@ exports.Prisma.InterviewScalarFieldEnum = {
|
|
|
441
437
|
recording_url: 'recording_url',
|
|
442
438
|
interview_status: 'interview_status',
|
|
443
439
|
google_event_id: 'google_event_id',
|
|
440
|
+
ai_interview_feedback: 'ai_interview_feedback',
|
|
441
|
+
interview_feedback: 'interview_feedback',
|
|
442
|
+
overall_feedback: 'overall_feedback',
|
|
443
|
+
interview_rating: 'interview_rating',
|
|
444
|
+
ai_feedback: 'ai_feedback',
|
|
445
|
+
human_feedback: 'human_feedback',
|
|
446
|
+
interviewer_feedback: 'interviewer_feedback',
|
|
447
|
+
section_feedback: 'section_feedback',
|
|
444
448
|
created_at: 'created_at',
|
|
445
449
|
updated_at: 'updated_at',
|
|
446
450
|
created_by: 'created_by',
|
|
@@ -448,22 +452,6 @@ exports.Prisma.InterviewScalarFieldEnum = {
|
|
|
448
452
|
is_active: 'is_active'
|
|
449
453
|
};
|
|
450
454
|
|
|
451
|
-
exports.Prisma.InterviewLibraryScalarFieldEnum = {
|
|
452
|
-
id: 'id',
|
|
453
|
-
title: 'title',
|
|
454
|
-
description: 'description',
|
|
455
|
-
organisation_id: 'organisation_id',
|
|
456
|
-
category: 'category',
|
|
457
|
-
evaluation_type: 'evaluation_type',
|
|
458
|
-
duration: 'duration',
|
|
459
|
-
passing_marks: 'passing_marks',
|
|
460
|
-
is_active: 'is_active',
|
|
461
|
-
created_by: 'created_by',
|
|
462
|
-
updated_by: 'updated_by',
|
|
463
|
-
created_at: 'created_at',
|
|
464
|
-
updated_at: 'updated_at'
|
|
465
|
-
};
|
|
466
|
-
|
|
467
455
|
exports.Prisma.InterviewNotesScalarFieldEnum = {
|
|
468
456
|
id: 'id',
|
|
469
457
|
interview_id: 'interview_id',
|
|
@@ -572,39 +560,6 @@ exports.Prisma.OrganisationScalarFieldEnum = {
|
|
|
572
560
|
logo: 'logo'
|
|
573
561
|
};
|
|
574
562
|
|
|
575
|
-
exports.Prisma.OverallFeedbackScalarFieldEnum = {
|
|
576
|
-
id: 'id',
|
|
577
|
-
interview_id: 'interview_id',
|
|
578
|
-
interviewer_id: 'interviewer_id',
|
|
579
|
-
feedback_type: 'feedback_type',
|
|
580
|
-
overall_score: 'overall_score',
|
|
581
|
-
overall_recommendation: 'overall_recommendation',
|
|
582
|
-
overall_feedback: 'overall_feedback',
|
|
583
|
-
created_at: 'created_at',
|
|
584
|
-
updated_at: 'updated_at',
|
|
585
|
-
created_by: 'created_by',
|
|
586
|
-
updated_by: 'updated_by',
|
|
587
|
-
is_active: 'is_active'
|
|
588
|
-
};
|
|
589
|
-
|
|
590
|
-
exports.Prisma.PanelistScalarFieldEnum = {
|
|
591
|
-
id: 'id',
|
|
592
|
-
name: 'name',
|
|
593
|
-
designation: 'designation',
|
|
594
|
-
experience: 'experience',
|
|
595
|
-
expertise: 'expertise',
|
|
596
|
-
suited_interview: 'suited_interview',
|
|
597
|
-
industry: 'industry',
|
|
598
|
-
special_areas: 'special_areas',
|
|
599
|
-
organisation_id: 'organisation_id',
|
|
600
|
-
user_id: 'user_id',
|
|
601
|
-
created_at: 'created_at',
|
|
602
|
-
updated_at: 'updated_at',
|
|
603
|
-
created_by: 'created_by',
|
|
604
|
-
updated_by: 'updated_by',
|
|
605
|
-
is_active: 'is_active'
|
|
606
|
-
};
|
|
607
|
-
|
|
608
563
|
exports.Prisma.PermissionScalarFieldEnum = {
|
|
609
564
|
id: 'id',
|
|
610
565
|
permissions: 'permissions',
|
|
@@ -772,10 +727,6 @@ exports.Prisma.NullableJsonNullValueInput = {
|
|
|
772
727
|
JsonNull: Prisma.JsonNull
|
|
773
728
|
};
|
|
774
729
|
|
|
775
|
-
exports.Prisma.JsonNullValueInput = {
|
|
776
|
-
JsonNull: Prisma.JsonNull
|
|
777
|
-
};
|
|
778
|
-
|
|
779
730
|
exports.Prisma.QueryMode = {
|
|
780
731
|
default: 'default',
|
|
781
732
|
insensitive: 'insensitive'
|
|
@@ -803,6 +754,12 @@ exports.ActionStatus = exports.$Enums.ActionStatus = {
|
|
|
803
754
|
CANCELLED: 'CANCELLED'
|
|
804
755
|
};
|
|
805
756
|
|
|
757
|
+
exports.ActivityActorType = exports.$Enums.ActivityActorType = {
|
|
758
|
+
USER: 'USER',
|
|
759
|
+
AI: 'AI',
|
|
760
|
+
SYSTEM: 'SYSTEM'
|
|
761
|
+
};
|
|
762
|
+
|
|
806
763
|
exports.ApplicationStatus = exports.$Enums.ApplicationStatus = {
|
|
807
764
|
PENDING: 'PENDING',
|
|
808
765
|
IN_PROGRESS: 'IN_PROGRESS',
|
|
@@ -882,13 +839,6 @@ exports.EvaluationPlanType = exports.$Enums.EvaluationPlanType = {
|
|
|
882
839
|
DELETED: 'DELETED'
|
|
883
840
|
};
|
|
884
841
|
|
|
885
|
-
exports.InterviewFeedback = exports.$Enums.InterviewFeedback = {
|
|
886
|
-
STRONG_HIRE: 'STRONG_HIRE',
|
|
887
|
-
HIRE: 'HIRE',
|
|
888
|
-
NO_HIRE: 'NO_HIRE',
|
|
889
|
-
STRONG_NO_HIRE: 'STRONG_NO_HIRE'
|
|
890
|
-
};
|
|
891
|
-
|
|
892
842
|
exports.InterviewStatus = exports.$Enums.InterviewStatus = {
|
|
893
843
|
INTERVIEW_REQUESTED: 'INTERVIEW_REQUESTED',
|
|
894
844
|
SCHEDULED: 'SCHEDULED',
|
|
@@ -899,15 +849,11 @@ exports.InterviewStatus = exports.$Enums.InterviewStatus = {
|
|
|
899
849
|
EVALUATED: 'EVALUATED'
|
|
900
850
|
};
|
|
901
851
|
|
|
902
|
-
exports.
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
MANAGERIAL: 'MANAGERIAL',
|
|
908
|
-
CULTURAL_FIT: 'CULTURAL_FIT',
|
|
909
|
-
FINAL_DISCUSSION: 'FINAL_DISCUSSION',
|
|
910
|
-
GENERAL: 'GENERAL'
|
|
852
|
+
exports.InterviewFeedback = exports.$Enums.InterviewFeedback = {
|
|
853
|
+
STRONG_HIRE: 'STRONG_HIRE',
|
|
854
|
+
HIRE: 'HIRE',
|
|
855
|
+
NO_HIRE: 'NO_HIRE',
|
|
856
|
+
STRONG_NO_HIRE: 'STRONG_NO_HIRE'
|
|
911
857
|
};
|
|
912
858
|
|
|
913
859
|
exports.JobDescriptionStatus = exports.$Enums.JobDescriptionStatus = {
|
|
@@ -953,19 +899,6 @@ exports.OrganisationSize = exports.$Enums.OrganisationSize = {
|
|
|
953
899
|
FIVE_HUNDRED_PLUS: 'FIVE_HUNDRED_PLUS'
|
|
954
900
|
};
|
|
955
901
|
|
|
956
|
-
exports.FeedbackType = exports.$Enums.FeedbackType = {
|
|
957
|
-
HUMAN: 'HUMAN',
|
|
958
|
-
AI: 'AI'
|
|
959
|
-
};
|
|
960
|
-
|
|
961
|
-
exports.OverallRecommendation = exports.$Enums.OverallRecommendation = {
|
|
962
|
-
StrongHire: 'StrongHire',
|
|
963
|
-
Hire: 'Hire',
|
|
964
|
-
LeaningHire: 'LeaningHire',
|
|
965
|
-
NoHire: 'NoHire',
|
|
966
|
-
StrongNoHire: 'StrongNoHire'
|
|
967
|
-
};
|
|
968
|
-
|
|
969
902
|
exports.AsyncOperationStatus = exports.$Enums.AsyncOperationStatus = {
|
|
970
903
|
PENDING: 'PENDING',
|
|
971
904
|
IN_PROGRESS: 'IN_PROGRESS',
|
|
@@ -997,6 +930,7 @@ exports.Prisma.ModelName = {
|
|
|
997
930
|
CandidateQuestionResponse: 'CandidateQuestionResponse',
|
|
998
931
|
UserRole: 'UserRole',
|
|
999
932
|
Action: 'Action',
|
|
933
|
+
ActivityLog: 'ActivityLog',
|
|
1000
934
|
Application: 'Application',
|
|
1001
935
|
Approval: 'Approval',
|
|
1002
936
|
Assessment: 'Assessment',
|
|
@@ -1011,17 +945,13 @@ exports.Prisma.ModelName = {
|
|
|
1011
945
|
Feedback: 'Feedback',
|
|
1012
946
|
FitCheck: 'FitCheck',
|
|
1013
947
|
Google: 'Google',
|
|
1014
|
-
IntermediateFeedback: 'IntermediateFeedback',
|
|
1015
948
|
Interview: 'Interview',
|
|
1016
|
-
InterviewLibrary: 'InterviewLibrary',
|
|
1017
949
|
InterviewNotes: 'InterviewNotes',
|
|
1018
950
|
JobDescription: 'JobDescription',
|
|
1019
951
|
JobDescriptionData: 'JobDescriptionData',
|
|
1020
952
|
Message: 'Message',
|
|
1021
953
|
OngoingEvaluation: 'OngoingEvaluation',
|
|
1022
954
|
Organisation: 'Organisation',
|
|
1023
|
-
OverallFeedback: 'OverallFeedback',
|
|
1024
|
-
Panelist: 'Panelist',
|
|
1025
955
|
Permission: 'Permission',
|
|
1026
956
|
AsyncOperation: 'AsyncOperation',
|
|
1027
957
|
Question: 'Question',
|