@adaptware/eagles-db 0.4.30 → 0.4.31

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.
package/client/wasm.js CHANGED
@@ -191,6 +191,62 @@ exports.Prisma.ActivityLogScalarFieldEnum = {
191
191
  is_active: 'is_active'
192
192
  };
193
193
 
194
+ exports.Prisma.ApplicationAnalyticsScalarFieldEnum = {
195
+ id: 'id',
196
+ organisation_id: 'organisation_id',
197
+ application_id: 'application_id',
198
+ job_description_id: 'job_description_id',
199
+ candidate_id: 'candidate_id',
200
+ source_id: 'source_id',
201
+ source_name: 'source_name',
202
+ source_category: 'source_category',
203
+ source_colour: 'source_colour',
204
+ job_code: 'job_code',
205
+ job_number: 'job_number',
206
+ role_title: 'role_title',
207
+ hiring_manager_id: 'hiring_manager_id',
208
+ candidate_name: 'candidate_name',
209
+ recruiter_id: 'recruiter_id',
210
+ applied_at: 'applied_at',
211
+ status_updated_at: 'status_updated_at',
212
+ status: 'status',
213
+ fit_check_score: 'fit_check_score',
214
+ is_screened: 'is_screened',
215
+ is_evaluated: 'is_evaluated',
216
+ is_rejected: 'is_rejected',
217
+ is_shortlisted: 'is_shortlisted',
218
+ has_committed_evaluation: 'has_committed_evaluation',
219
+ updated_at: 'updated_at'
220
+ };
221
+
222
+ exports.Prisma.ApplicationAnalyticsDailyScalarFieldEnum = {
223
+ id: 'id',
224
+ snapshot_date: 'snapshot_date',
225
+ organisation_id: 'organisation_id',
226
+ application_id: 'application_id',
227
+ job_description_id: 'job_description_id',
228
+ candidate_id: 'candidate_id',
229
+ source_id: 'source_id',
230
+ source_name: 'source_name',
231
+ source_category: 'source_category',
232
+ source_colour: 'source_colour',
233
+ job_code: 'job_code',
234
+ job_number: 'job_number',
235
+ role_title: 'role_title',
236
+ hiring_manager_id: 'hiring_manager_id',
237
+ candidate_name: 'candidate_name',
238
+ recruiter_id: 'recruiter_id',
239
+ applied_at: 'applied_at',
240
+ status_updated_at: 'status_updated_at',
241
+ status: 'status',
242
+ fit_check_score: 'fit_check_score',
243
+ is_screened: 'is_screened',
244
+ is_evaluated: 'is_evaluated',
245
+ is_rejected: 'is_rejected',
246
+ is_shortlisted: 'is_shortlisted',
247
+ has_committed_evaluation: 'has_committed_evaluation'
248
+ };
249
+
194
250
  exports.Prisma.ApplicationScalarFieldEnum = {
195
251
  id: 'id',
196
252
  candidate_id: 'candidate_id',
@@ -275,6 +331,84 @@ exports.Prisma.AssessmentQuestionScalarFieldEnum = {
275
331
  updated_at: 'updated_at'
276
332
  };
277
333
 
334
+ exports.Prisma.AssessmentRoundAnalyticsScalarFieldEnum = {
335
+ id: 'id',
336
+ organisation_id: 'organisation_id',
337
+ round_id: 'round_id',
338
+ assessment_id: 'assessment_id',
339
+ application_id: 'application_id',
340
+ candidate_id: 'candidate_id',
341
+ job_description_id: 'job_description_id',
342
+ evaluation_plan_id: 'evaluation_plan_id',
343
+ job_code: 'job_code',
344
+ job_number: 'job_number',
345
+ role_title: 'role_title',
346
+ hiring_manager_id: 'hiring_manager_id',
347
+ department: 'department',
348
+ location: 'location',
349
+ round_name: 'round_name',
350
+ evaluation_category: 'evaluation_category',
351
+ round_type: 'round_type',
352
+ round_format: 'round_format',
353
+ plan_order_no: 'plan_order_no',
354
+ plan_type: 'plan_type',
355
+ is_custom: 'is_custom',
356
+ reviewer_id: 'reviewer_id',
357
+ reviewer_employee_id: 'reviewer_employee_id',
358
+ reviewer_name: 'reviewer_name',
359
+ candidate_name: 'candidate_name',
360
+ evaluation_type: 'evaluation_type',
361
+ scheduled_start_at: 'scheduled_start_at',
362
+ scheduled_end_at: 'scheduled_end_at',
363
+ actual_start_at: 'actual_start_at',
364
+ actual_end_at: 'actual_end_at',
365
+ attempt_expires_at: 'attempt_expires_at',
366
+ evaluated_at: 'evaluated_at',
367
+ score: 'score',
368
+ status: 'status',
369
+ round_result: 'round_result',
370
+ updated_at: 'updated_at'
371
+ };
372
+
373
+ exports.Prisma.AssessmentRoundAnalyticsDailyScalarFieldEnum = {
374
+ id: 'id',
375
+ snapshot_date: 'snapshot_date',
376
+ organisation_id: 'organisation_id',
377
+ round_id: 'round_id',
378
+ assessment_id: 'assessment_id',
379
+ application_id: 'application_id',
380
+ candidate_id: 'candidate_id',
381
+ job_description_id: 'job_description_id',
382
+ evaluation_plan_id: 'evaluation_plan_id',
383
+ job_code: 'job_code',
384
+ job_number: 'job_number',
385
+ role_title: 'role_title',
386
+ hiring_manager_id: 'hiring_manager_id',
387
+ department: 'department',
388
+ location: 'location',
389
+ round_name: 'round_name',
390
+ evaluation_category: 'evaluation_category',
391
+ round_type: 'round_type',
392
+ round_format: 'round_format',
393
+ plan_order_no: 'plan_order_no',
394
+ plan_type: 'plan_type',
395
+ is_custom: 'is_custom',
396
+ reviewer_id: 'reviewer_id',
397
+ reviewer_employee_id: 'reviewer_employee_id',
398
+ reviewer_name: 'reviewer_name',
399
+ candidate_name: 'candidate_name',
400
+ evaluation_type: 'evaluation_type',
401
+ scheduled_start_at: 'scheduled_start_at',
402
+ scheduled_end_at: 'scheduled_end_at',
403
+ actual_start_at: 'actual_start_at',
404
+ actual_end_at: 'actual_end_at',
405
+ attempt_expires_at: 'attempt_expires_at',
406
+ evaluated_at: 'evaluated_at',
407
+ score: 'score',
408
+ status: 'status',
409
+ round_result: 'round_result'
410
+ };
411
+
278
412
  exports.Prisma.AssignmentScalarFieldEnum = {
279
413
  id: 'id',
280
414
  candidate_id: 'candidate_id',
@@ -314,6 +448,84 @@ exports.Prisma.AssignmentLibraryScalarFieldEnum = {
314
448
  is_active: 'is_active'
315
449
  };
316
450
 
451
+ exports.Prisma.AssignmentRoundAnalyticsScalarFieldEnum = {
452
+ id: 'id',
453
+ organisation_id: 'organisation_id',
454
+ round_id: 'round_id',
455
+ assignment_id: 'assignment_id',
456
+ application_id: 'application_id',
457
+ candidate_id: 'candidate_id',
458
+ job_description_id: 'job_description_id',
459
+ evaluation_plan_id: 'evaluation_plan_id',
460
+ job_code: 'job_code',
461
+ job_number: 'job_number',
462
+ role_title: 'role_title',
463
+ hiring_manager_id: 'hiring_manager_id',
464
+ department: 'department',
465
+ location: 'location',
466
+ round_name: 'round_name',
467
+ evaluation_category: 'evaluation_category',
468
+ round_type: 'round_type',
469
+ round_format: 'round_format',
470
+ plan_order_no: 'plan_order_no',
471
+ plan_type: 'plan_type',
472
+ is_custom: 'is_custom',
473
+ reviewer_id: 'reviewer_id',
474
+ reviewer_employee_id: 'reviewer_employee_id',
475
+ reviewer_name: 'reviewer_name',
476
+ candidate_name: 'candidate_name',
477
+ evaluation_type: 'evaluation_type',
478
+ scheduled_start_at: 'scheduled_start_at',
479
+ scheduled_end_at: 'scheduled_end_at',
480
+ completed_at: 'completed_at',
481
+ evaluated_at: 'evaluated_at',
482
+ cancelled_at: 'cancelled_at',
483
+ status: 'status',
484
+ overall_score: 'overall_score',
485
+ cancel_reason: 'cancel_reason',
486
+ round_result: 'round_result',
487
+ updated_at: 'updated_at'
488
+ };
489
+
490
+ exports.Prisma.AssignmentRoundAnalyticsDailyScalarFieldEnum = {
491
+ id: 'id',
492
+ snapshot_date: 'snapshot_date',
493
+ organisation_id: 'organisation_id',
494
+ round_id: 'round_id',
495
+ assignment_id: 'assignment_id',
496
+ application_id: 'application_id',
497
+ candidate_id: 'candidate_id',
498
+ job_description_id: 'job_description_id',
499
+ evaluation_plan_id: 'evaluation_plan_id',
500
+ job_code: 'job_code',
501
+ job_number: 'job_number',
502
+ role_title: 'role_title',
503
+ hiring_manager_id: 'hiring_manager_id',
504
+ department: 'department',
505
+ location: 'location',
506
+ round_name: 'round_name',
507
+ evaluation_category: 'evaluation_category',
508
+ round_type: 'round_type',
509
+ round_format: 'round_format',
510
+ plan_order_no: 'plan_order_no',
511
+ plan_type: 'plan_type',
512
+ is_custom: 'is_custom',
513
+ reviewer_id: 'reviewer_id',
514
+ reviewer_employee_id: 'reviewer_employee_id',
515
+ reviewer_name: 'reviewer_name',
516
+ candidate_name: 'candidate_name',
517
+ evaluation_type: 'evaluation_type',
518
+ scheduled_start_at: 'scheduled_start_at',
519
+ scheduled_end_at: 'scheduled_end_at',
520
+ completed_at: 'completed_at',
521
+ evaluated_at: 'evaluated_at',
522
+ cancelled_at: 'cancelled_at',
523
+ status: 'status',
524
+ overall_score: 'overall_score',
525
+ cancel_reason: 'cancel_reason',
526
+ round_result: 'round_result'
527
+ };
528
+
317
529
  exports.Prisma.AuthModuleScalarFieldEnum = {
318
530
  id: 'id',
319
531
  user_id: 'user_id',
@@ -683,6 +895,102 @@ exports.Prisma.InterviewNotesScalarFieldEnum = {
683
895
  is_active: 'is_active'
684
896
  };
685
897
 
898
+ exports.Prisma.InterviewRoundAnalyticsScalarFieldEnum = {
899
+ id: 'id',
900
+ organisation_id: 'organisation_id',
901
+ round_id: 'round_id',
902
+ interview_id: 'interview_id',
903
+ application_id: 'application_id',
904
+ candidate_id: 'candidate_id',
905
+ job_description_id: 'job_description_id',
906
+ evaluation_plan_id: 'evaluation_plan_id',
907
+ job_code: 'job_code',
908
+ job_number: 'job_number',
909
+ role_title: 'role_title',
910
+ hiring_manager_id: 'hiring_manager_id',
911
+ department: 'department',
912
+ location: 'location',
913
+ round_name: 'round_name',
914
+ evaluation_category: 'evaluation_category',
915
+ round_type: 'round_type',
916
+ round_format: 'round_format',
917
+ plan_order_no: 'plan_order_no',
918
+ plan_type: 'plan_type',
919
+ is_custom: 'is_custom',
920
+ interviewer_id: 'interviewer_id',
921
+ interviewer_employee_id: 'interviewer_employee_id',
922
+ interviewer_name: 'interviewer_name',
923
+ candidate_name: 'candidate_name',
924
+ candidate_email: 'candidate_email',
925
+ evaluation_type: 'evaluation_type',
926
+ ai_assistance_mode: 'ai_assistance_mode',
927
+ interview_platform: 'interview_platform',
928
+ interview_status: 'interview_status',
929
+ scheduled_start_at: 'scheduled_start_at',
930
+ scheduled_end_at: 'scheduled_end_at',
931
+ actual_start_at: 'actual_start_at',
932
+ actual_end_at: 'actual_end_at',
933
+ evaluated_at: 'evaluated_at',
934
+ first_assigned_at: 'first_assigned_at',
935
+ duration_minutes: 'duration_minutes',
936
+ human_rating: 'human_rating',
937
+ ai_rating: 'ai_rating',
938
+ recommendation: 'recommendation',
939
+ ai_disagrees_with_ai: 'ai_disagrees_with_ai',
940
+ difficulty_score: 'difficulty_score',
941
+ supportiveness_score: 'supportiveness_score',
942
+ topics_coverage_percent: 'topics_coverage_percent',
943
+ updated_at: 'updated_at'
944
+ };
945
+
946
+ exports.Prisma.InterviewRoundAnalyticsDailyScalarFieldEnum = {
947
+ id: 'id',
948
+ snapshot_date: 'snapshot_date',
949
+ organisation_id: 'organisation_id',
950
+ round_id: 'round_id',
951
+ interview_id: 'interview_id',
952
+ application_id: 'application_id',
953
+ candidate_id: 'candidate_id',
954
+ job_description_id: 'job_description_id',
955
+ evaluation_plan_id: 'evaluation_plan_id',
956
+ job_code: 'job_code',
957
+ job_number: 'job_number',
958
+ role_title: 'role_title',
959
+ hiring_manager_id: 'hiring_manager_id',
960
+ department: 'department',
961
+ location: 'location',
962
+ round_name: 'round_name',
963
+ evaluation_category: 'evaluation_category',
964
+ round_type: 'round_type',
965
+ round_format: 'round_format',
966
+ plan_order_no: 'plan_order_no',
967
+ plan_type: 'plan_type',
968
+ is_custom: 'is_custom',
969
+ interviewer_id: 'interviewer_id',
970
+ interviewer_employee_id: 'interviewer_employee_id',
971
+ interviewer_name: 'interviewer_name',
972
+ candidate_name: 'candidate_name',
973
+ candidate_email: 'candidate_email',
974
+ evaluation_type: 'evaluation_type',
975
+ ai_assistance_mode: 'ai_assistance_mode',
976
+ interview_platform: 'interview_platform',
977
+ interview_status: 'interview_status',
978
+ scheduled_start_at: 'scheduled_start_at',
979
+ scheduled_end_at: 'scheduled_end_at',
980
+ actual_start_at: 'actual_start_at',
981
+ actual_end_at: 'actual_end_at',
982
+ evaluated_at: 'evaluated_at',
983
+ first_assigned_at: 'first_assigned_at',
984
+ duration_minutes: 'duration_minutes',
985
+ human_rating: 'human_rating',
986
+ ai_rating: 'ai_rating',
987
+ recommendation: 'recommendation',
988
+ ai_disagrees_with_ai: 'ai_disagrees_with_ai',
989
+ difficulty_score: 'difficulty_score',
990
+ supportiveness_score: 'supportiveness_score',
991
+ topics_coverage_percent: 'topics_coverage_percent'
992
+ };
993
+
686
994
  exports.Prisma.InterviewerOrganisationAnalyticsScalarFieldEnum = {
687
995
  id: 'id',
688
996
  organisation_id: 'organisation_id',
@@ -1621,10 +1929,14 @@ exports.ActivityActorType = exports.$Enums.ActivityActorType = {
1621
1929
  SYSTEM: 'SYSTEM'
1622
1930
  };
1623
1931
 
1624
- exports.FitCheckStatus = exports.$Enums.FitCheckStatus = {
1625
- RECOMMENDED: 'RECOMMENDED',
1626
- TO_REVIEW: 'TO_REVIEW',
1627
- NOT_RECOMMENDED: 'NOT_RECOMMENDED'
1932
+ exports.SourceCategory = exports.$Enums.SourceCategory = {
1933
+ JOB_BOARD: 'JOB_BOARD',
1934
+ REFERRAL: 'REFERRAL',
1935
+ AGENCY: 'AGENCY',
1936
+ SOCIAL_MEDIA: 'SOCIAL_MEDIA',
1937
+ CAREERS_PAGE: 'CAREERS_PAGE',
1938
+ EVENT: 'EVENT',
1939
+ OTHER: 'OTHER'
1628
1940
  };
1629
1941
 
1630
1942
  exports.ApplicationStatus = exports.$Enums.ApplicationStatus = {
@@ -1635,6 +1947,67 @@ exports.ApplicationStatus = exports.$Enums.ApplicationStatus = {
1635
1947
  REJECTED: 'REJECTED'
1636
1948
  };
1637
1949
 
1950
+ exports.FitCheckStatus = exports.$Enums.FitCheckStatus = {
1951
+ RECOMMENDED: 'RECOMMENDED',
1952
+ TO_REVIEW: 'TO_REVIEW',
1953
+ NOT_RECOMMENDED: 'NOT_RECOMMENDED'
1954
+ };
1955
+
1956
+ exports.EvaluationCategory = exports.$Enums.EvaluationCategory = {
1957
+ EXPERIENCE_SCREENING: 'EXPERIENCE_SCREENING',
1958
+ TECHNICAL_SCREENING: 'TECHNICAL_SCREENING',
1959
+ TECHNICAL_INTERVIEW: 'TECHNICAL_INTERVIEW',
1960
+ BUSINESS_ROUND: 'BUSINESS_ROUND',
1961
+ BEHAVIORAL_ROUND: 'BEHAVIORAL_ROUND'
1962
+ };
1963
+
1964
+ exports.RoundType = exports.$Enums.RoundType = {
1965
+ ASSESSMENT: 'ASSESSMENT',
1966
+ INTERVIEW: 'INTERVIEW',
1967
+ ASSIGNMENT: 'ASSIGNMENT',
1968
+ SCREENING: 'SCREENING'
1969
+ };
1970
+
1971
+ exports.EvaluationRoundFormat = exports.$Enums.EvaluationRoundFormat = {
1972
+ PHONE_CALL: 'PHONE_CALL',
1973
+ VIDEO_CALL_AI_ASSISTED: 'VIDEO_CALL_AI_ASSISTED',
1974
+ VIDEO_CALL_UNASSISTED: 'VIDEO_CALL_UNASSISTED',
1975
+ AI_GENERATED_TEST: 'AI_GENERATED_TEST',
1976
+ UPLOADED_TEST: 'UPLOADED_TEST',
1977
+ EXTERNAL_PLATFORM: 'EXTERNAL_PLATFORM',
1978
+ AI_GENERATED_ASSIGNMENT: 'AI_GENERATED_ASSIGNMENT',
1979
+ UPLOADED_ASSIGNMENT: 'UPLOADED_ASSIGNMENT',
1980
+ TREADSPACE_AI_ASSISTED: 'TREADSPACE_AI_ASSISTED',
1981
+ EXTERNAL_VIDEO_AI_ASSISTED: 'EXTERNAL_VIDEO_AI_ASSISTED',
1982
+ EXTERNAL_VIDEO_UNASSISTED: 'EXTERNAL_VIDEO_UNASSISTED'
1983
+ };
1984
+
1985
+ exports.EvaluationPlanType = exports.$Enums.EvaluationPlanType = {
1986
+ CUSTOM: 'CUSTOM',
1987
+ GENERIC: 'GENERIC',
1988
+ DELETED: 'DELETED'
1989
+ };
1990
+
1991
+ exports.EvaluationType = exports.$Enums.EvaluationType = {
1992
+ TREADSPACE_AI_ASSISTED: 'TREADSPACE_AI_ASSISTED',
1993
+ TREADSPACE_FULL_AI: 'TREADSPACE_FULL_AI',
1994
+ EXTERNAL_AI_ASSISTED: 'EXTERNAL_AI_ASSISTED',
1995
+ NON_AI_ASSISTED: 'NON_AI_ASSISTED'
1996
+ };
1997
+
1998
+ exports.AssessmentRoundStatus = exports.$Enums.AssessmentRoundStatus = {
1999
+ SCHEDULED: 'SCHEDULED',
2000
+ IN_PROGRESS: 'IN_PROGRESS',
2001
+ COMPLETED: 'COMPLETED',
2002
+ EVALUATED: 'EVALUATED',
2003
+ CANCELLED: 'CANCELLED'
2004
+ };
2005
+
2006
+ exports.RoundResult = exports.$Enums.RoundResult = {
2007
+ PASSED: 'PASSED',
2008
+ FAILED: 'FAILED'
2009
+ };
2010
+
1638
2011
  exports.AssignmentStatus = exports.$Enums.AssignmentStatus = {
1639
2012
  AVAILABLE: 'AVAILABLE',
1640
2013
  SCHEDULED: 'SCHEDULED',
@@ -1696,40 +2069,6 @@ exports.CommMessageStatus = exports.$Enums.CommMessageStatus = {
1696
2069
  RECEIVED: 'RECEIVED'
1697
2070
  };
1698
2071
 
1699
- exports.EvaluationRoundFormat = exports.$Enums.EvaluationRoundFormat = {
1700
- PHONE_CALL: 'PHONE_CALL',
1701
- VIDEO_CALL_AI_ASSISTED: 'VIDEO_CALL_AI_ASSISTED',
1702
- VIDEO_CALL_UNASSISTED: 'VIDEO_CALL_UNASSISTED',
1703
- AI_GENERATED_TEST: 'AI_GENERATED_TEST',
1704
- UPLOADED_TEST: 'UPLOADED_TEST',
1705
- EXTERNAL_PLATFORM: 'EXTERNAL_PLATFORM',
1706
- AI_GENERATED_ASSIGNMENT: 'AI_GENERATED_ASSIGNMENT',
1707
- UPLOADED_ASSIGNMENT: 'UPLOADED_ASSIGNMENT',
1708
- TREADSPACE_AI_ASSISTED: 'TREADSPACE_AI_ASSISTED',
1709
- EXTERNAL_VIDEO_AI_ASSISTED: 'EXTERNAL_VIDEO_AI_ASSISTED',
1710
- EXTERNAL_VIDEO_UNASSISTED: 'EXTERNAL_VIDEO_UNASSISTED'
1711
- };
1712
-
1713
- exports.EvaluationType = exports.$Enums.EvaluationType = {
1714
- TREADSPACE_AI_ASSISTED: 'TREADSPACE_AI_ASSISTED',
1715
- TREADSPACE_FULL_AI: 'TREADSPACE_FULL_AI',
1716
- EXTERNAL_AI_ASSISTED: 'EXTERNAL_AI_ASSISTED',
1717
- NON_AI_ASSISTED: 'NON_AI_ASSISTED'
1718
- };
1719
-
1720
- exports.RoundType = exports.$Enums.RoundType = {
1721
- ASSESSMENT: 'ASSESSMENT',
1722
- INTERVIEW: 'INTERVIEW',
1723
- ASSIGNMENT: 'ASSIGNMENT',
1724
- SCREENING: 'SCREENING'
1725
- };
1726
-
1727
- exports.EvaluationPlanType = exports.$Enums.EvaluationPlanType = {
1728
- CUSTOM: 'CUSTOM',
1729
- GENERIC: 'GENERIC',
1730
- DELETED: 'DELETED'
1731
- };
1732
-
1733
2072
  exports.EvaluationPlanShareScope = exports.$Enums.EvaluationPlanShareScope = {
1734
2073
  PRIVATE: 'PRIVATE',
1735
2074
  CREATOR: 'CREATOR',
@@ -1742,14 +2081,6 @@ exports.DurationUnit = exports.$Enums.DurationUnit = {
1742
2081
  DAYS: 'DAYS'
1743
2082
  };
1744
2083
 
1745
- exports.EvaluationCategory = exports.$Enums.EvaluationCategory = {
1746
- EXPERIENCE_SCREENING: 'EXPERIENCE_SCREENING',
1747
- TECHNICAL_SCREENING: 'TECHNICAL_SCREENING',
1748
- TECHNICAL_INTERVIEW: 'TECHNICAL_INTERVIEW',
1749
- BUSINESS_ROUND: 'BUSINESS_ROUND',
1750
- BEHAVIORAL_ROUND: 'BEHAVIORAL_ROUND'
1751
- };
1752
-
1753
2084
  exports.IntegrationProvider = exports.$Enums.IntegrationProvider = {
1754
2085
  NAUKRI: 'NAUKRI',
1755
2086
  ZOHO_RECRUIT: 'ZOHO_RECRUIT',
@@ -1812,6 +2143,12 @@ exports.InterviewFeedback = exports.$Enums.InterviewFeedback = {
1812
2143
  STRONG_NO_HIRE: 'STRONG_NO_HIRE'
1813
2144
  };
1814
2145
 
2146
+ exports.InterviewRecommendation = exports.$Enums.InterviewRecommendation = {
2147
+ ACCEPTED: 'ACCEPTED',
2148
+ REJECTED: 'REJECTED',
2149
+ UNSURE: 'UNSURE'
2150
+ };
2151
+
1815
2152
  exports.JobApplicationFieldType = exports.$Enums.JobApplicationFieldType = {
1816
2153
  TEXT: 'TEXT',
1817
2154
  NUMBER: 'NUMBER',
@@ -1887,21 +2224,6 @@ exports.Difficulty = exports.$Enums.Difficulty = {
1887
2224
  HARD: 'HARD'
1888
2225
  };
1889
2226
 
1890
- exports.RoundResult = exports.$Enums.RoundResult = {
1891
- PASSED: 'PASSED',
1892
- FAILED: 'FAILED'
1893
- };
1894
-
1895
- exports.SourceCategory = exports.$Enums.SourceCategory = {
1896
- JOB_BOARD: 'JOB_BOARD',
1897
- REFERRAL: 'REFERRAL',
1898
- AGENCY: 'AGENCY',
1899
- SOCIAL_MEDIA: 'SOCIAL_MEDIA',
1900
- CAREERS_PAGE: 'CAREERS_PAGE',
1901
- EVENT: 'EVENT',
1902
- OTHER: 'OTHER'
1903
- };
1904
-
1905
2227
  exports.UserInvitationStatus = exports.$Enums.UserInvitationStatus = {
1906
2228
  INVITED: 'INVITED',
1907
2229
  ACCEPTED: 'ACCEPTED',
@@ -1924,13 +2246,19 @@ exports.Prisma.ModelName = {
1924
2246
  Action: 'Action',
1925
2247
  ActivityEvent: 'ActivityEvent',
1926
2248
  ActivityLog: 'ActivityLog',
2249
+ ApplicationAnalytics: 'ApplicationAnalytics',
2250
+ ApplicationAnalyticsDaily: 'ApplicationAnalyticsDaily',
1927
2251
  Application: 'Application',
1928
2252
  Approval: 'Approval',
1929
2253
  Assessment: 'Assessment',
1930
2254
  AssessmentLibrary: 'AssessmentLibrary',
1931
2255
  AssessmentQuestion: 'AssessmentQuestion',
2256
+ AssessmentRoundAnalytics: 'AssessmentRoundAnalytics',
2257
+ AssessmentRoundAnalyticsDaily: 'AssessmentRoundAnalyticsDaily',
1932
2258
  Assignment: 'Assignment',
1933
2259
  AssignmentLibrary: 'AssignmentLibrary',
2260
+ AssignmentRoundAnalytics: 'AssignmentRoundAnalytics',
2261
+ AssignmentRoundAnalyticsDaily: 'AssignmentRoundAnalyticsDaily',
1934
2262
  AuthModule: 'AuthModule',
1935
2263
  Budget: 'Budget',
1936
2264
  Calendly: 'Calendly',
@@ -1949,6 +2277,8 @@ exports.Prisma.ModelName = {
1949
2277
  ZohoSyncMapping: 'ZohoSyncMapping',
1950
2278
  Interview: 'Interview',
1951
2279
  InterviewNotes: 'InterviewNotes',
2280
+ InterviewRoundAnalytics: 'InterviewRoundAnalytics',
2281
+ InterviewRoundAnalyticsDaily: 'InterviewRoundAnalyticsDaily',
1952
2282
  InterviewerOrganisationAnalytics: 'InterviewerOrganisationAnalytics',
1953
2283
  InterviewerJobAnalytics: 'InterviewerJobAnalytics',
1954
2284
  InterviewerOrganisationAnalyticsDaily: 'InterviewerOrganisationAnalyticsDaily',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adaptware/eagles-db",
3
- "version": "0.4.30",
3
+ "version": "0.4.31",
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,87 @@
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
+ }