@adaptware/eagles-db 0.1.38 → 0.1.39
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 +6 -5
- package/client/index-browser.js +3 -2
- package/client/index.d.ts +839 -432
- package/client/index.js +6 -5
- package/client/package.json +1 -1
- package/client/schema.prisma +16 -13
- package/client/wasm.js +3 -2
- package/package.json +1 -1
- package/prisma/schema/activityLog.prisma +14 -12
- package/prisma/schema/applications.prisma +1 -0
- package/prisma/schema/user.prisma +16 -16
package/client/package.json
CHANGED
package/client/schema.prisma
CHANGED
|
@@ -84,20 +84,22 @@ 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
|
+
user User? @relation(fields: [userId], references: [id])
|
|
100
|
+
userId String?
|
|
99
101
|
|
|
100
|
-
@@index([
|
|
102
|
+
@@index([application_id])
|
|
101
103
|
}
|
|
102
104
|
|
|
103
105
|
// PENDING could be understood as unscreened
|
|
@@ -130,6 +132,7 @@ model Application {
|
|
|
130
132
|
fit_check FitCheck? @relation(fields: [fit_check_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
|
|
131
133
|
interviews Interview[]
|
|
132
134
|
ongoing_evaluations OngoingEvaluation[]
|
|
135
|
+
activity_logs ActivityLog[]
|
|
133
136
|
// Audit fields
|
|
134
137
|
created_at DateTime @default(now())
|
|
135
138
|
updated_at DateTime @updatedAt
|
|
@@ -1182,7 +1185,6 @@ model User {
|
|
|
1182
1185
|
candidateResponses CandidateQuestionResponse[]
|
|
1183
1186
|
questions Question[]
|
|
1184
1187
|
ongoing_evaluations OngoingEvaluation[] // optional one-to-many
|
|
1185
|
-
candidate_activity_logs ActivityLog[] @relation("CandidateActivityLogs")
|
|
1186
1188
|
actor_activity_logs ActivityLog[] @relation("ActorActivityLogs")
|
|
1187
1189
|
actions Action[]
|
|
1188
1190
|
calendly Calendly?
|
|
@@ -1205,6 +1207,7 @@ model User {
|
|
|
1205
1207
|
ethnicity String?
|
|
1206
1208
|
veteran_status String?
|
|
1207
1209
|
disability_status String?
|
|
1210
|
+
activityLogs ActivityLog[]
|
|
1208
1211
|
|
|
1209
1212
|
@@index([role_id])
|
|
1210
1213
|
@@index([permission_id])
|
package/client/wasm.js
CHANGED
|
@@ -165,14 +165,15 @@ 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',
|
|
172
172
|
timestamp: 'timestamp',
|
|
173
173
|
metadata: 'metadata',
|
|
174
174
|
created_at: 'created_at',
|
|
175
|
-
is_active: 'is_active'
|
|
175
|
+
is_active: 'is_active',
|
|
176
|
+
userId: 'userId'
|
|
176
177
|
};
|
|
177
178
|
|
|
178
179
|
exports.Prisma.ApplicationScalarFieldEnum = {
|
package/package.json
CHANGED
|
@@ -5,18 +5,20 @@ 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
|
+
user User? @relation(fields: [userId], references: [id])
|
|
21
|
+
userId String?
|
|
20
22
|
|
|
21
|
-
@@index([
|
|
23
|
+
@@index([application_id])
|
|
22
24
|
}
|
|
@@ -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,29 @@ 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?
|
|
68
|
+
activityLogs ActivityLog[]
|
|
69
69
|
|
|
70
70
|
@@index([role_id])
|
|
71
71
|
@@index([permission_id])
|