@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.
@@ -1,5 +1,5 @@
1
1
  {
2
- "name": "prisma-client-5297fc472d2b9310debb93b931d8e67f63913d7d036c79b4a032d9bd6e5efdf5",
2
+ "name": "prisma-client-bfa67cb2f529884672d895a98871f1753c661b00b32e02ae580760449b013167",
3
3
  "main": "index.js",
4
4
  "types": "index.d.ts",
5
5
  "browser": "index-browser.js",
@@ -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 String @id @default(uuid())
859
- organisation_id String
860
- created_by String
861
- assigned_to String?
862
- status JobProfileStatus @default(DRAFT)
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" | "query" | "warn")[];
4
- }, "error" | "query" | "warn", import("../client/runtime/library.js").DefaultArgs>;
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
@@ -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;;kFAKjB,CAAC;AAGH,YAAY,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAGvD,cAAc,oBAAoB,CAAC"}
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
- // Create a singleton instance of PrismaClient
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
- ? ["query", "error", "warn"]
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,8CAA8C;AAC9C,MAAM,CAAC,MAAM,MAAM,GAAG,IAAI,YAAY,CAAC;IACrC,GAAG,EACD,OAAO,CAAC,GAAG,CAAC,QAAQ,KAAK,aAAa;QACpC,CAAC,CAAC,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,CAAC;QAC5B,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"}
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adaptware/eagles-db",
3
- "version": "0.1.67",
3
+ "version": "0.1.70",
4
4
  "description": "A Prisma client package for Treadspace database operations",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -16,6 +16,7 @@ model JobDescription {
16
16
  uploaded_job_description_path String?
17
17
  is_plan_published Boolean @default(false)
18
18
  is_posted Boolean @default(false)
19
+ summary Json?
19
20
  ai_insight Json?
20
21
  job_fit_comparison Json?
21
22
  // Audit fields
@@ -6,21 +6,24 @@ enum JobProfileStatus {
6
6
  }
7
7
 
8
8
  model JobProfile {
9
- id String @id @default(uuid())
10
- organisation_id String
11
- created_by String
12
- assigned_to String?
13
- status JobProfileStatus @default(DRAFT)
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 String?
17
- role_type String?
18
- work_arrangement String?
19
- location String?
20
- experience_min String?
21
- reporting String?
22
- comp_range String?
23
- comp_benchmark String?
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 Json?
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 DateTime @default(now())
44
- updated_at DateTime @updatedAt
45
- is_active Boolean @default(true)
46
+ created_at DateTime @default(now())
47
+ updated_at DateTime @updatedAt
48
+ is_active Boolean @default(true)
46
49
 
47
50
  // Relations
48
- organisation Organisation @relation(fields: [organisation_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
49
- creator User @relation("ProfileCreator", fields: [created_by], references: [id], onDelete: Restrict, onUpdate: Cascade)
50
- assignee User? @relation("ProfileAssignee", fields: [assigned_to], references: [id], onDelete: SetNull, onUpdate: Cascade)
51
- job_descriptions JobDescription[]
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
  }
@@ -4,6 +4,7 @@ model Resume {
4
4
  organisation_id String?
5
5
  job_description_id String?
6
6
  uploaded_resume_path String?
7
+ summary Json?
7
8
  created_at DateTime @default(now())
8
9
  updated_at DateTime @updatedAt
9
10
  created_by String
@@ -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")