@adaptware/eagles-db 0.4.23 → 0.4.24

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 (87) hide show
  1. package/README.md +15 -15
  2. package/bin/db-cli.js +91 -91
  3. package/client/edge.js +9 -15
  4. package/client/index-browser.js +1 -8
  5. package/client/index.d.ts +565 -234
  6. package/client/index.js +15 -21
  7. package/client/{query_engine-windows.dll.node → libquery_engine-darwin-arm64.dylib.node} +0 -0
  8. package/client/libquery_engine-linux-arm64-openssl-1.1.x.so.node +0 -0
  9. package/client/package.json +1 -1
  10. package/client/schema.prisma +15 -22
  11. package/client/wasm.js +9 -15
  12. package/package.json +58 -58
  13. package/prisma/schema/CandidateQuestionResponse.prisma +24 -24
  14. package/prisma/schema/UserRole.prisma +20 -20
  15. package/prisma/schema/action.prisma +35 -35
  16. package/prisma/schema/activityLog.prisma +22 -22
  17. package/prisma/schema/applications.prisma +56 -57
  18. package/prisma/schema/approval.prisma +14 -14
  19. package/prisma/schema/assessment.prisma +39 -39
  20. package/prisma/schema/assessmentLibrary.prisma +21 -21
  21. package/prisma/schema/assessmentQuestion.prisma +17 -17
  22. package/prisma/schema/assignment.prisma +48 -48
  23. package/prisma/schema/assignmentLibrary.prisma +20 -20
  24. package/prisma/schema/authModule.prisma +36 -36
  25. package/prisma/schema/budget.prisma +38 -38
  26. package/prisma/schema/calendly.prisma +18 -18
  27. package/prisma/schema/candidateProfile.prisma +26 -26
  28. package/prisma/schema/communication.prisma +156 -156
  29. package/prisma/schema/contactUs.prisma +12 -12
  30. package/prisma/schema/document.prisma +38 -37
  31. package/prisma/schema/evaluationPlan.prisma +74 -83
  32. package/prisma/schema/feedback.prisma +18 -18
  33. package/prisma/schema/fitCheck.prisma +58 -58
  34. package/prisma/schema/google.prisma +16 -16
  35. package/prisma/schema/integration.prisma +98 -98
  36. package/prisma/schema/interview.prisma +112 -112
  37. package/prisma/schema/interviewNotes.prisma +17 -17
  38. package/prisma/schema/jobApplicationFields.prisma +37 -37
  39. package/prisma/schema/jobApplicationResponse.prisma +33 -33
  40. package/prisma/schema/jobApplicationTemplate.prisma +30 -30
  41. package/prisma/schema/jobDescription.prisma +59 -57
  42. package/prisma/schema/jobDescriptionData.prisma +15 -15
  43. package/prisma/schema/jobProfile.prisma +56 -56
  44. package/prisma/schema/liveAnalysis.prisma +17 -17
  45. package/prisma/schema/message.prisma +15 -15
  46. package/prisma/schema/migrations/20260415120000_remove_job_profile_current_phase/migration.sql +2 -2
  47. package/prisma/schema/migrations/20260422120000_add_integration_provider_zoom/migration.sql +2 -2
  48. package/prisma/schema/migrations/20260422140000_add_zoom_meeting_tables/migration.sql +57 -57
  49. package/prisma/schema/migrations/20260422180000_add_zoom_webhook_event/migration.sql +18 -18
  50. package/prisma/schema/migrations/20260423140000_add_interview_platform/migration.sql +6 -6
  51. package/prisma/schema/migrations/20260423150000_remove_interview_zoom_topic/migration.sql +2 -2
  52. package/prisma/schema/migrations/20260423160000_zoom_meeting_uuid/migration.sql +4 -4
  53. package/prisma/schema/migrations/20260423170000_zoom_meeting_uuid_prisma_sync/migration.sql +2 -2
  54. package/prisma/schema/migrations/20260424120000_auth_module_user_provider_unique/migration.sql +5 -5
  55. package/prisma/schema/migrations/20260424130000_zoom_meeting_zoom_host_user_id/migration.sql +6 -6
  56. package/prisma/schema/migrations/20260425100000_zoom_participant_user_enum/migration.sql +22 -22
  57. package/prisma/schema/migrations/20260425110000_zoom_participant_zoom_id_required/migration.sql +13 -13
  58. package/prisma/schema/migrations/20260425120000_zoom_participant_id_nullable/migration.sql +4 -4
  59. package/prisma/schema/migrations/20260429140000_drop_evaluation_plan_job_order_unique/migration.sql +5 -5
  60. package/prisma/schema/migrations/20260429180000_eval_plan_timeline_optional_ongoing_duration/migration.sql +15 -15
  61. package/prisma/schema/migrations/20260430120000_drop_assessment_library_metadata_fields/migration.sql +8 -8
  62. package/prisma/schema/migrations/20260430140000_drop_question_question_type/migration.sql +5 -5
  63. package/prisma/schema/migrations/20260513120000_add_organisation_config/migration.sql +56 -56
  64. package/prisma/schema/migrations/20260514120000_dedupe_organisation_config/migration.sql +20 -20
  65. package/prisma/schema/migrations/20260515120000_add_interview_ai_assistance_mode/migration.sql +5 -5
  66. package/prisma/schema/migrations/20260522120000_ongoing_evaluation_record_kind/migration.sql +25 -0
  67. package/prisma/schema/migrations/20260523120000_replace_record_kind_with_is_committed/migration.sql +24 -0
  68. package/prisma/schema/migrations/20260528120000_drop_job_description_recommendation_config/migration.sql +2 -0
  69. package/prisma/schema/migrations/migration_lock.toml +3 -3
  70. package/prisma/schema/notes.prisma +19 -19
  71. package/prisma/schema/ongoingEvaluation.prisma +72 -72
  72. package/prisma/schema/organisation.prisma +57 -57
  73. package/prisma/schema/organisationConfig.prisma +12 -12
  74. package/prisma/schema/permission.prisma +13 -13
  75. package/prisma/schema/promise.prisma +39 -39
  76. package/prisma/schema/questions.prisma +28 -28
  77. package/prisma/schema/refreshToken.prisma +10 -10
  78. package/prisma/schema/resume.prisma +34 -34
  79. package/prisma/schema/resumeData.prisma +15 -15
  80. package/prisma/schema/schema.prisma +16 -16
  81. package/prisma/schema/suggestion.prisma +20 -20
  82. package/prisma/schema/transcript.prisma +25 -25
  83. package/prisma/schema/user.prisma +93 -93
  84. package/prisma/schema/userProfile.prisma +15 -15
  85. package/prisma/schema/zoomMeeting.prisma +79 -79
  86. package/prisma/schema/migrations/20260626120000_add_evaluation_plan_share_scope/migration.sql +0 -14
  87. package/prisma/schema/migrations/20260626140000_add_evaluation_comment/migration.sql +0 -2
@@ -1,48 +1,48 @@
1
- enum AssignmentStatus {
2
- AVAILABLE
3
- SCHEDULED
4
- CANCELLED
5
- }
6
-
7
- model Assignment {
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)
43
-
44
- @@unique([candidate_id, ongoing_evaluation_id])
45
- @@index([candidate_id])
46
- @@index([reviewer_id])
47
- @@index([job_description_id])
48
- }
1
+ enum AssignmentStatus {
2
+ AVAILABLE
3
+ SCHEDULED
4
+ CANCELLED
5
+ }
6
+
7
+ model Assignment {
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)
43
+
44
+ @@unique([candidate_id, ongoing_evaluation_id])
45
+ @@index([candidate_id])
46
+ @@index([reviewer_id])
47
+ @@index([job_description_id])
48
+ }
@@ -1,20 +1,20 @@
1
- model AssignmentLibrary {
2
- id String @id @default(uuid())
3
- deadline Int
4
- /// Flexible JSON for assignment-specific config (rubrics, instructions, criteria, etc.)
5
- assignment Json?
6
- job_description_id String
7
- organisation_id String
8
- created_at DateTime @default(now())
9
- updated_at DateTime @updatedAt
10
- created_by String
11
- updated_by String
12
- is_active Boolean @default(true)
13
- organisation Organisation @relation(fields: [organisation_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
14
- jobDescription JobDescription @relation(fields: [job_description_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
15
- /// Back-relation: one-to-one from EvaluationPlan (FK lives on EvaluationPlan.assignment_library_id)
16
- evaluationPlan EvaluationPlan[]
17
- assignments Assignment[]
18
-
19
- @@index([job_description_id])
20
- }
1
+ model AssignmentLibrary {
2
+ id String @id @default(uuid())
3
+ deadline Int
4
+ /// Flexible JSON for assignment-specific config (rubrics, instructions, criteria, etc.)
5
+ assignment Json?
6
+ job_description_id String
7
+ organisation_id String
8
+ created_at DateTime @default(now())
9
+ updated_at DateTime @updatedAt
10
+ created_by String
11
+ updated_by String
12
+ is_active Boolean @default(true)
13
+ organisation Organisation @relation(fields: [organisation_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
14
+ jobDescription JobDescription @relation(fields: [job_description_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
15
+ /// Back-relation: one-to-one from EvaluationPlan (FK lives on EvaluationPlan.assignment_library_id)
16
+ evaluationPlan EvaluationPlan[]
17
+ assignments Assignment[]
18
+
19
+ @@index([job_description_id])
20
+ }
@@ -1,36 +1,36 @@
1
- enum AuthProvider {
2
- GOOGLE
3
- MICROSOFT
4
- ZOOM
5
- CALENDLY
6
- }
7
-
8
- model AuthModule {
9
- id String @id @default(uuid())
10
- user_id String
11
- /// The provider of the authentication module
12
- provider AuthProvider
13
- provider_account_id String? @db.Text
14
-
15
- access_token String? @db.Text
16
- refresh_token String? @db.Text
17
- id_token String? @db.Text
18
- expires_at DateTime?
19
-
20
- token_type String?
21
-
22
- scope String?
23
- is_active Boolean @default(true)
24
-
25
- /// Provider-specific JSON (e.g. Zoom: email, display); tokens remain in encrypted columns.
26
- metadata Json @default("{}")
27
-
28
- created_at DateTime @default(now())
29
- updated_at DateTime @updatedAt
30
-
31
- user User @relation("UserAuthModule", fields: [user_id], references: [id], onDelete: Cascade)
32
-
33
- @@unique([user_id, provider])
34
- @@unique([provider, provider_account_id])
35
- @@index([user_id])
36
- }
1
+ enum AuthProvider {
2
+ GOOGLE
3
+ MICROSOFT
4
+ ZOOM
5
+ CALENDLY
6
+ }
7
+
8
+ model AuthModule {
9
+ id String @id @default(uuid())
10
+ user_id String
11
+ /// The provider of the authentication module
12
+ provider AuthProvider
13
+ provider_account_id String? @db.Text
14
+
15
+ access_token String? @db.Text
16
+ refresh_token String? @db.Text
17
+ id_token String? @db.Text
18
+ expires_at DateTime?
19
+
20
+ token_type String?
21
+
22
+ scope String?
23
+ is_active Boolean @default(true)
24
+
25
+ /// Provider-specific JSON (e.g. Zoom: email, display); tokens remain in encrypted columns.
26
+ metadata Json @default("{}")
27
+
28
+ created_at DateTime @default(now())
29
+ updated_at DateTime @updatedAt
30
+
31
+ user User @relation("UserAuthModule", fields: [user_id], references: [id], onDelete: Cascade)
32
+
33
+ @@unique([user_id, provider])
34
+ @@unique([provider, provider_account_id])
35
+ @@index([user_id])
36
+ }
@@ -1,38 +1,38 @@
1
- enum JobType {
2
- Full_time
3
- Part_time
4
- Contract
5
- Internship
6
- Temporary
7
- }
8
-
9
- enum JDCreationType {
10
- Pick_from_Library
11
- Upload_JD
12
- Create_New
13
- Create_From_Profile
14
- }
15
-
16
- model Budget {
17
- id String @id @default(uuid())
18
- job_type JobType
19
- location String
20
- shift String
21
- openings Int
22
- budget_per_job String
23
- level String
24
- start_date DateTime
25
- closing_date DateTime
26
- business_unit String
27
- purpose String
28
- role String
29
- domain String
30
- jd_creation_type JDCreationType
31
- job_description_id String @unique
32
- job_description JobDescription @relation(fields: [job_description_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
33
- created_at DateTime @default(now())
34
- updated_at DateTime @updatedAt
35
- created_by String
36
- updated_by String
37
- is_active Boolean @default(true)
38
- }
1
+ enum JobType {
2
+ Full_time
3
+ Part_time
4
+ Contract
5
+ Internship
6
+ Temporary
7
+ }
8
+
9
+ enum JDCreationType {
10
+ Pick_from_Library
11
+ Upload_JD
12
+ Create_New
13
+ Create_From_Profile
14
+ }
15
+
16
+ model Budget {
17
+ id String @id @default(uuid())
18
+ job_type JobType
19
+ location String
20
+ shift String
21
+ openings Int
22
+ budget_per_job String
23
+ level String
24
+ start_date DateTime
25
+ closing_date DateTime
26
+ business_unit String
27
+ purpose String
28
+ role String
29
+ domain String
30
+ jd_creation_type JDCreationType
31
+ job_description_id String @unique
32
+ job_description JobDescription @relation(fields: [job_description_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
33
+ created_at DateTime @default(now())
34
+ updated_at DateTime @updatedAt
35
+ created_by String
36
+ updated_by String
37
+ is_active Boolean @default(true)
38
+ }
@@ -1,18 +1,18 @@
1
- model Calendly {
2
- id String @id @default(uuid())
3
- user_id String @unique
4
-
5
- access_token String
6
- refresh_token String
7
- expires_at DateTime
8
- calendly_user_uri String
9
- scope String?
10
-
11
- user User @relation(fields: [user_id], references: [id], onDelete: Cascade)
12
-
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
- }
1
+ model Calendly {
2
+ id String @id @default(uuid())
3
+ user_id String @unique
4
+
5
+ access_token String
6
+ refresh_token String
7
+ expires_at DateTime
8
+ calendly_user_uri String
9
+ scope String?
10
+
11
+ user User @relation(fields: [user_id], references: [id], onDelete: Cascade)
12
+
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
+ }
@@ -1,26 +1,26 @@
1
- model CandidateProfile {
2
- id String @id @default(uuid())
3
- created_at DateTime @default(now())
4
- updated_at DateTime @updatedAt
5
- name String
6
- phone String
7
- location String
8
- salary String?
9
- description String?
10
- resume_id String? @unique
11
- date_of_birth DateTime?
12
-
13
- user User? @relation(fields: [user_id], references: [id])
14
- user_id String? @unique
15
-
16
- resume Resume? @relation(fields: [resume_id], references: [id], onDelete: SetNull, onUpdate: Cascade)
17
-
18
- work_experience Json?
19
- education Json?
20
- notice_period String?
21
- gender String?
22
- ethnicity String?
23
- veteran_status String?
24
- disability_status String?
25
- is_active Boolean @default(true)
26
- }
1
+ model CandidateProfile {
2
+ id String @id @default(uuid())
3
+ created_at DateTime @default(now())
4
+ updated_at DateTime @updatedAt
5
+ name String
6
+ phone String
7
+ location String
8
+ salary String?
9
+ description String?
10
+ resume_id String? @unique
11
+ date_of_birth DateTime?
12
+
13
+ user User? @relation(fields: [user_id], references: [id])
14
+ user_id String? @unique
15
+
16
+ resume Resume? @relation(fields: [resume_id], references: [id], onDelete: SetNull, onUpdate: Cascade)
17
+
18
+ work_experience Json?
19
+ education Json?
20
+ notice_period String?
21
+ gender String?
22
+ ethnicity String?
23
+ veteran_status String?
24
+ disability_status String?
25
+ is_active Boolean @default(true)
26
+ }