@adaptware/eagles-db 0.1.68 → 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-27be9a494fcb3b0825b03cd37c78878e371af5fe2402438c44d4795654311f5b",
2
+ "name": "prisma-client-bfa67cb2f529884672d895a98871f1753c661b00b32e02ae580760449b013167",
3
3
  "main": "index.js",
4
4
  "types": "index.d.ts",
5
5
  "browser": "index-browser.js",
@@ -856,21 +856,24 @@ enum JobProfileStatus {
856
856
  }
857
857
 
858
858
  model JobProfile {
859
- id String @id @default(uuid())
860
- organisation_id String
861
- created_by String
862
- assigned_to String?
863
- 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)
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
  }
@@ -1293,6 +1298,7 @@ model User {
1293
1298
  user_profile UserProfile?
1294
1299
  job_description JobDescription[]
1295
1300
  hiring_manager_job_descriptions JobDescription[] @relation("HiringManager")
1301
+ hiring_manager_job_profiles JobProfile[] @relation("JobProfileHiringManager")
1296
1302
  approvals Approval[]
1297
1303
  sent_messages Message[] @relation("Sent Messages")
1298
1304
  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',
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,OA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}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adaptware/eagles-db",
3
- "version": "0.1.68",
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",
@@ -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
  }
@@ -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")