@adaptware/eagles-db 0.1.83 → 0.1.84

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 (30) hide show
  1. package/client/edge.js +18 -37
  2. package/client/index-browser.js +13 -32
  3. package/client/index.d.ts +1002 -1170
  4. package/client/index.js +18 -37
  5. package/client/package.json +1 -1
  6. package/client/schema.prisma +43 -59
  7. package/client/wasm.js +13 -32
  8. package/package.json +1 -1
  9. package/prisma/.DS_Store +0 -0
  10. package/prisma/migrations/20260415120000_remove_job_profile_current_phase/migration.sql +2 -0
  11. package/prisma/migrations/20260422120000_add_integration_provider_zoom/migration.sql +2 -0
  12. package/prisma/migrations/20260422140000_add_zoom_meeting_tables/migration.sql +57 -0
  13. package/prisma/migrations/20260422180000_add_zoom_webhook_event/migration.sql +18 -0
  14. package/prisma/migrations/20260423140000_add_interview_platform/migration.sql +6 -0
  15. package/prisma/migrations/20260423150000_remove_interview_zoom_topic/migration.sql +2 -0
  16. package/prisma/migrations/20260423160000_zoom_meeting_uuid/migration.sql +4 -0
  17. package/prisma/migrations/20260424120000_auth_module_user_provider_unique/migration.sql +5 -0
  18. package/prisma/migrations/20260424130000_zoom_meeting_zoom_host_user_id/migration.sql +6 -0
  19. package/prisma/migrations/20260425100000_zoom_participant_user_enum/migration.sql +22 -0
  20. package/prisma/migrations/20260425110000_zoom_participant_zoom_id_required/migration.sql +13 -0
  21. package/prisma/migrations/20260425120000_zoom_participant_id_nullable/migration.sql +4 -0
  22. package/prisma/migrations/20260429140000_drop_evaluation_plan_job_order_unique/migration.sql +5 -0
  23. package/prisma/migrations/20260429180000_eval_plan_timeline_optional_ongoing_duration/migration.sql +15 -0
  24. package/prisma/migrations/20260430120000_drop_assessment_library_metadata_fields/migration.sql +8 -0
  25. package/prisma/migrations/migration_lock.toml +3 -0
  26. package/prisma/schema/assessmentLibrary.prisma +15 -26
  27. package/prisma/schema/evaluationPlan.prisma +1 -2
  28. package/prisma/schema/interview.prisma +20 -21
  29. package/prisma/schema/ongoingEvaluation.prisma +26 -30
  30. package/client/libquery_engine-darwin.dylib.node +0 -0
@@ -1,13 +1,3 @@
1
- enum OngoingEvaluationStatus {
2
- LOCKED
3
- ACTION_REQUIRED
4
- IN_PROGRESS
5
- EVALUATED
6
- CLEARED
7
- NOT_CLEARED
8
- SKIPPED
9
- }
10
-
11
1
  enum OngoingEvaluationState {
12
2
  NOT_STARTED
13
3
  IN_PROGRESS
@@ -26,37 +16,24 @@ enum OngoingEvaluationRoundStatus {
26
16
  }
27
17
 
28
18
  model OngoingEvaluation {
19
+ // Primary Key
29
20
  id String @id @default(uuid())
21
+ // Foreign Keys
22
+ organisation_id String
30
23
  application_id String
31
24
  candidate_id String
32
25
  resume_id String
33
- organisation_id String
34
26
  job_description_id String
35
27
  evaluation_plan_id String
36
28
  interview_id String? @unique
37
29
  assignment_id String? @unique
38
30
  assessment_id String? @unique
39
- status OngoingEvaluationStatus?
31
+ // Data Fields
40
32
  state OngoingEvaluationState? @default(NOT_STARTED)
41
33
  round_status OngoingEvaluationRoundStatus? @default(NOT_SCHEDULED)
42
34
  comments String? @default("")
43
- // Relations
44
- jobDescription JobDescription? @relation(fields: [job_description_id], references: [id], onDelete: SetNull)
45
- application Application @relation(fields: [application_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
46
- candidate User? @relation(fields: [candidate_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
47
- resume Resume? @relation(fields: [resume_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
48
- organisation Organisation? @relation(fields: [organisation_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
49
- evaluation_plan EvaluationPlan @relation(fields: [evaluation_plan_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
50
- interview Interview? @relation(fields: [interview_id], references: [id], onDelete: SetNull, onUpdate: Cascade)
51
- assignment Assignment?
52
- assessment Assessment? @relation(fields: [assessment_id], references: [id], onDelete: SetNull)
53
- created_at DateTime @default(now())
54
- updated_at DateTime @updatedAt
55
- created_by String
56
- updated_by String
57
- is_active Boolean @default(true)
58
- is_current Boolean @default(false)
59
- // Evaluation Plan Details Will be stored only when candidate starts for the evaluation round
35
+ completed_at DateTime?
36
+ /// Evaluation Plan Fields Filled After Round Started
60
37
  title String?
61
38
  description String?
62
39
  order_no Int?
@@ -66,8 +43,27 @@ model OngoingEvaluation {
66
43
  elimination_round Boolean? @default(false)
67
44
  evaluation_type EvaluationType?
68
45
  type_of_round RoundType?
69
- timeline Int?
46
+ duration Int?
47
+ deadline Int?
48
+ duration_unit DurationUnit?
70
49
  details Json?
50
+ // Audit Fields
51
+ created_at DateTime @default(now())
52
+ updated_at DateTime @updatedAt
53
+ created_by String
54
+ updated_by String
55
+ is_active Boolean @default(true)
56
+ is_current Boolean @default(false)
57
+ // Relations
58
+ jobDescription JobDescription? @relation(fields: [job_description_id], references: [id], onDelete: SetNull)
59
+ application Application @relation(fields: [application_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
60
+ candidate User? @relation(fields: [candidate_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
61
+ resume Resume? @relation(fields: [resume_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
62
+ organisation Organisation? @relation(fields: [organisation_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
63
+ evaluation_plan EvaluationPlan @relation(fields: [evaluation_plan_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
64
+ interview Interview? @relation(fields: [interview_id], references: [id], onDelete: SetNull, onUpdate: Cascade)
65
+ assignment Assignment?
66
+ assessment Assessment? @relation(fields: [assessment_id], references: [id], onDelete: SetNull)
71
67
 
72
68
  @@unique([application_id, evaluation_plan_id])
73
69
  @@index([application_id])