@adaptware/eagles-db 0.1.68 → 0.1.71
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 +7 -3
- package/client/index-browser.js +4 -0
- package/client/index.d.ts +1055 -66
- package/client/index.js +7 -3
- package/client/package.json +1 -1
- package/client/schema.prisma +23 -16
- package/client/wasm.js +4 -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/jobProfile.prisma +26 -21
- package/prisma/schema/organisation.prisma +10 -9
- package/prisma/schema/user.prisma +1 -0
package/client/package.json
CHANGED
package/client/schema.prisma
CHANGED
|
@@ -856,21 +856,24 @@ enum JobProfileStatus {
|
|
|
856
856
|
}
|
|
857
857
|
|
|
858
858
|
model JobProfile {
|
|
859
|
-
id
|
|
860
|
-
organisation_id
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
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)
|
|
864
865
|
|
|
865
866
|
// Basics
|
|
866
867
|
title String?
|
|
867
|
-
role_type String?
|
|
868
|
-
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
|
|
869
871
|
location String?
|
|
870
872
|
experience_min String?
|
|
871
873
|
reporting String?
|
|
872
874
|
comp_range String?
|
|
873
875
|
comp_benchmark String?
|
|
876
|
+
budget String?
|
|
874
877
|
|
|
875
878
|
// Requirements (structured from AI conversation)
|
|
876
879
|
responsibilities Json?
|
|
@@ -896,11 +899,13 @@ model JobProfile {
|
|
|
896
899
|
|
|
897
900
|
// Relations
|
|
898
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)
|
|
899
903
|
creator User @relation("ProfileCreator", fields: [created_by], references: [id], onDelete: Restrict, onUpdate: Cascade)
|
|
900
904
|
assignee User? @relation("ProfileAssignee", fields: [assigned_to], references: [id], onDelete: SetNull, onUpdate: Cascade)
|
|
901
905
|
job_descriptions JobDescription[]
|
|
902
906
|
|
|
903
907
|
@@index([organisation_id])
|
|
908
|
+
@@index([hiring_manager_id])
|
|
904
909
|
@@index([assigned_to])
|
|
905
910
|
@@index([created_by])
|
|
906
911
|
}
|
|
@@ -1024,15 +1029,16 @@ enum OrganisationSize {
|
|
|
1024
1029
|
}
|
|
1025
1030
|
|
|
1026
1031
|
model Organisation {
|
|
1027
|
-
id
|
|
1028
|
-
name
|
|
1029
|
-
industry
|
|
1030
|
-
about
|
|
1031
|
-
website
|
|
1032
|
-
size
|
|
1033
|
-
phone
|
|
1034
|
-
address
|
|
1035
|
-
company_values
|
|
1032
|
+
id String @id @default(uuid())
|
|
1033
|
+
name String @unique
|
|
1034
|
+
industry String
|
|
1035
|
+
about String
|
|
1036
|
+
website String
|
|
1037
|
+
size OrganisationSize @default(ONE_TO_TEN)
|
|
1038
|
+
phone String
|
|
1039
|
+
address String
|
|
1040
|
+
company_values Json[]
|
|
1041
|
+
allowed_email_domains String[]
|
|
1036
1042
|
|
|
1037
1043
|
interviewers User[]
|
|
1038
1044
|
created_at DateTime @default(now())
|
|
@@ -1293,6 +1299,7 @@ model User {
|
|
|
1293
1299
|
user_profile UserProfile?
|
|
1294
1300
|
job_description JobDescription[]
|
|
1295
1301
|
hiring_manager_job_descriptions JobDescription[] @relation("HiringManager")
|
|
1302
|
+
hiring_manager_job_profiles JobProfile[] @relation("JobProfileHiringManager")
|
|
1296
1303
|
approvals Approval[]
|
|
1297
1304
|
sent_messages Message[] @relation("Sent Messages")
|
|
1298
1305
|
received_messages Message[] @relation("Received Messages")
|
package/client/wasm.js
CHANGED
|
@@ -576,17 +576,20 @@ exports.Prisma.JobDescriptionDataScalarFieldEnum = {
|
|
|
576
576
|
exports.Prisma.JobProfileScalarFieldEnum = {
|
|
577
577
|
id: 'id',
|
|
578
578
|
organisation_id: 'organisation_id',
|
|
579
|
+
hiring_manager_id: 'hiring_manager_id',
|
|
579
580
|
created_by: 'created_by',
|
|
580
581
|
assigned_to: 'assigned_to',
|
|
581
582
|
status: 'status',
|
|
582
583
|
title: 'title',
|
|
583
584
|
role_type: 'role_type',
|
|
584
585
|
work_arrangement: 'work_arrangement',
|
|
586
|
+
employment_type: 'employment_type',
|
|
585
587
|
location: 'location',
|
|
586
588
|
experience_min: 'experience_min',
|
|
587
589
|
reporting: 'reporting',
|
|
588
590
|
comp_range: 'comp_range',
|
|
589
591
|
comp_benchmark: 'comp_benchmark',
|
|
592
|
+
budget: 'budget',
|
|
590
593
|
responsibilities: 'responsibilities',
|
|
591
594
|
deliverables: 'deliverables',
|
|
592
595
|
must_have_skills: 'must_have_skills',
|
|
@@ -670,6 +673,7 @@ exports.Prisma.OrganisationScalarFieldEnum = {
|
|
|
670
673
|
phone: 'phone',
|
|
671
674
|
address: 'address',
|
|
672
675
|
company_values: 'company_values',
|
|
676
|
+
allowed_email_domains: 'allowed_email_domains',
|
|
673
677
|
created_at: 'created_at',
|
|
674
678
|
updated_at: 'updated_at',
|
|
675
679
|
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
|
}
|
|
@@ -7,15 +7,16 @@ enum OrganisationSize {
|
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
model Organisation {
|
|
10
|
-
id
|
|
11
|
-
name
|
|
12
|
-
industry
|
|
13
|
-
about
|
|
14
|
-
website
|
|
15
|
-
size
|
|
16
|
-
phone
|
|
17
|
-
address
|
|
18
|
-
company_values
|
|
10
|
+
id String @id @default(uuid())
|
|
11
|
+
name String @unique
|
|
12
|
+
industry String
|
|
13
|
+
about String
|
|
14
|
+
website String
|
|
15
|
+
size OrganisationSize @default(ONE_TO_TEN)
|
|
16
|
+
phone String
|
|
17
|
+
address String
|
|
18
|
+
company_values Json[]
|
|
19
|
+
allowed_email_domains String[]
|
|
19
20
|
|
|
20
21
|
interviewers User[]
|
|
21
22
|
created_at DateTime @default(now())
|
|
@@ -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")
|