@adaptware/eagles-db 0.3.3 → 0.3.5

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-aca3d15a72e451cc2405fa69b2ca1472cd244bd3adbc759a3a1110b5337d97b4",
2
+ "name": "prisma-client-8706d82a6baade30f69880f90ae3e947549a65179f390f95758570a8d20b792b",
3
3
  "main": "index.js",
4
4
  "types": "index.d.ts",
5
5
  "browser": "index-browser.js",
@@ -764,38 +764,39 @@ enum AiAssistanceMode {
764
764
  }
765
765
 
766
766
  model Interview {
767
- id String @id @default(uuid())
767
+ id String @id @default(uuid())
768
768
  /// Foreign keys
769
- organisation_id String
770
- candidate_id String
771
- interviewer_id String?
772
- evaluation_plan_id String
773
- application_id String?
774
- resume_id String
775
- job_description_id String
776
- calendar_event_id String?
769
+ organisation_id String
770
+ candidate_id String
771
+ interviewer_id String?
772
+ evaluation_plan_id String
773
+ application_id String?
774
+ resume_id String
775
+ job_description_id String
776
+ calendar_event_id String?
777
777
  /// Data
778
- room_name String?
779
- interview_summary String[]
780
- scheduled_start_time DateTime?
781
- scheduled_end_time DateTime?
782
- actual_start_time DateTime?
783
- actual_end_time DateTime?
784
- recording_url String?
785
- interview_status InterviewStatus @default(SCHEDULED)
786
- interview_platform InterviewPlatform @default(TREADSPACE)
778
+ room_name String?
779
+ interview_summary String[]
780
+ scheduled_start_time DateTime?
781
+ scheduled_end_time DateTime?
782
+ actual_start_time DateTime?
783
+ actual_end_time DateTime?
784
+ recording_url String?
785
+ interview_status InterviewStatus @default(SCHEDULED)
786
+ interview_platform InterviewPlatform @default(TREADSPACE)
787
787
  /// Old Feedback fields will be deprecated soon
788
- ai_interview_feedback InterviewFeedback?
789
- interview_feedback InterviewFeedback?
790
- overall_feedback String?
791
- interview_rating Float? // Overall rating out of 100 based on evaluation
788
+ ai_interview_feedback InterviewFeedback?
789
+ interview_feedback InterviewFeedback?
790
+ overall_feedback String?
791
+ interview_rating Float? // Overall rating out of 100 based on evaluation
792
792
  /// New Feedback fields
793
- ai_feedback Json?
794
- human_feedback Json?
795
- interviewer_feedback Json?
796
- section_feedback Json[]
797
- interview_preparation Json?
798
- final_feedback Json?
793
+ ai_feedback Json?
794
+ human_feedback Json?
795
+ interviewer_feedback Json?
796
+ section_feedback Json[]
797
+ interview_preparation Json?
798
+ final_feedback Json?
799
+ interview_analysis_ranges Json?
799
800
 
800
801
  /// Self-scheduling
801
802
  reschedule_count Int @default(0)
@@ -1379,6 +1380,12 @@ enum FirstLoginStatus {
1379
1380
  COMPLETED
1380
1381
  }
1381
1382
 
1383
+ enum UserInvitationStatus {
1384
+ INVITED
1385
+ ACCEPTED
1386
+ EXPIRED
1387
+ }
1388
+
1382
1389
  model User {
1383
1390
  id String @id @default(uuid())
1384
1391
  email String @unique
@@ -1397,6 +1404,10 @@ model User {
1397
1404
  is_self_registered Boolean @default(true)
1398
1405
  permission_id String? @unique
1399
1406
  preferences Json? @default("{}")
1407
+ invitation_status UserInvitationStatus @default(INVITED)
1408
+ invited_at DateTime? @default(now())
1409
+ invitation_expires_at DateTime?
1410
+ invitation_accepted_at DateTime?
1400
1411
  permission Permission? @relation(fields: [permission_id], references: [id], onDelete: SetNull, onUpdate: Cascade)
1401
1412
  organisation Organisation? @relation(fields: [organisation_id], references: [id], onDelete: SetNull, onUpdate: Cascade)
1402
1413
  applications Application[]
package/client/wasm.js CHANGED
@@ -543,6 +543,7 @@ exports.Prisma.InterviewScalarFieldEnum = {
543
543
  section_feedback: 'section_feedback',
544
544
  interview_preparation: 'interview_preparation',
545
545
  final_feedback: 'final_feedback',
546
+ interview_analysis_ranges: 'interview_analysis_ranges',
546
547
  reschedule_count: 'reschedule_count',
547
548
  last_rescheduled_at: 'last_rescheduled_at',
548
549
  first_assigned_at: 'first_assigned_at',
@@ -867,6 +868,10 @@ exports.Prisma.UserScalarFieldEnum = {
867
868
  is_self_registered: 'is_self_registered',
868
869
  permission_id: 'permission_id',
869
870
  preferences: 'preferences',
871
+ invitation_status: 'invitation_status',
872
+ invited_at: 'invited_at',
873
+ invitation_expires_at: 'invitation_expires_at',
874
+ invitation_accepted_at: 'invitation_accepted_at',
870
875
  profile_created: 'profile_created',
871
876
  first_login_status: 'first_login_status',
872
877
  name: 'name',
@@ -1184,6 +1189,12 @@ exports.Difficulty = exports.$Enums.Difficulty = {
1184
1189
  HARD: 'HARD'
1185
1190
  };
1186
1191
 
1192
+ exports.UserInvitationStatus = exports.$Enums.UserInvitationStatus = {
1193
+ INVITED: 'INVITED',
1194
+ ACCEPTED: 'ACCEPTED',
1195
+ EXPIRED: 'EXPIRED'
1196
+ };
1197
+
1187
1198
  exports.FirstLoginStatus = exports.$Enums.FirstLoginStatus = {
1188
1199
  PENDING: 'PENDING',
1189
1200
  COMPLETED: 'COMPLETED'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adaptware/eagles-db",
3
- "version": "0.3.3",
3
+ "version": "0.3.5",
4
4
  "description": "A Prisma client package for Treadspace database operations",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -26,38 +26,39 @@ enum AiAssistanceMode {
26
26
  }
27
27
 
28
28
  model Interview {
29
- id String @id @default(uuid())
29
+ id String @id @default(uuid())
30
30
  /// Foreign keys
31
- organisation_id String
32
- candidate_id String
33
- interviewer_id String?
34
- evaluation_plan_id String
35
- application_id String?
36
- resume_id String
37
- job_description_id String
38
- calendar_event_id String?
31
+ organisation_id String
32
+ candidate_id String
33
+ interviewer_id String?
34
+ evaluation_plan_id String
35
+ application_id String?
36
+ resume_id String
37
+ job_description_id String
38
+ calendar_event_id String?
39
39
  /// Data
40
- room_name String?
41
- interview_summary String[]
42
- scheduled_start_time DateTime?
43
- scheduled_end_time DateTime?
44
- actual_start_time DateTime?
45
- actual_end_time DateTime?
46
- recording_url String?
47
- interview_status InterviewStatus @default(SCHEDULED)
48
- interview_platform InterviewPlatform @default(TREADSPACE)
40
+ room_name String?
41
+ interview_summary String[]
42
+ scheduled_start_time DateTime?
43
+ scheduled_end_time DateTime?
44
+ actual_start_time DateTime?
45
+ actual_end_time DateTime?
46
+ recording_url String?
47
+ interview_status InterviewStatus @default(SCHEDULED)
48
+ interview_platform InterviewPlatform @default(TREADSPACE)
49
49
  /// Old Feedback fields will be deprecated soon
50
- ai_interview_feedback InterviewFeedback?
51
- interview_feedback InterviewFeedback?
52
- overall_feedback String?
53
- interview_rating Float? // Overall rating out of 100 based on evaluation
50
+ ai_interview_feedback InterviewFeedback?
51
+ interview_feedback InterviewFeedback?
52
+ overall_feedback String?
53
+ interview_rating Float? // Overall rating out of 100 based on evaluation
54
54
  /// New Feedback fields
55
- ai_feedback Json?
56
- human_feedback Json?
57
- interviewer_feedback Json?
58
- section_feedback Json[]
59
- interview_preparation Json?
60
- final_feedback Json?
55
+ ai_feedback Json?
56
+ human_feedback Json?
57
+ interviewer_feedback Json?
58
+ section_feedback Json[]
59
+ interview_preparation Json?
60
+ final_feedback Json?
61
+ interview_analysis_ranges Json?
61
62
 
62
63
  /// Self-scheduling
63
64
  reschedule_count Int @default(0)
@@ -3,6 +3,12 @@ enum FirstLoginStatus {
3
3
  COMPLETED
4
4
  }
5
5
 
6
+ enum UserInvitationStatus {
7
+ INVITED
8
+ ACCEPTED
9
+ EXPIRED
10
+ }
11
+
6
12
  model User {
7
13
  id String @id @default(uuid())
8
14
  email String @unique
@@ -21,6 +27,10 @@ model User {
21
27
  is_self_registered Boolean @default(true)
22
28
  permission_id String? @unique
23
29
  preferences Json? @default("{}")
30
+ invitation_status UserInvitationStatus @default(INVITED)
31
+ invited_at DateTime? @default(now())
32
+ invitation_expires_at DateTime?
33
+ invitation_accepted_at DateTime?
24
34
  permission Permission? @relation(fields: [permission_id], references: [id], onDelete: SetNull, onUpdate: Cascade)
25
35
  organisation Organisation? @relation(fields: [organisation_id], references: [id], onDelete: SetNull, onUpdate: Cascade)
26
36
  applications Application[]
package/prisma/.DS_Store DELETED
Binary file