@adaptware/eagles-db 0.5.45 → 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.
- package/client/edge.js +31 -88
- package/client/index-browser.js +25 -81
- package/client/index.d.ts +1163 -5391
- package/client/index.js +31 -88
- package/client/package.json +1 -1
- package/client/schema.prisma +43 -123
- package/client/wasm.js +31 -88
- package/package.json +1 -1
- package/prisma/schema/evaluationPlan.prisma +0 -7
- package/prisma/schema/integration.prisma +0 -1
- package/prisma/schema/migrations/20260907120000_add_resume_ai_intake/migration.sql +20 -0
- package/prisma/schema/migrations/20260908120000_add_resume_jd_tailoring/migration.sql +15 -0
- package/prisma/schema/organisation.prisma +0 -2
- package/prisma/schema/resume.prisma +45 -0
- package/prisma/schema/user.prisma +2 -0
- package/prisma/schema/migrations/20260522120000_ongoing_evaluation_record_kind/migration.sql +0 -25
- package/prisma/schema/migrations/20260523120000_replace_record_kind_with_is_committed/migration.sql +0 -24
- package/prisma/schema/migrations/20260528120000_drop_job_description_recommendation_config/migration.sql +0 -2
- package/prisma/schema/migrations/20260710120000_add_resume_rendered_export_fields/migration.sql +0 -9
- package/prisma/schema/migrations/20260714120000_add_job_description_display_html_document/migration.sql +0 -8
- package/prisma/schema/migrations/20260716120000_add_offer_letters/migration.sql +0 -183
- package/prisma/schema/migrations/20260716140000_offer_schema_refinements/migration.sql +0 -13
- package/prisma/schema/migrations/20260716160000_offer_schema_hardening/migration.sql +0 -95
- package/prisma/schema/migrations/20260716180000_offer_letter_template_config/migration.sql +0 -2
- package/prisma/schema/migrations/20260716190000_add_evaluation_focus_areas/migration.sql +0 -6
- package/prisma/schema/migrations/20260717120000_offer_workflow_approval/migration.sql +0 -30
- package/prisma/schema/migrations/20260720120000_offer_letter_template_is_draft/migration.sql +0 -5
- package/prisma/schema/migrations/20260720140000_offer_status_split/migration.sql +0 -51
- package/prisma/schema/migrations/20260720140001_offer_status_split_backfill/migration.sql +0 -37
- package/prisma/schema/migrations/20260722120000_offer_draft_edited_html/migration.sql +0 -13
- package/prisma/schema/migrations/20260723150000_offer_withdraw_actor_no_show_reason/migration.sql +0 -10
- package/prisma/schema/migrations/20260724120000_open_job_offer_accepted_declined_counts/migration.sql +0 -7
- package/prisma/schema/migrations/20260811120000_add_integration_provider_razorpay/migration.sql +0 -6
- package/prisma/schema/migrations/20260812120000_add_billing_transactions/migration.sql +0 -49
- package/prisma/schema/migrations/20260812130000_drop_billing_transaction_gst_snapshots/migration.sql +0 -3
- package/prisma/schema/migrations/20260812180000_billing_transaction_invoice_number/migration.sql +0 -5
- package/prisma/schema/migrations/20260813120000_payment_webhooks_gst_refunds/migration.sql +0 -79
- package/prisma/schema/migrations/20260813140000_platform_gst_profiles/migration.sql +0 -49
- package/prisma/schema/migrations/20260813150000_rename_gst_profiles/migration.sql +0 -53
- package/prisma/schema/migrations/20260813160000_remove_gst_billing/migration.sql +0 -16
- package/prisma/schema/migrations/20260813170000_billing_licensing_unrecoverable/migration.sql +0 -2
- package/prisma/schema/migrations/20260813180000_billing_transaction_payment_method/migration.sql +0 -2
- package/prisma/schema/migrations/20260814090000_billing_transaction_purchaser_email/migration.sql +0 -2
- package/prisma/schema/migrations/20260816100000_billing_product_organisations/migration.sql +0 -35
- package/prisma/schema/migrations/20260816120000_merge_billing_product_organisations/migration.sql +0 -25
- package/prisma/schema/migrations/20260817120000_billing_payment_mismatch/migration.sql +0 -7
- package/prisma/schema/migrations/20260819120000_billing_product_prices/migration.sql +0 -62
- package/prisma/schema/migrations/20260819140000_billing_exchange_rates/migration.sql +0 -25
- package/prisma/schema/migrations/20260820120000_billing_transaction_failure_category/migration.sql +0 -31
- package/prisma/schema/migrations/20260820130000_backfill_billing_transaction_failure_details/migration.sql +0 -23
- package/prisma/schema/migrations/20260820140000_drop_billing_product_price_overrides/migration.sql +0 -2
- package/prisma/schema/migrations/20260821120000_drop_billing_product_and_mock_licensing/migration.sql +0 -38
- package/prisma/schema/migrations/20260824120000_billing_transaction_purchase_display_name/migration.sql +0 -2
- package/prisma/schema/migrations/20260831120000_user_communication_email/migration.sql +0 -6
- package/prisma/schema/migrations/20260901143000_assessment_question_bank_state/migration.sql +0 -15
- package/prisma/schema/migrations/20260902120000_question_category_two_values/migration.sql +0 -16
- package/prisma/schema/migrations/20260902143000_question_bank_item_key/migration.sql +0 -17
- package/prisma/schema/migrations/20260903120000_split_round_type_assessment/migration.sql +0 -9
- package/prisma/schema/migrations/20260904110000_restore_round_type_assessment_enum/migration.sql +0 -5
- package/prisma/schema/migrations/20260904120000_revert_wrong_split_assessment_round_types/migration.sql +0 -42
- package/prisma/schema/payment/billingTransaction.prisma +0 -83
- package/prisma/schema/payment/paymentWebhookEvent.prisma +0 -28
package/client/package.json
CHANGED
package/client/schema.prisma
CHANGED
|
@@ -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
|
|
@@ -1833,7 +1826,6 @@ enum IntegrationProvider {
|
|
|
1833
1826
|
MICROSOFT
|
|
1834
1827
|
ZOOM
|
|
1835
1828
|
CALENDLY
|
|
1836
|
-
RAZORPAY
|
|
1837
1829
|
|
|
1838
1830
|
@@schema("public")
|
|
1839
1831
|
}
|
|
@@ -3559,8 +3551,6 @@ model Organisation {
|
|
|
3559
3551
|
licensing_ledger_entries LicensingLedgerEntry[]
|
|
3560
3552
|
license_package_organisations LicensePackageOrganisation[]
|
|
3561
3553
|
ai_cost_ledger_entries AiCostLedgerEntry[]
|
|
3562
|
-
billing_transactions BillingTransaction[]
|
|
3563
|
-
payment_webhook_events PaymentWebhookEvent[]
|
|
3564
3554
|
|
|
3565
3555
|
@@index([name])
|
|
3566
3556
|
@@schema("public")
|
|
@@ -3580,119 +3570,6 @@ model OrganisationConfig {
|
|
|
3580
3570
|
@@schema("public")
|
|
3581
3571
|
}
|
|
3582
3572
|
|
|
3583
|
-
// PAYMENT SERVICE boundary — portable payment microservice owns these enums/columns.
|
|
3584
|
-
|
|
3585
|
-
enum BillingTransactionStatus {
|
|
3586
|
-
INITIATED
|
|
3587
|
-
ORDER_CREATED
|
|
3588
|
-
PAYMENT_PENDING
|
|
3589
|
-
SUCCESS
|
|
3590
|
-
FAILED
|
|
3591
|
-
CANCELLED
|
|
3592
|
-
REFUND_PENDING
|
|
3593
|
-
REFUND_FAILED
|
|
3594
|
-
REFUNDED
|
|
3595
|
-
|
|
3596
|
-
@@schema("public")
|
|
3597
|
-
}
|
|
3598
|
-
|
|
3599
|
-
enum BillingTransactionType {
|
|
3600
|
-
PURCHASE
|
|
3601
|
-
TOP_UP
|
|
3602
|
-
REFUND
|
|
3603
|
-
|
|
3604
|
-
@@schema("public")
|
|
3605
|
-
}
|
|
3606
|
-
|
|
3607
|
-
enum BillingTransactionFailureCategory {
|
|
3608
|
-
RAZORPAY_ORDER
|
|
3609
|
-
RAZORPAY_PAYMENT
|
|
3610
|
-
REFUND
|
|
3611
|
-
INTERNAL
|
|
3612
|
-
|
|
3613
|
-
@@schema("public")
|
|
3614
|
-
}
|
|
3615
|
-
|
|
3616
|
-
/// Payment reconciliation state when Treadspace status is FAILED but Razorpay captured payment.
|
|
3617
|
-
enum BillingPaymentMismatchStatus {
|
|
3618
|
-
DETECTED
|
|
3619
|
-
UNFULFILLED
|
|
3620
|
-
|
|
3621
|
-
@@schema("public")
|
|
3622
|
-
}
|
|
3623
|
-
|
|
3624
|
-
/// Financial transaction lifecycle for organisation billing purchases.
|
|
3625
|
-
model BillingTransaction {
|
|
3626
|
-
id String @id @default(uuid())
|
|
3627
|
-
organisation_id String
|
|
3628
|
-
/// Opaque plan/product identity supplied at checkout. Not a catalog FK.
|
|
3629
|
-
purchase_reference String
|
|
3630
|
-
/// Human-readable snapshot captured at checkout for invoices and receipts.
|
|
3631
|
-
purchase_display_name String?
|
|
3632
|
-
transaction_type BillingTransactionType
|
|
3633
|
-
status BillingTransactionStatus @default(INITIATED)
|
|
3634
|
-
failure_category BillingTransactionFailureCategory?
|
|
3635
|
-
/// Human-readable or provider detail (e.g. Razorpay error_description).
|
|
3636
|
-
failure_reason String?
|
|
3637
|
-
amount Int
|
|
3638
|
-
currency String @default("INR")
|
|
3639
|
-
razorpay_order_id String?
|
|
3640
|
-
razorpay_payment_id String? @unique
|
|
3641
|
-
/// Razorpay payment method at capture (card, netbanking, upi, wallet, etc.).
|
|
3642
|
-
payment_method String?
|
|
3643
|
-
razorpay_subscription_id String?
|
|
3644
|
-
razorpay_refund_id String?
|
|
3645
|
-
refund_reason String?
|
|
3646
|
-
refund_amount Int?
|
|
3647
|
-
idempotency_key String @unique
|
|
3648
|
-
invoice_number String? @unique
|
|
3649
|
-
/// Email of the org Admin who initiated checkout (bill-to).
|
|
3650
|
-
purchaser_email String?
|
|
3651
|
-
/// Set when FAILED but Razorpay order/payment is captured (reconciliation path).
|
|
3652
|
-
payment_mismatch_status BillingPaymentMismatchStatus?
|
|
3653
|
-
/// Strict same-intent SUCCESS transaction that fulfilled the purchase (UNFULFILLED only).
|
|
3654
|
-
payment_mismatch_fulfilled_by_id String?
|
|
3655
|
-
created_at DateTime @default(now())
|
|
3656
|
-
updated_at DateTime @updatedAt
|
|
3657
|
-
|
|
3658
|
-
organisation Organisation @relation(fields: [organisation_id], references: [id])
|
|
3659
|
-
|
|
3660
|
-
@@index([organisation_id, status])
|
|
3661
|
-
@@index([purchase_reference])
|
|
3662
|
-
@@index([razorpay_order_id])
|
|
3663
|
-
@@map("billing_transactions")
|
|
3664
|
-
@@schema("public")
|
|
3665
|
-
}
|
|
3666
|
-
|
|
3667
|
-
enum PaymentWebhookEventStatus {
|
|
3668
|
-
RECEIVED
|
|
3669
|
-
PROCESSED
|
|
3670
|
-
FAILED
|
|
3671
|
-
|
|
3672
|
-
@@schema("public")
|
|
3673
|
-
}
|
|
3674
|
-
|
|
3675
|
-
/// Idempotent record of payment provider webhook deliveries.
|
|
3676
|
-
model PaymentWebhookEvent {
|
|
3677
|
-
id String @id @default(uuid())
|
|
3678
|
-
organisation_id String?
|
|
3679
|
-
provider String
|
|
3680
|
-
provider_event_id String
|
|
3681
|
-
event_type String
|
|
3682
|
-
status PaymentWebhookEventStatus @default(RECEIVED)
|
|
3683
|
-
billing_transaction_id String?
|
|
3684
|
-
error_message String?
|
|
3685
|
-
processed_at DateTime?
|
|
3686
|
-
created_at DateTime @default(now())
|
|
3687
|
-
|
|
3688
|
-
organisation Organisation? @relation(fields: [organisation_id], references: [id])
|
|
3689
|
-
|
|
3690
|
-
@@unique([provider, provider_event_id])
|
|
3691
|
-
@@index([status, created_at])
|
|
3692
|
-
@@map("payment_webhook_events")
|
|
3693
|
-
@@schema("public")
|
|
3694
|
-
}
|
|
3695
|
-
|
|
3696
3573
|
model Permission {
|
|
3697
3574
|
id String @id @default(uuid())
|
|
3698
3575
|
permissions String[] @default([])
|
|
@@ -3931,6 +3808,25 @@ model ReportingOverviewJobRecruiter {
|
|
|
3931
3808
|
@@schema("analytics")
|
|
3932
3809
|
}
|
|
3933
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
|
+
|
|
3934
3830
|
model Resume {
|
|
3935
3831
|
id String @id @default(uuid())
|
|
3936
3832
|
user_id String?
|
|
@@ -3967,8 +3863,32 @@ model Resume {
|
|
|
3967
3863
|
candidate_profile CandidateProfile? // one-to-one link
|
|
3968
3864
|
yearsOfExperience Int?
|
|
3969
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
|
+
|
|
3970
3889
|
@@index([user_id])
|
|
3971
3890
|
@@index([file_hash])
|
|
3891
|
+
@@index([user_id, status])
|
|
3972
3892
|
@@schema("public")
|
|
3973
3893
|
}
|
|
3974
3894
|
|