@adaptware/eagles-db 0.4.37 → 0.4.41
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 +16 -18
- package/client/index-browser.js +9 -12
- package/client/index.d.ts +880 -424
- package/client/index.js +16 -18
- package/client/package.json +1 -1
- package/client/schema.prisma +40 -41
- package/client/wasm.js +16 -18
- package/package.json +1 -1
- package/prisma/schema/document.prisma +1 -0
- package/prisma/schema/jobDescription.prisma +2 -0
- 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/migrations/20260714120000_add_job_description_display_html_document/migration.sql +8 -0
- package/prisma/schema/openJobAnalytics.prisma +10 -14
- 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/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/client/package.json
CHANGED
package/client/schema.prisma
CHANGED
|
@@ -1132,37 +1132,38 @@ model ContactUs {
|
|
|
1132
1132
|
|
|
1133
1133
|
model Document {
|
|
1134
1134
|
// Primary key
|
|
1135
|
-
id
|
|
1135
|
+
id String @id @default(uuid())
|
|
1136
1136
|
// Foreign keys
|
|
1137
|
-
organisation_id
|
|
1138
|
-
candidate_id
|
|
1137
|
+
organisation_id String?
|
|
1138
|
+
candidate_id String?
|
|
1139
1139
|
// Data fields
|
|
1140
|
-
original_file_name
|
|
1141
|
-
stored_file_name
|
|
1142
|
-
file_extension
|
|
1143
|
-
s3_bucket
|
|
1144
|
-
s3_key
|
|
1145
|
-
mime_type
|
|
1146
|
-
file_size
|
|
1147
|
-
file_hash
|
|
1148
|
-
metadata
|
|
1140
|
+
original_file_name String
|
|
1141
|
+
stored_file_name String
|
|
1142
|
+
file_extension String?
|
|
1143
|
+
s3_bucket String?
|
|
1144
|
+
s3_key String?
|
|
1145
|
+
mime_type String?
|
|
1146
|
+
file_size BigInt?
|
|
1147
|
+
file_hash String?
|
|
1148
|
+
metadata Json?
|
|
1149
1149
|
// Audit fields
|
|
1150
|
-
created_at
|
|
1151
|
-
updated_at
|
|
1152
|
-
created_by
|
|
1153
|
-
updated_by
|
|
1154
|
-
is_active
|
|
1150
|
+
created_at DateTime @default(now())
|
|
1151
|
+
updated_at DateTime @updatedAt
|
|
1152
|
+
created_by String
|
|
1153
|
+
updated_by String
|
|
1154
|
+
is_active Boolean @default(true)
|
|
1155
1155
|
// Relations
|
|
1156
|
-
organisation
|
|
1157
|
-
candidate
|
|
1158
|
-
resume
|
|
1159
|
-
resume_rendered_export
|
|
1160
|
-
job_description_source
|
|
1161
|
-
job_description_rendered
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1156
|
+
organisation Organisation? @relation(fields: [organisation_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
|
|
1157
|
+
candidate User? @relation(fields: [candidate_id], references: [id], onDelete: SetNull, onUpdate: Cascade)
|
|
1158
|
+
resume Resume? @relation("ResumeSourceDocument")
|
|
1159
|
+
resume_rendered_export Resume? @relation("RenderedResumeExport")
|
|
1160
|
+
job_description_source JobDescription? @relation("SourceDocument")
|
|
1161
|
+
job_description_rendered JobDescription? @relation("RenderedJdDocument")
|
|
1162
|
+
job_description_display_html JobDescription? @relation("DisplayHtmlDocument")
|
|
1163
|
+
interview_recording Interview?
|
|
1164
|
+
job_application_responses JobApplicationResponse[]
|
|
1165
|
+
assignment_solution Assignment? @relation("AssignmentSolutionDocument")
|
|
1166
|
+
assignment_zip Assignment? @relation("AssignmentZipDocument")
|
|
1166
1167
|
|
|
1167
1168
|
// Indexes
|
|
1168
1169
|
@@index([candidate_id])
|
|
@@ -2056,6 +2057,8 @@ model JobDescription {
|
|
|
2056
2057
|
source_document_id String? @unique
|
|
2057
2058
|
rendered_jd_document_id String? @unique
|
|
2058
2059
|
rendered_jd_document Document? @relation("RenderedJdDocument", fields: [rendered_jd_document_id], references: [id], onDelete: SetNull)
|
|
2060
|
+
display_html_document_id String? @unique
|
|
2061
|
+
display_html_document Document? @relation("DisplayHtmlDocument", fields: [display_html_document_id], references: [id], onDelete: SetNull)
|
|
2059
2062
|
is_plan_published Boolean @default(false)
|
|
2060
2063
|
is_posted Boolean @default(false)
|
|
2061
2064
|
summary Json?
|
|
@@ -2442,13 +2445,11 @@ model OpenJobAnalytics {
|
|
|
2442
2445
|
closure_type OpenJobClosureType?
|
|
2443
2446
|
time_to_hire_days Int?
|
|
2444
2447
|
|
|
2445
|
-
application_count
|
|
2446
|
-
|
|
2447
|
-
|
|
2448
|
-
|
|
2449
|
-
|
|
2450
|
-
offered_count Int @default(0)
|
|
2451
|
-
hired_count Int @default(0)
|
|
2448
|
+
application_count Int @default(0)
|
|
2449
|
+
unscreened_count Int @default(0)
|
|
2450
|
+
ongoing_count Int @default(0)
|
|
2451
|
+
selected_count Int @default(0)
|
|
2452
|
+
rejected_count Int @default(0)
|
|
2452
2453
|
|
|
2453
2454
|
updated_at DateTime @updatedAt
|
|
2454
2455
|
|
|
@@ -2486,13 +2487,11 @@ model OpenJobAnalyticsDaily {
|
|
|
2486
2487
|
closure_type OpenJobClosureType?
|
|
2487
2488
|
time_to_hire_days Int?
|
|
2488
2489
|
|
|
2489
|
-
application_count
|
|
2490
|
-
|
|
2491
|
-
|
|
2492
|
-
|
|
2493
|
-
|
|
2494
|
-
offered_count Int @default(0)
|
|
2495
|
-
hired_count Int @default(0)
|
|
2490
|
+
application_count Int @default(0)
|
|
2491
|
+
unscreened_count Int @default(0)
|
|
2492
|
+
ongoing_count Int @default(0)
|
|
2493
|
+
selected_count Int @default(0)
|
|
2494
|
+
rejected_count Int @default(0)
|
|
2496
2495
|
|
|
2497
2496
|
@@unique([snapshot_date, job_description_id])
|
|
2498
2497
|
@@index([snapshot_date], map: "ojad_snapshot_date_idx")
|