@adaptware/eagles-db 0.4.17 → 0.4.19

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.
@@ -1,5 +1,5 @@
1
1
  {
2
- "name": "prisma-client-191b7e23829fd0fb9f0cd21a69a06794a22ae57f9d2bfbd84a0b335e373fb7bc",
2
+ "name": "prisma-client-a02dba0e19f9c54fc9922de7e15a9f26b12da8617a09b4946c13a1a9e0578503",
3
3
  "main": "index.js",
4
4
  "types": "index.d.ts",
5
5
  "browser": "index-browser.js",
@@ -108,49 +108,52 @@ enum ApplicationStatus {
108
108
  PENDING
109
109
  IN_PROGRESS
110
110
  SHORTLISTED
111
+ SELECTED
111
112
  REJECTED
112
113
  }
113
114
 
114
115
  model Application {
115
- id String @id @default(uuid())
116
- candidate_id String
117
- resume_id String
118
- organisation_id String
119
- job_description_id String
120
- fit_check_score Float?
121
- applied_at DateTime @default(now())
122
- evaluation_plan_id String?
123
- fit_check_id String? @unique
124
- round_no Int @default(0)
116
+ id String @id @default(uuid())
117
+ candidate_id String
118
+ resume_id String
119
+ organisation_id String
120
+ job_description_id String
121
+ fit_check_score Float?
122
+ applied_at DateTime @default(now())
123
+ evaluation_plan_id String?
124
+ fit_check_id String? @unique
125
+ round_no Int @default(0)
126
+ is_jaf_completed Boolean @default(false)
125
127
  //Screening fields
126
- on_notice_period Boolean @default(false)
127
- expected_joining_date DateTime?
128
- current_ctc String?
129
- expected_ctc String?
130
- notice_period Int?
131
- preferred_location String?
128
+ on_notice_period Boolean @default(false)
129
+ expected_joining_date DateTime?
130
+ current_ctc String?
131
+ expected_ctc String?
132
+ notice_period Int?
133
+ preferred_location String?
132
134
  // Relations
133
- fit_check_status FitCheckStatus?
134
- status ApplicationStatus @default(PENDING)
135
- evaluation_plan EvaluationPlan? @relation(fields: [evaluation_plan_id], references: [id])
136
- candidate User @relation(fields: [candidate_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
137
- organisation Organisation @relation(fields: [organisation_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
138
- resume Resume @relation(fields: [resume_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
139
- job_description JobDescription @relation(fields: [job_description_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
140
- fit_check FitCheck? @relation(fields: [fit_check_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
141
- interviews Interview[]
142
- assignments Assignment[]
143
- ongoing_evaluations OngoingEvaluation[]
144
- activity_logs ActivityLog[]
145
- notes Notes[]
146
- conversations Conversation[]
147
- communication_messages CommunicationMessage[]
135
+ fit_check_status FitCheckStatus?
136
+ status ApplicationStatus @default(PENDING)
137
+ evaluation_plan EvaluationPlan? @relation(fields: [evaluation_plan_id], references: [id])
138
+ candidate User @relation(fields: [candidate_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
139
+ organisation Organisation @relation(fields: [organisation_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
140
+ resume Resume @relation(fields: [resume_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
141
+ job_description JobDescription @relation(fields: [job_description_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
142
+ fit_check FitCheck? @relation(fields: [fit_check_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
143
+ interviews Interview[]
144
+ assignments Assignment[]
145
+ ongoing_evaluations OngoingEvaluation[]
146
+ activity_logs ActivityLog[]
147
+ notes Notes[]
148
+ job_application_responses JobApplicationResponse[]
149
+ conversations Conversation[]
150
+ communication_messages CommunicationMessage[]
148
151
  // Audit fields
149
- created_at DateTime @default(now())
150
- updated_at DateTime @updatedAt
151
- created_by String
152
- updated_by String
153
- is_active Boolean @default(true)
152
+ created_at DateTime @default(now())
153
+ updated_at DateTime @updatedAt
154
+ created_by String
155
+ updated_by String
156
+ is_active Boolean @default(true)
154
157
 
155
158
  @@unique([candidate_id, job_description_id]) // Ensures candidate applies only once per job
156
159
  @@index([candidate_id])
@@ -271,8 +274,12 @@ model Assignment {
271
274
  feedback Json?
272
275
  status AssignmentStatus @default(AVAILABLE)
273
276
  cancel_reason String?
277
+ /// @deprecated Prefer `solution_document_id` + `Document`.
274
278
  solution_url String?
279
+ /// @deprecated Prefer `zip_document_id` + `Document`.
275
280
  zip_url String?
281
+ solution_document_id String? @unique
282
+ zip_document_id String? @unique
276
283
  scheduled_start_time DateTime?
277
284
  scheduled_end_time DateTime?
278
285
  created_at DateTime @default(now())
@@ -288,6 +295,8 @@ model Assignment {
288
295
  job_description JobDescription @relation(fields: [job_description_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
289
296
  application Application? @relation(fields: [application_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
290
297
  ongoing_evaluation OngoingEvaluation? @relation(fields: [ongoing_evaluation_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
298
+ solution_document Document? @relation("AssignmentSolutionDocument", fields: [solution_document_id], references: [id], onDelete: SetNull, onUpdate: Cascade)
299
+ zip_document Document? @relation("AssignmentZipDocument", fields: [zip_document_id], references: [id], onDelete: SetNull, onUpdate: Cascade)
291
300
 
292
301
  @@unique([candidate_id, ongoing_evaluation_id])
293
302
  @@index([candidate_id])
@@ -608,6 +617,44 @@ model ContactUs {
608
617
  is_active Boolean @default(true)
609
618
  }
610
619
 
620
+ model Document {
621
+ // Primary key
622
+ id String @id @default(uuid())
623
+ // Foreign keys
624
+ organisation_id String?
625
+ candidate_id String?
626
+ // Data fields
627
+ original_file_name String
628
+ stored_file_name String
629
+ file_extension String?
630
+ s3_bucket String?
631
+ s3_key String?
632
+ mime_type String?
633
+ file_size BigInt?
634
+ file_hash String?
635
+ metadata Json?
636
+ // Audit fields
637
+ created_at DateTime @default(now())
638
+ updated_at DateTime @updatedAt
639
+ created_by String
640
+ updated_by String
641
+ is_active Boolean @default(true)
642
+ // Relations
643
+ organisation Organisation? @relation(fields: [organisation_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
644
+ candidate User? @relation(fields: [candidate_id], references: [id], onDelete: SetNull, onUpdate: Cascade)
645
+ resume Resume?
646
+ job_description_source JobDescription?
647
+ interview_recording Interview?
648
+ job_application_responses JobApplicationResponse[]
649
+ assignment_solution Assignment? @relation("AssignmentSolutionDocument")
650
+ assignment_zip Assignment? @relation("AssignmentZipDocument")
651
+
652
+ // Indexes
653
+ @@index([candidate_id])
654
+ @@index([organisation_id, candidate_id])
655
+ @@index([file_hash])
656
+ }
657
+
611
658
  enum RoundType {
612
659
  ASSESSMENT
613
660
  INTERVIEW
@@ -943,7 +990,9 @@ model Interview {
943
990
  actual_end_time DateTime?
944
991
  /// Interview length in minutes (source of truth; not derived from schedule window).
945
992
  duration Int?
993
+ /// @deprecated Prefer `recording_document_id` + `Document` (type INTERVIEW_RECORDING).
946
994
  recording_url String?
995
+ recording_document_id String? @unique
947
996
  evaluation_type EvaluationType? @default(TREADSPACE_AI_ASSISTED)
948
997
  ai_assistance_mode AiAssistanceMode? @default(ASSISTED)
949
998
  interview_status InterviewStatus @default(SCHEDULED)
@@ -983,6 +1032,7 @@ model Interview {
983
1032
  candidate User? @relation("CandidateInterviews", fields: [candidate_id], references: [id], onDelete: SetNull)
984
1033
  interviewer User? @relation("InterviewerInterviews", fields: [interviewer_id], references: [id], onDelete: SetNull)
985
1034
  organisation Organisation @relation(fields: [organisation_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
1035
+ recording_document Document? @relation(fields: [recording_document_id], references: [id], onDelete: SetNull, onUpdate: Cascade)
986
1036
  job_description JobDescription @relation(fields: [job_description_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
987
1037
  resume Resume @relation(fields: [resume_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
988
1038
  evaluation_plan EvaluationPlan? @relation(fields: [evaluation_plan_id], references: [id], onDelete: SetNull, onUpdate: Cascade)
@@ -1020,6 +1070,109 @@ model InterviewNotes {
1020
1070
  @@index([interview_id])
1021
1071
  }
1022
1072
 
1073
+ enum JobApplicationFieldType {
1074
+ TEXT
1075
+ NUMBER
1076
+ DATE
1077
+ BOOLEAN
1078
+ MULTI_SELECT
1079
+ FILE
1080
+ DROP_DOWN
1081
+ }
1082
+
1083
+ model JobApplicationField {
1084
+ /// Primary key (UUID)
1085
+ id String @id @default(uuid())
1086
+ /// Foreign keys
1087
+ organisation_id String
1088
+ template_id String
1089
+ /// Data fields
1090
+ field_type JobApplicationFieldType
1091
+ label String
1092
+ description String?
1093
+ is_mandatory Boolean @default(false)
1094
+ is_draft Boolean @default(true)
1095
+ options String[]
1096
+ /// Audit fields
1097
+ is_active Boolean @default(true)
1098
+ created_by String
1099
+ updated_by String
1100
+ created_at DateTime @default(now())
1101
+ updated_at DateTime @updatedAt
1102
+ /// Relations
1103
+ organisation Organisation @relation(fields: [organisation_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
1104
+ job_application_template JobApplicationTemplate @relation(fields: [template_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
1105
+ job_application_responses JobApplicationResponse[]
1106
+
1107
+ /// Indexes
1108
+ @@index([organisation_id, template_id])
1109
+ }
1110
+
1111
+ model JobApplicationResponse {
1112
+ /// Primary key
1113
+ id String @id @default(uuid())
1114
+ /// Foreign keys
1115
+ application_id String
1116
+ job_application_field_id String?
1117
+ document_id String?
1118
+ /// Answer payload
1119
+ response Json?
1120
+ /// Denormalized question snapshot (immutable on candidate save)
1121
+ field_type JobApplicationFieldType?
1122
+ label String?
1123
+ description String?
1124
+ is_mandatory Boolean?
1125
+ is_draft Boolean?
1126
+ is_submitted Boolean @default(false)
1127
+ options String[]
1128
+ updated_by_organisation Boolean @default(false)
1129
+ /// Audit fields
1130
+ created_at DateTime @default(now())
1131
+ updated_at DateTime @updatedAt
1132
+ created_by String
1133
+ updated_by String
1134
+ is_active Boolean @default(true)
1135
+ /// Relations
1136
+ application Application @relation(fields: [application_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
1137
+ field JobApplicationField? @relation(fields: [job_application_field_id], references: [id], onDelete: Restrict, onUpdate: Cascade)
1138
+ document Document? @relation(fields: [document_id], references: [id], onDelete: SetNull, onUpdate: Cascade)
1139
+
1140
+ /// Partial unique on (application_id, job_application_field_id) WHERE job_application_field_id IS NOT NULL — see migration SQL
1141
+ @@index([application_id])
1142
+ @@index([job_application_field_id])
1143
+ }
1144
+
1145
+ enum JobApplicationTemplateScope {
1146
+ ORGANIZATION
1147
+ JOB
1148
+ }
1149
+
1150
+ model JobApplicationTemplate {
1151
+ /// Primary key
1152
+ id String @id @default(uuid())
1153
+ /// Foreign keys
1154
+ organisation_id String
1155
+ job_description_id String? @unique
1156
+ /// Data fields
1157
+ name String
1158
+ description String?
1159
+ scope JobApplicationTemplateScope @default(ORGANIZATION)
1160
+ /// Audit fields
1161
+ is_active Boolean @default(true)
1162
+ created_by String
1163
+ updated_by String
1164
+ created_at DateTime @default(now())
1165
+ updated_at DateTime @updatedAt
1166
+ /// Relations
1167
+ organisation Organisation @relation(fields: [organisation_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
1168
+ job_description JobDescription? @relation(fields: [job_description_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
1169
+ fields JobApplicationField[]
1170
+
1171
+ /// Indexes
1172
+ @@index([organisation_id, scope])
1173
+ @@index([job_description_id])
1174
+ }
1175
+
1023
1176
  enum JobDescriptionStatus {
1024
1177
  CREATED
1025
1178
  DRAFT
@@ -1029,28 +1182,31 @@ enum JobDescriptionStatus {
1029
1182
  }
1030
1183
 
1031
1184
  model JobDescription {
1032
- id String @id @default(uuid())
1185
+ id String @id @default(uuid())
1033
1186
  organisation_id String
1034
1187
  hiring_manager_id String?
1035
- status JobDescriptionStatus @default(DRAFT)
1188
+ status JobDescriptionStatus @default(DRAFT)
1036
1189
  screeningQuestions String[]
1037
1190
  recommendedQuestions Json[]
1191
+ /// @deprecated Prefer `source_document_id` + `Document` (type JOB_DESCRIPTION).
1038
1192
  uploaded_job_description_path String?
1039
- is_plan_published Boolean @default(false)
1040
- is_posted Boolean @default(false)
1193
+ source_document_id String? @unique
1194
+ is_plan_published Boolean @default(false)
1195
+ is_posted Boolean @default(false)
1041
1196
  summary Json?
1042
1197
  ai_insight Json?
1043
1198
  job_fit_comparison Json?
1044
1199
  // Audit fields
1045
- created_at DateTime @default(now())
1046
- updated_at DateTime @updatedAt
1200
+ created_at DateTime @default(now())
1201
+ updated_at DateTime @updatedAt
1047
1202
  created_by String
1048
1203
  updated_by String
1049
- is_active Boolean @default(true)
1050
- openings Int @default(1)
1204
+ is_active Boolean @default(true)
1205
+ openings Int @default(1)
1051
1206
  job_profile_id String?
1052
- job_profile JobProfile? @relation(fields: [job_profile_id], references: [id], onDelete: SetNull, onUpdate: Cascade)
1053
- organisation Organisation @relation(fields: [organisation_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
1207
+ job_profile JobProfile? @relation(fields: [job_profile_id], references: [id], onDelete: SetNull, onUpdate: Cascade)
1208
+ organisation Organisation @relation(fields: [organisation_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
1209
+ source_document Document? @relation(fields: [source_document_id], references: [id], onDelete: SetNull, onUpdate: Cascade)
1054
1210
  applications Application[]
1055
1211
  interviews Interview[]
1056
1212
  assignments Assignment[]
@@ -1062,10 +1218,11 @@ model JobDescription {
1062
1218
  approvals Approval[] // one-to-many relation
1063
1219
  resumes Resume[] // one-to-many link
1064
1220
  budget Budget?
1065
- hiring_manager User? @relation("HiringManager", fields: [hiring_manager_id], references: [id], onDelete: SetNull, onUpdate: Cascade)
1221
+ hiring_manager User? @relation("HiringManager", fields: [hiring_manager_id], references: [id], onDelete: SetNull, onUpdate: Cascade)
1066
1222
  recruiters User[]
1067
1223
  transcripts Transcript[]
1068
1224
  integration_job_syncs IntegrationJobSync[]
1225
+ job_application_template JobApplicationTemplate?
1069
1226
  conversations Conversation[]
1070
1227
  communication_messages CommunicationMessage[]
1071
1228
 
@@ -1294,33 +1451,36 @@ model Organisation {
1294
1451
  company_values Json[]
1295
1452
  allowed_email_domains String[]
1296
1453
 
1297
- interviewers User[]
1298
- created_at DateTime @default(now())
1299
- updated_at DateTime @updatedAt
1300
- created_by String
1301
- updated_by String
1302
- is_active Boolean @default(true)
1303
- alias String? @unique
1304
- logo String?
1305
- applications Application[]
1306
- user_roles UserRole[]
1307
- job_descriptions JobDescription[]
1308
- job_profiles JobProfile[]
1309
- assessment_library AssessmentLibrary[]
1310
- assignment_library AssignmentLibrary[]
1311
- interviews Interview[]
1312
- assignments Assignment[]
1313
- fit_check FitCheck[] // one-to-many link
1314
- resumes Resume[] // one-to-many link
1315
- approvals Approval[] // one-to-many link
1316
- suggestions Suggestion[]
1317
- ongoing_evaluations OngoingEvaluation[] // optional one-to-many
1318
- actions Action[]
1319
- integration_credentials IntegrationCredential[]
1320
- zoho_sync_mappings ZohoSyncMapping[]
1321
- assessments Assessment[]
1322
- timezone String @default("Asia/Kolkata")
1323
- organisation_configs OrganisationConfig[]
1454
+ interviewers User[]
1455
+ created_at DateTime @default(now())
1456
+ updated_at DateTime @updatedAt
1457
+ created_by String
1458
+ updated_by String
1459
+ is_active Boolean @default(true)
1460
+ alias String? @unique
1461
+ logo String?
1462
+ applications Application[]
1463
+ user_roles UserRole[]
1464
+ job_descriptions JobDescription[]
1465
+ job_profiles JobProfile[]
1466
+ assessment_library AssessmentLibrary[]
1467
+ assignment_library AssignmentLibrary[]
1468
+ interviews Interview[]
1469
+ assignments Assignment[]
1470
+ fit_check FitCheck[] // one-to-many link
1471
+ resumes Resume[] // one-to-many link
1472
+ approvals Approval[] // one-to-many link
1473
+ suggestions Suggestion[]
1474
+ ongoing_evaluations OngoingEvaluation[] // optional one-to-many
1475
+ actions Action[]
1476
+ integration_credentials IntegrationCredential[]
1477
+ zoho_sync_mappings ZohoSyncMapping[]
1478
+ assessments Assessment[]
1479
+ timezone String @default("Asia/Kolkata")
1480
+ organisation_configs OrganisationConfig[]
1481
+ job_application_fields JobApplicationField[]
1482
+ documents Document[]
1483
+ job_application_templates JobApplicationTemplate[]
1324
1484
 
1325
1485
  channel_provider_configs ChannelProviderConfig[]
1326
1486
  conversations Conversation[]
@@ -1441,8 +1601,11 @@ model Resume {
1441
1601
  user_id String?
1442
1602
  organisation_id String?
1443
1603
  job_description_id String?
1604
+ /// @deprecated Prefer `document_id` + `Document`. Kept until backfill completes.
1444
1605
  uploaded_resume_path String?
1445
- file_hash String? @unique
1606
+ document_id String? @unique
1607
+ /// @deprecated Prefer `Document.file_hash`. Kept for legacy read fallback.
1608
+ file_hash String?
1446
1609
  summary Json?
1447
1610
  created_at DateTime @default(now())
1448
1611
  updated_at DateTime @updatedAt
@@ -1453,6 +1616,7 @@ model Resume {
1453
1616
  user User? @relation(fields: [user_id], references: [id], onDelete: SetNull, onUpdate: Cascade)
1454
1617
  organisation Organisation? @relation(fields: [organisation_id], references: [id], onDelete: SetNull, onUpdate: Cascade)
1455
1618
  job_description JobDescription? @relation(fields: [job_description_id], references: [id], onDelete: SetNull, onUpdate: Cascade)
1619
+ document Document? @relation(fields: [document_id], references: [id], onDelete: SetNull, onUpdate: Cascade)
1456
1620
  applications Application[]
1457
1621
  interviews Interview[]
1458
1622
  ongoing_evaluations OngoingEvaluation[] // optional one-to-many
@@ -1634,6 +1798,7 @@ model User {
1634
1798
  veteran_status String?
1635
1799
  disability_status String?
1636
1800
  professional_expertise String?
1801
+ documents Document[]
1637
1802
 
1638
1803
  @@index([role_id])
1639
1804
  @@index([permission_id])
package/client/wasm.js CHANGED
@@ -186,6 +186,7 @@ exports.Prisma.ApplicationScalarFieldEnum = {
186
186
  evaluation_plan_id: 'evaluation_plan_id',
187
187
  fit_check_id: 'fit_check_id',
188
188
  round_no: 'round_no',
189
+ is_jaf_completed: 'is_jaf_completed',
189
190
  on_notice_period: 'on_notice_period',
190
191
  expected_joining_date: 'expected_joining_date',
191
192
  current_ctc: 'current_ctc',
@@ -270,6 +271,8 @@ exports.Prisma.AssignmentScalarFieldEnum = {
270
271
  cancel_reason: 'cancel_reason',
271
272
  solution_url: 'solution_url',
272
273
  zip_url: 'zip_url',
274
+ solution_document_id: 'solution_document_id',
275
+ zip_document_id: 'zip_document_id',
273
276
  scheduled_start_time: 'scheduled_start_time',
274
277
  scheduled_end_time: 'scheduled_end_time',
275
278
  created_at: 'created_at',
@@ -446,6 +449,26 @@ exports.Prisma.ContactUsScalarFieldEnum = {
446
449
  is_active: 'is_active'
447
450
  };
448
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
+
449
472
  exports.Prisma.EvaluationPlanScalarFieldEnum = {
450
473
  id: 'id',
451
474
  job_description_id: 'job_description_id',
@@ -596,6 +619,7 @@ exports.Prisma.InterviewScalarFieldEnum = {
596
619
  actual_end_time: 'actual_end_time',
597
620
  duration: 'duration',
598
621
  recording_url: 'recording_url',
622
+ recording_document_id: 'recording_document_id',
599
623
  evaluation_type: 'evaluation_type',
600
624
  ai_assistance_mode: 'ai_assistance_mode',
601
625
  interview_status: 'interview_status',
@@ -636,6 +660,58 @@ exports.Prisma.InterviewNotesScalarFieldEnum = {
636
660
  is_active: 'is_active'
637
661
  };
638
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
+
639
715
  exports.Prisma.JobDescriptionScalarFieldEnum = {
640
716
  id: 'id',
641
717
  organisation_id: 'organisation_id',
@@ -644,6 +720,7 @@ exports.Prisma.JobDescriptionScalarFieldEnum = {
644
720
  screeningQuestions: 'screeningQuestions',
645
721
  recommendedQuestions: 'recommendedQuestions',
646
722
  uploaded_job_description_path: 'uploaded_job_description_path',
723
+ source_document_id: 'source_document_id',
647
724
  is_plan_published: 'is_plan_published',
648
725
  is_posted: 'is_posted',
649
726
  summary: 'summary',
@@ -865,6 +942,7 @@ exports.Prisma.ResumeScalarFieldEnum = {
865
942
  organisation_id: 'organisation_id',
866
943
  job_description_id: 'job_description_id',
867
944
  uploaded_resume_path: 'uploaded_resume_path',
945
+ document_id: 'document_id',
868
946
  file_hash: 'file_hash',
869
947
  summary: 'summary',
870
948
  created_at: 'created_at',
@@ -1071,6 +1149,7 @@ exports.ApplicationStatus = exports.$Enums.ApplicationStatus = {
1071
1149
  PENDING: 'PENDING',
1072
1150
  IN_PROGRESS: 'IN_PROGRESS',
1073
1151
  SHORTLISTED: 'SHORTLISTED',
1152
+ SELECTED: 'SELECTED',
1074
1153
  REJECTED: 'REJECTED'
1075
1154
  };
1076
1155
 
@@ -1237,6 +1316,21 @@ exports.InterviewFeedback = exports.$Enums.InterviewFeedback = {
1237
1316
  STRONG_NO_HIRE: 'STRONG_NO_HIRE'
1238
1317
  };
1239
1318
 
1319
+ exports.JobApplicationFieldType = exports.$Enums.JobApplicationFieldType = {
1320
+ TEXT: 'TEXT',
1321
+ NUMBER: 'NUMBER',
1322
+ DATE: 'DATE',
1323
+ BOOLEAN: 'BOOLEAN',
1324
+ MULTI_SELECT: 'MULTI_SELECT',
1325
+ FILE: 'FILE',
1326
+ DROP_DOWN: 'DROP_DOWN'
1327
+ };
1328
+
1329
+ exports.JobApplicationTemplateScope = exports.$Enums.JobApplicationTemplateScope = {
1330
+ ORGANIZATION: 'ORGANIZATION',
1331
+ JOB: 'JOB'
1332
+ };
1333
+
1240
1334
  exports.JobDescriptionStatus = exports.$Enums.JobDescriptionStatus = {
1241
1335
  CREATED: 'CREATED',
1242
1336
  DRAFT: 'DRAFT',
@@ -1328,6 +1422,7 @@ exports.Prisma.ModelName = {
1328
1422
  Conversation: 'Conversation',
1329
1423
  CommunicationMessage: 'CommunicationMessage',
1330
1424
  ContactUs: 'ContactUs',
1425
+ Document: 'Document',
1331
1426
  EvaluationPlan: 'EvaluationPlan',
1332
1427
  Feedback: 'Feedback',
1333
1428
  FitCheck: 'FitCheck',
@@ -1337,6 +1432,9 @@ exports.Prisma.ModelName = {
1337
1432
  ZohoSyncMapping: 'ZohoSyncMapping',
1338
1433
  Interview: 'Interview',
1339
1434
  InterviewNotes: 'InterviewNotes',
1435
+ JobApplicationField: 'JobApplicationField',
1436
+ JobApplicationResponse: 'JobApplicationResponse',
1437
+ JobApplicationTemplate: 'JobApplicationTemplate',
1340
1438
  JobDescription: 'JobDescription',
1341
1439
  JobDescriptionData: 'JobDescriptionData',
1342
1440
  JobProfile: 'JobProfile',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adaptware/eagles-db",
3
- "version": "0.4.17",
3
+ "version": "0.4.19",
4
4
  "description": "A Prisma client package for Treadspace database operations",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
Binary file
Binary file