@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/client/edge.js +10 -5
- package/client/index-browser.js +7 -2
- package/client/index.d.ts +7 -2
- package/client/index.js +10 -5
- package/client/package.json +1 -1
- package/client/schema.prisma +7 -0
- package/client/wasm.js +9 -4
- package/package.json +1 -1
- package/prisma/schema/evaluationPlan.prisma +4 -0
- package/prisma/schema/migrations/20261023120000_payment_mismatch_amount/migration.sql +5 -0
- package/prisma/schema/ongoingEvaluation.prisma +49 -49
- package/prisma/schema/payment/billingTransaction.prisma +3 -0
package/package.json
CHANGED
|
@@ -21,61 +21,61 @@ enum OngoingEvaluationRoundStatus {
|
|
|
21
21
|
|
|
22
22
|
model OngoingEvaluation {
|
|
23
23
|
// Primary Key
|
|
24
|
-
id
|
|
24
|
+
id String @id @default(uuid())
|
|
25
25
|
// Foreign Keys
|
|
26
|
-
organisation_id
|
|
27
|
-
application_id
|
|
28
|
-
candidate_id
|
|
29
|
-
resume_id
|
|
30
|
-
job_description_id
|
|
31
|
-
evaluation_plan_id
|
|
32
|
-
interview_id
|
|
33
|
-
assignment_id
|
|
34
|
-
assessment_id
|
|
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
|
|
37
|
-
round_status
|
|
38
|
-
comments
|
|
39
|
-
completed_at
|
|
40
|
-
assigned_at
|
|
41
|
-
result_at
|
|
42
|
-
is_committed
|
|
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
|
|
45
|
-
description
|
|
46
|
-
order_no
|
|
47
|
-
round_purpose
|
|
48
|
-
focus_areas
|
|
49
|
-
topics
|
|
50
|
-
assignee
|
|
51
|
-
elimination_round
|
|
52
|
-
evaluation_type
|
|
53
|
-
type_of_round
|
|
54
|
-
duration
|
|
55
|
-
deadline
|
|
56
|
-
duration_unit
|
|
57
|
-
details
|
|
58
|
-
category
|
|
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
|
|
61
|
-
relevance_reasoning
|
|
60
|
+
relevance_score Float?
|
|
61
|
+
relevance_reasoning String?
|
|
62
62
|
// Audit Fields
|
|
63
|
-
created_at
|
|
64
|
-
updated_at
|
|
65
|
-
created_by
|
|
66
|
-
updated_by
|
|
67
|
-
is_active
|
|
68
|
-
is_current
|
|
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
|
|
71
|
-
application
|
|
72
|
-
candidate
|
|
73
|
-
resume
|
|
74
|
-
organisation
|
|
75
|
-
evaluation_plan
|
|
76
|
-
interview
|
|
77
|
-
assignment
|
|
78
|
-
assessment
|
|
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
|
}
|