@adaptware/eagles-db 0.6.16 → 0.6.19

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.16",
3
+ "version": "0.6.19",
4
4
  "description": "A Prisma client package for Treadspace database operations",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -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
  }
@@ -0,0 +1,5 @@
1
+ -- Captured amount/currency differs from the stored billing transaction: flagged on the row so Super Admin sees it.
2
+ -- Additive only: one new enum value.
3
+
4
+ -- AlterEnum
5
+ ALTER TYPE "BillingPaymentMismatchStatus" ADD VALUE 'AMOUNT_MISMATCH';
@@ -21,61 +21,61 @@ enum OngoingEvaluationRoundStatus {
21
21
 
22
22
  model OngoingEvaluation {
23
23
  // Primary Key
24
- id String @id @default(uuid())
24
+ id String @id @default(uuid())
25
25
  // Foreign Keys
26
- organisation_id String
27
- application_id String
28
- candidate_id String
29
- resume_id String
30
- job_description_id String
31
- evaluation_plan_id String
32
- interview_id String? @unique
33
- assignment_id String? @unique
34
- assessment_id String? @unique
26
+ organisation_id String
27
+ application_id String
28
+ candidate_id String
29
+ resume_id String
30
+ job_description_id String
31
+ evaluation_plan_id String
32
+ interview_id String? @unique
33
+ assignment_id String? @unique
34
+ assessment_id String? @unique
35
35
  // Data Fields
36
- state OngoingEvaluationState? @default(NOT_STARTED)
37
- round_status OngoingEvaluationRoundStatus? @default(NOT_SCHEDULED)
38
- comments String? @default("")
39
- completed_at DateTime?
40
- assigned_at DateTime?
41
- result_at DateTime?
42
- is_committed Boolean?
36
+ state OngoingEvaluationState? @default(NOT_STARTED)
37
+ round_status OngoingEvaluationRoundStatus? @default(NOT_SCHEDULED)
38
+ comments String? @default("")
39
+ completed_at DateTime?
40
+ assigned_at DateTime?
41
+ result_at DateTime?
42
+ is_committed Boolean?
43
43
  /// Evaluation Plan Fields Filled After Round Started
44
- title String?
45
- description String?
46
- order_no Int?
47
- round_purpose String?
48
- focus_areas String[]
49
- topics String[]
50
- assignee String?
51
- elimination_round Boolean? @default(false)
52
- evaluation_type EvaluationType?
53
- type_of_round RoundType?
54
- duration Int?
55
- deadline Int?
56
- duration_unit DurationUnit?
57
- details Json?
58
- category EvaluationCategory?
44
+ title String?
45
+ description String?
46
+ order_no Int?
47
+ round_purpose String?
48
+ focus_areas String[]
49
+ topics String[]
50
+ assignee String?
51
+ elimination_round Boolean? @default(false)
52
+ evaluation_type EvaluationType?
53
+ type_of_round RoundType?
54
+ duration Int?
55
+ deadline Int?
56
+ duration_unit DurationUnit?
57
+ details Json?
58
+ category EvaluationCategory?
59
59
  /// Round relevance vs JD / application. Unused until a later writer.
60
- relevance_score Float?
61
- relevance_reasoning String?
60
+ relevance_score Float?
61
+ relevance_reasoning String?
62
62
  // Audit Fields
63
- created_at DateTime @default(now())
64
- updated_at DateTime @updatedAt
65
- created_by String
66
- updated_by String
67
- is_active Boolean @default(true)
68
- is_current Boolean @default(false)
63
+ created_at DateTime @default(now())
64
+ updated_at DateTime @updatedAt
65
+ created_by String
66
+ updated_by String
67
+ is_active Boolean @default(true)
68
+ is_current Boolean @default(false)
69
69
  // Relations
70
- jobDescription JobDescription? @relation(fields: [job_description_id], references: [id], onDelete: SetNull)
71
- application Application @relation(fields: [application_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
72
- candidate User? @relation(fields: [candidate_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
73
- resume Resume? @relation(fields: [resume_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
74
- organisation Organisation? @relation(fields: [organisation_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
75
- evaluation_plan EvaluationPlan @relation(fields: [evaluation_plan_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
76
- interview Interview? @relation(fields: [interview_id], references: [id], onDelete: SetNull, onUpdate: Cascade)
77
- assignment Assignment?
78
- assessment Assessment? @relation(fields: [assessment_id], references: [id], onDelete: SetNull)
70
+ jobDescription JobDescription? @relation(fields: [job_description_id], references: [id], onDelete: SetNull)
71
+ application Application @relation(fields: [application_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
72
+ candidate User? @relation(fields: [candidate_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
73
+ resume Resume? @relation(fields: [resume_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
74
+ organisation Organisation? @relation(fields: [organisation_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
75
+ evaluation_plan EvaluationPlan @relation(fields: [evaluation_plan_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
76
+ interview Interview? @relation(fields: [interview_id], references: [id], onDelete: SetNull, onUpdate: Cascade)
77
+ assignment Assignment?
78
+ assessment Assessment? @relation(fields: [assessment_id], references: [id], onDelete: SetNull)
79
79
 
80
80
  @@unique([application_id, evaluation_plan_id])
81
81
  @@index([application_id])
@@ -36,6 +36,9 @@ enum BillingTransactionFailureCategory {
36
36
  enum BillingPaymentMismatchStatus {
37
37
  DETECTED
38
38
  UNFULFILLED
39
+ /// Razorpay captured a different amount or currency than the stored transaction: never applied, never
40
+ /// recovered or refunded automatically (refund from the Razorpay dashboard).
41
+ AMOUNT_MISMATCH
39
42
 
40
43
  @@schema("public")
41
44
  }