@adaptware/eagles-db 0.1.66 → 0.1.68

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-a653113e8f0f29a34567159b1bed8eb8db0d6681477127402631e0f69e8d5b0d",
2
+ "name": "prisma-client-27be9a494fcb3b0825b03cd37c78878e371af5fe2402438c44d4795654311f5b",
3
3
  "main": "index.js",
4
4
  "types": "index.d.ts",
5
5
  "browser": "index-browser.js",
@@ -269,6 +269,7 @@ model Assignment {
269
269
  status AssignmentStatus @default(AVAILABLE)
270
270
  cancel_reason String?
271
271
  solution_url String?
272
+ zip_url String?
272
273
  scheduled_start_time DateTime?
273
274
  scheduled_end_time DateTime?
274
275
  created_at DateTime @default(now())
@@ -733,25 +734,27 @@ model Interview {
733
734
  section_feedback Json[]
734
735
  interview_preparation Json?
735
736
  final_feedback Json?
737
+
736
738
  /// Audit fields
737
- created_at DateTime @default(now())
738
- updated_at DateTime @updatedAt
739
- created_by String
740
- updated_by String
741
- is_active Boolean @default(true)
739
+ created_at DateTime @default(now())
740
+ updated_at DateTime @updatedAt
741
+ created_by String
742
+ updated_by String
743
+ is_active Boolean @default(true)
742
744
  // Relations
743
- candidate User? @relation("CandidateInterviews", fields: [candidate_id], references: [id], onDelete: SetNull)
744
- interviewer User? @relation("InterviewerInterviews", fields: [interviewer_id], references: [id], onDelete: SetNull)
745
- organisation Organisation @relation(fields: [organisation_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
746
- job_description JobDescription @relation(fields: [job_description_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
747
- resume Resume @relation(fields: [resume_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
748
- evaluation_plan EvaluationPlan? @relation(fields: [evaluation_plan_id], references: [id], onDelete: SetNull, onUpdate: Cascade)
749
- application Application? @relation(fields: [application_id], references: [id], onDelete: SetNull, onUpdate: Cascade)
750
- ongoing_evaluation OngoingEvaluation?
751
- transcripts Transcript[]
752
- suggestions Suggestion[]
753
- feedback Feedback[]
754
- interviewNotes InterviewNotes[]
745
+ candidate User? @relation("CandidateInterviews", fields: [candidate_id], references: [id], onDelete: SetNull)
746
+ interviewer User? @relation("InterviewerInterviews", fields: [interviewer_id], references: [id], onDelete: SetNull)
747
+ organisation Organisation @relation(fields: [organisation_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
748
+ job_description JobDescription @relation(fields: [job_description_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
749
+ resume Resume @relation(fields: [resume_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
750
+ evaluation_plan EvaluationPlan? @relation(fields: [evaluation_plan_id], references: [id], onDelete: SetNull, onUpdate: Cascade)
751
+ application Application? @relation(fields: [application_id], references: [id], onDelete: SetNull, onUpdate: Cascade)
752
+ ongoing_evaluation OngoingEvaluation?
753
+ transcripts Transcript[]
754
+ suggestions Suggestion[]
755
+ feedback Feedback[]
756
+ interviewNotes InterviewNotes[]
757
+ liveAnalysis LiveAnalysis[]
755
758
 
756
759
  @@unique([interviewer_id, candidate_id, evaluation_plan_id])
757
760
  @@index([candidate_id])
@@ -795,6 +798,7 @@ model JobDescription {
795
798
  uploaded_job_description_path String?
796
799
  is_plan_published Boolean @default(false)
797
800
  is_posted Boolean @default(false)
801
+ summary Json?
798
802
  ai_insight Json?
799
803
  job_fit_comparison Json?
800
804
  // Audit fields
@@ -901,6 +905,24 @@ model JobProfile {
901
905
  @@index([created_by])
902
906
  }
903
907
 
908
+ model LiveAnalysis {
909
+ id String @id @default(uuid())
910
+ //foreign keys
911
+ interview_id String
912
+ //data
913
+ analysis Json
914
+ //audit fields
915
+ created_at DateTime @default(now())
916
+ updated_at DateTime @updatedAt
917
+ created_by String
918
+ updated_by String
919
+ is_active Boolean @default(true)
920
+ //relations
921
+ interview Interview @relation(fields: [interview_id], references: [id])
922
+
923
+ @@index([interview_id])
924
+ }
925
+
904
926
  model Message {
905
927
  id String @id @default(uuid())
906
928
  sender_id String
@@ -1138,6 +1160,7 @@ model Resume {
1138
1160
  organisation_id String?
1139
1161
  job_description_id String?
1140
1162
  uploaded_resume_path String?
1163
+ summary Json?
1141
1164
  created_at DateTime @default(now())
1142
1165
  updated_at DateTime @updatedAt
1143
1166
  created_by String
package/client/wasm.js CHANGED
@@ -266,6 +266,7 @@ exports.Prisma.AssignmentScalarFieldEnum = {
266
266
  status: 'status',
267
267
  cancel_reason: 'cancel_reason',
268
268
  solution_url: 'solution_url',
269
+ zip_url: 'zip_url',
269
270
  scheduled_start_time: 'scheduled_start_time',
270
271
  scheduled_end_time: 'scheduled_end_time',
271
272
  created_at: 'created_at',
@@ -548,6 +549,7 @@ exports.Prisma.JobDescriptionScalarFieldEnum = {
548
549
  uploaded_job_description_path: 'uploaded_job_description_path',
549
550
  is_plan_published: 'is_plan_published',
550
551
  is_posted: 'is_posted',
552
+ summary: 'summary',
551
553
  ai_insight: 'ai_insight',
552
554
  job_fit_comparison: 'job_fit_comparison',
553
555
  created_at: 'created_at',
@@ -601,6 +603,17 @@ exports.Prisma.JobProfileScalarFieldEnum = {
601
603
  is_active: 'is_active'
602
604
  };
603
605
 
606
+ exports.Prisma.LiveAnalysisScalarFieldEnum = {
607
+ id: 'id',
608
+ interview_id: 'interview_id',
609
+ analysis: 'analysis',
610
+ created_at: 'created_at',
611
+ updated_at: 'updated_at',
612
+ created_by: 'created_by',
613
+ updated_by: 'updated_by',
614
+ is_active: 'is_active'
615
+ };
616
+
604
617
  exports.Prisma.MessageScalarFieldEnum = {
605
618
  id: 'id',
606
619
  sender_id: 'sender_id',
@@ -721,6 +734,7 @@ exports.Prisma.ResumeScalarFieldEnum = {
721
734
  organisation_id: 'organisation_id',
722
735
  job_description_id: 'job_description_id',
723
736
  uploaded_resume_path: 'uploaded_resume_path',
737
+ summary: 'summary',
724
738
  created_at: 'created_at',
725
739
  updated_at: 'updated_at',
726
740
  created_by: 'created_by',
@@ -1096,6 +1110,7 @@ exports.Prisma.ModelName = {
1096
1110
  JobDescription: 'JobDescription',
1097
1111
  JobDescriptionData: 'JobDescriptionData',
1098
1112
  JobProfile: 'JobProfile',
1113
+ LiveAnalysis: 'LiveAnalysis',
1099
1114
  Message: 'Message',
1100
1115
  OngoingEvaluation: 'OngoingEvaluation',
1101
1116
  Organisation: 'Organisation',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adaptware/eagles-db",
3
- "version": "0.1.66",
3
+ "version": "0.1.68",
4
4
  "description": "A Prisma client package for Treadspace database operations",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -18,6 +18,7 @@ model Assignment {
18
18
  status AssignmentStatus @default(AVAILABLE)
19
19
  cancel_reason String?
20
20
  solution_url String?
21
+ zip_url String?
21
22
  scheduled_start_time DateTime?
22
23
  scheduled_end_time DateTime?
23
24
  created_at DateTime @default(now())
@@ -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])
@@ -16,6 +16,7 @@ model JobDescription {
16
16
  uploaded_job_description_path String?
17
17
  is_plan_published Boolean @default(false)
18
18
  is_posted Boolean @default(false)
19
+ summary Json?
19
20
  ai_insight Json?
20
21
  job_fit_comparison Json?
21
22
  // Audit fields
@@ -0,0 +1,17 @@
1
+ model LiveAnalysis {
2
+ id String @id @default(uuid())
3
+ //foreign keys
4
+ interview_id String
5
+ //data
6
+ analysis Json
7
+ //audit fields
8
+ created_at DateTime @default(now())
9
+ updated_at DateTime @updatedAt
10
+ created_by String
11
+ updated_by String
12
+ is_active Boolean @default(true)
13
+ //relations
14
+ interview Interview @relation(fields: [interview_id], references: [id])
15
+
16
+ @@index([interview_id])
17
+ }
@@ -4,6 +4,7 @@ model Resume {
4
4
  organisation_id String?
5
5
  job_description_id String?
6
6
  uploaded_resume_path String?
7
+ summary Json?
7
8
  created_at DateTime @default(now())
8
9
  updated_at DateTime @updatedAt
9
10
  created_by String