@adaptware/eagles-db 0.4.24 → 0.4.26
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 +11 -3
- package/client/index-browser.js +8 -0
- package/client/index.d.ts +227 -2
- package/client/index.js +11 -3
- package/client/package.json +1 -1
- package/client/schema.prisma +20 -10
- package/client/wasm.js +11 -3
- package/package.json +1 -1
- package/prisma/schema/applications.prisma +1 -0
- package/prisma/schema/evaluationPlan.prisma +9 -0
- package/prisma/schema/migrations/20260626120000_add_evaluation_plan_share_scope/migration.sql +14 -0
- package/prisma/schema/migrations/20260626140000_add_evaluation_comment/migration.sql +2 -0
package/client/package.json
CHANGED
package/client/schema.prisma
CHANGED
|
@@ -131,6 +131,7 @@ model Application {
|
|
|
131
131
|
expected_ctc String?
|
|
132
132
|
notice_period Int?
|
|
133
133
|
preferred_location String?
|
|
134
|
+
evaluationComment String?
|
|
134
135
|
// Relations
|
|
135
136
|
fit_check_status FitCheckStatus?
|
|
136
137
|
status ApplicationStatus @default(PENDING)
|
|
@@ -706,6 +707,12 @@ enum EvaluationPlanType {
|
|
|
706
707
|
DELETED
|
|
707
708
|
}
|
|
708
709
|
|
|
710
|
+
enum EvaluationPlanShareScope {
|
|
711
|
+
PRIVATE
|
|
712
|
+
CREATOR
|
|
713
|
+
ORGANIZATION
|
|
714
|
+
}
|
|
715
|
+
|
|
709
716
|
enum DurationUnit {
|
|
710
717
|
MINUTES
|
|
711
718
|
HOURS
|
|
@@ -713,7 +720,7 @@ enum DurationUnit {
|
|
|
713
720
|
}
|
|
714
721
|
|
|
715
722
|
model EvaluationPlan {
|
|
716
|
-
id String
|
|
723
|
+
id String @id @default(uuid())
|
|
717
724
|
job_description_id String
|
|
718
725
|
assessment_id String?
|
|
719
726
|
assignment_library_id String?
|
|
@@ -722,32 +729,35 @@ model EvaluationPlan {
|
|
|
722
729
|
format EvaluationRoundFormat?
|
|
723
730
|
topics String[]
|
|
724
731
|
assignee String?
|
|
725
|
-
elimination_round Boolean
|
|
726
|
-
evaluation_type EvaluationType
|
|
732
|
+
elimination_round Boolean @default(false)
|
|
733
|
+
evaluation_type EvaluationType @default(TREADSPACE_AI_ASSISTED)
|
|
727
734
|
type_of_round RoundType
|
|
728
735
|
timeline Int?
|
|
729
736
|
order_no Int?
|
|
730
737
|
details Json?
|
|
731
|
-
plan_type EvaluationPlanType
|
|
738
|
+
plan_type EvaluationPlanType @default(GENERIC)
|
|
739
|
+
share_scope EvaluationPlanShareScope @default(PRIVATE)
|
|
732
740
|
duration Int?
|
|
733
741
|
duration_unit DurationUnit?
|
|
734
742
|
deadline Int?
|
|
735
743
|
created_by String
|
|
736
744
|
updated_by String
|
|
737
|
-
created_at DateTime
|
|
738
|
-
updated_at DateTime
|
|
739
|
-
is_active Boolean
|
|
745
|
+
created_at DateTime @default(now())
|
|
746
|
+
updated_at DateTime @updatedAt
|
|
747
|
+
is_active Boolean @default(true)
|
|
740
748
|
// Relations
|
|
741
|
-
jobDescription JobDescription
|
|
749
|
+
jobDescription JobDescription @relation(fields: [job_description_id], references: [id], onDelete: Cascade)
|
|
742
750
|
questions Question[] // One evaluation plan → many questions
|
|
743
751
|
interviews Interview[]
|
|
744
752
|
applications Application[]
|
|
745
753
|
// New optional one-to-one relation with AssessmentLibrary
|
|
746
|
-
assessment AssessmentLibrary?
|
|
747
|
-
assignment_library AssignmentLibrary?
|
|
754
|
+
assessment AssessmentLibrary? @relation(fields: [assessment_id], references: [id], onDelete: SetNull)
|
|
755
|
+
assignment_library AssignmentLibrary? @relation(fields: [assignment_library_id], references: [id], onDelete: SetNull)
|
|
748
756
|
ongoing_evaluations OngoingEvaluation[]
|
|
749
757
|
|
|
750
758
|
@@index([job_description_id])
|
|
759
|
+
@@index([job_description_id, plan_type, share_scope])
|
|
760
|
+
@@index([created_by, share_scope])
|
|
751
761
|
}
|
|
752
762
|
|
|
753
763
|
model Feedback {
|