@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.
Files changed (40) hide show
  1. package/README.md +5 -105
  2. package/client/edge.js +202 -88
  3. package/client/index-browser.js +197 -83
  4. package/client/index.d.ts +51665 -31859
  5. package/client/index.js +202 -88
  6. package/client/package.json +1 -1
  7. package/client/schema.prisma +419 -212
  8. package/client/wasm.js +197 -83
  9. package/package.json +1 -1
  10. package/prisma/.DS_Store +0 -0
  11. package/prisma/schema/applications.prisma +6 -4
  12. package/prisma/schema/assessmentLibrary.prisma +14 -14
  13. package/prisma/schema/assignment.prisma +42 -36
  14. package/prisma/schema/calendly.prisma +13 -13
  15. package/prisma/schema/communication.prisma +156 -0
  16. package/prisma/schema/document.prisma +37 -0
  17. package/prisma/schema/evaluationPlan.prisma +0 -9
  18. package/prisma/schema/google.prisma +11 -11
  19. package/prisma/schema/interview.prisma +3 -0
  20. package/prisma/schema/jobApplicationFields.prisma +37 -0
  21. package/prisma/schema/jobApplicationResponse.prisma +33 -0
  22. package/prisma/schema/jobApplicationTemplate.prisma +30 -0
  23. package/prisma/schema/jobDescription.prisma +34 -33
  24. package/prisma/schema/migrations/20260519120000_interview_deadline/migration.sql +2 -0
  25. package/prisma/schema/migrations/20260520120000_interview_duration_drop_deadline/migration.sql +30 -0
  26. package/prisma/schema/migrations/20260602120000_resume_file_hash_drop_unique/migration.sql +2 -0
  27. package/prisma/schema/migrations/20260603120000_job_application_field_is_mandatory/migration.sql +2 -0
  28. package/prisma/schema/migrations/20260604120000_job_application_response_updated_by_organisation/migration.sql +2 -0
  29. package/prisma/schema/migrations/20260605120000_drop_document_application_id/migration.sql +3 -0
  30. package/prisma/schema/migrations/20260610120000_jaf_template_model/migration.sql +70 -0
  31. package/prisma/schema/migrations/20260610130000_assignment_document_fks/migration.sql +15 -0
  32. package/prisma/schema/migrations/20260610140000_jaf_draft_activation/migration.sql +12 -0
  33. package/prisma/schema/notes.prisma +15 -15
  34. package/prisma/schema/organisation.prisma +34 -30
  35. package/prisma/schema/organisationConfig.prisma +9 -9
  36. package/prisma/schema/refreshToken.prisma +8 -8
  37. package/prisma/schema/resume.prisma +5 -1
  38. package/prisma/schema/user.prisma +1 -1
  39. package/client/libquery_engine-darwin.dylib.node +0 -0
  40. package/prisma/schema/activityEvent.prisma +0 -115
@@ -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',