@adaptware/eagles-db 0.4.14 → 0.4.18
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/README.md +5 -105
- package/client/edge.js +202 -88
- package/client/index-browser.js +197 -83
- package/client/index.d.ts +51665 -31859
- package/client/index.js +202 -88
- package/client/package.json +1 -1
- package/client/schema.prisma +419 -212
- package/client/wasm.js +197 -83
- package/package.json +1 -1
- package/prisma/.DS_Store +0 -0
- package/prisma/schema/applications.prisma +6 -4
- package/prisma/schema/assessmentLibrary.prisma +14 -14
- package/prisma/schema/assignment.prisma +42 -36
- package/prisma/schema/calendly.prisma +13 -13
- package/prisma/schema/communication.prisma +156 -0
- package/prisma/schema/document.prisma +37 -0
- package/prisma/schema/evaluationPlan.prisma +0 -9
- package/prisma/schema/google.prisma +11 -11
- package/prisma/schema/interview.prisma +3 -0
- package/prisma/schema/jobApplicationFields.prisma +37 -0
- package/prisma/schema/jobApplicationResponse.prisma +33 -0
- package/prisma/schema/jobApplicationTemplate.prisma +30 -0
- package/prisma/schema/jobDescription.prisma +34 -33
- package/prisma/schema/migrations/20260519120000_interview_deadline/migration.sql +2 -0
- package/prisma/schema/migrations/20260520120000_interview_duration_drop_deadline/migration.sql +30 -0
- package/prisma/schema/migrations/20260602120000_resume_file_hash_drop_unique/migration.sql +2 -0
- package/prisma/schema/migrations/20260603120000_job_application_field_is_mandatory/migration.sql +2 -0
- package/prisma/schema/migrations/20260604120000_job_application_response_updated_by_organisation/migration.sql +2 -0
- package/prisma/schema/migrations/20260605120000_drop_document_application_id/migration.sql +3 -0
- package/prisma/schema/migrations/20260610120000_jaf_template_model/migration.sql +70 -0
- package/prisma/schema/migrations/20260610130000_assignment_document_fks/migration.sql +15 -0
- package/prisma/schema/migrations/20260610140000_jaf_draft_activation/migration.sql +12 -0
- package/prisma/schema/notes.prisma +15 -15
- package/prisma/schema/organisation.prisma +34 -30
- package/prisma/schema/organisationConfig.prisma +9 -9
- package/prisma/schema/refreshToken.prisma +8 -8
- package/prisma/schema/resume.prisma +5 -1
- package/prisma/schema/user.prisma +1 -1
- package/client/libquery_engine-darwin.dylib.node +0 -0
- package/prisma/schema/activityEvent.prisma +0 -115
|
@@ -18,36 +18,40 @@ model Organisation {
|
|
|
18
18
|
company_values Json[]
|
|
19
19
|
allowed_email_domains String[]
|
|
20
20
|
|
|
21
|
-
interviewers
|
|
22
|
-
created_at
|
|
23
|
-
updated_at
|
|
24
|
-
created_by
|
|
25
|
-
updated_by
|
|
26
|
-
is_active
|
|
27
|
-
alias
|
|
28
|
-
logo
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
21
|
+
interviewers User[]
|
|
22
|
+
created_at DateTime @default(now())
|
|
23
|
+
updated_at DateTime @updatedAt
|
|
24
|
+
created_by String
|
|
25
|
+
updated_by String
|
|
26
|
+
is_active Boolean @default(true)
|
|
27
|
+
alias String? @unique
|
|
28
|
+
logo String?
|
|
29
|
+
applications Application[]
|
|
30
|
+
user_roles UserRole[]
|
|
31
|
+
job_descriptions JobDescription[]
|
|
32
|
+
job_profiles JobProfile[]
|
|
33
|
+
assessment_library AssessmentLibrary[]
|
|
34
|
+
assignment_library AssignmentLibrary[]
|
|
35
|
+
interviews Interview[]
|
|
36
|
+
assignments Assignment[]
|
|
37
|
+
fit_check FitCheck[] // one-to-many link
|
|
38
|
+
resumes Resume[] // one-to-many link
|
|
39
|
+
approvals Approval[] // one-to-many link
|
|
40
|
+
suggestions Suggestion[]
|
|
41
|
+
ongoing_evaluations OngoingEvaluation[] // optional one-to-many
|
|
42
|
+
actions Action[]
|
|
43
|
+
integration_credentials IntegrationCredential[]
|
|
44
|
+
zoho_sync_mappings ZohoSyncMapping[]
|
|
45
|
+
assessments Assessment[]
|
|
46
|
+
timezone String @default("Asia/Kolkata")
|
|
47
|
+
organisation_configs OrganisationConfig[]
|
|
48
|
+
job_application_fields JobApplicationField[]
|
|
49
|
+
documents Document[]
|
|
50
|
+
job_application_templates JobApplicationTemplate[]
|
|
51
|
+
|
|
52
|
+
channel_provider_configs ChannelProviderConfig[]
|
|
53
|
+
conversations Conversation[]
|
|
54
|
+
communication_messages CommunicationMessage[]
|
|
51
55
|
|
|
52
56
|
@@index([name])
|
|
53
57
|
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
model OrganisationConfig {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
2
|
+
id String @id @default(uuid())
|
|
3
|
+
organisation_id String
|
|
4
|
+
config_key String
|
|
5
|
+
value Json
|
|
6
|
+
created_at DateTime @default(now())
|
|
7
|
+
updated_at DateTime @updatedAt
|
|
8
|
+
organisation Organisation @relation(fields: [organisation_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
|
|
9
9
|
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
@@unique([organisation_id, config_key])
|
|
11
|
+
@@map("organisationConfig")
|
|
12
12
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
model RefreshToken {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
2
|
+
id String @id @default(uuid())
|
|
3
|
+
user_id String
|
|
4
|
+
token String @unique
|
|
5
|
+
is_active Boolean @default(true)
|
|
6
|
+
expires_at DateTime
|
|
7
|
+
created_at DateTime @default(now())
|
|
8
|
+
updated_at DateTime @updatedAt
|
|
9
|
+
user User @relation("TokenRefresh", fields: [user_id], references: [id], onDelete: Cascade)
|
|
10
10
|
}
|
|
@@ -3,8 +3,11 @@ model Resume {
|
|
|
3
3
|
user_id String?
|
|
4
4
|
organisation_id String?
|
|
5
5
|
job_description_id String?
|
|
6
|
+
/// @deprecated Prefer `document_id` + `Document`. Kept until backfill completes.
|
|
6
7
|
uploaded_resume_path String?
|
|
7
|
-
|
|
8
|
+
document_id String? @unique
|
|
9
|
+
/// @deprecated Prefer `Document.file_hash`. Kept for legacy read fallback.
|
|
10
|
+
file_hash String?
|
|
8
11
|
summary Json?
|
|
9
12
|
created_at DateTime @default(now())
|
|
10
13
|
updated_at DateTime @updatedAt
|
|
@@ -15,6 +18,7 @@ model Resume {
|
|
|
15
18
|
user User? @relation(fields: [user_id], references: [id], onDelete: SetNull, onUpdate: Cascade)
|
|
16
19
|
organisation Organisation? @relation(fields: [organisation_id], references: [id], onDelete: SetNull, onUpdate: Cascade)
|
|
17
20
|
job_description JobDescription? @relation(fields: [job_description_id], references: [id], onDelete: SetNull, onUpdate: Cascade)
|
|
21
|
+
document Document? @relation(fields: [document_id], references: [id], onDelete: SetNull, onUpdate: Cascade)
|
|
18
22
|
applications Application[]
|
|
19
23
|
interviews Interview[]
|
|
20
24
|
ongoing_evaluations OngoingEvaluation[] // optional one-to-many
|
|
@@ -67,7 +67,6 @@ model User {
|
|
|
67
67
|
refresh_token_auth RefreshToken[] @relation("TokenRefresh")
|
|
68
68
|
zoom_meeting_participants ZoomMeetingParticipant[]
|
|
69
69
|
notes Notes[]
|
|
70
|
-
recruiter_applications Application[] @relation("ApplicationRecruiter")
|
|
71
70
|
|
|
72
71
|
name String?
|
|
73
72
|
phone String?
|
|
@@ -86,6 +85,7 @@ model User {
|
|
|
86
85
|
veteran_status String?
|
|
87
86
|
disability_status String?
|
|
88
87
|
professional_expertise String?
|
|
88
|
+
documents Document[]
|
|
89
89
|
|
|
90
90
|
@@index([role_id])
|
|
91
91
|
@@index([permission_id])
|
|
Binary file
|
|
@@ -1,115 +0,0 @@
|
|
|
1
|
-
enum ActivityEventType {
|
|
2
|
-
APPLICATION_CREATED
|
|
3
|
-
APPLICATION_STARTED
|
|
4
|
-
APPLICATION_REJECTED
|
|
5
|
-
APPLICATION_SHORTLISTED
|
|
6
|
-
|
|
7
|
-
ROUND_ASSIGNED
|
|
8
|
-
ROUND_COMPLETED
|
|
9
|
-
ROUND_PASSED
|
|
10
|
-
ROUND_FAILED
|
|
11
|
-
|
|
12
|
-
INTERVIEW_CREATED
|
|
13
|
-
INTERVIEW_SCHEDULED
|
|
14
|
-
INTERVIEW_RESCHEDULED
|
|
15
|
-
INTERVIEW_CANCELLED
|
|
16
|
-
INTERVIEW_STARTED
|
|
17
|
-
INTERVIEW_COMPLETED
|
|
18
|
-
INTERVIEW_NO_SHOW
|
|
19
|
-
INTERVIEW_EVALUATION_PENDING
|
|
20
|
-
INTERVIEW_EVALUATED
|
|
21
|
-
|
|
22
|
-
FEEDBACK_SUBMITTED
|
|
23
|
-
|
|
24
|
-
ASSIGNMENT_CREATED
|
|
25
|
-
ASSIGNMENT_STARTED
|
|
26
|
-
ASSIGNMENT_COMPLETED
|
|
27
|
-
ASSIGNMENT_CANCELLED
|
|
28
|
-
ASSIGNMENT_EVALUATED
|
|
29
|
-
|
|
30
|
-
ASSESSMENT_CREATED
|
|
31
|
-
ASSESSMENT_STARTED
|
|
32
|
-
ASSESSMENT_COMPLETED
|
|
33
|
-
ASSESSMENT_CANCELLED
|
|
34
|
-
ASSESSMENT_EVALUATED
|
|
35
|
-
|
|
36
|
-
JOB_CREATED
|
|
37
|
-
JOB_PUBLISHED
|
|
38
|
-
JOB_CLOSED
|
|
39
|
-
JOB_DEACTIVATED
|
|
40
|
-
|
|
41
|
-
EVALUATION_PLAN_CREATED
|
|
42
|
-
EVALUATION_PLAN_PUBLISHED
|
|
43
|
-
EVALUATION_PLAN_DELETED
|
|
44
|
-
EVALUATION_PLAN_UPDATED
|
|
45
|
-
STATUS_CHANGED
|
|
46
|
-
|
|
47
|
-
CUSTOM
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
enum ActivityEntityType {
|
|
51
|
-
APPLICATION
|
|
52
|
-
|
|
53
|
-
CANDIDATE
|
|
54
|
-
|
|
55
|
-
JOB
|
|
56
|
-
|
|
57
|
-
ONGOING_EVALUATION
|
|
58
|
-
|
|
59
|
-
EVALUATION_PLAN
|
|
60
|
-
|
|
61
|
-
INTERVIEW
|
|
62
|
-
|
|
63
|
-
ASSIGNMENT
|
|
64
|
-
|
|
65
|
-
ASSESSMENT
|
|
66
|
-
|
|
67
|
-
ORGANISATION
|
|
68
|
-
|
|
69
|
-
USER
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
enum ActivityEntityActorType {
|
|
73
|
-
USER
|
|
74
|
-
|
|
75
|
-
SYSTEM
|
|
76
|
-
|
|
77
|
-
AI_AGENT
|
|
78
|
-
|
|
79
|
-
WEBHOOK
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
model ActivityEvent {
|
|
83
|
-
id String @id @default(uuid())
|
|
84
|
-
|
|
85
|
-
organisation_id String?
|
|
86
|
-
|
|
87
|
-
event_type ActivityEventType
|
|
88
|
-
|
|
89
|
-
entity_type ActivityEntityType
|
|
90
|
-
entity_id String
|
|
91
|
-
|
|
92
|
-
actor_id String?
|
|
93
|
-
actor_type ActivityEntityActorType
|
|
94
|
-
|
|
95
|
-
related_entities Json?
|
|
96
|
-
|
|
97
|
-
snapshot Json?
|
|
98
|
-
|
|
99
|
-
payload Json?
|
|
100
|
-
|
|
101
|
-
schema_version Int @default(1)
|
|
102
|
-
|
|
103
|
-
occurred_at DateTime
|
|
104
|
-
|
|
105
|
-
created_at DateTime @default(now())
|
|
106
|
-
|
|
107
|
-
organisation Organisation? @relation(fields: [organisation_id], references: [id])
|
|
108
|
-
|
|
109
|
-
@@index([organisation_id, occurred_at])
|
|
110
|
-
@@index([organisation_id, event_type])
|
|
111
|
-
@@index([entity_type, entity_id])
|
|
112
|
-
@@index([actor_id])
|
|
113
|
-
@@index([occurred_at])
|
|
114
|
-
@@map("activity_events")
|
|
115
|
-
}
|