@adaptware/eagles-db 0.6.17 → 0.6.20

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adaptware/eagles-db",
3
- "version": "0.6.17",
3
+ "version": "0.6.20",
4
4
  "description": "A Prisma client package for Treadspace database operations",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
Binary file
Binary file
@@ -2,9 +2,11 @@
2
2
 
3
3
  enum ConsentType {
4
4
  PLATFORM_TERMS
5
+ /// Retained until the next production push. Catalog rows move to EVALUATION_CONSENT.
5
6
  INTERVIEW_SESSION
6
- /// Read-only catalog document; no ConsentRecord submit flow
7
+ /// Read-only catalog document; no ConsentRecord submit flow. Retained until the next production push.
7
8
  PRIVACY_POLICY
9
+ EVALUATION_CONSENT
8
10
 
9
11
  @@schema("public")
10
12
  }
@@ -143,7 +145,9 @@ model ConsentRecord {
143
145
  // Dual-existence for non-breaking migration
144
146
  reference_type ConsentReferenceType?
145
147
  reference_id String?
148
+ /// OngoingEvaluation.id. Reference columns stay until the next production push.
146
149
  evaluation_id String?
150
+ evaluation OngoingEvaluation? @relation(fields: [evaluation_id], references: [id], onDelete: SetNull)
147
151
 
148
152
  ip_address String?
149
153
  user_agent String?
@@ -14,6 +14,10 @@ enum EvaluationCategory {
14
14
  BUSINESS_SCREENING
15
15
  BUSINESS_ROUND
16
16
  BEHAVIORAL_ROUND
17
+ FILTERING
18
+ EVALUATION
19
+ DECISION
20
+ OFFER
17
21
 
18
22
  @@schema("public")
19
23
  }
@@ -91,7 +91,6 @@ model Interview {
91
91
  /// Candidate invite response (legal consent in ConsentRecord).
92
92
  candidate_status String? @default("INVITED")
93
93
  candidate_responded_at DateTime?
94
- decline_reason String?
95
94
  /// When this timestamp moves forward, prior INTERVIEW_SESSION consent grants are stale.
96
95
  consent_epoch_at DateTime @default(now())
97
96
 
@@ -76,6 +76,7 @@ model OngoingEvaluation {
76
76
  interview Interview? @relation(fields: [interview_id], references: [id], onDelete: SetNull, onUpdate: Cascade)
77
77
  assignment Assignment?
78
78
  assessment Assessment? @relation(fields: [assessment_id], references: [id], onDelete: SetNull)
79
+ consent_records ConsentRecord[]
79
80
 
80
81
  @@unique([application_id, evaluation_plan_id])
81
82
  @@index([application_id])
@@ -18,6 +18,7 @@ enum BillingTransactionType {
18
18
  PURCHASE
19
19
  TOP_UP
20
20
  REFUND
21
+ SUBSCRIPTION
21
22
 
22
23
  @@schema("public")
23
24
  }
@@ -3,6 +3,7 @@
3
3
  /// What the invoice was raised for.
4
4
  enum InvoiceKind {
5
5
  PACKAGE
6
+ SUBSCRIPTION
6
7
 
7
8
  @@schema("public")
8
9
  }