@adaptware/eagles-db 0.6.21 → 0.6.22

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-3e5a725fe27459090e27c7747609f51d05077b562ccea6362a59012e9af7b7c3",
2
+ "name": "prisma-client-f9dfd42959517f82e3b36fae4c5581f4a719fe74ada0cbbbee19a80532ba05ec",
3
3
  "main": "index.js",
4
4
  "types": "index.d.ts",
5
5
  "browser": "default.js",
@@ -1252,9 +1252,11 @@ 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.
1255
1256
  INTERVIEW_SESSION
1256
- /// Read-only catalog document; no ConsentRecord submit flow
1257
+ /// Read-only catalog document; no ConsentRecord submit flow. Retained until the next production push.
1257
1258
  PRIVACY_POLICY
1259
+ EVALUATION_CONSENT
1258
1260
 
1259
1261
  @@schema("public")
1260
1262
  }
@@ -1393,7 +1395,9 @@ model ConsentRecord {
1393
1395
  // Dual-existence for non-breaking migration
1394
1396
  reference_type ConsentReferenceType?
1395
1397
  reference_id String?
1398
+ /// OngoingEvaluation.id. Reference columns stay until the next production push.
1396
1399
  evaluation_id String?
1400
+ evaluation OngoingEvaluation? @relation(fields: [evaluation_id], references: [id], onDelete: SetNull)
1397
1401
 
1398
1402
  ip_address String?
1399
1403
  user_agent String?
@@ -1647,6 +1651,10 @@ enum EvaluationCategory {
1647
1651
  BUSINESS_SCREENING
1648
1652
  BUSINESS_ROUND
1649
1653
  BEHAVIORAL_ROUND
1654
+ FILTERING
1655
+ EVALUATION
1656
+ DECISION
1657
+ OFFER
1650
1658
 
1651
1659
  @@schema("public")
1652
1660
  }
@@ -2180,8 +2188,6 @@ model Interview {
2180
2188
  candidate_interview_metadata Json?
2181
2189
  /// Data
2182
2190
  room_name String?
2183
- /// Active logical session while a sitting is in progress; null when no session is open.
2184
- current_session_id String?
2185
2191
  scheduled_start_time DateTime?
2186
2192
  scheduled_end_time DateTime?
2187
2193
  actual_start_time DateTime?
@@ -2231,7 +2237,6 @@ model Interview {
2231
2237
  /// Candidate invite response (legal consent in ConsentRecord).
2232
2238
  candidate_status String? @default("INVITED")
2233
2239
  candidate_responded_at DateTime?
2234
- decline_reason String?
2235
2240
  /// When this timestamp moves forward, prior INTERVIEW_SESSION consent grants are stale.
2236
2241
  consent_epoch_at DateTime @default(now())
2237
2242
 
@@ -2255,21 +2260,20 @@ model Interview {
2255
2260
  proctoringSession ProctoringSession?
2256
2261
 
2257
2262
  // Relations
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)
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)
2266
2271
  ongoing_evaluation OngoingEvaluation?
2267
2272
  transcripts Transcript[]
2268
2273
  suggestions Suggestion[]
2269
2274
  interviewNotes InterviewNotes[]
2270
2275
  liveAnalysis LiveAnalysis[]
2271
2276
  zoom_meeting ZoomMeeting?
2272
- activities InterviewActivity[]
2273
2277
 
2274
2278
  // Indexes
2275
2279
  @@index([candidate_id])
@@ -2282,67 +2286,6 @@ model Interview {
2282
2286
  @@schema("public")
2283
2287
  }
2284
2288
 
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
-
2346
2289
  model InterviewNotes {
2347
2290
  id String @id @default(uuid())
2348
2291
  interview_id String
@@ -3753,6 +3696,7 @@ model OngoingEvaluation {
3753
3696
  interview Interview? @relation(fields: [interview_id], references: [id], onDelete: SetNull, onUpdate: Cascade)
3754
3697
  assignment Assignment?
3755
3698
  assessment Assessment? @relation(fields: [assessment_id], references: [id], onDelete: SetNull)
3699
+ consent_records ConsentRecord[]
3756
3700
 
3757
3701
  @@unique([application_id, evaluation_plan_id])
3758
3702
  @@index([application_id])
@@ -3924,7 +3868,6 @@ model Organisation {
3924
3868
  hiring_unit_assignment_scope HiringUnitAssignmentScope @default(DEPARTMENT)
3925
3869
  organisation_configs OrganisationConfig[]
3926
3870
  activity_events ActivityEvent[]
3927
- interview_activities InterviewActivity[]
3928
3871
  usage_ledger_entries UsageLedgerEntry[]
3929
3872
  usage_aggregates UsageAggregate[]
3930
3873
  channel_provider_configs ChannelProviderConfig[]
@@ -3990,6 +3933,7 @@ enum BillingTransactionType {
3990
3933
  PURCHASE
3991
3934
  TOP_UP
3992
3935
  REFUND
3936
+ SUBSCRIPTION
3993
3937
 
3994
3938
  @@schema("public")
3995
3939
  }
@@ -4008,6 +3952,9 @@ enum BillingTransactionFailureCategory {
4008
3952
  enum BillingPaymentMismatchStatus {
4009
3953
  DETECTED
4010
3954
  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
4011
3958
 
4012
3959
  @@schema("public")
4013
3960
  }
@@ -4063,6 +4010,7 @@ model BillingTransaction {
4063
4010
  /// What the invoice was raised for.
4064
4011
  enum InvoiceKind {
4065
4012
  PACKAGE
4013
+ SUBSCRIPTION
4066
4014
 
4067
4015
  @@schema("public")
4068
4016
  }