@adaptware/eagles-db 0.5.46 → 0.5.47

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 (58) hide show
  1. package/client/edge.js +30 -9
  2. package/client/index-browser.js +24 -2
  3. package/client/index.d.ts +947 -193
  4. package/client/index.js +30 -9
  5. package/client/package.json +1 -1
  6. package/client/schema.prisma +43 -9
  7. package/client/wasm.js +30 -9
  8. package/package.json +1 -1
  9. package/prisma/schema/evaluationPlan.prisma +0 -7
  10. package/prisma/schema/migrations/20260907120000_add_resume_ai_intake/migration.sql +20 -0
  11. package/prisma/schema/migrations/20260908120000_add_resume_jd_tailoring/migration.sql +15 -0
  12. package/prisma/schema/resume.prisma +45 -0
  13. package/prisma/schema/migrations/20260522120000_ongoing_evaluation_record_kind/migration.sql +0 -25
  14. package/prisma/schema/migrations/20260523120000_replace_record_kind_with_is_committed/migration.sql +0 -24
  15. package/prisma/schema/migrations/20260528120000_drop_job_description_recommendation_config/migration.sql +0 -2
  16. package/prisma/schema/migrations/20260710120000_add_resume_rendered_export_fields/migration.sql +0 -9
  17. package/prisma/schema/migrations/20260714120000_add_job_description_display_html_document/migration.sql +0 -8
  18. package/prisma/schema/migrations/20260716120000_add_offer_letters/migration.sql +0 -183
  19. package/prisma/schema/migrations/20260716140000_offer_schema_refinements/migration.sql +0 -13
  20. package/prisma/schema/migrations/20260716160000_offer_schema_hardening/migration.sql +0 -95
  21. package/prisma/schema/migrations/20260716180000_offer_letter_template_config/migration.sql +0 -2
  22. package/prisma/schema/migrations/20260716190000_add_evaluation_focus_areas/migration.sql +0 -6
  23. package/prisma/schema/migrations/20260717120000_offer_workflow_approval/migration.sql +0 -30
  24. package/prisma/schema/migrations/20260720120000_offer_letter_template_is_draft/migration.sql +0 -5
  25. package/prisma/schema/migrations/20260720140000_offer_status_split/migration.sql +0 -51
  26. package/prisma/schema/migrations/20260720140001_offer_status_split_backfill/migration.sql +0 -37
  27. package/prisma/schema/migrations/20260722120000_offer_draft_edited_html/migration.sql +0 -13
  28. package/prisma/schema/migrations/20260723150000_offer_withdraw_actor_no_show_reason/migration.sql +0 -10
  29. package/prisma/schema/migrations/20260724120000_open_job_offer_accepted_declined_counts/migration.sql +0 -7
  30. package/prisma/schema/migrations/20260811120000_add_integration_provider_razorpay/migration.sql +0 -6
  31. package/prisma/schema/migrations/20260812120000_add_billing_transactions/migration.sql +0 -49
  32. package/prisma/schema/migrations/20260812130000_drop_billing_transaction_gst_snapshots/migration.sql +0 -3
  33. package/prisma/schema/migrations/20260812180000_billing_transaction_invoice_number/migration.sql +0 -5
  34. package/prisma/schema/migrations/20260813120000_payment_webhooks_gst_refunds/migration.sql +0 -79
  35. package/prisma/schema/migrations/20260813140000_platform_gst_profiles/migration.sql +0 -49
  36. package/prisma/schema/migrations/20260813150000_rename_gst_profiles/migration.sql +0 -53
  37. package/prisma/schema/migrations/20260813160000_remove_gst_billing/migration.sql +0 -16
  38. package/prisma/schema/migrations/20260813170000_billing_licensing_unrecoverable/migration.sql +0 -2
  39. package/prisma/schema/migrations/20260813180000_billing_transaction_payment_method/migration.sql +0 -2
  40. package/prisma/schema/migrations/20260814090000_billing_transaction_purchaser_email/migration.sql +0 -2
  41. package/prisma/schema/migrations/20260816100000_billing_product_organisations/migration.sql +0 -35
  42. package/prisma/schema/migrations/20260816120000_merge_billing_product_organisations/migration.sql +0 -25
  43. package/prisma/schema/migrations/20260817120000_billing_payment_mismatch/migration.sql +0 -7
  44. package/prisma/schema/migrations/20260819120000_billing_product_prices/migration.sql +0 -62
  45. package/prisma/schema/migrations/20260819140000_billing_exchange_rates/migration.sql +0 -25
  46. package/prisma/schema/migrations/20260820120000_billing_transaction_failure_category/migration.sql +0 -31
  47. package/prisma/schema/migrations/20260820130000_backfill_billing_transaction_failure_details/migration.sql +0 -23
  48. package/prisma/schema/migrations/20260820140000_drop_billing_product_price_overrides/migration.sql +0 -2
  49. package/prisma/schema/migrations/20260821120000_drop_billing_product_and_mock_licensing/migration.sql +0 -38
  50. package/prisma/schema/migrations/20260824120000_billing_transaction_purchase_display_name/migration.sql +0 -2
  51. package/prisma/schema/migrations/20260831120000_user_communication_email/migration.sql +0 -6
  52. package/prisma/schema/migrations/20260901143000_assessment_question_bank_state/migration.sql +0 -15
  53. package/prisma/schema/migrations/20260902120000_question_category_two_values/migration.sql +0 -16
  54. package/prisma/schema/migrations/20260902143000_question_bank_item_key/migration.sql +0 -17
  55. package/prisma/schema/migrations/20260903120000_split_round_type_assessment/migration.sql +0 -9
  56. package/prisma/schema/migrations/20260904110000_restore_round_type_assessment_enum/migration.sql +0 -5
  57. package/prisma/schema/migrations/20260904120000_revert_wrong_split_assessment_round_types/migration.sql +0 -42
  58. package/prisma/sql/add_user_deleted_at.sql +0 -8
@@ -1,5 +1,5 @@
1
1
  {
2
- "name": "prisma-client-3b3295f4ed498ad3a835be34c4c480f381ee054e66b6dbfb8e4be04318fdf3ae",
2
+ "name": "prisma-client-aee69ea008028a22f66e424877e9508f9645488b1fb83c5a361781a28489a931",
3
3
  "main": "index.js",
4
4
  "types": "index.d.ts",
5
5
  "browser": "default.js",
@@ -1450,16 +1450,9 @@ model EvaluationCriteria {
1450
1450
  @@schema("public")
1451
1451
  }
1452
1452
 
1453
- /// MCQ / interview round classification on EvaluationPlan and analytics.
1454
- /// ASSESSMENT is the legacy value kept for backward compatibility — do not drop it.
1455
- /// GENERAL_APTITUDE_ASSESSMENT and DOMAIN_KNOWLEDGE_ASSESSMENT are explicit split
1456
- /// types for new aptitude vs domain-knowledge MCQ rounds only.
1457
1453
  enum RoundType {
1458
- /// Legacy MCQ round type; existing plans and analytics may still use this.
1459
1454
  ASSESSMENT
1460
- /// New explicit general-aptitude MCQ round.
1461
1455
  GENERAL_APTITUDE_ASSESSMENT
1462
- /// New explicit domain-knowledge MCQ round.
1463
1456
  DOMAIN_KNOWLEDGE_ASSESSMENT
1464
1457
  INTERVIEW
1465
1458
  ASSIGNMENT
@@ -3815,6 +3808,25 @@ model ReportingOverviewJobRecruiter {
3815
3808
  @@schema("analytics")
3816
3809
  }
3817
3810
 
3811
+ /// Lifecycle of an AI-authored resume. Legacy/uploaded rows leave this null.
3812
+ enum ResumeStatus {
3813
+ DRAFT
3814
+ GENERATING
3815
+ COMPLETED
3816
+
3817
+ @@schema("public")
3818
+ }
3819
+
3820
+ /// How a resume came to exist. Legacy rows leave this null (read as UPLOADED).
3821
+ enum ResumeOrigin {
3822
+ UPLOADED
3823
+ PARSED
3824
+ AI_GENERATED
3825
+ TAILORED
3826
+
3827
+ @@schema("public")
3828
+ }
3829
+
3818
3830
  model Resume {
3819
3831
  id String @id @default(uuid())
3820
3832
  user_id String?
@@ -3851,8 +3863,32 @@ model Resume {
3851
3863
  candidate_profile CandidateProfile? // one-to-one link
3852
3864
  yearsOfExperience Int?
3853
3865
 
3866
+ /// Lifecycle for AI-authored resumes. Null for legacy/uploaded rows (treated as COMPLETED).
3867
+ status ResumeStatus?
3868
+ /// How this resume came to exist. Null for legacy rows (treated as UPLOADED).
3869
+ origin ResumeOrigin?
3870
+ /// Intake session id echoed to the client so a refresh can resume the conversation.
3871
+ intake_session_id String?
3872
+ /// Durable copy of the chat transcript for the AI intake; Redis is the hot path.
3873
+ conversation_history Json?
3874
+ /// Progress 0-100 reported by the ResumeIntake workflow.
3875
+ intake_progress Int?
3876
+ /// Last Orion execution id for the intake/generate workflow, for tracing.
3877
+ orion_execution_id String?
3878
+
3879
+ /// Raw job description text the candidate pasted to start a tailoring session.
3880
+ tailoring_jd_text String?
3881
+ /// Cached JobDescriptionParser output; computed once per tailoring session.
3882
+ tailoring_jd_parsed Json?
3883
+ /// Cached ResumeGapAnalysis output; computed once per tailoring session.
3884
+ tailoring_gap_analysis Json?
3885
+ /// Working tailored ResumeFormData. Scratch space only — materialised into
3886
+ /// `resume_data` when the candidate saves the draft.
3887
+ tailoring_draft Json?
3888
+
3854
3889
  @@index([user_id])
3855
3890
  @@index([file_hash])
3891
+ @@index([user_id, status])
3856
3892
  @@schema("public")
3857
3893
  }
3858
3894
 
@@ -4347,8 +4383,6 @@ model User {
4347
4383
  created_by String
4348
4384
  updated_by String
4349
4385
  is_active Boolean @default(true)
4350
- /// Set when removed from team (Delete); null for active/inactive-only users.
4351
- deleted_at DateTime?
4352
4386
  is_self_registered Boolean @default(true)
4353
4387
  permission_id String? @unique
4354
4388
  preferences Json? @default("{}")