@adaptware/eagles-db 1.1.63 → 1.1.66

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.
@@ -1,5 +1,5 @@
1
1
  {
2
- "name": "prisma-client-566bdf70d1cf8a764b39772e092f052bfd9eb0537b3963afebd9f8aa3346cb2f",
2
+ "name": "prisma-client-121e3a516f410ee79df521c6b91777aec162855656c96d09b350fff854f75186",
3
3
  "main": "index.js",
4
4
  "types": "index.d.ts",
5
5
  "browser": "index-browser.js",
@@ -594,7 +594,6 @@ model Google {
594
594
  enum IntegrationProvider {
595
595
  NAUKRI
596
596
  ZOHO_RECRUIT
597
- LINKEDIN
598
597
  }
599
598
 
600
599
  enum IntegrationAuthType {
@@ -805,8 +804,6 @@ model JobDescription {
805
804
  updated_by String
806
805
  is_active Boolean @default(true)
807
806
  openings Int @default(1)
808
- job_profile_id String?
809
- job_profile JobProfile? @relation(fields: [job_profile_id], references: [id], onDelete: SetNull, onUpdate: Cascade)
810
807
  organisation Organisation @relation(fields: [organisation_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
811
808
  applications Application[]
812
809
  interviews Interview[]
@@ -826,7 +823,6 @@ model JobDescription {
826
823
 
827
824
  @@index([organisation_id])
828
825
  @@index([hiring_manager_id])
829
- @@index([job_profile_id])
830
826
  }
831
827
 
832
828
  model JobDescriptionData {
@@ -845,63 +841,6 @@ model JobDescriptionData {
845
841
  @@unique([job_description_id, key])
846
842
  }
847
843
 
848
- enum JobProfileStatus {
849
- DRAFT
850
- INTAKE_SENT
851
- INTAKE_IN_PROGRESS
852
- COMPLETE
853
- }
854
-
855
- model JobProfile {
856
- id String @id @default(uuid())
857
- organisation_id String
858
- created_by String
859
- assigned_to String?
860
- status JobProfileStatus @default(DRAFT)
861
-
862
- // Basics
863
- title String?
864
- role_type String?
865
- work_arrangement String?
866
- location String?
867
- experience_min String?
868
- reporting String?
869
- comp_range String?
870
- comp_benchmark String?
871
-
872
- // Requirements (structured from AI conversation)
873
- responsibilities Json?
874
- deliverables Json?
875
- must_have_skills Json?
876
- nice_to_have_skills Json?
877
- dealbreakers Json?
878
- culture Json?
879
- success_metrics Json?
880
-
881
- // Competencies
882
- competencies Json?
883
-
884
- // Conversation state
885
- conversation_history Json?
886
- current_phase String?
887
- orion_execution_id String?
888
-
889
- // Audit
890
- created_at DateTime @default(now())
891
- updated_at DateTime @updatedAt
892
- is_active Boolean @default(true)
893
-
894
- // Relations
895
- organisation Organisation @relation(fields: [organisation_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
896
- creator User @relation("ProfileCreator", fields: [created_by], references: [id], onDelete: Restrict, onUpdate: Cascade)
897
- assignee User? @relation("ProfileAssignee", fields: [assigned_to], references: [id], onDelete: SetNull, onUpdate: Cascade)
898
- job_descriptions JobDescription[]
899
-
900
- @@index([organisation_id])
901
- @@index([assigned_to])
902
- @@index([created_by])
903
- }
904
-
905
844
  model Message {
906
845
  id String @id @default(uuid())
907
846
  sender_id String
@@ -1022,7 +961,6 @@ model Organisation {
1022
961
  applications Application[]
1023
962
  user_roles UserRole[]
1024
963
  job_descriptions JobDescription[]
1025
- job_profiles JobProfile[]
1026
964
  assessment_library AssessmentLibrary[]
1027
965
  assignment_library AssignmentLibrary[]
1028
966
  interviews Interview[]
@@ -1289,8 +1227,6 @@ model User {
1289
1227
  calendly Calendly?
1290
1228
  google Google?
1291
1229
  fitChecks FitCheck[]
1292
- created_job_profiles JobProfile[] @relation("ProfileCreator")
1293
- assigned_job_profiles JobProfile[] @relation("ProfileAssignee")
1294
1230
 
1295
1231
  name String?
1296
1232
  phone String?
package/client/wasm.js CHANGED
@@ -553,8 +553,7 @@ exports.Prisma.JobDescriptionScalarFieldEnum = {
553
553
  created_by: 'created_by',
554
554
  updated_by: 'updated_by',
555
555
  is_active: 'is_active',
556
- openings: 'openings',
557
- job_profile_id: 'job_profile_id'
556
+ openings: 'openings'
558
557
  };
559
558
 
560
559
  exports.Prisma.JobDescriptionDataScalarFieldEnum = {
@@ -569,36 +568,6 @@ exports.Prisma.JobDescriptionDataScalarFieldEnum = {
569
568
  is_active: 'is_active'
570
569
  };
571
570
 
572
- exports.Prisma.JobProfileScalarFieldEnum = {
573
- id: 'id',
574
- organisation_id: 'organisation_id',
575
- created_by: 'created_by',
576
- assigned_to: 'assigned_to',
577
- status: 'status',
578
- title: 'title',
579
- role_type: 'role_type',
580
- work_arrangement: 'work_arrangement',
581
- location: 'location',
582
- experience_min: 'experience_min',
583
- reporting: 'reporting',
584
- comp_range: 'comp_range',
585
- comp_benchmark: 'comp_benchmark',
586
- responsibilities: 'responsibilities',
587
- deliverables: 'deliverables',
588
- must_have_skills: 'must_have_skills',
589
- nice_to_have_skills: 'nice_to_have_skills',
590
- dealbreakers: 'dealbreakers',
591
- culture: 'culture',
592
- success_metrics: 'success_metrics',
593
- competencies: 'competencies',
594
- conversation_history: 'conversation_history',
595
- current_phase: 'current_phase',
596
- orion_execution_id: 'orion_execution_id',
597
- created_at: 'created_at',
598
- updated_at: 'updated_at',
599
- is_active: 'is_active'
600
- };
601
-
602
571
  exports.Prisma.MessageScalarFieldEnum = {
603
572
  id: 'id',
604
573
  sender_id: 'sender_id',
@@ -954,8 +923,7 @@ exports.EvaluationPlanType = exports.$Enums.EvaluationPlanType = {
954
923
 
955
924
  exports.IntegrationProvider = exports.$Enums.IntegrationProvider = {
956
925
  NAUKRI: 'NAUKRI',
957
- ZOHO_RECRUIT: 'ZOHO_RECRUIT',
958
- LINKEDIN: 'LINKEDIN'
926
+ ZOHO_RECRUIT: 'ZOHO_RECRUIT'
959
927
  };
960
928
 
961
929
  exports.IntegrationAuthType = exports.$Enums.IntegrationAuthType = {
@@ -1007,13 +975,6 @@ exports.JobDescriptionStatus = exports.$Enums.JobDescriptionStatus = {
1007
975
  CLOSED: 'CLOSED'
1008
976
  };
1009
977
 
1010
- exports.JobProfileStatus = exports.$Enums.JobProfileStatus = {
1011
- DRAFT: 'DRAFT',
1012
- INTAKE_SENT: 'INTAKE_SENT',
1013
- INTAKE_IN_PROGRESS: 'INTAKE_IN_PROGRESS',
1014
- COMPLETE: 'COMPLETE'
1015
- };
1016
-
1017
978
  exports.OngoingEvaluationStatus = exports.$Enums.OngoingEvaluationStatus = {
1018
979
  LOCKED: 'LOCKED',
1019
980
  ACTION_REQUIRED: 'ACTION_REQUIRED',
@@ -1103,7 +1064,6 @@ exports.Prisma.ModelName = {
1103
1064
  InterviewNotes: 'InterviewNotes',
1104
1065
  JobDescription: 'JobDescription',
1105
1066
  JobDescriptionData: 'JobDescriptionData',
1106
- JobProfile: 'JobProfile',
1107
1067
  Message: 'Message',
1108
1068
  OngoingEvaluation: 'OngoingEvaluation',
1109
1069
  Organisation: 'Organisation',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adaptware/eagles-db",
3
- "version": "1.1.63",
3
+ "version": "1.1.66",
4
4
  "description": "A Prisma client package for Treadspace database operations",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -1,10 +1,13 @@
1
1
  model CandidateQuestionResponse {
2
2
  id String @id @default(uuid())
3
+ //foreign keys
3
4
  question_id String
4
5
  candidate_id String
5
6
  assessment_id String
7
+ //data
6
8
  response String
7
9
  score Float?
10
+ /// Audit fields
8
11
  created_by String
9
12
  updated_by String
10
13
  created_at DateTime @default(now())
@@ -15,7 +18,7 @@ model CandidateQuestionResponse {
15
18
  assessment Assessment @relation(fields: [assessment_id], references: [id], onDelete: Cascade)
16
19
  candidate User @relation(fields: [candidate_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
17
20
 
21
+ @@unique([assessment_id, question_id, candidate_id])
18
22
  @@index([candidate_id])
19
- @@index([question_id])
20
23
  @@index([assessment_id])
21
24
  }
@@ -1,23 +1,18 @@
1
- enum AssessmentStatus {
2
- SCHEDULED // Assessment has been created and scheduled
3
- IN_PROGRESS // Candidate is currently giving the assessment
4
- COMPLETED // Assessment completed by candidate
5
- CANCELLED // Assessment cancelled by admin or system
6
- RESCHEDULED // Assessment rescheduled to a new time
7
- NO_SHOW // Candidate failed to take the assessment
8
- EVALUATION_PENDING // Waiting for manual/AI review of answers
9
- EVALUATED // Final evaluation completed and locked
10
- }
11
-
12
1
  model Assessment {
13
2
  id String @id @default(uuid())
3
+ //foreign keys
4
+ organisation_id String?
14
5
  assessment_library_id String
15
6
  candidate_id String
16
7
  reviewer_id String?
8
+ //data
17
9
  score Float?
18
- feedback String?
19
- scheduled_start_time DateTime? @default(now()) // Start Time to start the assessment
20
- assessment_status AssessmentStatus @default(SCHEDULED)
10
+ feedback Json?
11
+ scheduled_start_time DateTime?
12
+ scheduled_end_time DateTime?
13
+ actual_start_time DateTime?
14
+ actual_end_time DateTime?
15
+ /// Audit fields
21
16
  created_at DateTime @default(now())
22
17
  updated_at DateTime @updatedAt
23
18
  created_by String
@@ -29,9 +24,10 @@ model Assessment {
29
24
  reviewer User? @relation("ReviewerAssessments", fields: [reviewer_id], references: [id], onDelete: SetNull, onUpdate: Cascade)
30
25
  questions AssessmentQuestion[] @relation("AssessmentToAssessmentQuestion")
31
26
  candidateResponse CandidateQuestionResponse[]
32
- panelistId String?
27
+ organisation Organisation? @relation(fields: [organisation_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
33
28
  User User? @relation(fields: [userId], references: [id])
34
29
  userId String?
30
+ ongoingEvaluation OngoingEvaluation?
35
31
 
36
32
  @@unique([assessment_library_id, candidate_id])
37
33
  @@index([assessment_library_id])
@@ -47,6 +47,7 @@ model Interview {
47
47
  section_feedback Json[]
48
48
  interview_preparation Json?
49
49
  final_feedback Json?
50
+
50
51
  /// Audit fields
51
52
  created_at DateTime @default(now())
52
53
  updated_at DateTime @updatedAt
@@ -66,7 +67,7 @@ model Interview {
66
67
  suggestions Suggestion[]
67
68
  feedback Feedback[]
68
69
  interviewNotes InterviewNotes[]
69
-
70
+ liveAnalysis LiveAnalysis[]
70
71
  @@unique([interviewer_id, candidate_id, evaluation_plan_id])
71
72
  @@index([candidate_id])
72
73
  @@index([interviewer_id])
@@ -0,0 +1,11 @@
1
+ model LiveAnalysis {
2
+ id String @id @default(uuid())
3
+ interview_id String
4
+ analysis Json
5
+ created_at DateTime @default(now())
6
+ updated_at DateTime @updatedAt
7
+ created_by String
8
+ updated_by String
9
+ is_active Boolean @default(true)
10
+ interview Interview @relation(fields: [interview_id], references: [id])
11
+ }
@@ -35,6 +35,7 @@ model OngoingEvaluation {
35
35
  evaluation_plan_id String
36
36
  interview_id String? @unique
37
37
  assignment_id String? @unique
38
+ assessment_id String? @unique
38
39
  status OngoingEvaluationStatus?
39
40
  state OngoingEvaluationState? @default(NOT_STARTED)
40
41
  round_status OngoingEvaluationRoundStatus? @default(NOT_SCHEDULED)
@@ -48,6 +49,7 @@ model OngoingEvaluation {
48
49
  evaluation_plan EvaluationPlan @relation(fields: [evaluation_plan_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
49
50
  interview Interview? @relation(fields: [interview_id], references: [id], onDelete: SetNull, onUpdate: Cascade)
50
51
  assignment Assignment?
52
+ assessment Assessment? @relation(fields: [assessment_id], references: [id], onDelete: SetNull)
51
53
  created_at DateTime @default(now())
52
54
  updated_at DateTime @updatedAt
53
55
  created_by String
@@ -17,30 +17,31 @@ model Organisation {
17
17
  address String
18
18
  company_values Json[]
19
19
 
20
- interviewers User[]
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
- alias String? @unique
27
- logo String?
28
- applications Application[]
29
- user_roles UserRole[]
30
- job_descriptions JobDescription[]
31
- job_profiles JobProfile[]
32
- assessment_library AssessmentLibrary[]
33
- assignment_library AssignmentLibrary[]
34
- interviews Interview[]
35
- assignments Assignment[]
36
- fit_check FitCheck[] // one-to-many link
37
- resumes Resume[] // one-to-many link
38
- approvals Approval[] // one-to-many link
39
- suggestions Suggestion[]
40
- ongoing_evaluations OngoingEvaluation[] // optional one-to-many
41
- actions Action[]
42
- integration_credentials IntegrationCredential[]
43
- zoho_sync_mappings ZohoSyncMapping[]
20
+ interviewers User[]
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
+ alias String? @unique
27
+ logo String?
28
+ applications Application[]
29
+ user_roles UserRole[]
30
+ job_descriptions JobDescription[]
31
+ job_profiles JobProfile[]
32
+ assessment_library AssessmentLibrary[]
33
+ assignment_library AssignmentLibrary[]
34
+ interviews Interview[]
35
+ assignments Assignment[]
36
+ fit_check FitCheck[] // one-to-many link
37
+ resumes Resume[] // one-to-many link
38
+ approvals Approval[] // one-to-many link
39
+ suggestions Suggestion[]
40
+ ongoing_evaluations OngoingEvaluation[] // optional one-to-many
41
+ actions Action[]
42
+ integration_credentials IntegrationCredential[]
43
+ zoho_sync_mappings ZohoSyncMapping[]
44
+ assessments Assessment[]
44
45
 
45
46
  @@index([name])
46
47
  }