@adaptware/eagles-db 0.1.27 → 0.1.30
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 +32 -24
- package/client/index-browser.js +26 -18
- package/client/index.d.ts +1658 -746
- package/client/index.js +34 -26
- package/client/{libquery_engine-darwin.dylib.node → libquery_engine-darwin-arm64.dylib.node} +0 -0
- package/client/package.json +1 -1
- package/client/schema.prisma +28 -20
- package/client/wasm.js +26 -18
- package/package.json +4 -1
- package/prisma/.DS_Store +0 -0
- package/prisma/schema/evaluationPlan.prisma +9 -15
- package/prisma/schema/jobDescription.prisma +7 -5
- package/prisma/schema/ongoingEvaluation.prisma +12 -0
package/client/{libquery_engine-darwin.dylib.node → libquery_engine-darwin-arm64.dylib.node}
RENAMED
|
Binary file
|
package/client/package.json
CHANGED
package/client/schema.prisma
CHANGED
|
@@ -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
|
-
|
|
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
|
-
//
|
|
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[]
|
|
@@ -679,22 +673,24 @@ enum JobDescriptionStatus {
|
|
|
679
673
|
|
|
680
674
|
model JobDescription {
|
|
681
675
|
id String @id @default(uuid())
|
|
676
|
+
organisation_id String
|
|
682
677
|
hiring_manager_id String?
|
|
683
678
|
status JobDescriptionStatus @default(DRAFT)
|
|
684
|
-
organisation_id String
|
|
685
679
|
screeningQuestions String[]
|
|
686
680
|
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?
|
|
692
691
|
is_active Boolean @default(true)
|
|
693
|
-
is_plan_locked Boolean @default(false)
|
|
694
|
-
is_posted Boolean @default(false)
|
|
695
692
|
openings Int @default(1)
|
|
696
693
|
organisation Organisation @relation(fields: [organisation_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
|
|
697
|
-
ai_insight Json?
|
|
698
694
|
applications Application[]
|
|
699
695
|
interviews Interview[]
|
|
700
696
|
fit_check FitCheck[] // one-to-many link
|
|
@@ -800,6 +796,18 @@ model OngoingEvaluation {
|
|
|
800
796
|
updated_by String
|
|
801
797
|
is_active Boolean @default(true)
|
|
802
798
|
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
|
+
round_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?
|
|
803
811
|
|
|
804
812
|
@@unique([application_id, evaluation_plan_id])
|
|
805
813
|
@@index([application_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
|
-
|
|
343
|
+
plan_type: 'plan_type',
|
|
345
344
|
created_by: 'created_by',
|
|
346
345
|
updated_by: 'updated_by',
|
|
347
346
|
created_at: 'created_at',
|
|
@@ -478,21 +477,22 @@ exports.Prisma.InterviewNotesScalarFieldEnum = {
|
|
|
478
477
|
|
|
479
478
|
exports.Prisma.JobDescriptionScalarFieldEnum = {
|
|
480
479
|
id: 'id',
|
|
480
|
+
organisation_id: 'organisation_id',
|
|
481
481
|
hiring_manager_id: 'hiring_manager_id',
|
|
482
482
|
status: 'status',
|
|
483
|
-
organisation_id: 'organisation_id',
|
|
484
483
|
screeningQuestions: 'screeningQuestions',
|
|
485
484
|
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',
|
|
486
490
|
created_at: 'created_at',
|
|
487
491
|
updated_at: 'updated_at',
|
|
488
492
|
created_by: 'created_by',
|
|
489
493
|
updated_by: 'updated_by',
|
|
490
|
-
uploaded_job_description_path: 'uploaded_job_description_path',
|
|
491
494
|
is_active: 'is_active',
|
|
492
|
-
|
|
493
|
-
is_posted: 'is_posted',
|
|
494
|
-
openings: 'openings',
|
|
495
|
-
ai_insight: 'ai_insight'
|
|
495
|
+
openings: 'openings'
|
|
496
496
|
};
|
|
497
497
|
|
|
498
498
|
exports.Prisma.JobDescriptionDataScalarFieldEnum = {
|
|
@@ -537,7 +537,18 @@ 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'
|
|
540
|
+
is_current: 'is_current',
|
|
541
|
+
title: 'title',
|
|
542
|
+
description: 'description',
|
|
543
|
+
round_no: 'round_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'
|
|
541
552
|
};
|
|
542
553
|
|
|
543
554
|
exports.Prisma.OrganisationScalarFieldEnum = {
|
|
@@ -827,16 +838,7 @@ exports.EvaluationRoundFormat = exports.$Enums.EvaluationRoundFormat = {
|
|
|
827
838
|
EXTERNAL_VIDEO_UNASSISTED: 'EXTERNAL_VIDEO_UNASSISTED'
|
|
828
839
|
};
|
|
829
840
|
|
|
830
|
-
exports.WeightageLevel = exports.$Enums.WeightageLevel = {
|
|
831
|
-
LOW: 'LOW',
|
|
832
|
-
MEDIUM: 'MEDIUM',
|
|
833
|
-
HIGH: 'HIGH'
|
|
834
|
-
};
|
|
835
|
-
|
|
836
841
|
exports.EvaluationType = exports.$Enums.EvaluationType = {
|
|
837
|
-
HUMAN_AI: 'HUMAN_AI',
|
|
838
|
-
AI: 'AI',
|
|
839
|
-
HUMAN: 'HUMAN',
|
|
840
842
|
TREADSPACE_AI_ASSISTED: 'TREADSPACE_AI_ASSISTED',
|
|
841
843
|
EXTERNAL_AI_ASSISTED: 'EXTERNAL_AI_ASSISTED',
|
|
842
844
|
NON_AI_ASSISTED: 'NON_AI_ASSISTED'
|
|
@@ -849,6 +851,12 @@ exports.RoundType = exports.$Enums.RoundType = {
|
|
|
849
851
|
SCREENING: 'SCREENING'
|
|
850
852
|
};
|
|
851
853
|
|
|
854
|
+
exports.EvaluationPlanType = exports.$Enums.EvaluationPlanType = {
|
|
855
|
+
CUSTOM: 'CUSTOM',
|
|
856
|
+
GENERIC: 'GENERIC',
|
|
857
|
+
DELETED: 'DELETED'
|
|
858
|
+
};
|
|
859
|
+
|
|
852
860
|
exports.InterviewFeedback = exports.$Enums.InterviewFeedback = {
|
|
853
861
|
STRONG_HIRE: 'STRONG_HIRE',
|
|
854
862
|
HIRE: 'HIRE',
|
package/package.json
CHANGED
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adaptware/eagles-db",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.30",
|
|
4
4
|
"description": "A Prisma client package for Treadspace database operations",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
7
|
+
"publishConfig": {
|
|
8
|
+
"registry": "https://registry.npmjs.org/"
|
|
9
|
+
},
|
|
7
10
|
"type": "module",
|
|
8
11
|
"exports": {
|
|
9
12
|
".": {
|
package/prisma/.DS_Store
ADDED
|
Binary file
|
|
@@ -5,13 +5,6 @@ enum RoundType {
|
|
|
5
5
|
SCREENING
|
|
6
6
|
}
|
|
7
7
|
|
|
8
|
-
// Old
|
|
9
|
-
enum WeightageLevel {
|
|
10
|
-
LOW
|
|
11
|
-
MEDIUM
|
|
12
|
-
HIGH
|
|
13
|
-
}
|
|
14
|
-
|
|
15
8
|
enum EvaluationRoundFormat {
|
|
16
9
|
// ────────────────
|
|
17
10
|
// Screening formats
|
|
@@ -42,16 +35,18 @@ enum EvaluationRoundFormat {
|
|
|
42
35
|
}
|
|
43
36
|
|
|
44
37
|
enum EvaluationType {
|
|
45
|
-
// Old
|
|
46
|
-
HUMAN_AI // Combination of human and AI evaluation
|
|
47
|
-
AI // Fully automated AI evaluation
|
|
48
|
-
HUMAN // Fully human-driven evaluation
|
|
49
38
|
// New (In active use now)
|
|
50
39
|
TREADSPACE_AI_ASSISTED
|
|
51
40
|
EXTERNAL_AI_ASSISTED
|
|
52
41
|
NON_AI_ASSISTED
|
|
53
42
|
}
|
|
54
43
|
|
|
44
|
+
enum EvaluationPlanType {
|
|
45
|
+
CUSTOM
|
|
46
|
+
GENERIC
|
|
47
|
+
DELETED
|
|
48
|
+
}
|
|
49
|
+
|
|
55
50
|
model EvaluationPlan {
|
|
56
51
|
id String @id @default(uuid())
|
|
57
52
|
job_description_id String
|
|
@@ -60,16 +55,15 @@ model EvaluationPlan {
|
|
|
60
55
|
title String
|
|
61
56
|
description String?
|
|
62
57
|
format EvaluationRoundFormat?
|
|
63
|
-
weightage WeightageLevel?
|
|
64
58
|
topics String[]
|
|
65
59
|
assignee String?
|
|
66
60
|
elimination_round Boolean @default(false)
|
|
67
61
|
evaluation_type EvaluationType
|
|
68
62
|
type_of_round RoundType
|
|
69
63
|
timeline Int
|
|
70
|
-
order_no Int
|
|
64
|
+
order_no Int?
|
|
71
65
|
details Json?
|
|
72
|
-
|
|
66
|
+
plan_type EvaluationPlanType @default(GENERIC)
|
|
73
67
|
created_by String
|
|
74
68
|
updated_by String
|
|
75
69
|
created_at DateTime @default(now())
|
|
@@ -81,7 +75,7 @@ model EvaluationPlan {
|
|
|
81
75
|
panelists Panelist[]
|
|
82
76
|
interviews Interview[]
|
|
83
77
|
applications Application[]
|
|
84
|
-
//
|
|
78
|
+
// New optional one-to-one relation with AssessmentLibrary
|
|
85
79
|
assessment AssessmentLibrary? @relation(fields: [assessment_id], references: [id], onDelete: SetNull)
|
|
86
80
|
assignment_library AssignmentLibrary? @relation(fields: [assignment_library_id], references: [id], onDelete: SetNull)
|
|
87
81
|
ongoing_evaluations OngoingEvaluation[]
|
|
@@ -8,22 +8,24 @@ enum JobDescriptionStatus {
|
|
|
8
8
|
|
|
9
9
|
model JobDescription {
|
|
10
10
|
id String @id @default(uuid())
|
|
11
|
+
organisation_id String
|
|
11
12
|
hiring_manager_id String?
|
|
12
13
|
status JobDescriptionStatus @default(DRAFT)
|
|
13
|
-
organisation_id String
|
|
14
14
|
screeningQuestions String[]
|
|
15
15
|
recommendedQuestions Json[]
|
|
16
|
+
uploaded_job_description_path String?
|
|
17
|
+
is_plan_locked Boolean? @default(false)
|
|
18
|
+
is_plan_published Boolean @default(false)
|
|
19
|
+
is_posted Boolean @default(false)
|
|
20
|
+
ai_insight Json?
|
|
21
|
+
// Audit fields
|
|
16
22
|
created_at DateTime @default(now())
|
|
17
23
|
updated_at DateTime @updatedAt
|
|
18
24
|
created_by String
|
|
19
25
|
updated_by String
|
|
20
|
-
uploaded_job_description_path String?
|
|
21
26
|
is_active Boolean @default(true)
|
|
22
|
-
is_plan_locked Boolean @default(false)
|
|
23
|
-
is_posted Boolean @default(false)
|
|
24
27
|
openings Int @default(1)
|
|
25
28
|
organisation Organisation @relation(fields: [organisation_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
|
|
26
|
-
ai_insight Json?
|
|
27
29
|
applications Application[]
|
|
28
30
|
interviews Interview[]
|
|
29
31
|
fit_check FitCheck[] // one-to-many link
|
|
@@ -52,6 +52,18 @@ model OngoingEvaluation {
|
|
|
52
52
|
updated_by String
|
|
53
53
|
is_active Boolean @default(true)
|
|
54
54
|
is_current Boolean @default(false)
|
|
55
|
+
// Evaluation Plan Details Will be stored only when candidate starts for the evaluation round
|
|
56
|
+
title String?
|
|
57
|
+
description String?
|
|
58
|
+
order_no Int?
|
|
59
|
+
format EvaluationRoundFormat?
|
|
60
|
+
topics String[]
|
|
61
|
+
assignee String?
|
|
62
|
+
elimination_round Boolean? @default(false)
|
|
63
|
+
evaluation_type EvaluationType?
|
|
64
|
+
type_of_round RoundType?
|
|
65
|
+
timeline Int?
|
|
66
|
+
details Json?
|
|
55
67
|
|
|
56
68
|
@@unique([application_id, evaluation_plan_id])
|
|
57
69
|
@@index([application_id])
|