@adaptware/eagles-db 0.1.84 → 0.1.86

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-ce0ead501ab5f4943030635b9183cffe4d4daabd0bff6b1c5e5c12552b7c8110",
2
+ "name": "prisma-client-7ea14210ef898197a704ebe0c3225e71ec2e6f116fe2e1a030b6358d8c508f97",
3
3
  "main": "index.js",
4
4
  "types": "index.d.ts",
5
5
  "browser": "index-browser.js",
@@ -314,6 +314,7 @@ enum AuthProvider {
314
314
  GOOGLE
315
315
  MICROSOFT
316
316
  ZOOM
317
+ CALENDLY
317
318
  }
318
319
 
319
320
  model AuthModule {
@@ -762,6 +763,7 @@ model Interview {
762
763
  application_id String?
763
764
  resume_id String
764
765
  job_description_id String
766
+ calendar_event_id String?
765
767
  /// Data
766
768
  room_name String?
767
769
  interview_summary String[]
@@ -772,7 +774,6 @@ model Interview {
772
774
  recording_url String?
773
775
  interview_status InterviewStatus @default(SCHEDULED)
774
776
  interview_platform InterviewPlatform @default(TREADSPACE)
775
- google_event_id String?
776
777
  /// Old Feedback fields will be deprecated soon
777
778
  ai_interview_feedback InterviewFeedback?
778
779
  interview_feedback InterviewFeedback?
@@ -1192,20 +1193,12 @@ enum Difficulty {
1192
1193
  HARD // challenging questions
1193
1194
  }
1194
1195
 
1195
- enum QuestionType {
1196
- MCQ
1197
- TRUE_FALSE
1198
- THEORY
1199
- CODING
1200
- }
1201
-
1202
1196
  model Question {
1203
1197
  id String @id @default(uuid())
1204
1198
  assessment_library_id String?
1205
1199
  evaluation_plan_id String?
1206
1200
  candidate_id String?
1207
1201
  skill String?
1208
- question_type QuestionType?
1209
1202
  question String
1210
1203
  answer String
1211
1204
  options String[] // For MCQ's
@@ -1356,6 +1349,7 @@ model User {
1356
1349
  password String
1357
1350
  role_id String
1358
1351
  role UserRole @relation(fields: [role_id], references: [id], onDelete: Restrict, onUpdate: Cascade)
1352
+ organisation_id String?
1359
1353
  // Back-relations are defined from Resume side via user_id
1360
1354
  google_id String? @unique
1361
1355
  refresh_token String?
@@ -1366,8 +1360,8 @@ model User {
1366
1360
  is_active Boolean @default(true)
1367
1361
  is_self_registered Boolean @default(true)
1368
1362
  permission_id String? @unique
1363
+ preferences Json? @default("{}")
1369
1364
  permission Permission? @relation(fields: [permission_id], references: [id], onDelete: SetNull, onUpdate: Cascade)
1370
- organisation_id String?
1371
1365
  organisation Organisation? @relation(fields: [organisation_id], references: [id], onDelete: SetNull, onUpdate: Cascade)
1372
1366
  applications Application[]
1373
1367
  resume Resume[]
package/client/wasm.js CHANGED
@@ -522,6 +522,7 @@ exports.Prisma.InterviewScalarFieldEnum = {
522
522
  application_id: 'application_id',
523
523
  resume_id: 'resume_id',
524
524
  job_description_id: 'job_description_id',
525
+ calendar_event_id: 'calendar_event_id',
525
526
  room_name: 'room_name',
526
527
  interview_summary: 'interview_summary',
527
528
  scheduled_start_time: 'scheduled_start_time',
@@ -531,7 +532,6 @@ exports.Prisma.InterviewScalarFieldEnum = {
531
532
  recording_url: 'recording_url',
532
533
  interview_status: 'interview_status',
533
534
  interview_platform: 'interview_platform',
534
- google_event_id: 'google_event_id',
535
535
  ai_interview_feedback: 'ai_interview_feedback',
536
536
  interview_feedback: 'interview_feedback',
537
537
  overall_feedback: 'overall_feedback',
@@ -752,7 +752,6 @@ exports.Prisma.QuestionScalarFieldEnum = {
752
752
  evaluation_plan_id: 'evaluation_plan_id',
753
753
  candidate_id: 'candidate_id',
754
754
  skill: 'skill',
755
- question_type: 'question_type',
756
755
  question: 'question',
757
756
  answer: 'answer',
758
757
  options: 'options',
@@ -841,6 +840,7 @@ exports.Prisma.UserScalarFieldEnum = {
841
840
  email: 'email',
842
841
  password: 'password',
843
842
  role_id: 'role_id',
843
+ organisation_id: 'organisation_id',
844
844
  google_id: 'google_id',
845
845
  refresh_token: 'refresh_token',
846
846
  created_at: 'created_at',
@@ -850,7 +850,7 @@ exports.Prisma.UserScalarFieldEnum = {
850
850
  is_active: 'is_active',
851
851
  is_self_registered: 'is_self_registered',
852
852
  permission_id: 'permission_id',
853
- organisation_id: 'organisation_id',
853
+ preferences: 'preferences',
854
854
  profile_created: 'profile_created',
855
855
  first_login_status: 'first_login_status',
856
856
  name: 'name',
@@ -993,7 +993,8 @@ exports.AssignmentStatus = exports.$Enums.AssignmentStatus = {
993
993
  exports.AuthProvider = exports.$Enums.AuthProvider = {
994
994
  GOOGLE: 'GOOGLE',
995
995
  MICROSOFT: 'MICROSOFT',
996
- ZOOM: 'ZOOM'
996
+ ZOOM: 'ZOOM',
997
+ CALENDLY: 'CALENDLY'
997
998
  };
998
999
 
999
1000
  exports.JobType = exports.$Enums.JobType = {
@@ -1155,13 +1156,6 @@ exports.AsyncOperationStatus = exports.$Enums.AsyncOperationStatus = {
1155
1156
  CANCELLED: 'CANCELLED'
1156
1157
  };
1157
1158
 
1158
- exports.QuestionType = exports.$Enums.QuestionType = {
1159
- MCQ: 'MCQ',
1160
- TRUE_FALSE: 'TRUE_FALSE',
1161
- THEORY: 'THEORY',
1162
- CODING: 'CODING'
1163
- };
1164
-
1165
1159
  exports.Difficulty = exports.$Enums.Difficulty = {
1166
1160
  EASY: 'EASY',
1167
1161
  MEDIUM: 'MEDIUM',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adaptware/eagles-db",
3
- "version": "0.1.84",
3
+ "version": "0.1.86",
4
4
  "description": "A Prisma client package for Treadspace database operations",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -0,0 +1,5 @@
1
+ -- DropQuestion.question_type and enum QuestionType (replaced by structure-based inference in app code)
2
+
3
+ ALTER TABLE "Question" DROP COLUMN IF EXISTS "question_type";
4
+
5
+ DROP TYPE IF EXISTS "QuestionType";
@@ -2,6 +2,7 @@ enum AuthProvider {
2
2
  GOOGLE
3
3
  MICROSOFT
4
4
  ZOOM
5
+ CALENDLY
5
6
  }
6
7
 
7
8
  model AuthModule {
@@ -30,6 +30,7 @@ model Interview {
30
30
  application_id String?
31
31
  resume_id String
32
32
  job_description_id String
33
+ calendar_event_id String?
33
34
  /// Data
34
35
  room_name String?
35
36
  interview_summary String[]
@@ -40,7 +41,6 @@ model Interview {
40
41
  recording_url String?
41
42
  interview_status InterviewStatus @default(SCHEDULED)
42
43
  interview_platform InterviewPlatform @default(TREADSPACE)
43
- google_event_id String?
44
44
  /// Old Feedback fields will be deprecated soon
45
45
  ai_interview_feedback InterviewFeedback?
46
46
  interview_feedback InterviewFeedback?
@@ -55,26 +55,27 @@ model Interview {
55
55
  final_feedback Json?
56
56
 
57
57
  /// Audit fields
58
- created_at DateTime @default(now())
59
- updated_at DateTime @updatedAt
60
- created_by String
61
- updated_by String
62
- is_active Boolean @default(true)
58
+ created_at DateTime @default(now())
59
+ updated_at DateTime @updatedAt
60
+ created_by String
61
+ updated_by String
62
+ is_active Boolean @default(true)
63
63
  // Relations
64
- candidate User? @relation("CandidateInterviews", fields: [candidate_id], references: [id], onDelete: SetNull)
65
- interviewer User? @relation("InterviewerInterviews", fields: [interviewer_id], references: [id], onDelete: SetNull)
66
- organisation Organisation @relation(fields: [organisation_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
67
- job_description JobDescription @relation(fields: [job_description_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
68
- resume Resume @relation(fields: [resume_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
69
- evaluation_plan EvaluationPlan? @relation(fields: [evaluation_plan_id], references: [id], onDelete: SetNull, onUpdate: Cascade)
70
- application Application? @relation(fields: [application_id], references: [id], onDelete: SetNull, onUpdate: Cascade)
71
- ongoing_evaluation OngoingEvaluation?
72
- transcripts Transcript[]
73
- suggestions Suggestion[]
74
- feedback Feedback[]
75
- interviewNotes InterviewNotes[]
76
- liveAnalysis LiveAnalysis[]
77
- zoom_meeting ZoomMeeting?
64
+ candidate User? @relation("CandidateInterviews", fields: [candidate_id], references: [id], onDelete: SetNull)
65
+ interviewer User? @relation("InterviewerInterviews", fields: [interviewer_id], references: [id], onDelete: SetNull)
66
+ organisation Organisation @relation(fields: [organisation_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
67
+ job_description JobDescription @relation(fields: [job_description_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
68
+ resume Resume @relation(fields: [resume_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
69
+ evaluation_plan EvaluationPlan? @relation(fields: [evaluation_plan_id], references: [id], onDelete: SetNull, onUpdate: Cascade)
70
+ application Application? @relation(fields: [application_id], references: [id], onDelete: SetNull, onUpdate: Cascade)
71
+ ongoing_evaluation OngoingEvaluation?
72
+ transcripts Transcript[]
73
+ suggestions Suggestion[]
74
+ feedback Feedback[]
75
+ interviewNotes InterviewNotes[]
76
+ liveAnalysis LiveAnalysis[]
77
+ zoom_meeting ZoomMeeting?
78
+
78
79
  @@unique([interviewer_id, candidate_id, evaluation_plan_id])
79
80
  @@index([candidate_id])
80
81
  @@index([interviewer_id])
@@ -4,20 +4,12 @@ enum Difficulty {
4
4
  HARD // challenging questions
5
5
  }
6
6
 
7
- enum QuestionType {
8
- MCQ
9
- TRUE_FALSE
10
- THEORY
11
- CODING
12
- }
13
-
14
7
  model Question {
15
8
  id String @id @default(uuid())
16
9
  assessment_library_id String?
17
10
  evaluation_plan_id String?
18
11
  candidate_id String?
19
12
  skill String?
20
- question_type QuestionType?
21
13
  question String
22
14
  answer String
23
15
  options String[] // For MCQ's
@@ -9,6 +9,7 @@ model User {
9
9
  password String
10
10
  role_id String
11
11
  role UserRole @relation(fields: [role_id], references: [id], onDelete: Restrict, onUpdate: Cascade)
12
+ organisation_id String?
12
13
  // Back-relations are defined from Resume side via user_id
13
14
  google_id String? @unique
14
15
  refresh_token String?
@@ -19,8 +20,8 @@ model User {
19
20
  is_active Boolean @default(true)
20
21
  is_self_registered Boolean @default(true)
21
22
  permission_id String? @unique
23
+ preferences Json? @default("{}")
22
24
  permission Permission? @relation(fields: [permission_id], references: [id], onDelete: SetNull, onUpdate: Cascade)
23
- organisation_id String?
24
25
  organisation Organisation? @relation(fields: [organisation_id], references: [id], onDelete: SetNull, onUpdate: Cascade)
25
26
  applications Application[]
26
27
  resume Resume[]