@adaptware/eagles-db 0.1.33 → 0.1.34

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-675e05db2d45a16056f5676b95f4480a6d1fab30c54000924e33d3d039b9b501",
2
+ "name": "prisma-client-c80224cf26d7fd974417ec266d74d78084d8eb98a28ac517e2d16a1e7eea47e8",
3
3
  "main": "index.js",
4
4
  "types": "index.d.ts",
5
5
  "browser": "index-browser.js",
@@ -356,13 +356,6 @@ enum RoundType {
356
356
  SCREENING
357
357
  }
358
358
 
359
- // Old
360
- enum WeightageLevel {
361
- LOW
362
- MEDIUM
363
- HIGH
364
- }
365
-
366
359
  enum EvaluationRoundFormat {
367
360
  // ────────────────
368
361
  // Screening formats
@@ -393,16 +386,18 @@ enum EvaluationRoundFormat {
393
386
  }
394
387
 
395
388
  enum EvaluationType {
396
- // Old
397
- HUMAN_AI // Combination of human and AI evaluation
398
- AI // Fully automated AI evaluation
399
- HUMAN // Fully human-driven evaluation
400
389
  // New (In active use now)
401
390
  TREADSPACE_AI_ASSISTED
402
391
  EXTERNAL_AI_ASSISTED
403
392
  NON_AI_ASSISTED
404
393
  }
405
394
 
395
+ enum EvaluationPlanType {
396
+ CUSTOM
397
+ GENERIC
398
+ DELETED
399
+ }
400
+
406
401
  model EvaluationPlan {
407
402
  id String @id @default(uuid())
408
403
  job_description_id String
@@ -411,16 +406,15 @@ model EvaluationPlan {
411
406
  title String
412
407
  description String?
413
408
  format EvaluationRoundFormat?
414
- weightage WeightageLevel?
415
409
  topics String[]
416
410
  assignee String?
417
411
  elimination_round Boolean @default(false)
418
412
  evaluation_type EvaluationType
419
413
  type_of_round RoundType
420
414
  timeline Int
421
- order_no Int
415
+ order_no Int?
422
416
  details Json?
423
- lock_weight Boolean?
417
+ plan_type EvaluationPlanType @default(GENERIC)
424
418
  created_by String
425
419
  updated_by String
426
420
  created_at DateTime @default(now())
@@ -432,7 +426,7 @@ model EvaluationPlan {
432
426
  panelists Panelist[]
433
427
  interviews Interview[]
434
428
  applications Application[]
435
- // 👇 New optional one-to-one relation with AssessmentLibrary
429
+ // New optional one-to-one relation with AssessmentLibrary
436
430
  assessment AssessmentLibrary? @relation(fields: [assessment_id], references: [id], onDelete: SetNull)
437
431
  assignment_library AssignmentLibrary? @relation(fields: [assignment_library_id], references: [id], onDelete: SetNull)
438
432
  ongoing_evaluations OngoingEvaluation[]
@@ -489,13 +483,15 @@ model FitCheck {
489
483
  fit Json[]
490
484
  fit_check_status FitCheckStatus?
491
485
  // Fields to be used now
492
-
493
- overall_score Float
494
- short_match_analysis Json[]
495
- candidate_analysis Json[]
496
- technical_analysis Json[]
497
- competency_analysis Json[]
498
- recommendation Json?
486
+ skills_analysis Json?
487
+ experience_analysis Json?
488
+ overall_score Float
489
+ // New Fields needs to be changed now
490
+ short_match_analysis Json[]
491
+ candidate_analysis Json[]
492
+ technical_analysis Json[]
493
+ competency_analysis Json[]
494
+ recommendation Json?
499
495
 
500
496
  /// Audit fields
501
497
  created_by String
@@ -679,22 +675,25 @@ enum JobDescriptionStatus {
679
675
 
680
676
  model JobDescription {
681
677
  id String @id @default(uuid())
678
+ organisation_id String
682
679
  hiring_manager_id String?
683
680
  status JobDescriptionStatus @default(DRAFT)
684
- organisation_id String
685
681
  screeningQuestions String[]
686
682
  recommendedQuestions Json[]
683
+ uploaded_job_description_path String?
684
+ is_plan_locked Boolean? @default(false)
685
+ is_plan_published Boolean @default(false)
686
+ is_posted Boolean @default(false)
687
+ ai_insight Json?
688
+ fit_comparison Json?
689
+ // Audit fields
687
690
  created_at DateTime @default(now())
688
691
  updated_at DateTime @updatedAt
689
692
  created_by String
690
693
  updated_by String
691
- uploaded_job_description_path String?
692
694
  is_active Boolean @default(true)
693
- is_plan_locked Boolean @default(false)
694
- is_posted Boolean @default(false)
695
695
  openings Int @default(1)
696
696
  organisation Organisation @relation(fields: [organisation_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
697
- ai_insight Json?
698
697
  applications Application[]
699
698
  interviews Interview[]
700
699
  fit_check FitCheck[] // one-to-many link
@@ -800,6 +799,18 @@ model OngoingEvaluation {
800
799
  updated_by String
801
800
  is_active Boolean @default(true)
802
801
  is_current Boolean @default(false)
802
+ // Evaluation Plan Details Will be stored only when candidate starts for the evaluation round
803
+ title String?
804
+ description String?
805
+ order_no Int?
806
+ format EvaluationRoundFormat?
807
+ topics String[]
808
+ assignee String?
809
+ elimination_round Boolean? @default(false)
810
+ evaluation_type EvaluationType?
811
+ type_of_round RoundType?
812
+ timeline Int?
813
+ details Json?
803
814
 
804
815
  @@unique([application_id, evaluation_plan_id])
805
816
  @@index([application_id])
@@ -926,6 +937,46 @@ model Permission {
926
937
  @@index([created_at])
927
938
  }
928
939
 
940
+ enum AsyncOperationStatus {
941
+ PENDING
942
+ IN_PROGRESS
943
+ SUCCESS
944
+ FAILED
945
+ RETRYING
946
+ CANCELLED
947
+ }
948
+
949
+ model AsyncOperation {
950
+ id String @id @default(uuid())
951
+ // Identification
952
+ operation_name String
953
+ // Status tracking
954
+ status AsyncOperationStatus @default(PENDING)
955
+ started_at DateTime?
956
+ completed_at DateTime?
957
+ // Execution metadata
958
+ payload Json?
959
+ metadata Json?
960
+ // Tracing
961
+ correlationId String?
962
+ sourceService String?
963
+ // Retry information
964
+ retry_count Int @default(0)
965
+ max_retries Int @default(0)
966
+ next_retry_at DateTime?
967
+ // Error information
968
+ error_message String?
969
+ error_details String?
970
+ // Audit fields
971
+ created_at DateTime @default(now())
972
+ updated_at DateTime @updatedAt
973
+ is_active Boolean @default(true)
974
+
975
+ @@index([status])
976
+ @@index([operation_name])
977
+ @@index([correlationId])
978
+ }
979
+
929
980
  enum Difficulty {
930
981
  EASY // simple/basic questions
931
982
  MEDIUM // moderate difficulty
@@ -1121,20 +1172,22 @@ model User {
1121
1172
  calendly Calendly?
1122
1173
  google Google?
1123
1174
 
1124
- name String?
1125
- phone String?
1126
- description String?
1127
- date_of_birth DateTime?
1128
- designation String?
1129
- location String?
1130
- salary String?
1131
- work_experience Json?
1132
- education Json?
1133
- notice_period String?
1134
- gender String?
1135
- ethnicity String?
1136
- veteran_status String?
1137
- disability_status String?
1175
+ name String?
1176
+ phone String?
1177
+ description String?
1178
+ date_of_birth DateTime?
1179
+ designation String?
1180
+ location String?
1181
+ salary String?
1182
+ work_experience Json?
1183
+ education Json?
1184
+ skills Json?
1185
+ notice_period String?
1186
+ preferred_work_mode String?
1187
+ gender String?
1188
+ ethnicity String?
1189
+ veteran_status String?
1190
+ disability_status String?
1138
1191
 
1139
1192
  @@index([role_id])
1140
1193
  @@index([permission_id])
package/client/wasm.js CHANGED
@@ -332,7 +332,6 @@ exports.Prisma.EvaluationPlanScalarFieldEnum = {
332
332
  title: 'title',
333
333
  description: 'description',
334
334
  format: 'format',
335
- weightage: 'weightage',
336
335
  topics: 'topics',
337
336
  assignee: 'assignee',
338
337
  elimination_round: 'elimination_round',
@@ -341,7 +340,7 @@ exports.Prisma.EvaluationPlanScalarFieldEnum = {
341
340
  timeline: 'timeline',
342
341
  order_no: 'order_no',
343
342
  details: 'details',
344
- lock_weight: 'lock_weight',
343
+ plan_type: 'plan_type',
345
344
  created_by: 'created_by',
346
345
  updated_by: 'updated_by',
347
346
  created_at: 'created_at',
@@ -380,6 +379,8 @@ exports.Prisma.FitCheckScalarFieldEnum = {
380
379
  overall_analysis: 'overall_analysis',
381
380
  fit: 'fit',
382
381
  fit_check_status: 'fit_check_status',
382
+ skills_analysis: 'skills_analysis',
383
+ experience_analysis: 'experience_analysis',
383
384
  overall_score: 'overall_score',
384
385
  short_match_analysis: 'short_match_analysis',
385
386
  candidate_analysis: 'candidate_analysis',
@@ -478,21 +479,23 @@ exports.Prisma.InterviewNotesScalarFieldEnum = {
478
479
 
479
480
  exports.Prisma.JobDescriptionScalarFieldEnum = {
480
481
  id: 'id',
482
+ organisation_id: 'organisation_id',
481
483
  hiring_manager_id: 'hiring_manager_id',
482
484
  status: 'status',
483
- organisation_id: 'organisation_id',
484
485
  screeningQuestions: 'screeningQuestions',
485
486
  recommendedQuestions: 'recommendedQuestions',
487
+ uploaded_job_description_path: 'uploaded_job_description_path',
488
+ is_plan_locked: 'is_plan_locked',
489
+ is_plan_published: 'is_plan_published',
490
+ is_posted: 'is_posted',
491
+ ai_insight: 'ai_insight',
492
+ fit_comparison: 'fit_comparison',
486
493
  created_at: 'created_at',
487
494
  updated_at: 'updated_at',
488
495
  created_by: 'created_by',
489
496
  updated_by: 'updated_by',
490
- uploaded_job_description_path: 'uploaded_job_description_path',
491
497
  is_active: 'is_active',
492
- is_plan_locked: 'is_plan_locked',
493
- is_posted: 'is_posted',
494
- openings: 'openings',
495
- ai_insight: 'ai_insight'
498
+ openings: 'openings'
496
499
  };
497
500
 
498
501
  exports.Prisma.JobDescriptionDataScalarFieldEnum = {
@@ -537,7 +540,18 @@ exports.Prisma.OngoingEvaluationScalarFieldEnum = {
537
540
  created_by: 'created_by',
538
541
  updated_by: 'updated_by',
539
542
  is_active: 'is_active',
540
- is_current: 'is_current'
543
+ is_current: 'is_current',
544
+ title: 'title',
545
+ description: 'description',
546
+ order_no: 'order_no',
547
+ format: 'format',
548
+ topics: 'topics',
549
+ assignee: 'assignee',
550
+ elimination_round: 'elimination_round',
551
+ evaluation_type: 'evaluation_type',
552
+ type_of_round: 'type_of_round',
553
+ timeline: 'timeline',
554
+ details: 'details'
541
555
  };
542
556
 
543
557
  exports.Prisma.OrganisationScalarFieldEnum = {
@@ -602,6 +616,26 @@ exports.Prisma.PermissionScalarFieldEnum = {
602
616
  is_active: 'is_active'
603
617
  };
604
618
 
619
+ exports.Prisma.AsyncOperationScalarFieldEnum = {
620
+ id: 'id',
621
+ operation_name: 'operation_name',
622
+ status: 'status',
623
+ started_at: 'started_at',
624
+ completed_at: 'completed_at',
625
+ payload: 'payload',
626
+ metadata: 'metadata',
627
+ correlationId: 'correlationId',
628
+ sourceService: 'sourceService',
629
+ retry_count: 'retry_count',
630
+ max_retries: 'max_retries',
631
+ next_retry_at: 'next_retry_at',
632
+ error_message: 'error_message',
633
+ error_details: 'error_details',
634
+ created_at: 'created_at',
635
+ updated_at: 'updated_at',
636
+ is_active: 'is_active'
637
+ };
638
+
605
639
  exports.Prisma.QuestionScalarFieldEnum = {
606
640
  id: 'id',
607
641
  assessment_library_id: 'assessment_library_id',
@@ -705,7 +739,9 @@ exports.Prisma.UserScalarFieldEnum = {
705
739
  salary: 'salary',
706
740
  work_experience: 'work_experience',
707
741
  education: 'education',
742
+ skills: 'skills',
708
743
  notice_period: 'notice_period',
744
+ preferred_work_mode: 'preferred_work_mode',
709
745
  gender: 'gender',
710
746
  ethnicity: 'ethnicity',
711
747
  veteran_status: 'veteran_status',
@@ -827,16 +863,7 @@ exports.EvaluationRoundFormat = exports.$Enums.EvaluationRoundFormat = {
827
863
  EXTERNAL_VIDEO_UNASSISTED: 'EXTERNAL_VIDEO_UNASSISTED'
828
864
  };
829
865
 
830
- exports.WeightageLevel = exports.$Enums.WeightageLevel = {
831
- LOW: 'LOW',
832
- MEDIUM: 'MEDIUM',
833
- HIGH: 'HIGH'
834
- };
835
-
836
866
  exports.EvaluationType = exports.$Enums.EvaluationType = {
837
- HUMAN_AI: 'HUMAN_AI',
838
- AI: 'AI',
839
- HUMAN: 'HUMAN',
840
867
  TREADSPACE_AI_ASSISTED: 'TREADSPACE_AI_ASSISTED',
841
868
  EXTERNAL_AI_ASSISTED: 'EXTERNAL_AI_ASSISTED',
842
869
  NON_AI_ASSISTED: 'NON_AI_ASSISTED'
@@ -849,6 +876,12 @@ exports.RoundType = exports.$Enums.RoundType = {
849
876
  SCREENING: 'SCREENING'
850
877
  };
851
878
 
879
+ exports.EvaluationPlanType = exports.$Enums.EvaluationPlanType = {
880
+ CUSTOM: 'CUSTOM',
881
+ GENERIC: 'GENERIC',
882
+ DELETED: 'DELETED'
883
+ };
884
+
852
885
  exports.InterviewFeedback = exports.$Enums.InterviewFeedback = {
853
886
  STRONG_HIRE: 'STRONG_HIRE',
854
887
  HIRE: 'HIRE',
@@ -933,6 +966,15 @@ exports.OverallRecommendation = exports.$Enums.OverallRecommendation = {
933
966
  StrongNoHire: 'StrongNoHire'
934
967
  };
935
968
 
969
+ exports.AsyncOperationStatus = exports.$Enums.AsyncOperationStatus = {
970
+ PENDING: 'PENDING',
971
+ IN_PROGRESS: 'IN_PROGRESS',
972
+ SUCCESS: 'SUCCESS',
973
+ FAILED: 'FAILED',
974
+ RETRYING: 'RETRYING',
975
+ CANCELLED: 'CANCELLED'
976
+ };
977
+
936
978
  exports.QuestionType = exports.$Enums.QuestionType = {
937
979
  MCQ: 'MCQ',
938
980
  TRUE_FALSE: 'TRUE_FALSE',
@@ -981,6 +1023,7 @@ exports.Prisma.ModelName = {
981
1023
  OverallFeedback: 'OverallFeedback',
982
1024
  Panelist: 'Panelist',
983
1025
  Permission: 'Permission',
1026
+ AsyncOperation: 'AsyncOperation',
984
1027
  Question: 'Question',
985
1028
  Resume: 'Resume',
986
1029
  ResumeData: 'ResumeData',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adaptware/eagles-db",
3
- "version": "0.1.33",
3
+ "version": "0.1.34",
4
4
  "description": "A Prisma client package for Treadspace database operations",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -21,6 +21,10 @@ model AsyncOperation {
21
21
  // Tracing
22
22
  correlationId String?
23
23
  sourceService String?
24
+ // Retry information
25
+ retry_count Int @default(0)
26
+ max_retries Int @default(0)
27
+ next_retry_at DateTime?
24
28
  // Error information
25
29
  error_message String?
26
30
  error_details String?