@adaptware/eagles-db 0.4.34 → 0.4.36
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 +11 -869
- package/client/index-browser.js +42 -901
- package/client/index.d.ts +27423 -80978
- package/client/index.js +11 -869
- package/client/package.json +1 -1
- package/client/schema.prisma +128 -1594
- package/client/wasm.js +11 -869
- package/package.json +1 -1
- package/prisma/schema/CandidateQuestionResponse.prisma +0 -1
- package/prisma/schema/UserRole.prisma +0 -1
- package/prisma/schema/action.prisma +0 -5
- package/prisma/schema/activityLog.prisma +0 -3
- package/prisma/schema/applications.prisma +2 -12
- package/prisma/schema/approval.prisma +0 -2
- package/prisma/schema/assessment.prisma +0 -1
- package/prisma/schema/assessmentLibrary.prisma +0 -1
- package/prisma/schema/assessmentQuestion.prisma +0 -1
- package/prisma/schema/assignment.prisma +0 -3
- package/prisma/schema/assignmentLibrary.prisma +0 -1
- package/prisma/schema/authModule.prisma +0 -3
- package/prisma/schema/budget.prisma +0 -6
- package/prisma/schema/calendly.prisma +0 -2
- package/prisma/schema/candidateProfile.prisma +0 -2
- package/prisma/schema/communication.prisma +0 -11
- package/prisma/schema/contactUs.prisma +0 -2
- package/prisma/schema/document.prisma +1 -1
- package/prisma/schema/evaluationPlan.prisma +10 -35
- package/prisma/schema/feedback.prisma +0 -1
- package/prisma/schema/fitCheck.prisma +0 -3
- package/prisma/schema/google.prisma +0 -2
- package/prisma/schema/integration.prisma +0 -13
- package/prisma/schema/interview.prisma +0 -9
- package/prisma/schema/interviewNotes.prisma +0 -1
- package/prisma/schema/jobApplicationFields.prisma +0 -3
- package/prisma/schema/jobApplicationResponse.prisma +0 -1
- package/prisma/schema/jobApplicationTemplate.prisma +0 -3
- package/prisma/schema/jobDescription.prisma +35 -43
- package/prisma/schema/jobDescriptionData.prisma +0 -1
- package/prisma/schema/jobProfile.prisma +0 -3
- package/prisma/schema/liveAnalysis.prisma +0 -1
- package/prisma/schema/message.prisma +0 -2
- package/prisma/schema/migrations/20260522120000_ongoing_evaluation_record_kind/migration.sql +25 -0
- package/prisma/schema/migrations/20260523120000_replace_record_kind_with_is_committed/migration.sql +24 -0
- package/prisma/schema/migrations/20260528120000_drop_job_description_recommendation_config/migration.sql +2 -0
- package/prisma/schema/migrations/20260710120000_add_resume_rendered_export_fields/migration.sql +9 -0
- package/prisma/schema/notes.prisma +0 -1
- package/prisma/schema/ongoingEvaluation.prisma +0 -7
- package/prisma/schema/organisation.prisma +31 -39
- package/prisma/schema/organisationConfig.prisma +0 -1
- package/prisma/schema/permission.prisma +0 -1
- package/prisma/schema/promise.prisma +0 -3
- package/prisma/schema/questions.prisma +0 -4
- package/prisma/schema/refreshToken.prisma +0 -2
- package/prisma/schema/resume.prisma +5 -1
- package/prisma/schema/resumeData.prisma +0 -1
- package/prisma/schema/schema.prisma +0 -2
- package/prisma/schema/suggestion.prisma +0 -1
- package/prisma/schema/transcript.prisma +0 -1
- package/prisma/schema/user.prisma +0 -10
- package/prisma/schema/userProfile.prisma +0 -2
- package/prisma/schema/zoomMeeting.prisma +0 -5
- package/client/libquery_engine-darwin.dylib.node +0 -0
- package/prisma/.DS_Store +0 -0
- package/prisma/migrations/20260519120000_migrate_shortlisted_to_selected/migration.sql +0 -2
- package/prisma/schema/.DS_Store +0 -0
- package/prisma/schema/activityEvent.prisma +0 -138
- package/prisma/schema/applicationAnalytics.prisma +0 -87
- package/prisma/schema/assessmentRoundAnalytics.prisma +0 -119
- package/prisma/schema/assignmentRoundAnalytics.prisma +0 -109
- package/prisma/schema/interviewRoundAnalytics.prisma +0 -140
- package/prisma/schema/interviewerAnalytics.prisma +0 -129
- package/prisma/schema/jobRoundAnalytics.prisma +0 -101
- package/prisma/schema/migrations/20260519120000_add_analytics_schema/migration.sql +0 -84
- package/prisma/schema/migrations/20260625120000_add_interviewer_analytics/migration.sql +0 -26
- package/prisma/schema/migrations/20260629120000_add_user_lifecycle_activity_events/migration.sql +0 -13
- package/prisma/schema/migrations/20260629140000_drop_organisation_org_code/migration.sql +0 -2
- package/prisma/schema/migrations/20260629160000_employee_codes_dual_interviewer_analytics/migration.sql +0 -87
- package/prisma/schema/migrations/20260630120000_add_application_sources/migration.sql +0 -38
- package/prisma/schema/migrations/20260701120000_add_source_effectiveness_analytics/migration.sql +0 -40
- package/prisma/schema/migrations/20260702120000_add_analytics_daily_tables/migration.sql +0 -232
- package/prisma/schema/openJobAnalytics.prisma +0 -85
- package/prisma/schema/pipelineDistributionAnalytics.prisma +0 -64
- package/prisma/schema/reportingOverviewJobAnalytics.prisma +0 -49
- package/prisma/schema/roundAnalytics.prisma +0 -145
- package/prisma/schema/source.prisma +0 -36
- package/prisma/schema/sourceEffectivenessAnalytics.prisma +0 -79
package/package.json
CHANGED
|
@@ -2,16 +2,12 @@ enum ActionType {
|
|
|
2
2
|
TAKE_INTERVIEW
|
|
3
3
|
PROVIDE_FEEDBACK
|
|
4
4
|
SCHEDULE_INTERVIEW
|
|
5
|
-
|
|
6
|
-
@@schema("public")
|
|
7
5
|
}
|
|
8
6
|
|
|
9
7
|
enum ActionStatus {
|
|
10
8
|
PENDING
|
|
11
9
|
COMPLETED
|
|
12
10
|
CANCELLED
|
|
13
|
-
|
|
14
|
-
@@schema("public")
|
|
15
11
|
}
|
|
16
12
|
|
|
17
13
|
model Action {
|
|
@@ -36,5 +32,4 @@ model Action {
|
|
|
36
32
|
@@index([assignee_id, action_type])
|
|
37
33
|
@@index([status])
|
|
38
34
|
@@index([due_date])
|
|
39
|
-
@@schema("public")
|
|
40
35
|
}
|
|
@@ -2,8 +2,6 @@ enum ActivityActorType {
|
|
|
2
2
|
USER
|
|
3
3
|
AI
|
|
4
4
|
SYSTEM
|
|
5
|
-
|
|
6
|
-
@@schema("public")
|
|
7
5
|
}
|
|
8
6
|
|
|
9
7
|
model ActivityLog {
|
|
@@ -21,5 +19,4 @@ model ActivityLog {
|
|
|
21
19
|
application Application @relation(fields: [application_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
|
|
22
20
|
|
|
23
21
|
@@index([application_id])
|
|
24
|
-
@@schema("public")
|
|
25
22
|
}
|
|
@@ -2,12 +2,9 @@
|
|
|
2
2
|
enum ApplicationStatus {
|
|
3
3
|
PENDING
|
|
4
4
|
IN_PROGRESS
|
|
5
|
-
SELECTED
|
|
6
5
|
SHORTLISTED
|
|
6
|
+
SELECTED
|
|
7
7
|
REJECTED
|
|
8
|
-
ON_HOLD
|
|
9
|
-
|
|
10
|
-
@@schema("public")
|
|
11
8
|
}
|
|
12
9
|
|
|
13
10
|
model Application {
|
|
@@ -20,11 +17,8 @@ model Application {
|
|
|
20
17
|
applied_at DateTime @default(now())
|
|
21
18
|
evaluation_plan_id String?
|
|
22
19
|
fit_check_id String? @unique
|
|
23
|
-
recruiter_id String?
|
|
24
|
-
source_id String?
|
|
25
20
|
round_no Int @default(0)
|
|
26
21
|
is_jaf_completed Boolean @default(false)
|
|
27
|
-
proceed_to_next_round Boolean? @default(false)
|
|
28
22
|
//Screening fields
|
|
29
23
|
on_notice_period Boolean @default(false)
|
|
30
24
|
expected_joining_date DateTime?
|
|
@@ -42,16 +36,14 @@ model Application {
|
|
|
42
36
|
resume Resume @relation(fields: [resume_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
|
|
43
37
|
job_description JobDescription @relation(fields: [job_description_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
|
|
44
38
|
fit_check FitCheck? @relation(fields: [fit_check_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
|
|
45
|
-
recruiter User? @relation("ApplicationRecruiter", fields: [recruiter_id], references: [id])
|
|
46
|
-
source Source? @relation(fields: [source_id], references: [id], onDelete: SetNull)
|
|
47
39
|
interviews Interview[]
|
|
48
40
|
assignments Assignment[]
|
|
49
41
|
ongoing_evaluations OngoingEvaluation[]
|
|
50
42
|
activity_logs ActivityLog[]
|
|
51
43
|
notes Notes[]
|
|
44
|
+
job_application_responses JobApplicationResponse[]
|
|
52
45
|
conversations Conversation[]
|
|
53
46
|
communication_messages CommunicationMessage[]
|
|
54
|
-
job_application_responses JobApplicationResponse[]
|
|
55
47
|
// Audit fields
|
|
56
48
|
created_at DateTime @default(now())
|
|
57
49
|
updated_at DateTime @updatedAt
|
|
@@ -62,6 +54,4 @@ model Application {
|
|
|
62
54
|
@@unique([candidate_id, job_description_id]) // Ensures candidate applies only once per job
|
|
63
55
|
@@index([candidate_id])
|
|
64
56
|
@@index([job_description_id])
|
|
65
|
-
@@index([source_id])
|
|
66
|
-
@@schema("public")
|
|
67
57
|
}
|
|
@@ -11,6 +11,4 @@ model Approval {
|
|
|
11
11
|
job_description JobDescription @relation(fields: [job_description_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
|
|
12
12
|
user User @relation(fields: [user_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
|
|
13
13
|
organisation Organisation @relation(fields: [organisaton_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
|
|
14
|
-
|
|
15
|
-
@@schema("public")
|
|
16
14
|
}
|
|
@@ -2,8 +2,6 @@ enum AssignmentStatus {
|
|
|
2
2
|
AVAILABLE
|
|
3
3
|
SCHEDULED
|
|
4
4
|
CANCELLED
|
|
5
|
-
|
|
6
|
-
@@schema("public")
|
|
7
5
|
}
|
|
8
6
|
|
|
9
7
|
model Assignment {
|
|
@@ -47,5 +45,4 @@ model Assignment {
|
|
|
47
45
|
@@index([candidate_id])
|
|
48
46
|
@@index([reviewer_id])
|
|
49
47
|
@@index([job_description_id])
|
|
50
|
-
@@schema("public")
|
|
51
48
|
}
|
|
@@ -3,8 +3,6 @@ enum AuthProvider {
|
|
|
3
3
|
MICROSOFT
|
|
4
4
|
ZOOM
|
|
5
5
|
CALENDLY
|
|
6
|
-
|
|
7
|
-
@@schema("public")
|
|
8
6
|
}
|
|
9
7
|
|
|
10
8
|
model AuthModule {
|
|
@@ -35,5 +33,4 @@ model AuthModule {
|
|
|
35
33
|
@@unique([user_id, provider])
|
|
36
34
|
@@unique([provider, provider_account_id])
|
|
37
35
|
@@index([user_id])
|
|
38
|
-
@@schema("public")
|
|
39
36
|
}
|
|
@@ -4,8 +4,6 @@ enum JobType {
|
|
|
4
4
|
Contract
|
|
5
5
|
Internship
|
|
6
6
|
Temporary
|
|
7
|
-
|
|
8
|
-
@@schema("public")
|
|
9
7
|
}
|
|
10
8
|
|
|
11
9
|
enum JDCreationType {
|
|
@@ -13,8 +11,6 @@ enum JDCreationType {
|
|
|
13
11
|
Upload_JD
|
|
14
12
|
Create_New
|
|
15
13
|
Create_From_Profile
|
|
16
|
-
|
|
17
|
-
@@schema("public")
|
|
18
14
|
}
|
|
19
15
|
|
|
20
16
|
model Budget {
|
|
@@ -39,6 +35,4 @@ model Budget {
|
|
|
39
35
|
created_by String
|
|
40
36
|
updated_by String
|
|
41
37
|
is_active Boolean @default(true)
|
|
42
|
-
|
|
43
|
-
@@schema("public")
|
|
44
38
|
}
|
|
@@ -6,8 +6,6 @@ enum CommChannel {
|
|
|
6
6
|
EMAIL
|
|
7
7
|
SMS
|
|
8
8
|
CALL
|
|
9
|
-
|
|
10
|
-
@@schema("public")
|
|
11
9
|
}
|
|
12
10
|
|
|
13
11
|
enum CommProvider {
|
|
@@ -20,15 +18,11 @@ enum CommProvider {
|
|
|
20
18
|
OUTLOOK
|
|
21
19
|
GENERIC_SMTP
|
|
22
20
|
GENERIC
|
|
23
|
-
|
|
24
|
-
@@schema("public")
|
|
25
21
|
}
|
|
26
22
|
|
|
27
23
|
enum CommDirection {
|
|
28
24
|
INBOUND
|
|
29
25
|
OUTBOUND
|
|
30
|
-
|
|
31
|
-
@@schema("public")
|
|
32
26
|
}
|
|
33
27
|
|
|
34
28
|
enum CommMessageStatus {
|
|
@@ -38,8 +32,6 @@ enum CommMessageStatus {
|
|
|
38
32
|
READ
|
|
39
33
|
FAILED
|
|
40
34
|
RECEIVED
|
|
41
|
-
|
|
42
|
-
@@schema("public")
|
|
43
35
|
}
|
|
44
36
|
|
|
45
37
|
/// Per-organisation provider selection + (encrypted) credentials for one channel.
|
|
@@ -68,7 +60,6 @@ model ChannelProviderConfig {
|
|
|
68
60
|
@@unique([organisation_id, channel, provider])
|
|
69
61
|
@@index([organisation_id, channel])
|
|
70
62
|
@@index([organisation_id, channel, is_active])
|
|
71
|
-
@@schema("public")
|
|
72
63
|
}
|
|
73
64
|
|
|
74
65
|
/// A logical conversation thread with one external party on one channel.
|
|
@@ -113,7 +104,6 @@ model Conversation {
|
|
|
113
104
|
@@index([external_id])
|
|
114
105
|
@@index([organisation_id, application_id])
|
|
115
106
|
@@index([organisation_id, job_description_id])
|
|
116
|
-
@@schema("public")
|
|
117
107
|
}
|
|
118
108
|
|
|
119
109
|
/// Individual message in a conversation. Inbound + outbound share the same model.
|
|
@@ -163,5 +153,4 @@ model CommunicationMessage {
|
|
|
163
153
|
@@index([organisation_id, status])
|
|
164
154
|
@@index([organisation_id, application_id])
|
|
165
155
|
@@index([organisation_id, job_description_id])
|
|
166
|
-
@@schema("public")
|
|
167
156
|
}
|
|
@@ -24,6 +24,7 @@ model Document {
|
|
|
24
24
|
organisation Organisation? @relation(fields: [organisation_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
|
|
25
25
|
candidate User? @relation(fields: [candidate_id], references: [id], onDelete: SetNull, onUpdate: Cascade)
|
|
26
26
|
resume Resume?
|
|
27
|
+
resume_rendered_export Resume? @relation("RenderedResumeExportDocument")
|
|
27
28
|
job_description_source JobDescription? @relation("SourceDocument")
|
|
28
29
|
job_description_rendered JobDescription? @relation("RenderedJdDocument")
|
|
29
30
|
interview_recording Interview?
|
|
@@ -35,5 +36,4 @@ model Document {
|
|
|
35
36
|
@@index([candidate_id])
|
|
36
37
|
@@index([organisation_id, candidate_id])
|
|
37
38
|
@@index([file_hash])
|
|
38
|
-
@@schema("public")
|
|
39
39
|
}
|
|
@@ -3,18 +3,6 @@ enum RoundType {
|
|
|
3
3
|
INTERVIEW
|
|
4
4
|
ASSIGNMENT
|
|
5
5
|
SCREENING
|
|
6
|
-
|
|
7
|
-
@@schema("public")
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
enum EvaluationCategory {
|
|
11
|
-
EXPERIENCE_SCREENING
|
|
12
|
-
TECHNICAL_SCREENING
|
|
13
|
-
TECHNICAL_INTERVIEW
|
|
14
|
-
BUSINESS_ROUND
|
|
15
|
-
BEHAVIORAL_ROUND
|
|
16
|
-
|
|
17
|
-
@@schema("public")
|
|
18
6
|
}
|
|
19
7
|
|
|
20
8
|
enum EvaluationRoundFormat {
|
|
@@ -44,8 +32,6 @@ enum EvaluationRoundFormat {
|
|
|
44
32
|
TREADSPACE_AI_ASSISTED
|
|
45
33
|
EXTERNAL_VIDEO_AI_ASSISTED
|
|
46
34
|
EXTERNAL_VIDEO_UNASSISTED
|
|
47
|
-
|
|
48
|
-
@@schema("public")
|
|
49
35
|
}
|
|
50
36
|
|
|
51
37
|
enum EvaluationType {
|
|
@@ -54,36 +40,28 @@ enum EvaluationType {
|
|
|
54
40
|
TREADSPACE_FULL_AI
|
|
55
41
|
EXTERNAL_AI_ASSISTED
|
|
56
42
|
NON_AI_ASSISTED
|
|
57
|
-
|
|
58
|
-
@@schema("public")
|
|
59
43
|
}
|
|
60
44
|
|
|
61
45
|
enum EvaluationPlanType {
|
|
62
46
|
CUSTOM
|
|
63
47
|
GENERIC
|
|
64
48
|
DELETED
|
|
65
|
-
|
|
66
|
-
@@schema("public")
|
|
67
49
|
}
|
|
68
50
|
|
|
69
51
|
enum EvaluationPlanShareScope {
|
|
70
52
|
PRIVATE
|
|
71
53
|
CREATOR
|
|
72
54
|
ORGANIZATION
|
|
73
|
-
|
|
74
|
-
@@schema("public")
|
|
75
55
|
}
|
|
76
56
|
|
|
77
57
|
enum DurationUnit {
|
|
78
58
|
MINUTES
|
|
79
59
|
HOURS
|
|
80
60
|
DAYS
|
|
81
|
-
|
|
82
|
-
@@schema("public")
|
|
83
61
|
}
|
|
84
62
|
|
|
85
63
|
model EvaluationPlan {
|
|
86
|
-
id String
|
|
64
|
+
id String @id @default(uuid())
|
|
87
65
|
job_description_id String
|
|
88
66
|
assessment_id String?
|
|
89
67
|
assignment_library_id String?
|
|
@@ -92,36 +70,33 @@ model EvaluationPlan {
|
|
|
92
70
|
format EvaluationRoundFormat?
|
|
93
71
|
topics String[]
|
|
94
72
|
assignee String?
|
|
95
|
-
elimination_round Boolean
|
|
96
|
-
evaluation_type EvaluationType
|
|
73
|
+
elimination_round Boolean @default(false)
|
|
74
|
+
evaluation_type EvaluationType @default(TREADSPACE_AI_ASSISTED)
|
|
97
75
|
type_of_round RoundType
|
|
98
|
-
round_purpose String?
|
|
99
76
|
timeline Int?
|
|
100
77
|
order_no Int?
|
|
101
78
|
details Json?
|
|
102
|
-
plan_type EvaluationPlanType
|
|
79
|
+
plan_type EvaluationPlanType @default(GENERIC)
|
|
103
80
|
share_scope EvaluationPlanShareScope @default(PRIVATE)
|
|
104
81
|
duration Int?
|
|
105
82
|
duration_unit DurationUnit?
|
|
106
83
|
deadline Int?
|
|
107
|
-
category EvaluationCategory?
|
|
108
84
|
created_by String
|
|
109
85
|
updated_by String
|
|
110
|
-
created_at DateTime
|
|
111
|
-
updated_at DateTime
|
|
112
|
-
is_active Boolean
|
|
86
|
+
created_at DateTime @default(now())
|
|
87
|
+
updated_at DateTime @updatedAt
|
|
88
|
+
is_active Boolean @default(true)
|
|
113
89
|
// Relations
|
|
114
|
-
jobDescription JobDescription
|
|
90
|
+
jobDescription JobDescription @relation(fields: [job_description_id], references: [id], onDelete: Cascade)
|
|
115
91
|
questions Question[] // One evaluation plan → many questions
|
|
116
92
|
interviews Interview[]
|
|
117
93
|
applications Application[]
|
|
118
94
|
// New optional one-to-one relation with AssessmentLibrary
|
|
119
|
-
assessment AssessmentLibrary?
|
|
120
|
-
assignment_library AssignmentLibrary?
|
|
95
|
+
assessment AssessmentLibrary? @relation(fields: [assessment_id], references: [id], onDelete: SetNull)
|
|
96
|
+
assignment_library AssignmentLibrary? @relation(fields: [assignment_library_id], references: [id], onDelete: SetNull)
|
|
121
97
|
ongoing_evaluations OngoingEvaluation[]
|
|
122
98
|
|
|
123
99
|
@@index([job_description_id])
|
|
124
100
|
@@index([job_description_id, plan_type, share_scope])
|
|
125
101
|
@@index([created_by, share_scope])
|
|
126
|
-
@@schema("public")
|
|
127
102
|
}
|
|
@@ -2,8 +2,6 @@ enum FitCheckStatus {
|
|
|
2
2
|
RECOMMENDED
|
|
3
3
|
TO_REVIEW
|
|
4
4
|
NOT_RECOMMENDED
|
|
5
|
-
|
|
6
|
-
@@schema("public")
|
|
7
5
|
}
|
|
8
6
|
|
|
9
7
|
model FitCheck {
|
|
@@ -57,5 +55,4 @@ model FitCheck {
|
|
|
57
55
|
/// Ensure one FitCheck per (resume_id, job_description_id) pair
|
|
58
56
|
@@unique([resume_id, job_description_id])
|
|
59
57
|
@@index([resume_id])
|
|
60
|
-
@@schema("public")
|
|
61
58
|
}
|
|
@@ -6,24 +6,18 @@ enum IntegrationProvider {
|
|
|
6
6
|
MICROSOFT
|
|
7
7
|
ZOOM
|
|
8
8
|
CALENDLY
|
|
9
|
-
|
|
10
|
-
@@schema("public")
|
|
11
9
|
}
|
|
12
10
|
|
|
13
11
|
enum IntegrationAuthType {
|
|
14
12
|
OAUTH2
|
|
15
13
|
API_KEY
|
|
16
14
|
SSO
|
|
17
|
-
|
|
18
|
-
@@schema("public")
|
|
19
15
|
}
|
|
20
16
|
|
|
21
17
|
enum SyncDirection {
|
|
22
18
|
PUSH
|
|
23
19
|
PULL
|
|
24
20
|
BIDIRECTIONAL
|
|
25
|
-
|
|
26
|
-
@@schema("public")
|
|
27
21
|
}
|
|
28
22
|
|
|
29
23
|
enum SyncEntityType {
|
|
@@ -31,16 +25,12 @@ enum SyncEntityType {
|
|
|
31
25
|
JOB_OPENING
|
|
32
26
|
INTERVIEW
|
|
33
27
|
APPLICATION
|
|
34
|
-
|
|
35
|
-
@@schema("public")
|
|
36
28
|
}
|
|
37
29
|
|
|
38
30
|
enum SyncStatus {
|
|
39
31
|
SYNCED
|
|
40
32
|
PENDING
|
|
41
33
|
FAILED
|
|
42
|
-
|
|
43
|
-
@@schema("public")
|
|
44
34
|
}
|
|
45
35
|
|
|
46
36
|
model IntegrationCredential {
|
|
@@ -65,7 +55,6 @@ model IntegrationCredential {
|
|
|
65
55
|
|
|
66
56
|
@@unique([organisation_id, provider])
|
|
67
57
|
@@index([provider])
|
|
68
|
-
@@schema("public")
|
|
69
58
|
}
|
|
70
59
|
|
|
71
60
|
model IntegrationJobSync {
|
|
@@ -85,7 +74,6 @@ model IntegrationJobSync {
|
|
|
85
74
|
|
|
86
75
|
@@unique([job_description_id, provider])
|
|
87
76
|
@@index([provider])
|
|
88
|
-
@@schema("public")
|
|
89
77
|
}
|
|
90
78
|
|
|
91
79
|
model ZohoSyncMapping {
|
|
@@ -107,5 +95,4 @@ model ZohoSyncMapping {
|
|
|
107
95
|
@@unique([organisation_id, entity_type, treadspace_id])
|
|
108
96
|
@@index([zoho_record_id])
|
|
109
97
|
@@index([sync_status])
|
|
110
|
-
@@schema("public")
|
|
111
98
|
}
|
|
@@ -6,8 +6,6 @@ enum InterviewStatus {
|
|
|
6
6
|
NO_SHOW // Candidate or interviewer failed to appear
|
|
7
7
|
EVALUATION_PENDING // Waiting for feedback or evaluation
|
|
8
8
|
EVALUATED // Feedback completed and locked
|
|
9
|
-
|
|
10
|
-
@@schema("public")
|
|
11
9
|
}
|
|
12
10
|
|
|
13
11
|
enum InterviewFeedback {
|
|
@@ -15,22 +13,16 @@ enum InterviewFeedback {
|
|
|
15
13
|
HIRE
|
|
16
14
|
NO_HIRE
|
|
17
15
|
STRONG_NO_HIRE
|
|
18
|
-
|
|
19
|
-
@@schema("public")
|
|
20
16
|
}
|
|
21
17
|
|
|
22
18
|
enum InterviewPlatform {
|
|
23
19
|
TREADSPACE
|
|
24
20
|
ZOOM
|
|
25
|
-
|
|
26
|
-
@@schema("public")
|
|
27
21
|
}
|
|
28
22
|
|
|
29
23
|
enum AiAssistanceMode {
|
|
30
24
|
NONE
|
|
31
25
|
ASSISTED
|
|
32
|
-
|
|
33
|
-
@@schema("public")
|
|
34
26
|
}
|
|
35
27
|
|
|
36
28
|
model Interview {
|
|
@@ -117,5 +109,4 @@ model Interview {
|
|
|
117
109
|
@@index([candidate_id])
|
|
118
110
|
@@index([interviewer_id])
|
|
119
111
|
@@index([job_description_id])
|
|
120
|
-
@@schema("public")
|
|
121
112
|
}
|
|
@@ -6,8 +6,6 @@ enum JobApplicationFieldType {
|
|
|
6
6
|
MULTI_SELECT
|
|
7
7
|
FILE
|
|
8
8
|
DROP_DOWN
|
|
9
|
-
|
|
10
|
-
@@schema("public")
|
|
11
9
|
}
|
|
12
10
|
|
|
13
11
|
model JobApplicationField {
|
|
@@ -36,5 +34,4 @@ model JobApplicationField {
|
|
|
36
34
|
|
|
37
35
|
/// Indexes
|
|
38
36
|
@@index([organisation_id, template_id])
|
|
39
|
-
@@schema("public")
|
|
40
37
|
}
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
enum JobApplicationTemplateScope {
|
|
2
2
|
ORGANIZATION
|
|
3
3
|
JOB
|
|
4
|
-
|
|
5
|
-
@@schema("public")
|
|
6
4
|
}
|
|
7
5
|
|
|
8
6
|
model JobApplicationTemplate {
|
|
@@ -29,5 +27,4 @@ model JobApplicationTemplate {
|
|
|
29
27
|
/// Indexes
|
|
30
28
|
@@index([organisation_id, scope])
|
|
31
29
|
@@index([job_description_id])
|
|
32
|
-
@@schema("public")
|
|
33
30
|
}
|