@adaptware/eagles-db 0.1.38 → 0.1.40
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 +4 -4
- package/client/index-browser.js +1 -1
- package/client/index.d.ts +377 -593
- package/client/index.js +4 -4
- package/client/package.json +1 -1
- package/client/schema.prisma +13 -13
- package/client/wasm.js +1 -1
- package/package.json +1 -1
- package/prisma/schema/activityLog.prisma +12 -12
- package/prisma/schema/applications.prisma +1 -0
- package/prisma/schema/user.prisma +15 -16
package/client/package.json
CHANGED
package/client/schema.prisma
CHANGED
|
@@ -84,20 +84,20 @@ enum ActivityActorType {
|
|
|
84
84
|
}
|
|
85
85
|
|
|
86
86
|
model ActivityLog {
|
|
87
|
-
id
|
|
88
|
-
|
|
89
|
-
actor_id
|
|
90
|
-
actor_type
|
|
91
|
-
message
|
|
92
|
-
timestamp
|
|
93
|
-
metadata
|
|
94
|
-
created_at
|
|
95
|
-
is_active
|
|
87
|
+
id String @id @default(uuid())
|
|
88
|
+
application_id String
|
|
89
|
+
actor_id String?
|
|
90
|
+
actor_type ActivityActorType @default(USER)
|
|
91
|
+
message String
|
|
92
|
+
timestamp DateTime @default(now())
|
|
93
|
+
metadata Json?
|
|
94
|
+
created_at DateTime @default(now())
|
|
95
|
+
is_active Boolean @default(true)
|
|
96
96
|
// Relations
|
|
97
|
-
|
|
98
|
-
|
|
97
|
+
actor User? @relation("ActorActivityLogs", fields: [actor_id], references: [id], onDelete: SetNull, onUpdate: Cascade)
|
|
98
|
+
application Application @relation(fields: [application_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
|
|
99
99
|
|
|
100
|
-
@@index([
|
|
100
|
+
@@index([application_id])
|
|
101
101
|
}
|
|
102
102
|
|
|
103
103
|
// PENDING could be understood as unscreened
|
|
@@ -130,6 +130,7 @@ model Application {
|
|
|
130
130
|
fit_check FitCheck? @relation(fields: [fit_check_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
|
|
131
131
|
interviews Interview[]
|
|
132
132
|
ongoing_evaluations OngoingEvaluation[]
|
|
133
|
+
activity_logs ActivityLog[]
|
|
133
134
|
// Audit fields
|
|
134
135
|
created_at DateTime @default(now())
|
|
135
136
|
updated_at DateTime @updatedAt
|
|
@@ -1182,7 +1183,6 @@ model User {
|
|
|
1182
1183
|
candidateResponses CandidateQuestionResponse[]
|
|
1183
1184
|
questions Question[]
|
|
1184
1185
|
ongoing_evaluations OngoingEvaluation[] // optional one-to-many
|
|
1185
|
-
candidate_activity_logs ActivityLog[] @relation("CandidateActivityLogs")
|
|
1186
1186
|
actor_activity_logs ActivityLog[] @relation("ActorActivityLogs")
|
|
1187
1187
|
actions Action[]
|
|
1188
1188
|
calendly Calendly?
|
package/client/wasm.js
CHANGED
|
@@ -165,7 +165,7 @@ exports.Prisma.ActionScalarFieldEnum = {
|
|
|
165
165
|
|
|
166
166
|
exports.Prisma.ActivityLogScalarFieldEnum = {
|
|
167
167
|
id: 'id',
|
|
168
|
-
|
|
168
|
+
application_id: 'application_id',
|
|
169
169
|
actor_id: 'actor_id',
|
|
170
170
|
actor_type: 'actor_type',
|
|
171
171
|
message: 'message',
|
package/package.json
CHANGED
|
@@ -5,18 +5,18 @@ enum ActivityActorType {
|
|
|
5
5
|
}
|
|
6
6
|
|
|
7
7
|
model ActivityLog {
|
|
8
|
-
id
|
|
9
|
-
|
|
10
|
-
actor_id
|
|
11
|
-
actor_type
|
|
12
|
-
message
|
|
13
|
-
timestamp
|
|
14
|
-
metadata
|
|
15
|
-
created_at
|
|
16
|
-
is_active
|
|
8
|
+
id String @id @default(uuid())
|
|
9
|
+
application_id String
|
|
10
|
+
actor_id String?
|
|
11
|
+
actor_type ActivityActorType @default(USER)
|
|
12
|
+
message String
|
|
13
|
+
timestamp DateTime @default(now())
|
|
14
|
+
metadata Json?
|
|
15
|
+
created_at DateTime @default(now())
|
|
16
|
+
is_active Boolean @default(true)
|
|
17
17
|
// Relations
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
actor User? @relation("ActorActivityLogs", fields: [actor_id], references: [id], onDelete: SetNull, onUpdate: Cascade)
|
|
19
|
+
application Application @relation(fields: [application_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
|
|
20
20
|
|
|
21
|
-
@@index([
|
|
21
|
+
@@index([application_id])
|
|
22
22
|
}
|
|
@@ -28,6 +28,7 @@ model Application {
|
|
|
28
28
|
fit_check FitCheck? @relation(fields: [fit_check_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
|
|
29
29
|
interviews Interview[]
|
|
30
30
|
ongoing_evaluations OngoingEvaluation[]
|
|
31
|
+
activity_logs ActivityLog[]
|
|
31
32
|
// Audit fields
|
|
32
33
|
created_at DateTime @default(now())
|
|
33
34
|
updated_at DateTime @updatedAt
|
|
@@ -43,29 +43,28 @@ model User {
|
|
|
43
43
|
candidateResponses CandidateQuestionResponse[]
|
|
44
44
|
questions Question[]
|
|
45
45
|
ongoing_evaluations OngoingEvaluation[] // optional one-to-many
|
|
46
|
-
candidate_activity_logs ActivityLog[] @relation("CandidateActivityLogs")
|
|
47
46
|
actor_activity_logs ActivityLog[] @relation("ActorActivityLogs")
|
|
48
47
|
actions Action[]
|
|
49
48
|
calendly Calendly?
|
|
50
49
|
google Google?
|
|
51
50
|
fitChecks FitCheck[]
|
|
52
51
|
|
|
53
|
-
name
|
|
54
|
-
phone
|
|
55
|
-
description
|
|
56
|
-
date_of_birth
|
|
57
|
-
designation
|
|
58
|
-
location
|
|
59
|
-
salary
|
|
60
|
-
work_experience
|
|
61
|
-
education
|
|
62
|
-
skills
|
|
63
|
-
notice_period
|
|
52
|
+
name String?
|
|
53
|
+
phone String?
|
|
54
|
+
description String?
|
|
55
|
+
date_of_birth DateTime?
|
|
56
|
+
designation String?
|
|
57
|
+
location String?
|
|
58
|
+
salary String?
|
|
59
|
+
work_experience Json?
|
|
60
|
+
education Json?
|
|
61
|
+
skills Json?
|
|
62
|
+
notice_period String?
|
|
64
63
|
preferred_work_mode String?
|
|
65
|
-
gender
|
|
66
|
-
ethnicity
|
|
67
|
-
veteran_status
|
|
68
|
-
disability_status
|
|
64
|
+
gender String?
|
|
65
|
+
ethnicity String?
|
|
66
|
+
veteran_status String?
|
|
67
|
+
disability_status String?
|
|
69
68
|
|
|
70
69
|
@@index([role_id])
|
|
71
70
|
@@index([permission_id])
|