@adaptware/eagles-db 0.1.67 → 0.1.70
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 +8 -3
- package/client/index-browser.js +5 -0
- package/client/index.d.ts +1118 -68
- package/client/index.js +8 -3
- package/client/package.json +1 -1
- package/client/schema.prisma +21 -7
- package/client/wasm.js +5 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/prisma/schema/jobDescription.prisma +1 -0
- package/prisma/schema/jobProfile.prisma +26 -21
- package/prisma/schema/resume.prisma +1 -0
- package/prisma/schema/user.prisma +1 -0
package/client/package.json
CHANGED
package/client/schema.prisma
CHANGED
|
@@ -798,6 +798,7 @@ model JobDescription {
|
|
|
798
798
|
uploaded_job_description_path String?
|
|
799
799
|
is_plan_published Boolean @default(false)
|
|
800
800
|
is_posted Boolean @default(false)
|
|
801
|
+
summary Json?
|
|
801
802
|
ai_insight Json?
|
|
802
803
|
job_fit_comparison Json?
|
|
803
804
|
// Audit fields
|
|
@@ -855,21 +856,24 @@ enum JobProfileStatus {
|
|
|
855
856
|
}
|
|
856
857
|
|
|
857
858
|
model JobProfile {
|
|
858
|
-
id
|
|
859
|
-
organisation_id
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
859
|
+
id String @id @default(uuid())
|
|
860
|
+
organisation_id String
|
|
861
|
+
hiring_manager_id String?
|
|
862
|
+
created_by String
|
|
863
|
+
assigned_to String?
|
|
864
|
+
status JobProfileStatus @default(DRAFT)
|
|
863
865
|
|
|
864
866
|
// Basics
|
|
865
867
|
title String?
|
|
866
|
-
role_type String?
|
|
867
|
-
work_arrangement String?
|
|
868
|
+
role_type String? // new / replacement / backfill
|
|
869
|
+
work_arrangement String? // onsite / hybrid / remote
|
|
870
|
+
employment_type String? // full_time / part_time / contract / internship
|
|
868
871
|
location String?
|
|
869
872
|
experience_min String?
|
|
870
873
|
reporting String?
|
|
871
874
|
comp_range String?
|
|
872
875
|
comp_benchmark String?
|
|
876
|
+
budget String?
|
|
873
877
|
|
|
874
878
|
// Requirements (structured from AI conversation)
|
|
875
879
|
responsibilities Json?
|
|
@@ -895,25 +899,33 @@ model JobProfile {
|
|
|
895
899
|
|
|
896
900
|
// Relations
|
|
897
901
|
organisation Organisation @relation(fields: [organisation_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
|
|
902
|
+
hiring_manager User? @relation("JobProfileHiringManager", fields: [hiring_manager_id], references: [id], onDelete: SetNull, onUpdate: Cascade)
|
|
898
903
|
creator User @relation("ProfileCreator", fields: [created_by], references: [id], onDelete: Restrict, onUpdate: Cascade)
|
|
899
904
|
assignee User? @relation("ProfileAssignee", fields: [assigned_to], references: [id], onDelete: SetNull, onUpdate: Cascade)
|
|
900
905
|
job_descriptions JobDescription[]
|
|
901
906
|
|
|
902
907
|
@@index([organisation_id])
|
|
908
|
+
@@index([hiring_manager_id])
|
|
903
909
|
@@index([assigned_to])
|
|
904
910
|
@@index([created_by])
|
|
905
911
|
}
|
|
906
912
|
|
|
907
913
|
model LiveAnalysis {
|
|
908
914
|
id String @id @default(uuid())
|
|
915
|
+
//foreign keys
|
|
909
916
|
interview_id String
|
|
917
|
+
//data
|
|
910
918
|
analysis Json
|
|
919
|
+
//audit fields
|
|
911
920
|
created_at DateTime @default(now())
|
|
912
921
|
updated_at DateTime @updatedAt
|
|
913
922
|
created_by String
|
|
914
923
|
updated_by String
|
|
915
924
|
is_active Boolean @default(true)
|
|
925
|
+
//relations
|
|
916
926
|
interview Interview @relation(fields: [interview_id], references: [id])
|
|
927
|
+
|
|
928
|
+
@@index([interview_id])
|
|
917
929
|
}
|
|
918
930
|
|
|
919
931
|
model Message {
|
|
@@ -1153,6 +1165,7 @@ model Resume {
|
|
|
1153
1165
|
organisation_id String?
|
|
1154
1166
|
job_description_id String?
|
|
1155
1167
|
uploaded_resume_path String?
|
|
1168
|
+
summary Json?
|
|
1156
1169
|
created_at DateTime @default(now())
|
|
1157
1170
|
updated_at DateTime @updatedAt
|
|
1158
1171
|
created_by String
|
|
@@ -1285,6 +1298,7 @@ model User {
|
|
|
1285
1298
|
user_profile UserProfile?
|
|
1286
1299
|
job_description JobDescription[]
|
|
1287
1300
|
hiring_manager_job_descriptions JobDescription[] @relation("HiringManager")
|
|
1301
|
+
hiring_manager_job_profiles JobProfile[] @relation("JobProfileHiringManager")
|
|
1288
1302
|
approvals Approval[]
|
|
1289
1303
|
sent_messages Message[] @relation("Sent Messages")
|
|
1290
1304
|
received_messages Message[] @relation("Received Messages")
|
package/client/wasm.js
CHANGED
|
@@ -549,6 +549,7 @@ exports.Prisma.JobDescriptionScalarFieldEnum = {
|
|
|
549
549
|
uploaded_job_description_path: 'uploaded_job_description_path',
|
|
550
550
|
is_plan_published: 'is_plan_published',
|
|
551
551
|
is_posted: 'is_posted',
|
|
552
|
+
summary: 'summary',
|
|
552
553
|
ai_insight: 'ai_insight',
|
|
553
554
|
job_fit_comparison: 'job_fit_comparison',
|
|
554
555
|
created_at: 'created_at',
|
|
@@ -575,17 +576,20 @@ exports.Prisma.JobDescriptionDataScalarFieldEnum = {
|
|
|
575
576
|
exports.Prisma.JobProfileScalarFieldEnum = {
|
|
576
577
|
id: 'id',
|
|
577
578
|
organisation_id: 'organisation_id',
|
|
579
|
+
hiring_manager_id: 'hiring_manager_id',
|
|
578
580
|
created_by: 'created_by',
|
|
579
581
|
assigned_to: 'assigned_to',
|
|
580
582
|
status: 'status',
|
|
581
583
|
title: 'title',
|
|
582
584
|
role_type: 'role_type',
|
|
583
585
|
work_arrangement: 'work_arrangement',
|
|
586
|
+
employment_type: 'employment_type',
|
|
584
587
|
location: 'location',
|
|
585
588
|
experience_min: 'experience_min',
|
|
586
589
|
reporting: 'reporting',
|
|
587
590
|
comp_range: 'comp_range',
|
|
588
591
|
comp_benchmark: 'comp_benchmark',
|
|
592
|
+
budget: 'budget',
|
|
589
593
|
responsibilities: 'responsibilities',
|
|
590
594
|
deliverables: 'deliverables',
|
|
591
595
|
must_have_skills: 'must_have_skills',
|
|
@@ -733,6 +737,7 @@ exports.Prisma.ResumeScalarFieldEnum = {
|
|
|
733
737
|
organisation_id: 'organisation_id',
|
|
734
738
|
job_description_id: 'job_description_id',
|
|
735
739
|
uploaded_resume_path: 'uploaded_resume_path',
|
|
740
|
+
summary: 'summary',
|
|
736
741
|
created_at: 'created_at',
|
|
737
742
|
updated_at: 'updated_at',
|
|
738
743
|
created_by: 'created_by',
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { PrismaClient } from "../client/index.js";
|
|
2
2
|
export declare const prisma: PrismaClient<{
|
|
3
|
-
log: ("error" | "
|
|
4
|
-
}, "error" | "
|
|
3
|
+
log: ("error" | "warn")[];
|
|
4
|
+
}, "error" | "warn", import("../client/runtime/library.js").DefaultArgs>;
|
|
5
5
|
export type { PrismaClient } from "../client/index.js";
|
|
6
6
|
export * from "../client/index.js";
|
|
7
7
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAGlD,eAAO,MAAM,MAAM;;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAGlD,eAAO,MAAM,MAAM;;wEAKjB,CAAC;AAGH,YAAY,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAGvD,cAAc,oBAAoB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { PrismaClient } from "../client/index.js";
|
|
2
|
-
//
|
|
2
|
+
// Never enable Prisma `query` logging — it prints full SQL to stdout.
|
|
3
3
|
export const prisma = new PrismaClient({
|
|
4
4
|
log: process.env.NODE_ENV === "development"
|
|
5
|
-
? ["
|
|
5
|
+
? ["error", "warn"]
|
|
6
6
|
: ["error"],
|
|
7
7
|
});
|
|
8
8
|
// Export all Prisma types
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAElD,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAElD,sEAAsE;AACtE,MAAM,CAAC,MAAM,MAAM,GAAG,IAAI,YAAY,CAAC;IACrC,GAAG,EACD,OAAO,CAAC,GAAG,CAAC,QAAQ,KAAK,aAAa;QACpC,CAAC,CAAC,CAAC,OAAO,EAAE,MAAM,CAAC;QACnB,CAAC,CAAC,CAAC,OAAO,CAAC;CAChB,CAAC,CAAC;AAKH,0BAA0B;AAC1B,cAAc,oBAAoB,CAAC;AAEnC,oBAAoB;AACpB,OAAO,CAAC,EAAE,CAAC,YAAY,EAAE,KAAK,IAAI,EAAE;IAClC,MAAM,MAAM,CAAC,WAAW,EAAE,CAAC;AAC7B,CAAC,CAAC,CAAC;AAEH,OAAO,CAAC,EAAE,CAAC,QAAQ,EAAE,KAAK,IAAI,EAAE;IAC9B,MAAM,MAAM,CAAC,WAAW,EAAE,CAAC;IAC3B,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAClB,CAAC,CAAC,CAAC;AAEH,OAAO,CAAC,EAAE,CAAC,SAAS,EAAE,KAAK,IAAI,EAAE;IAC/B,MAAM,MAAM,CAAC,WAAW,EAAE,CAAC;IAC3B,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAClB,CAAC,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -6,21 +6,24 @@ enum JobProfileStatus {
|
|
|
6
6
|
}
|
|
7
7
|
|
|
8
8
|
model JobProfile {
|
|
9
|
-
id
|
|
10
|
-
organisation_id
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
9
|
+
id String @id @default(uuid())
|
|
10
|
+
organisation_id String
|
|
11
|
+
hiring_manager_id String?
|
|
12
|
+
created_by String
|
|
13
|
+
assigned_to String?
|
|
14
|
+
status JobProfileStatus @default(DRAFT)
|
|
14
15
|
|
|
15
16
|
// Basics
|
|
16
|
-
title
|
|
17
|
-
role_type
|
|
18
|
-
work_arrangement
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
17
|
+
title String?
|
|
18
|
+
role_type String? // new / replacement / backfill
|
|
19
|
+
work_arrangement String? // onsite / hybrid / remote
|
|
20
|
+
employment_type String? // full_time / part_time / contract / internship
|
|
21
|
+
location String?
|
|
22
|
+
experience_min String?
|
|
23
|
+
reporting String?
|
|
24
|
+
comp_range String?
|
|
25
|
+
comp_benchmark String?
|
|
26
|
+
budget String?
|
|
24
27
|
|
|
25
28
|
// Requirements (structured from AI conversation)
|
|
26
29
|
responsibilities Json?
|
|
@@ -32,7 +35,7 @@ model JobProfile {
|
|
|
32
35
|
success_metrics Json?
|
|
33
36
|
|
|
34
37
|
// Competencies
|
|
35
|
-
competencies
|
|
38
|
+
competencies Json?
|
|
36
39
|
|
|
37
40
|
// Conversation state
|
|
38
41
|
conversation_history Json?
|
|
@@ -40,17 +43,19 @@ model JobProfile {
|
|
|
40
43
|
orion_execution_id String?
|
|
41
44
|
|
|
42
45
|
// Audit
|
|
43
|
-
created_at
|
|
44
|
-
updated_at
|
|
45
|
-
is_active
|
|
46
|
+
created_at DateTime @default(now())
|
|
47
|
+
updated_at DateTime @updatedAt
|
|
48
|
+
is_active Boolean @default(true)
|
|
46
49
|
|
|
47
50
|
// Relations
|
|
48
|
-
organisation
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
51
|
+
organisation Organisation @relation(fields: [organisation_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
|
|
52
|
+
hiring_manager User? @relation("JobProfileHiringManager", fields: [hiring_manager_id], references: [id], onDelete: SetNull, onUpdate: Cascade)
|
|
53
|
+
creator User @relation("ProfileCreator", fields: [created_by], references: [id], onDelete: Restrict, onUpdate: Cascade)
|
|
54
|
+
assignee User? @relation("ProfileAssignee", fields: [assigned_to], references: [id], onDelete: SetNull, onUpdate: Cascade)
|
|
55
|
+
job_descriptions JobDescription[]
|
|
52
56
|
|
|
53
57
|
@@index([organisation_id])
|
|
58
|
+
@@index([hiring_manager_id])
|
|
54
59
|
@@index([assigned_to])
|
|
55
60
|
@@index([created_by])
|
|
56
61
|
}
|
|
@@ -28,6 +28,7 @@ model User {
|
|
|
28
28
|
user_profile UserProfile?
|
|
29
29
|
job_description JobDescription[]
|
|
30
30
|
hiring_manager_job_descriptions JobDescription[] @relation("HiringManager")
|
|
31
|
+
hiring_manager_job_profiles JobProfile[] @relation("JobProfileHiringManager")
|
|
31
32
|
approvals Approval[]
|
|
32
33
|
sent_messages Message[] @relation("Sent Messages")
|
|
33
34
|
received_messages Message[] @relation("Received Messages")
|