@adaptware/eagles-db 0.1.66 → 0.1.67

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-5297fc472d2b9310debb93b931d8e67f63913d7d036c79b4a032d9bd6e5efdf5",
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])
@@ -901,6 +904,18 @@ model JobProfile {
901
904
  @@index([created_by])
902
905
  }
903
906
 
907
+ model LiveAnalysis {
908
+ id String @id @default(uuid())
909
+ interview_id String
910
+ analysis Json
911
+ created_at DateTime @default(now())
912
+ updated_at DateTime @updatedAt
913
+ created_by String
914
+ updated_by String
915
+ is_active Boolean @default(true)
916
+ interview Interview @relation(fields: [interview_id], references: [id])
917
+ }
918
+
904
919
  model Message {
905
920
  id String @id @default(uuid())
906
921
  sender_id 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',
@@ -601,6 +602,17 @@ exports.Prisma.JobProfileScalarFieldEnum = {
601
602
  is_active: 'is_active'
602
603
  };
603
604
 
605
+ exports.Prisma.LiveAnalysisScalarFieldEnum = {
606
+ id: 'id',
607
+ interview_id: 'interview_id',
608
+ analysis: 'analysis',
609
+ created_at: 'created_at',
610
+ updated_at: 'updated_at',
611
+ created_by: 'created_by',
612
+ updated_by: 'updated_by',
613
+ is_active: 'is_active'
614
+ };
615
+
604
616
  exports.Prisma.MessageScalarFieldEnum = {
605
617
  id: 'id',
606
618
  sender_id: 'sender_id',
@@ -1096,6 +1108,7 @@ exports.Prisma.ModelName = {
1096
1108
  JobDescription: 'JobDescription',
1097
1109
  JobDescriptionData: 'JobDescriptionData',
1098
1110
  JobProfile: 'JobProfile',
1111
+ LiveAnalysis: 'LiveAnalysis',
1099
1112
  Message: 'Message',
1100
1113
  OngoingEvaluation: 'OngoingEvaluation',
1101
1114
  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.67",
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])
@@ -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
+ }