@adaptware/eagles-db 0.6.20 → 0.6.21

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-f9dfd42959517f82e3b36fae4c5581f4a719fe74ada0cbbbee19a80532ba05ec",
2
+ "name": "prisma-client-3e5a725fe27459090e27c7747609f51d05077b562ccea6362a59012e9af7b7c3",
3
3
  "main": "index.js",
4
4
  "types": "index.d.ts",
5
5
  "browser": "default.js",
@@ -1252,11 +1252,9 @@ model CompetencyDictionary {
1252
1252
 
1253
1253
  enum ConsentType {
1254
1254
  PLATFORM_TERMS
1255
- /// Retained until the next production push. Catalog rows move to EVALUATION_CONSENT.
1256
1255
  INTERVIEW_SESSION
1257
- /// Read-only catalog document; no ConsentRecord submit flow. Retained until the next production push.
1256
+ /// Read-only catalog document; no ConsentRecord submit flow
1258
1257
  PRIVACY_POLICY
1259
- EVALUATION_CONSENT
1260
1258
 
1261
1259
  @@schema("public")
1262
1260
  }
@@ -1395,9 +1393,7 @@ model ConsentRecord {
1395
1393
  // Dual-existence for non-breaking migration
1396
1394
  reference_type ConsentReferenceType?
1397
1395
  reference_id String?
1398
- /// OngoingEvaluation.id. Reference columns stay until the next production push.
1399
1396
  evaluation_id String?
1400
- evaluation OngoingEvaluation? @relation(fields: [evaluation_id], references: [id], onDelete: SetNull)
1401
1397
 
1402
1398
  ip_address String?
1403
1399
  user_agent String?
@@ -1651,10 +1647,6 @@ enum EvaluationCategory {
1651
1647
  BUSINESS_SCREENING
1652
1648
  BUSINESS_ROUND
1653
1649
  BEHAVIORAL_ROUND
1654
- FILTERING
1655
- EVALUATION
1656
- DECISION
1657
- OFFER
1658
1650
 
1659
1651
  @@schema("public")
1660
1652
  }
@@ -2188,6 +2180,8 @@ model Interview {
2188
2180
  candidate_interview_metadata Json?
2189
2181
  /// Data
2190
2182
  room_name String?
2183
+ /// Active logical session while a sitting is in progress; null when no session is open.
2184
+ current_session_id String?
2191
2185
  scheduled_start_time DateTime?
2192
2186
  scheduled_end_time DateTime?
2193
2187
  actual_start_time DateTime?
@@ -2237,6 +2231,7 @@ model Interview {
2237
2231
  /// Candidate invite response (legal consent in ConsentRecord).
2238
2232
  candidate_status String? @default("INVITED")
2239
2233
  candidate_responded_at DateTime?
2234
+ decline_reason String?
2240
2235
  /// When this timestamp moves forward, prior INTERVIEW_SESSION consent grants are stale.
2241
2236
  consent_epoch_at DateTime @default(now())
2242
2237
 
@@ -2260,20 +2255,21 @@ model Interview {
2260
2255
  proctoringSession ProctoringSession?
2261
2256
 
2262
2257
  // Relations
2263
- candidate User? @relation("CandidateInterviews", fields: [candidate_id], references: [id], onDelete: SetNull)
2264
- interviewer User? @relation("InterviewerInterviews", fields: [interviewer_id], references: [id], onDelete: SetNull)
2265
- organisation Organisation? @relation(fields: [organisation_id], references: [id], onDelete: SetNull, onUpdate: Cascade)
2266
- recording_document Document? @relation(fields: [recording_document_id], references: [id], onDelete: SetNull, onUpdate: Cascade)
2267
- job_description JobDescription? @relation(fields: [job_description_id], references: [id], onDelete: SetNull, onUpdate: Cascade)
2268
- resume Resume @relation(fields: [resume_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
2269
- evaluation_plan EvaluationPlan? @relation(fields: [evaluation_plan_id], references: [id], onDelete: SetNull, onUpdate: Cascade)
2270
- application Application? @relation(fields: [application_id], references: [id], onDelete: SetNull, onUpdate: Cascade)
2258
+ candidate User? @relation("CandidateInterviews", fields: [candidate_id], references: [id], onDelete: SetNull)
2259
+ interviewer User? @relation("InterviewerInterviews", fields: [interviewer_id], references: [id], onDelete: SetNull)
2260
+ organisation Organisation? @relation(fields: [organisation_id], references: [id], onDelete: SetNull, onUpdate: Cascade)
2261
+ recording_document Document? @relation(fields: [recording_document_id], references: [id], onDelete: SetNull, onUpdate: Cascade)
2262
+ job_description JobDescription? @relation(fields: [job_description_id], references: [id], onDelete: SetNull, onUpdate: Cascade)
2263
+ resume Resume @relation(fields: [resume_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
2264
+ evaluation_plan EvaluationPlan? @relation(fields: [evaluation_plan_id], references: [id], onDelete: SetNull, onUpdate: Cascade)
2265
+ application Application? @relation(fields: [application_id], references: [id], onDelete: SetNull, onUpdate: Cascade)
2271
2266
  ongoing_evaluation OngoingEvaluation?
2272
2267
  transcripts Transcript[]
2273
2268
  suggestions Suggestion[]
2274
2269
  interviewNotes InterviewNotes[]
2275
2270
  liveAnalysis LiveAnalysis[]
2276
2271
  zoom_meeting ZoomMeeting?
2272
+ activities InterviewActivity[]
2277
2273
 
2278
2274
  // Indexes
2279
2275
  @@index([candidate_id])
@@ -2286,6 +2282,67 @@ model Interview {
2286
2282
  @@schema("public")
2287
2283
  }
2288
2284
 
2285
+ enum InterviewActivityType {
2286
+ SESSION_STARTED
2287
+ SESSION_ENDED
2288
+
2289
+ PARTICIPANT_JOINED
2290
+ PARTICIPANT_LEFT
2291
+ PARTICIPANT_DISCONNECTED
2292
+ PARTICIPANT_RECONNECTED
2293
+
2294
+ REQUESTED_RESCHEDULE
2295
+
2296
+ INTERVIEW_CREATED
2297
+ INTERVIEW_RESCHEDULED
2298
+ INTERVIEW_CANCELLED
2299
+ INTERVIEW_COMPLETED
2300
+
2301
+ @@schema("public")
2302
+ }
2303
+
2304
+ enum InterviewParticipantType {
2305
+ CANDIDATE
2306
+ INTERVIEWER
2307
+ HOST
2308
+
2309
+ @@schema("public")
2310
+ }
2311
+
2312
+ model InterviewActivity {
2313
+ id String @id @default(uuid())
2314
+ organisation_id String?
2315
+ application_id String?
2316
+ session_id String?
2317
+ session_number Int?
2318
+ interview_id String
2319
+
2320
+ event_type InterviewActivityType
2321
+
2322
+ participant_id String?
2323
+ participant_type InterviewParticipantType?
2324
+
2325
+ occurred_at DateTime
2326
+ recorded_at DateTime @default(now())
2327
+
2328
+ source String?
2329
+ idempotency_key String? @unique
2330
+ provider_event_id String? @unique
2331
+
2332
+ metadata Json?
2333
+
2334
+ interview Interview @relation(fields: [interview_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
2335
+ organisation Organisation? @relation(fields: [organisation_id], references: [id], onDelete: SetNull, onUpdate: Cascade)
2336
+
2337
+ @@index([interview_id, occurred_at])
2338
+ @@index([session_id, occurred_at])
2339
+ @@index([participant_id, occurred_at])
2340
+ @@index([organisation_id, occurred_at])
2341
+ @@index([application_id, occurred_at])
2342
+ @@map("interview_activities")
2343
+ @@schema("public")
2344
+ }
2345
+
2289
2346
  model InterviewNotes {
2290
2347
  id String @id @default(uuid())
2291
2348
  interview_id String
@@ -3696,7 +3753,6 @@ model OngoingEvaluation {
3696
3753
  interview Interview? @relation(fields: [interview_id], references: [id], onDelete: SetNull, onUpdate: Cascade)
3697
3754
  assignment Assignment?
3698
3755
  assessment Assessment? @relation(fields: [assessment_id], references: [id], onDelete: SetNull)
3699
- consent_records ConsentRecord[]
3700
3756
 
3701
3757
  @@unique([application_id, evaluation_plan_id])
3702
3758
  @@index([application_id])
@@ -3868,6 +3924,7 @@ model Organisation {
3868
3924
  hiring_unit_assignment_scope HiringUnitAssignmentScope @default(DEPARTMENT)
3869
3925
  organisation_configs OrganisationConfig[]
3870
3926
  activity_events ActivityEvent[]
3927
+ interview_activities InterviewActivity[]
3871
3928
  usage_ledger_entries UsageLedgerEntry[]
3872
3929
  usage_aggregates UsageAggregate[]
3873
3930
  channel_provider_configs ChannelProviderConfig[]
@@ -3933,7 +3990,6 @@ enum BillingTransactionType {
3933
3990
  PURCHASE
3934
3991
  TOP_UP
3935
3992
  REFUND
3936
- SUBSCRIPTION
3937
3993
 
3938
3994
  @@schema("public")
3939
3995
  }
@@ -3952,9 +4008,6 @@ enum BillingTransactionFailureCategory {
3952
4008
  enum BillingPaymentMismatchStatus {
3953
4009
  DETECTED
3954
4010
  UNFULFILLED
3955
- /// Razorpay captured a different amount or currency than the stored transaction: never applied, never
3956
- /// recovered or refunded automatically (refund from the Razorpay dashboard).
3957
- AMOUNT_MISMATCH
3958
4011
 
3959
4012
  @@schema("public")
3960
4013
  }
@@ -4010,7 +4063,6 @@ model BillingTransaction {
4010
4063
  /// What the invoice was raised for.
4011
4064
  enum InvoiceKind {
4012
4065
  PACKAGE
4013
- SUBSCRIPTION
4014
4066
 
4015
4067
  @@schema("public")
4016
4068
  }