@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
package/client/wasm.js
CHANGED
|
@@ -163,22 +163,6 @@ exports.Prisma.ActionScalarFieldEnum = {
|
|
|
163
163
|
is_active: 'is_active'
|
|
164
164
|
};
|
|
165
165
|
|
|
166
|
-
exports.Prisma.ActivityEventScalarFieldEnum = {
|
|
167
|
-
id: 'id',
|
|
168
|
-
organisation_id: 'organisation_id',
|
|
169
|
-
event_type: 'event_type',
|
|
170
|
-
entity_type: 'entity_type',
|
|
171
|
-
entity_id: 'entity_id',
|
|
172
|
-
actor_id: 'actor_id',
|
|
173
|
-
actor_type: 'actor_type',
|
|
174
|
-
related_entities: 'related_entities',
|
|
175
|
-
snapshot: 'snapshot',
|
|
176
|
-
payload: 'payload',
|
|
177
|
-
schema_version: 'schema_version',
|
|
178
|
-
occurred_at: 'occurred_at',
|
|
179
|
-
created_at: 'created_at'
|
|
180
|
-
};
|
|
181
|
-
|
|
182
166
|
exports.Prisma.ActivityLogScalarFieldEnum = {
|
|
183
167
|
id: 'id',
|
|
184
168
|
application_id: 'application_id',
|
|
@@ -201,8 +185,8 @@ exports.Prisma.ApplicationScalarFieldEnum = {
|
|
|
201
185
|
applied_at: 'applied_at',
|
|
202
186
|
evaluation_plan_id: 'evaluation_plan_id',
|
|
203
187
|
fit_check_id: 'fit_check_id',
|
|
204
|
-
recruiter_id: 'recruiter_id',
|
|
205
188
|
round_no: 'round_no',
|
|
189
|
+
is_jaf_completed: 'is_jaf_completed',
|
|
206
190
|
on_notice_period: 'on_notice_period',
|
|
207
191
|
expected_joining_date: 'expected_joining_date',
|
|
208
192
|
current_ctc: 'current_ctc',
|
|
@@ -287,6 +271,8 @@ exports.Prisma.AssignmentScalarFieldEnum = {
|
|
|
287
271
|
cancel_reason: 'cancel_reason',
|
|
288
272
|
solution_url: 'solution_url',
|
|
289
273
|
zip_url: 'zip_url',
|
|
274
|
+
solution_document_id: 'solution_document_id',
|
|
275
|
+
zip_document_id: 'zip_document_id',
|
|
290
276
|
scheduled_start_time: 'scheduled_start_time',
|
|
291
277
|
scheduled_end_time: 'scheduled_end_time',
|
|
292
278
|
created_at: 'created_at',
|
|
@@ -386,6 +372,70 @@ exports.Prisma.CandidateProfileScalarFieldEnum = {
|
|
|
386
372
|
is_active: 'is_active'
|
|
387
373
|
};
|
|
388
374
|
|
|
375
|
+
exports.Prisma.ChannelProviderConfigScalarFieldEnum = {
|
|
376
|
+
id: 'id',
|
|
377
|
+
organisation_id: 'organisation_id',
|
|
378
|
+
channel: 'channel',
|
|
379
|
+
provider: 'provider',
|
|
380
|
+
credentials: 'credentials',
|
|
381
|
+
metadata: 'metadata',
|
|
382
|
+
is_active: 'is_active',
|
|
383
|
+
is_default: 'is_default',
|
|
384
|
+
created_at: 'created_at',
|
|
385
|
+
updated_at: 'updated_at',
|
|
386
|
+
created_by: 'created_by',
|
|
387
|
+
updated_by: 'updated_by'
|
|
388
|
+
};
|
|
389
|
+
|
|
390
|
+
exports.Prisma.ConversationScalarFieldEnum = {
|
|
391
|
+
id: 'id',
|
|
392
|
+
organisation_id: 'organisation_id',
|
|
393
|
+
channel: 'channel',
|
|
394
|
+
provider: 'provider',
|
|
395
|
+
channel_provider_id: 'channel_provider_id',
|
|
396
|
+
external_id: 'external_id',
|
|
397
|
+
contact_user_id: 'contact_user_id',
|
|
398
|
+
application_id: 'application_id',
|
|
399
|
+
job_description_id: 'job_description_id',
|
|
400
|
+
provider_thread_id: 'provider_thread_id',
|
|
401
|
+
subject: 'subject',
|
|
402
|
+
status: 'status',
|
|
403
|
+
unread_count: 'unread_count',
|
|
404
|
+
last_message_at: 'last_message_at',
|
|
405
|
+
metadata: 'metadata',
|
|
406
|
+
created_at: 'created_at',
|
|
407
|
+
updated_at: 'updated_at',
|
|
408
|
+
created_by: 'created_by',
|
|
409
|
+
updated_by: 'updated_by'
|
|
410
|
+
};
|
|
411
|
+
|
|
412
|
+
exports.Prisma.CommunicationMessageScalarFieldEnum = {
|
|
413
|
+
id: 'id',
|
|
414
|
+
conversation_id: 'conversation_id',
|
|
415
|
+
organisation_id: 'organisation_id',
|
|
416
|
+
channel: 'channel',
|
|
417
|
+
provider: 'provider',
|
|
418
|
+
channel_provider_id: 'channel_provider_id',
|
|
419
|
+
direction: 'direction',
|
|
420
|
+
status: 'status',
|
|
421
|
+
body: 'body',
|
|
422
|
+
from_identifier: 'from_identifier',
|
|
423
|
+
to_identifier: 'to_identifier',
|
|
424
|
+
sender_user_id: 'sender_user_id',
|
|
425
|
+
application_id: 'application_id',
|
|
426
|
+
job_description_id: 'job_description_id',
|
|
427
|
+
provider_message_id: 'provider_message_id',
|
|
428
|
+
template_name: 'template_name',
|
|
429
|
+
attachments: 'attachments',
|
|
430
|
+
metadata: 'metadata',
|
|
431
|
+
error: 'error',
|
|
432
|
+
sent_at: 'sent_at',
|
|
433
|
+
delivered_at: 'delivered_at',
|
|
434
|
+
read_at: 'read_at',
|
|
435
|
+
created_at: 'created_at',
|
|
436
|
+
updated_at: 'updated_at'
|
|
437
|
+
};
|
|
438
|
+
|
|
389
439
|
exports.Prisma.ContactUsScalarFieldEnum = {
|
|
390
440
|
id: 'id',
|
|
391
441
|
name: 'name',
|
|
@@ -399,6 +449,26 @@ exports.Prisma.ContactUsScalarFieldEnum = {
|
|
|
399
449
|
is_active: 'is_active'
|
|
400
450
|
};
|
|
401
451
|
|
|
452
|
+
exports.Prisma.DocumentScalarFieldEnum = {
|
|
453
|
+
id: 'id',
|
|
454
|
+
organisation_id: 'organisation_id',
|
|
455
|
+
candidate_id: 'candidate_id',
|
|
456
|
+
original_file_name: 'original_file_name',
|
|
457
|
+
stored_file_name: 'stored_file_name',
|
|
458
|
+
file_extension: 'file_extension',
|
|
459
|
+
s3_bucket: 's3_bucket',
|
|
460
|
+
s3_key: 's3_key',
|
|
461
|
+
mime_type: 'mime_type',
|
|
462
|
+
file_size: 'file_size',
|
|
463
|
+
file_hash: 'file_hash',
|
|
464
|
+
metadata: 'metadata',
|
|
465
|
+
created_at: 'created_at',
|
|
466
|
+
updated_at: 'updated_at',
|
|
467
|
+
created_by: 'created_by',
|
|
468
|
+
updated_by: 'updated_by',
|
|
469
|
+
is_active: 'is_active'
|
|
470
|
+
};
|
|
471
|
+
|
|
402
472
|
exports.Prisma.EvaluationPlanScalarFieldEnum = {
|
|
403
473
|
id: 'id',
|
|
404
474
|
job_description_id: 'job_description_id',
|
|
@@ -419,7 +489,6 @@ exports.Prisma.EvaluationPlanScalarFieldEnum = {
|
|
|
419
489
|
duration: 'duration',
|
|
420
490
|
duration_unit: 'duration_unit',
|
|
421
491
|
deadline: 'deadline',
|
|
422
|
-
category: 'category',
|
|
423
492
|
created_by: 'created_by',
|
|
424
493
|
updated_by: 'updated_by',
|
|
425
494
|
created_at: 'created_at',
|
|
@@ -550,6 +619,7 @@ exports.Prisma.InterviewScalarFieldEnum = {
|
|
|
550
619
|
actual_end_time: 'actual_end_time',
|
|
551
620
|
duration: 'duration',
|
|
552
621
|
recording_url: 'recording_url',
|
|
622
|
+
recording_document_id: 'recording_document_id',
|
|
553
623
|
evaluation_type: 'evaluation_type',
|
|
554
624
|
ai_assistance_mode: 'ai_assistance_mode',
|
|
555
625
|
interview_status: 'interview_status',
|
|
@@ -590,6 +660,58 @@ exports.Prisma.InterviewNotesScalarFieldEnum = {
|
|
|
590
660
|
is_active: 'is_active'
|
|
591
661
|
};
|
|
592
662
|
|
|
663
|
+
exports.Prisma.JobApplicationFieldScalarFieldEnum = {
|
|
664
|
+
id: 'id',
|
|
665
|
+
organisation_id: 'organisation_id',
|
|
666
|
+
template_id: 'template_id',
|
|
667
|
+
field_type: 'field_type',
|
|
668
|
+
label: 'label',
|
|
669
|
+
description: 'description',
|
|
670
|
+
is_mandatory: 'is_mandatory',
|
|
671
|
+
is_draft: 'is_draft',
|
|
672
|
+
options: 'options',
|
|
673
|
+
is_active: 'is_active',
|
|
674
|
+
created_by: 'created_by',
|
|
675
|
+
updated_by: 'updated_by',
|
|
676
|
+
created_at: 'created_at',
|
|
677
|
+
updated_at: 'updated_at'
|
|
678
|
+
};
|
|
679
|
+
|
|
680
|
+
exports.Prisma.JobApplicationResponseScalarFieldEnum = {
|
|
681
|
+
id: 'id',
|
|
682
|
+
application_id: 'application_id',
|
|
683
|
+
job_application_field_id: 'job_application_field_id',
|
|
684
|
+
document_id: 'document_id',
|
|
685
|
+
response: 'response',
|
|
686
|
+
field_type: 'field_type',
|
|
687
|
+
label: 'label',
|
|
688
|
+
description: 'description',
|
|
689
|
+
is_mandatory: 'is_mandatory',
|
|
690
|
+
is_draft: 'is_draft',
|
|
691
|
+
is_submitted: 'is_submitted',
|
|
692
|
+
options: 'options',
|
|
693
|
+
updated_by_organisation: 'updated_by_organisation',
|
|
694
|
+
created_at: 'created_at',
|
|
695
|
+
updated_at: 'updated_at',
|
|
696
|
+
created_by: 'created_by',
|
|
697
|
+
updated_by: 'updated_by',
|
|
698
|
+
is_active: 'is_active'
|
|
699
|
+
};
|
|
700
|
+
|
|
701
|
+
exports.Prisma.JobApplicationTemplateScalarFieldEnum = {
|
|
702
|
+
id: 'id',
|
|
703
|
+
organisation_id: 'organisation_id',
|
|
704
|
+
job_description_id: 'job_description_id',
|
|
705
|
+
name: 'name',
|
|
706
|
+
description: 'description',
|
|
707
|
+
scope: 'scope',
|
|
708
|
+
is_active: 'is_active',
|
|
709
|
+
created_by: 'created_by',
|
|
710
|
+
updated_by: 'updated_by',
|
|
711
|
+
created_at: 'created_at',
|
|
712
|
+
updated_at: 'updated_at'
|
|
713
|
+
};
|
|
714
|
+
|
|
593
715
|
exports.Prisma.JobDescriptionScalarFieldEnum = {
|
|
594
716
|
id: 'id',
|
|
595
717
|
organisation_id: 'organisation_id',
|
|
@@ -598,15 +720,12 @@ exports.Prisma.JobDescriptionScalarFieldEnum = {
|
|
|
598
720
|
screeningQuestions: 'screeningQuestions',
|
|
599
721
|
recommendedQuestions: 'recommendedQuestions',
|
|
600
722
|
uploaded_job_description_path: 'uploaded_job_description_path',
|
|
723
|
+
source_document_id: 'source_document_id',
|
|
601
724
|
is_plan_published: 'is_plan_published',
|
|
602
725
|
is_posted: 'is_posted',
|
|
603
726
|
summary: 'summary',
|
|
604
727
|
ai_insight: 'ai_insight',
|
|
605
728
|
job_fit_comparison: 'job_fit_comparison',
|
|
606
|
-
target_closing_date: 'target_closing_date',
|
|
607
|
-
closing_date: 'closing_date',
|
|
608
|
-
job_number: 'job_number',
|
|
609
|
-
job_code: 'job_code',
|
|
610
729
|
created_at: 'created_at',
|
|
611
730
|
updated_at: 'updated_at',
|
|
612
731
|
created_by: 'created_by',
|
|
@@ -747,8 +866,6 @@ exports.Prisma.OrganisationScalarFieldEnum = {
|
|
|
747
866
|
is_active: 'is_active',
|
|
748
867
|
alias: 'alias',
|
|
749
868
|
logo: 'logo',
|
|
750
|
-
org_code: 'org_code',
|
|
751
|
-
job_sequence: 'job_sequence',
|
|
752
869
|
timezone: 'timezone'
|
|
753
870
|
};
|
|
754
871
|
|
|
@@ -825,6 +942,7 @@ exports.Prisma.ResumeScalarFieldEnum = {
|
|
|
825
942
|
organisation_id: 'organisation_id',
|
|
826
943
|
job_description_id: 'job_description_id',
|
|
827
944
|
uploaded_resume_path: 'uploaded_resume_path',
|
|
945
|
+
document_id: 'document_id',
|
|
828
946
|
file_hash: 'file_hash',
|
|
829
947
|
summary: 'summary',
|
|
830
948
|
created_at: 'created_at',
|
|
@@ -1015,56 +1133,6 @@ exports.ActionStatus = exports.$Enums.ActionStatus = {
|
|
|
1015
1133
|
CANCELLED: 'CANCELLED'
|
|
1016
1134
|
};
|
|
1017
1135
|
|
|
1018
|
-
exports.ActivityEventType = exports.$Enums.ActivityEventType = {
|
|
1019
|
-
APPLICATION_CREATED: 'APPLICATION_CREATED',
|
|
1020
|
-
APPLICATION_STARTED: 'APPLICATION_STARTED',
|
|
1021
|
-
APPLICATION_REJECTED: 'APPLICATION_REJECTED',
|
|
1022
|
-
APPLICATION_SHORTLISTED: 'APPLICATION_SHORTLISTED',
|
|
1023
|
-
ROUND_ASSIGNED: 'ROUND_ASSIGNED',
|
|
1024
|
-
ROUND_STARTED: 'ROUND_STARTED',
|
|
1025
|
-
ROUND_COMPLETED: 'ROUND_COMPLETED',
|
|
1026
|
-
ROUND_PASSED: 'ROUND_PASSED',
|
|
1027
|
-
ROUND_FAILED: 'ROUND_FAILED',
|
|
1028
|
-
ROUND_SKIPPED: 'ROUND_SKIPPED',
|
|
1029
|
-
INTERVIEW_SCHEDULED: 'INTERVIEW_SCHEDULED',
|
|
1030
|
-
INTERVIEW_RESCHEDULED: 'INTERVIEW_RESCHEDULED',
|
|
1031
|
-
INTERVIEW_CANCELLED: 'INTERVIEW_CANCELLED',
|
|
1032
|
-
INTERVIEW_COMPLETED: 'INTERVIEW_COMPLETED',
|
|
1033
|
-
INTERVIEW_NO_SHOW: 'INTERVIEW_NO_SHOW',
|
|
1034
|
-
INTERVIEW_EVALUATION_PENDING: 'INTERVIEW_EVALUATION_PENDING',
|
|
1035
|
-
INTERVIEW_EVALUATED: 'INTERVIEW_EVALUATED',
|
|
1036
|
-
FEEDBACK_SUBMITTED: 'FEEDBACK_SUBMITTED',
|
|
1037
|
-
JOB_CREATED: 'JOB_CREATED',
|
|
1038
|
-
JOB_PUBLISHED: 'JOB_PUBLISHED',
|
|
1039
|
-
JOB_CLOSED: 'JOB_CLOSED',
|
|
1040
|
-
JOB_DEACTIVATED: 'JOB_DEACTIVATED',
|
|
1041
|
-
EVALUATION_PLAN_CREATED: 'EVALUATION_PLAN_CREATED',
|
|
1042
|
-
EVALUATION_PLAN_PUBLISHED: 'EVALUATION_PLAN_PUBLISHED',
|
|
1043
|
-
EVALUATION_PLAN_DELETED: 'EVALUATION_PLAN_DELETED',
|
|
1044
|
-
EVALUATION_PLAN_UPDATED: 'EVALUATION_PLAN_UPDATED',
|
|
1045
|
-
STATUS_CHANGED: 'STATUS_CHANGED',
|
|
1046
|
-
CUSTOM: 'CUSTOM'
|
|
1047
|
-
};
|
|
1048
|
-
|
|
1049
|
-
exports.ActivityEntityType = exports.$Enums.ActivityEntityType = {
|
|
1050
|
-
APPLICATION: 'APPLICATION',
|
|
1051
|
-
CANDIDATE: 'CANDIDATE',
|
|
1052
|
-
JOB: 'JOB',
|
|
1053
|
-
ONGOING_EVALUATION: 'ONGOING_EVALUATION',
|
|
1054
|
-
EVALUATION_PLAN: 'EVALUATION_PLAN',
|
|
1055
|
-
INTERVIEW: 'INTERVIEW',
|
|
1056
|
-
ASSESSMENT: 'ASSESSMENT',
|
|
1057
|
-
ORGANISATION: 'ORGANISATION',
|
|
1058
|
-
USER: 'USER'
|
|
1059
|
-
};
|
|
1060
|
-
|
|
1061
|
-
exports.ActivityEntityActorType = exports.$Enums.ActivityEntityActorType = {
|
|
1062
|
-
USER: 'USER',
|
|
1063
|
-
SYSTEM: 'SYSTEM',
|
|
1064
|
-
AI_AGENT: 'AI_AGENT',
|
|
1065
|
-
WEBHOOK: 'WEBHOOK'
|
|
1066
|
-
};
|
|
1067
|
-
|
|
1068
1136
|
exports.ActivityActorType = exports.$Enums.ActivityActorType = {
|
|
1069
1137
|
USER: 'USER',
|
|
1070
1138
|
AI: 'AI',
|
|
@@ -1112,6 +1180,39 @@ exports.JDCreationType = exports.$Enums.JDCreationType = {
|
|
|
1112
1180
|
Create_From_Profile: 'Create_From_Profile'
|
|
1113
1181
|
};
|
|
1114
1182
|
|
|
1183
|
+
exports.CommChannel = exports.$Enums.CommChannel = {
|
|
1184
|
+
WHATSAPP: 'WHATSAPP',
|
|
1185
|
+
EMAIL: 'EMAIL',
|
|
1186
|
+
SMS: 'SMS',
|
|
1187
|
+
CALL: 'CALL'
|
|
1188
|
+
};
|
|
1189
|
+
|
|
1190
|
+
exports.CommProvider = exports.$Enums.CommProvider = {
|
|
1191
|
+
META_WHATSAPP: 'META_WHATSAPP',
|
|
1192
|
+
TWILIO: 'TWILIO',
|
|
1193
|
+
GUPSHUP: 'GUPSHUP',
|
|
1194
|
+
MTALKZ: 'MTALKZ',
|
|
1195
|
+
THREE_SIXTY_DIALOG: 'THREE_SIXTY_DIALOG',
|
|
1196
|
+
GMAIL: 'GMAIL',
|
|
1197
|
+
OUTLOOK: 'OUTLOOK',
|
|
1198
|
+
GENERIC_SMTP: 'GENERIC_SMTP',
|
|
1199
|
+
GENERIC: 'GENERIC'
|
|
1200
|
+
};
|
|
1201
|
+
|
|
1202
|
+
exports.CommDirection = exports.$Enums.CommDirection = {
|
|
1203
|
+
INBOUND: 'INBOUND',
|
|
1204
|
+
OUTBOUND: 'OUTBOUND'
|
|
1205
|
+
};
|
|
1206
|
+
|
|
1207
|
+
exports.CommMessageStatus = exports.$Enums.CommMessageStatus = {
|
|
1208
|
+
QUEUED: 'QUEUED',
|
|
1209
|
+
SENT: 'SENT',
|
|
1210
|
+
DELIVERED: 'DELIVERED',
|
|
1211
|
+
READ: 'READ',
|
|
1212
|
+
FAILED: 'FAILED',
|
|
1213
|
+
RECEIVED: 'RECEIVED'
|
|
1214
|
+
};
|
|
1215
|
+
|
|
1115
1216
|
exports.EvaluationRoundFormat = exports.$Enums.EvaluationRoundFormat = {
|
|
1116
1217
|
PHONE_CALL: 'PHONE_CALL',
|
|
1117
1218
|
VIDEO_CALL_AI_ASSISTED: 'VIDEO_CALL_AI_ASSISTED',
|
|
@@ -1152,14 +1253,6 @@ exports.DurationUnit = exports.$Enums.DurationUnit = {
|
|
|
1152
1253
|
DAYS: 'DAYS'
|
|
1153
1254
|
};
|
|
1154
1255
|
|
|
1155
|
-
exports.EvaluationCategory = exports.$Enums.EvaluationCategory = {
|
|
1156
|
-
EXPERIENCE_SCREENING: 'EXPERIENCE_SCREENING',
|
|
1157
|
-
TECHNICAL_SCREENING: 'TECHNICAL_SCREENING',
|
|
1158
|
-
TECHNICAL_INTERVIEW: 'TECHNICAL_INTERVIEW',
|
|
1159
|
-
BUSINESS_ROUND: 'BUSINESS_ROUND',
|
|
1160
|
-
BEHAVIORAL_ROUND: 'BEHAVIORAL_ROUND'
|
|
1161
|
-
};
|
|
1162
|
-
|
|
1163
1256
|
exports.IntegrationProvider = exports.$Enums.IntegrationProvider = {
|
|
1164
1257
|
NAUKRI: 'NAUKRI',
|
|
1165
1258
|
ZOHO_RECRUIT: 'ZOHO_RECRUIT',
|
|
@@ -1222,6 +1315,21 @@ exports.InterviewFeedback = exports.$Enums.InterviewFeedback = {
|
|
|
1222
1315
|
STRONG_NO_HIRE: 'STRONG_NO_HIRE'
|
|
1223
1316
|
};
|
|
1224
1317
|
|
|
1318
|
+
exports.JobApplicationFieldType = exports.$Enums.JobApplicationFieldType = {
|
|
1319
|
+
TEXT: 'TEXT',
|
|
1320
|
+
NUMBER: 'NUMBER',
|
|
1321
|
+
DATE: 'DATE',
|
|
1322
|
+
BOOLEAN: 'BOOLEAN',
|
|
1323
|
+
MULTI_SELECT: 'MULTI_SELECT',
|
|
1324
|
+
FILE: 'FILE',
|
|
1325
|
+
DROP_DOWN: 'DROP_DOWN'
|
|
1326
|
+
};
|
|
1327
|
+
|
|
1328
|
+
exports.JobApplicationTemplateScope = exports.$Enums.JobApplicationTemplateScope = {
|
|
1329
|
+
ORGANIZATION: 'ORGANIZATION',
|
|
1330
|
+
JOB: 'JOB'
|
|
1331
|
+
};
|
|
1332
|
+
|
|
1225
1333
|
exports.JobDescriptionStatus = exports.$Enums.JobDescriptionStatus = {
|
|
1226
1334
|
CREATED: 'CREATED',
|
|
1227
1335
|
DRAFT: 'DRAFT',
|
|
@@ -1297,7 +1405,6 @@ exports.Prisma.ModelName = {
|
|
|
1297
1405
|
CandidateQuestionResponse: 'CandidateQuestionResponse',
|
|
1298
1406
|
UserRole: 'UserRole',
|
|
1299
1407
|
Action: 'Action',
|
|
1300
|
-
ActivityEvent: 'ActivityEvent',
|
|
1301
1408
|
ActivityLog: 'ActivityLog',
|
|
1302
1409
|
Application: 'Application',
|
|
1303
1410
|
Approval: 'Approval',
|
|
@@ -1310,7 +1417,11 @@ exports.Prisma.ModelName = {
|
|
|
1310
1417
|
Budget: 'Budget',
|
|
1311
1418
|
Calendly: 'Calendly',
|
|
1312
1419
|
CandidateProfile: 'CandidateProfile',
|
|
1420
|
+
ChannelProviderConfig: 'ChannelProviderConfig',
|
|
1421
|
+
Conversation: 'Conversation',
|
|
1422
|
+
CommunicationMessage: 'CommunicationMessage',
|
|
1313
1423
|
ContactUs: 'ContactUs',
|
|
1424
|
+
Document: 'Document',
|
|
1314
1425
|
EvaluationPlan: 'EvaluationPlan',
|
|
1315
1426
|
Feedback: 'Feedback',
|
|
1316
1427
|
FitCheck: 'FitCheck',
|
|
@@ -1320,6 +1431,9 @@ exports.Prisma.ModelName = {
|
|
|
1320
1431
|
ZohoSyncMapping: 'ZohoSyncMapping',
|
|
1321
1432
|
Interview: 'Interview',
|
|
1322
1433
|
InterviewNotes: 'InterviewNotes',
|
|
1434
|
+
JobApplicationField: 'JobApplicationField',
|
|
1435
|
+
JobApplicationResponse: 'JobApplicationResponse',
|
|
1436
|
+
JobApplicationTemplate: 'JobApplicationTemplate',
|
|
1323
1437
|
JobDescription: 'JobDescription',
|
|
1324
1438
|
JobDescriptionData: 'JobDescriptionData',
|
|
1325
1439
|
JobProfile: 'JobProfile',
|
package/package.json
CHANGED
package/prisma/.DS_Store
ADDED
|
Binary file
|
|
@@ -16,8 +16,8 @@ model Application {
|
|
|
16
16
|
applied_at DateTime @default(now())
|
|
17
17
|
evaluation_plan_id String?
|
|
18
18
|
fit_check_id String? @unique
|
|
19
|
-
recruiter_id String?
|
|
20
19
|
round_no Int @default(0)
|
|
20
|
+
is_jaf_completed Boolean @default(false)
|
|
21
21
|
//Screening fields
|
|
22
22
|
on_notice_period Boolean @default(false)
|
|
23
23
|
expected_joining_date DateTime?
|
|
@@ -34,12 +34,14 @@ model Application {
|
|
|
34
34
|
resume Resume @relation(fields: [resume_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
|
|
35
35
|
job_description JobDescription @relation(fields: [job_description_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
|
|
36
36
|
fit_check FitCheck? @relation(fields: [fit_check_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
|
|
37
|
-
recruiter User? @relation("ApplicationRecruiter", fields: [recruiter_id], references: [id])
|
|
38
37
|
interviews Interview[]
|
|
39
38
|
assignments Assignment[]
|
|
40
39
|
ongoing_evaluations OngoingEvaluation[]
|
|
41
|
-
activity_logs
|
|
42
|
-
notes
|
|
40
|
+
activity_logs ActivityLog[]
|
|
41
|
+
notes Notes[]
|
|
42
|
+
job_application_responses JobApplicationResponse[]
|
|
43
|
+
conversations Conversation[]
|
|
44
|
+
communication_messages CommunicationMessage[]
|
|
43
45
|
// Audit fields
|
|
44
46
|
created_at DateTime @default(now())
|
|
45
47
|
updated_at DateTime @updatedAt
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
/// Defines how an assessment is conducted.
|
|
2
2
|
|
|
3
3
|
model AssessmentLibrary {
|
|
4
|
-
id
|
|
5
|
-
title
|
|
6
|
-
time_required
|
|
7
|
-
passing_score
|
|
8
|
-
max_score
|
|
9
|
-
organisation_id
|
|
10
|
-
created_at
|
|
11
|
-
updated_at
|
|
12
|
-
created_by
|
|
13
|
-
updated_by
|
|
14
|
-
is_active
|
|
15
|
-
organisation
|
|
16
|
-
questions
|
|
17
|
-
assessments
|
|
4
|
+
id String @id @default(uuid())
|
|
5
|
+
title String
|
|
6
|
+
time_required Int
|
|
7
|
+
passing_score Float?
|
|
8
|
+
max_score Float?
|
|
9
|
+
organisation_id String
|
|
10
|
+
created_at DateTime @default(now())
|
|
11
|
+
updated_at DateTime @updatedAt
|
|
12
|
+
created_by String
|
|
13
|
+
updated_by String
|
|
14
|
+
is_active Boolean @default(true)
|
|
15
|
+
organisation Organisation @relation(fields: [organisation_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
|
|
16
|
+
questions Question[] // One assessment → many questions
|
|
17
|
+
assessments Assessment[]
|
|
18
18
|
evaluation_Plans EvaluationPlan[]
|
|
19
19
|
|
|
20
20
|
@@index([organisation_id])
|
|
@@ -1,42 +1,48 @@
|
|
|
1
1
|
enum AssignmentStatus {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
AVAILABLE
|
|
3
|
+
SCHEDULED
|
|
4
|
+
CANCELLED
|
|
5
5
|
}
|
|
6
6
|
|
|
7
7
|
model Assignment {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
8
|
+
id String @id @default(uuid())
|
|
9
|
+
candidate_id String
|
|
10
|
+
assignment_library_id String
|
|
11
|
+
reviewer_id String?
|
|
12
|
+
application_id String?
|
|
13
|
+
job_description_id String
|
|
14
|
+
organisation_id String
|
|
15
|
+
ongoing_evaluation_id String? @unique
|
|
16
|
+
overallScore Int?
|
|
17
|
+
feedback Json?
|
|
18
|
+
status AssignmentStatus @default(AVAILABLE)
|
|
19
|
+
cancel_reason String?
|
|
20
|
+
/// @deprecated Prefer `solution_document_id` + `Document`.
|
|
21
|
+
solution_url String?
|
|
22
|
+
/// @deprecated Prefer `zip_document_id` + `Document`.
|
|
23
|
+
zip_url String?
|
|
24
|
+
solution_document_id String? @unique
|
|
25
|
+
zip_document_id String? @unique
|
|
26
|
+
scheduled_start_time DateTime?
|
|
27
|
+
scheduled_end_time DateTime?
|
|
28
|
+
created_at DateTime @default(now())
|
|
29
|
+
updated_at DateTime @updatedAt
|
|
30
|
+
created_by String
|
|
31
|
+
updated_by String
|
|
32
|
+
is_active Boolean @default(true)
|
|
33
|
+
// Relations
|
|
34
|
+
candidate User? @relation("CandidateAssignments", fields: [candidate_id], references: [id], onDelete: Cascade)
|
|
35
|
+
assignment_library AssignmentLibrary @relation(fields: [assignment_library_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
|
|
36
|
+
reviewer User? @relation("AssignmentReviewer", fields: [reviewer_id], references: [id], onDelete: SetNull)
|
|
37
|
+
organisation Organisation @relation(fields: [organisation_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
|
|
38
|
+
job_description JobDescription @relation(fields: [job_description_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
|
|
39
|
+
application Application? @relation(fields: [application_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
|
|
40
|
+
ongoing_evaluation OngoingEvaluation? @relation(fields: [ongoing_evaluation_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
|
|
41
|
+
solution_document Document? @relation("AssignmentSolutionDocument", fields: [solution_document_id], references: [id], onDelete: SetNull, onUpdate: Cascade)
|
|
42
|
+
zip_document Document? @relation("AssignmentZipDocument", fields: [zip_document_id], references: [id], onDelete: SetNull, onUpdate: Cascade)
|
|
37
43
|
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
44
|
+
@@unique([candidate_id, ongoing_evaluation_id])
|
|
45
|
+
@@index([candidate_id])
|
|
46
|
+
@@index([reviewer_id])
|
|
47
|
+
@@index([job_description_id])
|
|
42
48
|
}
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
model Calendly {
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
id String @id @default(uuid())
|
|
3
|
+
user_id String @unique
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
5
|
+
access_token String
|
|
6
|
+
refresh_token String
|
|
7
|
+
expires_at DateTime
|
|
8
|
+
calendly_user_uri String
|
|
9
|
+
scope String?
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
user User @relation(fields: [user_id], references: [id], onDelete: Cascade)
|
|
12
12
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
13
|
+
created_at DateTime @default(now())
|
|
14
|
+
updated_at DateTime @updatedAt
|
|
15
|
+
created_by String
|
|
16
|
+
updated_by String
|
|
17
|
+
is_active Boolean @default(true)
|
|
18
18
|
}
|