@adaptware/eagles-db 0.4.35 → 0.4.36

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.
Files changed (86) hide show
  1. package/client/edge.js +11 -869
  2. package/client/index-browser.js +42 -901
  3. package/client/index.d.ts +27423 -80978
  4. package/client/index.js +11 -869
  5. package/client/package.json +1 -1
  6. package/client/schema.prisma +128 -1594
  7. package/client/wasm.js +11 -869
  8. package/package.json +1 -1
  9. package/prisma/schema/CandidateQuestionResponse.prisma +0 -1
  10. package/prisma/schema/UserRole.prisma +0 -1
  11. package/prisma/schema/action.prisma +0 -5
  12. package/prisma/schema/activityLog.prisma +0 -3
  13. package/prisma/schema/applications.prisma +2 -12
  14. package/prisma/schema/approval.prisma +0 -2
  15. package/prisma/schema/assessment.prisma +0 -1
  16. package/prisma/schema/assessmentLibrary.prisma +0 -1
  17. package/prisma/schema/assessmentQuestion.prisma +0 -1
  18. package/prisma/schema/assignment.prisma +0 -3
  19. package/prisma/schema/assignmentLibrary.prisma +0 -1
  20. package/prisma/schema/authModule.prisma +0 -3
  21. package/prisma/schema/budget.prisma +0 -6
  22. package/prisma/schema/calendly.prisma +0 -2
  23. package/prisma/schema/candidateProfile.prisma +0 -2
  24. package/prisma/schema/communication.prisma +0 -11
  25. package/prisma/schema/contactUs.prisma +0 -2
  26. package/prisma/schema/document.prisma +1 -4
  27. package/prisma/schema/evaluationPlan.prisma +10 -35
  28. package/prisma/schema/feedback.prisma +0 -1
  29. package/prisma/schema/fitCheck.prisma +0 -3
  30. package/prisma/schema/google.prisma +0 -2
  31. package/prisma/schema/integration.prisma +0 -13
  32. package/prisma/schema/interview.prisma +0 -9
  33. package/prisma/schema/interviewNotes.prisma +0 -1
  34. package/prisma/schema/jobApplicationFields.prisma +0 -3
  35. package/prisma/schema/jobApplicationResponse.prisma +0 -1
  36. package/prisma/schema/jobApplicationTemplate.prisma +0 -3
  37. package/prisma/schema/jobDescription.prisma +35 -43
  38. package/prisma/schema/jobDescriptionData.prisma +0 -1
  39. package/prisma/schema/jobProfile.prisma +0 -3
  40. package/prisma/schema/liveAnalysis.prisma +0 -1
  41. package/prisma/schema/message.prisma +0 -2
  42. package/prisma/schema/migrations/20260522120000_ongoing_evaluation_record_kind/migration.sql +25 -0
  43. package/prisma/schema/migrations/20260523120000_replace_record_kind_with_is_committed/migration.sql +24 -0
  44. package/prisma/schema/migrations/20260528120000_drop_job_description_recommendation_config/migration.sql +2 -0
  45. package/prisma/schema/migrations/{20260706120000_add_resume_rendered_export → 20260710120000_add_resume_rendered_export_fields}/migration.sql +2 -5
  46. package/prisma/schema/notes.prisma +0 -1
  47. package/prisma/schema/ongoingEvaluation.prisma +0 -7
  48. package/prisma/schema/organisation.prisma +31 -39
  49. package/prisma/schema/organisationConfig.prisma +0 -1
  50. package/prisma/schema/permission.prisma +0 -1
  51. package/prisma/schema/promise.prisma +0 -3
  52. package/prisma/schema/questions.prisma +0 -4
  53. package/prisma/schema/refreshToken.prisma +0 -2
  54. package/prisma/schema/resume.prisma +4 -5
  55. package/prisma/schema/resumeData.prisma +0 -1
  56. package/prisma/schema/schema.prisma +0 -2
  57. package/prisma/schema/suggestion.prisma +0 -1
  58. package/prisma/schema/transcript.prisma +0 -1
  59. package/prisma/schema/user.prisma +0 -10
  60. package/prisma/schema/userProfile.prisma +0 -2
  61. package/prisma/schema/zoomMeeting.prisma +0 -5
  62. package/client/libquery_engine-darwin.dylib.node +0 -0
  63. package/prisma/.DS_Store +0 -0
  64. package/prisma/migrations/20260519120000_migrate_shortlisted_to_selected/migration.sql +0 -2
  65. package/prisma/schema/.DS_Store +0 -0
  66. package/prisma/schema/activityEvent.prisma +0 -138
  67. package/prisma/schema/applicationAnalytics.prisma +0 -87
  68. package/prisma/schema/assessmentRoundAnalytics.prisma +0 -119
  69. package/prisma/schema/assignmentRoundAnalytics.prisma +0 -109
  70. package/prisma/schema/interviewRoundAnalytics.prisma +0 -140
  71. package/prisma/schema/interviewerAnalytics.prisma +0 -129
  72. package/prisma/schema/jobRoundAnalytics.prisma +0 -101
  73. package/prisma/schema/migrations/20260519120000_add_analytics_schema/migration.sql +0 -84
  74. package/prisma/schema/migrations/20260625120000_add_interviewer_analytics/migration.sql +0 -26
  75. package/prisma/schema/migrations/20260629120000_add_user_lifecycle_activity_events/migration.sql +0 -13
  76. package/prisma/schema/migrations/20260629140000_drop_organisation_org_code/migration.sql +0 -2
  77. package/prisma/schema/migrations/20260629160000_employee_codes_dual_interviewer_analytics/migration.sql +0 -87
  78. package/prisma/schema/migrations/20260630120000_add_application_sources/migration.sql +0 -38
  79. package/prisma/schema/migrations/20260701120000_add_source_effectiveness_analytics/migration.sql +0 -40
  80. package/prisma/schema/migrations/20260702120000_add_analytics_daily_tables/migration.sql +0 -232
  81. package/prisma/schema/openJobAnalytics.prisma +0 -85
  82. package/prisma/schema/pipelineDistributionAnalytics.prisma +0 -64
  83. package/prisma/schema/reportingOverviewJobAnalytics.prisma +0 -49
  84. package/prisma/schema/roundAnalytics.prisma +0 -145
  85. package/prisma/schema/source.prisma +0 -36
  86. package/prisma/schema/sourceEffectivenessAnalytics.prisma +0 -79
@@ -1,138 +0,0 @@
1
- enum ActivityEventType {
2
- APPLICATION_CREATED
3
- APPLICATION_STARTED
4
- APPLICATION_REJECTED
5
- APPLICATION_SHORTLISTED
6
-
7
- FIT_CHECK_COMPLETED
8
-
9
- ROUND_ASSIGNED
10
- ROUND_COMPLETED
11
- ROUND_PASSED
12
- ROUND_FAILED
13
-
14
- INTERVIEW_CREATED
15
- INTERVIEW_SCHEDULED
16
- INTERVIEW_RESCHEDULED
17
- INTERVIEW_CANCELLED
18
- INTERVIEW_STARTED
19
- INTERVIEW_COMPLETED
20
- INTERVIEW_NO_SHOW
21
- INTERVIEW_EVALUATION_PENDING
22
- INTERVIEW_EVALUATED
23
-
24
- FEEDBACK_SUBMITTED
25
-
26
- ASSIGNMENT_CREATED
27
- ASSIGNMENT_STARTED
28
- ASSIGNMENT_COMPLETED
29
- ASSIGNMENT_CANCELLED
30
- ASSIGNMENT_EVALUATED
31
-
32
- ASSESSMENT_CREATED
33
- ASSESSMENT_STARTED
34
- ASSESSMENT_COMPLETED
35
- ASSESSMENT_CANCELLED
36
- ASSESSMENT_EVALUATED
37
-
38
- JOB_CREATED
39
- JOB_PUBLISHED
40
- JOB_CLOSED
41
- JOB_DEACTIVATED
42
-
43
- USER_INVITED
44
- USER_INVITATION_RESENT
45
- USER_CREATED
46
- USER_INVITATION_ACCEPTED
47
- USER_INVITATION_EXPIRED
48
- USER_DEACTIVATED
49
- USER_REACTIVATED
50
- USER_ROLE_CHANGED
51
- USER_PROFILE_COMPLETED
52
-
53
- CANDIDATE_REGISTERED
54
- CANDIDATE_CREATED
55
- CANDIDATE_PROFILE_COMPLETED
56
-
57
- EVALUATION_PLAN_CREATED
58
- EVALUATION_PLAN_PUBLISHED
59
- EVALUATION_PLAN_DELETED
60
- EVALUATION_PLAN_UPDATED
61
- STATUS_CHANGED
62
-
63
- CUSTOM
64
-
65
- @@schema("public")
66
- }
67
-
68
- enum ActivityEntityType {
69
- APPLICATION
70
-
71
- CANDIDATE
72
-
73
- JOB
74
-
75
- ONGOING_EVALUATION
76
-
77
- EVALUATION_PLAN
78
-
79
- INTERVIEW
80
-
81
- ASSIGNMENT
82
-
83
- ASSESSMENT
84
-
85
- ORGANISATION
86
-
87
- USER
88
-
89
- @@schema("public")
90
- }
91
-
92
- enum ActivityEntityActorType {
93
- USER
94
-
95
- SYSTEM
96
-
97
- AI_AGENT
98
-
99
- WEBHOOK
100
-
101
- @@schema("public")
102
- }
103
-
104
- model ActivityEvent {
105
- id String @id @default(uuid())
106
-
107
- organisation_id String?
108
-
109
- event_type ActivityEventType
110
-
111
- entity_type ActivityEntityType
112
- entity_id String
113
-
114
- actor_id String?
115
- actor_type ActivityEntityActorType
116
-
117
- related_entities Json?
118
-
119
- snapshot Json?
120
-
121
- payload Json?
122
-
123
- schema_version Int @default(1)
124
-
125
- occurred_at DateTime
126
-
127
- created_at DateTime @default(now())
128
-
129
- organisation Organisation? @relation(fields: [organisation_id], references: [id])
130
-
131
- @@index([organisation_id, occurred_at])
132
- @@index([organisation_id, event_type])
133
- @@index([entity_type, entity_id])
134
- @@index([actor_id])
135
- @@index([occurred_at])
136
- @@map("activity_events")
137
- @@schema("public")
138
- }
@@ -1,87 +0,0 @@
1
- model ApplicationAnalytics {
2
- id String @id @default(uuid())
3
-
4
- organisation_id String
5
- application_id String @unique
6
- job_description_id String
7
- candidate_id String
8
-
9
- source_id String?
10
- source_name String?
11
- source_category SourceCategory?
12
- source_colour String?
13
-
14
- job_code String?
15
- job_number Int?
16
- role_title String?
17
- hiring_manager_id String?
18
-
19
- candidate_name String?
20
- recruiter_id String?
21
-
22
- applied_at DateTime
23
- status_updated_at DateTime?
24
-
25
- status ApplicationStatus?
26
- fit_check_score Float?
27
-
28
- is_screened Boolean @default(false)
29
- is_evaluated Boolean @default(false)
30
- is_rejected Boolean @default(false)
31
- is_shortlisted Boolean @default(false)
32
- has_committed_evaluation Boolean @default(false)
33
-
34
- updated_at DateTime @updatedAt
35
-
36
- @@index([organisation_id, applied_at])
37
- @@index([organisation_id, source_id, applied_at])
38
- @@index([job_description_id, applied_at])
39
- @@index([organisation_id, hiring_manager_id])
40
- @@map("application_analytics")
41
- @@schema("analytics")
42
- }
43
-
44
- model ApplicationAnalyticsDaily {
45
- id String @id @default(uuid())
46
-
47
- snapshot_date DateTime @db.Date
48
-
49
- organisation_id String
50
- application_id String
51
- job_description_id String
52
- candidate_id String
53
-
54
- source_id String?
55
- source_name String?
56
- source_category SourceCategory?
57
- source_colour String?
58
-
59
- job_code String?
60
- job_number Int?
61
- role_title String?
62
- hiring_manager_id String?
63
-
64
- candidate_name String?
65
- recruiter_id String?
66
-
67
- applied_at DateTime
68
- status_updated_at DateTime?
69
-
70
- status ApplicationStatus?
71
- fit_check_score Float?
72
-
73
- is_screened Boolean @default(false)
74
- is_evaluated Boolean @default(false)
75
- is_rejected Boolean @default(false)
76
- is_shortlisted Boolean @default(false)
77
- has_committed_evaluation Boolean @default(false)
78
-
79
- @@unique([snapshot_date, application_id])
80
- @@index([snapshot_date], map: "aad_snapshot_date_idx")
81
- @@index([snapshot_date, organisation_id], map: "aad_snapshot_org_idx")
82
- @@index([snapshot_date, organisation_id, source_id], map: "aad_snapshot_org_source_idx")
83
- @@index([snapshot_date, organisation_id, applied_at], map: "aad_snapshot_org_applied_idx")
84
- @@index([snapshot_date, job_description_id], map: "aad_snapshot_job_idx")
85
- @@map("application_analytics_daily")
86
- @@schema("analytics")
87
- }
@@ -1,119 +0,0 @@
1
- enum AssessmentRoundStatus {
2
- SCHEDULED
3
- IN_PROGRESS
4
- COMPLETED
5
- EVALUATED
6
- CANCELLED
7
-
8
- @@schema("analytics")
9
- }
10
-
11
- model AssessmentRoundAnalytics {
12
- id String @id @default(uuid())
13
-
14
- organisation_id String
15
- round_id String @unique
16
- assessment_id String @unique
17
- application_id String?
18
- candidate_id String
19
- job_description_id String
20
- evaluation_plan_id String
21
-
22
- job_code String?
23
- job_number Int?
24
- role_title String?
25
- hiring_manager_id String?
26
- department String?
27
- location String?
28
-
29
- round_name String?
30
- evaluation_category EvaluationCategory?
31
- round_type RoundType?
32
- round_format EvaluationRoundFormat?
33
- plan_order_no Int?
34
- plan_type EvaluationPlanType?
35
- is_custom Boolean @default(false)
36
-
37
- reviewer_id String?
38
- reviewer_employee_id String?
39
- reviewer_name String?
40
-
41
- candidate_name String?
42
-
43
- evaluation_type EvaluationType?
44
-
45
- scheduled_start_at DateTime?
46
- scheduled_end_at DateTime?
47
- actual_start_at DateTime?
48
- actual_end_at DateTime?
49
- attempt_expires_at DateTime?
50
- evaluated_at DateTime?
51
-
52
- score Float?
53
- status AssessmentRoundStatus?
54
- round_result RoundResult?
55
-
56
- updated_at DateTime @updatedAt
57
-
58
- @@index([organisation_id, evaluated_at])
59
- @@index([organisation_id, reviewer_id])
60
- @@index([job_description_id])
61
- @@index([application_id])
62
- @@map("assessment_round_analytics")
63
- @@schema("analytics")
64
- }
65
-
66
- model AssessmentRoundAnalyticsDaily {
67
- id String @id @default(uuid())
68
-
69
- snapshot_date DateTime @db.Date
70
-
71
- organisation_id String
72
- round_id String
73
- assessment_id String
74
- application_id String?
75
- candidate_id String
76
- job_description_id String
77
- evaluation_plan_id String
78
-
79
- job_code String?
80
- job_number Int?
81
- role_title String?
82
- hiring_manager_id String?
83
- department String?
84
- location String?
85
-
86
- round_name String?
87
- evaluation_category EvaluationCategory?
88
- round_type RoundType?
89
- round_format EvaluationRoundFormat?
90
- plan_order_no Int?
91
- plan_type EvaluationPlanType?
92
- is_custom Boolean @default(false)
93
-
94
- reviewer_id String?
95
- reviewer_employee_id String?
96
- reviewer_name String?
97
-
98
- candidate_name String?
99
-
100
- evaluation_type EvaluationType?
101
-
102
- scheduled_start_at DateTime?
103
- scheduled_end_at DateTime?
104
- actual_start_at DateTime?
105
- actual_end_at DateTime?
106
- attempt_expires_at DateTime?
107
- evaluated_at DateTime?
108
-
109
- score Float?
110
- status AssessmentRoundStatus?
111
- round_result RoundResult?
112
-
113
- @@unique([snapshot_date, assessment_id])
114
- @@index([snapshot_date], map: "asrad_snapshot_date_idx")
115
- @@index([snapshot_date, organisation_id], map: "asrad_snapshot_org_idx")
116
- @@index([snapshot_date, job_description_id], map: "asrad_snapshot_job_idx")
117
- @@map("assessment_round_analytics_daily")
118
- @@schema("analytics")
119
- }
@@ -1,109 +0,0 @@
1
- model AssignmentRoundAnalytics {
2
- id String @id @default(uuid())
3
-
4
- organisation_id String
5
- round_id String @unique
6
- assignment_id String @unique
7
- application_id String?
8
- candidate_id String
9
- job_description_id String
10
- evaluation_plan_id String
11
-
12
- job_code String?
13
- job_number Int?
14
- role_title String?
15
- hiring_manager_id String?
16
- department String?
17
- location String?
18
-
19
- round_name String?
20
- evaluation_category EvaluationCategory?
21
- round_type RoundType?
22
- round_format EvaluationRoundFormat?
23
- plan_order_no Int?
24
- plan_type EvaluationPlanType?
25
- is_custom Boolean @default(false)
26
-
27
- reviewer_id String?
28
- reviewer_employee_id String?
29
- reviewer_name String?
30
-
31
- candidate_name String?
32
-
33
- evaluation_type EvaluationType?
34
-
35
- scheduled_start_at DateTime?
36
- scheduled_end_at DateTime?
37
- completed_at DateTime?
38
- evaluated_at DateTime?
39
- cancelled_at DateTime?
40
-
41
- status AssignmentStatus?
42
- overall_score Int?
43
- cancel_reason String?
44
- round_result RoundResult?
45
-
46
- updated_at DateTime @updatedAt
47
-
48
- @@index([organisation_id, evaluated_at])
49
- @@index([organisation_id, reviewer_id])
50
- @@index([job_description_id])
51
- @@index([application_id])
52
- @@map("assignment_round_analytics")
53
- @@schema("analytics")
54
- }
55
-
56
- model AssignmentRoundAnalyticsDaily {
57
- id String @id @default(uuid())
58
-
59
- snapshot_date DateTime @db.Date
60
-
61
- organisation_id String
62
- round_id String
63
- assignment_id String
64
- application_id String?
65
- candidate_id String
66
- job_description_id String
67
- evaluation_plan_id String
68
-
69
- job_code String?
70
- job_number Int?
71
- role_title String?
72
- hiring_manager_id String?
73
- department String?
74
- location String?
75
-
76
- round_name String?
77
- evaluation_category EvaluationCategory?
78
- round_type RoundType?
79
- round_format EvaluationRoundFormat?
80
- plan_order_no Int?
81
- plan_type EvaluationPlanType?
82
- is_custom Boolean @default(false)
83
-
84
- reviewer_id String?
85
- reviewer_employee_id String?
86
- reviewer_name String?
87
-
88
- candidate_name String?
89
-
90
- evaluation_type EvaluationType?
91
-
92
- scheduled_start_at DateTime?
93
- scheduled_end_at DateTime?
94
- completed_at DateTime?
95
- evaluated_at DateTime?
96
- cancelled_at DateTime?
97
-
98
- status AssignmentStatus?
99
- overall_score Int?
100
- cancel_reason String?
101
- round_result RoundResult?
102
-
103
- @@unique([snapshot_date, assignment_id])
104
- @@index([snapshot_date], map: "arad_snapshot_date_idx")
105
- @@index([snapshot_date, organisation_id], map: "arad_snapshot_org_idx")
106
- @@index([snapshot_date, job_description_id], map: "arad_snapshot_job_idx")
107
- @@map("assignment_round_analytics_daily")
108
- @@schema("analytics")
109
- }
@@ -1,140 +0,0 @@
1
- enum InterviewRecommendation {
2
- ACCEPTED
3
- REJECTED
4
- UNSURE
5
-
6
- @@schema("analytics")
7
- }
8
-
9
- model InterviewRoundAnalytics {
10
- id String @id @default(uuid())
11
-
12
- organisation_id String
13
- round_id String @unique
14
- interview_id String @unique
15
- application_id String?
16
- candidate_id String
17
- job_description_id String
18
- evaluation_plan_id String
19
-
20
- job_code String?
21
- job_number Int?
22
- role_title String?
23
- hiring_manager_id String?
24
- department String?
25
- location String?
26
-
27
- round_name String?
28
- evaluation_category EvaluationCategory?
29
- round_type RoundType?
30
- round_format EvaluationRoundFormat?
31
- plan_order_no Int?
32
- plan_type EvaluationPlanType?
33
- is_custom Boolean @default(false)
34
-
35
- interviewer_id String?
36
- interviewer_employee_id String?
37
- interviewer_name String?
38
-
39
- candidate_name String?
40
- candidate_email String?
41
-
42
- evaluation_type EvaluationType?
43
- ai_assistance_mode AiAssistanceMode?
44
- interview_platform InterviewPlatform?
45
- interview_status InterviewStatus?
46
-
47
- scheduled_start_at DateTime?
48
- scheduled_end_at DateTime?
49
- actual_start_at DateTime?
50
- actual_end_at DateTime?
51
- evaluated_at DateTime?
52
- first_assigned_at DateTime?
53
- duration_minutes Int?
54
-
55
- human_rating String?
56
- ai_rating String?
57
- recommendation InterviewRecommendation?
58
- ai_disagrees_with_ai Boolean?
59
-
60
- difficulty_score Float?
61
- supportiveness_score Float?
62
- topics_coverage_percent Float?
63
-
64
- updated_at DateTime @updatedAt
65
-
66
- @@index([organisation_id, evaluated_at])
67
- @@index([organisation_id, interviewer_id, evaluated_at])
68
- @@index([job_description_id])
69
- @@index([application_id])
70
- @@index([organisation_id, hiring_manager_id])
71
- @@map("interview_round_analytics")
72
- @@schema("analytics")
73
- }
74
-
75
- model InterviewRoundAnalyticsDaily {
76
- id String @id @default(uuid())
77
-
78
- snapshot_date DateTime @db.Date
79
-
80
- organisation_id String
81
- round_id String
82
- interview_id String
83
- application_id String?
84
- candidate_id String
85
- job_description_id String
86
- evaluation_plan_id String
87
-
88
- job_code String?
89
- job_number Int?
90
- role_title String?
91
- hiring_manager_id String?
92
- department String?
93
- location String?
94
-
95
- round_name String?
96
- evaluation_category EvaluationCategory?
97
- round_type RoundType?
98
- round_format EvaluationRoundFormat?
99
- plan_order_no Int?
100
- plan_type EvaluationPlanType?
101
- is_custom Boolean @default(false)
102
-
103
- interviewer_id String?
104
- interviewer_employee_id String?
105
- interviewer_name String?
106
-
107
- candidate_name String?
108
- candidate_email String?
109
-
110
- evaluation_type EvaluationType?
111
- ai_assistance_mode AiAssistanceMode?
112
- interview_platform InterviewPlatform?
113
- interview_status InterviewStatus?
114
-
115
- scheduled_start_at DateTime?
116
- scheduled_end_at DateTime?
117
- actual_start_at DateTime?
118
- actual_end_at DateTime?
119
- evaluated_at DateTime?
120
- first_assigned_at DateTime?
121
- duration_minutes Int?
122
-
123
- human_rating String?
124
- ai_rating String?
125
- recommendation InterviewRecommendation?
126
- ai_disagrees_with_ai Boolean?
127
-
128
- difficulty_score Float?
129
- supportiveness_score Float?
130
- topics_coverage_percent Float?
131
-
132
- @@unique([snapshot_date, interview_id])
133
- @@index([snapshot_date], map: "irad_snapshot_date_idx")
134
- @@index([snapshot_date, organisation_id], map: "irad_snapshot_org_idx")
135
- @@index([snapshot_date, organisation_id, interviewer_id], map: "irad_snapshot_org_interviewer_idx")
136
- @@index([snapshot_date, job_description_id], map: "irad_snapshot_job_idx")
137
- @@index([snapshot_date, organisation_id, evaluated_at], map: "irad_snapshot_org_evaluated_idx")
138
- @@map("interview_round_analytics_daily")
139
- @@schema("analytics")
140
- }