@adaptware/eagles-db 0.1.32 → 0.1.33
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/edge.js +23 -33
- package/client/index-browser.js +18 -28
- package/client/index.d.ts +747 -1915
- package/client/index.js +23 -33
- package/client/package.json +1 -1
- package/client/schema.prisma +34 -44
- package/client/wasm.js +18 -28
- package/package.json +1 -1
- package/prisma/.DS_Store +0 -0
- package/prisma/schema/fitCheck.prisma +9 -7
- package/prisma/schema/jobDescription.prisma +1 -0
- package/prisma/schema/promise.prisma +35 -0
package/client/package.json
CHANGED
package/client/schema.prisma
CHANGED
|
@@ -356,6 +356,13 @@ enum RoundType {
|
|
|
356
356
|
SCREENING
|
|
357
357
|
}
|
|
358
358
|
|
|
359
|
+
// Old
|
|
360
|
+
enum WeightageLevel {
|
|
361
|
+
LOW
|
|
362
|
+
MEDIUM
|
|
363
|
+
HIGH
|
|
364
|
+
}
|
|
365
|
+
|
|
359
366
|
enum EvaluationRoundFormat {
|
|
360
367
|
// ────────────────
|
|
361
368
|
// Screening formats
|
|
@@ -386,18 +393,16 @@ enum EvaluationRoundFormat {
|
|
|
386
393
|
}
|
|
387
394
|
|
|
388
395
|
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
|
|
389
400
|
// New (In active use now)
|
|
390
401
|
TREADSPACE_AI_ASSISTED
|
|
391
402
|
EXTERNAL_AI_ASSISTED
|
|
392
403
|
NON_AI_ASSISTED
|
|
393
404
|
}
|
|
394
405
|
|
|
395
|
-
enum EvaluationPlanType {
|
|
396
|
-
CUSTOM
|
|
397
|
-
GENERIC
|
|
398
|
-
DELETED
|
|
399
|
-
}
|
|
400
|
-
|
|
401
406
|
model EvaluationPlan {
|
|
402
407
|
id String @id @default(uuid())
|
|
403
408
|
job_description_id String
|
|
@@ -406,15 +411,16 @@ model EvaluationPlan {
|
|
|
406
411
|
title String
|
|
407
412
|
description String?
|
|
408
413
|
format EvaluationRoundFormat?
|
|
414
|
+
weightage WeightageLevel?
|
|
409
415
|
topics String[]
|
|
410
416
|
assignee String?
|
|
411
417
|
elimination_round Boolean @default(false)
|
|
412
418
|
evaluation_type EvaluationType
|
|
413
419
|
type_of_round RoundType
|
|
414
420
|
timeline Int
|
|
415
|
-
order_no Int
|
|
421
|
+
order_no Int
|
|
416
422
|
details Json?
|
|
417
|
-
|
|
423
|
+
lock_weight Boolean?
|
|
418
424
|
created_by String
|
|
419
425
|
updated_by String
|
|
420
426
|
created_at DateTime @default(now())
|
|
@@ -426,7 +432,7 @@ model EvaluationPlan {
|
|
|
426
432
|
panelists Panelist[]
|
|
427
433
|
interviews Interview[]
|
|
428
434
|
applications Application[]
|
|
429
|
-
// New optional one-to-one relation with AssessmentLibrary
|
|
435
|
+
// 👇 New optional one-to-one relation with AssessmentLibrary
|
|
430
436
|
assessment AssessmentLibrary? @relation(fields: [assessment_id], references: [id], onDelete: SetNull)
|
|
431
437
|
assignment_library AssignmentLibrary? @relation(fields: [assignment_library_id], references: [id], onDelete: SetNull)
|
|
432
438
|
ongoing_evaluations OngoingEvaluation[]
|
|
@@ -673,24 +679,22 @@ enum JobDescriptionStatus {
|
|
|
673
679
|
|
|
674
680
|
model JobDescription {
|
|
675
681
|
id String @id @default(uuid())
|
|
676
|
-
organisation_id String
|
|
677
682
|
hiring_manager_id String?
|
|
678
683
|
status JobDescriptionStatus @default(DRAFT)
|
|
684
|
+
organisation_id String
|
|
679
685
|
screeningQuestions String[]
|
|
680
686
|
recommendedQuestions Json[]
|
|
681
|
-
uploaded_job_description_path String?
|
|
682
|
-
is_plan_locked Boolean? @default(false)
|
|
683
|
-
is_plan_published Boolean @default(false)
|
|
684
|
-
is_posted Boolean @default(false)
|
|
685
|
-
ai_insight Json?
|
|
686
|
-
// Audit fields
|
|
687
687
|
created_at DateTime @default(now())
|
|
688
688
|
updated_at DateTime @updatedAt
|
|
689
689
|
created_by String
|
|
690
690
|
updated_by String
|
|
691
|
+
uploaded_job_description_path String?
|
|
691
692
|
is_active Boolean @default(true)
|
|
693
|
+
is_plan_locked Boolean @default(false)
|
|
694
|
+
is_posted Boolean @default(false)
|
|
692
695
|
openings Int @default(1)
|
|
693
696
|
organisation Organisation @relation(fields: [organisation_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
|
|
697
|
+
ai_insight Json?
|
|
694
698
|
applications Application[]
|
|
695
699
|
interviews Interview[]
|
|
696
700
|
fit_check FitCheck[] // one-to-many link
|
|
@@ -796,18 +800,6 @@ model OngoingEvaluation {
|
|
|
796
800
|
updated_by String
|
|
797
801
|
is_active Boolean @default(true)
|
|
798
802
|
is_current Boolean @default(false)
|
|
799
|
-
// Evaluation Plan Details Will be stored only when candidate starts for the evaluation round
|
|
800
|
-
title String?
|
|
801
|
-
description String?
|
|
802
|
-
order_no Int?
|
|
803
|
-
format EvaluationRoundFormat?
|
|
804
|
-
topics String[]
|
|
805
|
-
assignee String?
|
|
806
|
-
elimination_round Boolean? @default(false)
|
|
807
|
-
evaluation_type EvaluationType?
|
|
808
|
-
type_of_round RoundType?
|
|
809
|
-
timeline Int?
|
|
810
|
-
details Json?
|
|
811
803
|
|
|
812
804
|
@@unique([application_id, evaluation_plan_id])
|
|
813
805
|
@@index([application_id])
|
|
@@ -1129,22 +1121,20 @@ model User {
|
|
|
1129
1121
|
calendly Calendly?
|
|
1130
1122
|
google Google?
|
|
1131
1123
|
|
|
1132
|
-
name
|
|
1133
|
-
phone
|
|
1134
|
-
description
|
|
1135
|
-
date_of_birth
|
|
1136
|
-
designation
|
|
1137
|
-
location
|
|
1138
|
-
salary
|
|
1139
|
-
work_experience
|
|
1140
|
-
education
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
veteran_status String?
|
|
1147
|
-
disability_status String?
|
|
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?
|
|
1148
1138
|
|
|
1149
1139
|
@@index([role_id])
|
|
1150
1140
|
@@index([permission_id])
|
package/client/wasm.js
CHANGED
|
@@ -332,6 +332,7 @@ exports.Prisma.EvaluationPlanScalarFieldEnum = {
|
|
|
332
332
|
title: 'title',
|
|
333
333
|
description: 'description',
|
|
334
334
|
format: 'format',
|
|
335
|
+
weightage: 'weightage',
|
|
335
336
|
topics: 'topics',
|
|
336
337
|
assignee: 'assignee',
|
|
337
338
|
elimination_round: 'elimination_round',
|
|
@@ -340,7 +341,7 @@ exports.Prisma.EvaluationPlanScalarFieldEnum = {
|
|
|
340
341
|
timeline: 'timeline',
|
|
341
342
|
order_no: 'order_no',
|
|
342
343
|
details: 'details',
|
|
343
|
-
|
|
344
|
+
lock_weight: 'lock_weight',
|
|
344
345
|
created_by: 'created_by',
|
|
345
346
|
updated_by: 'updated_by',
|
|
346
347
|
created_at: 'created_at',
|
|
@@ -477,22 +478,21 @@ exports.Prisma.InterviewNotesScalarFieldEnum = {
|
|
|
477
478
|
|
|
478
479
|
exports.Prisma.JobDescriptionScalarFieldEnum = {
|
|
479
480
|
id: 'id',
|
|
480
|
-
organisation_id: 'organisation_id',
|
|
481
481
|
hiring_manager_id: 'hiring_manager_id',
|
|
482
482
|
status: 'status',
|
|
483
|
+
organisation_id: 'organisation_id',
|
|
483
484
|
screeningQuestions: 'screeningQuestions',
|
|
484
485
|
recommendedQuestions: 'recommendedQuestions',
|
|
485
|
-
uploaded_job_description_path: 'uploaded_job_description_path',
|
|
486
|
-
is_plan_locked: 'is_plan_locked',
|
|
487
|
-
is_plan_published: 'is_plan_published',
|
|
488
|
-
is_posted: 'is_posted',
|
|
489
|
-
ai_insight: 'ai_insight',
|
|
490
486
|
created_at: 'created_at',
|
|
491
487
|
updated_at: 'updated_at',
|
|
492
488
|
created_by: 'created_by',
|
|
493
489
|
updated_by: 'updated_by',
|
|
490
|
+
uploaded_job_description_path: 'uploaded_job_description_path',
|
|
494
491
|
is_active: 'is_active',
|
|
495
|
-
|
|
492
|
+
is_plan_locked: 'is_plan_locked',
|
|
493
|
+
is_posted: 'is_posted',
|
|
494
|
+
openings: 'openings',
|
|
495
|
+
ai_insight: 'ai_insight'
|
|
496
496
|
};
|
|
497
497
|
|
|
498
498
|
exports.Prisma.JobDescriptionDataScalarFieldEnum = {
|
|
@@ -537,18 +537,7 @@ exports.Prisma.OngoingEvaluationScalarFieldEnum = {
|
|
|
537
537
|
created_by: 'created_by',
|
|
538
538
|
updated_by: 'updated_by',
|
|
539
539
|
is_active: 'is_active',
|
|
540
|
-
is_current: 'is_current'
|
|
541
|
-
title: 'title',
|
|
542
|
-
description: 'description',
|
|
543
|
-
order_no: 'order_no',
|
|
544
|
-
format: 'format',
|
|
545
|
-
topics: 'topics',
|
|
546
|
-
assignee: 'assignee',
|
|
547
|
-
elimination_round: 'elimination_round',
|
|
548
|
-
evaluation_type: 'evaluation_type',
|
|
549
|
-
type_of_round: 'type_of_round',
|
|
550
|
-
timeline: 'timeline',
|
|
551
|
-
details: 'details'
|
|
540
|
+
is_current: 'is_current'
|
|
552
541
|
};
|
|
553
542
|
|
|
554
543
|
exports.Prisma.OrganisationScalarFieldEnum = {
|
|
@@ -716,9 +705,7 @@ exports.Prisma.UserScalarFieldEnum = {
|
|
|
716
705
|
salary: 'salary',
|
|
717
706
|
work_experience: 'work_experience',
|
|
718
707
|
education: 'education',
|
|
719
|
-
skills: 'skills',
|
|
720
708
|
notice_period: 'notice_period',
|
|
721
|
-
preferred_work_mode: 'preferred_work_mode',
|
|
722
709
|
gender: 'gender',
|
|
723
710
|
ethnicity: 'ethnicity',
|
|
724
711
|
veteran_status: 'veteran_status',
|
|
@@ -840,7 +827,16 @@ exports.EvaluationRoundFormat = exports.$Enums.EvaluationRoundFormat = {
|
|
|
840
827
|
EXTERNAL_VIDEO_UNASSISTED: 'EXTERNAL_VIDEO_UNASSISTED'
|
|
841
828
|
};
|
|
842
829
|
|
|
830
|
+
exports.WeightageLevel = exports.$Enums.WeightageLevel = {
|
|
831
|
+
LOW: 'LOW',
|
|
832
|
+
MEDIUM: 'MEDIUM',
|
|
833
|
+
HIGH: 'HIGH'
|
|
834
|
+
};
|
|
835
|
+
|
|
843
836
|
exports.EvaluationType = exports.$Enums.EvaluationType = {
|
|
837
|
+
HUMAN_AI: 'HUMAN_AI',
|
|
838
|
+
AI: 'AI',
|
|
839
|
+
HUMAN: 'HUMAN',
|
|
844
840
|
TREADSPACE_AI_ASSISTED: 'TREADSPACE_AI_ASSISTED',
|
|
845
841
|
EXTERNAL_AI_ASSISTED: 'EXTERNAL_AI_ASSISTED',
|
|
846
842
|
NON_AI_ASSISTED: 'NON_AI_ASSISTED'
|
|
@@ -853,12 +849,6 @@ exports.RoundType = exports.$Enums.RoundType = {
|
|
|
853
849
|
SCREENING: 'SCREENING'
|
|
854
850
|
};
|
|
855
851
|
|
|
856
|
-
exports.EvaluationPlanType = exports.$Enums.EvaluationPlanType = {
|
|
857
|
-
CUSTOM: 'CUSTOM',
|
|
858
|
-
GENERIC: 'GENERIC',
|
|
859
|
-
DELETED: 'DELETED'
|
|
860
|
-
};
|
|
861
|
-
|
|
862
852
|
exports.InterviewFeedback = exports.$Enums.InterviewFeedback = {
|
|
863
853
|
STRONG_HIRE: 'STRONG_HIRE',
|
|
864
854
|
HIRE: 'HIRE',
|
package/package.json
CHANGED
package/prisma/.DS_Store
ADDED
|
Binary file
|
|
@@ -27,13 +27,15 @@ model FitCheck {
|
|
|
27
27
|
fit Json[]
|
|
28
28
|
fit_check_status FitCheckStatus?
|
|
29
29
|
// Fields to be used now
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
30
|
+
skills_analysis Json?
|
|
31
|
+
experience_analysis Json?
|
|
32
|
+
overall_score Float
|
|
33
|
+
// New Fields needs to be changed now
|
|
34
|
+
short_match_analysis Json[]
|
|
35
|
+
candidate_analysis Json[]
|
|
36
|
+
technical_analysis Json[]
|
|
37
|
+
competency_analysis Json[]
|
|
38
|
+
recommendation Json?
|
|
37
39
|
|
|
38
40
|
/// Audit fields
|
|
39
41
|
created_by String
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
enum AsyncOperationStatus {
|
|
2
|
+
PENDING
|
|
3
|
+
IN_PROGRESS
|
|
4
|
+
SUCCESS
|
|
5
|
+
FAILED
|
|
6
|
+
RETRYING
|
|
7
|
+
CANCELLED
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
model AsyncOperation {
|
|
11
|
+
id String @id @default(uuid())
|
|
12
|
+
// Identification
|
|
13
|
+
operation_name String
|
|
14
|
+
// Status tracking
|
|
15
|
+
status AsyncOperationStatus @default(PENDING)
|
|
16
|
+
started_at DateTime?
|
|
17
|
+
completed_at DateTime?
|
|
18
|
+
// Execution metadata
|
|
19
|
+
payload Json?
|
|
20
|
+
metadata Json?
|
|
21
|
+
// Tracing
|
|
22
|
+
correlationId String?
|
|
23
|
+
sourceService String?
|
|
24
|
+
// Error information
|
|
25
|
+
error_message String?
|
|
26
|
+
error_details String?
|
|
27
|
+
// Audit fields
|
|
28
|
+
created_at DateTime @default(now())
|
|
29
|
+
updated_at DateTime @updatedAt
|
|
30
|
+
is_active Boolean @default(true)
|
|
31
|
+
|
|
32
|
+
@@index([status])
|
|
33
|
+
@@index([operation_name])
|
|
34
|
+
@@index([correlationId])
|
|
35
|
+
}
|